1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 10:50:25 +02:00
This commit is contained in:
Cameron
2020-12-28 09:01:15 -08:00
parent 25b5843e12
commit 48e3fdabc9
2 changed files with 5 additions and 16 deletions

View File

@@ -32,12 +32,12 @@ class social_menu
}
$templates = e107::getLayouts('social','social_xurl', 'front', null, false, false);
$sizes = array('2x'=> '2x', '3x'=>'3x', '4x'=>'4x', '5x'=>'5x');
// $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['size'] = array('title'=> "Size", 'type'=>'dropdown', 'tab'=>0, 'writeParms'=>array('optArray'=>$sizes));
return $fields;

View File

@@ -85,22 +85,11 @@ class social_shortcodes extends e_shortcode
// print_a($social);
$class = (vartrue($parm['size'])) ? 'fa-'.$parm['size'] : '';
$class = (!empty($parm['size'])) ? 'fa-'.$parm['size'] : '';
$class .= (isset($parm['class'])) ? (string) $parm['class'] : $class;
// @deprecated - use template.
/*
$tooltipPos = vartrue($parm['tip-pos'], 'top');
if(isset($parm['tip']))
{
$tooltip = ($parm['tip'] == 'false' || empty($parm['tooltip'])) ? '' : 'e-tip';
}
else
{
$tooltip = 'e-tip';
}
*/ if(!empty($parm['type']))
if(!empty($parm['type']))
{
$newList = array();
$tmp = explode(",",$parm['type']);