本文整理匯總了PHP中qa_html_theme_base::c_item_buttons方法的典型用法代碼示例。如果您正苦於以下問題:PHP qa_html_theme_base::c_item_buttons方法的具體用法?PHP qa_html_theme_base::c_item_buttons怎麽用?PHP qa_html_theme_base::c_item_buttons使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類qa_html_theme_base
的用法示例。
在下文中一共展示了qa_html_theme_base::c_item_buttons方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: c_item_buttons
function c_item_buttons($c_item)
{
if (isset($c_item['form']['buttons']) && count($c_item['form']['buttons'])) {
ami_dhp_add_c_delete_button($c_item['form']['buttons'], $c_item['raw']);
}
qa_html_theme_base::c_item_buttons($c_item);
}
示例2: c_item_buttons
function c_item_buttons($c_item)
{
if (qa_opt('ajax_comment_enable') && qa_opt('ajax_comment_username') && isset($c_item['form']['buttons']['comment']) && !$this->qa_state && $this->can_comment) {
$handle = $this->getHandleFromId($c_item['raw']['userid']);
$c_item['form']['buttons']['comment']['comment_username'] = $handle;
}
qa_html_theme_base::c_item_buttons($c_item);
}
示例3: c_item_buttons
public function c_item_buttons($c_item)
{
if (qa_opt('donut_show_collapsible_btns')) {
if (!empty($c_item['form'])) {
$this->output('<div class="qa-c-item-buttons collapsed">');
$this->donut_generate_action_button($c_item);
$this->output('</div>');
}
} else {
parent::c_item_buttons($c_item);
}
}