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 | |
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')
-rw-r--r-- | mod/developers/views/default/page/shells/theme_preview.php | 23 | ||||
-rw-r--r-- | mod/developers/views/default/theme_preview/header.php | 42 | ||||
-rw-r--r-- | mod/developers/views/default/theme_preview/index.php | 22 | ||||
-rw-r--r-- | mod/developers/views/default/theme_preview/navigation.php (renamed from mod/developers/views/default/theme_preview/nav.php) | 0 |
4 files changed, 20 insertions, 67 deletions
diff --git a/mod/developers/views/default/page/shells/theme_preview.php b/mod/developers/views/default/page/shells/theme_preview.php index 6652c609a..e986a3965 100644 --- a/mod/developers/views/default/page/shells/theme_preview.php +++ b/mod/developers/views/default/page/shells/theme_preview.php @@ -17,6 +17,13 @@ header("Content-type: text/html; charset=UTF-8"); <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $vars['title']; ?></title> <link rel="stylesheet" href="<?php echo $screen; ?>" type="text/css" /> + <style> + .elgg-page-body { margin: 20px } + .elgg-page-header:after {content:'.'; display:block; clear:both; height:0; visibility: hidden} + .elgg-page-header .elgg-menu-page > li {float:left; padding: 5px} + .elgg-page-header .elgg-menu-page > li > a {padding: 2px 4px} + .elgg-page-header .elgg-menu-page > li.elgg-state-selected > a {background-color:#0054A7;} + </style> <!--[if gt IE 6]> <link rel="stylesheet" type="text/css" href="<?php echo $ie_url; ?>" /> <![endif]--> @@ -34,8 +41,18 @@ foreach (elgg_get_js() as $script) { </head> <body> -<?php -echo $vars['body']; -?> +<div class="elgg-page"> + <div class="elgg-page-header"> + <div class="elgg-inner"> + <?php echo elgg_view_menu('page'); ?> + </div> + </div> + <div class="elgg-page-body"> + <div class="elgg-inner"> + <?php echo elgg_view_title($vars['title']); ?> + <?php echo $vars['body']; ?> + </div> + </div> +</div> </body> </html>
\ No newline at end of file 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; diff --git a/mod/developers/views/default/theme_preview/index.php b/mod/developers/views/default/theme_preview/index.php deleted file mode 100644 index 5bb554d06..000000000 --- a/mod/developers/views/default/theme_preview/index.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php -/** - * Main index for theme preview - */ - -$url = "pg/theme_preview"; -$url = elgg_normalize_url($url); - -echo <<<HTML -<div class="elgg-page mal"> - <h1 class="mbl"><a href="$url/index">Index</a></h1> - <ul class="mtl"> - <li><a href="$url/general">General CSS</a></li> - <li><a href="$url/nav">Navigation CSS</a></li> - <li><a href="$url/forms">Form CSS</a></li> - <li><a href="$url/objects">Lists, modules, image blocks CSS</a></li> - <li><a href="$url/grid">Grid CSS</a></li> - <li><a href="$url/widgets">Widgets CSS</a></li> - <li><a href="$url/icons">Icons CSS</a></li> - </ul> -</div> -HTML; diff --git a/mod/developers/views/default/theme_preview/nav.php b/mod/developers/views/default/theme_preview/navigation.php index 4e6f4d3d6..4e6f4d3d6 100644 --- a/mod/developers/views/default/theme_preview/nav.php +++ b/mod/developers/views/default/theme_preview/navigation.php |