]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
New version for "Vier". The navigation was restructured and several other stuff was...
[friendica.git] / view / theme / vier / theme.php
index ece90faceaf745ec3117a8a14e889c4e044cf3ee..f09acf36d66767bbf674568458de6a5926d91393 100644 (file)
@@ -1,11 +1,11 @@
 <?php
 /**
  * Name: Vier
- * Version: 0.9
+ * Version: 1.2
  * Author: Fabio <http://kirgroup.com/profile/fabrixxm>
  * Author: Ike <http://pirati.ca/profile/heluecht>
  * Maintainer: Ike <http://pirati.ca/profile/heluecht>
- * Description: "Vier" uses the font awesome font library: http://fortawesome.github.com/Font-Awesome/
+ * Description: "Vier" is a very compact and modern theme. It uses the font awesome font library: http://fortawesome.github.com/Font-Awesome/
  */
 
 function vier_init(&$a) {
@@ -16,27 +16,23 @@ $baseurl = $a->get_baseurl();
 $a->theme_info = array();
 
 $style = get_pconfig(local_user(), 'vier', 'style');
+
+if ($style == "")
+       $style = get_config('vier', 'style');
+
 if ($style == "flat")
        $a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/flat.css" type="text/css" media="screen"/>'."\n";
+else if ($style == "netcolour")
+       $a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/netcolour.css" type="text/css" media="screen"/>'."\n";
+else if ($style == "breathe")
+       $a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/breathe.css" type="text/css" media="screen"/>'."\n";
+else if ($style == "plus")
+       $a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/plus.css" type="text/css" media="screen"/>'."\n";
+else if ($style == "dark")
+       $a->page['htmlhead'] .= '<link rel="stylesheet" href="view/theme/vier/dark.css" type="text/css" media="screen"/>'."\n";
 
 $a->page['htmlhead'] .= <<< EOT
-<script type="text/javascript" src="$baseurl/view/theme/vier/js/jquery.divgrow-1.3.1.f1.min.js"></script>
-<script>
-
-function collapseHeight(elems) {
-       var elemName = '.wall-item-body:not(.divmore)';
-       if(typeof elems != 'undefined') {
-               elemName = elems + ' ' + elemName;
-       }
-       $(elemName).each(function() {
-               if($(this).height() > 450) {
-                       $('html').height($('html').height());
-                       $(this).divgrow({ initialHeight: 400, showBrackets: false, speed: 0 });
-                       $(this).addClass('divmore');
-                       $('html').height('auto');
-               }
-       });
-}
+<script type="text/javascript">
 
 function insertFormatting(comment,BBcode,id) {