aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/object
diff options
context:
space:
mode:
Diffstat (limited to 'mod/pages/views/default/object')
-rw-r--r--mod/pages/views/default/object/page.php29
-rw-r--r--mod/pages/views/default/object/page_top.php29
2 files changed, 24 insertions, 34 deletions
diff --git a/mod/pages/views/default/object/page.php b/mod/pages/views/default/object/page.php
index 843209609..5b4af5198 100644
--- a/mod/pages/views/default/object/page.php
+++ b/mod/pages/views/default/object/page.php
@@ -1,21 +1,16 @@
<?php
- /**
- * Elgg Pages
- *
- * @package ElggPages
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2010
- * @link http://elgg.com/
- */
+/**
+ * Page view
+ *
+ * @package ElggPages
+ */
- if ($vars['full']) {
- echo elgg_view("pages/pageprofile",$vars);
+if ($vars['full']) {
+ echo elgg_view("pages/pageprofile", $vars);
+} else {
+ if (get_input('search_viewtype') == "gallery") {
+ echo elgg_view('pages/pagegallery', $vars);
} else {
- if (get_input('search_viewtype') == "gallery") {
- echo elgg_view('pages/pagegallery',$vars);
- } else {
- echo elgg_view("pages/pagelisting",$vars);
- }
+ echo elgg_view("pages/pagelisting", $vars);
}
-?>
+} \ No newline at end of file
diff --git a/mod/pages/views/default/object/page_top.php b/mod/pages/views/default/object/page_top.php
index 843209609..6922118c1 100644
--- a/mod/pages/views/default/object/page_top.php
+++ b/mod/pages/views/default/object/page_top.php
@@ -1,21 +1,16 @@
<?php
- /**
- * Elgg Pages
- *
- * @package ElggPages
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2010
- * @link http://elgg.com/
- */
+/**
+ * View for page object
+ *
+ * @package ElggPages
+ */
- if ($vars['full']) {
- echo elgg_view("pages/pageprofile",$vars);
+if ($vars['full']) {
+ echo elgg_view("pages/pageprofile", $vars);
+} else {
+ if (get_input('search_viewtype') == "gallery") {
+ echo elgg_view('pages/pagegallery', $vars);
} else {
- if (get_input('search_viewtype') == "gallery") {
- echo elgg_view('pages/pagegallery',$vars);
- } else {
- echo elgg_view("pages/pagelisting",$vars);
- }
+ echo elgg_view("pages/pagelisting", $vars);
}
-?>
+} \ No newline at end of file