Skip to content

Commit

Permalink
wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 22, 2016
1 parent 9dc4074 commit e34972e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jonah/lib/Block/Cloud.php
Expand Up @@ -43,7 +43,15 @@ protected function _content()
if (count($tags)) {
$cloud = new Horde_Core_Ui_TagCloud();
foreach ($tags as $id => $tag) {
$cloud->addElement($tag['tag_name'], str_replace(array('%40id%40', '%40tag%40', '@id@', '@tag@'), array($id, $tag['tag_name']), $this->_params['results_url']), $tag['total']);
$cloud->addElement(
$tag['tag_name'],
str_replace(
array('%40id%40', '%40tag%40', '@id@', '@tag@'),
array($id, $tag['tag_name']),
$this->_params['results_url']
),
$tag['count']
);
}
$html = $cloud->buildHTML();
} else {
Expand Down

0 comments on commit e34972e

Please sign in to comment.