Removing Capstone layout
authorIan Weller <ian@gaslightmedia.com>
Mon, 19 Sep 2016 19:50:30 +0000 (15:50 -0400)
committerIan Weller <ian@gaslightmedia.com>
Mon, 19 Sep 2016 19:50:30 +0000 (15:50 -0400)
I removed a majority of the Capstone specific layout code to make it
better.

root/scss/_topbar.scss
root/sections/blog-archive.php
root/sections/blog-home.php
root/sections/footer.php
root/sections/front-page.php
root/sections/header.php
root/sections/interior-page.php
root/sections/off-canvas.php

index 43fbd78..41f423e 100644 (file)
         text-align: right;
     }
 }
-.top-bar-section {
+#main-menu {
     background: transparent;
-    float: none;
-    margin-left: auto;
-    margin-right: auto;
-    display: inline-block;
-    height: auto;
-    line-height: 1;
+    height: 73px;
+    z-index: 2;
+    border-bottom: 3px solid $bri-blue;
+    box-shadow: 0px 7px 5px 0 rgba($black, 0.5);
+    -ms-box-shadow: 0px 7px 5px 0 rgba($black, 0.5);
+    -moz-box-shadow: 0px 7px 5px 0 rgba($black, 0.5);
+    -webkit-box-shadow: 0px 7px 5px 0 rgba($black, 0.5);
+    .top-bar-left {
+        max-width: rem-calc(1200);
+        margin: 0 auto;
+        float: none;
+        ul {
+            li {
+                text-align: center;
+                padding: 0 10px;
+                a {
+                    padding: 11px 15px;
+                    font-size: rem-calc(20);
+                    font-family: 'Roboto Slab', sans-serif;
+                    color: $d-blue;
+                    text-decoration: none;
+                    text-transform: uppercase;
+                    &:hover {
+                        color: $white;
+                        background: $d-blue;
+                        border-top-left-radius: 10px;
+                        border-top-right-radius: 10px;
+                    }
+                }
+                ul.submenu {
+                    &:before {
+                        background-repeat: no-repeat;
+                        content: "";
+                        left: 25px;
+//                        min-height: 130px;
+                        position: absolute;
+                        right: 0px;
+                        top: 22px;
+                        width: 100%;
+                    }
+                    box-shadow: 0px 5px 7px 0 rgba($black, 0.5);
+                    -ms-box-shadow: 0px 5px 7px 0 rgba($black, 0.5);
+                    -moz-box-shadow: 0px 5px 7px 0 rgba($black, 0.5);
+                    -webkit-box-shadow: 0px 5px 7px 0 rgba($black, 0.5);
+                    border: 3px solid $d-blue;
+                    padding-left: 25px;
+                    padding-right: 25px;
+                    padding-bottom: 21px;
+                    min-width: 320px;
+                    left: 10px;
+                    li {
+                        border-bottom: 1px dotted $d-blue;
+                        padding: 8px 0;
+                        a {
+                            font-size: rem-calc(17);
+                            color: $d-blue;
+                            text-align: left;
+                            padding: 0;
+                            text-decoration: none;
+                            &:hover {
+                                background: $white;
+                                color: $bri-blue;
+                            }
+                        }
+                    }
+                }
+                &.drop-left {
+                    ul.is-dropdown-submenu {
+                        right: 10px;
+                        left: auto;  
+                    }
+                }
+            }
+        }
+    }
     ul{
         li {
-            
             a {
                 
             }
             &:not(.has-form):not(.active) {
                 & > a:not(.button) {
-                    background: transparent;
+//                    background: transparent;
                 }
             }
-//            &.drop-left {
-//                ul.dropdown {
-//                    padding-left: 21px;
-//                    padding-right: 250px;
-//                    top: 74px;
-//                    background: $white;
-//                    border-bottom-left-radius: 10px;
-//                    border-bottom-right-radius: 10px;
-//                    min-width: 500px;
-//                    box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    -ms-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    -moz-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    -webkit-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    li {
-//                        white-space: nowrap;
-//                        border-bottom: 1px solid #e7e7e8;
-//                        padding: 5px 0;
-//                        &.nav-img-container {
-//                            img {
-//                                position: absolute;
-//                                right: 20px;
-//                                top: 23px;
-//                                border: 6px solid #fdefd4;
-//                            }
-//                            border: none;
-//                        }
-//                        a {
-//                            padding-left: 0;
-//                            text-align: left;
-//                            font-size: 18px;
-//                            &:hover {
-//                                color: $d-blue;
-//                                text-shadow: 0 0 1px $green;
-//                                text-shadow: 1 0 1px $green;
-//                                text-shadow: 0 1 1px $green;
-//                                text-shadow: -1 0 1px $green;
-//                                text-shadow: 0 -1 1px $green;
-//                            }
-//                        }
-//                    }
-//                }
-//            }
-//            &.drop-right {
-//                ul.dropdown {
-//                    padding-left: 250px;
-//                    padding-right: 21px;
-//                    right: -1%;
-//                    left: auto;
-//                    top: 74px;
-//                    background: $white;
-//                    border-bottom-left-radius: 10px;
-//                    border-bottom-right-radius: 10px;
-//                    min-width: 500px;
-//                    box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    -ms-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    -moz-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    -webkit-box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.5);
-//                    li {
-//                        white-space: nowrap;
-//                        background: $white;
-//                        text-align: right;
-//                        border-bottom: 1px solid #e7e7e8;
-//                        padding: 5px 0;
-//                        &.nav-img-container {
-//                            img {
-//                                position: absolute;
-//                                left: 20px;
-//                                top: 23px;
-//                                border: 6px solid #fdefd4;
-//                            }
-//                            border: none;
-//                        }
-//                        a {
-//                            padding-left: 0;
-//                            text-align: left;
-//                            font-size: 18px;
-//                            &:hover {
-//                                color: $d-blue;
-//                                text-shadow: 0 0 1px $green;
-//                                text-shadow: 1 0 1px $green;
-//                                text-shadow: 0 1 1px $green;
-//                                text-shadow: -1 0 1px $green;
-//                                text-shadow: 0 -1 1px $green;
-//                            }
-//                        }
-//                    }
-//                }
-//            }
         }
     }
-}
+}
\ No newline at end of file
index 1d3b1f8..29dfd72 100644 (file)
@@ -1,8 +1,6 @@
 <main class="blog-archive">
