Permalink
Browse files

Merge branch 'master' of github.com:scac/scac-themes

  • Loading branch information...
2 parents 7417adc + 60baa8f commit d314b56733150f688c2114f3f22fd0b69b4cc3fe Justin Louie committed Dec 13, 2012
View
@@ -1,97 +1,113 @@
-<?php
-/**
- * The template for displaying Archive pages.
- *
- * Learn more: http://codex.wordpress.org/Template_Hierarchy
- *
- * @package _s
- * @since _s 1.0
- */
-
-get_header(); ?>
-
- <section id="primary" class="content-area">
- <div id="content" class="site-content" role="main">
-
- <?php if ( have_posts() ) : ?>
-
- <header class="page-header">
- <h1 class="page-title">
- <?php
- if ( is_category() ) {
- printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
-
- } elseif ( is_tag() ) {
- printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
-
- } elseif ( is_author() ) {
- /* Queue the first post, that way we know
- * what author we're dealing with (if that is the case).
- */
- the_post();
- printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
- /* Since we called the_post() above, we need to
- * rewind the loop back to the beginning that way
- * we can run the loop properly, in full.
- */
- rewind_posts();
-
- } elseif ( is_day() ) {
- printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
-
- } elseif ( is_month() ) {
- printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
-
- } elseif ( is_year() ) {
- printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
-
- } else {
- _e( 'Archives', '_s' );
-
- }
- ?>
- </h1>
- <?php
- if ( is_category() ) {
- // show an optional category description
- $category_description = category_description();
- if ( ! empty( $category_description ) )
- echo apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );
-
- } elseif ( is_tag() ) {
- // show an optional tag description
- $tag_description = tag_description();
- if ( ! empty( $tag_description ) )
- echo apply_filters( 'tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
- }
- ?>
- </header><!-- .page-header -->
-
- <?php _s_content_nav( 'nav-above' ); ?>
-
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
-
- <?php
- /* Include the Post-Format-specific template for the content.
- * If you want to overload this in a child theme then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'content', get_post_format() );
- ?>
-
- <?php endwhile; ?>
-
- <?php _s_content_nav( 'nav-below' ); ?>
-
- <?php else : ?>
-
- <?php get_template_part( 'no-results', 'archive' ); ?>
-
- <?php endif; ?>
-
- </div><!-- #content .site-content -->
- </section><!-- #primary .content-area -->
-
-<?php get_sidebar(); ?>
+<?php
+/**
+ * The template for displaying Archive pages.
+ *
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @package _s
+ * @since _s 1.0
+ */
+
+get_header(); ?>
+
+ <section id="primary" class="content-area">
+ <div id="content" class="site-content" role="main">
+
+ <?php if ( have_posts() ) : ?>
+
+ <header class="page-header">
+ <h1 class="page-title">Sermons</h1>
+
+ <!-- This draws out the sermon series topics. -->
+ <?php if ( 'ct_sermon' == get_post_type() ) : ?>
+ <div clas="right-sermons-nav" style="float: right;">
+ <?php
+ $taxonomy = 'sermon_series';
+ $terms = get_terms($taxonomy);
+ foreach ($terms as $term) {
+ $term_slug = $term->slug;
+ $current_series = get_the_term_list('', 'sermon_series');
+ echo '<a href="'.get_home_url().'/series/'.$term->slug.'">'.$term->name.'</a><br />';
+ }
+ ?>
+ </div>
+ <?php endif; ?>
+
+<!-- <?php
+ if ( is_category() ) {
+ printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
+
+ } elseif ( is_tag() ) {
+ printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
+
+ } elseif ( is_author() ) {
+ /* Queue the first post, that way we know
+ * what author we're dealing with (if that is the case).
+ */
+ the_post();
+ printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
+ /* Since we called the_post() above, we need to
+ * rewind the loop back to the beginning that way
+ * we can run the loop properly, in full.
+ */
+ rewind_posts();
+
+ } elseif ( is_day() ) {
+ printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
+
+ } elseif ( is_month() ) {
+ printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
+
+ } elseif ( is_year() ) {
+ printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
+
+ } else {
+ _e( 'Archives', '_s' );
+
+ }
+ ?>
+ </h1> -->
+ <?php
+ if ( is_category() ) {
+ // show an optional category description
+ $category_description = category_description();
+ if ( ! empty( $category_description ) )
+ echo apply_filters( 'category_archive_meta', '<div class="taxonomy-description">' . $category_description . '</div>' );
+
+ } elseif ( is_tag() ) {
+ // show an optional tag description
+ $tag_description = tag_description();
+ if ( ! empty( $tag_description ) )
+ echo apply_filters( 'tag_archive_meta', '<div class="taxonomy-description">' . $tag_description . '</div>' );
+ }
+ ?>
+ </header><!-- .page-header -->
+
+ <?php _s_content_nav( 'nav-above' ); ?>
+
+ <?php /* Start the Loop */ ?>
+ <?php while ( have_posts() ) : the_post(); ?>
+
+ <?php
+ /* Include the Post-Format-specific template for the content.
+ * If you want to overload this in a child theme then include a file
+ * called content-___.php (where ___ is the Post Format name) and that will be used instead.
+ */
+ get_template_part( 'content', get_post_format() );
+ ?>
+
+ <?php endwhile; ?>
+
+ <?php _s_content_nav( 'nav-below' ); ?>
+
+ <?php else : ?>
+
+ <?php get_template_part( 'no-results', 'archive' ); ?>
+
+ <?php endif; ?>
+
+ </div><!-- #content .site-content -->
+ </section><!-- #primary .content-area -->
+
+<?php //get_sidebar(); ?>
<?php get_footer(); ?>
View
@@ -0,0 +1,26 @@
+<?php
+/*
+===================================================================================================
+WARNING! DO NOT EDIT THIS FILE OR ANY TEMPLATE FILES IN THIS THEME!
+
+To make it easy to update your theme, you should not edit this file. Instead, you should create a
+Child Theme first. This will ensure your template changes are not lost when updating the theme.
+
+You can learn more about creating Child Themes here: http://codex.wordpress.org/Child_Themes
+
+You have been warned! :)
+===================================================================================================
+*/
+
+// Theme options
+define( 'CHURCHTHEMES_OPTIONS_MAIN_COLOR', '#629fa6' );
+define( 'CHURCHTHEMES_OPTIONS_LOGO_WIDTH', 277 );
+define( 'CHURCHTHEMES_OPTIONS_LOGO_HEIGHT', 25 );
+define( 'CHURCHTHEMES_OPTIONS_LOGO_TOP_MARGIN', 32 );
+
+// Custom background
+define( 'CHURCHTHEMES_DEFAULT_BACKGROUND_IMAGE', WP_THEME_DIR . '/images/bg_body.jpg' );
+define( 'CHURCHTHEMES_DEFAULT_BACKGROUND_COLOR', 'd9d9d1' );
+
+// Update script
+define( 'CHURCHTHEMES_UPDATE_API_URL', 'http://churchthemes.net/updates/antioch/' );
View
@@ -1,61 +1,69 @@
-<?php
-/**
- * @package _s
- * @since _s 1.0
- */
-?>
-
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
- <header class="entry-header">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', '_s' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
-
- <?php if ( 'post' == get_post_type() ) : ?>
- <div class="entry-meta">
- <?php _s_posted_on(); ?>
- </div><!-- .entry-meta -->
- <?php endif; ?>
- </header><!-- .entry-header -->
-
- <?php if ( is_search() ) : // Only display Excerpts for Search ?>
- <div class="entry-summary">
- <?php the_excerpt(); ?>
- </div><!-- .entry-summary -->
- <?php else : ?>
- <div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_s' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- <?php endif; ?>
-
- <footer class="entry-meta">
- <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
- <?php
- /* translators: used between list items, there is a space after the comma */
- $categories_list = get_the_category_list( __( ', ', '_s' ) );
- if ( $categories_list && _s_categorized_blog() ) :
- ?>
- <span class="cat-links">
- <?php printf( __( 'Posted in %1$s', '_s' ), $categories_list ); ?>
- </span>
- <?php endif; // End if categories ?>
-
- <?php
- /* translators: used between list items, there is a space after the comma */
- $tags_list = get_the_tag_list( '', __( ', ', '_s' ) );
- if ( $tags_list ) :
- ?>
- <span class="sep"> | </span>
- <span class="tag-links">
- <?php printf( __( 'Tagged %1$s', '_s' ), $tags_list ); ?>
- </span>
- <?php endif; // End if $tags_list ?>
- <?php endif; // End if 'post' == get_post_type() ?>
-
- <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
- <span class="sep"> | </span>
- <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
- <?php endif; ?>
-
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
- </footer><!-- .entry-meta -->
-</article><!-- #post-<?php the_ID(); ?> -->
+<?php
+/**
+ * @package _s
+ * @since _s 1.0
+ */
+?>
+
+<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <header class="entry-header">
+ <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', '_s' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
+
+ <?php if ( 'post' == get_post_type() ) : ?>
+ <div class="entry-meta">
+ <?php _s_posted_on(); ?>
+ </div><!-- .entry-meta -->
+ <?php endif; ?>
+ </header><!-- .entry-header -->
+
+ <?php if ( is_search() ) : // Only display Excerpts for Search ?>
+ <div class="entry-summary">
+ <?php the_excerpt(); ?>
+ </div><!-- .entry-summary -->
+ <?php elseif (get_post_type() != 'ct_sermon') : ?>
+ <div class="entry-content">
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_s' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+ </div><!-- .entry-content -->
+ <?php else :
+ echo('<p>'.get_the_term_list($post->ID, 'sermon_speaker').'</p>');
+ $args = array( 'post_type' => 'ct_sermon', 'posts_per_page' => 10 );
+ $loop = new WP_Query( $args );
+ while ( $loop->have_posts() ) : $loop->the_post();
+ echo '</div>';
+ endwhile;
+ ?>
+ <?php endif; ?>
+
+ <footer class="entry-meta" style="display:none;">
+ <?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
+ <?php
+ /* translators: used between list items, there is a space after the comma */
+ $categories_list = get_the_category_list( __( ', ', '_s' ) );
+ if ( $categories_list && _s_categorized_blog() ) :
+ ?>
+ <span class="cat-links">
+ <?php printf( __( 'Posted in %1$s', '_s' ), $categories_list ); ?>
+ </span>
+ <?php endif; // End if categories ?>
+
+ <?php
+ /* translators: used between list items, there is a space after the comma */
+ $tags_list = get_the_tag_list( '', __( ', ', '_s' ) );
+ if ( $tags_list ) :
+ ?>
+ <span class="sep"> | </span>
+ <span class="tag-links">
+ <?php printf( __( 'Tagged %1$s', '_s' ), $tags_list ); ?>
+ </span>
+ <?php endif; // End if $tags_list ?>
+ <?php endif; // End if 'post' == get_post_type() ?>
+
+ <?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
+ <span class="sep"> | </span>
+ <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
+ <?php endif; ?>
+
+ <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
+ </footer><!-- .entry-meta -->
+</article><!-- #post-<?php the_ID(); ?> -->
Oops, something went wrong.

0 comments on commit d314b56

Please sign in to comment.