function a_item_main($a_item)
 {
     if (qa_opt('ajax_comment_enable') && !$this->qa_state && $this->can_comment) {
         $switch = @$a_item['c_form'];
         $a_item['c_form'] = $this->qa_ajax_comment_form_shell($a_item['raw']['postid'], isset($a_item['c_list']));
         $a_item['c_form_2'] = @$switch;
     }
     qa_html_theme_base::a_item_main($a_item);
     $this->form(@$a_item['c_form_2']);
     // answer form if any
 }
Пример #2
0
 function a_item_main($a_item)
 {
     if ($this->is_print_view) {
         $this->output('<DIV CLASS="qa-a-item-main">');
         if ($a_item['hidden']) {
             $this->output('<DIV CLASS="qa-a-item-hidden">');
         } elseif ($a_item['selected']) {
             $this->output('<DIV CLASS="qa-a-item-selected">');
         }
         $this->a_item_content($a_item);
         $this->post_meta($a_item, 'qa-a-item');
         $this->a_item_clear();
         if ($a_item['hidden'] || $a_item['selected']) {
             $this->output('</DIV>');
         }
         $this->c_list(@$a_item['c_list'], 'qa-a-item');
         $this->output('</DIV> <!-- END qa-a-item-main -->');
     } else {
         qa_html_theme_base::a_item_main($a_item);
     }
 }