Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

basic ministries, fixed some cross browser spacing, fixed visit

  • Loading branch information...
commit bcada2af8ad79488f004e2c8108533ecb493a6c8 1 parent 6586f1a
authored
59  themes/scacseattle.org/content-church.php
... ...
@@ -0,0 +1,59 @@
  1
+<?php
  2
+/**
  3
+ * @package scacseattle.org
  4
+ * @author Justin Louie
  5
+ */
  6
+?>
  7
+
  8
+<article id="post-<?php the_ID(); ?>" <?php post_class("church-page"); ?>>
  9
+  <header class="entry-header">
  10
+  
  11
+  <div class="content-from-container clearfix">
  12
+
  13
+    <div class="col-right">
  14
+      <div class="entry-content">
  15
+        <?php the_content(); ?>
  16
+        <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
  17
+      </div><!-- .entry-content -->
  18
+    </div>
  19
+  </div>
  20
+
  21
+
  22
+  <footer class="entry-meta">
  23
+    <?php
  24
+      /* translators: used between list items, there is a space after the comma */
  25
+      $category_list = get_the_category_list( __( ', ', '_s' ) );
  26
+
  27
+      /* translators: used between list items, there is a space after the comma */
  28
+      $tag_list = get_the_tag_list( '', ', ' );
  29
+
  30
+      if ( ! _s_categorized_blog() ) {
  31
+        // This blog only has 1 category so we just need to worry about tags in the meta text
  32
+        if ( '' != $tag_list ) {
  33
+          $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
  34
+        } else {
  35
+          $meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
  36
+        }
  37
+
  38
+      } else {
  39
+        // But this blog has loads of categories so we should probably display them here
  40
+        if ( '' != $tag_list ) {
  41
+          $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
  42
+        } else {
  43
+          $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
  44
+        }
  45
+
  46
+      } // end check for categories on this blog
  47
+
  48
+      printf(
  49
+        $meta_text,
  50
+        $category_list,
  51
+        $tag_list,
  52
+        get_permalink(),
  53
+        the_title_attribute( 'echo=0' )
  54
+      );
  55
+    ?>
  56
+
  57
+    <?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
  58
+  </footer><!-- .entry-meta -->
  59
+</article><!-- #post-<?php the_ID(); ?> -->
47  themes/scacseattle.org/navbar.php
@@ -7,27 +7,40 @@
7 7
 <div class="primary-nav-container">
8 8
   <table  id="primary-nav" role="navigation" class="site-navigation main-navigation  black-bar">
9 9
     <tr class="navbar clearfix">
10  
-      <td class="nav-item"><a href="<?php echo home_url("/church/our-vision/"); ?>">
11  
-        <span class="<?php echo (is_page('church') || $post->post_parent == $church_page->ID ? "active_tab" : "");?>"></span>
12  
-        Church</a>
  10
+      <td class="nav-item-td">
  11
+        <div class="nav-item">
  12
+          <a href="<?php echo home_url("/church/our-vision/"); ?>">
  13
+            <span class="<?php echo (is_page('church') || $post->post_parent == $church_page->ID ? "active_tab" : "");?>"></span>
  14
+            Church
  15
+          </a>
  16
+        </div>
13 17
       </td>
14  
-      <td class="nav-item">
15  
-        <a href="<?php echo home_url("/visit/"); ?>">
16  
-          <span class="<?php echo (is_page('visit') ? "active_tab" : "");?>"></span>
17  
-          Visit
18  
-        </a>
  18
+      <td class="nav-item-td">
  19
+        <div class="nav-item">
  20
+          <a href="<?php echo home_url("/visit/"); ?>">
  21
+            <span class="<?php echo (is_page('visit') ? "active_tab" : "");?>"></span>
  22
+            Visit
  23
+          </a>
  24
+        </div>
19 25
       </td>
