aboutsummaryrefslogtreecommitdiff
path: root/mod/guidtool/views
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 14:58:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-05 14:58:20 +0000
commit6ee2b596da12dc3ac5f6ba6d4ca5545df5beab2d (patch)
tree2cc20df8e2eb0345d934952cd06a4cf5a9430343 /mod/guidtool/views
parent89a9e93a915ca7c576e187f0c38d2c202fed05b2 (diff)
downloadelgg-6ee2b596da12dc3ac5f6ba6d4ca5545df5beab2d.tar.gz
elgg-6ee2b596da12dc3ac5f6ba6d4ca5545df5beab2d.tar.bz2
Farewell APIadmin, farewell GUIDtool. We'll see you over in the plugins repo.
git-svn-id: https://code.elgg.org/elgg/trunk@3096 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidtool/views')
-rw-r--r--mod/guidtool/views/default/forms/guidtool/export.php23
-rw-r--r--mod/guidtool/views/default/forms/guidtool/format.php40
-rw-r--r--mod/guidtool/views/default/forms/guidtool/import.php26
-rw-r--r--mod/guidtool/views/default/guidtool/gallery.php29
-rw-r--r--mod/guidtool/views/default/guidtool/listing.php39
-rw-r--r--mod/guidtool/views/default/guidtool/profile.php16
-rw-r--r--mod/guidtool/views/default/object/guidtoolwrapper.php21
7 files changed, 0 insertions, 194 deletions
diff --git a/mod/guidtool/views/default/forms/guidtool/export.php b/mod/guidtool/views/default/forms/guidtool/export.php
deleted file mode 100644
index f8b07368a..000000000
--- a/mod/guidtool/views/default/forms/guidtool/export.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $format = $vars['format'];
- if (!$format) $format = 'opendd';
-
- $entity_guid = get_input('entity_guid');
-
-
-?>
-<div id="export">
-<?php echo elgg_view('output/text', array('value' => htmlentities(file_get_contents($CONFIG->url . "export/$format/$entity_guid/"), ENT_QUOTES, 'UTF-8'))) ?>
-</div> \ No newline at end of file
diff --git a/mod/guidtool/views/default/forms/guidtool/format.php b/mod/guidtool/views/default/forms/guidtool/format.php
deleted file mode 100644
index 2d3cfa976..000000000
--- a/mod/guidtool/views/default/forms/guidtool/format.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- $formats = $vars['formats'];
-
- if (!$formats)
- $formats = array('opendd');
-
- $format = get_input('format');
- if ($format)
- {
- forward(get_input('forward_url') . $format . "/");
- exit;
- }
-
-?>
-
-<div class="contentWrapper">
- <form method="get">
- <select name="format">
- <?php
- foreach ($formats as $format)
- {
- ?>
- <option value="<?php echo $format; ?>"><?php echo $format; ?></option>
- <?php
- }
- ?>
- </select>
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("go"); ?>" />
- </form>
-</div> \ No newline at end of file
diff --git a/mod/guidtool/views/default/forms/guidtool/import.php b/mod/guidtool/views/default/forms/guidtool/import.php
deleted file mode 100644
index f9348bffa..000000000
--- a/mod/guidtool/views/default/forms/guidtool/import.php
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $format = $vars['format'];
- if (!$format) $format = 'opendd';
-
-
- $formbody = "<div class=\"contentWrapper\"><p>" . sprintf(elgg_echo('guidtool:import:desc'), $format) . "</p>" .
- elgg_view('input/plaintext', array('internalname' => 'data')) . elgg_view('input/submit', array('value' => elgg_echo("save")));
-?>
-<div>
-<?php
- echo elgg_view('input/form', array('body' => $formbody, 'action' => "{$CONFIG->url}action/import/$format"))
-?>
-</div>
-</div> \ No newline at end of file
diff --git a/mod/guidtool/views/default/guidtool/gallery.php b/mod/guidtool/views/default/guidtool/gallery.php
deleted file mode 100644
index 23148ee50..000000000
--- a/mod/guidtool/views/default/guidtool/gallery.php
+++ /dev/null
@@ -1,29 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $entity = $vars['entity']->entity;
- $by = $entity->getOwnerEntity();
-
-
- $strap = $entity->title ? $entity->title : $entity->name;
- $info .= "<p><b><a href=\"{$CONFIG->url}pg/guidtool/view/{$entity->guid}/\">[GUID:{$entity->guid}] " . get_class($entity) . " " . get_subtype_from_id($entity->subtype) . "</a></b> $strap</p>";
-
- $desc = $entity->description ? substr($entity->description, 0, 100) : "";
- $info .= "<p>$desc</p>";
-
- $info .= "<div>";
- if ($by) $info .= elgg_echo('by') . " <a href=\"".$by->getURL()."\">{$by->name}</a> ";
- $info .= " " . friendly_time($entity->time_created )."</div>";
-
- echo elgg_view_listing($icon, $info);
-?> \ No newline at end of file
diff --git a/mod/guidtool/views/default/guidtool/listing.php b/mod/guidtool/views/default/guidtool/listing.php
deleted file mode 100644
index d543b8e03..000000000
--- a/mod/guidtool/views/default/guidtool/listing.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $entity = $vars['entity']->entity;
- $by = $entity->getOwnerEntity();
-
- $icon = elgg_view(
- 'graphics/icon', array(
- 'entity' => $entity,
- 'size' => 'small',
- )
- );
-
- $ts = time();
- $token = generate_action_token($ts);
-
- $controllinks = "<a href=\"{$CONFIG->url}pg/guidtool/export/{$entity->guid}/\">".elgg_echo('export')."</a> ";
- if ($entity->canEdit())
- $controllinks .= elgg_view('output/confirmlink', array('text' => elgg_echo('delete'), 'href' => "{$CONFIG->url}action/guidtool/delete?guid={$entity->guid}&__elgg_token=$token&__elgg_ts=$ts"));
-
- $strap = $entity->title ? $entity->title : $entity->name;
- $info .= "<p><b><a href=\"{$CONFIG->url}pg/guidtool/view/{$entity->guid}/\">[GUID:{$entity->guid}] " . get_class($entity) . " " . get_subtype_from_id($entity->subtype) . "</a></b> $strap</p>";
-
- $info .= "<div>";
- if ($by) $info .= elgg_echo('by') . " <a href=\"".$by->getURL()."\">{$by->name}</a> ";
- $info .= " " . friendly_time($entity->time_created )." [$controllinks]</div>";
-
- echo elgg_view_listing($icon, $info);
-?> \ No newline at end of file
diff --git a/mod/guidtool/views/default/guidtool/profile.php b/mod/guidtool/views/default/guidtool/profile.php
deleted file mode 100644
index 6f76f7b3f..000000000
--- a/mod/guidtool/views/default/guidtool/profile.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- $entity_guid = $vars['entity_guid'];
-
-
- echo elgg_view('export/entity', array('entity' => get_entity($entity_guid)));
-?> \ No newline at end of file
diff --git a/mod/guidtool/views/default/object/guidtoolwrapper.php b/mod/guidtool/views/default/object/guidtoolwrapper.php
deleted file mode 100644
index 49845ad7a..000000000
--- a/mod/guidtool/views/default/object/guidtoolwrapper.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
- /**
- * Elgg GUID Tool
- *
- * @package ElggGUIDTool
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.com/
- */
-
- if ($vars['full']) {
- echo elgg_view("guidtool/profile",$vars);
- } else {
- if (get_input('search_viewtype') == "gallery") {
- echo elgg_view('guidtool/gallery',$vars);
- } else {
- echo elgg_view("guidtool/listing",$vars);
- }
- }
-?> \ No newline at end of file