123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- <?php
- $themename = $dname.'主题';
- $options = array(
- "d_description", "d_keywords", "d_tui", "d_sticky_b", "d_sticky_count", "d_linkpage_cat", "d_linkpage_cat_mine","d_tougao_b", "d_tougao_time", "d_tougao_mailto", "d_avatar_b", "d_avatarDate", "d_sideroll_b", "d_sideroll_1", "d_sideroll_2", "d_pingback_b", "d_autosave_b", "d_tqq_b", "d_tqq", "d_weibo_b", "d_weibo", "d_facebook_b", "d_facebook","d_google_b", "d_google", "d_twitter_b", "d_twitter", "d_rss","d_qqContact_b","d_qqContact","d_weixin_b","d_weixin","d_emailContact_b","d_emailContact", "d_track_b", "d_track", "d_headcode_b", "d_headcode", "d_footcode_b", "d_footcode", "d_adsite_01_b", "d_adsite_01", "d_adindex_02_b", "d_adindex_02", "d_adindex_01_b", "d_adindex_01", "d_adindex_03_b", "d_adindex_03", "d_adpost_01_b", "d_adpost_01", "d_adpost_02_b", "d_adpost_02", "d_adpost_03_b", "d_adpost_03", "d_sign_b", "d_jquerybom_b", "d_ajaxpager_b", "d_thumbnail_b", "d_bdshare_b", "d_related_count", "d_post_views_b", "d_post_author_b", "d_post_comment_b", "d_post_time_b","hot_list_title","hot_list_number","hot_list_date","hot_list_check","d_post_like_b","d_singleMenu_b","Mobiled_adindex_02_b","Mobiled_adindex_02","Mobiled_adpost_01_b","Mobiled_adpost_01","Mobiled_adpost_02_b","Mobiled_adpost_02","d_spamComments_b"
- );
- function mytheme_add_admin() {
- global $themename, $options;
- if ( $_GET['page'] == basename(__FILE__) ) {
- if ( 'save' == $_REQUEST['action'] ) {
- foreach ($options as $value) {
- update_option( $value, $_REQUEST[ $value ] );
- }
- header("Location: admin.php?page=Yusi.php&saved=true");
- die;
- }
- }
- add_theme_page($themename." Options", $themename."设置", 'edit_themes', basename(__FILE__), 'mytheme_admin');
- }
- function mytheme_admin() {
- global $themename, $options;
- $i=0;
- if ( $_REQUEST['saved'] ) echo '<div class="updated settings-error"><p>'.$themename.'修改已保存</p></div>';
- ?>
- <div class="wrap d_wrap">
- <link rel="stylesheet" href="<?php bloginfo('template_url') ?>/admin/admin.css"/>
- <h2><?php echo $themename; ?>设置
- <span class="d_themedesc">发布来源:<a href="http://www.yusi123.com/" target="_blank">欲思博客</a> <a href="http://yusi123.com/3233.html" target="_blank">访问<?php echo $themename; ?>主页</a></span><span style="font-size:16px;color: rgb(245, 99, 99);padding-left:20px;">觉得主题不错?支持一下我继续更新吧 -><a href="http://yusi123.com/pay" target="_blank">捐赠</a></span>
- </h2>
- <form method="post" class="d_formwrap">
- <table>
- <thead>
- <tr>
- <th width="200"></th>
- <th></th>
- </tr>
- </thead>
- <tr>
- <td class="d_tit">网站描述</td>
- <td>
- <input class="ipt-b" type="text" id="d_description" name="d_description" value="<?php echo dopt('d_description'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">网站关键字</td>
- <td>
- <input class="ipt-b" type="text" id="d_keywords" name="d_keywords" value="<?php echo dopt('d_keywords'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">最新消息</td>
- <td>
- <textarea name="d_tui" id="d_tui" type="textarea" rows=""><?php echo dopt('d_tui'); ?></textarea>
- <span class="d_tip">最新消息显示在全站导航条下方,非常给力的推广位置</span>
- </td>
- </tr>
- <tr>
- <td class="d_tit">首页置顶推荐幻灯片</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_sticky_b" name="d_sticky_b" <?php if(dopt('d_sticky_b')) echo 'checked="checked"' ?>>开启
- </label>
- 显示<input class="d_num" name="d_sticky_count" id="d_sticky_count" type="number" value="<?php echo dopt('d_sticky_count'); ?>">条 默认4条
-
- <span class="d_tip">开启后请确保您的后台-文章中设置了4篇以上的置顶文章,并且文章第一张图片像素为716*297</span>
- </td>
- </tr>
- <tr>
- <td class="d_tit">友情链接页面</td>
- <td>
- <label class="checkbox inline">
- 只显示分类ID为 <input name="d_linkpage_cat" id="d_linkpage_cat" type="text" value="<?php echo dopt('d_linkpage_cat'); ?>"> 的链接(id之间用英文逗号隔开),默认显示全部,如果要显示带头像的友情链接,请在notes中添加上链接邮箱
-
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">我的链接</td>
- <td>
- <label class="checkbox inline">
- 我的分类ID为 <input name="d_linkpage_cat_mine" id="d_linkpage_cat_mine" type="text" value="<?php echo dopt('d_linkpage_cat_mine'); ?>">
-
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">文章无特色图时不显示默认缩略图</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_thumbnail_b" name="d_thumbnail_b" <?php if(dopt('d_thumbnail_b')) echo 'checked="checked"' ?>>开启
- </label>
- 列表Ajax加载分页内容
- <label class="checkbox inline">
- <input type="checkbox" id="d_ajaxpager_b" name="d_ajaxpager_b" <?php if(dopt('d_ajaxpager_b')) echo 'checked="checked"' ?>>开启
- </label>
- 文章页顶部面包屑导航 <label class="checkbox inline">
- <input type="checkbox" id="d_singleMenu_b" name="d_singleMenu_b" <?php if(dopt('d_singleMenu_b')) echo 'checked="checked"' ?>>开启
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">热门排行</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="hot_list_check" name="hot_list_check" <?php if(dopt('hot_list_check')) echo 'checked="checked"' ?>>开启
- </label>
- 显示天数 <input class="hot_list_date" name="hot_list_date" id="hot_list_date" type="number" value="<?php echo dopt('hot_list_date'); ?>"> 天(默认7)
-
- 显示数量 <input class="hot_list_number" name="hot_list_number" id="hot_list_number" type="number" value="<?php echo dopt('hot_list_number'); ?>">条(默认10)
- 名称 <input class="d_inp_short" name="hot_list_title" id="hot_list_title" type="text" value="<?php echo dopt('hot_list_title'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">列表文章属性开关</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_post_views_b" name="d_post_views_b" <?php if(dopt('d_post_views_b')) echo 'checked="checked"' ?>>不显示访客数
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="d_post_author_b" name="d_post_author_b" <?php if(dopt('d_post_author_b')) echo 'checked="checked"' ?>>不显示作者
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="d_post_comment_b" name="d_post_comment_b" <?php if(dopt('d_post_comment_b')) echo 'checked="checked"' ?>>不显示评论数
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="d_post_time_b" name="d_post_time_b" <?php if(dopt('d_post_time_b')) echo 'checked="checked"' ?>>不显示时间
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="d_post_like_b" name="d_post_like_b" <?php if(dopt('d_post_like_b')) echo 'checked="checked"' ?>>不显示喜欢
- </label>
- </td>
- </tr>
- </td>
- </tr>
- <tr>
- <td class="d_tit">文章页 - 相关文章显示条数</td>
- <td>
- 显示<input class="d_num" name="d_related_count" id="d_related_count" type="number" value="<?php echo dopt('d_related_count'); ?>">条 默认 8
- </td>
- </tr>
- <tr>
- <td class="d_tit">jQuery底部加载</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_jquerybom_b" name="d_jquerybom_b" <?php if(dopt('d_jquerybom_b')) echo 'checked="checked"' ?>>开启
- </label>
- <span class="d_tip">jQuery默认在head区域加载,如果需要页面载入加速,请开启,但是有可能影响部分依赖jQuery的插件失效。</span>
- </td>
- </tr>
- <tr>
- <td class="d_tit">用户登录信息和分享</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_sign_b" name="d_sign_b" <?php if(dopt('d_sign_b')) echo 'checked="checked"' ?>>开启用户登录信息
- </label>
- <label class="checkbox inline">
- <input type="checkbox" id="d_bdshare_b" name="d_bdshare_b" <?php if(dopt('d_bdshare_b')) echo 'checked="checked"' ?>>开启百度分享
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">投稿</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_tougao_b" name="d_tougao_b" <?php if(dopt('d_tougao_b')) echo 'checked="checked"' ?>>开启
- </label>
- 投稿时间间隔 <input class="d_num" name="d_tougao_time" id="d_tougao_time" type="number" value="<?php echo dopt('d_tougao_time'); ?>"> 秒,默认:240
-
- 投稿提醒邮箱 <input name="d_tougao_mailto" id="d_tougao_mailto" type="text" value="<?php echo dopt('d_tougao_mailto'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">评论头像缓存</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_avatar_b" name="d_avatar_b" <?php if(dopt('d_avatar_b')) echo 'checked="checked"' ?>>开启
- </label>
- <label class="d_number">
- 缓存
- <input class="d_num " name="d_avatarDate" id="d_avatarDate" type="number" value="<?php if( dopt('d_avatarDate') ) echo dopt('d_avatarDate'); else echo '15'; ?>"> 天
-
- 开启后请确保网站根目录(与wp-content平级)有avatar文件夹,且权限设置成777
- <br>
- <span class="d_tip">缓存头像有利于头像加载和防备Gravatar头像站点被墙;如有报错等异常,请关闭,可能你的主机不支持</span>
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">评论内容过滤</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_spamComments_b" name="d_spamComments_b" <?php if(dopt('d_spamComments_b')) echo 'checked="checked"' ?>>开启
- </label>
- <span class="d_tip">开启后,会禁止有日文字符和纯英文的评论,不对外的建议开启。</span>
- </td>
- </tr>
- <tr>
- <td class="d_tit">侧栏模块固定</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_sideroll_b" name="d_sideroll_b" <?php if(dopt('d_sideroll_b')) echo 'checked="checked"' ?>>开启
- </label>
- <label class="d_number">
- 滚动时 固定侧栏的 第
- <input class="d_num " name="d_sideroll_1" id="d_sideroll_1" type="number" value="<?php echo dopt('d_sideroll_1'); ?>"> 个模块
- </label>
- 和
- <label class="d_number">
- 第
- <input class="d_num " name="d_sideroll_2" id="d_sideroll_2" type="number" value="<?php echo dopt('d_sideroll_2'); ?>"> 个模块
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">禁止站内文章Pingback</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_pingback_b" name="d_pingback_b" <?php if(dopt('d_pingback_b')) echo 'checked="checked"' ?>>开启
-
- <span class="d_tip">开启后,不会发送站内Pingback,建议开启</span>
- </label>
- </td>
- </tr>
- <tr>
- <td class="d_tit">禁止后台编辑时自动保存</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_autosave_b" name="d_autosave_b" <?php if(dopt('d_autosave_b')) echo 'checked="checked"' ?>>开启
-
- <span class="d_tip">开启后,后台编辑文章时候不会定时保存,有效缩减数据库存储量;但是,一般不建议开启,除非你的数据库容量很小</span>
- </label>
- </td>
- </tr>
-
- <tr>
- <td class="d_tit">腾讯微博</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_tqq_b" name="d_tqq_b" <?php if(dopt('d_tqq_b')) echo 'checked="checked"' ?>>开启
- </label>
- 网址:<input class="d_inp_short" name="d_tqq" id="d_tqq" type="text" value="<?php echo dopt('d_tqq'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">新浪微博</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_weibo_b" name="d_weibo_b" <?php if(dopt('d_weibo_b')) echo 'checked="checked"' ?>>开启
- </label>
- 网址:<input class="d_inp_short" name="d_weibo" id="d_weibo" type="text" value="<?php echo dopt('d_weibo'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">腾讯微信</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_weixin_b" name="d_weixin_b" <?php if(dopt('d_weixin_b')) echo 'checked="checked"' ?>>开启
- </label>
- 订阅号:<input class="d_inp_short" name="d_weixin" id="d_weixin" type="text" value="<?php echo dopt('d_weixin'); ?>"><span class="d_tip">微信图片直接替换主题同名weixin.gif图片即可。</span>
- </td>
- </tr>
- <tr>
- <td class="d_tit">QQ联系代码</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_qqContact_b" name="d_qqContact_b" <?php if(dopt('d_qqContact_b')) echo 'checked="checked"' ?>>开启
- </label>
- 代码:<input class="d_inp_short" name="d_qqContact" id="d_qqContact" type="text" value="<?php echo dopt('d_qqContact'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">Email</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_emailContact_b" name="d_emailContact_b" <?php if(dopt('d_emailContact_b')) echo 'checked="checked"' ?>>开启
- </label>
- 网址:<input class="d_inp_short" name="d_emailContact" id="d_emailContact" type="text" value="<?php echo dopt('d_emailContact'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">Facebook</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_facebook_b" name="d_facebook_b" <?php if(dopt('d_facebook_b')) echo 'checked="checked"' ?>>开启
- </label>
- 网址:<input class="d_inp_short" name="d_facebook" id="d_facebook" type="text" value="<?php echo dopt('d_facebook'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">Google+</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_google_b" name="d_google_b" <?php if(dopt('d_google_b')) echo 'checked="checked"' ?>>开启
- </label>
- 网址:<input class="d_inp_short" name="d_google" id="d_google" type="text" value="<?php echo dopt('d_google'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">Twitter</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_twitter_b" name="d_twitter_b" <?php if(dopt('d_twitter_b')) echo 'checked="checked"' ?>>开启
- </label>
- 网址:<input class="d_inp_short" name="d_twitter" id="d_twitter" type="text" value="<?php echo dopt('d_twitter'); ?>">
- </td>
- </tr>
- <tr>
- <td class="d_tit">RSS订阅地址</td>
- <td>
- <input class="d_inp_short" name="d_rss" id="d_rss" type="text" value="<?php echo dopt('d_rss'); ?>">
- <span class="d_tip">可以是其他订阅托管站点的地址。边栏只能选择六个社交账户,否则会错位。</span>
- </td>
- </tr>
- <tr>
- <td class="d_tit">流量统计代码</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_track_b" name="d_track_b" <?php if(dopt('d_track_b')) echo 'checked="checked"' ?>>开启
- <span class="d_tip">统计网站流量,推荐使用百度统计,国内比较优秀且速度快;还可使用Google统计、CNZZ等</span>
- </label>
- <textarea name="d_track" id="d_track" type="textarea" rows="2"><?php echo dopt('d_track'); ?></textarea>
-
- </td>
- </tr>
- <tr>
- <td class="d_tit">页面头部公共代码</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_headcode_b" name="d_headcode_b" <?php if(dopt('d_headcode_b')) echo 'checked="checked"' ?>>开启
- <span class="d_tip">会自动出现在页面头部(head区域),可放置广告代码等自定义(css或js)的全局代码块</span>
- </label>
- <textarea name="d_headcode" id="d_headcode" type="textarea" rows="2"><?php echo dopt('d_headcode'); ?></textarea>
-
- </td>
- </tr>
- <tr>
- <td class="d_tit">页面底部公共代码</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_footcode_b" name="d_footcode_b" <?php if(dopt('d_footcode_b')) echo 'checked="checked"' ?>>开启
- <span class="d_tip">同上,但是在全站页面底部出现</span>
- </label>
- <textarea name="d_footcode" id="d_footcode" type="textarea" rows="2"><?php echo dopt('d_footcode'); ?></textarea>
-
- </td>
- </tr>
- <tr>
- <td class="d_tit">广告:全站 - 导航下横幅</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adsite_01_b" name="d_adsite_01_b" <?php if(dopt('d_adsite_01_b')) echo 'checked="checked"' ?>>开启
- <span class="d_tip">广告区域,任意联盟广告和自定义广告的代码均可,下同</span>
- </label>
- <textarea name="d_adsite_01" id="d_adsite_01" type="textarea" rows=""><?php echo dopt('d_adsite_01'); ?></textarea>
-
- </td>
- </tr>
- <tr>
- <td class="d_tit">广告:全站正文列表最前</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adindex_02_b" name="d_adindex_02_b" <?php if(dopt('d_adindex_02_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="d_adindex_02" id="d_adindex_02" type="textarea" rows=""><?php echo dopt('d_adindex_02'); ?></textarea>
- </td>
- </tr>
-
- <tr>
- <td class="d_tit">广告:首页 - 导航下横幅</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adindex_01_b" name="d_adindex_01_b" <?php if(dopt('d_adindex_01_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="d_adindex_01" id="d_adindex_01" type="textarea" rows=""><?php echo dopt('d_adindex_01'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">广告:首页 - 正文最前上</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adindex_03_b" name="d_adindex_03_b" <?php if(dopt('d_adindex_03_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="d_adindex_03" id="d_adindex_03" type="textarea" rows=""><?php echo dopt('d_adindex_03'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">广告:文章页 - 页面标题下</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adpost_01_b" name="d_adpost_01_b" <?php if(dopt('d_adpost_01_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="d_adpost_01" id="d_adpost_01" type="textarea" rows=""><?php echo dopt('d_adpost_01'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">广告:文章页 - 相关文章下</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adpost_02_b" name="d_adpost_02_b" <?php if(dopt('d_adpost_02_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="d_adpost_02" id="d_adpost_02" type="textarea" rows=""><?php echo dopt('d_adpost_02'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">广告:文章页 - 网友评论下</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="d_adpost_03_b" name="d_adpost_03_b" <?php if(dopt('d_adpost_03_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="d_adpost_03" id="d_adpost_03" type="textarea" rows=""><?php echo dopt('d_adpost_03'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">手机广告:全站正文列表最前</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="Mobiled_adindex_02_b" name="Mobiled_adindex_02_b" <?php if(dopt('Mobiled_adindex_02_b')) echo 'checked="checked"' ?>>开启 <span class="d_tip">手机广告只适合在手机中投放。例如百度联盟移动广告,PC端不会显示。下同。</span>
- </label>
- <textarea name="Mobiled_adindex_02" id="Mobiled_adindex_02" type="textarea" rows=""><?php echo dopt('Mobiled_adindex_02'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">手机广告:文章页 - 页面标题下</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="Mobiled_adpost_01_b" name="Mobiled_adpost_01_b" <?php if(dopt('Mobiled_adpost_01_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="Mobiled_adpost_01" id="Mobiled_adpost_01" type="textarea" rows=""><?php echo dopt('Mobiled_adpost_01'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit">手机广告:文章页 - 相关文章下</td>
- <td>
- <label class="checkbox inline">
- <input type="checkbox" id="Mobiled_adpost_02_b" name="Mobiled_adpost_02_b" <?php if(dopt('Mobiled_adpost_02_b')) echo 'checked="checked"' ?>>开启
- </label>
- <textarea name="Mobiled_adpost_02" id="Mobiled_adpost_02" type="textarea" rows=""><?php echo dopt('Mobiled_adpost_02'); ?></textarea>
- </td>
- </tr>
- <tr>
- <td class="d_tit"></td>
- <td>
- <div class="d_desc">
- <input class="button-primary" name="save" type="submit" value="保存设置">
- </div>
- <input type="hidden" name="action" value="save">
- </td>
- </tr>
- </table>
- </form>
- </div>
- <script>
- var aaa = []
- jQuery('.d_wrap input, .d_wrap textarea').each(function(e){
- if( jQuery(this).attr('id') ) aaa.push( jQuery(this).attr('id') )
- })
- console.log( aaa )
- </script>
- <?php } ?>
- <?php add_action('admin_menu', 'mytheme_add_admin');?>
|