testing new header info colors
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 18 Apr 2018 16:24:32 +0000 (12:24 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 18 Apr 2018 16:24:32 +0000 (12:24 -0400)
header.php
home-page.php
index-parallax.php
js/custom.js
style.css

index ad6ac90..7bb4881 100644 (file)
                if(of_get_option('show_social') == 1):
                        do_action('accesspress_social');
                endif; ?>
-        <div id="industries">
-            <div id="industry-group">
-                <span>Financial</span>
-                <span>Healthcare</span>
-                <span>Technology</span>
-                <span>Manufacturing</span>
-                <span>Professional Services</span>
-            </div>
+        <div id="header-band">
+            
         </div>
        </header><!-- #masthead -->
 
index 4ec1718..0636e0a 100644 (file)
@@ -7,7 +7,7 @@
  
 
 get_header();
-
        $sections = of_get_option('parallax_section');
 
        if(!empty($sections)):
index 39819b0..47c07d5 100644 (file)
  * @package accesspress_parallax
  */
 
-       $sections = of_get_option('parallax_section');
-
-       if(!empty($sections)):
+    $sections = of_get_option('parallax_section'); ?>
+    
+    
+    <?php if(!empty($sections)):
+    $count = 0;
        foreach ($sections as $section) :
                $page = get_post( $section['page'] ); 
                $overlay = $section['overlay'];
@@ -23,7 +25,7 @@
                $googlemapclass = $layout == "googlemap_template" ? " google-map" : "";
        ?>
 
-       <?php if(!empty($section['page'])): ?>
+    <?php if(!empty($section['page'])): ?>
                <section class="parallax-section clearfix<?php echo esc_attr($googlemapclass)." ".esc_attr($layout);  ?>" id="<?php echo "section-".absint($page->ID); ?>">
                <?php if(!empty($image) && $overlay != "overlay0") : ?>
                        <div class="overlay"></div>
                    $query = new WP_Query( 'page_id='.$section['page'] );
                    while ( $query->have_posts() ) : $query->the_post();
                ?>
-                               <?php 
-                               if($layout != "action_template" && $layout != "blank_template" && $layout != "googlemap_template"): ?>
+                <?php 
+                
+                if($layout != "action_template" && $layout != "blank_template" && $layout != "googlemap_template"): ?>
+                    
                                        <h2><span><?php the_title(); ?></span></h2>
 
                                        <div class="parallax-content">
@@ -48,7 +52,8 @@
                                        <?php endif; ?>
                                        </div> 
                                <?php endif; ?>
-                       <?php 
+            <?php 
+            $count++;
                        endwhile;    
                ?>
 
                        
                        <?php if($layout != "googlemap_template") :?>
                        </div>
-                       <?php endif; ?>
+            <?php endif; ?>
+            <?php if($count === 1){ ?>
+            <div id="industries">
+                <div id="industry-group">
+                    <span>Financial</span>
+                    <span>Healthcare</span>
+                    <span>Technology</span>
+                    <span>Manufacturing</span>
+                    <span>Professional Services</span>
+                </div>
+            </div>
+            <?php } ?>
                </section>
        <?php
-       endif; 
+    endif; 
+    $count++;
        endforeach;
        else:
         get_template_part('demo');
index 2370f63..07c35ff 100644 (file)
@@ -150,5 +150,12 @@ jQuery(document).ready(function($){
         }, 1000 );
            
     }
+    // $('<div>', {
+    //     id: 'industries',
+    //     text: '',
+    //     class: 'industries-group',
+    // }).append( $('<span>',{
+
+    // })).insertAfter($('.parallax-section:first-child'));
     
 });
\ No newline at end of file
index 19f728d..0f11818 100644 (file)
--- a/style.css
+++ b/style.css
@@ -2512,9 +2512,19 @@ Responsive grid for pages
     text-indent: 999999999px;
 }
 
-#industries{
+#header-band{
     margin-top: 10px;
+    background-color: #C6D4E1;
+    height: 50px;
+}
+#industries{
+    position: absolute;
+    bottom: -50px;
+    height: 50px;
     background-color: #A1AC88;
+    z-index: 100;
+    width: 100%;
+    /* margin-bottom: 20px; */
 }
 #industries #industry-group{
     display: block;
@@ -2549,6 +2559,11 @@ Responsive grid for pages
 .parallax-section:first-child {
     padding: 150px 0 75px;
 }
+/* .parallax-section:first-child::after{
+    width: 100%;
+    height: 50px;
+    background-color: red;
+} */
 .parallax-section:not(:first-child) h2{
     display: none;
 }