From d7adaddab7189bc493d22d96fec424aedca09b11 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 8 Dec 2010 01:19:38 +0000 Subject: reorganized the page views as discussed git-svn-id: http://code.elgg.org/elgg/trunk@7559 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/rss/page/shells/default.php | 43 ++++++++++++++++++++++++++++++ views/rss/page_elements/contentwrapper.php | 7 ----- views/rss/page_shells/default.php | 43 ------------------------------ 3 files changed, 43 insertions(+), 50 deletions(-) create mode 100644 views/rss/page/shells/default.php delete mode 100644 views/rss/page_elements/contentwrapper.php delete mode 100644 views/rss/page_shells/default.php (limited to 'views/rss') diff --git a/views/rss/page/shells/default.php b/views/rss/page/shells/default.php new file mode 100644 index 000000000..444fa99b5 --- /dev/null +++ b/views/rss/page/shells/default.php @@ -0,0 +1,43 @@ +\n"; + +// Set title +if (empty($vars['title'])) { + $title = $vars['config']->sitename; +} else if (empty($vars['config']->sitename)) { + $title = $vars['title']; +} else { + $title = $vars['config']->sitename . ": " . $vars['title']; +} + +// Remove RSS from URL +$url = str_replace('?view=rss','', full_url()); +$url = str_replace('&view=rss','', $url); + +?> + + > + + <![CDATA[<?php echo $title; ?>]]> + + + + + diff --git a/views/rss/page_elements/contentwrapper.php b/views/rss/page_elements/contentwrapper.php deleted file mode 100644 index 3e056ae91..000000000 --- a/views/rss/page_elements/contentwrapper.php +++ /dev/null @@ -1,7 +0,0 @@ -\n"; - -// Set title -if (empty($vars['title'])) { - $title = $vars['config']->sitename; -} else if (empty($vars['config']->sitename)) { - $title = $vars['title']; -} else { - $title = $vars['config']->sitename . ": " . $vars['title']; -} - -// Remove RSS from URL -$url = str_replace('?view=rss','', full_url()); -$url = str_replace('&view=rss','', $url); - -?> - - > - - <![CDATA[<?php echo $title; ?>]]> - - - - - -- cgit v1.2.3