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');
|
2017-06-06 07:16:42 +02:00
|
|
|
e107::includeLan(e_PLUGIN.'featurebox/languages/'.e_LANGUAGE.'_admin_featurebox.php'); // This line added to admin warning
|
2020-12-05 14:13:18 -08:00
|
|
|
$cat = e107::getPlugPref('featurebox','menu_category');
|
|
|
|
$type = vartrue($cat,'bootstrap_carousel');
|
2013-03-20 16:59:46 -07:00
|
|
|
$text = e107::getParser()->parseTemplate("{FEATUREBOX|".$type."}");
|
|
|
|
|
2018-07-21 10:08:13 -07:00
|
|
|
if(empty($text))
|
2013-03-20 16:59:46 -07:00
|
|
|
{
|
2018-07-21 10:08:13 -07:00
|
|
|
e107::getMessage()->addDebug("DEBUG: There are no featurebox items using the ".$type." template");
|
2013-03-20 16:59:46 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
echo $text;
|
|
|
|
unset($text);
|
|
|
|
|
2020-08-10 15:49:44 -07:00
|
|
|
|