diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 00:32:08 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-19 00:32:08 +0000 |
commit | e3ae2734233fd11e5fedd7cd2fc3f87cff79dc20 (patch) | |
tree | 01255e78ad74c0e92200cd3846bb2e5df68b6d53 /mod/developers/views/default/theme_preview/header.php | |
parent | 8f5c54b7acfd027bf1f95b70931a3f6ef61c8eb6 (diff) | |
download | elgg-e3ae2734233fd11e5fedd7cd2fc3f87cff79dc20.tar.gz elgg-e3ae2734233fd11e5fedd7cd2fc3f87cff79dc20.tar.bz2 |
theme_preview is using more familiar/correct page handling practices
git-svn-id: http://code.elgg.org/elgg/trunk@8300 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/views/default/theme_preview/header.php')
-rw-r--r-- | mod/developers/views/default/theme_preview/header.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/mod/developers/views/default/theme_preview/header.php b/mod/developers/views/default/theme_preview/header.php deleted file mode 100644 index 8a4a80449..000000000 --- a/mod/developers/views/default/theme_preview/header.php +++ /dev/null @@ -1,42 +0,0 @@ -<?php -/** - * Header for theme preview pages - * - * @uses $vars['title'] - * @uses $vars['page'] - * @uses $vars['pages'] - */ -$index_url = 'pg/theme_preview/'; -$index_url = elgg_normalize_url($index_url); - -$url = current_page_url(); - -$title = elgg_echo("theme_preview:{$vars['page']}"); - -$index = array_search($vars['page'], $vars['pages']); - -$previous = '< previous'; -if ($index > 0) { - $previous = elgg_view('output/url', array( - 'href' => "pg/theme_preview/{$vars['pages'][$index - 1]}", - 'text' => $previous, - )); -} - -$next = 'next >'; -if ($index < (count($vars['pages']) - 1)) { - $next = elgg_view('output/url', array( - 'href' => "pg/theme_preview/{$vars['pages'][$index + 1]}", - 'text' => $next, - )); -} - -echo <<<HTML -<h1 class="mbs"> - <a href="$index_url">Index</a> > - <a href="$url">$title</a> -</h1> -<div class="mbl"> - $previous $next -</div> -HTML; |