本文整理汇总了PHP中qa_html_theme_base::q_view_buttons方法的典型用法代码示例。如果您正苦于以下问题:PHP qa_html_theme_base::q_view_buttons方法的具体用法?PHP qa_html_theme_base::q_view_buttons怎么用?PHP qa_html_theme_base::q_view_buttons使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::q_view_buttons方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: q_view_buttons
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);
}
示例2: q_view_buttons
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);
}
示例3: q_view_buttons
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>');
}
}
}
示例4: q_view_buttons
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);
}
}
示例5: q_view_buttons
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);
}
}