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( has_term ('fama-advance', 'product-cat') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/advance.jpg');
- <?php }
- elseif ( has_term ('fama-confectionary-solutions', 'product-cat') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/premium.jpg');
- <?php }
- elseif ( has_term ('fama-premium', 'product-cat') ) { ?>
- background-image:url('<?php echo get_template_directory_uri(); ?>/img/parallax/confectionary.jpg');
- <?php }
- else { ?> <?php } ?> ">
- <!--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>
- <a href="#">ΦΟΙΝΙΚΕΛΑΙΟ FAMA ΡΑΦΙΝΕ</a>
- </nav>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <!--End of Breadcrumbs-->
- <div class="wrapper">
- <section class="container-12">
- <!--PRODUCT VIEW -->
- <div class="col-3 single-product-img">
- <img src="<?php the_field('single_product_thumb'); ?>">
- </div>
- <article class="col-5 product-desc">
- <h3><?php echo get_the_title(); ?></h3>
- <h5><?php the_field('procuct_code') ?></h5>
- <h6>ΠΕΡΙΓΡΑΦΗ</h6>
- <p><?php the_field('single_product_desc'); ?></p>
- <h6>ΣΥΣΚΕΥΑΣΙΑ</h6>
- <p><?php the_field('single_product_package'); ?></p>
- <h6>ΑΠΟΘΗΚΕΥΣΗ</h6>
- <p><?php the_field('single_product_storage'); ?></p>
- <h6>ΕΦΑΡΜΟΓΕΣ</h6>
- <p><?php
- $posttags = get_the_terms(get_the_ID(), 'app');
- if ($posttags) {
- $i = 0;
- foreach($posttags as $tag) {
- if ($i > 0) echo ', ';
- echo $tag->name;
- $i++;
- }
- }
- ?>
- </p>
- <a class="orange_button" href="/?s=<?php echo str_replace(' ', '+', get_the_title()); ?>&post_type=recipes_post_types">συνταγεσ με την χρηση του προϊοντος</a>
- </article>
- <!-- END OF PRODUCT VIEW -->
- <div class="feat-products col-4 no-margin-wleft">
- <h6>ΠροτεινΟμενα ΠροϊΟντα</h6>
- <?php $related_pr_rec = get_field('related_feat_products');
- if ($related_pr_rec): ?>
- <?php foreach($related_pr_rec as $post_object): ?>
- <div class="col-2 no-margin-left-wbottom">
- <span class="hint--left" data-hint="<?php echo get_the_title($post_object->ID); ?>"><a href="<?php echo get_permalink($post_object->ID) ?>"><img src="<?php the_field('single_product_thumb', $post_object->ID); ?>" alt=""></a></span>
- </div>
- <?php endforeach; ?>
- <?php endif; ?>
- </div>
- </section>
- <div class="clear"></div>
- <div class="push"></div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement