Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Single Product query page generic
- *
- * @author Shawn Gaffney
- * @link http://wphotline.com
- * @copyright Copyright (C) 2010-2011 Shawn Gaffney
- * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
- * @package Infinity
- * @subpackage templates
- * @since 1.0
- */
- infinity_get_header();
- ?>
- <?php
- switch_to_blog(3);
- $args = array(
- post_type => 'product',
- p => '14'
- );
- $tumble_store_query = new WP_Query ( $args );
- ?>
- <?php if ( $tumble_store_query->have_posts() ) while ( $tumble_store_query->have_posts() ) : $tumble_store_query->the_post(); global $_product; $_product = &new woocommerce_product( $post->ID ); ?>
- <div class="container content">
- <div class="row-wrap">
- <div class="row top-row">
- <div class="twelve columns">
- <h1 class="page-title"><?php the_title(); ?></h1>
- <p>Your ultimate theme solution for bbPress!</p>
- <span id="status"></span>
- </div>
- </div>
- <div <?php post_class('row'); ?> id="product-<?php the_ID(); ?>">
- <div class="eight columns" style="overflow: hidden; position: relative;">
- <?php do_action('woocommerce_before_single_product_summary', $post, $_product); ?>
- <div class="slider-bg">
- <h5 style="color:#fff; text-shadow: 0 1px 1px black; line-height: 36px;">Check out what tumbleboard can do for your site!</h5>
- </div>
- </div>
- <div class="four columns" style="overflow: hidden;">
- <div class="twelve columns" style="background:url(http://placehold.it/285x173) no-repeat scroll 0 0 transparent; min-height: 163px; margin-left: 0;">
- <h4 style="position: absolute; bottom: 0; left: 10px;"><a data-reveal-id="donateModal2" class="nice radius button" href="#">Purchase Now</a></h4>
- </div>
- <div class="twelve columns" style="min-height: 163px; margin-top: 10px; margin-left: 0px;">
- <?php do_action( 'woocommerce_single_product_summary', $post, $_product ); ?>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="twelve columns" style="text-align: center; border: 1px solid; border-width: 1px 0 1px 0; padding-top: 10px; margin-top: 10px;">
- <h4><?php the_title(); ?></h4>
- <p>Check out the advanced features below</p>
- </div>
- </div>
- <div class="row">
- <div class="eight columns">
- <h4 style="padding-bottom: 10px;">Unique <?php the_title(); ?> Features</h4>
- <div class="row">
- <div class="four columns">
- <img src="http://placehold.it/132x80">
- </div>
- <div class="eight columns">
- <h5>feature title</h5>
- <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Aenean lacinia bibendum nulla sed consectetur.</p>
- </div>
- </div>
- <div class="row">
- <div class="four columns">
- <img src="http://placehold.it/132x80">
- </div>
- <div class="eight columns">
- <h5>feature title</h5>
- <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Aenean lacinia bibendum nulla sed consectetur.</p>
- </div>
- </div>
- <div class="row">
- <div class="four columns">
- <img src="http://placehold.it/132x80">
- </div>
- <div class="eight columns">
- <h5>feature title</h5>
- <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Aenean lacinia bibendum nulla sed consectetur.</p>
- </div>
- </div>
- <div class="row">
- <div class="four columns">
- <img src="http://placehold.it/132x80">
- </div>
- <div class="eight columns">
- <h5>feature title</h5>
- <p>Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Aenean lacinia bibendum nulla sed consectetur.</p>
- </div>
- </div>
- </div>
- <div class="four columns">
- <?php
- get_sidebar('home');
- ?>
- <blockquote>"I absolutely love how easy it is to work with tumbleboard" <cite>Daniel Ponce</cite></blockquote>
- </div>
- </div>
- <div class="row">
- <div class="twelve columns">
- <hr>
- </div>
- </div>
- <div class="row">
- <div class="twelve columns">
- <h4 style="padding-bottom: 10px;">Unique <?php the_title(); ?> Features</h4>
- </div>
- </div>
- <?php
- $terms = apply_filters( 'taxonomy-images-get-terms', '', array(
- 'taxonomy' => 'feature',
- ) );
- if ( ! empty( $terms ) ) {
- print "\n" . '<div class="row">';
- foreach( (array) $terms as $term ) {
- print "\n" . '<div class="four columns">';
- print "\n\t" . '<a href="' . wp_get_attachment_url( $term->image_id ) . '" rel="lightbox unique-woo-feature">' . wp_get_attachment_image( $term->image_id, 'unique-woo-feature' ) . '</a>';
- print "\n\t" . '<h5>' . esc_html( $term->name ) . '</h5>';
- print "\n\t" . '<p>' . esc_html( $term->description ) . '</p>';
- print "\n" . '</div>';
- }
- print "\n" . '</div>';
- }
- ?>
- <div class="row last-row"></div>
- <p class="back-top"><a href="#header">↑<span>Back to top</span></a></p>
- </div><!-- /.row-wrap -->
- </div><!-- container -->
- <?php
- // show modal popups
- infinity_get_template_part( 'templates/modals/general-donate', 'index' );
- ?>
- <!-- Specific Donation -->
- <div id="donateModal2" class="reveal-modal">
- <h3>Shopping Cart!</h3>
- <p>We appreciate your interest in purchasing Tumbleboard. Please choose which option will work best for your needs below.</p>
- <hr />
- <div class="row">
- <div class="two columns">
- <img src="http://placehold.it/67x67">
- </div>
- <div class="eight columns">
- <h5>Single Site License </h5>
- <p>This license will allow you to use Tumbleboard on a single website.</p>
- </div>
- <div class="two columns">
- <h3>$29</h3>
- </div>
- </div>
- <hr />
- <div class="row">
- <div class="two columns">
- <img src="http://placehold.it/67x67">
- </div>
- <div class="eight columns">
- <h5>Developer License </h5>
- <p>This license will allow you to use Tumbleboard on an unlimited number of websites.</p>
- </div>
- <div class="two columns">
- <h3>$39</h3>
- </div>
- </div>
- <div class="row">
- <div class="twelve columns">
- <?php do_action( 'tumble_single_product_summary', $post, $_product ); ?>
- </div>
- </div>
- <a class="close-reveal-modal">×</a>
- </div>
- <?php endwhile; ?>
- <?php restore_current_blog(); ?>
- <?php infinity_get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement