]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/theme.php
Merge branch 'friendica:2022.12-rc' into new_image_presentation
[friendica.git] / view / theme / quattro / theme.php
index be47a401c0ed335b4f922b18b4ef3774b4e4dca1..df17a7fd9c22d3b73ff40fb4068369d90c26d914 100644 (file)
@@ -1,20 +1,42 @@
 <?php
+/**
+ * Name: Quattro
+ * Version: 0.6
+ * Author: Fabio <http://kirgroup.com/profile/fabrixxm>
+ * Maintainer: Fabio <http://kirgroup.com/profile/fabrixxm>
+ * Maintainer: Tobias <https://diekershoff.homeunix.net/friendica/profile/tobias>
+ */
 
+use Friendica\App;
+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 quattro_init(App $a) {
+       DI::page()['htmlhead'] .= '<script src="'.DI::baseUrl().'/view/theme/quattro/tinycon.min.js"></script>';
+       DI::page()['htmlhead'] .= '<script src="'.DI::baseUrl().'/view/theme/quattro/js/quattro.js"></script>';;
+}
 
-$quattro_align = get_pconfig(local_user(), 'quattro', 'align' );
+/**
+ * @param int|null $uid
+ * @return null
+ * @see \Friendica\Core\Theme::getBackgroundColor()
+ * @TODO Implement this function
+ */
+function quattro_get_background_color(int $uid = null)
+{
+       return null;
+}
 
-if(local_user() && $quattro_align=="center"){
-       
-       $a->page['htmlhead'].="
-       <style>
-               html { width: 100%; margin:0px; padding:0px; }
-               body {
-                       margin: 50px auto;
-                       width: 900px;
-               }
-       </style>
-       ";
-       
+/**
+ * @param int|null $uid
+ * @return null
+ * @see \Friendica\Core\Theme::getThemeColor()
+ * @TODO Implement this function
+ */
+function quattro_get_theme_color(int $uid = null)
+{
+       return null;
 }