20  
-      <td class="nav-item">
21  
-        <a href="<?php echo home_url("/ministries/"); ?>">
22  
-          <span class="<?php echo (is_page('ministries') || $post->post_parent == $ministries_page->ID ? "active_tab" : "");?>"></span>
23  
-          Ministries
24  
-        </a>
  26
+      <td class="nav-item-td">
  27
+        <div class="nav-item">
  28
+          <a href="<?php echo home_url("/ministries/"); ?>">
  29
+            <span class="<?php echo (is_page('ministries') || $post->post_parent == $ministries_page->ID ? "active_tab" : "");?>"></span>
  30
+            Ministries
  31
+          </a>
  32
+        </div>
25 33
       </td>
26  
-      <td class="nav-item"><a href="<?php echo home_url("/sermons/"); ?>">
27  
-        <span class="<?php echo (get_post_type() == 'ct_sermon' ? "active_tab" : "");?>"></span>
28  
-        Sermons</a>
  34
+      <td class="nav-item-td"><a href="<?php echo home_url("/sermons/"); ?>">
  35
+        <div class="nav-item">
  36
+          <span class="<?php echo (get_post_type() == 'ct_sermon' ? "active_tab" : "");?>"></span>
  37
+          Sermons</a>
  38
+        </div>
29 39
       </td>
30  
-      <td class="nav-item disabled"><a href="#">Give</a></td>
  40
+      <td class="nav-item-td disabled">
  41
+        <div class="nav-item">
  42
+          <a href="#">Give</a></td>
  43
+        </div>
31 44
     </tr>
32 45
   </table>
33 46
 </div>
44  themes/scacseattle.org/page-church.php
@@ -8,34 +8,40 @@
8 8
     <div id="primary" class="content-area">
9 9
       <div id="content" class="page page-church clearfix" role="main">
10 10
         
11  
-        <div class="page-church clearfix">
12  
-          <div class="col-left">
  11
+        <h1 class="entry-title"><?php the_title(); ?></h1>
  12
+        
  13
+        <?php if ( has_post_thumbnail() ) : ?>
  14
+          <div class="post-img-header">
  15
+            <?php 
  16
+              $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' );
  17
+              echo '<img src="' . $image_src[0]  . '" width="100%"  />';
  18
+            ?>
  19
+          </div>
  20
+        <?php endif; ?>
13 21
 
14  
-            <?php if ( have_posts() ) : ?>
  22
+        <?php if ( have_posts() ) : ?>
15 23
 
16 24
 
17  
-              <?php /* Start the Loop */ ?>
18  
-              <?php while ( have_posts() ) : the_post(); ?>
  25
+          <?php /* Start the Loop */ ?>
  26
+          <?php while ( have_posts() ) : the_post(); ?>
19 27
 
20  
-                <?php
21  
-                  /* Include the Post-Format-specific template for the content.
22  
-                   * If you want to overload this in a child theme then include a file
23  
-                   * called content-___.php (where ___ is the Post Format name) and that will be used instead.
24  
-                   */
25  
-                  get_template_part( 'content', get_post_format() );
26  
-                ?>
  28
+            <?php
  29
+              /* Include the Post-Format-specific template for the content.
  30
+               * If you want to overload this in a child theme then include a file
  31
+               * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  32
+               */
  33
+              get_template_part( 'content', 'church', get_post_format() );
  34
+            ?>
27 35
 
28  
-              <?php endwhile; ?>
  36
+          <?php endwhile; ?>
29 37
 
30  
-            <?php else : ?>
  38
+        <?php else : ?>
31 39
 
32  
-              <?php get_template_part( 'no-results', 'index' ); ?>
  40
+          <?php get_template_part( 'no-results', 'index' ); ?>
33 41
 
34  
-            <?php endif; ?>
35  
-
36  
-          </div>
37  
-        </div>
  42
+        <?php endif; ?>
38 43
 
  44
+        
39 45
       </div><!-- #content .site-content -->
40 46
     </div><!-- #primary .content-area -->
41 47
 <?php get_sidebar('church'); ?>
7  themes/scacseattle.org/page-ministry.php
@@ -12,12 +12,13 @@
12 12
         
13 13
         <?php if ( has_post_thumbnail() ) : ?>
14 14
           <div class="post-img-header">
15  
-            <?php the_post_thumbnail('full'); ?>
  15
+            <?php 
  16
+              $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' );
  17
+              echo '<img src="' . $image_src[0]  . '" width="100%"  />';
  18
+            ?>
16 19
           </div>
17 20
         <?php endif; ?>
18 21
 
19  
-
20  
-
21 22
         <?php if ( have_posts() ) : ?>
22 23
 
23 24
 
6  themes/scacseattle.org/page-visit.php
@@ -13,9 +13,6 @@
13 13
         <!-- Place holder img !-->
14 14
 		<h1>Contact &amp; Directions</h1>
15 15
 		<div class="col-two-thirds">
16  
-			<iframe width="720" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=2803+Orcas+St.+Seattle,+WA,+98108&amp;aq=&amp;sll=47.613028,-122.342064&amp;sspn=0.281899,0.617294&amp;ie=UTF8&amp;hq=&amp;hnear=2803+S+Orcas+St,+Seattle,+Washington+98108&amp;t=m&amp;ll=47.55475,-122.302637&amp;spn=0.027804,0.054932&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=2803+Orcas+St.+Seattle,+WA,+98108&amp;aq=&amp;sll=47.613028,-122.342064&amp;sspn=0.281899,0.617294&amp;ie=UTF8&amp;hq=&amp;hnear=2803+S+Orcas+St,+Seattle,+Washington+98108&amp;t=m&amp;ll=47.55475,-122.302637&amp;spn=0.027804,0.054932&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>
17  
-			<!-- Directions form. -->
18  
-      <h2>Find Directions</h2>
19 16
 
20 17
       <div class="map-directions">
21 18
         <form action="http://maps.google.com/maps" method="get" target="_blank">
@@ -25,6 +22,9 @@
25 22
           <input type="submit" value="Get directions" />
26 23
         </form>
27 24
       </div>
  25
+
  26
+			<iframe width="720" height="450" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=2803+Orcas+St.+Seattle,+WA,+98108&amp;aq=&amp;sll=47.613028,-122.342064&amp;sspn=0.281899,0.617294&amp;ie=UTF8&amp;hq=&amp;hnear=2803+S+Orcas+St,+Seattle,+Washington+98108&amp;t=m&amp;ll=47.55475,-122.302637&amp;spn=0.027804,0.054932&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=2803+Orcas+St.+Seattle,+WA,+98108&amp;aq=&amp;sll=47.613028,-122.342064&amp;sspn=0.281899,0.617294&amp;ie=UTF8&amp;hq=&amp;hnear=2803+S+Orcas+St,+Seattle,+Washington+98108&amp;t=m&amp;ll=47.55475,-122.302637&amp;spn=0.027804,0.054932&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>
  27
+
28 28
 		</div>
29 29
 		<div class="col-one-third">
30 30
 			<p>
7  themes/scacseattle.org/sass/church.css.sass
... ...
@@ -1,10 +1,3 @@
1  
-.page
2  
-  padding: 0 10px
3  
-
4  
-  h1
5  
-    a
6  
-      color: $text-color
7  
-
8 1
 .page-church
9 2
   width: 100%
10 3
   .leadership-table
43  themes/scacseattle.org/sass/navbar.css.sass
@@ -10,29 +10,32 @@
10 10
       display: table-row
11 11
       width: 100%
12 12
 
13  
-      .nav-item
  13
+      .nav-item-td
14 14
         display: table-cell
15 15
         width: 20%
16  
-        position: relative
17  
-        text-align: center
  16
+        
  17
+        
18 18
 
