]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/smoothly/theme.php
Merge pull request #549 from fermionic/20121222-use-smarty-template-engine
[friendica.git] / view / theme / smoothly / theme.php
index 14c40a2ea285f026a53ce6df3efd5680a2574b74..3dff381b220487aa97cab4c04ded90c94844251d 100644 (file)
@@ -3,15 +3,20 @@
 /*
  * Name: Smoothly
  * Description: Like coffee with milk. Theme works fine with iPad[2].
- * Version: Version 0.9.19-4
+ * Version: Version 0.11.14-2
  * 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();
+$a->theme['template_engine'] = 'smarty3';
 
 function smoothly_init(&$a) {
+       $cssFile = null;
+       $ssl_state = null;
+       $baseurl = $a->get_baseurl($ssl_state);
 $a->page['htmlhead'] .= <<< EOT
 
 <script>
@@ -95,10 +100,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 +114,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');