aboutsummaryrefslogtreecommitdiff
path: root/mod/opendd
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 16:05:43 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-25 16:05:43 +0000
commit15952bb6239bc1963a0fce06b67a534de8306ec8 (patch)
tree37ade7c0deffac41d66dde84008a6df7a2d1e90a /mod/opendd
parentea49a80b5a3375d52ef2d883c2cf466b4773561b (diff)
downloadelgg-15952bb6239bc1963a0fce06b67a534de8306ec8.tar.gz
elgg-15952bb6239bc1963a0fce06b67a534de8306ec8.tar.bz2
Introducing UUID view
git-svn-id: https://code.elgg.org/elgg/trunk@1545 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/opendd')
-rw-r--r--mod/opendd/views/default/output/uuid.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/mod/opendd/views/default/output/uuid.php b/mod/opendd/views/default/output/uuid.php
new file mode 100644
index 000000000..07b45f150
--- /dev/null
+++ b/mod/opendd/views/default/output/uuid.php
@@ -0,0 +1,26 @@
+<?php
+ /**
+ * Elgg OpenDD aggregator.
+ * Displays a uuid as a link, but links back to the opendd viewer to display.
+ *
+ * @package ElggOpenDD
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Marcus Povey
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.com/
+ */
+
+ global $CONFIG;
+
+ $val = trim($vars['value']);
+ if (!empty($val)) {
+ if ((substr_count($val, "http://") == 0) && (substr_count($val, "https://") == 0)) {
+ $val = "http://" . $val;
+ }
+
+ $vallink = $CONFIG->url . "mod/opendd/viewuuid.php?uuid=" . urlencode($val);
+
+ echo "<a href=\"{$vallink}\" target=\"_blank\">{$val}</a>";
+ }
+
+?> \ No newline at end of file