aboutsummaryrefslogtreecommitdiff
path: root/views/default/output/img.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
commit6483d9d446e7fa50e16823fe20514a45416880e2 (patch)
tree68c5bb2e6a0b7b486e17f1101321323e7894a008 /views/default/output/img.php
parent95346209886527207ffd036a58d6fd50572d34fd (diff)
downloadelgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.gz
elgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.bz2
Fixes #4082 adds output/img
Diffstat (limited to 'views/default/output/img.php')
-rw-r--r--views/default/output/img.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/default/output/img.php b/views/default/output/img.php
new file mode 100644
index 000000000..d3f596801
--- /dev/null
+++ b/views/default/output/img.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Elgg image view
+ *
+ * @uses string $vars['src'] The image src url.
+ */
+
+$vars['src'] = elgg_normalize_url($vars['src']);
+$vars['src'] = elgg_format_url($vars['src']);
+
+$attributes = elgg_format_attributes($vars);
+echo "<img $attributes/>";