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

Language PHP Lines 13
MD5 Hash c62aa86561dce4cd61697c4608ab89e5
Repository https://github.com/alniko009/magic.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?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>
Back to Top