2013-03-20 16:59:46 -07:00
|
|
|
<?php
|
|
|
|
/*
|
2014-09-11 20:57:52 +02:00
|
|
|
* Copyright (c) 2014 e107 Inc e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
2013-03-20 16:59:46 -07:00
|
|
|
*
|
|
|
|
* Gallery Template
|
|
|
|
*/
|
2014-09-11 20:57:52 +02:00
|
|
|
|
2013-03-20 16:59:46 -07:00
|
|
|
if (!defined('e107_INIT')) { exit; }
|
|
|
|
|
|
|
|
// e107::Lan('featurebox', 'front');
|
|
|
|
|
|
|
|
$type = vartrue(e107::getPlugPref('featurebox','menu_category'),'bootstrap_carousel');
|
|
|
|
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
|
|
|
|
|
|
|
if(!$text)
|
|
|
|
{
|
2015-04-17 10:48:14 -07:00
|
|
|
echo "<div class='alert alert-block alert-warning'>There are no featurebox items assigned to the ".$type." template</div>";
|
2013-03-20 16:59:46 -07:00
|
|
|
// e107::getMessage()->addDebug("There are no featurebox items using the ".$type." template");
|
|
|
|
}
|
|
|
|
|
|
|
|
echo $text;
|
|
|
|
unset($text);
|
|
|
|
|
|
|
|
?>
|