Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: render_comments klaida

Parašė minimukas· 2012 Rugp. 2 13:08:00
#2

jawa pamegink atisdaryti theme.php faila ir susirask:

function render_news($subject, $news, $info) {

virs jo dek:

function render_comments($c_data, $c_info){
    global $locale;
    opentable($locale['c100']);
    if (!empty($c_data)){
       echo "<div class='comments floatfix'>\n";
          $c_makepagenav = '';
          if ($c_info['c_makepagenav'] !== FALSE) { 
          echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n"; 
       }
          foreach($c_data as $data) {
          echo "<div class='tbl2'>\n";
          if ($data['edit_dell'] !== FALSE) { 
             echo "<div style='float:right' class='comment_actions'>".$data['edit_dell']."\n</div>\n";
          }
          echo "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a> |\n";
          echo "<span class='comment-name'>".$data['comment_name']."</span>\n";
          echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
          echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
       }
       echo $c_makepagenav;
       if ($c_info['admin_link'] !== FALSE) {
          echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
       }
       echo "</div>\n";
    } else {
       echo $locale['c101']."\n";
    }
    closetable();   
 }