diff options
author | friendica <info@friendica.com> | 2013-08-13 22:14:01 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-13 22:14:01 -0700 |
commit | 4888ab4d0f91e2a0e13887bb27aa29dad538ec29 (patch) | |
tree | c25cf42370e3bc6516e59d4b3bc21eaf38d34979 /boot.php | |
parent | 17e405cfa97324f06d6720bbcf8f2ac2fb22ce6b (diff) | |
download | volse-hubzilla-4888ab4d0f91e2a0e13887bb27aa29dad538ec29.tar.gz volse-hubzilla-4888ab4d0f91e2a0e13887bb27aa29dad538ec29.tar.bz2 volse-hubzilla-4888ab4d0f91e2a0e13887bb27aa29dad538ec29.zip |
primitive cms functionality - provide a custom menu below your profile vcard
Diffstat (limited to 'boot.php')
-rwxr-xr-x | boot.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1690,6 +1690,15 @@ function profile_sidebar($profile, $block = 0) { $contact_block = contact_block(); } + $channel_menu = false; + $menu = get_pconfig($profile['uid'],'system','channel_menu'); + if($menu) { + require_once('include/menu.php'); + $m = menu_fetch($menu,$profile['uid'],$observer['xchan_hash']); + if($m) + $channel_menu = menu_render($m); + } + $tpl = get_markup_template('profile_vcard.tpl'); $o .= replace_macros($tpl, array( @@ -1701,6 +1710,7 @@ function profile_sidebar($profile, $block = 0) { '$pdesc' => $pdesc, '$marital' => $marital, '$homepage' => $homepage, + '$chanmenu' => $channel_menu, '$contact_block' => $contact_block, )); |