]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge pull request #2605 from rabuzarus/1306-aside-group-fix
[friendica.git] / view / theme / frio / theme.php
index c5c18d0aa2443b08bcde5a451a31e2a6568674b4..bab2d696aae3bc6c146ebe62ca54158a03bbd746 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 /*
  * Name: frio
- * Description: Bootstrap V3 theme. The theme is currently under construction, so it is far from finished. For further information have a look at the <a href="https://github.com/rabuzarus/frio/blob/master/README.md">ReadMe</a> and <a href="https://github.com/rabuzarus/frio">GitHub</a>.
- * Version: V.0.1 Alpha
+ * Description: Bootstrap V3 theme. The theme is currently under construction, so it is far from finished. For further information have a look at the <a href="https://github.com/friendica/friendica/tree/develop/view/theme/frio/README.md">ReadMe</a>.
+ * Version: V.0.2 Alpha
  * Author: Rabuzarus <https://friendica.kommune4.de/profile/rabuzarus>
  * 
  */
@@ -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');