mirror of
https://github.com/friendica/friendica
synced 2024-12-23 12:40:17 +00:00
put birthday reminders on default network page, add smileys to private mail
This commit is contained in:
parent
fa9e1a9abb
commit
3811923c14
3 changed files with 6 additions and 2 deletions
|
@ -270,7 +270,7 @@ function message_content(&$a) {
|
||||||
'$sparkle' => $sparkle,
|
'$sparkle' => $sparkle,
|
||||||
'$from_photo' => $message['from-photo'],
|
'$from_photo' => $message['from-photo'],
|
||||||
'$subject' => $message['title'],
|
'$subject' => $message['title'],
|
||||||
'$body' => bbcode($message['body']),
|
'$body' => smilies(bbcode($message['body'])),
|
||||||
'$delete' => t('Delete message'),
|
'$delete' => t('Delete message'),
|
||||||
'$to_name' => $message['name'],
|
'$to_name' => $message['name'],
|
||||||
'$date' => datetime_convert('UTC',date_default_timezone_get(),$message['created'],'D, d M Y - g:i A')
|
'$date' => datetime_convert('UTC',date_default_timezone_get(),$message['created'],'D, d M Y - g:i A')
|
||||||
|
|
|
@ -115,6 +115,10 @@ function network_content(&$a, $update = 0) {
|
||||||
$o = '<h4>' . t('Group: ') . $r[0]['name'] . '</h4>' . $o;
|
$o = '<h4>' . t('Group: ') . $r[0]['name'] . '</h4>' . $o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if((! $group) && (! $update))
|
||||||
|
$o .= get_birthdays();
|
||||||
|
|
||||||
|
|
||||||
$r = q("SELECT COUNT(*) AS `total`
|
$r = q("SELECT COUNT(*) AS `total`
|
||||||
FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
FROM `item` LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id`
|
||||||
WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
|
WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
|
||||||
|
|
Loading…
Reference in a new issue