Permalink
Browse files

feature(routing): Render tagcloud page with view

  • Loading branch information...
ewinslow committed May 28, 2015
1 parent 5e3cb64 commit ad0d4cc08ebd24fe16c6119b09d96a045f482f02
Showing with 18 additions and 16 deletions.
  1. +1 −16 mod/tagcloud/start.php
  2. +17 −0 mod/tagcloud/views/default/resources/tagcloud.php
View
@@ -23,21 +23,6 @@ function tagcloud_init() {
* @return bool
*/
function tagcloud_tags_page_handler($page) {
$title = elgg_echo('tagcloud:site_cloud');
$options = array(
'threshold' => 0,
'limit' => 100,
'tag_name' => 'tags',
);
$content = elgg_view_tagcloud($options);
$body = elgg_view_layout('one_sidebar', array(
'title' => $title,
'content' => $content,
));
echo elgg_view_page($title, $body);
echo elgg_view('resources/tagcloud');
return true;
}
@@ -0,0 +1,17 @@
<?php
$title = elgg_echo('tagcloud:site_cloud');
$options = array(
'threshold' => 0,
'limit' => 100,
'tag_name' => 'tags',
);
$content = elgg_view_tagcloud($options);
$body = elgg_view_layout('one_sidebar', array(
'title' => $title,
'content' => $content,
));
echo elgg_view_page($title, $body);

0 comments on commit ad0d4cc

Please sign in to comment.