bbp_get_form_topic_type_dropdown (args美元''

返回主题类型选择框(普通/粘性/超级粘性)

描述

参数

args美元

(可选)该函数支持以下参数:—select_id:选择id。默认值为bbp_stick_topic - tab: Tabindex - topic_id: Topic id - selected:覆盖选中的选项

默认值:“

文件:bp-forums /主题/ template.php

$r = bbp_parse_args($args, array('select_id' => 'bbp_stick_topic', 'tab' => bbp_get_tab_index(), 'topic_id' => 0, 'selected' => false), 'topic_type_select');$r['select_id']] = $_POST[$r['select_id']]; //如果$r['select_id'] = $r['select_id'];} else{//编辑topic if (bbp_is_single_topic() || bbp_is_topic_edit()){//获取当前topic id $topic_id = bbp_get_topic_id($r['topic_id']);// Topic是超级粘的if (bbp_is_topic_super_sticky($topic_id)) {$r['selected'] = '超级';// Topic是sticky还是normal} else {$r['selected'] = bbp_is_topic_sticky($topic_id, false) ?“坚持”:“分开”;} } } } // 使用变量$标签= !空($ r['标签'])?tabindex = "。(int) $ r(“选项卡”)。“:”; // Start an output buffer, we'll finish it after the select loop ob_start(); ?>  
               

更新日志

更新日志
版本 描述
bbPress (r5059) 介绍了。

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队