aboutsummaryrefslogtreecommitdiff
path: root/views/default/layout_elements
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-06 01:48:53 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-06 01:48:53 +0000
commiteb306be905c9fd78600841070d0796bd99ae7f73 (patch)
tree4ad84690c3500dbcc9b7ca9feaddc0a2c9cd3f8c /views/default/layout_elements
parent835c5685e386216e016212f589cdef047b027ac4 (diff)
downloadelgg-eb306be905c9fd78600841070d0796bd99ae7f73.tar.gz
elgg-eb306be905c9fd78600841070d0796bd99ae7f73.tar.bz2
comments use the media view now
git-svn-id: http://code.elgg.org/elgg/trunk@7544 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/layout_elements')
-rw-r--r--views/default/layout_elements/media.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/views/default/layout_elements/media.php b/views/default/layout_elements/media.php
index 5f4e51d57..fcf0fba77 100644
--- a/views/default/layout_elements/media.php
+++ b/views/default/layout_elements/media.php
@@ -12,8 +12,9 @@
* @uses $vars['body'] HTML content of the body block
* @uses $vars['icon'] HTML content of the icon block
* @uses $vars['class'] Optional additional class for media element
+ * @uses $vars['id'] Optional id for the media element
* @uses $vars['body_class'] Optional additional class for body block
- * @uses $vars['icon_class'] Optional additional class for icon block
+ * @uses $vars['icon_class'] Optional additional class for icon block
*/
$body = elgg_get_array_value('body', $vars, '');
@@ -25,6 +26,11 @@ if ($additional_class) {
$class = "$class $additional_class";
}
+$id = '';
+if (isset($vars['id'])) {
+ $id = "id=\"{$vars['id']}\"";
+}
+
$body_class = 'elgg-body';
$additional_class = elgg_get_array_value('body_class', $vars, '');
if ($additional_class) {
@@ -42,7 +48,7 @@ if ($icon_block) {
}
echo <<<HTML
-<div class="$class clearfix">
+<div class="$class clearfix" $id>
$icon_block$body
</div>
HTML;