コード例 #1
0
ファイル: index.php プロジェクト: hbzhzjh/my-chuncai-wp
/**
 * Echo an option.
 * @param  String $optname The name of the option.
 * @param  String $sub     The name of the sub-option (Optional).
 * @return null
 */
function _jx_chuncai_get_opt($optname, $sub = null)
{
    echo esc_attr(jx_chuncai_get_opt($optname, $sub));
}
コード例 #2
0
ファイル: options.php プロジェクト: hbzhzjh/my-chuncai-wp
				<input type="hidden" name="feedPlay"/>
				<div class="mar-down" cqid="fp" cqa='<?php 
echo json_encode(jx_chuncai_get_opt('feedPlay'));
?>
'></div>
				<button class="button btn-add-cqa" id="btn-add-fp">添加</button>
				<p class="description">喂食列表设定。</p>
			</td>
		</tr>

		<tr>
			<th><label for="btn-add-fl">快速跳转</label></th>
			<td>
				<input type="hidden" name="favLink"/>
				<div class="mar-down" cqid="fl" cqa='<?php 
echo json_encode(jx_chuncai_get_opt('favLink'));
?>
'></div>
				<button class="button btn-add-cqa" id="btn-add-fl">添加</button>
				<p class="description">添加一些常用链接, 建议不超过 8 个否则比较难看。请注意每个链接的文字不应超过 16 个字节。TODO: 改成分页显示?</p>
			</td>
		</tr>

		<tr>
			<th><label for="since">启用时间</label></th>
			<td>
				<input type="text" name="since" id="since" value="<?php 
_jx_chuncai_get_opt('since');
?>
" />
				<p class="description">如果您因为重装 WordPress 导致时间丢失您可以手动更改时间戳到首次启动时间戳。</p>