create a widget registry for pages so themes can reorder, insert/delete, and relocate widgets to different regions of the page

This commit is contained in:
friendica
2012-09-27 17:48:10 -07:00
parent ba4fe4ff91
commit d261fe271f
5 changed files with 44 additions and 11 deletions

View File

@@ -35,8 +35,8 @@ function profile_aside(&$a) {
profile_load($a,$which,$profile);
$a->page['aside'] .= posted_date_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],$a->profile['profile_uid'],true);
$a->page['aside'] .= categories_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],$cat);
$a->set_widget('archive',posted_date_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],$a->profile['profile_uid'],true));
$a->set_widget('categories',categories_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],$cat));
}