]> git.mxchange.org Git - friendica.git/commitdiff
don't show birthday/event details on mobile devices
authorfriendica <info@friendica.com>
Sun, 29 Jul 2012 00:48:33 +0000 (17:48 -0700)
committerfriendica <info@friendica.com>
Sun, 29 Jul 2012 00:48:33 +0000 (17:48 -0700)
boot.php

index 6e957433f53961e2b7176394478a3a1053ec7e26..da72b16ef2841ceb85d53b4d5cbbf1daab30247a 100644 (file)
--- 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');