From 8439fcf13d794780c89925896b8aaca521c14e30 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 22 Feb 2011 00:07:57 +0000 Subject: output/longtext can now apply arbitrary html attributes to the wrapper div git-svn-id: http://code.elgg.org/elgg/trunk@8393 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/output/longtext.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'views') diff --git a/views/default/output/longtext.php b/views/default/output/longtext.php index c188d0e16..ffdfd87cc 100644 --- a/views/default/output/longtext.php +++ b/views/default/output/longtext.php @@ -14,12 +14,16 @@ $class = 'elgg-output'; $additional_class = elgg_extract('class', $vars, ''); if ($additional_class) { - $class = "$class $additional_class"; + $vars['class'] = "$class $additional_class"; +} else { + $vars['class'] = $class; } $parse_urls = elgg_extract('parse_urls', $vars, true); +unset($vars['parse_urls']); $text = $vars['value']; +unset($vars['value']); $text = filter_tags($text); @@ -29,4 +33,6 @@ if ($parse_urls) { $text = autop($text); -echo "
$text
"; +$attributes = elgg_format_attributes($vars); + +echo "
$text
"; -- cgit v1.2.3