<?php
class iceOptions {
function getOptions() {
$options = get_option('ice_options');
if (!is_array($options)) {
$options['description'] = '';
$options['keywords'] = '';
$options['opentongji'] = false;
$options['tongjicode'] = '';
$options['footertext'] = '';
$options['openfavicon'] = false;
$options['faviconurl'] = '';
$options['openlogo'] = false;
$options['logourl'] = '';
$options['textlogo'] = false;
$options['sharebar'] = true;
$options['relatedpost'] = true;
$options['fancybox'] = true;
$options['closejquery'] = false;
$options['sinajquery'] = true;
$options['headcode'] = '';
$options['bodycode'] = '';
$options['csscode'] = '';
update_option('ice_options', $options);
}
return $options;
}
/* -- 初始化 -- */
function init() {
if(isset($_POST['saveopts'])) {
$options = iceOptions::getOptions();
$options['description'] = stripslashes($_POST['description']);
$options['keywords'] = stripslashes($_POST['keywords']);
if ($_POST['opentongji']) { $options['opentongji'] = (bool)true; } else { $options['opentongji'] = (bool)false; }
$options['tongjicode'] = stripslashes($_POST['tongjicode']);
$options['footertext'] = stripslashes($_POST['footertext']);
if ($_POST['openfavicon']) { $options['openfavicon'] = (bool)true; } else { $options['openfavicon'] = (bool)false; }
$options['faviconurl'] = stripslashes($_POST['faviconurl']);
if ($_POST['openlogo']) { $options['openlogo'] = (bool)true; } else { $options['openlogo'] = (bool)false; }
$options['logourl'] = stripslashes($_POST['logourl']);
if ($_POST['textlogo']) { $options['textlogo'] = (bool)true; } else { $options['textlogo'] = (bool)false; }
if ($_POST['sharebar']) { $options['sharebar'] = (bool)true; } else { $options['sharebar'] = (bool)false; }
if ($_POST['relatedpost']) { $options['relatedpost'] = (bool)true; } else { $options['relatedpost'] = (bool)false; }
if ($_POST['fancybox']) { $options['fancybox'] = (bool)true; } else { $options['fancybox'] = (bool)false; }
if ($_POST['closejquery']) { $options['closejquery'] = (bool)true; } else { $options['closejquery'] = (bool)false; }
if ($_POST['sinajquery']) { $options['sinajquery'] = (bool)true; } else { $options['sinajquery'] = (bool)false; }
$options['headcode'] = stripslashes($_POST['headcode']);
$options['bodycode'] = stripslashes($_POST['bodycode']);
$options['csscode'] = stripslashes($_POST['csscode']);
update_option('ice_options', $options);
echo "<div id='message' class='updated fade'><p>设置已保存</p></div>";
} elseif (isset($_POST['resetopts'])) {
$options = iceOptions::getOptions();
$options['description'] = '';
$options['keywords'] = '';
$options['opentongji'] = false;
$options['tongjicode'] = '';
$options['footertext'] = '';
$options['openfavicon'] = false;
$options['faviconurl'] = '';
$options['openlogo'] = false;
$options['logourl'] = '';
$options['textlogo'] = false;
$options['sharebar'] = true;
$options['relatedpost'] = true;
$options['fancybox'] = true;
$options['closejquery'] = false;
$options['sinajquery'] = true;
$options['headcode'] = '';
$options['bodycode'] = '';
$options['csscode'] = '';
update_option('ice_options', $options);
echo "<div id='message' class='updated fade'><p>设置已重置。</p></div>";
} else { iceOptions::getOptions(); }
add_theme_page("Beautiful!主题设置", "Beautiful主题设置", 'edit_themes', basename(__FILE__), array('iceOptions', 'display'));
}
/* -- 标签页 -- */
function display() {
$options = iceOptions::getOptions();
?>
<style type="text/css">
#optpage{width:980px;position:relative;z-index:0}#header{margin:0 0 20px 0}#optwarp{background-color:#F1F1F1;background-image:-moz-linear-gradient(center top,#F9F9F9,#F5F5F5);border:1px solid #ccc;box-shadow:0 5px 40px #bbb;margin-top:13px}#optnav{float:left;position:relative;z-index:9999;width:160px}#optnav li{margin-bottom:0;cursor:pointer}#optnav ul li a{display:block;padding:10px 10px 10px 15px;font-family:Georgia,Serif;font-size:13px;text-decoration:none;color:#888;border-bottom:1px solid #DFDFDF;box-shadow:0 1px 0 #FFFFFF inset;-moz-box-shadow:0 1px 0 #FFFFFF inset;-webkit-box-shadow:0 1px 0 #FFFFFF inset;text-shadow:0 1px 0 #FFFFFF}#optnav ul li.currentnav a,#optnav ul li a:hover{color:#464646;background-color:#fff}#optnav ul li:first-child a{border-radius:3px 0 0 0}#optcont{float:left;min-height:550px;width:790px;margin-left:-1px;padding:0 14px;font-family:"Lucida Grande",Sans-serif;background-color:#fff;border-left:1px solid #DFDFDF;border-radius:0 3px 0 0}.optmain{display:none}.optcurr{display:block}.opttitle{border-bottom:1px solid #F2F2F2;font-size:18px;font-weight:bold;padding:20px 0 10px}.section,.item{padding:12px 0;border-bottom:1px solid #f2f2f2}.item .section{border:none;padding:0}.section h3{margin:5px 0 10px;padding:0;font-size:1.05em}.section .controls{float:left;width:345px;margin:0 15px 0 0}.section .explain{float:left;width:225px;padding:0 10px 0 0;font-size:11px;color:#999999;margin-bottom:10px;line-height:16px}.controls select{width:340px}.controls textarea{width:345px}input[type=text]{width:340px}.section-checkbox .controls{width:25px;margin-right:0}.section-checkbox .explain{width:540px}.save_bar_top{background-color:#F1F1F1;background-image:-moz-linear-gradient(center top,#F9F9F9,#ECECEC);border-top:1px solid #fff;border-right:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf;border-left:1px solid #dfdfdf;padding:5px 10px 0px;height:30px;text-align:right;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.reset-button{float:left}html body .clear{background:none;border:0;clear:both;display:block;float:none;font-size:0;list-style:none;margin:0;padding:0;overflow:hidden;visibility:hidden;width:0;height:0}
</style>
<form action="#" method="post" enctype="multipart/form-data" name="deve_form" id="deve_form" />
<div class="wrap" id="optpage">
<div id="icon-options-general" class="icon32"><br></div>
<h2>Beautiful!主题设置</h2><br>
<div id="optwarp">
<div id="optnav"><ul>
<li class="currentnav" id="optnav-1"><a title="网站设置">网站设置</a></li>
<li id="optnav-2"><a title="外观设置">外观设置</a></li>
<li id="optnav-3"><a title="功能设置">功能设置</a></li>
<li id="optnav-4"><a title="其他设置">其他设置</a></li>
<li id="optnav-5"><a title="主题支持">主题支持</a></li>
</ul></div>
<div id="optcont">
<div class="optcurr optmain" id="opt-1">
<h2 class="opttitle">网站设置</h2>
<div class="section section-textarea ">
<h3 class="heading">网站描述</h3>
<div class="option">
<div class="controls">
<textarea class="tz-input" name="description" id="description" cols="8" rows="8"><?php echo($options['description']); ?></textarea>
<br></div><div class="explain">用简洁的语言描述你的网站。<br>网站描述将会添加到head标签内,<br>该功能可以方便搜索引擎查找你的网站。</div>
<div class="clear"> </div></div></div>
<div class="section section-textarea ">
<h3 class="heading">网站关键词</h3>
<div class="option">
<div class="controls">
<textarea class="tz-input" name="keywords" id="keywords" cols="8" rows="8"><?php echo($options['keywords']); ?></textarea>
<br></div><div class="explain">网站关键词将会添加到head标签内,<br>该功能可以方便搜索引擎查找你的网站。<br>多个关键词之间请用英文半角逗号隔开。</div>
<div class="clear"> </div></div></div>
<div class="item">
<div class="section section-checkbox ">
<h3 cla
没有合适的资源?快使用搜索试试~ 我知道了~
基于PHP的单栏简单wordpress主题 php版.zip
共127个文件
png:60个
gif:26个
php:20个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 123 浏览量
2023-07-24
22:16:15
上传
评论
收藏 866KB ZIP 举报
温馨提示
基于PHP的单栏简单wordpress主题 php版.zip
资源推荐
资源详情
资源评论
收起资源包目录
基于PHP的单栏简单wordpress主题 php版.zip (127个子文件)
bootstrap.css 106KB
style.css 22KB
fancybox.css 9KB
ie7.css 3KB
login.css 2KB
404.gif 12KB
icon_exclaim.gif 4KB
icon_mrgreen.gif 2KB
icon_mad.gif 2KB
icon_arrow.gif 2KB
icon_surprised.gif 2KB
icon_neutral.gif 2KB
icon_question.gif 2KB
icon_razz.gif 2KB
icon_evil.gif 2KB
icon_lol.gif 2KB
icon_cool.gif 2KB
icon_cry.gif 2KB
icon_smile.gif 2KB
icon_biggrin.gif 2KB
icon_eek.gif 2KB
icon_wink.gif 2KB
icon_redface.gif 2KB
icon_twisted.gif 2KB
icon_idea.gif 2KB
icon_confused.gif 2KB
icon_sad.gif 2KB
icon_rolleyes.gif 2KB
saving.gif 1KB
loading.gif 729B
blank.gif 43B
shortcode.jpg 16KB
3.jpg 13KB
4.jpg 12KB
2.jpg 10KB
1.jpg 10KB
screenshot.jpg 7KB
jQuery.js 91KB
bootstrap.min.js 28KB
fancybox.pack.js 16KB
ice.js 11KB
comments-ajax.js 6KB
DD_belatedPNG.js 5KB
jquery.ddm.js 3KB
html5.js 2KB
mousewheel.js 1KB
admin.php 17KB
functions.php 13KB
shortcode.php 12KB
comments.php 8KB
comments-ajax.php 7KB
header.php 4KB
footerwidgets.php 3KB
singleformat.php 3KB
image.php 2KB
commentlists.php 2KB
footer.php 2KB
postformat.php 2KB
guestbook.php 1KB
sharebar.php 1KB
page.php 768B
index.php 698B
single.php 494B
404page.php 352B
searchform.php 169B
404.php 115B
body.png 357KB
netbg.png 36KB
content.png 28KB
nopic.png 25KB
fancybox.png 15KB
glyphicons-halflings.png 12KB
fancy_loading.png 10KB
glyphicons-halflings-white.png 9KB
tutorial.png 9KB
warning.png 8KB
login.png 8KB
question.png 8KB
error.png 7KB
download.png 7KB
blink.png 7KB
project.png 7KB
codee.png 7KB
text.png 7KB
author.png 6KB
icon_lol.png 4KB
but-heart.png 4KB
but-search.png 3KB
but-next.png 3KB
shadow.png 3KB
but-down.png 3KB
go.png 3KB
but-music.png 3KB
but-link.png 3KB
but-text.png 3KB
but-box.png 3KB
but-document.png 3KB
未标题-1.png 3KB
top.png 3KB
line.png 3KB
共 127 条
- 1
- 2
资源评论
助力毕业
- 粉丝: 2177
- 资源: 5130
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功