]> git.mxchange.org Git - friendica.git/blobdiff - doc/themes.md
Transfer all item shadow functions to the item class
[friendica.git] / doc / themes.md
index 058eb49d83e1986973ad67802f4624bc2e7ae688..531ff9c166eb5bcb79bec69a8fe7d939fe9f16e0 100644 (file)
@@ -130,7 +130,7 @@ The selected 1st part will be saved in the database by the theme_post function.
         // if the one specific submit button was pressed then proceed
         if (isset($_POST['duepuntozero-settings-submit'])){
             // and save the selection key into the personal config of the user
-            set_pconfig(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
+            PConfig::set(local_user(), 'duepuntozero', 'colorset', $_POST['duepuntozero_colorset']);
         }
     }
 
@@ -138,9 +138,9 @@ Now that this information is set in the database, what should friendica do with
 For this, have a look at the theme.php file of the *duepunto zero*.
 There you'll find somethink alike
 
-        $colorset = get_pconfig( local_user(), 'duepuntozero','colorset');
+        $colorset = PConfig::get( local_user(), 'duepuntozero','colorset');
         if (!$colorset)
-            $colorset = get_config('duepuntozero', 'colorset');
+            $colorset = Config::get('duepuntozero', 'colorset');
         if ($colorset) {
             if ($colorset == 'greenzero')
                 $a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/duepuntozero/deriv/greenzero.css" type="text/css" media="screen" />'."\n";
@@ -172,7 +172,7 @@ The content of this file should be something like
         $a-> theme_info = array(
             'extends' => 'duepuntozero'.
         );
-        set_template_engine($a, 'smarty3');
+        $a->set_template_engine('smarty3');
         /* and more stuff e.g. the JavaScript function for the header */
     }
 
@@ -206,7 +206,7 @@ Basically what you have to do is identify which template you have to change so i
 Adopt the CSS of the theme accordingly.
 And iterate the process until you have the theme the way you want it.
 
-*Use the source Luke.* and don't hesitate to ask in @[ftdevs](https://friendica.eu/profile/ftdevs) or @[helpers](https://helpers.pyxis.uberspace.de/profile/helpers).
+*Use the source Luke.* and don't hesitate to ask in @[ftdevs](https://friendica.eu/profile/ftdevs) or @[helpers](https://forum.friendi.ca/profile/helpers).
 
 ## Special Files
 
@@ -253,7 +253,7 @@ So in the case of quattro it is
 
     function quattro_init(App $a) {
       $a->theme_info = array();
-      set_template_engine($a, 'smarty3');
+      $a->set_template_engine('smarty3');
     }
 
 Here we have set the basic theme information, in this case they are empty.