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:
42
e107_plugins/rss_menu/e_url.php
Normal file
42
e107_plugins/rss_menu/e_url.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user