aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/views/default/page
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 00:32:08 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 00:32:08 +0000
commite3ae2734233fd11e5fedd7cd2fc3f87cff79dc20 (patch)
tree01255e78ad74c0e92200cd3846bb2e5df68b6d53 /mod/developers/views/default/page
parent8f5c54b7acfd027bf1f95b70931a3f6ef61c8eb6 (diff)
downloadelgg-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/page')
-rw-r--r--mod/developers/views/default/page/shells/theme_preview.php23
1 files changed, 20 insertions, 3 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