示例#1
0
function cultiv8_itunes_head()
{
    $desc = cultiv8_podcast_description();
    if (cultiv8_option('podcast_author')) {
        echo '
	<itunes:author>' . cultiv8_option('podcast_author') . '</itunes:author>';
    }
    if ($desc) {
        echo '
	<itunes:summary>' . $desc . '</itunes:summary>';
    }
    if (cultiv8_option('podcast_image')) {
        echo '
	<itunes:image href="' . cultiv8_option('podcast_image') . '"/>';
    }
}
示例#2
0
<?php

/**
 * The template for displaying person archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Cultiv8
 */
wp_enqueue_style('cultiv8-glyphs', get_stylesheet_directory_uri() . '/assets/css/glyphs.css');
$titles = cultiv8_option('ctc-people', __('People/Person', 'cultiv8'));
$titles = explode('/', $titles);
$title = array_shift($titles);
$query_term = $wp_query->query;
$args = array('order' => 'ASC', 'orderby' => 'menu_order', 'post_per_page' => -1);
$query_term = array_merge($args, $query_term);
$wp_query = new WP_Query($query_term);
get_header();
?>


	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<h1 class="page-title"><?php 
    echo $title;
示例#3
0
function cultiv8_get_sermon_data($post_id)
{
    $default_img = cultiv8_option('feed_logo', '');
    if (empty($default_img)) {
        $default_img = cultiv8_option('logo', '');
    }
    if (class_exists('CTC_Extender')) {
        return ctcex_get_sermon_data($post_id, $default_img);
    } else {
        return cultiv8_get_default_data($post_id);
    }
}
<?php

/**
 * The template for displaying location archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Cultiv8
 */
$titles = cultiv8_option('ctc-sermons', __('Sermons/Sermon', 'cultiv8'));
$titles = explode('/', $titles);
$title = array_shift($titles);
$query_term = $wp_query->query;
$args = array('order' => 'ASC', 'orderby' => 'menu_order');
$query_term = array_merge($args, $query_term);
$wp_query = new WP_Query($query_term);
get_header();
?>


	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<h1 class="page-title"><?php 
    echo $title;
    ?>
<?php

/**
 * The template for displaying sermon topic archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Cultiv8
 */
$term = get_queried_object();
$titles = cultiv8_option('ctc-sermon-topic', __('Topic', 'cultiv8'));
$titles = explode('/', $titles);
$title = array_pop($titles);
$query_term = $wp_query->query;
$topic_option = cultiv8_get_option('ctc-sermon-topic');
if (!empty($topic_option) && !isset($qv['ctc_sermon_topic'])) {
    // Set the first location as the default
    $locs = get_terms('ctc_sermon_topic', array('order_by' => 'id', 'order' => 'DESC'));
    $min_loc_slug = $locs[0]->slug;
    if (!empty($min_loc_slug)) {
        $tax_query = array(array('taxonomy' => 'ctc_sermon_topic', 'field' => 'slug', 'terms' => $min_loc_slug));
        $args['tax_query'] = $tax_query;
    }
    $query_term = array_merge($args, $query_term);
    $wp_query = new WP_Query($query_term);
}
get_header();
?>


	<div id="primary" class="content-area">
<?php

/**
 * The template for displaying sermon series archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Cultiv8
 */
$term = get_queried_object();
$titles = cultiv8_option('ctc-sermon-series', __('Series', 'cultiv8'));
$titles = explode('/', $titles);
$title = array_shift($titles);
$query_term = $wp_query->query;
$topic_option = cultiv8_get_option('ctc-sermon-topic');
if (!empty($topic_option) && !isset($qv['ctc_sermon_topic'])) {
    // Set the first location as the default
    $locs = get_terms('ctc_sermon_topic', array('order_by' => 'id', 'order' => 'DESC'));
    $min_loc_slug = $locs[0]->slug;
    if (!empty($min_loc_slug)) {
        $tax_query = array(array('taxonomy' => 'ctc_sermon_topic', 'field' => 'slug', 'terms' => $min_loc_slug));
        $args['tax_query'] = $tax_query;
    }
    $query_term = array_merge($args, $query_term);
    $wp_query = new WP_Query($query_term);
}
get_header();
?>


	<div id="primary" class="content-area">
示例#7
0
<?php

/**
 * The template for displaying event archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Cultiv8
 */
$titles = cultiv8_option('ctc-events', __('Events/Event', 'cultiv8'));
$titles = explode('/', $titles);
$title = array_shift($titles);
$query_term = $wp_query->query;
$args = array('order' => 'ASC', 'orderby' => 'meta_value', 'meta_key' => '_ctc_event_start_date_start_time', 'meta_type' => 'DATETIME', 'posts_per_page' => 9, 'meta_query' => array(array('key' => '_ctc_event_end_date_end_time', 'value' => date_i18n('Y-m-d H:i:s'), 'compare' => '>=', 'type' => 'DATE')));
$query_term = array_merge($args, $query_term);
$wp_query = new WP_Query($query_term);
get_header();
?>

	<div id="primary" class="content-area">
		<main id="main" class="site-main" role="main">

		<?php 
if (have_posts()) {
    ?>

			<header class="page-header">
				<h1 class="page-title"><?php 
    echo $title;
    ?>
</h1>