/**
 * @package Edwards
 * @since Edwards 1.0
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('clearfix');
?>
>
		<div id="archive_sermon_image">
			<?php 
render_sermon_image('edwards_mini');
?>
		</div>
		<h1 class="sermon-title">
				<a href="<?php 
the_permalink();
?>
" title="<?php 
the_title();
?>
"><?php 
the_title();
?>
</a>
				<span class="sermon-date-meta"><?php 
wpfc_sermon_date('m/d/y', '', '');
function wpfc_sermon_excerpt()
{
    global $post;
    ?>
	<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>
		<?php 
    $sermonoptions = get_option('wpfc_options');
    if (isset($sermonoptions['archive_player']) == '1') {
        ?>
			<div class="wpfc_sermon cf">		  	
				<?php 
        wpfc_sermon_files();
        ?>
			</div>
		<?php 
    }
    ?>
	</div>
<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 
}