mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Additional menu config items added.
This commit is contained in:
@@ -31,10 +31,14 @@ class social_menu
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$fields = array();
|
$templates = e107::getLayouts('social','social_xurl', 'front', null, false, false);
|
||||||
$fields['xurlCaption'] = array('title'=> "Caption", 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'));
|
$sizes = array('2x'=> '2x', '3x'=>'3x', '4x'=>'4x', '5x'=>'5x');
|
||||||
|
|
||||||
|
$fields = array();
|
||||||
|
$fields['caption'] = array('title'=> "Caption", 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'));
|
||||||
|
$fields['template'] = array('title'=> LAN_TEMPLATE, 'type'=>'dropdown', 'tab'=>0, 'writeParms'=>array('optArray'=>$templates));
|
||||||
|
$fields['size'] = array('title'=> "Size", 'type'=>'dropdown', 'tab'=>0, 'writeParms'=>array('optArray'=>$sizes));
|
||||||
|
|
||||||
// $fields['blankCustom'] = array('title'=> "Enabled", 'type'=>'method'); // see below.
|
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
|
|
||||||
|
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
require_once(e_PLUGIN."social/e_shortcode.php");
|
require_once(e_PLUGIN."social/e_shortcode.php");
|
||||||
$sc = new social_shortcodes;
|
$sc = new social_shortcodes;
|
||||||
$body = $sc->sc_xurl_icons();
|
|
||||||
$title = empty($parm['xurlCaption'][e_LANGUAGE]) ? LAN_PLUGIN_SOCIAL_NAME : $parm['xurlCaption'][e_LANGUAGE];
|
$body = $sc->sc_xurl_icons($parm);
|
||||||
|
|
||||||
|
$title = isset($parm['caption'][e_LANGUAGE]) ? (string) $parm['caption'][e_LANGUAGE] : LAN_PLUGIN_SOCIAL_NAME ;
|
||||||
|
|
||||||
e107::getRender()->tablerender($title, $body, 'social-xurl-menu');
|
e107::getRender()->tablerender($title, $body, 'social-xurl-menu');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user