php modifications
authorIan Weller <ian@gaslightmedia.com>
Tue, 10 Feb 2015 21:21:02 +0000 (16:21 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 10 Feb 2015 21:47:02 +0000 (16:47 -0500)
front-page.php
functions.php
header.php
page.php
screenshot.png [new file with mode: 0644]
scss/_structure.scss
sidebar.php

index a748b9e..c163b49 100644 (file)
@@ -5,10 +5,10 @@
             <div class="thumb-nav">
                 <div class="row">
                     <div id="thumb" class="large-12 show-for-large-up">
-                        <img src="assets/slide_sub1.jpg">
-                        <img src="assets/slide_sub2.jpg">
-                        <img src="assets/slide_sub3.jpg">
-                        <img src="assets/slide_sub4.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/slide_sub1.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/slide_sub2.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/slide_sub3.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/slide_sub4.jpg">
                     </div>
                 </div>
             </div>
@@ -21,7 +21,7 @@
                 <div id="news" class="small-12 medium-6 large-4 columns">
                     <h3 class="text-center">News</h3>
                     <div class="feed">
-                        <img src="assets/news_img.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/news_img.jpg">
                         <p>Sunday, June 7, 2015<br><p class="event">Classic Car Club of <br>American Museum <br>"Grand Experience"</p></p>
                         <p>Saturday, June 13, 2015<br><p class="event">Pre-Show Vintage <br>Motorcycle Ride</p></p>
                         <p>Sunday, June 14, 2015<br><p class="event">One Example Event</p></p>
                 <div id="upcoming" class="small-12 medium-6 large-4 columns">
                     <h3 class="text-center">Upcoming Events</h3>
                     <div class="feed">
-                        <img src="assets/event_image.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/event_image.jpg">
                         <p>Pint with the Past<br>Saturday, February 14th<br>7:00pm - 10:00pm</p>
                         <p>Under the Hood<br>February 27, 2015 - March 1, 2015<br>Open during regular GCM hours</p>
                         <p>Cars and Canvas<br>Sunday, March 15th<br>2:00pm - 6:00pm</p>
                         <label><a href="#">View All Events</a></label>
                     </div>
                 </div>
-                <div id="partners" class="small-12 medium-6 large-4 columns end">
+                <div id="partner" class="small-12 medium-6 large-4 columns end">
                     <h3 class="text-center">Featured Partner</h3>
                     <div class="feed">
-                        <img src="assets/partner_img.jpg">
+                        <img src="<?php bloginfo('template_url'); ?>/assets/partner_img.jpg">
                         <p>Did you know we have 7 onsite partner museums?</p>
                         <p>Our featured partner this month is the H.H. Franklin Club. This permanent exhibit includes automobiles, engines, and artifacts that span the four-decade history of the H.H. Franklin Company.</p>
                         <label><a href="#">View All Partners</a></label>
                     </div>
                 </div>
             </div>
-<?php get_footer(); ?>
\ No newline at end of file
+<?php get_footer(); ?>
index d64446b..6fdb898 100644 (file)
@@ -21,7 +21,7 @@ function glm_page_menu($parent = 0, $class = '')
     foreach ($pages as $page) {
         $childs = get_pages('child_of=' . $page->ID);
         if (count($childs) > 0) {
-            echo '<li class="has-dropdown">'."\n";
+            echo '<li class="has-dropdown drop">'."\n";
             echo '<a href="'.get_permalink($page->ID).'">'.$page->post_title.'</a>'."\n";
             echo glm_page_menu($page->ID, 'sub-menu dropdown');
             echo '</li>'."\n";
index ffc5522..5f4a9b4 100644 (file)
@@ -22,7 +22,7 @@
                             <nav class="sec_nav">
                                 <ul>
 
-                                    <li><a href="#">Volunteer/Employment</a></li>
+                                    <li><a href="#">Volunteer / Employment</a></li>
                                     <li><a href="#">Donate</a></li>
                                     <li><a href="#">Media</a></li>
                                     <li><a href="#">Contact</a></li>
@@ -61,8 +61,6 @@
                     </section>
                 </nav>
                 <aside class="left-off-canvas-menu">
-                    <ul class="left-off-canvas-list">
-                        <?php glm_page_menu(); ?>
-                    </ul>
+                    <?php glm_offcanvas_menu(); ?>
                 </aside>
             </header>
index 9a803bf..d9446c6 100644 (file)
--- a/page.php
+++ b/page.php
@@ -1,10 +1,13 @@
 <?php get_header(); ?>
             <div class="row content">
                 <div class="small-12 columns">
-                    <div  class="breadcrumbs">
-                        <span></span>
-                        <span></span>
-                    </div>
+                    <?php
+                if(function_exists('bcn_display') && !is_front_page()) {
+                    echo "<div class=\"breadcrumbs\">";
+                    bcn_display();
+                    echo "</div>";
+                }
+                ?>
                 </div>
 <?php get_sidebar(); ?>
                 <div class="small-12 medium-9 columns main">
@@ -15,4 +18,4 @@
                     <?php endif;?>
                 </div>
             </div>
-<?php get_footer(); ?>
\ No newline at end of file
+<?php get_footer(); ?>
diff --git a/screenshot.png b/screenshot.png
new file mode 100644 (file)
index 0000000..ed9a25d
Binary files /dev/null and b/screenshot.png differ
index 06a5494..26ffd31 100644 (file)
@@ -84,7 +84,7 @@ header {
     }
     .top-bar {
         @include gradient(#c54d38, #b71b1f);
-        border-bottom: 4px solid $white;
+        border-bottom: 2px solid $white;
         box-shadow: 0 5px 5px 0 $black;
         .top-bar-section {
             background: transparent;
@@ -117,67 +117,19 @@ header {
                             content: none;
                         }
                     }
-                    &.drop_left {
+                    &.drop {
                         & .dropdown {
-                            padding-left: 248px;
+                            padding-left: 20px;
                             padding-right: 20px;
                             background: $white;
                             border-bottom-left-radius: 10px;
                             border-bottom-right-radius: 10px;
-                            min-height: 200px;
+                            
                             li {
                                 white-space: nowrap;
                                 background: $white;
                                 border-bottom-right-radius: 10px;
-                                &.nav_img-container {
-                                    img {
-                                        position: absolute;
-                                        left: 20px;
-                                        top: 23px;
-                                        border: 6px solid #fdefd4;
-                                        box-shadow: 2px 3px 9px 0px #ababab;
-                                    }
-                                }
-                                &:not(.has-form):not(.active) {
-                                    a:not(.button) {
-                                        color: $black;
-                                        background: transparent;
-                                    }
-                                }
-                                &:hover:not(.has-form):not(.active) {
-                                    a:not(.button) {
-                                        color: $red;
-                                        background: transparent;
-                                    }
-                                }
-                                a {
-                                    border-bottom: 1px solid #e7e7e8;
-                                }
-                            }
-                        }
-                    }
-                    &.drop_right {
-                        & .dropdown {
-                            padding-left: 248px;
-                            padding-right: 20px;
-                            right: -1%;
-                            left: auto;
-                            background: $white;
-                            border-bottom-left-radius: 10px;
-                            border-bottom-right-radius: 10px;
-                            min-height: 200px;
-                            li {
-                                white-space: nowrap;
-                                background: $white;
-                                &.nav_img-container {
-                                    img {
-                                        position: absolute;
-                                        left: 20px;
-                                        top: 23px;
-                                        border: 6px solid #fdefd4;
-                                        box-shadow: 2px 3px 9px 0px #ababab;
-                                    }
-                                }
+                                
                                 &:not(.has-form):not(.active) {
                                     a:not(.button) {
                                         color: $black;
@@ -226,13 +178,15 @@ header {
     }
     .left-off-canvas-menu {
         .left-off-canvas-list {
-            list-style: none;
-            li {
-                a {
-                    color: $white;
-                }
-                ul {
-                    list-style: none;
+            ul {
+                list-style: none;
+                li {
+                    a {
+                        color: $white;
+                    }
+                    ul {
+                        list-style: none;
+                    }
                 }
             }
         }
@@ -289,7 +243,7 @@ header {
         }
         text-align: center;
     }
-    #partners {
+    #partner {
         h3 {
             background: $black;
             padding: 10px 0;
@@ -299,7 +253,7 @@ header {
             width: 100%;
         }
         label {
-            margin-top: 55px;
+            margin-top: 85px;
         }
         text-align: center;
     }
@@ -330,21 +284,13 @@ header {
         margin-top: 0;
         border: none;
         font-size: 10px;
-        a {
+        & > * {
             color: #b1b3b5;
-        }
-        #current-crumb {
             font-weight: bold;
+            a {
+                color: #b1b3b5;
+            }
         }
-        & > *:before {
-            content: ">";
-            color: $red;
-        }
-        & > :first-child:before {
-            content: " ";
-            margin: 0;
-        }
-
     }
     .main {
         img {
@@ -359,7 +305,7 @@ header {
             background: #9fa617;
             text-align: center;
             margin-bottom: 0;
-            padding: 5px 0;
+            padding: 10px 0;
         }
         ul {
             list-style: none;
@@ -367,7 +313,7 @@ header {
             li {
                 border-bottom: 1px solid $white;
                 background: #c5c974;
-                padding: 5px 0 5px 15px;
+                padding: 2px 0 2px 15px;
                 a {                    
                     color: $black;
                     text-transform: uppercase;
@@ -383,6 +329,7 @@ header {
                 color: $white;
                 background: #c8b776;
                 text-align: center;
+                padding: 11px 0;
                 margin-bottom: 8px;
                 
             }
index 930cb22..862cf2e 100644 (file)
@@ -1,15 +1,8 @@
                 <div class="medium-3 columns show-for-medium-up sidebar">
-                    <h3>Host an Event</h3>
-                    <ul>
-                        <li><a id="active" href="#">General Events</a></li>
-                        <li><a href="#">Banquets</a></li>
-                        <li><a href="#">Corporate Meetings</a></li>
-                        <li><a href="#">Weddings</a></li>
-                        <li><a href="#">Event/Meeting Spaces</a></li>
-                        <li><a href="#">Approved Caterers</a></li>
-                    </ul>
+                    <h3>Page Name Here</h3>
+                    <?php glm_page_menu(); ?>
                     <a class="tab" href="#"><h3>Upcoming Events</h3></a>
                     <a class="tab" href="#"><h3>News</h3></a>
                     <a class="tab" href="#"><h3>The Collections</h3></a>
                     <a class="tab" href="#"><h3>Sponsors</h3></a>
-                </div>
\ No newline at end of file
+                </div>