From eb306be905c9fd78600841070d0796bd99ae7f73 Mon Sep 17 00:00:00 2001 From: cash Date: Mon, 6 Dec 2010 01:48:53 +0000 Subject: comments use the media view now git-svn-id: http://code.elgg.org/elgg/trunk@7544 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/layout_elements/media.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'views/default/layout_elements') 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 << +
$icon_block$body
HTML; -- cgit v1.2.3