mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Code Cleanup
This commit is contained in:
@@ -27,9 +27,10 @@ class theme_library
|
||||
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)
|
||||
{
|
||||
$bootswatch = e107::pref('theme', 'bootswatch', false);
|
||||
|
@@ -136,7 +136,8 @@ class theme_shortcodes extends e_shortcode
|
||||
|
||||
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'.
|
||||
|
||||
$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.
|
||||
}
|
||||
|
||||
unset($parm);
|
||||
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['featured'] = 0;
|
||||
|
||||
|
||||
unset($data);
|
||||
return "<div class='container'>". e107::getObject('news')->render_newsgrid($parm) ."</div>";
|
||||
|
||||
|
||||
@@ -346,4 +348,4 @@ class theme_shortcodes extends e_shortcode
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user