]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/theme.php
Switch tag of expanded like list to paragraph
[friendica.git] / view / theme / quattro / theme.php
index be47a401c0ed335b4f922b18b4ef3774b4e4dca1..ac172cee053fbd0d385c060271f1147a454858b9 100644 (file)
@@ -1,20 +1,16 @@
 <?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\Core\System;
 
-
-
-$quattro_align = get_pconfig(local_user(), 'quattro', 'align' );
-
-if(local_user() && $quattro_align=="center"){
-       
-       $a->page['htmlhead'].="
-       <style>
-               html { width: 100%; margin:0px; padding:0px; }
-               body {
-                       margin: 50px auto;
-                       width: 900px;
-               }
-       </style>
-       ";
-       
+function quattro_init(App $a) {
+       $a->page['htmlhead'] .= '<script src="'.System::baseUrl().'/view/theme/quattro/tinycon.min.js"></script>';
+       $a->page['htmlhead'] .= '<script src="'.System::baseUrl().'/view/theme/quattro/js/quattro.js"></script>';;
 }