Ejemplo n.º 1
0
        the_title();
        ?>
</h2>
			<?php 
    } else {
        ?>
			<span class="entry-title" style="display: none;"><?php 
        the_title();
        ?>
</span>
			<?php 
    }
    ?>
			<div class="post-content">
				<?php 
    render_wpfc_sermon_single();
    ?>
				<?php 
    wp_link_pages();
    ?>
			</div>
			<?php 
    if (!post_password_required($post->ID)) {
        ?>
			<?php 
        if ($smof_data['post_meta'] && (!$smof_data['post_meta_author'] || !$smof_data['post_meta_date'] || !$smof_data['post_meta_cats'] || !$smof_data['post_meta_comments'] || !$smof_data['post_meta_tags'])) {
            ?>
			<div class="meta-info">
				<div class="vcard">
					<?php 
            if (!$smof_data['post_meta_author']) {
Ejemplo n.º 2
0
					<?php $attachment_data = wp_get_attachment_metadata($attachment_new_id); ?>
					<li>
						<a href="<?php echo $full_image[0]; ?>" rel="prettyPhoto[gallery<?php the_ID(); ?>]" title="<?php echo get_post_field('post_content', $attachment_new_id); ?>"><img src="<?php echo $attachment_image[0]; ?>" alt="<?php echo get_post_field('post_content', $attachment_new_id); ?>" /></a>
					</li>
					<?php endif; $i++; endwhile; ?>
					<?php endif; ?>
				</ul>
			</div>
			<?php endif; ?>
			<?php endif; ?>
			<?php endif; ?>
			<?php if($data['blog_post_title']): ?>
			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
			<?php endif; ?>
			<div class="post-content">
				<?php render_wpfc_sermon_single(); ?>
				<?php wp_link_pages(); ?>
			</div>
			<?php if($data['post_meta']): ?>
			<div class="meta-info">
				<div class="alignleft">
					<?php echo __('By', 'Avada'); ?> <?php echo the_terms( $post->ID, 'wpfc_preacher', '', ', ', ' ' ); ?><span class="sep">|</span><?php the_time($data['date_format']); ?><span class="sep">|</span><?php the_category(', '); ?><span class="sep">|</span><?php comments_popup_link(__('0 Comments', 'Avada'), __('1 Comment', 'Avada'), '% '.__('Comments', 'Avada')); ?>
				</div>
			</div>
			<?php endif; ?>
			<?php if($data['social_sharing_box']): ?>
			<div class="share-box">
				<h4><?php echo __('Share This Story, Choose Your Platform!', 'Avada'); ?></h4>
				<ul class="social-networks social-networks-<?php echo strtolower($data['socialbox_icons_color']); ?>">
					<?php if($data['sharing_facebook']): ?>
					<li class="facebook">
Ejemplo n.º 3
0
function add_wpfc_sermon_content($content)
{
    if ('wpfc_sermon' == get_post_type() && in_the_loop() == true) {
        if (is_archive() || is_search()) {
            $new_content = render_wpfc_sermon_excerpt();
        } elseif (is_singular() && is_main_query()) {
            $new_content = render_wpfc_sermon_single();
        }
        $content = $new_content;
    }
    return $content;
}