1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Additional menu config items added.

This commit is contained in:
Cameron 2020-12-28 08:55:20 -08:00
parent d579facf8f
commit 25b5843e12
2 changed files with 11 additions and 5 deletions

View File

@ -31,10 +31,14 @@ class social_menu
return null;
}
$fields = array();
$fields['xurlCaption'] = array('title'=> "Caption", 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'));
$templates = e107::getLayouts('social','social_xurl', 'front', null, false, false);
$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;

View File

@ -2,8 +2,10 @@
require_once(e_PLUGIN."social/e_shortcode.php");
$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');