19  
-        a
20  
-          padding: 20px 0px
21  
-          width: 100%
22  
-          display: block
23  
-          text-transform: uppercase
24  
-          color: black
25  
-          font-size: 12px
26  
-
27  
-          .nav_hover, .active_tab
28  
-            position: absolute
29  
-            display: block
  19
+        .nav-item
  20
+          position: relative
  21
+          text-align: center
  22
+          a
  23
+            padding: 20px 0px
30 24
             width: 100%
31  
-            top: 0px
32  
-            left: 0px
  25
+            display: block
  26
+            text-transform: uppercase
  27
+            color: black
  28
+            font-size: 12px
  29
+
  30
+            .nav_hover, .active_tab
  31
+              position: absolute
  32
+              display: block
  33
+              width: 100%
  34
+              top: -1px
  35
+              left: 0px
33 36
 
34  
-          .active_tab
35  
-            border-top: 7px solid $active-link-color
  37
+            .active_tab
  38
+              border-top: 7px solid $active-link-color
36 39
 
37  
-          .nav_hover
38  
-            border-top: 7px solid $nav-hover-color
  40
+            .nav_hover
  41
+              border-top: 7px solid $nav-hover-color
17  themes/scacseattle.org/sass/posts-pages.css.sass
... ...
@@ -1,10 +1,3 @@
1  
-#primary
2  
-  width: 75%
3  
-  float: left
4  
-.sidebar-right
5  
-  width: 25%
6  
-  float: left
7  
-
8 1
 .post-divider
9 2
   width: 100%
10 3
   height: 1px
@@ -12,6 +5,16 @@
12 5
   background: $medium-grey
13 6
   margin-top: 15px
14 7
 
  8
+#primary
  9
+  width: 75%
  10
+  float: left
  11
+
  12
+  padding: 0 10px
  13
+
  14
+  h1
  15
+    a
  16
+      color: $text-color
  17
+
15 18
 .page, .post
16 19
   blockquote
17 20
     font-size: 20px
4  themes/scacseattle.org/sass/sidebars.css.sass
... ...
@@ -1,3 +1,7 @@
  1
+.sidebar-right
  2
+  width: 22%
  3
+  float: left
  4
+
1 5
 .sidebar
2 6
   margin: 30px 0 0 0
3 7
 
1  themes/scacseattle.org/sass/style.css.sass
@@ -47,6 +47,7 @@ a
47 47
 table, tr, td
48 48
   border-spacing: 0
49 49
   border-collapse: collapse
  50
+  padding: 0
50 51
 
51 52
 .disabled
52 53
   a
2  themes/scacseattle.org/sass/visit.css.sass
@@ -21,7 +21,7 @@
21 21
       // border-radius: $dir-box-radius / $dir-box-radius
22 22
 
23 23
       &[type='text']
24  
-        width: 293px
  24
+        width: 290px
25 25
       &[type='submit']
26 26
         border: 0
27 27
         padding: 7px
70  themes/scacseattle.org/style.css
@@ -69,28 +69,29 @@
69 69
       padding: 0 0 20px 0px;
70 70
       display: table-row;
71 71
       width: 100%; }
72  
-      .primary-nav-container #primary-nav .navbar .nav-item {
  72
+      .primary-nav-container #primary-nav .navbar .nav-item-td {
73 73
         display: table-cell;
74  
-        width: 20%;
75  
-        position: relative;
76  
-        text-align: center; }
77  
-        .primary-nav-container #primary-nav .navbar .nav-item a {
78  
-          padding: 20px 0px;
79  
-          width: 100%;
80  
-          display: block;
81  
-          text-transform: uppercase;
82  
-          color: black;
83  
-          font-size: 12px; }
84  
-          .primary-nav-container #primary-nav .navbar .nav-item a .nav_hover, .primary-nav-container #primary-nav .navbar .nav-item a .active_tab {
85  
-            position: absolute;
86  
-            display: block;
  74
