PageRenderTime 41ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/nonus/templates/post_single/content-link.php

https://github.com/alniko009/magic
PHP | 17 lines | 15 code | 2 blank | 0 comment | 2 complexity | cbc531d4b6e03ff693de4f8fb6c029be MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php get_template_part('templates/post_single/content-meta'); ?>
  2. <div class="post-content">
  3. <?php if (ct_get_option("posts_single_show_title", 1)): ?>
  4. <?php $link = get_post_meta($post->ID, 'link', true); ?>
  5. <h2 class="post-title">
  6. <a href="<?php echo $link; ?>"><?php the_title(); ?></a>
  7. </h2>
  8. <?php endif;?>
  9. <div class="post-abstract">
  10. <?php if (ct_get_option("posts_single_show_content", 1)): ?>
  11. <p><?php the_content();?></p>
  12. <?php wp_link_pages(array('before' => '<nav class="pager">', 'after' => '</nav>')); ?>
  13. <?php endif;?>
  14. </div>
  15. </div>