Skip to content

Commit

Permalink
feature(routing): Render tagcloud page with view
Browse files Browse the repository at this point in the history
  • Loading branch information
ewinslow committed May 28, 2015
1 parent 5e3cb64 commit ad0d4cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
17 changes: 1 addition & 16 deletions mod/tagcloud/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
17 changes: 17 additions & 0 deletions mod/tagcloud/views/default/resources/tagcloud.php
Original file line number Diff line number Diff line change
@@ -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.