-   <div class="row">
-      <?php get_template_part('parts/blog-sidebar-r'); ?>
-   </div>
     <div class="row">
         <?php get_template_part('parts/blog-content-area'); ?>
+        <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
 </main>
\ No newline at end of file
index 90a0b4f..f3a5c3a 100644 (file)
@@ -1,8 +1,6 @@
 <main class="blog-home">
    <div class="row">
-       <?php get_template_part('parts/blog-sidebar-r'); ?>
-   </div>
-    <div class="row">
         <?php get_template_part('parts/blog-content-area'); ?>
+        <?php get_template_part('parts/blog-sidebar-r'); ?>
     </div>
 </main>
\ No newline at end of file
index b7b805c..e7e0b35 100644 (file)
@@ -1,30 +1,9 @@
  <footer class="main">
-    <div class="book-bar">
-        <div class="row medium-uncollapse large-collapse">
-            <div class="small-centered small-12 medium-10 columns">
-                <div class="row collapse">
-                    <div class="small-12 large-5 columns text-center large-text-right">
-                        <img src="<?php bloginfo('template_url');?>/assets/capstone-book.png">
-                    </div>
-                    <div class="small-12 large-7 columns text-center large-text-left">
-                        <h1>Our Book</h1>
-                        <h4>The Employee Experience.<br>A Capstone Guide to Peak Performance</h4>
-                        <a href="#" class="button">order now</a>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
     <?php if (is_active_sidebar('sidebar-f')) :?>
         <?php dynamic_sidebar('sidebar-f');?>
     <?php endif;?>
-    <div id="reference" class="row">
-        <div id="news" class="small-12 small-push-0 medium-push-8 medium-4 columns text-center medium-text-left">
-            <h2>Just Start Newsletter</h2>
-            <p>Monthly Healthcare Best Practices</p>
-            <a href="#" class="button">sign up</a>
-        </div>
-        <div id="footer_address" class="medium-4 columns show-for-medium">
+    <div class="row">
+        <div id="footer_address" class="medium-12 columns show-for-medium">
             <?php if (function_exists('glm_get_clientinfo_option')) :?>
 <!--                                    <h2><?php //echo glm_get_clientinfo_option('businessName');?></h2>-->
             <?php if (glm_get_clientinfo_option('address')):?>
                 <span class="bullet"> &#8226; </span><span><?php echo glm_get_clientinfo_option('extra');?></span>
             <?php endif;?>
             <?php endif;?>
