From cbb06b10079ee132aae4cbf573aeaa996f390165 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 31 Jul 2008 14:56:39 +0000 Subject: Guid tool for import, export and browsing. git-svn-id: https://code.elgg.org/elgg/trunk@1633 36083f99-b078-4883-b0ff-0f9b5a30f544 --- .../views/default/forms/guidtool/export.php | 23 +++++++++++++ .../views/default/forms/guidtool/format.php | 40 ++++++++++++++++++++++ mod/guidtool/views/default/guidtool/gallery.php | 26 ++++++++++++++ mod/guidtool/views/default/guidtool/listing.php | 31 +++++++++++++++++ mod/guidtool/views/default/guidtool/profile.php | 16 +++++++++ .../views/default/object/guidtoolwrapper.php | 21 ++++++++++++ 6 files changed, 157 insertions(+) create mode 100644 mod/guidtool/views/default/forms/guidtool/export.php create mode 100644 mod/guidtool/views/default/forms/guidtool/format.php create mode 100644 mod/guidtool/views/default/guidtool/gallery.php create mode 100644 mod/guidtool/views/default/guidtool/listing.php create mode 100644 mod/guidtool/views/default/guidtool/profile.php create mode 100644 mod/guidtool/views/default/object/guidtoolwrapper.php (limited to 'mod/guidtool/views/default') diff --git a/mod/guidtool/views/default/forms/guidtool/export.php b/mod/guidtool/views/default/forms/guidtool/export.php new file mode 100644 index 000000000..cb92991a2 --- /dev/null +++ b/mod/guidtool/views/default/forms/guidtool/export.php @@ -0,0 +1,23 @@ + +
+ htmlentities(file_get_contents($CONFIG->url . "export/$format/$entity_guid/")))) ?> +
\ 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 new file mode 100644 index 000000000..7a3f397d5 --- /dev/null +++ b/mod/guidtool/views/default/forms/guidtool/format.php @@ -0,0 +1,40 @@ + + +
+
+ + " /> +
+
\ No newline at end of file diff --git a/mod/guidtool/views/default/guidtool/gallery.php b/mod/guidtool/views/default/guidtool/gallery.php new file mode 100644 index 000000000..9212df17b --- /dev/null +++ b/mod/guidtool/views/default/guidtool/gallery.php @@ -0,0 +1,26 @@ +entity; + $by = $entity->getOwnerEntity(); + + + + $info .= "

url}pg/guidtool/view/{$entity->guid}/\">" . get_class($entity) . "

"; + + $info .= "
"; + if ($by) $info .= elgg_echo('by') . " getURL()."\">{$by->name} "; + $info .= " " . friendly_time($entity->time_created )."
"; + + 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 new file mode 100644 index 000000000..21d93b64a --- /dev/null +++ b/mod/guidtool/views/default/guidtool/listing.php @@ -0,0 +1,31 @@ +entity; + $by = $entity->getOwnerEntity(); + + $icon = elgg_view( + 'graphics/icon', array( + 'entity' => $vars['entity'], + 'size' => 'small', + ) + ); + + $info .= "

url}pg/guidtool/view/{$entity->guid}/\">" . get_class($entity) . "

"; + + $info .= "
"; + if ($by) $info .= elgg_echo('by') . " getURL()."\">{$by->name} "; + $info .= " " . friendly_time($entity->time_created )."
"; + + 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 new file mode 100644 index 000000000..d32141b11 --- /dev/null +++ b/mod/guidtool/views/default/guidtool/profile.php @@ -0,0 +1,16 @@ + 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 new file mode 100644 index 000000000..d83f7fb30 --- /dev/null +++ b/mod/guidtool/views/default/object/guidtoolwrapper.php @@ -0,0 +1,21 @@ + \ No newline at end of file -- cgit v1.2.3