Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Products VPS Brevini Mobile Valves
- */
- get_header();
- the_post();
- // Get 'monoblock' posts
- $products_mono_posts = get_posts( array(
- 'post_type' => 'post',
- 'posts_per_page' => -1, // Unlimited posts
- 'orderby' => 'prod_order', // Order alphabetically by name
- 'order' => 'Asc',
- 'brand' => 'vps-brevini' ,
- 'genre' => 'mobile-valves',
- 'section' => 'monoblock-valves',
- ) );
- // Get 'modular' posts
- $products_modular_posts = get_posts( array(
- 'post_type' => 'post',
- 'posts_per_page' => -1, // Unlimited posts
- 'orderby' => 'prod_order', // Order alphabetically by name
- 'order' => 'Asc',
- 'brand' => 'vps-brevini' ,
- 'genre' => 'mobile-valves',
- 'section' => 'modular-valves',
- ) );
- ?>
- <div id="primary" class="content-area wrapper">
- <div id="content" class="site-content" role="main">
- <header class="entry-header">
- <h1 class="entry-title"><?php the_title(); ?></h1>
- <div class="entry-content">
- <?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) ); ?>
- </div><!-- .entry-content -->
- <div class="intro">
- </div>
- </header>
- <article class="col-sm-6">
- <?php the_field('modular_valves_text'); ?>
- <div class="prod-divide">
- <?php if ( $products_mono_posts ):
- foreach ( $products_mono_posts as $post ):
- setup_postdata($post);
- ?>
- <div class="products equalpad">
- <?php if ( $thumb_src = get_field('product_image') ): ?>
- <img src="<?php echo $thumb_src; ?>" alt="<?php the_title(); ?>, <?php the_field('team_position'); ?>" class="product-img">
- <?php endif; ?>
- <span class="prod-title"><span class="triangle-bottomright"> </span>
- <span class="prod-title-body"><?php if ( $prod_src = the_title() ): echo $prod_src; endif; ?></span>
- <span class="triangle-topleft"> </span></span>
- <h5>Basic Info</h5>
- <?php if ( $displacement = get_field('displacement_cc/rev') ): ?>
- <b>Displacement cc/rev:</b> <span><?php echo $displacement; ?></span><br/>
- <?php endif; ?>
- <?php if ( $widths = get_field('gear_widths') ): ?>
- <b>Gear Widths:</b> <span><?php echo $widths; ?></span><br/>
- <?php endif; ?>
- <?php if ( $psi = get_field('max_psi_/_bar') ): ?>
- <b>Max PSI / BAR:</b> <span><?php echo $psi; ?></span><br/>
- <?php endif; ?>
- <?php if ( $rpm = get_field('rpm') ): ?>
- <b>RPM:</b> <span><?php echo $rpm; ?></span><br/>
- <?php endif; ?>
- <?php if ( $gpm = get_field('l_/_min_/_gpm') ): ?>
- <b>L / MIN / GPM:</b> <span><?php echo $gpm; ?></span><br/>
- <?php endif; ?>
- <?php if ( $sections = get_field('max_sections_required') ): ?>
- <b>Max Sections Required:</b> <span><?php echo $sections; ?></span><br/>
- <?php endif; ?>
- <div class="clear"></div>
- <a href="<?php echo get_permalink( $post->ID ); ?>" class="more-info">More Info</a>
- </div>
- <?php endforeach; ?><?php endif; ?>
- </div>
- <div class="clear"></div>
- </article><!-- /.profile -->
- <article class="col-sm-6">
- <?php the_field('monoblock_valves_text'); ?>
- <div class="clear"></div>
- <div class="prod-divide">
- <?php if ( $products_modular_posts ):
- foreach ( $products_modular_posts as $post ):
- setup_postdata($post);
- ?>
- <div class="products equalpad">
- <?php if ( $thumb_src = get_field('product_image') ): ?>
- <img src="<?php echo $thumb_src; ?>" alt="<?php the_title(); ?>, <?php the_field('team_position'); ?>" class="product-img">
- <?php endif; ?>
- <span class="prod-title"><span class="triangle-bottomright"> </span>
- <span class="prod-title-body"><?php if ( $prod_src = the_title() ): echo $prod_src; endif; ?></span>
- <span class="triangle-topleft"> </span></span>
- <h5>Basic Info</h5>
- <?php if ( $displacement = get_field('displacement_cc/rev') ): ?>
- <b>Displacement cc/rev:</b> <span><?php echo $displacement; ?></span><br/>
- <?php endif; ?>
- <?php if ( $widths = get_field('gear_widths') ): ?>
- <b>Gear Widths:</b> <span><?php echo $widths; ?></span><br/>
- <?php endif; ?>
- <?php if ( $psi = get_field('max_psi_/_bar') ): ?>
- <b>Max PSI / BAR:</b> <span><?php echo $psi; ?></span><br/>
- <?php endif; ?>
- <?php if ( $rpm = get_field('rpm') ): ?>
- <b>RPM:</b> <span><?php echo $rpm; ?></span><br/>
- <?php endif; ?>
- <?php if ( $gpm = get_field('l_/_min_/_gpm') ): ?>
- <b>L / MIN / GPM:</b> <span><?php echo $gpm; ?></span><br/>
- <?php endif; ?>
- <?php if ( $sections = get_field('max_sections_required') ): ?>
- <b>Max Sections Required:</b> <span><?php echo $sections; ?></span><br/>
- <?php endif; ?>
- <div class="clear"></div>
- <a href="<?php echo get_permalink( $post->ID ); ?>" class="more-info">More Info</a>
- </div>
- <?php endforeach; ?><?php endif; ?>
- </div>
- <div class="clear"></div>
- <div class="clear"></div>
- </article><!-- /.profile -->
- <div class="clear"></div>
- </div><!-- #content -->
- </div><!-- #primary -->
- <?php get_sidebar(); ?><div class="clear"></div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement