page-links.php 817 B

123456789101112131415161718192021222324252627282930
  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 echo esc_html(get_the_title()); ?></span>
  11. <?php endif; ?>
  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 endif; ?>
  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();
  27. ?>