/wp-content/themes/nonus/templates/post/content-link.php
PHP | 13 lines | 12 code | 1 blank | 0 comment | 2 complexity | c62aa86561dce4cd61697c4608ab89e5 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
- <?php get_template_part('templates/post/content-meta'); ?>
- <div class="post-content">
- <?php if (ct_get_option("posts_index_show_title", 1)): ?>
- <?php $link = get_post_meta($post->ID, 'link', true); ?>
- <h2 class="post-title">
- <a href="<?php echo $link; ?>"><?php the_title(); ?></a>
- </h2>
- <?php endif;?>
- <?php if (ct_get_option("posts_index_show_more", 1)): ?>
- <a href="<?php the_permalink()?>" class="btn post-more"><?php _e('Read More', 'ct_theme')?></a>
- <?php endif;?>
- </div>