mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Update featurebox_menu.php
This commit is contained in:
@@ -8,13 +8,14 @@
|
|||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
|
|
||||||
// e107::Lan('featurebox', 'front');
|
// 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');
|
$type = vartrue(e107::getPlugPref('featurebox','menu_category'),'bootstrap_carousel');
|
||||||
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
||||||
|
|
||||||
if(!$text)
|
if(!$text)
|
||||||
{
|
{
|
||||||
echo "<div class='alert alert-block alert-warning'>There are no featurebox items assigned to the ".$type." template</div>";
|
echo "<div class='alert alert-block alert-warning'>".$message = e107::getParser()->lanVars(FBLAN_25, array('x'=>$type))."</div>";
|
||||||
// e107::getMessage()->addDebug("There are no featurebox items using the ".$type." template");
|
// e107::getMessage()->addDebug("There are no featurebox items using the ".$type." template");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user