mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Minor fixes to the rss plugin.
This commit is contained in:
@@ -17,7 +17,7 @@ class chatbox_menu_rss // plugin-folder + '_rss'
|
||||
/**
|
||||
* Admin RSS Configuration
|
||||
*/
|
||||
function config() // XXX TODO // Have admin read this.
|
||||
function config()
|
||||
{
|
||||
$config = array();
|
||||
|
||||
@@ -25,7 +25,6 @@ class chatbox_menu_rss // plugin-folder + '_rss'
|
||||
'name' => 'Chatbox Posts',
|
||||
'url' => 'chatbox',
|
||||
'topic_id' => '',
|
||||
'path' => 'chatbox_menu', // known
|
||||
'description' => 'this is the rss feed for the chatbox entries', // that's 'description' not 'text'
|
||||
'class' => '0',
|
||||
'limit' => '9'
|
||||
|
@@ -651,6 +651,7 @@ class rss
|
||||
|
||||
foreach($data as $v)
|
||||
{
|
||||
$v['path'] = $val;
|
||||
array_push($plugin_feedlist,$v);
|
||||
}
|
||||
|
||||
@@ -659,7 +660,7 @@ class rss
|
||||
|
||||
$feedlist = array_merge($feedlist, $plugin_feedlist);
|
||||
|
||||
// print_a($feedlist);
|
||||
// print_a($feedlist);
|
||||
|
||||
$render=FALSE;
|
||||
$i=0;
|
||||
|
@@ -164,6 +164,11 @@ SC_END
|
||||
|
||||
SC_BEGIN RSS_ADMIN_IMPORT_CHECK
|
||||
global $feed, $rs, $tp, $i;
|
||||
if($feed['description'])
|
||||
{
|
||||
$feed['text'] = $feed['description'];
|
||||
}
|
||||
|
||||
$text = "<input type='checkbox' name='importid[$i]' value='1' />";
|
||||
$text .= "<input type='hidden' name='name[$i]' value='".$tp->toForm($feed['name'])."' />";
|
||||
$text .= "<input type='hidden' name='url[$i]' value='".$tp->toForm($feed['url'])."' />";
|
||||
|
@@ -5,9 +5,9 @@ if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:100%"); }
|
||||
// Rss listing
|
||||
if(!isset($RSS_LIST_HEADER))
|
||||
{
|
||||
$RSS_LIST_HEADER = "<table class='fborder' style='".USER_WIDTH."'>
|
||||
$RSS_LIST_HEADER = "<table class='table table-striped fborder' style='".USER_WIDTH."'>
|
||||
<tr>
|
||||
<td class='fcaption' style='width:55%'>".RSS_LAN_ADMIN_4."</td>
|
||||
<td class='fcaption' style='width:55%'> </td>
|
||||
<td class='fcaption' style='text-align:right'>".RSS_PLUGIN_LAN_6."</td>
|
||||
</tr>";
|
||||
}
|
||||
|
Reference in New Issue
Block a user