Last active
January 20, 2017 03:16
-
-
Save jyek/24771e433c793cb134a3154eb0afdbee to your computer and use it in GitHub Desktop.
Recommendation Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load humanize %} | |
<!doctype html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.5/jquery.bxslider.css" media="all"> | |
<style> | |
body { | |
font-family: Helvetica, Arial, sans-serif; | |
} | |
.widget-title { | |
text-align: center; | |
font-size: 24px; | |
font-weight: bold; | |
} | |
#bxslider { | |
visibility: hidden; | |
} | |
.bx-wrapper { | |
box-shadow: none; | |
} | |
.bx-viewport { | |
height: auto !important; | |
} | |
a { | |
color: black; | |
text-decoration: none; | |
font-size: 14px; | |
display: block; | |
margin: 5px; | |
} | |
a:hover { | |
color: black; | |
text-decoration: none; | |
} | |
img { | |
width: 100%; | |
} | |
.item-brand { | |
margin-top: 5px; | |
font-weight: bold; | |
font-size: 12px; | |
text-transform: uppercase; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
.item-title { | |
margin-top: 5px; | |
font-size: 13px; | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
height: 16px; | |
} | |
.item-price { | |
margin-top: 5px; | |
font-size: 12px; | |
} | |
.item-price-old { | |
text-decoration: line-through; | |
} | |
.item-price-special { | |
font-weight: bold; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="widget-title">Recommended For You</div> | |
<ul id="bxslider"> | |
<li> | |
<a href="{{PRO1_URL}}" title="{{PRO1_NAME}}"> | |
<img title="{{PRO1_NAME}}" src="{{PRO1_IMG}}" alt="{{PRO1_NAME}}" /> | |
<div class="item-brand">{{PRO1_BRAND}}</div> | |
<div class="item-title">{{PRO1_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO1_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO1_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO1_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO1_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO2_URL}}" title="{{PRO2_NAME}}"> | |
<img title="{{PRO2_NAME}}" src="{{PRO2_IMG}}" alt="{{PRO2_NAME}}" /> | |
<div class="item-brand">{{PRO2_BRAND}}</div> | |
<div class="item-title">{{PRO2_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO2_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO2_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO2_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO2_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO3_URL}}" title="{{PRO3_NAME}}"> | |
<img title="{{PRO3_NAME}}" src="{{PRO3_IMG}}" alt="{{PRO3_NAME}}" /> | |
<div class="item-brand">{{PRO3_BRAND}}</div> | |
<div class="item-title">{{PRO3_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO3_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO3_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO3_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO3_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO4_URL}}" title="{{PRO4_NAME}}"> | |
<img title="{{PRO4_NAME}}" src="{{PRO4_IMG}}" alt="{{PRO4_NAME}}" /> | |
<div class="item-brand">{{PRO4_BRAND}}</div> | |
<div class="item-title">{{PRO4_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO4_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO4_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO4_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO4_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO5_URL}}" title="{{PRO5_NAME}}"> | |
<img title="{{PRO5_NAME}}" src="{{PRO5_IMG}}" alt="{{PRO5_NAME}}" /> | |
<div class="item-brand">{{PRO5_BRAND}}</div> | |
<div class="item-title">{{PRO5_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO5_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO5_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO5_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO5_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO6_URL}}" title="{{PRO6_NAME}}"> | |
<img title="{{PRO6_NAME}}" src="{{PRO6_IMG}}" alt="{{PRO6_NAME}}" /> | |
<div class="item-brand">{{PRO6_BRAND}}</div> | |
<div class="item-title">{{PRO6_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO6_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO6_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO6_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO6_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO7_URL}}" title="{{PRO7_NAME}}"> | |
<img title="{{PRO7_NAME}}" src="{{PRO7_IMG}}" alt="{{PRO7_NAME}}" /> | |
<div class="item-brand">{{PRO7_BRAND}}</div> | |
<div class="item-title">{{PRO7_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO7_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO7_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO7_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO7_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO8_URL}}" title="{{PRO8_NAME}}"> | |
<img title="{{PRO8_NAME}}" src="{{PRO8_IMG}}" alt="{{PRO8_NAME}}" /> | |
<div class="item-brand">{{PRO8_BRAND}}</div> | |
<div class="item-title">{{PRO8_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO8_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO8_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO8_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO8_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO9_URL}}" title="{{PRO9_NAME}}"> | |
<img title="{{PRO9_NAME}}" src="{{PRO9_IMG}}" alt="{{PRO9_NAME}}" /> | |
<div class="item-brand">{{PRO9_BRAND}}</div> | |
<div class="item-title">{{PRO9_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO9_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO9_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO9_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO9_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO10_URL}}" title="{{PRO10_NAME}}"> | |
<img title="{{PRO10_NAME}}" src="{{PRO10_IMG}}" alt="{{PRO10_NAME}}" /> | |
<div class="item-brand">{{PRO10_BRAND}}</div> | |
<div class="item-title">{{PRO10_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO10_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO10_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO10_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO10_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO11_URL}}" title="{{PRO11_NAME}}"> | |
<img title="{{PRO11_NAME}}" src="{{PRO11_IMG}}" alt="{{PRO11_NAME}}" /> | |
<div class="item-brand">{{PRO11_BRAND}}</div> | |
<div class="item-title">{{PRO11_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO11_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO11_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO11_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO11_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO12_URL}}" title="{{PRO12_NAME}}"> | |
<img title="{{PRO12_NAME}}" src="{{PRO12_IMG}}" alt="{{PRO12_NAME}}" /> | |
<div class="item-brand">{{PRO12_BRAND}}</div> | |
<div class="item-title">{{PRO12_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO12_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO12_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO12_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO12_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO13_URL}}" title="{{PRO13_NAME}}"> | |
<img title="{{PRO13_NAME}}" src="{{PRO13_IMG}}" alt="{{PRO13_NAME}}" /> | |
<div class="item-brand">{{PRO13_BRAND}}</div> | |
<div class="item-title">{{PRO13_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO13_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO13_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO13_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO13_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO14_URL}}" title="{{PRO14_NAME}}"> | |
<img title="{{PRO14_NAME}}" src="{{PRO14_IMG}}" alt="{{PRO14_NAME}}" /> | |
<div class="item-brand">{{PRO14_BRAND}}</div> | |
<div class="item-title">{{PRO14_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO14_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO14_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO14_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO14_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO15_URL}}" title="{{PRO15_NAME}}"> | |
<img title="{{PRO15_NAME}}" src="{{PRO15_IMG}}" alt="{{PRO15_NAME}}" /> | |
<div class="item-brand">{{PRO15_BRAND}}</div> | |
<div class="item-title">{{PRO15_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO15_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO15_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO15_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO15_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
<li> | |
<a href="{{PRO16_URL}}" title="{{PRO16_NAME}}"> | |
<img title="{{PRO16_NAME}}" src="{{PRO16_IMG}}" alt="{{PRO16_NAME}}" /> | |
<div class="item-brand">{{PRO16_BRAND}}</div> | |
<div class="item-title">{{PRO16_NAME}}</div> | |
<span class="item-price-container"> | |
{% if PRO16_PRICE_D %} | |
<span class="item-price item-price-old">{{PRO16_PRICE|floatformat:2|intcomma}}</span><br> | |
<span class="item-price item-price-special">Now {{PRO16_PRICE_D|floatformat:2|intcomma}}</span> | |
{% else %} | |
<span class="item-price">{{ PRO16_PRICE|floatformat:2|intcomma}}</span> | |
{% endif %} | |
</span> | |
</a> | |
</li> | |
</ul> | |
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.5/jquery.bxslider.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('#bxslider').bxSlider({ | |
minSlides: 4, | |
maxSlides: 4, | |
moveSlides: 4, | |
slideWidth: 800, | |
auto: false, | |
pager: false, | |
preloadImages: 'visible', | |
}); | |
$('#bxslider').css('visibility', 'visible'); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment