diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-14 21:41:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-14 21:41:44 -0300 |
commit | 867e31999f3c8a77c01a1d4e881de593438b51b3 (patch) | |
tree | 9a3961a827243455e76d2ac53519f5109459e62d /mod/saravea_theme/views/default/page | |
parent | 65285c74f1ee92981aaf5570e4ba5075e0ad6d2f (diff) | |
parent | beaab428eb8b6e19ca6d413249f6307100d9b853 (diff) | |
download | elgg-867e31999f3c8a77c01a1d4e881de593438b51b3.tar.gz elgg-867e31999f3c8a77c01a1d4e881de593438b51b3.tar.bz2 |
Merge commit 'beaab428eb8b6e19ca6d413249f6307100d9b853' as 'mod/saravea_theme'
Diffstat (limited to 'mod/saravea_theme/views/default/page')
-rw-r--r-- | mod/saravea_theme/views/default/page/elements/shortcut_icon.php | 6 | ||||
-rw-r--r-- | mod/saravea_theme/views/default/page/layouts/one_sidebar.php | 48 |
2 files changed, 54 insertions, 0 deletions
diff --git a/mod/saravea_theme/views/default/page/elements/shortcut_icon.php b/mod/saravea_theme/views/default/page/elements/shortcut_icon.php new file mode 100644 index 000000000..c629a40c0 --- /dev/null +++ b/mod/saravea_theme/views/default/page/elements/shortcut_icon.php @@ -0,0 +1,6 @@ +<?php
+/**
+ * Displays the default shortcut icon
+ */
+?>
+<link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>mod/saravea_theme/_graphics/favicon.ico" />
diff --git a/mod/saravea_theme/views/default/page/layouts/one_sidebar.php b/mod/saravea_theme/views/default/page/layouts/one_sidebar.php new file mode 100644 index 000000000..9ed9d12c0 --- /dev/null +++ b/mod/saravea_theme/views/default/page/layouts/one_sidebar.php @@ -0,0 +1,48 @@ +<?php +/** + * Layout for main column with one sidebar + * + * @package Elgg + * @subpackage Core + * + * @uses $vars['content'] Content HTML for the main column + * @uses $vars['sidebar'] Optional content that is displayed in the sidebar + * @uses $vars['title'] Optional title for main content area + * @uses $vars['class'] Additional class to apply to layout + * @uses $vars['nav'] HTML of the page nav (override) (default: breadcrumbs) + */ + +$class = 'elgg-layout elgg-layout-one-sidebar clearfix'; +if (isset($vars['class'])) { + $class = "$class {$vars['class']}"; +} + +// navigation defaults to breadcrumbs +$nav = elgg_extract('nav', $vars, elgg_view('navigation/breadcrumbs')); + +?> + +<div class="<?php echo $class; ?>"> + <div class="elgg-main elgg-body"> + <?php + echo $nav; + + if (isset($vars['title'])) { + echo elgg_view_title($vars['title']); + } + // @todo deprecated so remove in Elgg 2.0 + if (isset($vars['area1'])) { + echo $vars['area1']; + } + if (isset($vars['content'])) { + echo $vars['content']; + } + ?> + </div> + + <div class="elgg-sidebar"> + <?php + echo elgg_view('page/elements/sidebar', $vars); + ?> + </div> +</div> |