Skip to content

Commit

Permalink
Style updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jedateach committed Feb 25, 2015
1 parent 49636f1 commit 794e779
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 107 deletions.
4 changes: 2 additions & 2 deletions templates/Includes/ProductGroupItem.ss
@@ -1,4 +1,4 @@
<div class="productItem span2 thumbnail">
<div class="products_item thumbnail">
<% if Image %>
<a href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$Title) %>">
<img src="$Image.Thumbnail.URL" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
Expand All @@ -12,7 +12,7 @@
<h5 class="title"><a href="$Link" title="<% sprintf(_t("READMORE"),$Title) %>">$Title.LimitCharacters(45,..)</a></h5>
<div class="price"><% if Price %><strong class="price">$Price.Nice</strong> <span class="currency">$Currency</span><% end_if %></div>
<div class="actions">
<a class="btn btn-mini" href="$Link" title="<% sprintf(_t("VIEW","View &quot;%s&quot;"),$Title) %>">
<a class="btn btn-mini btn-default" href="$Link" title="<% sprintf(_t("VIEW","View &quot;%s&quot;"),$Title) %>">
<i class="icon-eye-open"></i>
<% _t("VIEW","View") %>
</a>
Expand Down
5 changes: 0 additions & 5 deletions templates/Includes/ProductMenu.ss
@@ -1,10 +1,5 @@
<div id="ProductNavigation" class="well" style="padding: 8px 0;">
<ul class="nav nav-list">
<li class="nav-header">
<% with Level(1) %>
$Title
<% end_with %>
</li>
<li>
<% with Level(1) %>
<a href="$Link">View All</a>
Expand Down
124 changes: 63 additions & 61 deletions templates/Layout/Product.ss
@@ -1,71 +1,73 @@
<% require themedCSS(product) %>
<div class="row">
<div id="Sidebar" class="span2">
<% with Parent %>
<% include ProductMenu %>
<% end_with %>
</div>
<div id="Product" class="typography span8">
<div class="row">
<div id="Breadcrumbs" class="span8">
$Breadcrumbs
</div>
<div class="container">
<% require themedCSS(product) %>
<div class="row">
<div id="Sidebar" class="col-sm-2">
<% with Parent %>
<% include ProductMenu %>
<% end_with %>
</div>
<div class="row">
<div class="productDetails span3">
<% if Image.ContentImage %>
<img class="productImage" src="$Image.ContentImage.URL" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
<% else %>
<img class="productImage" src="http://placehold.it/300x200" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
<% end_if %>
<div id="Product" class="typography col-sm-8">
<div class="row">
<div id="Breadcrumbs" class="col-sm-8">
$Breadcrumbs
</div>
</div>
<% if Content %>
<div class="typography span5">
<div class="page-header">
<h1 class="pageTitle">$Title</h1>
</div>
<% if InternalItemID %><p><% _t("CODE","Product Code") %>: {$InternalItemID}</p><% end_if %>
<% if Model %><p><% _t("MODEL","Model") %>: $Model.XML</p><% end_if %>
<% if Size %><p><% _t("SIZE","Size") %>: $Size.XML</p><% end_if %>
<% if Variations %>
$VariationForm
<div class="row">
<div class="productDetails col-sm-3">
<% if Image.ContentImage %>
<img class="productImage" src="$Image.ContentImage.URL" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
<% else %>
<% if Price %>
<% include PriceTag %>
<% end_if %>
<% if canPurchase %>
<% if IsInCart %>
<% loop Item %>
<div class="quantityBox">
<span><% _t("QUANTITYCART","Quantity in cart") %>:</span> $QuantityField
<div class="productActions">
<a class="btn" href="$removeallLink" title="<% sprintf(_t("REMOVE","Remove &quot;%s&quot; from your cart"),$Title) %>">
<i class="icon-trash"></i>
<% _t("REMOVELINK","Remove from cart") %>
</a>
<a class="btn btn-success" href="$checkoutLink" title="<% _t("GOTOCHECKOUT","Go to the checkout now") %>">
<i class="icon-shopping-cart icon-white"></i>
<% _t("GOTOCHECKOUTLINK","Go to the checkout") %>
</a>
<img class="productImage" src="http://placehold.it/300x200" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
<% end_if %>
</div>
<% if Content %>
<div class="typography col-sm-7 col-lg-5">
<div class="page-header">
<h1 class="pageTitle">$Title</h1>
</div>
<% if InternalItemID %><p><% _t("CODE","Product Code") %>: {$InternalItemID}</p><% end_if %>
<% if Model %><p><% _t("MODEL","Model") %>: $Model.XML</p><% end_if %>
<% if Size %><p><% _t("SIZE","Size") %>: $Size.XML</p><% end_if %>
<% if Variations %>
$VariationForm
<% else %>
<% if Price %>
<% include PriceTag %>
<% end_if %>
<% if canPurchase %>
<% if IsInCart %>
<% loop Item %>
<div class="quantityBox">
<span><% _t("QUANTITYCART","Quantity in cart") %>:</span> $QuantityField
<div class="productActions">
<a class="btn" href="$removeallLink" title="<% sprintf(_t("REMOVE","Remove &quot;%s&quot; from your cart"),$Title) %>">
<i class="icon-trash"></i>
<% _t("REMOVELINK","Remove from cart") %>
</a>
<a class="btn btn-success" href="$checkoutLink" title="<% _t("GOTOCHECKOUT","Go to the checkout now") %>">
<i class="icon-shopping-cart icon-white"></i>
<% _t("GOTOCHECKOUTLINK","Go to the checkout") %>
</a>
</div>
</div>
</div>
<% end_loop %>
<% else %>
<a href="$addLink" class="btn btn-success btn-large" title="<% sprintf(_t("ADD","Add &quot;%s&quot; to your cart"),$Title) %>">
<i class="icon-plus-sign icon-white"></i>
<% _t("ADDLINK","Add to Cart") %>
</a>
<% end_loop %>
<% else %>
<a href="$addLink" class="btn btn-success btn-large" title="<% sprintf(_t("ADD","Add &quot;%s&quot; to your cart"),$Title) %>">
<i class="icon-plus-sign icon-white"></i>
<% _t("ADDLINK","Add to Cart") %>
</a>
<% end_if %>
<% end_if %>
<% end_if %>
<% end_if %>
<div class="productContent">
$Content
<div class="productContent">
$Content
</div>
</div>
</div>
<% end_if %>
<% end_if %>
</div>
</div>
<div class="cart col-sm-2">
<% include SideCart %>
</div>
</div>
<div class="cart span2">
<% include SideCart %>
</div>
</div>
83 changes: 44 additions & 39 deletions templates/Layout/ProductCategory.ss
@@ -1,44 +1,49 @@
<% require themedCSS(productcategory) %>
<div class="page-header">
<h1 class="pageTitle">$Title</h1>
$Breadcrumbs
</div>
<div class="row">
<div id="Sidebar" class="span2">
<% include ProductMenu %>
<div class="container">
<% require themedCSS(productcategory) %>
<div class="page-header">
<h1 class="pageTitle">$Title</h1>
$Breadcrumbs
</div>
<div id="ProductGroup" class="typography span8">
$Content
<% if Products %>
<div id="Products" class="category">

