Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div class="non-home-parallax product-listing-parallax" style="
- <?php if( is_tax ('product-cat', 'fama-advance') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/advance.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-premium') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/premium.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-confectionary-solutions') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/confectionary.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-powder-solutions') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/powder.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-improvers') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/improvers.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-chocoday-creams') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/chocodaycreams.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-choco-day') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/chocoday.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-deliciozo') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/deliciozo.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-frutopia') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/frutopia.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-fruigel') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/fruigel.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-creams') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/creams.jpg');
- <?php }
- elseif ( is_tax ('product-cat', 'fama-ice') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/ice.jpg');
- <?php }
- else { ?> <?php } ?> ">
- <div class="container-12">
- <div class="col-12">
- <h4 style="
- <?php if( is_tax ('product-cat', 'fama-advance') ) { ?>
- background-color: #ff9900;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-premium') ) { ?>
- background-color: #004A93;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-confectionary-solutions') ) { ?>
- background-color: #E7C388;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-powder-solutions') ) { ?>
- background-color: #FFED3D;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-improvers') ) { ?>
- background-color: #FDBA2F;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-chocoday-creams') ) { ?>
- background-color: #693A18;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-choco-day') ) { ?>
- background-color: #3B210D;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-deliciozo') ) { ?>
- background-color: #DB0070;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-frutopia') ) { ?>
- background-color: #98005D;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-fruigel') ) { ?>
- background-color: #BB001C;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-creams') ) { ?>
- background-color: #96C031;
- <?php }
- elseif ( is_tax ('product-cat', 'fama-ice') ) { ?>
- background-color: #9FDAF1;
- <?php }
- else { ?> <?php } ?> ">
- <?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h4>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <!--Breadcrumbs-->
- <div class="breadcrumbs">
- <div class="container-12">
- <div class="col-12">
- <nav class="bread"> <a href="#">ΠΡΟΪΟΝΤΑ</a>
- <a href="#">Fama Premium</a>
- <a href="#">Φοινικελαια</a>
- </nav>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <!--End of Breadcrumbs-->
- <div class="wrapper">
- <section class="container-12">
- <!-- Product Row -->
- <?php $i = 0; ?>
- <?php while ( have_posts() ) : the_post();
- if ($i % 4 == 0):?>
- <div class="products-all">
- <?php endif; ?>
- <div class="col-3 product-view">
- <a href="<?php echo get_permalink(); ?>"><img src="<?php the_field('single_product_thumb'); ?>" class="product-img"></a>
- <h5><a href="<?php echo get_permalink(); ?>"><?php echo get_the_title(); ?></a>
- </h5>
- </div>
- <?php if ($i % 4 == 3):?>
- <div class="clear"></div>
- </div>
- <?php endif; ?>
- <?php $i++; ?>
- <?php endwhile; ?>
- <?php if ($i % 4 != 0):?>
- <div class="clear"></div>
- <?php endif; ?>
- </section>
- <div class="clear"></div>
- <div class="push"></div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement