Advertisement
sgaffney

switch to blog issues with tax image

Dec 21st, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.66 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Single Product query page generic
  4.  *
  5.  * @author Shawn Gaffney
  6.  * @link http://wphotline.com
  7.  * @copyright Copyright (C) 2010-2011 Shawn Gaffney
  8.  * @license http://www.gnu.org/licenses/gpl.html GPLv2 or later
  9.  * @package Infinity
  10.  * @subpackage templates
  11.  * @since 1.0
  12.  */
  13.  
  14.     infinity_get_header();
  15. ?>
  16. <?php
  17.     switch_to_blog(3);
  18.     $args = array(
  19.         post_type   => 'product',
  20.         p       => '14'
  21.     );
  22.     $tumble_store_query = new WP_Query ( $args );
  23. ?>
  24.  
  25. <?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 ); ?>
  26.  
  27.     <div class="container content">
  28.  
  29.     <div class="row-wrap">
  30.  
  31.         <div class="row top-row">
  32.             <div class="twelve columns">
  33.  
  34.                 <h1 class="page-title"><?php the_title(); ?></h1>
  35.                 <p>Your ultimate theme solution for bbPress!</p>
  36.                 <span id="status"></span>
  37.             </div>
  38.         </div>
  39.         <div <?php post_class('row'); ?> id="product-<?php the_ID(); ?>">
  40.             <div class="eight columns" style="overflow: hidden; position: relative;">
  41.             <?php do_action('woocommerce_before_single_product_summary', $post, $_product); ?>
  42.  
  43.                 <div class="slider-bg">
  44.                     <h5 style="color:#fff; text-shadow: 0 1px 1px black; line-height: 36px;">Check out what tumbleboard can do for your site!</h5>
  45.  
  46.                 </div>
  47.             </div>
  48.  
  49.             <div class="four columns" style="overflow: hidden;">
  50.                 <div class="twelve columns" style="background:url(http://placehold.it/285x173) no-repeat scroll 0 0 transparent; min-height: 163px; margin-left: 0;">
  51.                 <h4 style="position: absolute; bottom: 0; left: 10px;"><a data-reveal-id="donateModal2" class="nice radius button" href="#">Purchase Now</a></h4>
  52.                 </div>
  53.                 <div class="twelve columns" style="min-height: 163px; margin-top: 10px; margin-left: 0px;">
  54.                 <?php do_action( 'woocommerce_single_product_summary', $post, $_product ); ?>
  55.  
  56.                 </div>
  57.  
  58.             </div>
  59.         </div>
  60.  
  61.         <div class="row">
  62.             <div class="twelve columns" style="text-align: center; border: 1px solid; border-width: 1px 0 1px 0; padding-top: 10px; margin-top: 10px;">
  63.                 <h4><?php the_title(); ?></h4>
  64.                 <p>Check out the advanced features below</p>
  65.             </div>
  66.         </div>
  67.  
  68.  
  69.         <div class="row">
  70.             <div class="eight columns">
  71.                 <h4 style="padding-bottom: 10px;">Unique <?php the_title(); ?> Features</h4>
  72.                 <div class="row">
  73.                     <div class="four columns">
  74.                         <img src="http://placehold.it/132x80">
  75.                     </div>
  76.  
  77.                     <div class="eight columns">
  78.                         <h5>feature title</h5>
  79.                         <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>
  80.                     </div>
  81.                 </div>
  82.  
  83.                 <div class="row">
  84.                     <div class="four columns">
  85.                         <img src="http://placehold.it/132x80">
  86.                     </div>
  87.  
  88.                     <div class="eight columns">
  89.                         <h5>feature title</h5>
  90.                         <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>
  91.                     </div>
  92.                 </div>
  93.  
  94.                 <div class="row">
  95.                     <div class="four columns">
  96.                         <img src="http://placehold.it/132x80">
  97.                     </div>
  98.  
  99.                     <div class="eight columns">
  100.                         <h5>feature title</h5>
  101.                         <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>
  102.                     </div>
  103.                 </div>
  104.  
  105.                 <div class="row">
  106.                     <div class="four columns">
  107.                         <img src="http://placehold.it/132x80">
  108.                     </div>
  109.  
  110.                     <div class="eight columns">
  111.                         <h5>feature title</h5>
  112.                         <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>
  113.                     </div>
  114.                 </div>
  115.             </div>
  116.  
  117.             <div class="four columns">
  118.  
  119.                 <?php
  120.                     get_sidebar('home');
  121.                 ?>
  122.  
  123.                 <blockquote>"I absolutely love how easy it is to work with tumbleboard" <cite>Daniel Ponce</cite></blockquote>
  124.  
  125.             </div>
  126.  
  127.  
  128.         </div>
  129.  
  130.  
  131.  
  132.         <div class="row">
  133.             <div class="twelve columns">
  134.                 <hr>
  135.             </div>
  136.         </div>
  137.  
  138.         <div class="row">
  139.             <div class="twelve columns">
  140.             <h4 style="padding-bottom: 10px;">Unique <?php the_title(); ?> Features</h4>
  141.             </div>
  142.         </div>
  143.  
  144.         <?php
  145.             $terms = apply_filters( 'taxonomy-images-get-terms', '', array(
  146.                 'taxonomy' => 'feature',
  147.             ) );
  148.             if ( ! empty( $terms ) ) {
  149.                 print "\n" . '<div class="row">';
  150.                 foreach( (array) $terms as $term ) {
  151.                     print "\n" . '<div class="four columns">';
  152.                     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>';
  153.                     print "\n\t" . '<h5>' . esc_html( $term->name ) . '</h5>';
  154.                     print "\n\t" . '<p>' . esc_html( $term->description ) . '</p>';
  155.                     print "\n" . '</div>';
  156.                 }
  157.                 print "\n" . '</div>';
  158.             }
  159.         ?>
  160.  
  161.         <div class="row last-row"></div>
  162.  
  163.         <p class="back-top"><a href="#header">&uarr;<span>Back to top</span></a></p>
  164.  
  165.     </div><!-- /.row-wrap -->
  166.  
  167.     </div><!-- container -->
  168.  
  169.     <?php
  170.         // show modal popups
  171.         infinity_get_template_part( 'templates/modals/general-donate', 'index' );
  172.     ?>
  173.  
  174.     <!-- Specific Donation -->
  175.     <div id="donateModal2" class="reveal-modal">
  176.          <h3>Shopping Cart!</h3>
  177.          <p>We appreciate your interest in purchasing Tumbleboard. Please choose which option will work best for your needs below.</p>
  178.  
  179.          <hr />
  180.  
  181.          <div class="row">
  182.             <div class="two columns">
  183.                 <img src="http://placehold.it/67x67">
  184.             </div>
  185.  
  186.             <div class="eight columns">
  187.                 <h5>Single Site License </h5>
  188.                 <p>This license will allow you to use Tumbleboard on a single website.</p>
  189.  
  190.             </div>
  191.  
  192.             <div class="two columns">
  193.                 <h3>$29</h3>
  194.             </div>
  195.          </div>
  196.  
  197.          <hr />
  198.  
  199.          <div class="row">
  200.             <div class="two columns">
  201.                 <img src="http://placehold.it/67x67">
  202.             </div>
  203.  
  204.             <div class="eight columns">
  205.                 <h5>Developer License </h5>
  206.                 <p>This license will allow you to use Tumbleboard on an unlimited number of websites.</p>
  207.  
  208.             </div>
  209.  
  210.             <div class="two columns">
  211.                 <h3>$39</h3>
  212.             </div>
  213.          </div>
  214.  
  215.          <div class="row">
  216.             <div class="twelve columns">
  217.                 <?php do_action( 'tumble_single_product_summary', $post, $_product ); ?>
  218.  
  219.             </div>
  220.          </div>
  221.  
  222.          <a class="close-reveal-modal">&#215;</a>
  223.     </div>
  224.  
  225. <?php endwhile; ?>
  226.  
  227. <?php restore_current_blog(); ?>
  228.  
  229. <?php infinity_get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement