]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/smoothly/theme.php
modified: view/theme/smoothly/css/typography.css
[friendica.git] / view / theme / smoothly / theme.php
index 14c40a2ea285f026a53ce6df3efd5680a2574b74..a08e9c0da0007d3a3ec406865de15f829a7bf9bb 100644 (file)
@@ -3,15 +3,19 @@
 /*
  * Name: Smoothly
  * Description: Like coffee with milk. Theme works fine with iPad[2].
- * Version: Version 0.9.19-4
+ * Version: Version 0.11.12
  * Author: Alex <https://friendica.pixelbits.de/profile/alex>
  * Maintainer: Alex <https://friendica.pixelbits.de/profile/alex>
  * Screenshot: <a href="screenshot.png">Screenshot</a>
  */
 
+$a = get_app();
 $a->theme_info = array();
 
 function smoothly_init(&$a) {
+       $cssFile = null;
+       $ssl_state = null;
+       $baseurl = $a->get_baseurl($ssl_state);
 $a->page['htmlhead'] .= <<< EOT
 
 <script>
@@ -95,10 +99,10 @@ $('.savedsearchterm').hover(
 </script>
 EOT;
 
-    // custom css
-    if (!is_null($cssFile)) {
+       /** custom css **/
+       if (!is_null($cssFile)) {
         $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
-    }
+       }
 
 _js_in_foot();
 
@@ -109,6 +113,7 @@ if(! function_exists('_js_in_foot')) {
                /** @purpose insert stuff in bottom of page
                */
                $a = get_app();
+               $ssl_state = null;
                $baseurl = $a->get_baseurl($ssl_state);
                $bottom['$baseurl'] = $baseurl;
                $tpl = file_get_contents(dirname(__file__) . '/bottom.tpl');