X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fduepuntozero%2Ftheme.php;h=729c5bb0852a2314c0e77157daa16404c5686a28;hb=35ca4961d21c807b85af97295961c5d513f5be50;hp=efb43a92481f6a77bdab83187e95706740a98158;hpb=4e49939421d39dfa971d8744691568bcdbdca15e;p=friendica.git
diff --git a/view/theme/duepuntozero/theme.php b/view/theme/duepuntozero/theme.php
index efb43a9248..729c5bb085 100644
--- a/view/theme/duepuntozero/theme.php
+++ b/view/theme/duepuntozero/theme.php
@@ -1,52 +1,60 @@
.
+ *
+ */
use Friendica\App;
+use Friendica\Core\Renderer;
+use Friendica\DI;
+
+/*
+ * This script can be included even when the app is in maintenance mode which requires us to avoid any config call
+ */
function duepuntozero_init(App $a) {
-set_template_engine($a, 'smarty3');
-
- $colorset = get_pconfig( local_user(), 'duepuntozero','colorset');
- if (!$colorset)
- $colorset = get_config('duepuntozero', 'colorset'); // user setting have priority, then node settings
- if ($colorset) {
- if ($colorset == 'greenzero')
- $a->page['htmlhead'] .= ''."\n";
- if ($colorset == 'purplezero')
- $a->page['htmlhead'] .= ''."\n";
- if ($colorset == 'easterbunny')
- $a->page['htmlhead'] .= ''."\n";
- if ($colorset == 'darkzero')
- $a->page['htmlhead'] .= ''."\n";
- if ($colorset == 'comix')
- $a->page['htmlhead'] .= ''."\n";
- if ($colorset == 'slackr')
- $a->page['htmlhead'] .= ''."\n";
- }
-$a->page['htmlhead'] .= <<< EOT
-
EOT;
}
+
+/**
+ * @param int|null $uid
+ * @return null
+ * @see \Friendica\Core\Theme::getBackgroundColor()
+ * @TODO Implement this function
+ */
+function duepuntozero_get_background_color(int $uid = null)
+{
+ return null;
+}
+
+/**
+ * @param int|null $uid
+ * @return null
+ * @see \Friendica\Core\Theme::getThemeColor()
+ * @TODO Implement this function
+ */
+function duepuntozero_get_theme_color(int $uid = null)
+{
+ return null;
+}