don't show birthday/event details on mobile devices
This commit is contained in:
parent
fe19890c3c
commit
5e64bccd5c
1 changed files with 13 additions and 0 deletions
13
boot.php
13
boot.php
|
@ -1251,6 +1251,12 @@ if(! function_exists('get_birthdays')) {
|
||||||
if(! local_user())
|
if(! local_user())
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
$mobile_detect = new Mobile_Detect();
|
||||||
|
$is_mobile = $mobile_detect->isMobile() || $mobile_detect->isTablet();
|
||||||
|
|
||||||
|
if($is_mobile)
|
||||||
|
return $o;
|
||||||
|
|
||||||
$bd_format = t('g A l F d') ; // 8 AM Friday January 18
|
$bd_format = t('g A l F d') ; // 8 AM Friday January 18
|
||||||
$bd_short = t('F d');
|
$bd_short = t('F d');
|
||||||
|
|
||||||
|
@ -1330,6 +1336,13 @@ if(! function_exists('get_events')) {
|
||||||
if(! local_user())
|
if(! local_user())
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
|
|
||||||
|
$mobile_detect = new Mobile_Detect();
|
||||||
|
$is_mobile = $mobile_detect->isMobile() || $mobile_detect->isTablet();
|
||||||
|
|
||||||
|
if($is_mobile)
|
||||||
|
return $o;
|
||||||
|
|
||||||
$bd_format = t('g A l F d') ; // 8 AM Friday January 18
|
$bd_format = t('g A l F d') ; // 8 AM Friday January 18
|
||||||
$bd_short = t('F d');
|
$bd_short = t('F d');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue