1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 15:46:44 +02:00

Code Cleanup

This commit is contained in:
Cameron
2020-04-28 14:16:38 -07:00
parent 568d8feb77
commit 8b50ddc9fd
2 changed files with 9 additions and 6 deletions

View File

@@ -27,9 +27,10 @@ class theme_library
return array(); return array();
} }
/** /**
* Alters library information before detection and caching takes place. * Alters library information before detection and caching takes place.
*/ * @param $libraries
*/
function config_alter(&$libraries) function config_alter(&$libraries)
{ {
$bootswatch = e107::pref('theme', 'bootswatch', false); $bootswatch = e107::pref('theme', 'bootswatch', false);

View File

@@ -137,6 +137,7 @@ class theme_shortcodes extends e_shortcode
e107::includeLan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); e107::includeLan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php");
$tp = e107::getParser(); $tp = e107::getParser();
$login_menu_shortcodes = null;
require(e_PLUGIN."login_menu/login_menu_shortcodes.php"); // don't use 'require_once'. require(e_PLUGIN."login_menu/login_menu_shortcodes.php"); // don't use 'require_once'.
$direction = vartrue($parm['dir']) == 'up' ? ' dropup' : ''; $direction = vartrue($parm['dir']) == 'up' ? ' dropup' : '';
@@ -309,6 +310,7 @@ class theme_shortcodes extends e_shortcode
$text .= $tp->parseTemplate($TEMPLATE, true, $sc); // parse news shortcodes. $text .= $tp->parseTemplate($TEMPLATE, true, $sc); // parse news shortcodes.
} }
unset($parm);
return $text; return $text;
@@ -338,7 +340,7 @@ class theme_shortcodes extends e_shortcode
$parm['layout'] = 'media-list'; // default | or any key as defined in news_grid_template.php $parm['layout'] = 'media-list'; // default | or any key as defined in news_grid_template.php
$parm['featured'] = 0; $parm['featured'] = 0;
unset($data);
return "<div class='container'>". e107::getObject('news')->render_newsgrid($parm) ."</div>"; return "<div class='container'>". e107::getObject('news')->render_newsgrid($parm) ."</div>";
@@ -346,4 +348,4 @@ class theme_shortcodes extends e_shortcode
} }
?>