wordpress 中对侧边栏的修改

首先:欢迎大家访问我的博客网站:[size=x-large][url=tys.cz.cc]网络赚钱博客[/url][/size]

在这个网页[url]http://codex.wordpress.org/Template_Tags/wp_list_bookmarks[/url]上,看到了这个方法:
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>

就是我所用的。其实我不太明白意思,反正能用就可以了。没有细看

:idea: ***************************************************************** :idea:
兄弟们啊,给俺点下博客上面的阿里妈妈广告吧,俺昨天一分钱收入也没有!

-----------------------------想赚钱的来看看 ^_^-------------------------------------
[color=gray]在这个位置分享一下[url=http://zgqhyh.iteye.com/blog/469033][b]探讨程序|员赚钱方法[/b][/url][/color]
-----------------------------想赚钱的来看看 ^_^-------------------------------------
:idea: ***************************************************************** :idea:


然后把这个方法,结果 主题边栏的代码,加上了这些内容
//下面是我加的
<!--my adding link list begin -->
<div class="widget">
<h3>link list</h3>
<ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</ul>
</div>
<!--my adding link list end -->
//上面是我加的


因为主题的边栏不显示连接,我就自己加上了,呵呵。



<?php
$options = get_option('inove_options');

if($options['feed'] && $options['feed_url']) {
if (substr(strtoupper($options['feed_url']), 0, 7) == 'HTTP://') {
$feed = $options['feed_url'];
} else {
$feed = 'http://' . $options['feed_url'];
}
} else {
$feed = get_bloginfo('rss2_url');
}
?>

<!-- sidebar START -->
<div id="sidebar">

<!-- feeds -->
<div class="widget">
<h3>Entries Feed</h3>
<div class="content widget_feeds">
<div id="subscribe">
<a id="feedrss" title="<?php _e('Subscribe to this blog...', 'inove'); ?>" href="<?php echo $feed; ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed', 'inove'); ?></a>
<ul id="feed_readers">
<li id="google_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Google', 'inove'); ?>" href="http://fusion.google.com/add?feedurl=<?php echo $feed; ?>"><span><?php _e('Google', 'inove'); ?></span></a></li>
<li id="youdao_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Youdao', 'inove'); ?>" href="http://reader.youdao.com/#url=<?php echo $feed; ?>"><span><?php _e('Youdao', 'inove'); ?></span></a></li>
<li id="xianguo_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Xian Guo', 'inove'); ?>" href="http://www.xianguo.com/subscribe.php?url=<?php echo $feed; ?>"><span><?php _e('Xian Guo', 'inove'); ?></span></a></li>
<li id="zhuaxia_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Zhua Xia', 'inove'); ?>" href="http://www.zhuaxia.com/add_channel.php?url=<?php echo $feed; ?>"><span><?php _e('Zhua Xia', 'inove'); ?></span></a></li>
<li id="yahoo_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('My Yahoo!', 'inove'); ?>" href="http://add.my.yahoo.com/rss?url=<?php echo $feed; ?>"><span><?php _e('My Yahoo!', 'inove'); ?></span></a></li>
<li id="newsgator_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('newsgator', 'inove'); ?>" href="http://www.newsgator.com/ngs/subscriber/subfext.aspx?url=<?php echo $feed; ?>"><span><?php _e('newsgator', 'inove'); ?></span></a></li>
<li id="bloglines_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('Bloglines', 'inove'); ?>" href="http://www.bloglines.com/sub/<?php echo $feed; ?>"><span><?php _e('Bloglines', 'inove'); ?></span></a></li>
<li id="inezha_reader"><a class="reader" title="<?php _e('Subscribe with ', 'inove'); _e('iNezha', 'inove'); ?>" href="http://inezha.com/add?url=<?php echo $feed; ?>"><span><?php _e('iNezha', 'inove'); ?></span></a></li>
</ul>
</div>
<?php if($options['feed_email'] && $options['feed_url_email']) : ?>
<a id="feedemail" title="<?php _e('Subscribe to this blog via email...', 'inove'); ?>" href="<?php echo $options['feed_url_email']; ?>"><?php _e('Email feed', 'inove'); ?></a>
<?php endif; ?>
<div class="fixed"></div>
</div>
</div>

<!-- showcase -->
<?php if( $options['showcase_content'] && (
($options['showcase_registered'] && $user_ID) ||
($options['showcase_commentator'] && !$user_ID && isset($_COOKIE['comment_author_'.COOKIEHASH])) ||
($options['showcase_visitor'] && !$user_ID && !isset($_COOKIE['comment_author_'.COOKIEHASH]))
) ) : ?>
<div class="widget">
<?php if($options['showcase_caption']) : ?>
<h3><?php if($options['showcase_title']){echo($options['showcase_title']);}else{_e('Showcase', 'inove');} ?></h3>
<?php endif; ?>
<div class="content">
<?php echo($options['showcase_content']); ?>
</div>
</div>
<?php endif; ?>

<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar') ) : ?>

<!-- posts -->
<?php
if (is_single()) {
$posts_widget_title = 'Recent Posts';
} else {
$posts_widget_title = 'Random Posts';
}
?>

<div class="widget">
<h3><?php echo $posts_widget_title; ?></h3>
<ul>
<?php
if (is_single()) {
$posts = get_posts('numberposts=10&orderby=post_date');
} else {
$posts = get_posts('numberposts=5&orderby=rand');
}
foreach($posts as $post) {
setup_postdata($post);
echo '<li><a href="' . get_permalink() . '">' . get_the_title() . '</a></li>';
}
$post = $posts[0];
?>
</ul>
</div>

<!-- recent comments -->
<?php if( function_exists('wp_recentcomments') ) : ?>
<div class="widget">
<h3>Recent Comments</h3>
<ul>
<?php wp_recentcomments('limit=5&length=16&post=false&smilies=true'); ?>
</ul>
</div>
<?php endif; ?>

<!-- tag cloud -->
<?php if (!is_single()) : ?>
<div id="tag_cloud" class="widget">
<h3>Tag Cloud</h3>
<p><?php wp_tag_cloud('smallest=8&largest=16'); ?></p>
</div>
<?php endif; ?>

<?php endif; ?>


<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('south_sidebar') ) : ?>

