1
0
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:
Cameron
2019-08-22 14:28:59 -07:00
parent 68e4fd7d03
commit 1d45f1e4c4
5 changed files with 25 additions and 4 deletions

View File

@@ -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);
}