diff options
author | friendica <info@friendica.com> | 2012-09-27 17:48:10 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-09-27 17:48:10 -0700 |
commit | d261fe271fdee747244c76f7ba4679b8372a2e8c (patch) | |
tree | 90da2f6f16c484243c4b422d32b72ddd9e04965f /mod | |
parent | ba4fe4ff919fa3250db33eee2425870f10107e81 (diff) | |
download | volse-hubzilla-d261fe271fdee747244c76f7ba4679b8372a2e8c.tar.gz volse-hubzilla-d261fe271fdee747244c76f7ba4679b8372a2e8c.tar.bz2 volse-hubzilla-d261fe271fdee747244c76f7ba4679b8372a2e8c.zip |
create a widget registry for pages so themes can reorder, insert/delete, and relocate widgets to different regions of the page
Diffstat (limited to 'mod')
-rw-r--r-- | mod/ping.php | 7 | ||||
-rw-r--r-- | mod/profile.php | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/mod/ping.php b/mod/ping.php index da612a255..21f36a163 100644 --- a/mod/ping.php +++ b/mod/ping.php @@ -100,7 +100,7 @@ function ping_init(&$a) { $t1 = dba_timer(); $r = q("SELECT `item`.`id`,`item`.`parent`, `item`.`verb`, `item`.`wall`, `item`.`author-name`, - `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`, + `item`.`contact-id`, `item`.`author-link`, `item`.`author-avatar`, `item`.`created`, `item`.`object`, `pitem`.`author-name` as `pname`, `pitem`.`author-link` as `plink` FROM `item` INNER JOIN `item` as `pitem` ON `pitem`.`id`=`item`.`parent` WHERE `item`.`unseen` = 1 AND `item`.`visible` = 1 AND @@ -109,7 +109,10 @@ function ping_init(&$a) { intval(local_user()) ); - if(count($r)) { + if(count($r)) { + + call_hooks('network_ping', array('items' => $r)); + foreach ($r as $it) { if($it['wall']) $result['home'] ++; diff --git a/mod/profile.php b/mod/profile.php index 4351c607a..68dc6db72 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -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)); } |