aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/views/default/pages/sidebar
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 12:28:33 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 12:28:33 +0000
commit090f60fb6ace958748752e439548f1fa8673258f (patch)
treea39aa1cf7beeb1ae657feb00edd785fecae94fc4 /mod/pages/views/default/pages/sidebar
parent55724ff6f6818f2c1b16d4bacd912ae2eb745fdb (diff)
downloadelgg-090f60fb6ace958748752e439548f1fa8673258f.tar.gz
elgg-090f60fb6ace958748752e439548f1fa8673258f.tar.bz2
Once again removing an accidentally committed plugin
git-svn-id: https://code.elgg.org/elgg/trunk@1896 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/views/default/pages/sidebar')
-rw-r--r--mod/pages/views/default/pages/sidebar/sidebarthis.php82
-rw-r--r--mod/pages/views/default/pages/sidebar/starter.php21
-rw-r--r--mod/pages/views/default/pages/sidebar/tree.php8
-rw-r--r--mod/pages/views/default/pages/sidebar/wrapper.php7
4 files changed, 0 insertions, 118 deletions
diff --git a/mod/pages/views/default/pages/sidebar/sidebarthis.php b/mod/pages/views/default/pages/sidebar/sidebarthis.php
deleted file mode 100644
index ffdc6c802..000000000
--- a/mod/pages/views/default/pages/sidebar/sidebarthis.php
+++ /dev/null
@@ -1,82 +0,0 @@
-[<?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
- * @link http://elgg.com/
- */
-
- global $CONFIG;
- $entity = $vars['entity'];
- $parent = $vars['entity']->parent_guid;
-
- $currentpage = (int) get_input('currentpage');
- if ($currentpage) {
-
- $path = pages_get_path($currentpage);
- $pathstring = implode(',',$path);
-
- } else {
- $path = array();
- }
-
- function pages_draw_child($childentity, $path) {
-
- $child = "\n\t\t{\n";
- $child .= "\t\t\t\"text\": \"<a href=\\\"{$childentity->getURL()}\\\">{$childentity->title}</a>\",\n";
-
- $haschild = get_entities_from_metadata('parent_guid',$childentity->guid,'','',0,9999);
- if ($haschild) {
- if (in_array($childentity->getGUID(),$path)) {
- $child .= "\t\t\t\"expanded\": true,";
- $child .= "\t\t\t\"children\": [\n";
-
- $childstring = "";
- foreach($haschild as $subchild) {
- if (!empty($childstring)) $childstring .= ", ";
- $childstring .= pages_draw_child($subchild,$path);
- }
-
- $child .= $childstring . "\n\t\t\t]\n";
- } else {
- $child .= "\t\t\t\"id\": \"{$childentity->getGUID()}\",\n\t\t\t\"hasChildren\": true\n";
- }
-
- }
- $child .= "\t\t}";
- return $child;
- }
-
- if (!$parent) {
- echo "{\n";
- echo "\t\"text\": \"<a href=\\\"{$vars['entity']->getURL()}\\\">{$vars['entity']->title}</a>\",\n";
- }
- $children = "";
- if (isset($vars['children']) && is_array($vars['children']) && (!isset($vars['fulltree']) || $vars['fulltree'] == 0)) {
- if (!$parent) echo "\t" . '"expanded": true,' . "\n";
- if (!$parent) echo "\t" . '"children": [' . "\n";
- foreach($vars['children'] as $child) {
- if (!empty($children)) $children .= ", \n";
- /*
- $children .= "\n\t\t{\n";
- $children .= "\t\t\t\"text\": \"<a href=\\\"{$child->getURL()}\\\">{$child->title}</a>\",\n";
-
- $haschild = get_entities_from_metadata('parent_guid',$child->guid,'','',0,10,0,'',0,true);
- if ($haschild) {
- $children .= "\t\t\t\"id\": \"{$child->getGUID()}\",\n\t\t\t\"hasChildren\": true\n";
- }
- $children .= "\t\t}";
- */
- $children .= pages_draw_child($child,$path);
- }
- echo $children;
- if (!$parent) echo "\t\t" . ']' . "\n";
-
- }
-
- if (!$parent) echo "}";
-
-?>] \ No newline at end of file
diff --git a/mod/pages/views/default/pages/sidebar/starter.php b/mod/pages/views/default/pages/sidebar/starter.php
deleted file mode 100644
index 234ec28e5..000000000
--- a/mod/pages/views/default/pages/sidebar/starter.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
- if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) {
-
-?>
-
-<script type="text/javascript">
-
- $(document).ready( function() {
-
- $("#pagetree<?php echo $vars['entity']->getGUID(); ?>").click();
-
- });
-
-</script>
-
-<?php
-
- }
-
-?> \ No newline at end of file
diff --git a/mod/pages/views/default/pages/sidebar/tree.php b/mod/pages/views/default/pages/sidebar/tree.php
deleted file mode 100644
index 1424eeebe..000000000
--- a/mod/pages/views/default/pages/sidebar/tree.php
+++ /dev/null
@@ -1,8 +0,0 @@
-<?php
-
-?>
-<div id="sidebar_page_tree">
- <h3><?php echo elgg_echo("pages:navigation"); ?></h3>
- <div id="pagesTree" class="pagesTreeContainer"></div>
-</div>
-<br class="clearfloat" /> \ No newline at end of file
diff --git a/mod/pages/views/default/pages/sidebar/wrapper.php b/mod/pages/views/default/pages/sidebar/wrapper.php
deleted file mode 100644
index 08e6a5b7d..000000000
--- a/mod/pages/views/default/pages/sidebar/wrapper.php
+++ /dev/null
@@ -1,7 +0,0 @@
-<?php
-
- echo "[";
- echo $vars['body'];
- echo "]";
-
-?> \ No newline at end of file