From 5e64bccd5c03f66d7ffe557f378fa881af656c06 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 28 Jul 2012 17:48:33 -0700 Subject: [PATCH] don't show birthday/event details on mobile devices --- boot.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/boot.php b/boot.php index 6e957433f..da72b16ef 100644 --- a/boot.php +++ b/boot.php @@ -1251,6 +1251,12 @@ if(! function_exists('get_birthdays')) { if(! local_user()) 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_short = t('F d'); @@ -1330,6 +1336,13 @@ if(! function_exists('get_events')) { if(! local_user()) 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_short = t('F d');