+        width: 20%; }
  75
+        .primary-nav-container #primary-nav .navbar .nav-item-td .nav-item {
  76
+          position: relative;
  77
+          text-align: center; }
  78
+          .primary-nav-container #primary-nav .navbar .nav-item-td .nav-item a {
  79
+            padding: 20px 0px;
87 80
             width: 100%;
88  
-            top: 0px;
89  
-            left: 0px; }
90  
-          .primary-nav-container #primary-nav .navbar .nav-item a .active_tab {
91  
-            border-top: 7px solid #77991f; }
92  
-          .primary-nav-container #primary-nav .navbar .nav-item a .nav_hover {
93  
-            border-top: 7px solid #77991f; }
  81
+            display: block;
  82
+            text-transform: uppercase;
  83
+            color: black;
  84
+            font-size: 12px; }
  85
+            .primary-nav-container #primary-nav .navbar .nav-item-td .nav-item a .nav_hover, .primary-nav-container #primary-nav .navbar .nav-item-td .nav-item a .active_tab {
  86
+              position: absolute;
  87
+              display: block;
  88
+              width: 100%;
  89
+              top: -1px;
  90
+              left: 0px; }
  91
+            .primary-nav-container #primary-nav .navbar .nav-item-td .nav-item a .active_tab {
  92
+              border-top: 7px solid #77991f; }
  93
+            .primary-nav-container #primary-nav .navbar .nav-item-td .nav-item a .nav_hover {
  94
+              border-top: 7px solid #77991f; }
94 95
 
95 96
 .site-footer {
96 97
   position: relative;
@@ -193,7 +194,7 @@
193 194
     border: 1px solid #cccccc;
194 195
     background: #eeeeee; }
195 196
     .map-directions form input[type='text'] {
196  
-      width: 293px; }
  197
+      width: 290px; }
197 198
     .map-directions form input[type='submit'] {
198 199
       border: 0;
199 200
       padding: 7px;
@@ -206,11 +207,6 @@
206 207
   float: left;
207 208
   margin-top: -1em; }
208 209
 
209  
-.page {
210  
-  padding: 0 10px; }
211  
-  .page h1 a {
212  
-    color: #444444; }
213  
-
214 210
 .page-church {
215 211
   width: 100%; }
216 212
   .page-church .leadership-table td {
@@ -269,14 +265,6 @@
269 265
 .social.sermons ul li {
270 266
   list-style-type: none; }
271 267
 
272  
-#primary {
273  
-  width: 75%;
274  
-  float: left; }
275  
-
276  
-.sidebar-right {
277  
-  width: 25%;
278  
-  float: left; }
279  
-
280 268
 .post-divider {
281 269
   width: 100%;
282 270
   height: 1px;
@@ -284,6 +272,13 @@
284 272
   background: #cccccc;
285 273
   margin-top: 15px; }
286 274
 
  275
+#primary {
  276
+  width: 75%;
  277
+  float: left;
  278
+  padding: 0 10px; }
  279
+  #primary h1 a {
  280
+    color: #444444; }
  281
+
287 282
 .page blockquote, .post blockquote {
288 283
   font-size: 20px;
289 284
   border: 0;
@@ -295,6 +290,10 @@
295 290
 .page .alignleft, .post .alignleft {
296 291
   float: left; }
297 292
 
  293
+.sidebar-right {
  294
+  width: 22%;
  295
+  float: left; }
  296
+
298 297
 .sidebar {
299 298
   margin: 30px 0 0 0; }
300 299
   .sidebar .sidebar-title {
@@ -355,7 +354,8 @@ a {
355 354
 
356 355
 table, tr, td {
357 356
   border-spacing: 0;
358  
-  border-collapse: collapse; }
  357
+  border-collapse: collapse;
  358
+  padding: 0; }
359 359
 
360 360
 .disabled a {
361 361
   color: #cccccc !important;

0 notes on commit bcada2a

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