function a_item_buttons($a_item) { if (isset($a_item['form']['buttons']) && count($a_item['form']['buttons'])) { ami_dhp_add_a_delete_button($a_item['form']['buttons'], $a_item['raw']); } qa_html_theme_base::a_item_buttons($a_item); }
function a_item_buttons($a_item) { if (qa_opt('ajax_comment_enable') && qa_opt('ajax_comment_username') && isset($a_item['form']['buttons']['comment']) && !$this->qa_state && $this->can_comment) { $handle = $this->getHandleFromId($a_item['raw']['userid']); $a_item['form']['buttons']['comment']['comment_username'] = $handle; } qa_html_theme_base::a_item_buttons($a_item); }
public function a_item_buttons($a_item) { if (qa_opt('donut_show_collapsible_btns')) { if (!empty($a_item['form'])) { $a_item_temp = $a_item; $allowed_main_btns = array('comment'); $a_item_temp['form']['buttons'] = $this->donut_divide_array($a_item['form']['buttons'], $allowed_main_btns); $this->output('<div class="qa-a-item-buttons clearfix">'); $this->output('<div class="default-buttons pull-left">'); $this->form($a_item['form']); $this->output('</div>'); $this->donut_generate_action_button($a_item_temp); $this->output('</div>'); } } else { parent::a_item_buttons($a_item); } }