Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 6th, 2014  |  syntax: None  |  size: 9.84 KB  |  views: 189  |  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. <div class="product-details">
  2. <ul>
  3.         <?php if ($manufacturer) { ?>
  4.         <li><span><b><?php echo $text_manufacturer; ?></b></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a></li>
  5.         <?php } ?>
  6.         <li><span><b><?php echo $text_model; ?></b></span> <?php echo $model; ?></li>
  7.         <li><span><b><?php echo $text_reward; ?></b></span> <?php echo $reward; ?></li>
  8.         <li><span><b><?php echo $text_stock; ?></b></span> <?php echo $stock; ?></li>
  9.         <?php if ($tags) { ?><li><span><b><?php echo $text_tags; ?></b></span>
  10. <?php for ($i = 0; $i < count($tags); $i++) { ?>
  11.     <?php if ($i < (count($tags) - 1)) { ?>
  12.     <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,
  13.     <?php } else { ?>
  14.     <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>
  15.     <?php } ?>
  16.     <?php } ?>
  17. </li>  <?php } ?>
  18.  
  19. </ul>
  20. </div>
  21.      
  22.  
  23.  
  24.  
  25.  
  26. <?php if ($price) { ?>
  27.      <div class="price-container">
  28.      <div class="price">
  29.         <?php if (!$special) { ?>
  30.         <div class="price-amount"><?php echo $price; ?></div>
  31. <div class="price-only">Only!</div>
  32.         <?php } else { ?>
  33.         <div class="price-amount"><?php echo $special; ?></div>
  34.         <span class="price-old"><?php echo $price; ?></span>
  35.         <?php } ?>
  36.      </div><!--price ends-->
  37.        
  38.  
  39.         <?php if ($tax) { ?>
  40.         <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
  41.         <?php } ?>
  42.         <?php if ($points) { ?>
  43.         <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span> <br />
  44.         <?php } ?>
  45.         <?php if ($discounts) { ?>
  46.         <br />
  47.         <div class="discount">
  48.           <?php foreach ($discounts as $discount) { ?>
  49.           <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />
  50.           <?php } ?>
  51.         </div>
  52.         <?php } ?>
  53.  
  54.      </div><!--price-container ends-->
  55. <?php } ?>
  56. <div class="clear"></div>
  57.  
  58.  
  59.  
  60.        <?php if ($options) { ?>
  61.       <div class="options">
  62.        
  63.         <?php foreach ($options as $option) { ?>
  64.         <?php if ($option['type'] == 'select') { ?>
  65.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  66.           <?php if ($option['required']) { ?>
  67.           <span class="required">*</span>
  68.           <?php } ?>
  69.           <b><?php echo $option['name']; ?>:</b><br />
  70.           <select class="styled-select" name="option[<?php echo $option['product_option_id']; ?>]">
  71.             <option value=""><?php echo $text_select; ?></option>
  72.             <?php foreach ($option['option_value'] as $option_value) { ?>
  73.             <option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
  74.             <?php if ($option_value['price']) { ?>
  75.             (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
  76.             <?php } ?>
  77.             </option>
  78.             <?php } ?>
  79.           </select>
  80.         </div>
  81.  
  82.         <?php } ?>
  83.         <?php if ($option['type'] == 'radio') { ?>
  84.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  85.           <?php if ($option['required']) { ?>
  86.           <span class="required">*</span>
  87.           <?php } ?>
  88.           <b><?php echo $option['name']; ?>:</b><br />
  89.           <?php foreach ($option['option_value'] as $option_value) { ?>
  90.           <input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
  91.           <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
  92.             <?php if ($option_value['price']) { ?>
  93.             (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
  94.             <?php } ?>
  95.           </label>
  96.  
  97.           <?php } ?>
  98.         </div>
  99.         <br />
  100.         <?php } ?>
  101.         <?php if ($option['type'] == 'checkbox') { ?>
  102.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  103.           <?php if ($option['required']) { ?>
  104.           <span class="required">*</span>
  105.           <?php } ?>
  106.           <b><?php echo $option['name']; ?>:</b><br />
  107.           <?php foreach ($option['option_value'] as $option_value) { ?>
  108.           <input type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
  109.           <label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"> <?php echo $option_value['name']; ?>
  110.             <?php if ($option_value['price']) { ?>
  111.             (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
  112.             <?php } ?>
  113.           </label>
  114.           <?php } ?>
  115.         </div>
  116.         <br />
  117.  
  118.         <?php } ?>
  119.         <?php if ($option['type'] == 'text') { ?>
  120.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  121.           <?php if ($option['required']) { ?>
  122.           <span class="required">*</span>
  123.           <?php } ?>
  124.           <b><?php echo $option['name']; ?>:</b><br />
  125.           <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />
  126.         </div>
  127.         <?php } ?>
  128.  
  129.         <?php if ($option['type'] == 'textarea') { ?>
  130.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  131.           <?php if ($option['required']) { ?>
  132.           <span class="required">*</span>
  133.           <?php } ?>
  134.           <b><?php echo $option['name']; ?>:</b><br />
  135.           <textarea name="option[<?php echo $option['product_option_id']; ?>]" cols="30" rows="5"><?php echo $option['option_value']; ?></textarea>
  136.         </div>
  137.  
  138.         <?php } ?>
  139.         <?php if ($option['type'] == 'file') { ?>
  140.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  141.           <?php if ($option['required']) { ?>
  142.           <span class="required">*</span>
  143.           <?php } ?>
  144.           <b><?php echo $option['name']; ?>:</b><br />
  145.           <input type="button" value="<?php echo $button_upload; ?>" id="button-option-<?php echo $option['product_option_id']; ?>" class="button">
  146.           <input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" />
  147.         </div>
  148.         <?php } ?>
  149.  
  150.         <?php if ($option['type'] == 'date') { ?>
  151.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  152.           <?php if ($option['required']) { ?>
  153.           <span class="required">*</span>
  154.           <?php } ?>
  155.           <b><?php echo $option['name']; ?>:</b><br />
  156.           <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="date" />
  157.         </div>
  158.         <?php } ?>
  159.  
  160.  <?php if ($option['type'] == 'image') { ?>
  161.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  162.           <?php if ($option['required']) { ?>
  163.           <span class="required">*</span>
  164.           <?php } ?>
  165.           <b><?php echo $option['name']; ?>:</b><br />
  166.             <table class="option-image">
  167.               <?php foreach ($option['option_value'] as $option_value) { ?>
  168.               <tr>
  169.                 <td style="width: 1px;"><input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" /></td>
  170.                 <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /></label></td>
  171.                 <td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
  172.                     <?php if ($option_value['price']) { ?>
  173.                     (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
  174.                     <?php } ?>
  175.                   </label></td>
  176.               </tr>
  177.               <?php } ?>
  178.             </table>
  179.         </div>
  180.         <br />
  181.         <?php } ?>
  182.  
  183.         <?php if ($option['type'] == 'datetime') { ?>
  184.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  185.           <?php if ($option['required']) { ?>
  186.           <span class="required">*</span>
  187.           <?php } ?>
  188.           <b><?php echo $option['name']; ?>:</b><br />
  189.           <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="datetime" />
  190.         </div>
  191.         <?php } ?>
  192.  
  193.         <?php if ($option['type'] == 'time') { ?>
  194.         <div id="option-<?php echo $option['product_option_id']; ?>" class="option">
  195.           <?php if ($option['required']) { ?>
  196.           <span class="required">*</span>
  197.           <?php } ?>
  198.           <b><?php echo $option['name']; ?>:</b><br />
  199.           <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="time" />
  200.         </div>
  201.  
  202.         <?php } ?>
  203.         <?php } ?>
  204.       </div><div class="clear"></div>
  205.       <?php } ?>
  206.      
  207. <div class="misc-links1">
  208. <a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a> &nbsp;&nbsp;&nbsp;&nbsp; <a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a>
  209. </div>
clone this paste RAW Paste Data