Created
April 21, 2016 12:21
-
-
Save vgrish/3daa4229c11588a1901afb84d8d22fd5 to your computer and use it in GitHub Desktop.
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
<div class='tm-product'> | |
<h1>[[*pagetitle]]</h1> | |
<div id='msProduct' class='row' itemtype='http://schema.org/Product' itemscope> | |
<meta itemprop='name' content='[[*pagetitle]]'> | |
<meta itemprop='description' content='[[*description:default=`[[*pagetitle]]`]]'> | |
<div class='span5 col-md-5 col-sm-6'> | |
[[!msGallery@bsMsGallery]] | |
</div> | |
<div class='span7 col-md-7 col-sm-5' itemtype='http://schema.org/AggregateOffer' itemprop='offers' itemscope> | |
<meta itemprop='category' content='[[#[[*parent]].pagetitle]]'> | |
<meta itemprop='offerCount' content='1'> | |
<meta itemprop='price' content='[[+price:replace=` ==`]]'> | |
<meta itemprop='lowPrice' content='[[+price:replace=` ==`]]'> | |
<meta itemprop='priceCurrency' content='RUR'> | |
<form class='form-horizontal ms2_form' method='post'> | |
<input type='hidden' name='id' value='[[*id]]'/> | |
<div class='form-group'> | |
<label class='col-sm-3 control-label'>[[%ms2_product_article]]:</label> | |
<div class='col-sm-4'> | |
<label class='checkbox'> | |
[[+article]] | |
</label> | |
</div> | |
</div> | |
<div class='form-group'> | |
<label class='col-sm-3 control-label'>[[%ms2_product_price]]:</label> | |
<div class='col-sm-4'> | |
<label class='checkbox'> | |
[[!+price]] [[%ms2_frontend_currency]] | |
[[!+old_price:gt=`0`:then=`<span | |
class='old_price'>[[+old_price]] [[%ms2_frontend_currency]]</span>`:else=``]] | |
</label> | |
</div> | |
</div> | |
<div class='form-group form-inline'> | |
<label class='col-sm-3 control-label' for='product_price'>[[%ms2_cart_count]]:</label> | |
<div class='col-sm-4'> | |
<input type='number' name='count' id='product_price' class='input-sm form-control' value='1'/> | |
[[%ms2_frontend_count_unit]] | |
</div> | |
</div> | |
<div class='form-group'> | |
<label class='col-sm-3 control-label'>[[%ms2_product_weight]]:</label> | |
<div class='col-sm-4'> | |
<label class='checkbox'>[[+weight]] [[%ms2_frontend_weight_unit]]</label> | |
</div> | |
</div> | |
[[!msOptions?name=`color`]] | |
[[!msOptions?name=`size`]] | |
[[-!msOptions?name=`tags`&tplRow=``&tplOuter=``]] | |
<div class='form-group'> | |
<label class='col-sm-3 control-label'>[[%ms2_product_made_in]]:</label> | |
<div class='col-sm-4'> | |
<label class='checkbox'>[[+made_in]]</label> | |
</div> | |
</div> | |
<div class='form-group'> | |
<div class='col-sm-offset-1 col-sm-3'> | |
<button type='submit' class='btn btn-default btn-sm' name='ms2_action' value='cart/add'><i | |
class='glyphicon glyphicon-barcode'></i> [[%ms2_frontend_add_to_cart]] | |
</button> | |
</div> | |
</div> | |
</form> | |
</div> | |
</div> | |
<br> | |
<div class='tm-product-content'> | |
<ul class='nav nav-tabs'> | |
<li class='active'> | |
<a href='#product-description' data-toggle='tab' aria-expanded='true'>Описание | |
</a> | |
</li> | |
<li class=''> | |
<a href='#product-review' data-toggle='tab' aria-expanded='false'>Отзывы | |
</a> | |
</li> | |
<li class=''> | |
<a href='#product-buy' data-toggle='tab' aria-expanded='false'>Купить | |
</a> | |
</li> | |
</ul> | |
<div class='tab-content'> | |
<div class='tab-pane fade active in' id='product-description'> | |
<div class='tm-product-content-tab'> | |
[[$bs.product.tab.content]] | |
</div> | |
</div> | |
<div class='tab-pane fade' id='product-review'> | |
<div class='tm-product-content-tab'></div> | |
[[$bs.product.tab.review]] | |
</div> | |
<div class='tab-pane fade' id='product-buy'> | |
<div class='tm-product-content-tab'> | |
[[$bs.product.tab.buy]] | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment