1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fixes #948 - RSS admin area rewrite. RSS menu updated for Bootstrap and RSS sef-urls added.

This commit is contained in:
Cameron
2015-04-03 18:39:56 -07:00
parent 11f199e4ef
commit 5be3a86e71
9 changed files with 694 additions and 333 deletions

View File

@@ -0,0 +1,42 @@
<?php
/*
* e107 Bootstrap CMS
*
* Copyright (C) 2008-2014 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*/
if (!defined('e107_INIT')) { exit; }
// v2.x Standard - Simple mod-rewrite module.
class rss_menu_url // plugin-folder + '_url'
{
function config()
{
$config = array();
$config['rss'] = array(
'regex' => '^feed/(.*)/rss/?([\d]*)?$',
'sef' => 'feed/{rss_url}/rss/{rss_topicid}',
'redirect' => '{e_PLUGIN}rss_menu/rss.php?cat=$1&type=2&topic=$2'
);
$config['atom'] = array(
'regex' => '^feed/(.*)/atom/?([\d]*)?$',
'sef' => 'feed/{rss_url}/atom/{rss_topicid}',
'redirect' => '{e_PLUGIN}rss_menu/rss.php?cat=$1&type=4&topic=$2'
);
$config['index'] = array(
'regex' => '^feed/?$',
'sef' => 'feed',
'redirect' => '{e_PLUGIN}rss_menu/rss.php',
);
return $config;
}
}