photo aside widget for profile page

This commit is contained in:
rabuzarus
2015-12-30 00:26:50 +01:00
parent 99861b9fa6
commit 20fbf670db
15 changed files with 263 additions and 72 deletions
+4
View File
@@ -181,6 +181,10 @@ function profile_content(&$a, $update = 0) {
$commpage = (($a->profile['page-flags'] == PAGE_COMMUNITY) ? true : false);
$commvisitor = (($commpage && $remote_contact == true) ? true : false);
if(feature_enabled($a->profile['profile_uid'],'photos_widget')) {
require_once('include/photos.php');
$a->page['aside'] .= widget_photos($a->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'],(x($category) ? xmlify($category) : ''));