mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Code cleanup
This commit is contained in:
@@ -32,7 +32,8 @@ class featurebox_shortcodes// must match the plugin's folder name. ie. [PLUGIN_F
|
||||
|
||||
if($parm == null && $mod == '') // ie {FEATUREBOX}
|
||||
{
|
||||
$type = vartrue(e107::getPlugPref('featurebox','menu_category'),'bootstrap_carousel');
|
||||
$menCat = e107::getPlugPref('featurebox','menu_category');
|
||||
$type = vartrue($menCat,'bootstrap_carousel');
|
||||
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
||||
|
||||
return $text;
|
||||
|
@@ -9,8 +9,8 @@ if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
// e107::Lan('featurebox', 'front');
|
||||
e107::includeLan(e_PLUGIN.'featurebox/languages/'.e_LANGUAGE.'_admin_featurebox.php'); // This line added to admin warning
|
||||
|
||||
$type = vartrue(e107::getPlugPref('featurebox','menu_category'),'bootstrap_carousel');
|
||||
$cat = e107::getPlugPref('featurebox','menu_category');
|
||||
$type = vartrue($cat,'bootstrap_carousel');
|
||||
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
||||
|
||||
if(empty($text))
|
||||
|
Reference in New Issue
Block a user