]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/theme.php
Implement Smarty3
[friendica.git] / view / theme / quattro / theme.php
index 5cb373eefe85f8609f305fc716c4b0d88a7a9198..e21deb8ab536bc6fb4437e8fc7ecaf83c2b13e78 100644 (file)
@@ -4,10 +4,11 @@
  * Version: 0.5
  * Author: Fabio <http://kirgroup.com/profile/fabrixxm>
  * Maintainer: Fabio <http://kirgroup.com/profile/fabrixxm>
- * Maintainer: Tobias <https://diekershoff.homeunix.net/friendika/profile/tobias>
+ * Maintainer: Tobias <https://diekershoff.homeunix.net/friendica/profile/tobias>
  */
  
 $a->theme_info = array();
+$a->theme['template_engine'] = 'smarty3';
 
 function quattro_init(&$a) {
 $a->page['htmlhead'] .= <<< EOT
@@ -42,11 +43,21 @@ function insertFormatting(comment,BBcode,id) {
        return true;
 }
 
+function showThread(id) {
+       $("#collapsed-comments-" + id).show()
+       $("#collapsed-comments-" + id + " .collapsed-comments").show()
+}
+function hideThread(id) {
+       $("#collapsed-comments-" + id).hide()
+       $("#collapsed-comments-" + id + " .collapsed-comments").hide()
+}
+
+
 function cmtBbOpen(id) {
-       $(".comment-edit-bb-" + id).show();
+       $("#comment-edit-bb-" + id).show();
 }
-function cmtBbClose(comment, id) {
-       $(".comment-edit-bb-" + id).hide();
+function cmtBbClose(id) {
+       $("#comment-edit-bb-" + id).hide();
 }
 $(document).ready(function() {