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

cunt

By: a guest on Aug 8th, 2012  |  syntax: None  |  size: 3.75 KB  |  hits: 14  |  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 id="product">
  2.   <h2>{{ product.name }}{% if product.music_catalog_number %} <small>{{ product.music_catalog_number }}</small>{% endif %}</h2>
  3.   <div id="product-page-layout"><div id="product-images">
  4.   <ul id="images">
  5.     {% for image in product.images %}
  6.       <li>
  7.         <a href="{{ image.url }}" target="_blank">
  8.           {% if forloop.first %}
  9.             {{ product.images.first.v600_url | img_tag: 'thumbnail' }}
  10.           {% else %}
  11.             {{ image.v200_url  | img_tag: 'small-thumbnail' }}
  12.           {% endif %}
  13.         </a>
  14.       </li>
  15.     {% endfor %}
  16.   </ul>
  17.   </div>
  18.  
  19.   <div id="body">
  20.     {% if product.soundcloud_playlist_id %}
  21.       <div id="soundcloud">
  22.         <iframe width="100%" height="320" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F{{ product.soundcloud_playlist_id }}&show_artwork=false&show_play_count=false&color={{ config['soundcloud_player_color'] | replace:'#','' }}"></iframe>
  23.       </div>
  24.     {% endif %}
  25.  
  26.     <div id="description">
  27.       {{ product.description | simple_format }}
  28.     </div>
  29.  
  30.     <div id="variations">
  31.       {% if product.available? %}
  32.         <p>
  33.           <select id="cart_variation_id">
  34.             <option>Select...</option>
  35.             {% for variation in product.variations %}
  36.               {% if variation.available? %}
  37.                 <option value="{{ variation.id }}">{{ variation.name }} - {{ variation.price | money }}</option>
  38.               {% else %}
  39.                 <option disabled="disabled">{{ variation.name }} - {{ variation.price | money }} (Out of Stock)</option>
  40.               {% endif %}
  41.             {% endfor %}
  42.           </select>
  43.  
  44.           <button class="btn" onclick="javascript:Store.cart.add(document.getElementById('cart_variation_id').options[document.getElementById('cart_variation_id').selectedIndex].value);return false;">Add to Cart</button>
  45.         </p>
  46.       {% elsif product.announced? %}
  47.         <p>This item is coming soon.<p>
  48.       {% elsif product.unavailable? %}
  49.         <p>This item isn't currently available.<p>
  50.       {% elsif product.unlisted? %}
  51.         <p>This item isn't listed. That means it isn't visible to your customers.<p>
  52.       {% endif %}
  53.     </div>
  54.  
  55.     {% if product.music_pressing_information %}
  56.       <h3>Pressing Information</h3>
  57.       {{ product.music_pressing_information | simple_format }}
  58.     {% endif %}
  59.  
  60.     {% if product.music_track_listings %}
  61.       <h3>Tracks</h3>
  62.  
  63.       <ol>
  64.         {% for track in product.music_track_listings %}
  65.           <li>{{ track.id3_track_name }}</li>
  66.         {% endfor %}
  67.       </ol>
  68.     {% endif %}
  69.  
  70.     {% if config['display_tweet_button'] or config['display_like_button'] %}
  71.       <ul id="social">
  72.         {% if config['display_tweet_button'] %}
  73.           <li>
  74.             <a href="https://twitter.com/share" class="twitter-share-button" data-text="{{ product.name | escape }} at {{ store.name | escape }}" data-count="none">Tweet</a>
  75.             <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
  76.           </li>
  77.         {% endif %}
  78.         {% if config['display_like_button'] %}
  79.           <li>
  80.             <iframe src="//www.facebook.com/plugins/like.php?href={{ store.url }}{{ product.url }}&send=false&layout=button_count&width=52&show_faces=false&action=like&colorscheme=light&font&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:52px; height:35px;" allowTransparency="true"></iframe>
  81.           </li>
  82.         {% endif %}
  83.       </ul>
  84.     {% endif %}
  85.   </div>
  86. </div>