]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/vier/theme.php
Implement Smarty3
[friendica.git] / view / theme / vier / theme.php
index 5e483c5adc9cf04e0b8ca28d98991ddf4c1bc0dd..e9e638fa04217977121fb1623b909d54098f241d 100644 (file)
@@ -7,12 +7,14 @@
  * Maintainer: Ike <http://pirati.ca/profile/heluecht>
  */
 
+$a->theme['template_engine'] = 'smarty3';
+
 $a->theme_info = array();
 
 function vier_init(&$a) {
 $a->page['htmlhead'] .= <<< EOT
 <script>
-/*function insertFormatting(comment,BBcode,id) {
+function insertFormatting(comment,BBcode,id) {
 
                var tmpStr = $("#comment-edit-text-" + id).val();
                if(tmpStr == comment) {
@@ -41,7 +43,7 @@ $a->page['htmlhead'] .= <<< EOT
        }
        return true;
 }
-*/
+
 
 function showThread(id) {
        $("#collapsed-comments-" + id).show()
@@ -52,13 +54,15 @@ function hideThread(id) {
        $("#collapsed-comments-" + id + " .collapsed-comments").hide()
 }
 
-/*
+
 function cmtBbOpen(id) {
        $("#comment-edit-bb-" + id).show();
 }
 function cmtBbClose(id) {
        $("#comment-edit-bb-" + id).hide();
 }
+
+/*
 $(document).ready(function() {
 
 $('html').click(function() { $("#nav-notifications-menu" ).hide(); });
@@ -104,3 +108,4 @@ $('.savedsearchterm').hover(
 </script>
 EOT;
 }
+