diff options
author | Evan Winslow <evan.b.winslow@gmail.com> | 2010-10-21 17:46:39 +0000 |
---|---|---|
committer | Evan Winslow <evan.b.winslow@gmail.com> | 2010-10-21 17:46:39 +0000 |
commit | 9ff9d71952db26c06fe2eb1bf98b53340242e524 (patch) | |
tree | fa0a068d6a024d029246691c0c67f1b5e83d2ede /views/default/html/img.php | |
parent | 1bb750cdf821416584dc42206a29dae7c41144a5 (diff) | |
download | elgg-9ff9d71952db26c06fe2eb1bf98b53340242e524.tar.gz elgg-9ff9d71952db26c06fe2eb1bf98b53340242e524.tar.bz2 |
Removed html/tag view -- all we really needed was a function to form an attribute string from an array. This is now being used in each input view and there is not so much view nesting going on...
Diffstat (limited to 'views/default/html/img.php')
-rw-r--r-- | views/default/html/img.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/views/default/html/img.php b/views/default/html/img.php index 3560e066e..734e59a55 100644 --- a/views/default/html/img.php +++ b/views/default/html/img.php @@ -3,11 +3,9 @@ $defaults = array( 'alt' => '', 'title' => '', + 'border' => 0, ); -$overrides = array( - 'tag' => 'img', - 'body' => NULL, -); +$attributes = html5_get_html_attributes(array_merge($defaults, $vars)); -echo elgg_view('html/tag', array_merge($defaults, $vars, $overrides));
\ No newline at end of file +echo "<img $attributes />";
\ No newline at end of file |