diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-01 18:43:03 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-01 18:43:03 +0000 |
commit | 47e81498d87703035a9d3a78215e80d7f3e02448 (patch) | |
tree | 1e5f3285daffe86f9c34cb335d699ce337daa79d /views/default/output | |
parent | 715fe7872366a415b97c13e3074aea02f87658b9 (diff) | |
download | elgg-47e81498d87703035a9d3a78215e80d7f3e02448.tar.gz elgg-47e81498d87703035a9d3a78215e80d7f3e02448.tar.bz2 |
starting adding a .elgg-text class - plugins need to use output/longtext when displaying text
git-svn-id: http://code.elgg.org/elgg/trunk@7806 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/output')
-rw-r--r-- | views/default/output/longtext.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/views/default/output/longtext.php b/views/default/output/longtext.php index 22a4ad46d..ea91fe424 100644 --- a/views/default/output/longtext.php +++ b/views/default/output/longtext.php @@ -8,9 +8,16 @@ * * @uses $vars['value'] The text to display * @uses $vars['parse_urls'] Whether to turn urls into links. Default is true. + * @uses $vars['class'] */ -$parse_urls = isset($vars['parse_urls']) ? $vars['parse_urls'] : TRUE; +$class = 'elgg-text'; +$additional_class = elgg_get_array_value('class', $vars, ''); +if ($additional_class) { + $class = "$class $additional_class"; +} + +$parse_urls = elgg_get_array_value('parse_urls', $vars, true); $text = $vars['value']; @@ -22,4 +29,4 @@ if ($parse_urls) { $text = autop($text); -echo $text; +echo "<div class=\"$class\">$text</div>"; |