-            <ul class="social">
-                <li class="facebook"><a href="#" target="_blank"></a></li>
-                <li class="twitter"><a href="#" target="_blank"></a></li>
-                <li class="linkin"><a href="#" target="_blank"></a></li>
-                <li class="youtube"><a href="#" target="_blank"></a></li>
-                <li class="insta"><a href="#" target="_blank"></a></li>
-                <li class="google"><a href="#" target="_blank"></a></li>
-            </ul>
-        </div>
-        <div class="small-12  small-pull-0 medium-pull-8 medium-4 columns text-center medium-text-left">
-            <img src="<?php bloginfo('template_url');?>/assets/capstone-leadership-footer-logo.png">
         </div>
     </div>
 </footer>
\ No newline at end of file
index e0e927c..9f07b26 100644 (file)
@@ -1,101 +1,6 @@
 <main class="page-front">
-    <div class="slide-bar-row">
-        <div id="slide">
-            <?php get_template_part('parts/slide-show');?>
-        </div>
-        <div id="bar" class="small-centered large-uncentered">
-            <div class="accordion">
-                <section id="training" class="accordion-item">
-                    <a href="#">Training</a>
-                    <div class="accordion-item-content">
-                        <p class="text-center">Let’s work together! Every team should have the <b>best</b> leaders equipped with the <b>best</b> solutions.</p>
-                    </div>
-                </section>
-                <section class="accordion-item">
-                    <a href="#">Partnering</a>
-                    <div class="accordion-item-content">
-                        <p class="text-center">Let’s work together! Your journey is our passion.</p>
-                    </div>
-                </section>
-                <section class="accordion-item">
-                    <a href="#">Speaking</a>
-                    <div class="accordion-item-content">
-                        <p class="text-center">Let’s work together! To inspire positive change.</p>
-                    </div>
-                </section>
-                <section id="planning" class="accordion-item">
-                    <a href="#">Planning</a>
-                    <div class="accordion-item-content">
-                        <p class="text-center">Let’s work together! Your <b>great</b> vision deserves a <b>great</b> plan.</p>
-                    </div>
-                </section>
-            </div>
-        </div>
-    </div>
-    <div id="front-shop" class="row small-up-1 medium-up-3 large-up-4" data-equalizer>
-    <?php $args = array(
-         'number'     => $number,
-         'orderby'    => 'title',
-         'order'      => 'ASC',
-         'hide_empty' => $hide_empty,
-         'include'    => $ids
-    );
-    $product_categories = get_terms( 'product_cat', $args );
-    $count = count($product_categories);
-    if ( $count > 0 ){
-        foreach ( $product_categories as $product_category ) { ?>
-            <div class="front-product-wrapper column">
-                <div class="front-product-container" data-equalizer-watch>
-                    <div class="products-image-container">
-                    <?php
-                            /**
-                             * woocommerce_before_subcategory_title hook
-                             *
-                             * @hooked woocommerce_subcategory_thumbnail - 10
-                             */
-                            do_action( 'woocommerce_before_subcategory_title', $product_category );
-                    ?>
-                    </div> 
-                    <div class="front-product-content-container">
-                        <?php 
-                        echo '<h4><a href="' . get_term_link( $product_category ) . '">' . $product_category->name . '</a></h4>';
-                        $args = array(
-                            'posts_per_page' => -1,
-                            'tax_query' => array(
-                                'relation' => 'AND',
-                                array(
-                                    'taxonomy' => 'product_cat',
-                                    'field' => 'slug',
-                                    // 'terms' => 'white-wines'
-                                    'terms' => $product_category->slug
-                                )
-                            ),
-                            'post_type' => 'product',
-                            'orderby' => 'title,'
-                        );
-                        $products = new WP_Query( $args );
-                        echo "<ul>";
-
-                        while ( $products->have_posts() ) {
-
-                            $products->the_post();
-                            ?>
-                                <li>
-                                    <a href="<?php the_permalink(); ?>">
-                                        <?php the_title(); ?>
-                                    </a>
-                                </li>
-                            <?php
-                        }
-                        if (!$products->have_posts()) {
-                            echo "TBD";
-                        }
-                        echo "</ul>";?>
-                    </div>
-                </div>
-            </div>
-        <?php } ?>
-    <?php } ?>
+    <div id="slide">
+        <?php get_template_part('parts/slide-show');?>
     </div>
     <div id="content-wrapper">
         <div class="block-row" data-equalizer data-equalize-on="medium" data-equalize-by-row="false">
