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 -->
* @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'];
$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">
<?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');
}, 1000 );
}
+ // $('<div>', {
+ // id: 'industries',
+ // text: '',
+ // class: 'industries-group',
+ // }).append( $('<span>',{
+
+ // })).insertAfter($('.parallax-section:first-child'));
});
\ No newline at end of file
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;
.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;
}