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

Support for Bootstrap5. Clear cache in theme manager when choosing themes.

This commit is contained in:
Cameron
2020-12-29 12:43:25 -08:00
parent e595c0841a
commit 10ad436e28
6 changed files with 128 additions and 5 deletions

View File

@@ -64,7 +64,13 @@ class social_shortcodes extends e_shortcode
$tp = e107::getParser();
$tmpl = !empty($parm['template']) ? $parm['template'] : 'default';
$template = e107::getTemplate('social','social_xurl',$tmpl);
$template = e107::getTemplate('social','social_xurl', $tmpl);
if(empty($template)) // backup if the theme changes.
{
$template = e107::getTemplate('social','social_xurl', 'default');
// return (ADMIN) ? "Unable to load social template [".$tmpl."]" : ''; // NO LAN
}
$social = array(
'rss' => array('href'=> (e107::isInstalled('rss_menu') ? e107::url('rss_menu', 'index', array('rss_url'=>'news')) : ''), 'title'=>'RSS/Atom Feed'),