1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-03 17:34:59 +02:00
php-e107/e107_plugins/featurebox/featurebox_menu.php
2017-06-06 07:16:42 +02:00

26 lines
766 B
PHP

<?php
/*
* Copyright (c) 2014 e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
*
* Gallery Template
*/
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');
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
if(!$text)
{
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");
}
echo $text;
unset($text);
?>