1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 03:54:09 +02:00

Issue #5160 Add a flag for the RSS icon.

This commit is contained in:
camer0n
2023-12-19 16:01:54 -08:00
parent 356a7c2e7f
commit 04030cb039
2 changed files with 3 additions and 4 deletions

View File

@@ -82,9 +82,7 @@ class social_shortcodes extends e_shortcode
// 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'),
);
$social = empty(e107::pref('social','xurl_rss')) ? [] : array('rss'=> array('href'=> (e107::isInstalled('rss_menu') ? e107::url('rss_menu', 'index', array('rss_url'=>'news')) : ''), 'title'=>'RSS/Atom Feed') );
$json = file_get_contents(__DIR__."/xurls.json");
$xurls = e107::unserialize($json);