wordpress 后台模板

        这是从后台常规配置页面提取出来的一个模板,之前用这个做了个插件的设置页面。

<div class="wrap">  
<h1>项目设置</h1>
<form method="post" action="options.php" novalidate="novalidate">
<input type="hidden" name="option_page" value="general"><input type="hidden" name="action" value="update"><input type="hidden" id="_wpnonce" name="_wpnonce" value="aae879095d"><input type="hidden" name="_wp_http_referer" value="/wp-admin/options-general.php">
<table class="form-table" role="presentation">
<tbody><tr>
<th scope="row"><label for="blogname">站点标题</label></th>
<td><input name="blogname" type="text" id="blogname" value="终结网络" class="regular-text"></td>
</tr>
<tr>
<th scope="row">成员资格</th>
<td> <fieldset><legend class="screen-reader-text"><span>成员资格</span></legend><label for="users_can_register">
<input name="users_can_register" type="checkbox" id="users_can_register" value="1">
任何人都可以注册</label>
</fieldset></td>
</tr>
<tr>
<th scope="row"><label for="default_role">新用户默认角色</label></th>
<td>
<select name="default_role" id="default_role">
<option selected="selected" value="subscriber">订阅者</option>
<option value="contributor">贡献者</option>
<option value="author">作者</option>
<option value="editor">编辑</option>
<option value="administrator">管理员</option></select>
</td>
</tr>
<tr>
<th scope="row">时间格式</th>
<td>
<fieldset><legend class="screen-reader-text"><span>时间格式</span></legend>
<label><input type="radio" name="time_format" value="ag:i" checked="checked"> <span class="date-time-text format-i18n">下午5:40</span><code>ag:i</code></label><br>
<label><input type="radio" name="time_format" value="g:i A"> <span class="date-time-text format-i18n">5:40 下午</span><code>g:i A</code></label><br>
<label><input type="radio" name="time_format" value="H:i"> <span class="date-time-text format-i18n">17:40</span><code>H:i</code></label><br>
<label><input type="radio" name="time_format" id="time_format_custom_radio" value="custom"> <span class="date-time-text date-time-custom-text">自定义:<span class="screen-reader-text"> 在下框中输入自定义时间格式</span></span></label><label for="time_format_custom" class="screen-reader-text">自定义时间格式:</label><input type="text" name="time_format_custom" id="time_format_custom" value="ag:i" class="small-text"><br>
</fieldset>
</td>
</tr>
</tbody></table>
<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary" value="保存更改"></p></form> 
    </div>
© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称常用语 夸夸
夸夸
还有吗!没看够!
表情代码图片

    暂无评论内容