1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +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

@ -204,7 +204,7 @@ class social_ui extends e_admin_ui
protected $fieldpref = array();
protected $preftabs = array(LAN_LOGIN, LAN_SOCIAL_ADMIN_14, LAN_SOCIAL_ADMIN_15, LAN_SOCIAL_ADMIN_16, LAN_SOCIAL_ADMIN_17, LAN_SOCIAL_ADMIN_37);
protected $preftabs = array(LAN_LOGIN, LAN_SOCIAL_ADMIN_14, LAN_SOCIAL_ADMIN_15, LAN_SOCIAL_ADMIN_16, LAN_SOCIAL_ADMIN_17, LAN_SOCIAL_ADMIN_37, 'pages'=>LAN_SOCIAL_ADMIN_01);
protected $prefs = array(
@ -234,6 +234,7 @@ class social_ui extends e_admin_ui
'og_image' => array('title'=> LAN_SOCIAL_ADMIN_42, 'type'=>'image', 'tab'=>5, 'data' => 'str','help'=>'og:image'),
'xurl_rss' => array('title'=> 'RSS', 'type'=>'bool', 'tab'=>'pages', 'data' => 'str','help'=>'Enable to include RSS with Social page icons (XURL)'),
);

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