Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 4.89 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to place features content below shop content
  2. <?php
  3. /**
  4.  * Loop shop template
  5.  *
  6.  * DISCLAIMER
  7.  *
  8.  * Do not edit or add directly to this file if you wish to upgrade Jigoshop to newer
  9.  * versions in the future. If you wish to customise Jigoshop core for your needs,
  10.  * please use our GitHub repository to publish essential changes for consideration.
  11.  *
  12.  * @package    Jigoshop
  13.  * @category   Catalog
  14.  * @author     Jigowatt
  15.  * @copyright  Copyright (c) 2011 Jigowatt Ltd.
  16.  * @license    http://jigoshop.com/license/commercial-edition
  17.  */
  18. ?>
  19.  
  20. <?php
  21. global $columns, $per_page;
  22.  
  23. do_action('jigoshop_before_shop_loop');
  24.  
  25. $loop = 0;
  26.  
  27. if (!isset($columns) || !$columns) $columns = apply_filters('loop_shop_columns', 4);
  28. //if (!isset($per_page) || !$per_page) $per_page = apply_filters('loop_shop_per_page', get_option('posts_per_page'));
  29.  
  30. //if ($per_page > get_option('posts_per_page')) query_posts( array_merge( $wp_query->query, array( 'posts_per_page' => $per_page ) ) );
  31.  
  32. ob_start();
  33.  
  34. if (have_posts()) : while (have_posts()) : the_post(); $_product = &new jigoshop_product( $post->ID ); $loop++;
  35.  
  36.     ?>
  37.     <li class="product <?php if ($loop%$columns==0) echo 'last'; if (($loop-1)%$columns==0) echo 'first'; ?>">
  38.  
  39.         <?php do_action('jigoshop_before_shop_loop_item'); ?>
  40.  
  41.         <a href="<?php the_permalink(); ?>">
  42.  
  43.             <?php do_action('jigoshop_before_shop_loop_item_title', $post, $_product); ?>
  44.  
  45.             <strong><?php the_title(); ?></strong>
  46.  
  47.             <?php do_action('jigoshop_after_shop_loop_item_title', $post, $_product); ?>
  48.  
  49.         </a>
  50.  
  51.         <?php do_action('jigoshop_after_shop_loop_item', $post, $_product); ?>
  52.  
  53.     </li><?php
  54.  
  55.     if ($loop==$per_page) break;
  56.  
  57. endwhile; endif;
  58.  
  59. if ($loop==0) :
  60.  
  61.     echo '<p class="info">'.__('No products found which match your selection.', 'jigoshop').'</p>';
  62.  
  63. else :
  64.  
  65.     $found_posts = ob_get_clean();
  66.  
  67.     echo '<ul class="products">' . $found_posts . '</ul><div class="clear"></div>';
  68.  
  69. endif;
  70.  
  71. do_action('jigoshop_after_shop_loop');
  72.        
  73. <div class="entry-content">
  74. <h1 class="description-title">WHY IS BOLI BETTER?</h1>
  75. <div class="feature feature-item-248"><img class="main" src="http://www.bolistylus.com/wp-content/uploads/uclaproduct.png" alt="" />
  76. <div class="feature_description">
  77. <div class="feature_description_header">
  78. <h2 class="descript-heading">PERFECTLY WEIGHTED</h2>
  79. </div>
  80. <div class="feature_description_content">
  81.  
  82. Touch screens have simplified technology, but there has yet to be a way to capture the precision of a calligrapher or the stroke of an artist. Not only should it meet your needs, but a stylus should have style.
  83.  
  84. </div>
  85. </div>
  86. </div>
  87. <div class="feature feature-item-252"><img class="main" src="http://www.bolistylus.com/wp-content/uploads/pinkproduct.png" alt="" />
  88. <div class="feature_description">
  89. <div class="feature_description_header">
  90. <h2 class="descript-heading">PEN-LIKE PRECISION</h2>
  91. </div>
  92. <div class="feature_description_content">
  93.  
  94. Your stylus should be as sharp as your ideas. The thin and clear disc gives you the accuracy you want in a digital pen.
  95.  
  96. </div>
  97. </div>
  98. </div>
  99. <div class="feature feature-item-254">
  100.  
  101. <img class="main" src="http://www.bolistylus.com/wp-content/uploads/blueproduct.png" alt="" />
  102. <div class="feature_description">
  103. <div class="feature_description_header">
  104. <h2 class="descript-heading">BALL POINT</h2>
  105. </div>
  106. <div class="feature_description_content">
  107.  
  108. Hold your stylus at the angle you’re most comfortable with. Jot gives you the freedom to write or sketch like you’re used to.
  109.  
  110. </div>
  111. </div>
  112. </div>
  113. <div class="feature feature-item-256">
  114.  
  115. <img class="main" src="http://www.bolistylus.com/wp-content/uploads/greenproduct.png" alt="" />
  116. <div class="feature_description">
  117. <div class="feature_description_header">
  118. <h2 class="descript-heading">HEAVY METAL</h2>
  119. </div>
  120. <div class="feature_description_content">
  121.  
  122. Once Jot is in your grip, the quality is unmistakable. The durable aluminum and steel gives Jot superior conductivity and craftsmanship comparable to any luxury pen.
  123.  
  124. </div>
  125. </div>
  126. &nbsp;
  127.  
  128. </div>
  129. </div>
  130.        
  131. echo '<ul class="products">' . $found_posts . '</ul><div class="clear"></div>';
  132.        
  133. $product_string = "";
  134. $product_string = "<ul class='products'>" . $found_posts . "</ul><div class='clear'></div>";
  135. $product_string .= "<div class='entry-content'><h1 class='description-title'>WHY IS BOLI BETTER?</h1>";
  136.  
  137. /* First Product */
  138. $product_string .= "<div class='feature feature-item-248'><img class='main' src='http://www.bolistylus.com/wp-content/uploads/uclaproduct.png' alt='' /><div class='feature_description'><div class='feature_description_header'><h2 class='descript-heading'>PERFECTLY WEIGHTED</h2></div><div class='feature_description_content'>Touch screens have simplified technology, but there has yet to be a way to capture the precision of a calligrapher or the stroke of an artist. Not only should it meet your needs, but a stylus should have style.</div></div></div>";
  139.  
  140. $product_string .= "</div>";
  141.        
  142. echo $product_string;