page-links.php 776 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. Template Name: 友情链接模版
  4. */
  5. get_header();
  6. ?>
  7. <?php while(have_posts()) : the_post(); ?>
  8. <?php $post = get_post(); ?>
  9. <?php if(!iro_opt('patternimg') || !get_post_thumbnail_id(get_the_ID())) { ?>
  10. <span class="linkss-title"><?php the_title();?></span>
  11. <?php } ?>
  12. <article <?php post_class("post-item"); ?>>
  13. <?php if (iro_opt('article_auto_toc', 'true') && check_title_tags($post->post_content)) { //加载目录?>
  14. <div class="has-toc have-toc"></div>
  15. <?php } ?>
  16. <div class="entry-content">
  17. <?php the_content( '', true ); ?>
  18. </div>
  19. <div class="links">
  20. <?php echo get_link_items(); ?>
  21. </div>
  22. </article>
  23. <?php get_template_part('layouts/sidebox'); //加载目录容器?>
  24. <?php endwhile; ?>
  25. <?php
  26. get_footer();