]> 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 d66fd4ca49a6bafa4b19e5f467783202fd3e0c2d..a08e9c0da0007d3a3ec406865de15f829a7bf9bb 100644 (file)
@@ -2,16 +2,20 @@
 
 /*
  * Name: Smoothly
- * Description: Theme optimized for iPad[2]
- * Version: 0.7
+ * Description: Like coffee with milk. Theme works fine with iPad[2].
+ * 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>
@@ -94,4 +98,26 @@ $('.savedsearchterm').hover(
 
 </script>
 EOT;
-}
\ No newline at end of file
+
+       /** custom css **/
+       if (!is_null($cssFile)) {
+        $a->page['htmlhead'] .= sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $cssFile);
+       }
+
+_js_in_foot();
+
+}
+
+if(! function_exists('_js_in_foot')) {
+       function _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');
+
+               return $a->page['bottom'] = replace_macros($tpl, $bottom);
+       }
+}