]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge pull request #2550 from annando/1605-frio-github-markread
[friendica.git] / view / theme / frio / theme.php
index c5c18d0aa2443b08bcde5a451a31e2a6568674b4..a7c3b0c5dc4f54548a00af96fdb3c565400ba8e6 100644 (file)
@@ -21,9 +21,16 @@ function frio_init(&$a) {
        $frio = "view/theme/frio";
 
        global $frio;
-       
-       
 
+       // if the device is a mobile device set js is_mobile
+       // variable so the js scripts can use this information
+       if($a->is_mobile || $a->is_tablet) {
+               $a->page["htmlhead"] .= <<< EOT
+                       <script>
+                               var is_mobile = 1;
+                       </script>
+EOT;
+                       }
 
        if ($style == "")
                $style = get_config('frio', 'style');