Moved popup logic in boot.php, added 'item_photo_menu' hook

This commit is contained in:
Fabio Comuni 2011-03-31 16:52:51 +02:00
parent 3f94721d62
commit fe67c346e5
7 changed files with 72 additions and 12 deletions

View file

@ -454,10 +454,12 @@ function profile_content(&$a, $update = 0) {
if(strcmp(datetime_convert('UTC','UTC',$item['created']),datetime_convert('UTC','UTC','now - 12 hours')) > 0)
$indent .= ' shiny';
$tmp_item = replace_macros($template,array(
'$id' => $item['item_id'],
'$linktitle' => t('View $name\'s profile'),
'$profile_url' => $profile_link,
'$item_photo_menu' => item_photo_menu($item),
'$name' => $profile_name,
'$thumb' => $profile_avatar,
'$sparkle' => $sparkle,