aboutsummaryrefslogtreecommitdiff
path: root/views/default/output
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 00:07:57 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 00:07:57 +0000
commit8439fcf13d794780c89925896b8aaca521c14e30 (patch)
tree9ed4d3b48787c4eeed6b0de89a653ec121bd26d5 /views/default/output
parentea2e005d0fe64515ea099f31fe1724de0ebff542 (diff)
downloadelgg-8439fcf13d794780c89925896b8aaca521c14e30.tar.gz
elgg-8439fcf13d794780c89925896b8aaca521c14e30.tar.bz2
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
Diffstat (limited to 'views/default/output')
-rw-r--r--views/default/output/longtext.php10
1 files changed, 8 insertions, 2 deletions
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 "<div class=\"$class\">$text</div>";
+$attributes = elgg_format_attributes($vars);
+
+echo "<div $attributes>$text</div>";