index 726f945..c15a852 100644 (file)
@@ -1,15 +1,5 @@
 <header>
     <div class="row">
-        <div id="logo-hide" class="small-12 large-3 columns text-center large-text-left">
-            <a href="<?php bloginfo('url')?>"><img src="<?php bloginfo('template_url');?>/assets/capstone-leadership-logo.png"></a>
-        </div>
-        <div id="slogan" class="small-12 large-9 text-center large-text-right columns">
-            <a href="<?php bloginfo('url')?>"><img src="<?php bloginfo('template_url');?>/assets/capstone-leadership-logo.png"></a>
-            <h1>You Want Healthcare to be Great. We Do Too.</h1>
-            <h2>Let's Work Together.</h2>
-        </div>
-        <div id="exspendable-slogan" class="large-3 columns show-for-large">
-            <h1> Let's Work Together.</h1>
-        </div>
+        
     </div>
 </header>
\ No newline at end of file
index 2173b42..3cf6169 100644 (file)
@@ -1,9 +1,5 @@
 <main class="page-inside">
-    <?php if (get_page_template_slug( $post->ID ) == "partners-blocks") { ?>
-    <div id="content-wrapper" class="partners-page-wrapper">
-    <?php } else { ?>
     <div id="content-wrapper">
-    <?php } ?>
         <div class="row">
             <?php if(function_exists('bcn_display') && !is_front_page())
             {
@@ -13,33 +9,7 @@
             }
             ?>
         </div>
-
         <div class="row">
-            <!-- check for partners page template -->
-            <?php if (get_page_template_slug( $post->ID ) == "partners-blocks") { ?>
-            <?php $index_template = false; ?>
-               <?php $post_content = get_post($post->ID); ?>
-
-
-                   <?php echo apply_filters('the_content', $post_content->post_content) ; ?>
-                   <?php get_template_part('parts/glm-blocks'); ?>
-            <?php } ?>
-
-            <!-- check for members only template -->
-            <?php if (get_page_template_slug( $post->ID ) == "members-only") { ?>
-            <?php $index_template = false; ?>
-            <?php $post_content = get_post($post->ID); ?>
-                  <div class="medium-4 columns members-only-menu show-for-large">
-                     <?php //print_r(get_option('pr_options')); ?>
-                     <?php glm_side_menu(); ?>
-                 </div>
-                 <div class="small-12 medium-8 columns">
-                    <?php echo apply_filters('the_content', $post_content->post_content) ; ?>
-                 </div>
-          <?php } ?>
-
-        </div>
-          <div class="row">
             <?php if(!is_front_page()) {
                 echo "<div class=\"small-12 medium-7 columns\">";
                 get_template_part('parts/main-content');
index bda0d38..53606b4 100644 (file)
@@ -7,15 +7,12 @@
 <div class="off-canvas position-left" id="offCanvasLeft" data-off-canvas>
     <?php glm_theme_mobile_off_canvas(); ?>
     <?php get_template_part('parts/search-form');?>
-    <?php if (function_exists('glm_get_clientinfo_option')) :?>
-    <ul class="social horizontal">
-        <li class="facebook"><a href="#" target="_blank"></a></li>
-        <li class="twitter"><a href="#" target="_blank"></a></li>
-        <li class="linkin"><a href="#" target="_blank"></a></li>
-        <li class="youtube"><a href="#" target="_blank"></a></li>
-        <li class="insta"><a href="#" target="_blank"></a></li>
-        <li class="google"><a href="#" target="_blank"></a></li>
+    <ul class="social menu">
+        <li><a class="facebook" target="_blank" href="#"></a></li>
+        <li><a class="twitter" target="_blank" href="#"></a></li>
+        <li><a class="pin" target="_blank" href="#"></a></li>
     </ul>
+    <?php if (function_exists('glm_get_clientinfo_option')) :?>
     <ul class="vertical">
         <li><?php echo glm_get_clientinfo_option('businessName');?></li>
         <?php if (glm_get_clientinfo_option('address')):?>