put comanche widgets in their own file. Added a category tagcloud widget - but the entries aren't going to link to anything until we have a webpage search ability. But this will be a way to exercise and test widget arguments.

This commit is contained in:
friendica
2013-10-27 16:30:55 -07:00
parent 91d99213bd
commit e2988a0253
4 changed files with 42 additions and 11 deletions

View File

@@ -2,6 +2,7 @@
require_once('include/security.php');
require_once('include/menu.php');
require_once('include/widgets.php');
// When editing a webpage - a dropdown is needed to select a page layout
// On submit, the pdl_select value (which is the mid of an item with item_restrict = ITEM_PDL) is stored in
@@ -171,9 +172,3 @@ function comanche_region(&$a,$s) {
return $s;
}
function widget_profile($args) {
$a = get_app();
$block = (((get_config('system','block_public')) && (! local_user()) && (! remote_user())) ? true : false);
return profile_sidebar($a->profile, $block, true);
}