Instantly share code, notes, and snippets.
Created
February 24, 2023 10:13
-
Star
(0)
0
You must be signed in to star a gist -
Fork
(0)
0
You must be signed in to fork a gist
-
Save wurwal/ae8f180c2d23d367b19deb274cbf1c0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- mega menu start (items are in reverse order in markup)--> | |
<li class="mega-menu menu-search"> | |
<a href="#"><img class="search-button" src="<?php bloginfo('template_directory'); ?>/assets/images/icon-search.png"/></a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-12 column"> | |
<?php echo do_shortcode("[wd_asp id=1]"); ?> | |
</div> | |
</li> | |
</ul> | |
</li> | |
<!-- about mega menu start --> | |
<li class="mega-menu"> | |
<a class="<?php if (is_page( array('18',))) echo 'active'; ?>" href="#">About</a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'about_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'about_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'about_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'about_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'about_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'about_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column end"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'about_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'about_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
</li> | |
</ul> | |
</li> | |
<!-- about mega menu end --> | |
<!-- industries mega menu start --> | |
<li class="mega-menu"> | |
<a class="<?php if (is_page( array('18',))) echo 'active'; ?>" href="#">Industries</a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'ind_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'ind_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'ind_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column end"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'ind_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
</li> | |
</ul> | |
</li> | |
<!-- industries mega menu end --> | |
<!-- sub contracting mega menu start --> | |
<li class="mega-menu"> | |
<a class="<?php if (is_page( array('18',))) echo 'active'; ?>" href="#">Sub-contracting</a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'sc_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'sc_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'sc_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column end"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'sc_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
</li> | |
</ul> | |
</li> | |
<!-- sub contracting mega menu end --> | |
<!-- consumables mega menu start --> | |
<li class="mega-menu"> | |
<a class="<?php if (is_page( array('18',))) echo 'active'; ?>" href="#">Consumables</a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'consumables_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'consumables_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'consumables_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column end"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'consumables_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
</li> | |
</ul> | |
</li> | |
<!-- consumables mega menu end --> | |
<li class="mega-menu"> | |
<a style="padding-right:0;" class="<?php if (is_page( array('999',))) echo 'active'; ?>" href="#">Processes</a> | |
</li> | |
<!-- Surface Finishing mega menu start --> | |
<li class="mega-menu"> | |
<a class="<?php if (is_page( array('18',))) echo 'active'; ?>" href="#">Surface Finishing</a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'machinery_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'machinery_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'machinery_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
<div class="medium-3 column end"> | |
<ul class="nolist"> | |
<?php if ( have_rows( 'machinery_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 0 && get_sub_field( 'link_highlight' ) == 0 ) { ?> | |
<li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php } ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'gap' ) == 1 ) {?> | |
<li> </li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( $menu_item && get_sub_field( 'link_highlight' ) == 1 ) {?> | |
<li><a class="arrow-link" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else { | |
// echo 'false'; | |
} ?> | |
<?php if ( get_sub_field( 'image' ) ) { ?> | |
<img alt="ActOn Finishing Mega Menu" src="<?php the_sub_field( 'image' ); ?>" /> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</div> | |
</li> | |
</ul> | |
</li> | |
<!-- surface finishing mega menu end --> | |
<li class="mega-menu"> | |
<a class="<?php if (is_page( array('18',))) echo 'active'; ?>" href="#">Blasting & Peening</a> | |
<ul class="menu animated fadeIn"> | |
<li> | |
<div class="medium-3 column"> | |
<ul class="nolist"> | |
</ul> | |
</ | |
</ul> | |
<!-- Mobile menu --> | |
<a href="<?php echo get_bloginfo('url') ?>" title="" class="show-for-small hide-for-large"><img class="mobile-logo" src="<?php bloginfo('template_directory'); ?>/assets/images/logo@2x-dark.png" alt="logo"></a> | |
<a href="#" data-open="exampleModal1" class="hide-for-large hamburger" aria-label="Menu"><i class="fa fa-bars" aria-hidden="true"></i></a> | |
<a href="tel:442476466914" aria-label="Call Acton Finishing"><img alt="call us" class="icon-phone hide-for-large" src="<?php bloginfo('template_directory'); ?>/assets/images/phone-mob-green.png"/></a> | |
<div class="reveal menu-modal full mobile-patch animated fadeIn hide-for-large" id="exampleModal1" data-reveal> | |
<button class="close-button menu-close" data-close aria-label="Close modal" type="button"> | |
<i class="fa fa-times" aria-hidden="true"></i> | |
</button> | |
<ul class="vertical menu show-for-small hide-for-large" data-accordion-menu> | |
<li><a href="#"><?php echo do_shortcode("[wd_asp id=2]"); ?></a></li> | |
<li> | |
<a href="#">Machinery</a> | |
<ul class="menu vertical nested"> | |
<?php if ( have_rows( 'machinery_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'machinery_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'machinery_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'machinery_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'machinery_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</li> | |
<li> | |
<a href="#">Consumables</a> | |
<ul class="menu vertical nested"> | |
<?php if ( have_rows( 'consumables_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'consumables_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'consumables_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'consumables_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'consumables_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</li> | |
<li> | |
<a href="#">Sub-contracting</a> | |
<ul class="menu vertical nested"> | |
<?php if ( have_rows( 'sc_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'sc_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'sc_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'sc_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'sc_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
</ul> | |
</li> | |
<li> | |
<a href="#">Industries</a> | |
<ul class="menu vertical nested"> | |
<?php if ( have_rows( 'ind_col_1', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_1', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'ind_col_2', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_2', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'ind_col_3', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_3', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<?php // no rows found ?> | |
<?php endif; ?> | |
<?php if ( have_rows( 'ind_col_4', 'option' ) ) : ?> | |
<?php while ( have_rows( 'ind_col_4', 'option' ) ) : the_row(); ?> | |
<?php $menu_item = get_sub_field( 'menu_item' ); ?> | |
<?php if ( $menu_item && get_sub_field( 'bold' ) == 1 ) {?> | |
<li><a class="bold" href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a></li> | |
<?php | |
} else if ($menu_item) { ?> <li><a href="<?php echo $menu_item['url']; ?>" target="<?php echo $menu_item['target']; ?>"><?php echo $menu_item['title']; ?></a> | |
<?php } ?> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment