wpfc_sermon_date(get_option('date_format'), '<span class="edwards_sermon_date">', '</span> ');
echo the_terms($post->ID, 'wpfc_service_type', ' <span class="edwards_service_type">(', ' ', ')</span>');
?>
</p><p><?php 
wpfc_sermon_meta('bible_passage', '<span class="bible_passage">Bible Text: ', '</span> | ');
echo the_terms($post->ID, 'wpfc_preacher', '<span class="preacher_name">', ' ', '</span>');
echo the_terms($post->ID, 'wpfc_sermon_series', '<p><span class="sermon_series">Series: ', ' ', '</span></p>');
?>
			</p>
		</div>
		
		<?php 
edwards_sermon_media();
?>
		<?php 
wpfc_sermon_description();
?>
		<?php 
edwards_footer_series();
?>
		<?php 
edwards_footer_preacher();
?>
	</div><!-- .entry-content -->

	<footer class="entry-meta">
		<?php 
echo the_terms($post->ID, 'wpfc_sermon_topics', '<span class="sermon_topics"><i class="icon-tags"></i> ', ', ', '</span><span class="sep"> | </span>');
?>
	
		<?php 
/**
 * Custom Excerpt function for Sermon Manager
 */
function avada_get_sermon_content($archive = false)
{
    global $post;
    $sermon_content = '';
    ob_start();
    ?>

	<p>
		<?php 
    _e('Date: ', 'Avada');
    wpfc_sermon_date(get_option('date_format'), '<span class="sermon_date">', '</span> ');
    echo the_terms($post->ID, 'wpfc_service_type', ' <span class="service_type">(', ' ', ')</span>');
    ?>
</p><p><?php 
    wpfc_sermon_meta('bible_passage', '<span class="bible_passage">' . __('Bible Text: ', 'Avada'), '</span> | ');
    echo the_terms($post->ID, 'wpfc_preacher', '<span class="preacher_name">', ', ', '</span>');
    echo the_terms($post->ID, 'wpfc_sermon_series', '<p><span class="sermon_series">' . __('Series: ', 'Aavada'), ' ', '</span></p>');
    ?>
	</p>

	<?php 
    if ($archive) {
        $sermonoptions = get_option('wpfc_options');
        if (isset($sermonoptions['archive_player']) == '1') {
            ?>
			<div class="wpfc_sermon cf">
				<?php 
            wpfc_sermon_files();
            ?>
			</div>
		<?php 
        }
    }
    ?>

	<?php 
    if (!$archive) {
        ?>

	<?php 
        wpfc_sermon_files();
        ?>

	<?php 
        wpfc_sermon_description();
        ?>

	<?php 
        wpfc_sermon_attachments();
        ?>

	<?php 
        echo the_terms($post->ID, 'wpfc_sermon_topics', '<p class="sermon_topics">' . __('Topics: ', 'sermon-manager'), ',', '', '</p>');
        ?>

	<?php 
    }
    $sermon_content = ob_get_clean();
    if ($archive) {
        $description = '';
        ob_start();
        wpfc_sermon_description();
        $description .= ob_get_clean();
        $excerpt_length = fusion_get_theme_option('excerpt_length_blog');
        $sermon_content .= Avada()->blog->get_content_stripped_and_excerpted($excerpt_length, $description);
    }
    return $sermon_content;
}
Example #3
0
function wpfc_sermon_single()
{
    global $post;
    ?>
		<div class="wpfc_sermon cf">
		<?php 
    do_action('sermon_media');
    wpfc_sermon_meta('bible_passage', '<span class="bible_passage">' . __('Bible Text: ', 'sermon-manager'), '</span> | ');
    echo the_terms($post->ID, 'wpfc_preacher', '<span class="preacher_name">', ', ', '</span>');
    wpfc_sermon_description();
    wpfc_sermon_data();
    wpfc_sermon_download_files();
    echo the_terms($post->ID, 'wpfc_sermon_topics', '<p class="sermon_topics">' . __('Topics: ', 'sermon-manager'), ',', '', '</p>');
    ?>
		
	</div>
	<div class="wpfc_sermon_wrap cf">
		<div class="wpfc_sermon_image">
			<?php 
    render_sermon_image('sermon_small');
    ?>
		</div>
		<div class="wpfc_sermon_meta cf">
			<p>	
				<?php 
    wpfc_sermon_date(get_option('date_format'), '<span class="sermon_date">', '</span> ');
    echo the_terms($post->ID, 'wpfc_service_type', ' <span class="service_type">(', ' ', ')</span>');
    ?>
</p><p><?php 
    wpfc_sermon_meta('bible_passage', '<span class="bible_passage">' . __('Bible Text: ', 'sermon-manager'), '</span> | ');
    echo the_terms($post->ID, 'wpfc_preacher', '<span class="preacher_name">', ', ', '</span>');
    echo the_terms($post->ID, 'wpfc_sermon_series', '<p><span class="sermon_series">' . __('Series: ', 'sermon-manager'), ' ', '</span></p>');
    ?>
			</p>
		</div>
	</div>
	<?php 
    do_shortcode('[social]');
    ?>
<script>
	var refTagger = {
		settings: {
			bibleReader: "bible.faithlife",
			bibleVersion: "ESV",			
			customStyle : {
				heading: {
					backgroundColor : "#CDDED1"
				}
			}
		}
	};
	(function(d, t) {
		var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
		g.src = "//api.reftagger.com/v2/RefTagger.js";
		s.parentNode.insertBefore(g, s);
	}(document, "script"));
</script>
<?php 
}