function q_view_buttons($q_view) { if (isset($q_view['form']['buttons']) && count($q_view['form']['buttons'])) { ami_dhp_add_q_delete_button($q_view['form']['buttons'], $q_view['raw']); } qa_html_theme_base::q_view_buttons($q_view); }
function q_view_buttons($q_view) { if (qa_opt('ajax_comment_enable') && qa_opt('ajax_comment_username') && isset($q_view['form']['buttons']['comment']) && !$this->qa_state && $this->can_comment) { $handle = $this->getHandleFromId($q_view['raw']['userid']); $q_view['form']['buttons']['comment']['comment_username'] = $handle; } qa_html_theme_base::q_view_buttons($q_view); }
function q_view_buttons($q_view) { qa_html_theme_base::q_view_buttons($q_view); if (qa_opt('share_plugin_widget_only')) { return; } if ($this->template != 'question') { return; } // get buttons $buttons = $this->qa_share_buttons($q_view); // show inline if answers or text suggest is off if (!empty($this->content['a_list']['as']) || !qa_opt('share_plugin_suggest') && $buttons) { $this->output('<div id="qa-share-buttons">', $buttons, '</div>'); } else { if ($buttons && empty($this->content['a_list']['as']) && qa_opt('share_plugin_suggest')) { $this->output('<div id="qa-share-buttons-container">'); $text = qa_opt('share_plugin_suggest_text'); $text = str_replace('#', '<span id="qa-share-buttons">' . $buttons . '</span>', $text); $this->output_raw($text); $this->output('</div>'); } } }
function q_view_buttons($q_view) { // show buttons if user is logged in $userid = qa_get_logged_in_userid(); if (isset($userid)) { qa_html_theme_base::q_view_buttons($q_view); } }
public function q_view_buttons($q_view) { if (qa_opt('donut_show_collapsible_btns')) { if (!empty($q_view['form'])) { $q_view_temp = $q_view; $allowed_main_btns = array('answer', 'comment'); $q_view_temp['form']['buttons'] = $this->donut_divide_array($q_view['form']['buttons'], $allowed_main_btns); $this->output('<div class="qa-q-view-buttons clearfix">'); $this->output('<div class="default-buttons pull-left">'); $this->form($q_view['form']); $this->output('</div>'); $this->donut_generate_action_button($q_view_temp); $this->output('</div>'); } } else { parent::q_view_buttons($q_view); } }