mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
Fixes #3932 Added support for dynamic header/footer templates controlled by theme_shortcodes class.
This commit is contained in:
@@ -527,14 +527,16 @@ class e_parse_shortcode
|
||||
*
|
||||
* @return e_parse_shortcode
|
||||
*/
|
||||
public function loadThemeShortcodes()
|
||||
public function loadThemeShortcodes($theme=null)
|
||||
{
|
||||
global $register_sc;
|
||||
|
||||
if(file_exists(THEME."theme_shortcodes.php"))
|
||||
|
||||
$themePath = ($theme === null) ? THEME : e_THEME.$theme.'/';
|
||||
|
||||
if(file_exists($themePath."theme_shortcodes.php"))
|
||||
{
|
||||
$classFunc = 'theme_shortcodes';
|
||||
$path = THEME."theme_shortcodes.php";
|
||||
$path = $themePath."theme_shortcodes.php";
|
||||
include_once($path);
|
||||
$this->registerClassMethods($classFunc, $path, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user