Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -67,11 +67,13 @@ class _Events
|
||||
{
|
||||
throw new \OutOfRangeException;
|
||||
}
|
||||
|
||||
|
||||
$name = ( $item->isAnonymous() ) ? \IPS\Member::loggedIn()->language()->addToStack( 'post_anonymously_placename' ) : $item->author()->name;
|
||||
|
||||
return array(
|
||||
'title' => \IPS\Member::loggedIn()->language()->addToStack( 'notification__new_content', FALSE, array(
|
||||
( $htmlEscape ? 'sprintf' : 'htmlsprintf' ) => array(
|
||||
$item->author()->name,
|
||||
$name,
|
||||
mb_strtolower( $item->indefiniteArticle() ),
|
||||
$item->container()->getTitleForLanguage( \IPS\Member::loggedIn()->language(), $htmlEscape ? array( 'escape' => TRUE ) : array() ),
|
||||
$item->mapped('title')
|
||||
@@ -130,6 +132,9 @@ class _Events
|
||||
public static function parse_mobile_event_reminder( \IPS\Lang $language, \IPS\calendar\Event $event, $daysToGo )
|
||||
{
|
||||
return array(
|
||||
'title' => $language->addToStack( 'notification__event_reminder_title', FALSE, array(
|
||||
'pluralize' => array(1)
|
||||
) ),
|
||||
'body' => $language->addToStack( 'notification__event_reminder', FALSE, array( 'htmlsprintf' => array(
|
||||
$language->addToStack( "days_to_go", FALSE, array( 'pluralize' => array(
|
||||
$daysToGo
|
||||
@@ -138,7 +143,7 @@ class _Events
|
||||
) ) ),
|
||||
'data' => array(
|
||||
'url' => (string) $event->url(),
|
||||
'author' => $event->author()
|
||||
'author' => $event->author(),
|
||||
),
|
||||
'channelId' => 'events',
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user