]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
reorganized the layout views
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 7 Dec 2010 02:47:31 +0000 (02:47 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 7 Dec 2010 02:47:31 +0000 (02:47 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7553 36083f99-b078-4883-b0ff-0f9b5a30f544

15 files changed:
engine/lib/views.php
mod/blog/start.php
mod/blog/views/default/blog/sidebar_menu.php
mod/blog/views/default/blog/sidebar_revisions.php
views/default/layout/objects/media.php [moved from views/default/layout_elements/media.php with 100% similarity]
views/default/layout/objects/module.php [moved from views/default/layout_elements/module.php with 100% similarity]
views/default/layout/shells/administration.php [moved from views/default/layouts/administration.php with 100% similarity]
views/default/layout/shells/content.php [moved from views/default/layouts/main_content.php with 100% similarity]
views/default/layout/shells/default.php [moved from views/default/layouts/default.php with 100% similarity]
views/default/layout/shells/one_column.php [moved from views/default/layouts/one_column.php with 100% similarity]
views/default/layout/shells/one_column_with_sidebar.php [moved from views/default/layouts/one_column_with_sidebar.php with 100% similarity]
views/default/layout/shells/one_sidebar.php [moved from views/default/layouts/one_sidebar.php with 100% similarity]
views/default/layout/shells/two_sidebar.php [moved from views/default/layouts/two_sidebar.php with 100% similarity]
views/default/layout/shells/widgets.php [moved from views/default/layouts/widgets.php with 100% similarity]
views/default/output/tagcloud.php

index 17b93926cb9521cc60932a59e48170cc8b9d33ce..26d48be2fe7d997d9568e7e832721f3bf2c96834 100644 (file)
@@ -608,7 +608,7 @@ function page_draw($title, $body, $sidebar = "") {
  *  - one_column_with_sidebar A content column with sidebar.
  *  - widgets                 A widget canvas.
  *
- * The layout views take the form canvas/layouts/$layout_name
+ * The layout views take the form layout/shells/$layout_name
  * See the individual layouts for what options are supported. The two most
  * common layouts have these parameters:
  * one_column
@@ -617,7 +617,7 @@ function page_draw($title, $body, $sidebar = "") {
  *     content => string
  *     sidebar => string (optional)
  *
- * @param string $layout The name of the view in canvas/layouts/.
+ * @param string $layout The name of the view in layout/shells/.
  * @param array  $vars   Associative array of parameters for the layout view
  *
  * @return string The layout
@@ -636,10 +636,10 @@ function elgg_view_layout($layout_name, $vars = array()) {
                $param_array = $vars;
        }
 
-       if (elgg_view_exists("layouts/{$layout_name}")) {
-               return elgg_view("layouts/{$layout_name}", $param_array);
+       if (elgg_view_exists("layout/shells/$layout_name")) {
+               return elgg_view("layout/shells/$layout_name", $param_array);
        } else {
-               return elgg_view("layouts/default", $param_array);
+               return elgg_view("layout/shells/default", $param_array);
        }
 }
 
@@ -962,7 +962,7 @@ function elgg_view_comments($entity, $add_comment = true) {
  * Fixed width media on the side (image, icon, flash, etc.).
  * Descriptive content filling the rest of the column.
  *
- * This is a shortcut for {@elgg_view layout_elements/media}.
+ * This is a shortcut for {@elgg_view layout/objects/media}.
  *
  * @param string $icon The icon and other information
  * @param string $body Description content
@@ -974,7 +974,7 @@ function elgg_view_comments($entity, $add_comment = true) {
 function elgg_view_media($icon, $body, $vars = array()) {
        $vars['icon'] = $icon;
        $vars['body'] = $body;
-       return elgg_view('layout_elements/media', $vars);
+       return elgg_view('layout/objects/media', $vars);
 }
 
 /**
index f0967367d44d86d1406871527d1a6cb963cbf3c4..8caffcb5f435669dee21a0e9e28f57d37edefcb8 100644 (file)
@@ -173,7 +173,7 @@ function blog_page_handler($page) {
 
        $params['sidebar'] .= $sidebar_menu;
 
-       $body = elgg_view_layout('main_content', $params);
+       $body = elgg_view_layout('content', $params);
 
        echo elgg_view_page($title, $body);
 }
index 0be818c5ad0620983ac212e2cd923afb5d64a834..3d343d80e8fe6d7a385c731e1fbc12b8ae42f391 100644 (file)
@@ -31,7 +31,7 @@ echo elgg_view("blogs/sidebar", array("object_type" => 'blog'));
 $comments = get_annotations(0, "object", "blog", "generic_comment", "", 0, 4, 0, "desc");
 $title = elgg_echo('generic_comments:latest');
 $body = elgg_view('comments/latest', array('comments' => $comments));
-echo elgg_view('layout_elements/module', array('title' => $title, 'body' => $body));
+echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
 
 // only show archives for users or groups.
 // This is a limitation of the URL schema.
@@ -53,7 +53,7 @@ if ($page_owner && $vars['page'] != 'friends') {
                }
                $content .= '</ul>';
 
-               echo elgg_view('layout_elements/module', array('title' => $title, 'body' => $content));
+               echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $content));
        }
 
        // friends page lists all tags; mine lists owner's
index ca0a642f2edb7c16b0dd7ba75b4b3d7e2a71a0d6..e3919648bd8fa5ddbfccb1852e511b8d95743344 100644 (file)
@@ -72,6 +72,6 @@ if (elgg_instanceof($blog, 'object', 'blog') && $blog->canEdit()) {
 
                $body .= '</ul>';
 
-               echo elgg_view('layout_elements/module', array('title' => $title, 'body' => $body));
+               echo elgg_view('layout/objects/module', array('title' => $title, 'body' => $body));
        }
 }
\ No newline at end of file
index b0737c6f194cdfe93dd6cac126e8d6abbce6e00f..5840eabe46d262202b3b9f65b55b227df8291601 100644 (file)
@@ -68,7 +68,7 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) {
                        'body' => $cloud,
                        'body_class' => 'elgg-tagcloud',
                );
-               echo elgg_view('layout_elements/module', $params);
+               echo elgg_view('layout/objects/module', $params);
        } else {
                echo "<div class=\"elgg-tagcloud\">$cloud</div>";
        }