PageRenderTime 59ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/alniko009/magic
PHP | 13 lines | 12 code | 1 blank | 0 comment | 2 complexity | c62aa86561dce4cd61697c4608ab89e5 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php get_template_part('templates/post/content-meta'); ?>
  2. <div class="post-content">
  3. <?php if (ct_get_option("posts_index_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. <?php if (ct_get_option("posts_index_show_more", 1)): ?>
  10. <a href="<?php the_permalink()?>" class="btn post-more"><?php _e('Read More', 'ct_theme')?></a>
  11. <?php endif;?>
  12. </div>