From d579facf8f4d5f7cd23ed0ef82b72b1dc8109856 Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 28 Dec 2020 08:41:49 -0800 Subject: [PATCH] Social plugin xurl menu added. --- e107_plugins/social/e_menu.php | 63 +++++++++++++++++++++++++++++++ e107_plugins/social/xurl_menu.php | 9 +++++ 2 files changed, 72 insertions(+) create mode 100644 e107_plugins/social/e_menu.php create mode 100644 e107_plugins/social/xurl_menu.php diff --git a/e107_plugins/social/e_menu.php b/e107_plugins/social/e_menu.php new file mode 100644 index 000000000..f48fffb23 --- /dev/null +++ b/e107_plugins/social/e_menu.php @@ -0,0 +1,63 @@ + "Caption", 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge')); + + // $fields['blankCustom'] = array('title'=> "Enabled", 'type'=>'method'); // see below. + + return $fields; + + } + +} + +// optional - for when using custom methods above. + +class social_menu_form extends e_form +{ +/* + function blankCustom($curVal) + { + + $frm = e107::getForm(); + $opts = array(1,2,3,4); + $frm->select('blankCustom', $opts, $curVal); + + + }*/ + + +} + + diff --git a/e107_plugins/social/xurl_menu.php b/e107_plugins/social/xurl_menu.php new file mode 100644 index 000000000..2bb326355 --- /dev/null +++ b/e107_plugins/social/xurl_menu.php @@ -0,0 +1,9 @@ +sc_xurl_icons(); +$title = empty($parm['xurlCaption'][e_LANGUAGE]) ? LAN_PLUGIN_SOCIAL_NAME : $parm['xurlCaption'][e_LANGUAGE]; + +e107::getRender()->tablerender($title, $body, 'social-xurl-menu'); +