コード例 #1
0
    ?>
>
							<h2 class="entry-title"><a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    printf(esc_attr__('Permalink to %s', 'sermon-manager'), the_title_attribute('echo=0'));
    ?>
" rel="bookmark"><?php 
    the_title();
    ?>
</a></h2>

							<div class="entry-meta">
								<span class="meta-prep meta-prep-author">Preached on </span> <?php 
    wpfc_sermon_date('l, F j, Y');
    ?>
<span class="meta-sep"> by </span> <?php 
    echo the_terms($post->ID, 'wpfc_preacher', '', ', ', ' ');
    ?>
   							</div><!-- .entry-meta -->

							<div class="entry-content">
								<?php 
    render_wpfc_sermon_excerpt();
    ?>
							</div><!-- .entry-content -->

							<div class="entry-utility">
								<span class="comments-link"><?php 
    comments_popup_link(__('Leave a comment', 'sermon-manager'), __('1 Comment', 'sermon-manager'), __('% Comments', 'sermon-manager'));
コード例 #2
0
function wpfc_podcast_item_date($time, $d = 'U', $gmt = false)
{
    $time = wpfc_sermon_date('D, d M Y H:i:s O');
    return $time;
}
コード例 #3
0
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', '', '');
echo the_terms($post->ID, 'wpfc_service_type', ' (', ' ', ')');
?>
<span>
		</h1>

		<div class="sermon-summary">
		<?php 
edwards_sermon_buttons();
wpfc_sermon_meta('bible_passage', '<span class="bible_passage">Bible Text: ', '</span> | ');
echo the_terms($post->ID, 'wpfc_preacher', '<span class="preacher_name">Speaker: ', ' ', '</span>');
echo the_terms($post->ID, 'wpfc_sermon_series', '<span class="sermon_series">Series: ', ' ', '</span>');
?>
		</div>

</article><!-- #post-<?php 
コード例 #4
0
/**
 * 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;
}
コード例 #5
0
ファイル: podcast-feed.php プロジェクト: mlloewen/wp-muirlake
			<?php 
            }
            ?>
			<enclosure url="<?php 
            echo esc_url($audio_file);
            ?>
" length="<?php 
            echo $audio_file_size;
            ?>
" type="audio/mpeg" />
			<guid><?php 
            echo esc_url(get_post_meta($post->ID, 'sermon_audio', true));
            ?>
</guid>
			<pubDate><?php 
            wpfc_sermon_date('D, d M Y H:i:s O');
            ?>
</pubDate>
			<itunes:duration><?php 
            echo esc_html($audio_duration);
            ?>
</itunes:duration>
			<?php 
            if ($topic) {
                ?>
			<?php 
                echo $topic . "\n";
                ?>
			<?php 
            }
            ?>
コード例 #6
0
?>
>
	
	<header class="entry-header">
		<h1 class="entry-title">
			<?php 
the_title();
?>
		</h1>
	</header><!-- .entry-header -->

	<div class="entry-content">
		<div class="wpfc_sermon_meta">
			<p>	
				<?php 
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();
コード例 #7
0
    ?>
</a>
			<?php 
} else {
    ?>
				<?php 
    the_title();
    ?>
			<?php 
}
?>
		</h1>

		<div class="entry-meta">
			<?php 
wpfc_sermon_date('l, F j, Y', '<span class="sermon_date"><i class="icon-calendar"></i> ', '</span> ');
wpfc_sermon_meta('service_type', ' <span class="service_type">(', ')</span> ');
?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<?php 
if (is_search() || is_archive()) {
    // Only display Excerpts for Search
    ?>
	<div class="entry-summary">
		<?php 
    edwards_sermon_buttons();
    ?>
		<p>
			<?php 
コード例 #8
0
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 
}
コード例 #9
0
ファイル: widgets.php プロジェクト: mlloewen/wp-muirlake
    function widget($args, $instance)
    {
        $cache = wp_cache_get('widget_recent_sermons', 'widget');
        if (!is_array($cache)) {
            $cache = array();
        }
        if (isset($cache[$args['widget_id']])) {
            echo $cache[$args['widget_id']];
            return;
        }
        ob_start();
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Sermons', 'sermon-manager') : $instance['title'], $instance, $this->id_base);
        if (!($number = absint($instance['number']))) {
            $number = 10;
        }
        $r = new WP_Query(array('post_type' => 'wpfc_sermon', 'meta_key' => 'sermon_date', 'meta_value' => date("m/d/Y"), 'meta_compare' => '>=', 'orderby' => 'meta_value', 'order' => 'DESC', 'posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true));
        if ($r->have_posts()) {
            ?>
		<?php 
            echo $before_widget;
            ?>
		<?php 
            if ($title) {
                echo $before_title . $title . $after_title;
            }
            ?>
		<ul>
		<?php 
            while ($r->have_posts()) {
                $r->the_post();
                ?>
		<?php 
                global $post;
                ?>
		<li>
		<a href="<?php 
                the_permalink();
                ?>
" title="<?php 
                echo esc_attr(get_the_title() ? get_the_title() : get_the_ID());
                ?>
"><?php 
                if (get_the_title()) {
                    the_title();
                } else {
                    the_ID();
                }
                ?>
</a>
		<span class="meta">
			<?php 
                $terms = get_the_terms($post->ID, 'wpfc_preacher');
                if ($terms && !is_wp_error($terms)) {
                    $preacher_links = array();
                    foreach ($terms as $term) {
                        $preacher_links[] = $term->name;
                    }
                    $preacher = join(", ", $preacher_links);
                    ?>

			<?php 
                    echo $preacher;
                    ?>
, 

			<?php 
                }
                wpfc_sermon_date(get_option('date_format'));
                ?>
		</span>
		</li>
		<?php 
            }
            ?>
		</ul>
		<?php 
            echo $after_widget;
            // Reset the global $the_post as this query will have stomped on it
            wp_reset_postdata();
        }
        $cache[$args['widget_id']] = ob_get_flush();
        wp_cache_set('widget_recent_sermons', $cache, 'widget');
    }