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:
parent
356a7c2e7f
commit
04030cb039
@ -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)'),
|
||||
|
||||
);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user