Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added sermon posts

  • Loading branch information...
commit 75c643ee92faa478f9ccbc50084c3f86bd19f18b 1 parent 594729e
Justin Louie authored
11 themes/scacseattle.org/sass/sermons.css.sass
View
@@ -2,7 +2,9 @@
border-bottom: 2px solid #ccc
margin: 0 0 20px
padding: 0 0 20px
- width: 95%
+
+ &:last-child
+ border: none
.entry-header
margin: 0 0 10px
@@ -33,8 +35,11 @@
height: 150px
.series-img-container
- margin: 0 0 15px
- text-align: center
+
+
+.page-sermon-series
+ .page-header
+ margin: 0 0 2em
.sermon-post
margin-bottom: 20px
11 themes/scacseattle.org/style.css
View
@@ -242,8 +242,9 @@
.sermon-list-post {
border-bottom: 2px solid #cccccc;
margin: 0 0 20px;
- padding: 0 0 20px;
- width: 95%; }
+ padding: 0 0 20px; }
+ .sermon-list-post:last-child {
+ border: none; }
.sermon-list-post .entry-header {
margin: 0 0 10px; }
.sermon-list-post .entry-title-container {
@@ -264,9 +265,9 @@
width: 100%; }
.sermon-series-listings td {
height: 150px; }
- .sermon-series-listings td .series-img-container {
- margin: 0 0 15px;
- text-align: center; }
+
+.page-sermon-series .page-header {
+ margin: 0 0 2em; }
.sermon-post {
margin-bottom: 20px;
14 themes/scacseattle.org/taxonomy-sermon_series.php
View
@@ -19,7 +19,7 @@
get_header(); ?>
- <section id="primary" class="content-area">
+ <section id="primary" class="content-area page-sermon-series">
<div id="content" class="site-content" role="main">
<?php if ( have_posts() ) : ?>
@@ -27,6 +27,18 @@
<header class="page-header">
<h1 class="page-title"><?php echo $tax_title; ?></h1>
+ <div class="series-banner">
+ <?php
+ global $nggdb, $wp_query;
+ $global_term = $wp_query->get_queried_object();
+ if(isset($nggdb)){
+ $img = $nggdb->find_image($global_term->slug . "_banner");
+ }
+ // if(isset($img)) :
+ ?>
+ <img src="<?php echo $img->imageURL; ?>">
+ <?php // endif; ?>
+ </div>
</header><!-- .page-header -->
<?php /* Start the Loop */ ?>
Please sign in to comment.
Something went wrong with that request. Please try again.