<div class="filterbar row">
<div class="span12">
<% if SortLinks %>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Sort<span class="caret"></span></a>
<ul class="dropdown-menu">
<% loop SortLinks %>
<li><a href="$Link" class="sortlink $Current">$Name</a></li>
<% end_loop %>
</ul>
<div class="row">
<div id="Sidebar" class="col-sm-3 col-md-2 hidden-xs">
<% include ProductMenu %>
</div>
<div id="ProductGroup" class="typography col-sm-6 col-md-8">
$Content
<% if Products %>
<div id="Products" class="category">

<div class="filterbar row">
<div class="col-sm-12">
<% if SortLinks %>
<div class="btn-group">
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">Sort<span class="caret"></span></a>
<ul class="dropdown-menu">
<% loop SortLinks %>
<li><a href="$Link" class="sortlink $Current">$Name</a></li>
<% end_loop %>
</ul>
</div>
<% end_if %>
</div>
<% end_if %>
</div>
<div class="products">
<div class="row">
<% loop Products %>
<div class="col-xs-6 col-md-3 col-lg-3">
<% include ProductGroupItem %>
</div>
<% end_loop %>
</div>
</div>
<% with Products %>
<% include Pagination %>
<% end_with %>
</div>

<ul class="productList thumbnails">
<% loop Products %>
<% include ProductGroupItem %>
<% end_loop %>
</ul>
<% with Products %>
<% include Pagination %>
<% end_with %>
</div>
<% end_if %>
</div>
<div class="cart span2">
<% include SideCart %>
<% end_if %>
</div>
<div class="cart col-sm-3 col-md-2">
<% include SideCart %>
</div>
</div>
</div>
</div>

0 comments on commit 794e779

Please sign in to comment.