Skip to content
Browse files

sidebar not working, so close

  • Loading branch information...
1 parent 9444f01 commit 3ff3c212bca2055e88a10f3f8706e27d62f11ee6 Justin Louie committed
View
0 themes/scacseattle.org/content-sermons.php → ...scacseattle.org/content-sermon-series.php
File renamed without changes.
View
2 themes/scacseattle.org/sass/sermons.css.sass
@@ -6,7 +6,7 @@
height: 80px
.ct_sermon
- width: 70%
+ width: 95%
border-bottom: 2px solid #ccc
.social.sermons ul
padding-left: 0px
View
23 themes/scacseattle.org/sidebar-sermons.php
@@ -11,9 +11,28 @@
foreach ($terms as $term) {
$current_series = get_the_term_list('', 'sermon_series');
- ?>
- <li class="page_item <?php echo ($global_term->slug == $term->slug ? "current_page_item" : ""); ?>"><a href="<?php echo get_term_link($term); ?>"><span class="active-box"></span><?php echo $term->name; ?></a></li>
+ ?>
+ <li class="page_item <?php echo ($global_term->slug == $term->slug ? "current_page_item" : ""); ?>">
+ <a href="<?php echo get_term_link($term); ?>"><span class="active-box"></span><?php echo $term->name; ?></a>
<?php
+ if(false && $global_term->slug == $term->slug) :
+ ?>
+ <ul class="sidebar-page-listing">
+ <?php
+ $args = array(
+ 'post_type' => 'ct_sermon',
+ 'ct_sermon' => $term->slug
+
+ );
+ $posts = get_posts($args);
+ var_dump($posts);
+ ?>
+ </ul>
+ <?php
+ endif;
+ ?>
+ </li>
+ <?php
}
?>
View
54 themes/scacseattle.org/single-ct_sermon.php
@@ -0,0 +1,54 @@
+<?php
+/**
+ * Template page for taxonomies.
+ *
+ * Learn more: http://codex.wordpress.org/Template_Hierarchy
+ *
+ * @author Sandra Li
+ * @package scacseattle.org
+ * @since scacseattle.org 1.0
+ *
+ * Made awesome by Justin Louie
+ */
+
+if( is_tax() ) {
+ global $wp_query;
+ $global_term = $wp_query->get_queried_object();
+ $tax_title = $global_term->name;
+}
+
+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 echo $tax_title; ?></h1>
+
+ </header><!-- .page-header -->
+
+ <?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', 'sermons', get_post_format() );
+ ?>
+
+ <?php endwhile; ?>
+
+ <?php else : ?>
+
+ <?php get_template_part( 'no-results', 'archive' ); ?>
+
+ <?php endif; ?>
+ </div><!-- #content .site-content -->
+ </section><!-- #primary .content-area -->
+
+<?php get_sidebar('sermons'); ?>
+<?php get_footer(); ?>
View
2 themes/scacseattle.org/style.css
@@ -217,7 +217,7 @@
height: 80px; }
.ct_sermon {
- width: 70%;
+ width: 95%;
border-bottom: 2px solid #cccccc; }
.social.sermons ul {
View
2 themes/scacseattle.org/taxonomy-sermon_series.php
@@ -37,7 +37,7 @@
* 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', 'sermons', get_post_format() );
+ get_template_part( 'content', 'sermon-series', get_post_format() );
?>
<?php endwhile; ?>

0 comments on commit 3ff3c21

Please sign in to comment.
Something went wrong with that request. Please try again.