Permalink
Browse files

added the color into nav

  • Loading branch information...
1 parent 6ac9001 commit 5600c7943faa69ea909f6cb8466527de84b3788d Justin Louie committed Dec 14, 2012
@@ -5,12 +5,37 @@
*/
?>
-<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+<article id="post-<?php the_ID(); ?>" <?php post_class("sermon-post"); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
- <div class="entry-meta">
- <?php _s_posted_on(); ?>
+ <div class="entry-meta">
+ <?php if (get_post_type() == 'ct_sermon') : ?>
+ <span class="sermon-speaker">
+ <?php echo get_the_term_list($post->ID, 'sermon_speaker'); ?>,
+ </span>
+ <?php endif; ?>
+
+ <?php the_time('M j, Y'); ?>
+
+ <div class="comments-cnt">
+ <a href="<?php comments_link(); ?>" class="comments-link">
+ <?php
+ $ccnt = get_comments_number();
+ switch($ccnt){
+ case 0:
+ echo "No Comments";
+ break;
+ case 1:
+ echo "1 Comment";
+ break;
+ default:
+ echo "$ccnt Comments";
+ break;
+ }
+ ?>
+ </a>
+ </div>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
@@ -1,19 +1,31 @@
-<!-- <nav id="primary-nav" role="navigation" class="site-navigation main-navigation black-bar">
- <ul class="navbar clearfix">
- <li class="nav-item disabled"><a href="#">Church</a></li>
- <li class="nav-item"><a href="<?php echo home_url("/visit/"); ?>">Visit</a></li>
- <li class="nav-item disabled"><a href="#">Ministries</a></li>
- <li class="nav-item disabled"><a href="#">Sermons</a></li>
- <li class="nav-item disabled"><a href="#">Give</a></li>
- </ul>
-</nav> --><!-- .site-navigation .main-navigation -->
+<?php
+global $post;
+$church_page = get_page_by_title('church')
+?>
-<table id="primary-nav" role="navigation" class="site-navigation main-navigation black-bar">
- <tr class="navbar clearfix">
- <td class="nav-item"><a href="<?php echo home_url("/church/our-vision/"); ?>">Church</a></td>
- <td class="nav-item"><a href="<?php echo home_url("/visit/"); ?>">Visit</a></td>
- <td class="nav-item disabled"><a href="#">Ministries</a></td>
- <td class="nav-item"><a href="<?php echo home_url("/sermons/"); ?>">Sermons</a></td>
- <td class="nav-item disabled"><a href="#">Give</a></td>
- </tr>
-</table>
+<div class="primary-nav-container">
+ <table id="primary-nav" role="navigation" class="site-navigation main-navigation black-bar">
+ <tr class="navbar clearfix">
+ <td class="nav-item"><a href="<?php echo home_url("/church/our-vision/"); ?>">
+ <?php if(is_page('church') || $post->post_parent == $church_page->ID) : ?>
+ <span class="active_tab"></span>
+ <?php endif; ?>
+ Church</a>
+ </td>
+ <td class="nav-item"><a href="<?php echo home_url("/visit/"); ?>">
+ <?php if(is_page('visit')) : ?>
+ <span class="active_tab"></span>
+ <?php endif; ?>
+ Visit</a>
+ </td>
+ <td class="nav-item disabled"><a href="#">Ministries</a></td>
+ <td class="nav-item"><a href="<?php echo home_url("/sermons/"); ?>">
+ <?php if(get_post_type() == 'ct_sermon') : ?>
+ <span class="active_tab"></span>
+ <?php endif; ?>
+ Sermons</a>
+ </td>
+ <td class="nav-item disabled"><a href="#">Give</a></td>
+ </tr>
+ </table>
+</div>
@@ -1,26 +1,34 @@
-
-#primary-nav
- display: table
- width: 100%
- margin: 10px 0 10px
- .navbar
- padding: 0 0 20px 0px
- display: table-row
+.primary-nav-container
+ margin-top: 10px
+ border-top: 1px solid #222
+ #primary-nav
+ display: table
width: 100%
- .nav-item
- display: table-cell
- width: 20%
- position: relative
- padding: 20px
- text-align: center
- border-top: 1px solid #222
+ margin: 0px 0 10px
+ .navbar
+ padding: 0 0 20px 0px
+ display: table-row
+ width: 100%
+ .active_tab
+ border-top: 7px solid $active-link-color
+ position: absolute
+ display: block
+ width: 100%
+ top: 0px
+ left: 0px
+ .nav-item
+ display: table-cell
+ width: 20%
+ position: relative
+ padding: 20px
+ text-align: center
- a
- padding: 20px 0px
- margin: 0 4%
- text-transform: uppercase
- color: black
- font-size: 12px
+ a
+ padding: 20px 0px
+ margin: 0 4%
+ text-transform: uppercase
+ color: black
+ font-size: 12px
- &:hover
- color: #AAA
+ &:hover
+ color: #AAA
@@ -1,6 +1,9 @@
.sermon-list-post
+ border-bottom: 2px solid #ccc
margin: 0 0 20px
padding: 0 0 20px
+ width: 95%
+
.entry-header
margin: 0 0 10px
@@ -29,9 +32,19 @@
td
height: 80px
-.ct_sermon
- width: 95%
+.sermon-post
+ margin-bottom: 20px
+ padding-bottom: 20px
border-bottom: 2px solid #ccc
+
+ .entry-header
+ .entry-title
+ padding: 0 0 10px
+ border-bottom: 2px solid #ccc
+ .entry-meta
+
+ .comments-cnt
+ float: right
.social.sermons ul
padding-left: 0px
.social.sermons ul li
@@ -58,29 +58,38 @@
position: relative;
top: 1px; }
-#primary-nav {
- display: table;
- width: 100%;
- margin: 10px 0 10px; }
- #primary-nav .navbar {
- padding: 0 0 20px 0px;
- display: table-row;
- width: 100%; }
- #primary-nav .navbar .nav-item {
- display: table-cell;
- width: 20%;
- position: relative;
- padding: 20px;
- text-align: center;
- border-top: 1px solid #222222; }
- #primary-nav .navbar .nav-item a {
- padding: 20px 0px;
- margin: 0 4%;
- text-transform: uppercase;
- color: black;
- font-size: 12px; }
- #primary-nav .navbar .nav-item a:hover {
- color: #aaaaaa; }
+.primary-nav-container {
+ margin-top: 10px;
+ border-top: 1px solid #222222; }
+ .primary-nav-container #primary-nav {
+ display: table;
+ width: 100%;
+ margin: 0px 0 10px; }
+ .primary-nav-container #primary-nav .navbar {
+ padding: 0 0 20px 0px;
+ display: table-row;
+ width: 100%; }
+ .primary-nav-container #primary-nav .navbar .active_tab {
+ border-top: 7px solid #77991f;
+ position: absolute;
+ display: block;
+ width: 100%;
+ top: 0px;
+ left: 0px; }
+ .primary-nav-container #primary-nav .navbar .nav-item {
+ display: table-cell;
+ width: 20%;
+ position: relative;
+ padding: 20px;
+ text-align: center; }
+ .primary-nav-container #primary-nav .navbar .nav-item a {
+ padding: 20px 0px;
+ margin: 0 4%;
+ text-transform: uppercase;
+ color: black;
+ font-size: 12px; }
+ .primary-nav-container #primary-nav .navbar .nav-item a:hover {
+ color: #aaaaaa; }
.site-footer {
position: relative;
@@ -215,8 +224,10 @@
font-weight: normal; }
.sermon-list-post {
+ border-bottom: 2px solid #cccccc;
margin: 0 0 20px;
- padding: 0 0 20px; }
+ padding: 0 0 20px;
+ width: 95%; }
.sermon-list-post .entry-header {
margin: 0 0 10px; }
.sermon-list-post .entry-title-container {
@@ -238,9 +249,15 @@
.sermon-series-listings td {
height: 80px; }
-.ct_sermon {
- width: 95%;
+.sermon-post {
+ margin-bottom: 20px;
+ padding-bottom: 20px;
border-bottom: 2px solid #cccccc; }
+ .sermon-post .entry-header .entry-title {
+ padding: 0 0 10px;
+ border-bottom: 2px solid #cccccc; }
+ .sermon-post .entry-header .entry-meta .comments-cnt {
+ float: right; }
.social.sermons ul {
padding-left: 0px; }

0 comments on commit 5600c79

Please sign in to comment.