aboutsummaryrefslogtreecommitdiff
path: root/views/default/layouts
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-07 02:47:31 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-07 02:47:31 +0000
commit9cd7ebd1ece016577c435b85f56d6c30545ff363 (patch)
tree47ef92f31014403699387797bc8498c64bdcffe2 /views/default/layouts
parenta1d3c90fb72cd14f61b1209f9c0a0d3a106c71a8 (diff)
downloadelgg-9cd7ebd1ece016577c435b85f56d6c30545ff363.tar.gz
elgg-9cd7ebd1ece016577c435b85f56d6c30545ff363.tar.bz2
reorganized the layout views
git-svn-id: http://code.elgg.org/elgg/trunk@7553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layouts')
-rw-r--r--views/default/layouts/administration.php36
-rw-r--r--views/default/layouts/default.php18
-rw-r--r--views/default/layouts/main_content.php53
-rw-r--r--views/default/layouts/one_column.php16
-rw-r--r--views/default/layouts/one_column_with_sidebar.php31
-rw-r--r--views/default/layouts/one_sidebar.php31
-rw-r--r--views/default/layouts/two_sidebar.php42
-rw-r--r--views/default/layouts/widgets.php46
8 files changed, 0 insertions, 273 deletions
diff --git a/views/default/layouts/administration.php b/views/default/layouts/administration.php
deleted file mode 100644
index f7ed84935..000000000
--- a/views/default/layouts/administration.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
- * Elgg Admin Area Canvas
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['content'] Content string
- * @uses $vars['sidebar'] Optional sidebar content
- */
-?>
-
-<div id="admin_header">
- <span class="network-title"><h2>
- <a href="<?php echo elgg_get_site_url(); ?>">
- <?php echo $vars['config']->sitename; echo " ".elgg_echo('admin'); ?></a>
- <a class="return_to_network" href="<?php echo elgg_get_site_url(); ?>">&lt;&lt; Return to network</a>
- </h2></span>
-</div>
-
-<div id="elgg-content" class="clearfix admin_area">
-
- <div id="elgg-page-contents" class="clearfix">
- <?php
- if (isset($vars['content'])) {
- echo $vars['content'];
- }
- ?>
- </div>
- <div id="elgg-sidebar" class="clearfix">
- <?php
- echo elgg_view('page_elements/sidebar', $vars);
- ?>
- </div>
-</div>
-<div id="admin_footer"></div> \ No newline at end of file
diff --git a/views/default/layouts/default.php b/views/default/layouts/default.php
deleted file mode 100644
index 60dc90b0d..000000000
--- a/views/default/layouts/default.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-/**
- * Elgg default layout
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['content'] Content string
- */
-
-// @todo deprecated so remove in Elgg 2.0
-if (isset($vars['area1'])) {
- echo $vars['area1'];
-}
-
-if (isset($vars['content'])) {
- echo $vars['content'];
-}
diff --git a/views/default/layouts/main_content.php b/views/default/layouts/main_content.php
deleted file mode 100644
index 908197a39..000000000
--- a/views/default/layouts/main_content.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-/**
- * Main content area layout
- *
- * @uses $vars['content'] HTML of main content area
- * @uses $vars['sidebar'] HTML of the sidebar
- * @uses $vars['header'] HTML of the content area header (override)
- * @uses $vars['nav'] HTML of the content area nav (override)
- * @uses $vars['footer'] HTML of the content area footer
- * @uses $vars['filter'] HTML of the content area filter (override)
- * @uses $vars['title'] Title text (override)
- * @uses $vars['context'] Page context (override)
- * @uses $vars['buttons'] Content header buttons (override)
- * @uses $vars['filter_context'] Filter context: everyone, friends, mine
- */
-
-// give plugins an opportunity to add to content sidebars
-$sidebar_content = elgg_get_array_value('sidebar', $vars, '');
-$params = $vars;
-$params['content'] = $sidebar_content;
-$sidebar = elgg_view('content/sidebar', $params);
-
-// navigation defaults to breadcrumbs
-$nav = elgg_get_array_value('nav', $vars, elgg_view('navigation/breadcrumbs'));
-
-// allow page handlers to override the default header
-if (isset($vars['header'])) {
- $vars['header_override'] = $vars['header'];
-}
-$header = elgg_view('content/header', $vars);
-
-// allow page handlers to override the default filter
-if (isset($vars['filter'])) {
- $vars['filter_override'] = $vars['filter'];
-}
-$filter = elgg_view('content/filter', $vars);
-
-// the all important content
-$content = elgg_get_array_value('content', $vars, '');
-
-// optional footer for main content area
-$footer_content = elgg_get_array_value('footer', $vars, '');
-$params = $vars;
-$params['content'] = $footer_content;
-$footer = elgg_view('content/footer', $params);
-
-$body = $nav . $header . $filter . $content . $footer;
-
-$params = array(
- 'body' => $body,
- 'sidebar' => $sidebar,
-);
-echo elgg_view_layout('one_sidebar', $params);
diff --git a/views/default/layouts/one_column.php b/views/default/layouts/one_column.php
deleted file mode 100644
index 84a304e14..000000000
--- a/views/default/layouts/one_column.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/**
- * Elgg one-column layout
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['content'] Content string
- */
-?>
-<div class="elgg-layout-one_column elgg-center elgg-width-classic clearfix">
- <div class="elgg-body">
- <?php echo $vars['content']; ?>
- <?php echo $vars['area1']; ?>
- </div>
-</div> \ No newline at end of file
diff --git a/views/default/layouts/one_column_with_sidebar.php b/views/default/layouts/one_column_with_sidebar.php
deleted file mode 100644
index e408c6c1c..000000000
--- a/views/default/layouts/one_column_with_sidebar.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * Elgg 1 column with sidebar layout
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['content'] The content string for the main column
- * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
- */
-?>
-
-<div class="elgg-layout-sidebar elgg-center elgg-width-classic clearfix">
- <div class="elgg-sidebar elgg-aside">
- <?php
- echo elgg_view('page_elements/sidebar', $vars);
- ?>
- </div>
-
- <div class="elgg-main elgg-body">
- <?php
- // @todo deprecated so remove in Elgg 2.0
- if (isset($vars['area1'])) {
- echo $vars['area1'];
- }
- if (isset($vars['content'])) {
- echo $vars['content'];
- }
- ?>
- </div>
-</div>
diff --git a/views/default/layouts/one_sidebar.php b/views/default/layouts/one_sidebar.php
deleted file mode 100644
index d0bb3879f..000000000
--- a/views/default/layouts/one_sidebar.php
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/**
- * Elgg main column with one sidebar layout
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['body'] Content HTML for the main column
- * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
- */
-?>
-
-<div class="elgg-layout-sidebar elgg-center elgg-width-classic clearfix">
- <div class="elgg-sidebar elgg-aside">
- <?php
- echo elgg_view('page_elements/sidebar', $vars);
- ?>
- </div>
-
- <div class="elgg-main elgg-body">
- <?php
- // @todo deprecated so remove in Elgg 2.0
- if (isset($vars['area1'])) {
- echo $vars['area1'];
- }
- if (isset($vars['body'])) {
- echo $vars['body'];
- }
- ?>
- </div>
-</div>
diff --git a/views/default/layouts/two_sidebar.php b/views/default/layouts/two_sidebar.php
deleted file mode 100644
index 26fb64920..000000000
--- a/views/default/layouts/two_sidebar.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-/**
- * Elgg 2 sidebar layout
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['content'] The content string for the main column
- * @uses $vars['sidebar'] Optional content that is displayed in the sidebar
- * @uses $vars['sidebar-alt'] Optional content that is displayed in the alternate sidebar
- */
-?>
-
-<div class="elgg-layout-two-sidebar elgg-center elgg-width-classic clearfix">
- <div class="elgg-sidebar elgg-aside">
- <?php
- echo elgg_view('page_elements/sidebar', $vars);
- ?>
- </div>
- <div class="elgg-sidebar-alt elgg-aside">
- <?php
- //$params = $vars;
- //$params['sidebar'] = $vars['sidebar-alt'];
- $params = array(
- 'sidebar' => elgg_view('layout_elements/module', array('title' => 'Testing', 'body' => 'Hello, world!'))
- );
- echo elgg_view('page_elements/sidebar', $params);
- ?>
- </div>
-
- <div class="elgg-main elgg-body">
- <?php
- // @todo deprecated so remove in Elgg 2.0
- if (isset($vars['area1'])) {
- echo $vars['area1'];
- }
- if (isset($vars['content'])) {
- echo $vars['content'];
- }
- ?>
- </div>
-</div>
diff --git a/views/default/layouts/widgets.php b/views/default/layouts/widgets.php
deleted file mode 100644
index 130b2eaad..000000000
--- a/views/default/layouts/widgets.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/**
- * Elgg widgets layout
- *
- * @uses $vars['box'] Optional display box at the top of layout
- * @uses $vars['num_columns'] Number of widget columns for this layout
- * @uses $vars['show_add_widgets'] Display the add widgets button and panel
- */
-
-$box = elgg_get_array_value('box', $vars, '');
-$num_columns = elgg_get_array_value('num_columns', $vars, 3);
-$show_add_widgets = elgg_get_array_value('show_add_widgets', $vars, true);
-
-$owner = elgg_get_page_owner();
-$context = elgg_get_context();
-elgg_push_context('widgets');
-
-$widgets = elgg_get_widgets($owner->guid, $context);
-
-if (elgg_can_edit_widget_layout($context)) {
- if ($show_add_widgets) {
- echo elgg_view('widgets/add-button');
- }
- $params = array(
- 'widgets' => $widgets,
- 'context' => $context,
- );
- echo elgg_view('widgets/add_panel', $params);
-}
-
-echo $vars['box'];
-
-$widget_class = "widget-{$num_columns}-columns";
-for ($column_index = 1; $column_index <= $num_columns; $column_index++) {
- $column_widgets = $widgets[$column_index];
-
- echo "<div class=\"widget-column $widget_class\" id=\"widget-col-$column_index\">";
- if (is_array($column_widgets) && sizeof($column_widgets) > 0) {
- foreach ($column_widgets as $widget) {
- echo elgg_view_entity($widget);
- }
- }
- echo '</div>';
-}
-
-elgg_pop_context(); \ No newline at end of file