<!-- meta -->
<div class="widget">
<h3>Meta</h3>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
</ul>
</div>

<?php endif; ?>
//下面是我加的
<!--my adding link list begin -->
<div class="widget">
<h3>link list</h3>
<ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</ul>
</div>
<!--my adding link list end -->
//上面是我加的
</div>
<!-- sidebar END -->



下面是我所用的主题的信息

Poetry 1.9 作者为 cuikai

This theme was base on iNove,and designed by cuikai. 2 columns treats the theme poetically. Tested in Firefox, IE6, IE7 and IE8. Compatible up to Wordpress 2.8,and SEO friendly.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
* 添加复制时版权提示 * 禁止站内相互pingback * 修复置顶文章后显示错误 * 修复因PHP7+ 而导致class.tgm.php的标题错误 * 修复默认小工具CSS显示问题 * 添加 手机端底部友情链接**v1.20_local_shenyun** * 以下版本为神韵博客(https://51shenyun.cn) 基础于Alatelee(http://agatelee.cn)的修改* 添加评论算数验证码 * 添加侧边栏缓存 使其静态 减少数据库查询 /更新周期1小时 可在sidebar.php修改 * 优化SEO修改在首页时logo为h1标签 文章时标题为h1标签 logo为h2标签 * 优化SEO为head添加canonical标签 利于收录 * 移除预获取DNS 加快加载速度 * 移除更多无用head头 更加简洁**v1.11_local** 修改了显示bug, * 自定义表情支持 * 修改了all.js * 手机上点击评论表情dropdown无法弹出 * ipadmini2纵向放置出现了mobile-menu无法触发 * 桌面浏览器缩小窗口出现了mobile-menu无法出发 * 关于页面IOS移动设备可以触发hover事件 * 显示微信二维码 * 使用https方式获取gavatar头像,避免被墙 **v1.10_local** 更正了logo分辨率、将代码的tab替换为4个空格**v1.09_local** 自定义表情支持,评论表情选择**v1.08_local** Alatelee(http://agatelee.cn)修改版* 关于页面功能增加 * 404页面功能增加 * 增加了分类页面 * 本地化 * 替换了首页logo * 替换了默认图片 * 备案号 * 对于置顶的文章显示全文 * 重新设计了404页面 ![](public/images/404.png) * 增加了表格样式 * 增加了代码样式 * 增加了友情链接页面 * 增加了关于页面**v1.06** 牧风原版
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值