diff options
Diffstat (limited to 'mod/guidtool/views/default/guidtool')
-rw-r--r-- | mod/guidtool/views/default/guidtool/gallery.php | 29 | ||||
-rw-r--r-- | mod/guidtool/views/default/guidtool/listing.php | 39 | ||||
-rw-r--r-- | mod/guidtool/views/default/guidtool/profile.php | 16 |
3 files changed, 0 insertions, 84 deletions
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 |