123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- /*
- Template name: 友情链接
- description: template for yusi123.com Yusi theme
- */
- get_header();
- ?>
- <div class="pagewrapper clearfix">
- <aside class="pagesidebar">
- <ul class="pagesider-menu">
- <?php echo str_replace("</ul></div>", "", ereg_replace("<div[^>]*><ul[^>]*>", "", wp_nav_menu(array('theme_location' => 'pagemenu', 'echo' => false)) )); ?>
- </ul>
- </aside>
- <div class="pagecontent">
- <header class="pageheader clearfix">
- <h1 class="pull-left">
- <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
- </h1>
- <div class="pull-right">
- <?php deel_share() ?>
- </div>
- </header>
- <?php while (have_posts()) : the_post(); ?>
- <article class="article-content">
- <?php the_content(); ?>
- </article>
- <h2>友情链接</h2>
- <?php
- $bookmarks = get_bookmarks(array('category' => dopt('d_linkpage_cat')?dopt('d_linkpage_cat'):''));
- if ( !empty($bookmarks) ){
- echo '<ul class="link-content clearfix">';
- foreach ($bookmarks as $bookmark) {
- echo '<li><a href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank" >'. get_avatar($bookmark->link_notes,64) . '<span class="sitename">'. $bookmark->link_name .'</span></a></li>';
- }
- echo '</ul>';
- }
- ?>
- <h2>我的链接</h2>
- <?php
- $bookmarks = get_bookmarks(array('category' => dopt('d_linkpage_cat_mine')?dopt('d_linkpage_cat_mine'):''));
- if ( !empty($bookmarks) ){
- echo '<ul class="link-content clearfix">';
- foreach ($bookmarks as $bookmark) {
- echo '<li><a href="' . $bookmark->link_url . '" title="' . $bookmark->link_description . '" target="_blank" >'. get_avatar($bookmark->link_notes,64) . '<span class="sitename">'. $bookmark->link_name .'</span></a></li>';
- }
- echo '</ul>';
- }
- ?>
- <?php comments_template('', true); ?>
- <?php endwhile; ?>
- </div>
- </div>
- <?php get_footer(); ?>
|