Browse Source

Add class attribute to template

pdontthink 18 years ago
parent
commit
e6aa350ba9
3 changed files with 4 additions and 0 deletions
  1. 1 0
      functions/page_header.php
  2. 1 0
      functions/strings.php
  3. 2 0
      plugins/listcommands/functions.php

+ 1 - 0
functions/page_header.php

@@ -168,6 +168,7 @@ function makeInternalLink($path, $text, $target='') {
     // used to show a compose link (when comp_in_new is turned on)
     //
     $oTemplate->assign('onclick', '');
+    $oTemplate->assign('class', '');
 
     return $oTemplate->fetch('hyperlink.tpl');
 }

+ 1 - 0
functions/strings.php

@@ -815,6 +815,7 @@ function makeComposeLink($url, $text = null, $target='') {
         $oTemplate->assign('uri', 'javascript:void(0)');
         $oTemplate->assign('text', $text);
         $oTemplate->assign('onclick', "comp_in_new('$compuri','$compose_width','$compose_height')");
+        $oTemplate->assign('class', '');
         return $oTemplate->fetch('hyperlink.tpl');
     }
 

+ 2 - 0
plugins/listcommands/functions.php

@@ -66,6 +66,8 @@ function plugin_listcommands_menu_do() {
             $oTemplate->assign('uri', $act);
             $oTemplate->assign('target', '_blank');
             $oTemplate->assign('text', $fieldsdescr[$cmd]);
+            $oTemplate->assign('class', '');
+            $oTemplate->assign('onclick', '');
             $output = $oTemplate->fetch('hyperlink.tpl');
             $links[] = $output;
         }