Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Mon, Feb 3, 4:57 AM

modern-store

Index: branches/1.0.x/products/details.tpl
===================================================================
--- branches/1.0.x/products/details.tpl (revision 14769)
+++ branches/1.0.x/products/details.tpl (revision 14770)
@@ -1,270 +1,236 @@
<!--##
<NAME>Products - Details Design</NAME>
<DESC>General design template for Product Details</DESC>
<SECTION>Pages||Products</SECTION>
##-->
<inp2:p_AddToRecent />
<inp2:m_DefineElement name="page_title"><inp2:p_Field name="Name" html_escape="1"/></inp2:m_DefineElement>
<inp2:m_DefineElement name="sidebar">
- <inp2:m_Include template="elements/side_boxes/related_products.elm" data_exists="1"/>
+ <inp2:m_Include template="elements/side_boxes/related_products.elm" data_exists="1"/>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="before_content">
<div class="block-fixed">
<div>
<a href="<inp2:p_AddToCartLink template='checkout/cart' product_template='__default__'/>" class="button-addtocart"><span><img src="<inp2:m_TemplatesBase/>img/bg-button-cart-add.png" width="24" height="24" alt="" /><i>Add to Cart</i></span></a>
</div>
</div>
</inp2:m_DefineElement>
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
-
- <div class="block no-border-bottom">
-
- <inp2:m_Include template="elements/navigation_bar.elm" navigation_buttons="1"/>
-
- <div class="goods border-radius product-detail">
- <inp2:m_if check="p_Field" name="IsNew">
- <div class="ribbon new"></div>
- <inp2:m_elseif check="p_Field" name="IsPop" />
- <div class="ribbon top"></div>
- <inp2:m_elseif check="p_Field" name="Featured" db="1" />
- <div class="ribbon sale"></div>
+ <inp2:rev_InitList main_list="1"/>
+
+ <div class="block no-border-bottom">
+ <inp2:m_Include template="elements/navigation_bar.elm" navigation_buttons="1"/>
+
+ <div class="goods border-radius product-detail">
+ <inp2:m_if check="p_Field" name="IsNew" db="db">
+ <div class="ribbon new"></div>
+ <inp2:m_elseif check="p_Field" name="IsPop" db="db"/>
+ <div class="ribbon top"></div>
+ <inp2:m_elseif check="p_Field" name="Featured" db="db"/>
+ <div class="ribbon sale"></div>
+ </inp2:m_if>
+
+ <h1><inp2:p_Field field="Name" html_escape="1"/></h1>
+ <div class="rating">
+ <inp2:p_VotesIndicator/>
+
+ <!--<inp2:m_if check="p_Field" name="CachedRating" equals_to="1|2|3|4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" />
</inp2:m_if>
-
- <h1><inp2:p_Field field="Name" html_escape="1"/></h1>
- <div class="rating">
- <img src="/i/star-small.jpg" width="18" height="18" alt="" />
- <img src="/i/star-small.jpg" width="18" height="18" alt="" />
- <img src="/i/star-small.jpg" width="18" height="18" alt="" />
- <img src="/i/star-small.jpg" width="18" height="18" alt="" />
- <img src="/i/star-small.jpg" width="18" height="18" alt="" />
- </div>
- <div class="h1-reviews">(<a href="#">12 reviews</a>)</div>
- <div class="clear"></div>
- <div class="product">
- <div class="info">
- <div class="img">
- <p class="signsmall">Roll over images for multiple views:</p>
- <ul id="pikame" >
- <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
- <li><img src="<inp2:m_TemplatesBase />img/samples/good1.jpg" width="256" height="258" alt="" /></li>
- <li><img src="<inp2:m_TemplatesBase />img/samples/good2.jpg" width="256" height="258" alt="" /></li>
- <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
- <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
- <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
- </ul>
- <div class="viewlarger">
- <a href="" onclick="TINY.box.show({image:'<inp2:m_TemplatesBase />img/samples/good-details-big.jpg',animate:true}); return false;">View Larger</a>
- </div>
- <p class="showmore"><a href="#">Show More Images...</a></p>
- </div>
- <div class="doplinks">
- <a href="#" class="link-print">Print this Page</a><br />
- <a href="#" class="link-compare">Compare to other Products</a><br />
- <a href="#" class="link-wishlist">Add to Wishlist</a><br />
- </div>
- </div>
- <div class="description">
- <div class="options-har">
- <div class="sel-options">
- <label><strong>Select Size:</strong>
- <select name="select" class="field-alt">
- <option value="" selected="selected">22"</option>
- <option value="">23"</option>
- </select>
- </label>
- </div>
- <div class="sel-options">
- <label><strong>Select Color:</strong>
- <select name="select" class="field-alt">
- <option value="" selected="selected">Gray Metallic</option>
- <option value="">White Metallic</option>
- <option value="">Black Metallic</option>
- </select>
- </label>
- </div>
- <div class="clear"></div>
- </div>
+ <inp2:m_if check="p_Field" name="CachedRating" equals_to="2|3|4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" />
+ </inp2:m_if>
- <div class="price-block">
- <p><s class="under"><inp2:p_Field name="MSRP" currency="selected"/>$2,549.<span>95</span></s></p>
- <p class="redprice"><em class="price"><inp2:p_Field name="Price" currency="selected"/>$2,549.<span>95</span></em></p>
- </div>
- <div class="order-block">
- <p class="qty form"><strong>Qty.</strong>&nbsp;&nbsp;<input type="text" name="qty" value="1" class="field" /></p>
- <p class="but"><a href="<inp2:p_AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span><i>Add to Cart</i></span></a></p>
- <p class="avail">Availability: <em>In Stock</em></p>
+ <inp2:m_if check="p_Field" name="CachedRating" equals_to="3|4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="p_Field" name="CachedRating" equals_to="4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="p_Field" name="CachedRating" equals_to="5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" />
+ </inp2:m_if>-->
+ </div>
+ <div class="h1-reviews">(<a href="#reviews"><inp2:rev_TotalRecords/> reviews</a>)</div>
+ <div class="clear"></div>
+
+ <div class="product">
+ <div class="info">
+ <div class="img">
+ <p class="signsmall">Roll over images for multiple views:</p>
+ <ul id="pikame" >
+ <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
+ <li><img src="<inp2:m_TemplatesBase />img/samples/good1.jpg" width="256" height="258" alt="" /></li>
+ <li><img src="<inp2:m_TemplatesBase />img/samples/good2.jpg" width="256" height="258" alt="" /></li>
+ <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
+ <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
+ <li><img src="<inp2:m_TemplatesBase />img/samples/good-details.jpg" width="256" height="258" alt="" /></li>
+ </ul>
+ <div class="viewlarger">
+ <a href="" onclick="TINY.box.show({image:'<inp2:m_TemplatesBase />img/samples/good-details-big.jpg',animate:true}); return false;">View Larger</a>
+ </div>
+ <p class="showmore"><a href="#">Show More Images...</a></p>
+ </div>
+ <div class="doplinks">
+ <a href="#" class="link-print">Print this Page</a><br />
+ <a href="#" class="link-compare">Compare to other Products</a><br />
+ <a href="#" class="link-wishlist">Add to Wishlist</a><br />
+ </div>
+ </div>
+ <div class="description">
+ <div class="options-har">
+ <div class="sel-options">
+ <label><strong>Select Size:</strong>
+ <select name="select" class="field-alt">
+ <option value="" selected="selected">22"</option>
+ <option value="">23"</option>
+ </select>
+ </label>
+ </div>
+ <div class="sel-options">
+ <label><strong>Select Color:</strong>
+ <select name="select" class="field-alt">
+ <option value="" selected="selected">Gray Metallic</option>
+ <option value="">White Metallic</option>
+ <option value="">Black Metallic</option>
+ </select>
+ </label>
</div>
<div class="clear"></div>
+ </div>
- <dl class="har">
- <dt>Model:</dt>
- <dd>XT2324</dd>
- <dt>Manufacturer:</dt>
- <dd>Apple</dd>
- </dl>
- <dl class="har">
- <dt>SKU:</dt>
- <dd>23423424</dd>
- <dt>Size:</dt>
- <dd>22''</dd>
- </dl>
- <div class="clear"></div>
+ <div class="price-block">
+ <p><s class="under"><inp2:p_Field name="MSRP" currency="selected" decimal_tag="span"/></s></p>
+ <p class="redprice"><em class="price"><inp2:p_Field name="Price" currency="selected" decimal_tag="span"/></em></p>
+ </div>
+ <div class="order-block">
+ <p class="qty form"><strong>Qty.</strong>&nbsp;&nbsp;<input type="text" name="qty" value="1" class="field" /></p>
+ <p class="but"><a href="<inp2:p_AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span><i>Add to Cart</i></span></a></p>
+ <p class="avail">Availability: <em>In Stock</em></p>
+ </div>
+ <div class="clear"></div>
- <div class="text">
-
- </div>
- <div id="tabs">
- <ul>
+ <dl class="har">
+ <dt>Model:</dt>
+ <dd>XT2324</dd>
+ <dt>Manufacturer:</dt>
+ <dd><inp2:p_Field name="ManufacturerId"/></dd>
+ </dl>
+ <dl class="har">
+ <dt>SKU:</dt>
+ <dd><inp2:p_Field name="SKU"/></dd>
+ <dt>Size:</dt>
+ <dd>22''</dd>
+ </dl>
+ <div class="clear"></div>
+
+ <div class="text">
+
+ </div>
+ <div id="tabs">
+ <ul>
+ <inp2:m_if check="p_Field" name="cust_Features">
<li><a href="#tabs-1">Features</a></li>
+ </inp2:m_if>
+
+ <inp2:m_if check="p_Field" name="Description">
<li><a href="#tabs-2">Details</a></li>
- <li><a href="#tabs-3">Specifications</a></li>
- </ul>
+ </inp2:m_if>
+
+ <li><a href="#tabs-3">Specifications</a></li>
+ </ul>
+
+ <inp2:m_if check="p_Field" name="cust_Features">
<div id="tabs-1">
- <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
- <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
- <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin. Sed ut dolor nec orci tincidunt interdum. Phasellus ipsum. Nunc tristique tempus lectus.</p>
+ <inp2:p_Field name="cust_Features"/>
</div>
+ </inp2:m_if>
+
+ <inp2:m_if check="p_Field" name="Description">
<div id="tabs-2">
- <p>Morbi tincidunt, dui sit amet facilisis feugiat, odio metus gravida ante, ut pharetra massa metus id nunc. Duis scelerisque molestie turpis. Sed fringilla, massa eget luctus malesuada, metus eros molestie lectus, ut tempus eros massa ut dolor. Aenean aliquet fringilla sem. Suspendisse sed ligula in ligula suscipit aliquam. Praesent in eros vestibulum mi adipiscing adipiscing. Morbi facilisis. Curabitur ornare consequat nunc. Aenean vel metus. Ut posuere viverra nulla. Aliquam erat volutpat. Pellentesque convallis. Maecenas feugiat, tellus pellentesque pretium posuere, felis lorem euismod felis, eu ornare leo nisi vel felis. Mauris consectetur tortor et purus.</p>
- </div>
- <div id="tabs-3">
- <p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
- <p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
+ <inp2:p_Field name="Description"/>
</div>
+ </inp2:m_if>
+
+ <div id="tabs-3">
+ <p>Mauris eleifend est et turpis. Duis id erat. Suspendisse potenti. Aliquam vulputate, pede vel vehicula accumsan, mi neque rutrum erat, eu congue orci lorem eget lorem. Vestibulum non ante. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Fusce sodales. Quisque eu urna vel enim commodo pellentesque. Praesent eu risus hendrerit ligula tempus pretium. Curabitur lorem enim, pretium nec, feugiat nec, luctus a, lacus.</p>
+ <p>Duis cursus. Maecenas ligula eros, blandit nec, pharetra at, semper at, magna. Nullam ac lacus. Nulla facilisi. Praesent viverra justo vitae neque. Praesent blandit adipiscing velit. Suspendisse potenti. Donec mattis, pede vel pharetra blandit, magna ligula faucibus eros, id euismod lacus dolor eget odio. Nam scelerisque. Donec non libero sed nulla mattis commodo. Ut sagittis. Donec nisi lectus, feugiat porttitor, tempor ac, tempor vitae, pede. Aenean vehicula velit eu tellus interdum rutrum. Maecenas commodo. Pellentesque nec elit. Fusce in lacus. Vivamus a libero vitae lectus hendrerit hendrerit.</p>
</div>
</div>
- <div class="clear"></div>
</div>
+ <div class="clear"></div>
+ </div>
- <div class="reviews">
- <div class="top-review">
- <div class="info-review">
- <p class="title">Reviews for Apple iMac Desktop Customizeable (10):</p>
- <p class="but-review"><a href="" onclick="TINY.box.show({iframe:'addreview-success.html',width:600,height:340}); return false;" class="addreview">Add a Review</a></p>
- <div class="sortby">
- Sort by:
- <select>
- <option value="" selected="selected">Price</option>
- <option value="">Rating</option>
- <option value="">Populate</option>
- </select>
- </div>
- </div>
- <div class="overall-review">
- <p>Overall Rating:</p>
- <div class="overall-detail">
- <i>83%</i> <span><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /></span><br />
- <i>10%</i> <span><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /></span><br />
- <i>5%</i> <span><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /></span><br />
- <i>2%</i> <span><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /></span><br />
- <i>1%</i> <span><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /></span>
- </div>
- </div>
- <div class="clear"></div>
- </div>
- <div class="row-review">
- <p class="user">Justin Scott</p>
- <div class="text-review">
- Mauris in erat nec nulla iaculis rutrum in non est. Sed quis lorem purus. Duis sed nisi nulla, non sollicitudin leo. Curabitur aliquam quam eu augue ullamcorper facilisis. Aenean id ultrices magna. Curabitur varius luctus dolor, in consequat quam bibendum ac. Nullam lacus sem, auctor et vestibulum a, lobortis at magna. Curabitur eget lacus condimentum libero vestibulum rutrum.
- </div>
- <div class="optional-review">
- <p>Was this review helpful to you?&nbsp;&nbsp;<a href="#" class="yes">Yes</a>&nbsp;&nbsp;<a href="#" class="no">No</a>&nbsp;&nbsp;<em>(3)</em></p>
- <p><a href="#">Is this Review Inappropriate?</a></p>
- <p class="rat">
- Rating: <img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" />
- </p>
- <p class="date"><strong>April 12, 2011</strong></p>
- </div>
- </div>
- <div class="row-review">
- <p class="user">Justin Scott</p>
- <div class="text-review">
- Mauris in erat nec nulla iaculis rutrum in non est. Sed quis lorem purus. Duis sed nisi nulla, non sollicitudin leo. Curabitur aliquam quam eu augue ullamcorper facilisis. Aenean id ultrices magna. Curabitur varius luctus dolor, in consequat quam bibendum ac. Nullam lacus sem, auctor et vestibulum a, lobortis at magna. Curabitur eget lacus condimentum libero vestibulum rutrum.
- </div>
- <div class="optional-review">
- <p>Was this review helpful to you?&nbsp;&nbsp;<a href="#" class="yes">Yes</a>&nbsp;&nbsp;<a href="#" class="no">No</a>&nbsp;&nbsp;<em>(3)</em></p>
- <p><a href="#">Is this Review Inappropriate?</a></p>
- <p class="rat">
- Rating: <img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" />
- </p>
- <p class="date"><strong>April 12, 2011</strong></p>
- </div>
- </div>
- <div class="row-review">
- <p class="user">Justin Scott</p>
- <div class="text-review">
- Mauris in erat nec nulla iaculis rutrum in non est. Sed quis lorem purus. Duis sed nisi nulla, non sollicitudin leo. Curabitur aliquam quam eu augue ullamcorper facilisis. Aenean id ultrices magna. Curabitur varius luctus dolor, in consequat quam bibendum ac. Nullam lacus sem, auctor et vestibulum a, lobortis at magna. Curabitur eget lacus condimentum libero vestibulum rutrum.
- </div>
- <div class="optional-review">
- <p>Was this review helpful to you?&nbsp;&nbsp;<a href="#" class="yes">Yes</a>&nbsp;&nbsp;<a href="#" class="no">No</a>&nbsp;&nbsp;<em>(3)</em></p>
- <p><a href="#">Is this Review Inappropriate?</a></p>
- <p class="rat">
- Rating: <img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" />
- </p>
- <p class="date"><strong>April 12, 2011</strong></p>
- </div>
- </div>
- <div class="row-review">
- <p class="user">Justin Scott</p>
- <div class="text-review">
- Mauris in erat nec nulla iaculis rutrum in non est. Sed quis lorem purus. Duis sed nisi nulla, non sollicitudin leo. Curabitur aliquam quam eu augue ullamcorper facilisis. Aenean id ultrices magna. Curabitur varius luctus dolor, in consequat quam bibendum ac. Nullam lacus sem, auctor et vestibulum a, lobortis at magna. Curabitur eget lacus condimentum libero vestibulum rutrum.
- </div>
- <div class="optional-review">
- <p>Was this review helpful to you?&nbsp;&nbsp;<a href="#" class="yes">Yes</a>&nbsp;&nbsp;<a href="#" class="no">No</a>&nbsp;&nbsp;<em>(3)</em></p>
- <p><a href="#">Is this Review Inappropriate?</a></p>
- <p class="rat">
- Rating: <img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" /><img src="/i/star-smallest.jpg" width="13" height="13" alt="" />
- </p>
- <p class="date"><strong>April 12, 2011</strong></p>
+ <div class="reviews">
+ <a name="reviews"></a>
+ <div class="top-review">
+ <div class="info-review">
+ <p class="title">Reviews for <inp2:p_Field name="Name"/> (<inp2:rev_TotalRecords/>):</p>
+
+ <!--<p class="but-review"><a href="" onclick="TINY.box.show({iframe:'addreview-success.html',width:600,height:340}); return false;" class="addreview">Add a Review</a></p>-->
+ <p class="but-review"><a href="<inp2:p_ProductLink template='products/add_review' width='600' height='340'/>" class="thickbox addreview">Add a Review</a></p>
+
+ <div class="sortby">
+ Sort by:
+ <select>
+ <option value="" selected="selected">Price</option>
+ <option value="">Rating</option>
+ <option value="">Populate</option>
+ </select>
+ </div>
+ </div>
+ <div class="overall-review">
+ <p>Overall Rating:</p>
+ <div class="overall-detail">
+ <inp2:rev_PrintRatingPercents render_as="rating_percent_element" show_none="0"/>
</div>
</div>
+ <div class="clear"></div>
</div>
- <div class="clear"></div>
- <div class="pagination">
- <span class="prev">&nbsp;</span>
- <a href="#" class="active">1</a>
- <a href="#">2</a>
- <a href="#">3</a>
- <a href="#" class="next">&nbsp;</a>
- </div>
- <div class="clear"></div>
+ <inp2:rev_PrintList render_as="review_element"/>
</div>
+ <div class="clear"></div>
+
+ <inp2:m_Include template="elements/pagination.elm" prefix="rev"/>
</div>
-
+ </div>
+
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<inp2:m_DefineElement name="add_to_head">
<script src="<inp2:m_TemplatesBase />inc/js/jquery.gzoom.js"></script>
- <script src="<inp2:m_TemplatesBase />inc/js/jquery.pikachoose.full.js"></script>
+ <script src="<inp2:m_TemplatesBase />inc/js/jquery.pikachoose.full.js"></script>
<script type= "text/javascript">
/*<![CDATA[*/
$(function() {
$("#tabs").tabs();
$("#pikame").PikaChoose({autoPlay:false, showCaption:false});
});
window.onload= function () {
$("#zoom").gzoom({
sW: 258,
sH: 258,
lW: 1400,
lH: 1050,
lighbox : false
});
};
/*]]>*/
</script>
-
+
</inp2:m_DefineElement>
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="designs/default_design.des" pass_params="1" right_column="sidebar" before_content="before_content"/>
<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Index: branches/1.0.x/products/add_review.tpl
===================================================================
--- branches/1.0.x/products/add_review.tpl (nonexistent)
+++ branches/1.0.x/products/add_review.tpl (revision 14770)
@@ -0,0 +1,64 @@
+<script type="text/javascript">
+ FormManager.resetFields('rev');
+</script>
+
+<inp2:rev_PresetFormFields/>
+
+<inp2:m_Include template="elements/forms.elm" strip_nl="2"/>
+
+<div class="review">
+ <div class="profile-title">
+ <h1>Add a Review</h1>
+ <div class="clear"></div>
+ </div>
+
+ <!--<inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="FirstName"/>
+ <inp2:m_RenderElement name="inp_edit_box" prefix="u.register" field="LastName"/>-->
+
+ <form method="post" action="<inp2:m_FormAction/>" id="add_review_form" class="form profile-form left">
+ <p><label for="name">Your Name</label><input type="text" id="name" name="name" value="Anonymous" class="field" /></p>
+
+ <!--<p><label>Rating</label><span><img src="i/star-small.jpg" width="18" height="18" alt="" /><img src="i/star-small.jpg" width="18" height="18" alt="" /><img src="i/star-small.jpg" width="18" height="18" alt="" /><img src="i/star-small.jpg" width="18" height="18" alt="" /><img src="i/star-small.jpg" width="18" height="18" alt="" /></span></p>
+ <p><label for="review">Your Review</label><textarea id="review" rows="10" cols="100" class="field"></textarea></p>-->
+
+ <inp2:m_RenderElement name="inp_edit_rating" prefix="rev" field="Rating"/>
+ <inp2:m_RenderElement name="inp_edit_textarea" prefix="rev" field="ReviewText" title="lu_fld_YourReview" rows="10" cols="100" style="height: 70px;"/>
+
+ <inp2:m_RenderElement design="inp_edit_buttons">
+ <input type="submit" value="Submit" id="submit" class="green-button" disabled/>
+ <em class="optinfo">(maximum of 1,000 words)</em>
+ </inp2:m_RenderElement>
+ </form>
+</div>
+
+<script type="text/javascript">
+ $(document).ready(
+ function () {
+ FormManager.registerForm(
+ {
+ prefix: 'rev',
+ url: '<inp2:p_ProductLink template="#TEMPLATE#" js_escape="1" __NO_REWRITE__="1" no_amp="1"/>',
+ save_event: 'OnCreate',
+ id: '<inp2:rev_Field name="ReviewId"/>',
+ form_id: 'add_review_form'
+ }
+ );
+
+ $('#add_review_form').submit(
+ function ($e) {
+ FormManager.submitForm('rev');
+
+ return false;
+ }
+ );
+
+ /*$('input[type=reset]', '#add_review_form').click(
+ function ($e) {
+ FormManager.closeForm('rev');
+
+ return false;
+ }
+ );*/
+ }
+ );
+</script>
Property changes on: branches/1.0.x/products/add_review.tpl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.0.x/inc/profile.css
===================================================================
--- branches/1.0.x/inc/profile.css (revision 14769)
+++ branches/1.0.x/inc/profile.css (revision 14770)
@@ -1,118 +1,133 @@
@charset "UTF-8";
/* Profile Blocks
*******************************************************************************/
.profile {
background-color: #fff;
border: 1px solid #d0d0d0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
padding: 20px 30px;
width: auto;
}
.profile.registerpage {
border: none;
padding: 0 30px;
width: 680px;
-webkit-border-radius: 0;
-moz-border-radius: 0;
border-radius: 0;
}
.profile-title {
border-bottom: 1px solid #d0d0d0;
margin-bottom: 15px;
padding-bottom: 15px;
}
-.profile h1 {
+.profile, .review h1 {
color: #525252;
float: left;
font: 1.538em Verdana,Arial,Tahoma,Sans-Serif;
}
.profile p.req {
color: #3e85d2;
float: right;
font-size: 1em;
font-weight: bold;
padding-top: 10px;
}
.profile .halfcol {
float: left;
padding: 0 15px 0 0;
width: 315px;
}
.profile .halfcol-last {
padding: 0;
position: relative;
}
.profile-form label {
display: block;
font-weight: bold;
padding-bottom: 3px;
}
+
+.profile-form.left label {
+ display: inline;
+ padding-bottom: 0px;
+
+ float: left;
+ padding-top: 3px;
+ width: 90px;
+}
+
.field-content label {
display: inline;
font-weight: normal;
padding: 0;
}
+
.red {
color: #cd0000;
font-weight: normal;
padding: 0 0 0 5px;
}
.profile-form p {
clear: both !important;
float: left;
padding: 5px 0;
}
.profile-form .field { width: 270px; }
.profile-form .alt2 .field { width: 150px; }
.field.statusSuccess {
background: url(@templates_base@/img/bg-field-success.jpg) repeat-x 0 0;
border: 1px solid #80d04d;
}
.field.statusError, .error .field {
background: url(@templates_base@/img/bg-field-error.jpg) repeat-x 0 0;
border: 1px solid #d80000 !important;
}
+.review .profile-form .field { float: left; width: 380px; }
+.review .profile-form p.buttons { padding: 0 0 0 90px; width: 380px; }
+.review .profile-form p.buttons em { float: right; text-align: right; width: 170px; }
+
.terms {
text-align: center;
width: 100%;
}
.password-block {
display: none;
float: left;
padding: 5px 0;
position: relative;
width: 100%;
}
.registerpage .password-block { display: block; }
.password-block p {
clear: none !important;
padding: 0 15px 0 0;
}
.password-block p.pasfield2 { padding: 0; }
.password-block .field { width: 121px; }
#change-password { color: #267bd1; }
.colorbar {
display: inline-block;
height: 8px;
width: 29px;
}
.password-strength { display: none; font-weight: bold; }
.password-strength .meterDefault { color: #aaa; }
.password-strength .meterFail { color: #daa; }
.password-strength .meterWarn { color: #fd6; }
.password-strength .meterGood { color: #ada; }
.password-strength .meterExcel { color: #66c133; }
.password-strength .colorbar.meterDefault { background-color: #ddd; }
.password-strength .colorbar.meterFail { background-color: #fdd; }
.password-strength .colorbar.meterWarn { background-color: #feb; }
.password-strength .colorbar.meterGood { background-color: #dfd; }
.password-strength .colorbar.meterExcel { background-color: #66c133; }
Index: branches/1.0.x/inc/styles.css
===================================================================
--- branches/1.0.x/inc/styles.css (revision 14769)
+++ branches/1.0.x/inc/styles.css (revision 14770)
@@ -1,1097 +1,1180 @@
@charset "UTF-8";
/* Basic Blocks
*******************************************************************************/
html {
min-width: 1000px;
}
body {
background: #fff url(@templates_base@/img/bg-header.jpg) repeat-y 0 0;
color: #3c3c3c;
font: 0.813em/1.231em Arial,Verdana,Tahoma,Sans-Serif;
}
img { border: 0; }
table { border-collapse: collapse; border-spacing: 0; }
td { padding: 0; vertical-align: top; }
a, a:hover, a:focus { color: #333; outline: none; text-decoration: underline; }
a:hover, a:focus { text-decoration: none; }
.clear { clear: both !important; }
.fix { border: 1px solid #f00; }
/* Header
*******************************************************************************/
#header {
margin: 0 auto;
width: 960px;
}
#header .logo {
float: left;
padding: 18px 0;
}
#header .infoblock {
float: right;
position: relative;
width: 550px;
}
#header .infoblock .welcome {
color: #343338;
float: right;
padding: 9px 0;
position: relative;
}
#header .infoblock .welcome div { float: left; }
#header .infoblock .welcome .txt { padding: 0 0 0 20px; }
#header .infoblock .welcome .logged { padding-top: 5px; }
#header .infoblock .welcome .txt a { font-weight: bold; }
#header .infoblock .welcome .lang .with-icon {
background: url(@templates_base@/img/lang/eng.gif) no-repeat 10px 7px;
padding: 5px 10px 10px 35px;
}
#header .infoblock .welcome .lang .without-icon {
padding: 5px 10px 10px 10px;
}
#header .infoblock .welcome .txt,
#header .infoblock .welcome .lang,
#header .infoblock .welcome .currency,
-#header .infoblock .welcome .profile {
+#header .infoblock .welcome .profile-menu {
position: relative;
}
-#header .infoblock .welcome .profile { margin-left: 10px; margin-right: 10px; }
+#header .infoblock .welcome .profile-menu { margin-left: 10px; margin-right: 10px; }
#header .infoblock .welcome .txt .login,
#header .infoblock .welcome .currency .cur,
-#header .infoblock .welcome .profile .link {
+#header .infoblock .welcome .profile-menu .link {
padding: 5px 10px 10px;
}
#header .infoblock .welcome .currency { margin-left: 5px; }
#header .infoblock .welcome .currency .cur.plashka-sel { margin-left: -1px; }
a#lang,
a#currency,
a#profile {
background: url(@templates_base@/img/icon-select.gif) no-repeat 100% 6px;
display: block;
padding: 0 12px 0 0;
text-decoration: none;
}
#header .infoblock .cart {
background: url(@templates_base@/img/bg-cart.jpg) no-repeat 100% 0;
float: right;
font-size: 1.154em;
font-weight: bold;
padding: 15px 0;
}
#header .infoblock .cart span,
#header .infoblock .cart a { float: left; }
#header .infoblock .cart a {
background: url(@templates_base@/img/icon-checkout.gif) no-repeat 100% 12px;
color: #75b833;
line-height: 33px;
padding: 0 12px 0 0;
text-decoration: none;
}
#header .infoblock .cart i {
font-size: 0.733em;
}
#header .infoblock .cart .items {
background: url(@templates_base@/img/icon-cart.png) no-repeat 0 0;
line-height: 33px;
padding: 0 0 0 50px;
}
#header .infoblock .cart .delim {
color: #b5b5b5;
font-weight: normal;
line-height: 33px;
padding: 0 15px;
}
#header .infoblock .cart .phone {
color: #535353;
font: bold 1.385em Tahoma,Arial,Verdana,Sans-Serif;
line-height: 33px;
padding-right: 50px;
}
#header .infoblock .welcome .lang #lang-sel a {
text-decoration: underline;
}
#header .infoblock .welcome .lang #lang-sel .eng {
background: url(@templates_base@/img/lang/eng.gif) no-repeat 0 0;
padding: 0 0 0 25px;
}
#header .infoblock .welcome .lang #lang-sel .deutch {
background: url(@templates_base@/img/lang/deutch.gif) no-repeat 0 0;
padding: 0 0 0 25px;
}
#header .infoblock .welcome .lang #lang-sel .rus {
background: url(@templates_base@/img/lang/rus.gif) no-repeat 0 0;
padding: 0 0 0 25px;
}
.plashka {
background-color: #fff;
border: 1px solid #d0d0d0;
display: none;
padding: 10px 20px 5px;
position: absolute;
top: 31px;
right: -1px;
- z-index: 100;
+ z-index: 95;
-webkit-border-radius: 5px;
-webkit-border-top-right-radius: 0;
-moz-border-radius: 5px;
-moz-border-radius-topright: 0;
border-radius: 5px;
border-top-right-radius: 0;
-moz-box-shadow: 0 0 8px #ccc;
-webkit-box-shadow: 0 0 8px #ccc;
box-shadow: 0 0 8px #ccc;
}
.plashka-sel {
background-color: #fff !important;
border: 1px solid #d0d0d0;
border-bottom: 1px solid #fff;
margin: -1px -1px 0 0;
position: relative;
- z-index: 150;
+ z-index: 96;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
-moz-box-shadow: #ccc 0 -3px 8px -1px;
-webkit-box-shadow: #ccc 0 -3px 8px -1px;
box-shadow: #ccc 0 -3px 8px -1px;
}
#header .infoblock .welcome .plashka li {
padding: 0 0 5px;
white-space: nowrap;
}
#header .infoblock .welcome .plashka .active { color: #2d85d6; }
#header .infoblock .welcome .txt .plashka,
-#header .infoblock .welcome .profile .plashka { right: 0; }
+#header .infoblock .welcome .profile-menu .plashka { right: 0; }
.plashka-sel a#lang,
.plashka-sel a#currency,
.plashka-sel a#profile {
background: url(@templates_base@/img/icon-close.gif) no-repeat 100% 6px;
}
#header .infoblock .welcome .login,
.login-alt .login {
display: inline-block;
float: none;
}
.login-alt .login { font-size: 0.867em; padding-left: 5px; }
#header .infoblock .welcome .login a,
.login-alt .login a {
background: url(@templates_base@/img/bg-button-login.jpg) no-repeat 0 0;
display: block;
height: 18px;
text-align: center;
text-decoration: none;
width: 61px;
}
#header .infoblock .welcome .txt .login.plashka-sel,
.login-alt .login.plashka-sel {
margin-left: 4px;
margin-bottom: 1px;
padding: 5px 18px 10px;
}
.login-alt .login.plashka-sel { padding: 5px 10px 10px; }
#header .infoblock .welcome .login.plashka-sel a,
.login-alt .login.plashka-sel a {
background: none;
height: auto;
width: auto;
}
.icon-close { right: 10px; position: absolute; }
/*** Menu ***/
.menu {
background: #3e3e3e url(@templates_base@/img/bg-menu.jpg) repeat-x 0 0;
height: 46px;
position: relative;
width: 100%;
}
.menu .padding {
margin: 0 auto;
width: 960px;
}
.menu ul {
float: left;
width: 740px;
}
.menu ul li {
color: #fff;
float: left;
font-size: 1.154em;
font-weight: bold;
}
.menu ul li a {
color: #fff;
display: block;
line-height: 46px;
padding: 0 18px;
text-decoration: none;
}
.menu ul li a:hover,
.menu ul li a:focus {
background: #4b4b4b url(@templates_base@/img/bg-menu.jpg) repeat-x 0 -46px;
}
.menu ul li a.active {
background: #2d85d6 url(@templates_base@/img/bg-menu.jpg) repeat-x 0 -92px;
}
.menu .searchbox {
background: url(@templates_base@/img/bg-searchbox-l.jpg) no-repeat 0 0;
float: right;
margin-top: 10px;
text-align: right;
width: 210px;
}
.menu .searchbox input[type="text"] {
border: none;
background: #fff url(@templates_base@/img/bg-searchbox-r.jpg) no-repeat 100% 0;
height: 23px;
line-height: 23px;
padding-top: 2px;
width: 180px;
}
.level2 {
background-color: #fff;
left: 273px;
position: absolute;
z-index: 4000;
}
.level2-bg {
border: 1px solid #3e3e3e;
float: left;
width: auto;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
box-shadow: 0 0 3px #444;
-moz-box-shadow: 0 0 3px #444;
-webkit-box-shadow: 0 0 3px #444;
}
#level2-menu {
background-color: #3e3e3e;
float: left;
padding: 8px 0;
width: 200px;
}
#level2-menu h3 {
background-color: #3e3e3e;
padding: 7px 12px;
white-space: nowrap;
}
#level2-menu h3 a {
color: #fff;
font-weight: bold;
text-decoration: none;
}
#level2-menu h3 a:hover {
text-decoration: underline;
}
#level2-menu ul {
width: 100%;
}
#level2-menu ul li {
background-color: #eaeaea;
font-size: 0.923em;
font-weight: normal;
width: 100%;
}
#level2-menu ul li a {
color: #3e3e3e;
line-height: 20px;
padding: 3px 13px 5px;
text-decoration: none;
}
#level2-menu ul li a:hover,
#level2-menu ul li a:focus {
background: none;
text-decoration: underline;
}
#level2-menu ul li a.active {
background: none;
}
#level2-menu ul li i {
background: url(@templates_base@/img/bullet-l3menu.png) no-repeat 22px 9px;
display: block;
padding: 0 0 0 20px;
white-space: nowrap;
}
#level2-menu ul li.level3-menu h4 {
padding-left: 20px;
white-space: nowrap;
}
#level2-menu ul li.level3-menu ul {
background-color: #fff;
}
#level2-menu ul li.level3-menu ul li {
background-color: #fff;
font-size: 0.917em;
}
#level2-menu ul li.level3-menu ul li a {
background: url(@templates_base@/img/bullet-l3menu.png) no-repeat 35px 4px;
line-height: 18px;
padding: 0 0 0 45px;
}
#level2-menu ul li.level3-menu ul li a.active { color: #2f7916; }
#level2-menu.ui-accordion .ui-accordion-content { overflow: hidden; }
#level2-menu.ui-accordion .ui-accordion-content-active { background-color: #eaeaea; }
#level2-menu .ui-icon-circle-arrow-l2e {
background: url(@templates_base@/img/bullet-l2menu.png) no-repeat 0 0;
height: 7px;
width: 4px;
}
#level2-menu .ui-icon-circle-arrow-l2s {
background: url(@templates_base@/img/bullet-l2menu.png) no-repeat 0 -7px;
height: 4px;
width: 7px;
}
#level2-menu .ui-icon-circle-arrow-l3e {
background: url(@templates_base@/img/bullet-l2menu.png) no-repeat 0 -11px;
height: 7px;
width: 4px;
}
#level2-menu .ui-icon-circle-arrow-l3s {
background: url(@templates_base@/img/bullet-l2menu.png) no-repeat 0 -18px;
height: 4px;
width: 7px;
}
#level-content {
background-color: #fff;
float: left;
padding: 15px;
width: 400px;
}
#level-content ul {
width: auto;
}
#level-content ul li {
background: url(@templates_base@/img/bullet-level5.png) no-repeat 0 7px;
float: left;
font-size: 1em;
font-weight: normal;
padding: 0 10px 7px 10px;
width: 180px;
}
#level-content ul li a {
color: #3c3c3c;
line-height: 20px;
padding: 0;
text-decoration: underline;
}
#level-content ul li a:hover,
#level-content ul li a:focus {
background: none;
color: #2a80d3;
}
#level-good {
background-color: #fff;
float: left;
padding: 15px;
text-align: center;
width: 120px;
}
#level-good .price { padding: 10px 0; }
/* Content
*******************************************************************************/
#content {
background-color: #f7f7f7;
padding: 32px 0;
width: 100%;
}
#content .padding {
margin: 0 auto;
position: relative;
width: 960px;
}
#content .block-fixed {
background-color: #fff;
border: 1px solid #d0d0d0;
padding: 13px 11px 0 11px;
position: absolute;
margin: 40px 0 0 -100px;
}
#content .block-fixed div { padding-bottom: 13px; }
.button-addtocart {
background: url(@templates_base@/img/button-addtocart-left.jpg) no-repeat 0 0;
color: #faffed;
display: inline-block;
font-size: 0.846em;
text-shadow: #000 0px 1px 1px;
text-decoration: none;
}
.button-addtocart span {
background: url(@templates_base@/img/button-addtocart-right.jpg) no-repeat 100% 0;
display: inline-block;
height: 40px;
padding: 5px 6px 0;
text-align: center;
}
.button-addtocart span i { display: block; margin-top: -4px; }
.button-addtocart:hover { color: #faffed; text-shadow: #000 0px 1px 1px; }
#content .leftcol {
float: left;
padding: 0 20px 0 0;
width: 230px;
}
#content .rightcol {
float: left;
padding: 0 0 0 20px;
width: 230px;
}
#content .contentcol {
float: left;
width: 710px;
}
.subscribe-block {
background: url(@templates_base@/img/subs.png) no-repeat 0 100%;
padding: 0 16px 11px 0;
width: 214px;
}
.subscribe-block h4 {
background: url(@templates_base@/img/subs-top.png) no-repeat 0 0;
font-size: 1.077em;
font-weight: bold;
padding: 14px 0 0 16px;
width: 214px;
}
.subscribe-block fieldset {
padding: 10px 0 0 16px;
text-align: left;
width: 214px;
}
input.field,
textarea.field,
select.field,
select.field-alt {
background: url(@templates_base@/img/bg-field.jpg) repeat-x 0 0;
border: 1px solid #828282;
height: 24px;
line-height: 24px;
margin-bottom: 5px;
padding: 0 5px;
}
select.field { padding: 0 0 0 5px; }
select.field-alt { margin: 0; padding: 0 0 0 5px; }
input.field:focus,
textarea.field:focus,
select.field-alt:focus,
select.field:focus { border: 1px solid #000; }
.form select.field { width: 360px; }
.form input.subsfield { width: 190px; }
/*** Block ***/
.block {
background: url(@templates_base@/img/bg-block-bottom.jpg) no-repeat 0 100%;
margin: 0 0 10px;
padding: 0 0 8px;
}
.block .block-top {
background: url(@templates_base@/img/bg-block-top.jpg) no-repeat 0 100%;
height: 8px;
width: 100%;
}
.block.no-border-bottom {
background: none;
padding: 0;
}
.block.block-margin { margin: 0 0 20px; }
.block h2 {
background: url(@templates_base@/img/h1-left.png) no-repeat 0 0;
height: 36px;
line-height: 36px;
padding-left: 14px;
position: relative;
z-index: 10;
}
.block h2 em,
.block h2 a {
color: #fefefe;
font-size: 1.154em;
font-weight: bold;
font-style: normal;
position: relative;
z-index: 150;
}
.block h2 a { text-decoration: underline; }
.block h2 i {
background: url(@templates_base@/img/bc-step.png) no-repeat 50% 50%;
padding: 0 15px;
}
.block h2 span {
background: url(@templates_base@/img/h1-right.png) no-repeat 100% 0;
height: 53px;
position: absolute;
top: -3px; right: -6px;
width: 136px;
z-index: 50;
}
.block h2 span.new { background: url(@templates_base@/img/h1-right-new.png) no-repeat 100% 0; }
.block h2 span.pick { background: url(@templates_base@/img/h1-right-pick.png) no-repeat 100% 0; }
.block h2 span.sale { background: url(@templates_base@/img/h1-right-sale.png) no-repeat 100% 0; }
.block h2 span.bullet { background: url(@templates_base@/img/h1-right-bullet.png) no-repeat 100% 0; }
.block.alt-block {
background: none;
}
.block.alt-block h2 {
background: url(@templates_base@/img/bg-block.png) no-repeat 0 0;
padding-left: 0;
}
.block.alt-block h2.active {
background-position: 0 100%;
}
.block.alt-block h2 a {
display: block;
height: 36px;
line-height: 36px;
padding-left: 14px;
text-decoration: none;
}
.block .block-content {
background-color: #fff;
border: 1px solid #d0d0d0;
border-top: none;
padding: 15px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
.block .block-content.noactive { display: none; }
.manufacturer dt {
float: left;
width: 155px;
}
.manufacturer dd {
float: left;
text-align: right;
width: 40px;
}
.manufacturer .active {
color: #0171e4;
}
.manufacturer label { text-decoration: underline; }
#slider-vertical {
background: url(@templates_base@/img/bg-vertslider-full.png) no-repeat 0 0;
float: left;
padding: 5px 0 0;
}
#slider-vertical .ui-slider-range {
background: url(@templates_base@/img/bg-vertslider-a.png) repeat-y 0 0;
margin: 0 0 0 7px;
}
#slider-vertical .ui-slider-handle {
background: url(@templates_base@/img/point-vertslider.png) no-repeat 0 0;
height: 9px;
margin: 0;
width: 16px;
}
.range-block {
margin: 0 auto;
padding: 10px 0 0;
width: 120px;
}
.range-block ul.range {
color: #333;
float: left;
margin-right: 10px;
position: relative;
top: -7px;
width: 50px;
}
.range-block ul.range li {
padding: 0 0 10px;
text-align: right;
}
.range-block ul.range li:last-child { padding: 0; }
.range-block ul.range2 {
color: #a0a0a0;
float: left;
margin-left: 10px;
position: relative;
top: 4px;
width: 20px;
}
.range-block ul.range2 li {
font-size: 0.846em;
padding: 0 0 10px;
text-align: left;
}
.range-block ul.range2 li:last-child { padding: 0; }
/*** Accordion menu ***/
#accordion-menu {
border-left: 1px solid #d0d0d0;
border-right: 1px solid #d0d0d0;
}
#accordion-menu h3 {
background: #fff url(@templates_base@/img/bg-point-menu.jpg) repeat-x 0 100%;
border-bottom: 1px solid #d0d0d0;
color: #666;
cursor: pointer;
font-size: 1.077em;
font-weight: bold;
padding: 10px 14px;
position: relative;
}
#accordion-menu h3.active {
background: #1b6bc7 url(@templates_base@/img/bg-point-menu-active.jpg) repeat-x 0 0;
color: #fff;
}
#accordion-menu a { padding-left: 20px; text-decoration: none; }
#accordion-menu a:hover, #accordion-menu a:focus { text-decoration: underline; }
#accordion-menu h3.active a { color: #fff; }
#accordion-menu .ui-icon-circle-arrow-e {
background: url(@templates_base@/img/bullet-menu.png) no-repeat 0 0;
height: 6px;
width: 10px;
}
#accordion-menu.alt-menu .ui-icon-circle-arrow-e {
margin-top: -4px;
position: absolute;
top: 50%;
}
#accordion-menu .ui-icon-circle-arrow-s {
background: url(@templates_base@/img/bullet-menu.png) no-repeat 0 -6px;
height: 6px;
width: 10px;
}
#accordion-menu .ui-icon-circle-arrow-a {
background: url(@templates_base@/img/bullet-menu.png) no-repeat 0 -12px;
height: 10px;
margin-top: -5px;
position: absolute;
top: 50%;
width: 8px;
}
#accordion-menu div {
background-color: #fff;
border-bottom: 1px solid #d0d0d0;
}
#accordion-menu div ul { padding: 10px 0 10px 7px; }
#accordion-menu div ul li { padding: 3px 0 5px 7px; }
#accordion-menu div ul li.active {
background: url(@templates_base@/img/bg-subcategory.png) repeat-x 0 0;
}
#accordion-menu div ul a { color: #333; padding-left: 0; }
#accordion-menu div ul li.active a { color: #fff; }
#accordion-menu div ul li ul { padding: 10px 0 0 25px; }
#accordion-menu div ul li ul li {
background: url(@templates_base@/img/point-subcategory.png) no-repeat 0 7px;
font-size: 0.923em;
padding: 2px 0 2px 10px;
}
#accordion-menu div ul li.active ul a { color: #333; }
/*** Good item ***/
.good-item {
background-color: #fff;
width: auto;
}
.good-item.good-item-narrow {
margin: 5px 5px 0 0;
width: 171px;
}
.good-item.good-item-narrow-last {
margin-right: 0;
}
.good-item.good-item-float {
float: left;
height: 290px;
}
.good-item.border-radius-bottom {
border: 1px solid #d0d0d0;
border-top: none;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
-moz-border-radius-bottomright: 5px;
-moz-border-radius-bottomleft: 5px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 5px;
}
.good-item.border-radius {
border: 1px solid #d0d0d0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.good-item dl {
padding: 14px 16px;
text-align: center;
}
.good-item.comparing-items dl {
border-bottom: 1px dotted #b5b5b5;
padding: 14px 0;
margin: 0 16px;
}
.good-item.comparing-items dl.last {
border-bottom: none;
}
.good-item.comparing-items .buttons {
padding: 15px 0;
text-align: center;
width: 210px;
}
.good-item dl dt { padding-bottom: 15px; }
.good-item dl dt a {
font-size: 1.077em;
font-weight: bold;
}
.good-item .img { height: 140px; }
.good-item .price {
font-size: 1.846em;
font-weight: bold;
font-style: normal;
padding: 10px 0;
}
.good-item .price span {
font-size: 0.708em;
}
.good-item .addtocart {
background: url(@templates_base@/img/addtocart-left.jpg) no-repeat 0 0;
color: #faffed;
display: inline-block;
font-size: 1.077em;
font-weight: bold;
text-shadow: #000 0px 1px 1px;
text-decoration: none;
}
.good-item .addtocart span {
background: url(@templates_base@/img/addtocart-right.jpg) no-repeat 100% 0;
display: inline-block;
height: 33px;
line-height: 33px;
padding: 0 20px;
}
.good-item .addedtocart {
color: #3d901f;
font-size: 1.154em;
}
/*** Scrollable ***/
#scrollable {
position:relative;
overflow: hidden;
width: 710px;
height: 309px;
background-color: #fff;
margin: 5px 0
}
#scrollable .items {
border-top: 1px solid #d0d0d0;
border-bottom: 1px solid #d0d0d0;
height: 307px;
margin: 0 30px;
position: relative;
width: 650px;
}
#scrollable .good-item {
background: url(@templates_base@/img/delimiter-special.gif) repeat-y 100% 0;
position:relative;
width:222px;
height: 280px;
margin: 16px 0;
}
#scrollable .good-item dl { padding: 0 16px; }
#scrollable .good-item dl dt { height: 35px; }
#scrollable .good-item dl dd .price { color: #c2120a; }
#scrollable .good-item dl dd .price-deal {
padding: 10px 0;
}
#scrollable .good-item dl dd .price-deal s.under {
font-size: 1.308em;
font-weight: bold;
padding-right: 10px;
}
#scrollable .good-item dl dd .price-deal s.under span {
font-size: 0.706em;
}
#scrollable .ca-nav span {
width:30px;
height:309px;
background:transparent url(@templates_base@/img/special-navi.png) no-repeat 0 0;
position:absolute;
top:0;
left:0;
text-indent:-9000px;
cursor:pointer;
z-index:8;
}
#scrollable .ca-nav span.ca-nav-prev:hover {
background-position:-30px 0;
}
#scrollable .ca-nav span.ca-nav-next {
background-position:-60px 0;
left:auto;
right:0;
}
#scrollable .ca-nav span.ca-nav-next:hover {
background-position:-90px 0;
}
#content .content,
#content .compare {
margin: 5px 0 0;
padding: 20px 30px;
}
#content .content.border-radius,
#content .goods.border-radius,
#content .items.border-radius,
#content .compare.border-radius {
background-color: #fff;
border: 1px solid #d0d0d0;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
width: auto;
}
#content .content p {
font-size: 1.077em;
line-height: 1.5em;
}
#feedback {
background: url(@templates_base@/img/con-contact.jpg) no-repeat 100% 0;
font-size: 0.929em;
padding: 20px 330px 0 0;
}
#feedback p.req {
border-bottom: 1px solid #d0d0d0;
color: #3e85d2;
font-size: 1em;
font-weight: bold;
margin-bottom: 15px;
padding: 0 0 5px;
}
span.star {
color: #3e85d2;
font-weight: bold;
}
#feedback p {
clear: both !important;
padding: 5px 0;
}
#feedback label {
float: left;
font-weight: bold;
padding: 5px 0;
white-space: nowrap;
width: 110px;
}
.form .field {
border: 1px solid #b4b4b4;
width: 350px;
}
#feedback input.field,
#feedback span.radios,
#feedback textarea {
float: left;
}
#feedback textarea {
background: url(@templates_base@/img/bg-textarera.jpg) repeat-x 0 0;
border: 1px solid #b4b4b4;
height: 120px;
width: 450px;
}
#feedback .radio label { width: 240px; }
#feedback span.radios { padding: 5px 0; }
#feedback .buttons {
padding: 10px 0 0 110px;
}
.form .green-button {
background: url(@templates_base@/img/bg-buttons.jpg) no-repeat 0 0;
border: none;
color: #fff;
font-weight: bold;
height: 26px;
padding-bottom: 1px;
width: 90px;
}
.form .grey-button, .form .green-button[disabled] {
background: url(@templates_base@/img/bg-buttons.jpg) no-repeat 0 100%;
border: none;
color: #000;
font-weight: bold;
height: 26px;
padding-bottom: 1px;
width: 90px;
}
.green-but {
background: url(@templates_base@/img/bg-button-left.png) no-repeat 0 0;
color: #fff;
display: inline-block;
font-weight: bold;
height: 26px;
line-height: 26px;
margin: 0 20px 0 0;
padding: 0 0 0 20px;
text-decoration: none;
}
.green-but:hover { color: #fff; text-decoration: none; }
.green-but span {
background: url(@templates_base@/img/bg-button-right.png) no-repeat 100% 0;
display: inline-block;
height: 26px;
margin: 0 -19px 0 0;
padding: 0 20px 0 0;
}
.grey-but {
background: url(@templates_base@/img/bg-button-left.png) no-repeat 0 100%;
color: #3c3c3c;
display: inline-block;
font-weight: bold;
height: 26px;
line-height: 26px;
padding: 0 0 0 20px;
text-decoration: none;
}
.grey-but:hover { color: #3c3c3c; text-decoration: none; }
.grey-but span {
background: url(@templates_base@/img/bg-button-right.png) no-repeat 100% 100%;
display: inline-block;
height: 26px;
margin: 0 -19px 0 0;
padding: 0 20px 0 0;
}
/*** Login form ***/
.login-form {
padding: 0;
}
.login-form p {
padding: 5px 0;
}
.login-form label {
display: block;
font-weight: bold;
padding-bottom: 5px;
}
.login-form .field {
width: 230px;
}
/* Footer
*******************************************************************************/
#footer {
margin: 0 auto;
width: 960px;
}
#footer .copy {
float: left;
font-family: Tahoma,Arial,Verdana,Sans-Serif;
padding-top: 18px;
width: 580px;
}
#footer .copy .doplinks {
color: #a8a8a8;
padding-top: 15px;
}
#footer .copy .doplinks a { padding: 0 15px; }
#footer .copy .doplinks a:first-child { padding-left: 0; }
#footer .links {
background: url(@templates_base@/img/bg-blinks.jpg) no-repeat 0 0;
float: left;
padding: 18px 0 36px 16px;
width: 124px;
}
#footer .links ul li {
background: url(@templates_base@/img/li-blinks.gif) no-repeat 0 6px;
padding: 0 0 0 11px;
}
#footer .payment {
float: left;
font-weight: bold;
padding: 18px 0 36px;
text-align: right;
width: 230px;
}
#footer .payment .logos {
padding: 0 0 20px;
}
#footer .payment a {
padding: 0 3px;
}
.basketStatus {
position: absolute;
top: 153px;
left: 247px;
display: block;
z-index: 5000;
}
.basketStatus .basketContent {
background-color: #fff;
width: 230px;
font-weight: bold;
position:relative;
z-index:5001;
color: #333;
padding: 12px 25px;
box-shadow: 0 0 3px #444;
-moz-box-shadow: 0 0 3px #444;
-webkit-box-shadow: 0 0 3px #444;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
}
.basketStatus .basketArrow {
background: url(@templates_base@/img/con-basket-arrow.png) no-repeat 0 0;
height: 15px;
margin: -55px 0 0 22px;
position: relative;
width: 26px;
z-index: 5006;
}
.basketStatus .basketContent .subtitle { color: #62aa2c; padding-bottom: 15px; }
.basketStatus .basketContent .img {
float: left;
padding-right: 15px;
}
.basketStatus .basketContent .info { color: #333; }
+
+
+/* --- Item Rating Styles --- */
+.ratingblock, .ratingblock div {
+ display: -moz-inline-block;
+}
+
+.voted {
+ color: #999;
+}
+
+.thanks {
+ color: #36AA3D;
+}
+
+.static {
+ color: #5D3126;
+}
+
+.inline-rating {
+ display:-moz-inline-block;
+ display:-moz-inline-box;
+ display:inline-block;
+ vertical-align: middle;
+}
+
+.star-rating,
+.star-rating a:hover,
+.star-rating a:active,
+.star-rating a:focus,
+.star-rating .current-rating{
+ background: url('@templates_base@/img/star_sprite.gif') left -1000px repeat-x;
+}
+.star-rating {
+ position:relative;
+ width:125px;
+ height:25px;
+ overflow:hidden;
+ list-style:none;
+ margin:0;
+ padding:0;
+ background-position: left top;
+}
+
+.star-rating li {
+ display: inline;
+}
+
+.star-rating a,
+.star-rating .current-rating {
+ position:absolute;
+ top:0;
+ left:0;
+ text-indent:-1000em;
+ height:25px;
+ line-height:25px;
+ outline:none;
+ overflow:hidden;
+ border: none;
+}
+
+.star-rating a:hover,
+.star-rating a:active,
+.star-rating a:focus {
+ background-position: left bottom;
+}
+.star-rating a.r1-unit { width:20%;z-index:6; }
+.star-rating a.r2-unit { width:40%;z-index:5; }
+.star-rating a.r3-unit { width:60%;z-index:4; }
+.star-rating a.r4-unit { width:80%; z-index:3; }
+.star-rating a.r5-unit { width:100%; z-index:2; }
+.star-rating .current-rating { z-index:1; background-position: left center; }
+
+.small-star {
+ width:50px;
+ height:10px;
+}
+.small-star, .small-star a:hover, .small-star a:active,
+.small-star a:focus, .small-star .current-rating {
+ background-image: url('@templates_base@/img/star_sprite_small.gif');
+ line-height: 10px;
+ height: 10px;
+}
\ No newline at end of file
Index: branches/1.0.x/inc/js/jquery.scripts.js
===================================================================
--- branches/1.0.x/inc/js/jquery.scripts.js (revision 14769)
+++ branches/1.0.x/inc/js/jquery.scripts.js (revision 14770)
@@ -1,80 +1,100 @@
function jq($selector) {
return $selector.replace(/(\[|\]|\.)/g, '\\$1');
}
function DBlocks() {
var $me = this;
this.selectors = ['#lang', '#currency', '#login', '#login-alt', '#profile'];
$(document).ready(
function () {
$me.init();
}
);
}
DBlocks.prototype.init = function () {
var $manager = this;
$( this.selectors.join(', ') ).click(
function($e, $now) {
var $me = $(this),
$parent = $me.parent();
if ( $parent.is('.plashka-sel') ) {
$parent.removeClass('plashka-sel');
if ( $now === undefined || $now === false ) {
$('#' + $me.attr('id') + '-sel').fadeOut();
}
else {
$('#' + $me.attr('id') + '-sel').hide();
}
}
else {
$manager.hideOthers($me);
$parent.addClass('plashka-sel');
$('#' + $me.attr('id') + '-sel').fadeIn();
}
return false;
}
);
$('.icon-close').click(
function() {
$('#login,#login-alt').parent().removeClass('plashka-sel');
$('#login-sel, #login-alt-sel').fadeOut();
return false;
}
);
}
DBlocks.prototype.hideOthers = function ($current) {
$( this.selectors.join(', ') ).not($current).each(
function () {
var $me = $(this),
$parent = $me.parent();
if ( $parent.is('.plashka-sel') ) {
$me.trigger('click', [true]);
}
}
);
}
+function RatingManager ($url) {
+ this.Url = $url;
+}
+
+RatingManager.prototype.makeVote = function ($vote, $prefix, $id, $size) {
+ var $url = this.Url.replace('#PREFIX#', $prefix).replace('#VOTE#', $vote).replace('#ID#', $id).replace('#SIZE#', $size);
+
+ $.get(
+ $url,
+ function ($response) {
+ if ($response.substring(0, 5) == '@err:') {
+ alert( $response.substring(5) );
+ return ;
+ }
+
+ document.getElementById('page_rating_' + $id).innerHTML = $response;
+ }
+ )
+}
+
$(document).ready(function()
{
$('#change-password').click(
function($e) {
$('#password-show').hide();
$('#password-block').fadeIn();
return false;
}
);
});
new DBlocks();
\ No newline at end of file
Index: branches/1.0.x/elements/login.elm.tpl
===================================================================
--- branches/1.0.x/elements/login.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/login.elm.tpl (revision 14770)
@@ -1,85 +1,85 @@
<inp2:m_if check="m_LoggedIn">
<div class="txt logged">Welcome back, <strong><inp2:u_Field name="FirstName"/></strong>!</div>
- <div class="profile">
+ <div class="profile-menu">
<div class="link">
<a href="" id="profile">My Account</a>
</div>
<div id="profile-sel" class="plashka">
<ul>
<li><a href="#" class="active">My Profile</a></li>
<li><a href="#" class="">Track Orders</a></li>
<li><a href="#" class="">Order History</a></li>
<li><a href="#" class="">Return Policy</a></li>
<li><a href="#" class="">Affiliates</a></li>
<li><a href="#" class="">Contact Us</a></li>
</ul>
</div>
</div>
<div class="logout logged">
<a href="<inp2:u_LogoutLink/>">Log Out</a>
</div>
<inp2:m_else/>
<div class="txt">
Welcome! Please <a href="<inp2:m_Link template='login/register' width='850' height='630'/>" class="thickbox">Register</a> for an account or
<div class="login">
<a href="" id="login">Log In</a>
</div>
<div id="login-sel" class="plashka">
<a href="" class="icon-close"><img src="<inp2:m_TemplatesBase />img/icon-close.gif" width="6" height="6" alt="Close" /></a>
<script type="text/javascript">
FormManager.resetFields('u.login-sidebox');
</script>
<inp2:u.login-sidebox_FormName name="login"/>
<form method="post" action="#" id="login-form" class="form login-form">
<fieldset>
<inp2:m_RenderElement name="error_msg_container" prefix="u.login-sidebox" field="UserLogin" style="padding: 0px; display: block;"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="u.login-sidebox" field="UserLogin" title="lu_fld_EmailOrUsername" error_position="none"/>
<inp2:m_RenderElement name="inp_edit_password_single" prefix="u.login-sidebox" field="UserPassword" title="lu_fld_Password" error_position="none"/>
<p>
<label>
<input type="checkbox" name="<inp2:u.login-sidebox_InputName name='UserRememberLogin'/>" id="<inp2:u.login-sidebox_InputName name='UserRememberLogin'/>" value="1" /> <u>Remember me on this computer</u>
</label>
</p>
<p class="buttons">
<input type="submit" value="Sign in" class="green-button"/>&nbsp;&nbsp;&nbsp;
<a href="#" style="font-weight: normal;">Forgot password?</a>
</p>
</fieldset>
<input type="hidden" name="forms[u.login-sidebox]" value="<inp2:u.login-sidebox_FormName/>"/>
</form>
<script type="text/javascript">
$(document).ready(
function () {
FormManager.registerForm(
{
prefix: 'u.login-sidebox',
save_event: 'OnLoginAjax',
id: '<inp2:u.login-sidebox_Field name="PortalUserId"/>',
form_id: 'login-form',
immediate_validation: false
}
);
$('#login-form').submit(
function ($e) {
FormManager.submitForm('u.login-sidebox');
return false;
}
);
}
);
</script>
</div>
</div>
</inp2:m_if>
\ No newline at end of file
Index: branches/1.0.x/elements/side_boxes/compare.elm.tpl
===================================================================
--- branches/1.0.x/elements/side_boxes/compare.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/side_boxes/compare.elm.tpl (revision 14770)
@@ -1,32 +1,32 @@
<inp2:p_InitList list_name="compare_products" types="compare" parent_cat_id="0" recursive="1" max="4"/>
<div class="block no-border-bottom">
<h2><em>Comparing Products (3)</em><span class="bullet"></span></h2>
<div class="good-item border-radius-bottom comparing-items">
<dl>
<dt><a href="#">Nikon D5000 Digital Camera</a></dt>
<dd>
- <p class="img"><a href="#"><img src="/i/samples/good1.jpg" width="136" height="136" alt="" /></a></p>
- <p class="button-delete"><a href="#"><img src="/i/icon-delete.png" width="13" height="13" alt="" /></a></p>
+ <p class="img"><a href="#"><img src="<inp2:m_TemplatesBase/>img/samples/good1.jpg" width="136" height="136" alt="" /></a></p>
+ <p class="button-delete"><a href="#"><img src="<inp2:m_TemplatesBase/>img/icon-delete.png" width="13" height="13" alt="" /></a></p>
</dd>
</dl>
<dl>
<dt><a href="#">Nikon D5000 Digital Camera</a></dt>
<dd>
- <p class="img"><a href="#"><img src="/i/samples/good1.jpg" width="136" height="136" alt="" /></a></p>
- <p class="button-delete"><a href="#"><img src="/i/icon-delete.png" width="13" height="13" alt="" /></a></p>
+ <p class="img"><a href="#"><img src="<inp2:m_TemplatesBase/>img/samples/good1.jpg" width="136" height="136" alt="" /></a></p>
+ <p class="button-delete"><a href="#"><img src="<inp2:m_TemplatesBase/>img/icon-delete.png" width="13" height="13" alt="" /></a></p>
</dd>
</dl>
<dl>
<dt><a href="#">Nikon D5000 Digital Camera</a></dt>
<dd>
- <p class="img"><a href="#"><img src="/i/samples/good1.jpg" width="136" height="136" alt="" /></a></p>
- <p class="button-delete"><a href="#"><img src="/i/icon-delete.png" width="13" height="13" alt="" /></a></p>
+ <p class="img"><a href="#"><img src="<inp2:m_TemplatesBase/>img/samples/good1.jpg" width="136" height="136" alt="" /></a></p>
+ <p class="button-delete"><a href="#"><img src="<inp2:m_TemplatesBase/>img/icon-delete.png" width="13" height="13" alt="" /></a></p>
</dd>
</dl>
<p class="form buttons">
<input type="submit" value="Compare" id="submit" class="green-button" />&nbsp;&nbsp;&nbsp;
<input type="reset" value="Clear" id="cancel" class="grey-button" />
</p>
</div>
</div>
\ No newline at end of file
Index: branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl
===================================================================
--- branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/side_boxes/recently_viewed.elm.tpl (revision 14770)
@@ -1,23 +1,23 @@
<inp2:m_Cache key="prefix:p;currency;guest_only">
<inp2:p_InitList list_name="pick_products" types="pick" parent_cat_id="0" recursive="1" per_page="short_list"/>
-
+
<div class="block no-border-bottom">
<h2><em>Our Favorites</em><span class="pick"></span></h2>
<inp2:m_DefineElement name="pick_product_element">
<dt><a href="<inp2:ProductLink template='__default__'/>"><inp2:Field field="Name" html_escape="1"/></a></dt>
<dd>
<p class="img"><a href="<inp2:ProductLink template='__default__'/>"><inp2:Image render_as="image_element" Primary="1" Thumbnail="1" DefaultImage="img/no_picture.gif" MaxWidth="136" MaxHeight="136"/></a></p>
- <p class="price"><inp2:Field name="Price" currency="selected"/>$759.<span>95</span></p>
+ <p class="price"><inp2:Field name="Price" currency="selected" decimal_tag="span"/></p>
<p><a href="<inp2:AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span>Add to Cart</span></a></p>
</dd>
</inp2:m_DefineElement>
-
+
<div class="good-item border-radius-bottom">
<dl>
<inp2:p_ListProducts list_name="pick_products" render_as="pick_product_element" no_table="1"/>
</dl>
</div>
</div>
-
+
</inp2:m_Cache>
\ No newline at end of file
Index: branches/1.0.x/elements/content_boxes.elm.tpl
===================================================================
--- branches/1.0.x/elements/content_boxes.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/content_boxes.elm.tpl (revision 14770)
@@ -1,57 +1,122 @@
<!--## DEFAULT CONTENT-TOP ELEMENT ##-->
<inp2:m_DefineElement name="default_content_banner" no_editing="1">
<!-- default banners -->
<inp2:st_ContentBlock num="101" page="index"/>
<!-- //default banners -->
</inp2:m_DefineElement>
<inp2:m_DefineElement name="default_page_title"><inp2:m_GetConfig name="Site_Name"/> &mdash; <inp2:st_PageInfo type="htmlhead_title"/></inp2:m_DefineElement>
<inp2:m_DefineElement name="default_add_to_footer" no_editing="1">
</inp2:m_DefineElement>
<inp2:m_DefineElement name="default_add_to_head" no_editing="1">
</inp2:m_DefineElement>
<inp2:m_DefineElement name="default_sidebar" no_editing="1">
</inp2:m_DefineElement>
<inp2:m_DefineElement name="default_page_title">
<inp2:st_PageInfo type="htmlhead_title"/>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="image_element">
<img src="<inp2:m_param name="img_path" />" title="<inp2:m_param name="alt" />" alt="<inp2:m_param name="alt" />" <inp2:m_param name="img_size" /> align="<inp2:m_param name="align"/>" />
</inp2:m_DefineElement>
<inp2:m_DefineElement name="content_box" content_class="" header_class="">
<h2 class="<inp2:m_Param name='header_class'/>"><inp2:m_param name="header"/></h2>
<div class="<inp2:m_Param name='content_class'/>">
<inp2:m_param name="content"/>
</div>
</inp2:m_DefineElement>
<!--## Unused for now
<inp2:m_DefineElement name="side_box" add_class="">
<div class="block <inp2:m_Param name='add_class'/>">
<h2><inp2:m_param name="header"/></h2>
<inp2:m_param name="content"/>
</div>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="side_box_custom" add_class="">
<div class="<inp2:m_Param name='add_class'/>">
<h4><inp2:m_param name="header"/></h4>
<inp2:m_param name="content"/>
</div>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="content_box_scrollable" add_class="">
<div class="block no-border-bottom<inp2:m_Param name='add_class'/>">
<h2><inp2:m_param name="header"/></h2>
<inp2:m_param name="content"/>
</div>
</inp2:m_DefineElement>
-##-->
\ No newline at end of file
+##-->
+
+<inp2:m_DefineElement name="rating_percent_element">
+ <i><inp2:m_Param name="percent"/>%</i>
+ <span>
+ <inp2:m_if check="m_Param" name="rating" equals_to="1|2|3|4|5">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="m_Param" name="rating" equals_to="2|3|4|5">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="m_Param" name="rating" equals_to="3|4|5">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="m_Param" name="rating" equals_to="4|5">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="m_Param" name="rating" equals_to="5">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+ </span><br/>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="review_element">
+ <div class="row-review">
+ <p class="user"><inp2:Field name="ReviewedBy"/></p>
+ <div class="text-review"><inp2:Field name="ReviewText"/></div>
+
+ <div class="optional-review">
+ <p>Was this review helpful to you?&nbsp;&nbsp;<a href="<inp2:HelpfulLink helpful='1'/>" class="yes">Yes</a>&nbsp;&nbsp;<em>(<inp2:Field name="HelpfulCount"/>)</em>&nbsp;&nbsp;<a href="<inp2:HelpfulLink helpful='0'/>" class="no">No</a>&nbsp;&nbsp;<em>(<inp2:Field name="NotHelpfulCount"/>)</em></p>
+ <p><a href="#">Is this Review Inappropriate?</a></p>
+
+ <inp2:m_if check="Field" name="Rating" db="db">
+ <p class="rat">
+ Rating:
+
+ <inp2:m_if check="Field" name="Rating" equals_to="1|2|3|4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="Field" name="Rating" equals_to="2|3|4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="Field" name="Rating" equals_to="3|4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="Field" name="Rating" equals_to="4|5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+
+ <inp2:m_if check="Field" name="Rating" equals_to="5" db="db">
+ <img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
+ </inp2:m_if>
+ </p>
+ </inp2:m_if>
+
+ <p class="date"><strong><inp2:DateField name="CreatedOn" format="F j, Y"/></strong></p>
+ </div>
+ </div>
+</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.0.x/elements/product_elements.elm.tpl
===================================================================
--- branches/1.0.x/elements/product_elements.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/product_elements.elm.tpl (revision 14770)
@@ -1,53 +1,53 @@
<inp2:m_DefineElement name="product_list_element">
<li>
<div class="item">
<inp2:m_if check="Field" name="IsNew">
<div class="ribbon new"></div>
<inp2:m_elseif check="Field" name="IsPop" />
<div class="ribbon top"></div>
- <inp2:m_elseif check="Field" name="Featured" db="1" />
+ <inp2:m_elseif check="Field" name="Featured" db="1" />
<div class="ribbon sale"></div>
</inp2:m_if>
-
+
<div class="img">
<a href="<inp2:ProductLink template='__default__'/>"><inp2:Image render_as="image_element" Primary="1" Thumbnail="1" DefaultImage="img/no_picture.gif" MaxWidth="69" MaxHeight="69"/></a>
</div>
<div class="descr">
<h3><a href="<inp2:ProductLink template='__default__'/>"><inp2:Field field="Name" html_escape="1"/></a></h3>
<p><inp2:Field field="Description" html_escape="1" cut_first="200"/></p>
<div class="optional">
<span class="stars">
<!--##
<inp2:VotesIndicator render_as="rating_element"/>
##-->
<img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
<img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
<img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
<img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
<img src="<inp2:m_TemplatesBase/>img/star-smallest.jpg" width="13" height="13" alt="" />
</span>
<span class="reviews">
<a href="<inp2:ProductLink template='__default__'/>">Reviews</a> (<a href="<inp2:ProductLink template='__default__'/>"><inp2:Field name="CachedReviewsQty"/></a>)&nbsp;&nbsp;&nbsp;
</span>
<span class="comp">
<label><input type="checkbox" name="compare-1" value="1" /><em>Compare</em></label>
</span>
</div>
</div>
<div class="price-block">
- <p><s class="under"><inp2:Field name="MSRP" currency="selected"/>$2,549.<span>95</span></s></p>
- <p class="redprice"><em class="price"><inp2:Field name="Price" currency="selected"/>$2,549.<span>95</span></em></p>
+ <p><s class="under"><inp2:Field name="MSRP" currency="selected" decimal_tag="span"/></s></p>
+ <p class="redprice"><em class="price"><inp2:Field name="Price" currency="selected" decimal_tag="span"/></em></p>
<p><a href="<inp2:AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span>Add to Cart</span></a></p>
</div>
</div>
</li>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="sidebox_product_element">
<dt><a href="<inp2:ProductLink template='__default__'/>"><inp2:Field field="Name" html_escape="1"/></a></dt>
<dd>
<p class="img"><a href="<inp2:ProductLink template='__default__'/>"><inp2:Image render_as="image_element" Primary="1" Thumbnail="1" DefaultImage="img/no_picture.gif" MaxWidth="136" MaxHeight="136"/></a></p>
- <p class="price"><inp2:Field name="Price" currency="selected"/>$759.<span>95</span></p>
+ <p class="price"><inp2:Field name="Price" currency="selected" decimal_tag="span"/></p>
<p><a href="<inp2:AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span>Add to Cart</span></a></p>
</dd>
</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.0.x/elements/html_head.elm.tpl
===================================================================
--- branches/1.0.x/elements/html_head.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/html_head.elm.tpl (revision 14770)
@@ -1,74 +1,76 @@
<inp2:m_if check="c.current_Field" name="MetaKeywords">
<meta name="Keywords" content="<inp2:c.current_Field name='MetaKeywords'/>"/>
<inp2:m_else/>
<meta name="Keywords" content="<inp2:m_GetConfig name='Category_MetaKey'/>"/>
</inp2:m_if>
<inp2:m_if check="c.current_Field" name="MetaDescription">
<meta name="Description" content="<inp2:c.current_Field name='MetaDescription'/>"/>
<inp2:m_else/>
<meta name="Description" content="<inp2:m_GetConfig name='Category_MetaDesc'/>"/>
</inp2:m_if>
<meta name="author" content="<inp2:m_GetConfig name='Site_Name'/>"/>
<meta http-equiv="content-type" content="text/html; charset=<inp2:lang.current_Field name='Charset'/>" />
<link rel="icon" href="<inp2:m_BaseURL/>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<inp2:m_BaseURL/>favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<inp2:m_Compress files='inc/reset.css|inc/styles.css|inc/category.css|inc/flexslider.css|inc/modal.css|inc/details.css|inc/jquery.gzoom.css|inc/pikachoose.css|inc/qtip.css|inc/profile.css'/>" media="all" charset="<inp2:lang.current_Field name='Charset'/>"/>
<!-- including "inc/profile.css" will break logged-in user's menu -->
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/ui/jquery.ui.all.css" charset="utf-8" />
<!--##
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/reset.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/styles.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/category.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/flexslider.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/modal.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/details.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/jquery.gzoom.css" charset="utf-8" />
<link type="text/css" rel="stylesheet" href="<inp2:m_TemplatesBase />inc/pikachoose.css" charset="utf-8" />
##-->
<!--## JS FOR ADMIN ##-->
<inp2:st_EditingScripts/>
<script type="text/javascript">
var $base_url = '<inp2:m_TemplatesBase/>';
</script>
<!--## JS FOR FRONT ##-->
<inp2:m_ifnot check="m_GetConst" name="EDITING_MODE">
<!--## EXCLUDE THIS JS WHEN IN ADMIN ##-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="<inp2:m_Compress files='/inc/js/thickbox/thickbox.css'/>"/>
<script src="<inp2:m_Compress files='inc/js/thickbox/thickbox.js'/>" type="text/javascript"></script>
</inp2:m_ifnot>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/ui/jquery.ui.core.min.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/ui/jquery.ui.widget.min.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/ui/jquery.ui.accordion.min.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/jquery.flexslider-min.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/jquery.scripts.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/tinybox.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/jquery.qtip.min.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/form_manager.js" type="text/javascript"></script>
<script type="text/javascript">
+ var aRatingManager = new RatingManager('<inp2:m_Link template="index" events[#PREFIX#]="OnMakeVote" rating="#VOTE#" id="#ID#" no_amp="1" size="#SIZE#"/>');
+
FormManager.init(
{
url: '<inp2:m_Link template="#TEMPLATE#" js_escape="1" __NO_REWRITE__="1" no_amp="1"/>',
noErrorsHTML: ''
}
);
</script>
<inp2:m_Comment>
<!--[if lt IE 9]>
<![endif]-->
</inp2:m_Comment>
\ No newline at end of file
Index: branches/1.0.x/elements/forms.elm.tpl
===================================================================
--- branches/1.0.x/elements/forms.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/forms.elm.tpl (revision 14770)
@@ -1,406 +1,412 @@
<inp2:m_Set tab_index="1"/>
<inp2:m_DefineElement name="subsection">
<tr class="subsection">
<td colspan="2">
<h2><inp2:m_Phrase label="$title"/></h2>
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_buttons" style="">
<p class="buttons" style="<inp2:m_Param name='style'/>">
<inp2:m_Param name="content"/>
</p>
<div class="clear"></div>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="form_row_full" is_last="0">
<tr class="field-row<inp2:m_if check='m_Param' name='is_last'>-last</inp2:m_if>">
<td colspan="2">
<inp2:m_Param name="content"/>
</td>
</tr>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_field_separator" no_editing="1" is_last="0">
<inp2:m_if check="m_ParamEquals" name="is_last" value="0">
<!--<hr/>-->
</inp2:m_if>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="form_row" row_class='' prefix="" field="" error_field_suffix="" title="lu_fld_{$field}" hint_label="" is_last="0" field_type="" error_position="top" show_length="1">
<inp2:m_inc param="tab_index" by="1"/>
<p class="<inp2:m_Param name='row_class'/><inp2:m_if check='{$prefix}_HasError' field='{$field}{$error_field_suffix}'> error</inp2:m_if>">
<label class="field-title" for="<inp2:{$prefix}_InputName field='{$field}{$error_field_suffix}'/>">
<inp2:m_Phrase label="$title"/><inp2:m_if check="{$prefix}_IsRequired" field="{$field}{$error_field_suffix}"> <span class="star">*</span></inp2:m_if>
<inp2:m_if check="m_Param" name="error_position" equals_to="top">
<inp2:m_RenderElement name="error_msg_container" pass_params="1"/>
</inp2:m_if>
</label>
<span class="field-content" id="<inp2:{$prefix}_InputName field='$field'/>_field_cell">
<inp2:m_Param name="content" pass_params="1"/>
</span>
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
&nbsp;&nbsp;<a href="#"><img src="<inp2:m_TemplatesBase/>img/icon-help.png" width="16" height="16" class="help-icon" title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>" alt=""/></a>
</inp2:m_if>
<script type="text/javascript">
FormManager.registerField('<inp2:m_Param name="prefix"/>', '<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="formatter" equals_to="kMultiLanguage">l<inp2:m_Get name="m_lang"/>_</inp2:m_if><inp2:m_Param name="field"/>', undefined, '<inp2:m_Param name="field_type"/>');
</script>
</p>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="error_msg_container" style="" error_field_suffix="">
<em class="red" id="<inp2:{$prefix}_InputName field='$field'/>_status_cell" style="<inp2:m_Param name='style'/>">
<inp2:{$prefix}_Error field="{$field}{$error_field_suffix}"/>
</em>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_label" as_label="" title="lu_fld_{$field}" currency="" show_length="0" field_type="label" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<inp2:{$prefix}_Field field="$field" as_label="$as_label" currency="$currency"/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_box" style="" title="lu_fld_{$field}" field_type="text" no_editing="1">
+<inp2:m_DefineElement name="inp_edit_box" style="" title="lu_fld_{$field}" field_type="text" hint_label="" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="text"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:{$prefix}_InputName field='$field'/>"
id="<inp2:{$prefix}_InputName field='$field'/>"
value="<inp2:{$prefix}_Field field='$field'/>"
tabindex="<inp2:m_get param='tab_index'/>"
<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="max_len">
maxlength="<inp2:$prefix_FieldOption field='$field' option='max_len'/>"
</inp2:m_if>
style="<inp2:m_param name='style'/>"
/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_address" style="" title="lu_fld_{$field}" field_type="text" no_editing="1">
+<inp2:m_DefineElement name="inp_edit_rating" style="" title="lu_fld_{$field}" field_type="text" hint_label="" no_editing="1">
+ <inp2:m_RenderElement design="form_row" pass_params="1">
+ <img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" /><img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" /><img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" /><img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" /><img src="<inp2:m_TemplatesBase/>img/star-small.jpg" width="18" height="18" alt="" />
+ </inp2:m_RenderElement>
+</inp2:m_DefineElement>
+
+<inp2:m_DefineElement name="inp_edit_address" style="" title="lu_fld_{$field}" field_type="text" hint_label="" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="text"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:{$prefix}_InputName field='$field'/>"
id="<inp2:{$prefix}_InputName field='$field'/>"
value="<inp2:{$prefix}_Field field='$field'/>"
tabindex="<inp2:m_get param='tab_index'/>"
<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="max_len">
maxlength="<inp2:$prefix_FieldOption field='$field' option='max_len'/>"
</inp2:m_if>
style="<inp2:m_param name='style'/>"
/><br/>
<input
type="text"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:{$prefix}_InputName field='$field2'/>"
id="<inp2:{$prefix}_InputName field='$field2'/>"
value="<inp2:{$prefix}_Field field='$field2'/>"
tabindex="<inp2:m_get param='tab_index'/>"
<inp2:m_if check="{$prefix}_FieldOption" field="$field2" option="max_len">
maxlength="<inp2:$prefix_FieldOption field='$field2' option='max_len'/>"
</inp2:m_if>
style="<inp2:m_param name='style'/>"
/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_password_single" style="" title="lu_fld_{$field}" field_type="text" no_editing="1">
+<inp2:m_DefineElement name="inp_edit_password_single" style="" title="lu_fld_{$field}" field_type="text" hint_label="" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="password"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:{$prefix}_InputName field='$field'/>"
id="<inp2:{$prefix}_InputName field='$field'/>"
value="<inp2:{$prefix}_Field field='$field'/>"
tabindex="<inp2:m_get param='tab_index'/>"
<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="max_len">
maxlength="<inp2:$prefix_FieldOption field='$field' option='max_len'/>"
</inp2:m_if>
style="<inp2:m_param name='style'/>"
/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_password" title="lu_fld_{$field}" style="" field_type="text" no_editing="1">
<inp2:m_ifnot check="m_Get" name="password_js_included">
<script src="<inp2:m_Compress files='inc/js/passwordStrengthMeter.js'/>" type="text/javascript"></script>
<inp2:m_Set password_js_included="1"/>
</inp2:m_ifnot>
<div id="password-block" class="password-block">
<inp2:m_RenderElement design="form_row" row_class="pasfield1" error_position="none" pass_params="1">
<input
type="password"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:$prefix_InputName field='$field'/>"
id="<inp2:{$prefix}_InputName field='$field'/>"
value="<inp2:{$prefix}_Field name='{$field}_plain'/>"
tabindex="<inp2:m_get param='tab_index'/>"
style="<inp2:m_param name='style'/>"
/>
</inp2:m_RenderElement>
<inp2:m_RenderElement design="form_row" row_class="pasfield2" field="Verify{$field}" title="lu_fld_Verify{$field}" error_position="none" pass_params="1">
<input
type="password"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:$prefix_InputName field='$field'/>"
id="<inp2:{$prefix}_InputName field='$field'/>"
value="<inp2:{$prefix}_Field name='{$field}_plain'/>"
tabindex="<inp2:m_get param='tab_index'/>"
style="<inp2:m_param name='style'/>"
/>
</inp2:m_RenderElement>
<div class="clear"></div>
<div class="password-strength" id="<inp2:{$prefix}_InputName field='$field'/>_strength">Enter your password</div>
<inp2:m_RenderElement name="error_msg_container" style="padding: 0px; display: block;" pass_params="1"/>
<inp2:m_RenderElement name="error_msg_container" field="Verify{$field}" style="padding: 0px; display: block;" pass_params="1"/>
<script type="text/javascript">
new PasswordStrengthMeter(
{
inputSelector: '#' + jq('<inp2:{$prefix}_InputName field="$field"/>'),
phrases: {
'short': '<inp2:m_Phrase name="lu_PasswordStrengthShort" js_escape="1"/>',
'bad': '<inp2:m_Phrase name="lu_PasswordStrengthBad" js_escape="1"/>',
'good': '<inp2:m_Phrase name="lu_PasswordStrengthGood" js_escape="1"/>',
'strong': '<inp2:m_Phrase name="lu_PasswordStrengthStrong" js_escape="1"/>'
}
}
);
</script>
</div>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_upload" title="lu_fld_{$field}" style="" field_type="upload" no_editing="1">
+<inp2:m_DefineElement name="inp_edit_upload" title="lu_fld_{$field}" style="" field_type="upload" hint_label="" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="file"
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
name="<inp2:{$prefix}_InputName field='$field'/>"
tabindex="<inp2:m_get param='tab_index'/>"
style="<inp2:m_param name='style'/>"
/>
<inp2:m_if check="{$prefix}_FieldEquals" name="$field" value="" inverse="inverse">
(<inp2:{$prefix}_Field field="$field"/>)
</inp2:m_if>
<input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>[upload]" value="<inp2:{$prefix}_Field field="$field"/>" />
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_hidden" db="">
<input type="hidden" name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field field="$field" db="$db"/>" />
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_date" title="lu_fld_{$field}" style="" no_editing="1" field_type="date" error_field_suffix="_date">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="text"
class="field"
title="<inp2:{$prefix}_Format field='{$field}_date' input_format='1' human='true'/>"
name="<inp2:{$prefix}_InputName field="{$field}_date"/>"
id="<inp2:{$prefix}_InputName field="{$field}_date"/>"
value="<inp2:{$prefix}_Field field="{$field}_date" format="_regional_InputDateFormat"/>"
tabindex="<inp2:m_get param="tab_index"/>"
size="<inp2:{$prefix}_Format field="{$field}_date" input_format="1" edit_size="edit_size"/>"
style="<inp2:m_param name="style"/>"
datepickerIcon="<inp2:m_TemplatesBase module="In-Portal"/>img/calendar_icon.gif"
/>
<input type="hidden" name="<inp2:{$prefix}_InputName field="{$field}_time"/>" id="<inp2:{$prefix}_InputName field="{$field}_time" input_format="1"/>" value="" />
<script type="text/javascript">
$( '#' + jq('<inp2:{$prefix}_InputName field="{$field}_date"/>') ).datepicker(
{
inline: true,
dateFormat: get_jq_date_format('<inp2:$prefix_Format name="{$field}_date" input_format="1"/>'),
showOn: 'button',
buttonImage: '<inp2:m_TemplatesBase/>img/calendar_btn.gif',
buttonImageOnly: true,
onSelect: function(dateText, inst) {
if ( dateText != '' ) {
$(this).focus();
}
}
}
);
</script>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_time" title="lu_fld_{$field}" style="" no_editing="1" field_type="time" error_field_suffix="_time">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="text"
class="field"
title="<inp2:{$prefix}_Format field='{$field}_time' input_format='1' human='true'/>"
name="<inp2:{$prefix}_InputName field='{$field}_time'/>"
id="<inp2:{$prefix}_InputName field='{$field}_time'/>"
value="<inp2:{$prefix}_Field field='{$field}_time' format='_regional_InputTimeFormat'/>"
tabindex="<inp2:m_get param='tab_index'/>"
size="<inp2:{$prefix}_Format field='{$field}_time' input_format='1' edit_size='edit_size'/>"
style="<inp2:m_param name='style'/>">
<input type="hidden" name="<inp2:{$prefix}_InputName field="{$field}_date"/>" id="<inp2:{$prefix}_InputName field="{$field}_date" input_format="1"/>" value="" />
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_date_time" title="lu_fld_{$field}" style="" field_type="date_time" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input
type="text"
class="field"
title="<inp2:{$prefix}_Format field='{$field}_date' input_format='1' human='true'/>"
name="<inp2:{$prefix}_InputName field="{$field}_date"/>"
id="<inp2:{$prefix}_InputName field="{$field}_date"/>"
value="<inp2:{$prefix}_Field field="{$field}_date"
format="_regional_InputDateFormat"/>"
tabindex="<inp2:m_get param="tab_index"/>"
size="<inp2:{$prefix}_Format field="{$field}_date" input_format="1" edit_size="edit_size"/>"
style="<inp2:m_param name="style"/>"
datepickerIcon="<inp2:m_ProjectBase/>core/admin_templates/img/calendar_icon.gif"
/>
<script type="text/javascript">
initCalendar("<inp2:{$prefix}_InputName field="{$field}_date"/>", "<inp2:{$prefix}_Format field="{$field}_date" input_format="1"/>");
</script>
&nbsp;
<input
type="text"
class="field"
title="<inp2:{$prefix}_Format field='{$field}_time' input_format='1' human='true'/>"
name="<inp2:{$prefix}_InputName field='{$field}_time'/>"
id="<inp2:{$prefix}_InputName field='{$field}_time'/>"
value="<inp2:{$prefix}_Field field='{$field}_time' format='_regional_InputTimeFormat'/>"
tabindex="<inp2:m_get param='tab_index'/>"
size="<inp2:{$prefix}_Format field='{$field}_time' input_format='1' edit_size='edit_size'/>"
style="<inp2:m_param name='style'/>"
/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="inp_edit_textarea" title="lu_fld_{$field}" style="width: 100%;" cols="" rows="" format="" error_position="top" field_type="textarea" no_editing="1">
+<inp2:m_DefineElement name="inp_edit_textarea" title="lu_fld_{$field}" style="width: 100%;" cols="" rows="" format="" error_position="top" field_type="textarea" hint_label="" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<textarea
class="field"
<inp2:m_if check="{$prefix}_FieldHintLabel" title_label="$title" direct_label="$hint_label">
title="<inp2:$prefix_FieldHintLabel title_label='$title' direct_label='$hint_label' html_escape='1'/>"
</inp2:m_if/>
tabindex="<inp2:m_get param="tab_index"/>"
name="<inp2:{$prefix}_InputName field='$field'/>"
id="<inp2:{$prefix}_InputName field='$field'/>"
cols="<inp2:m_param name='cols'/>"
rows="<inp2:m_param name='rows'/>"
style="<inp2:m_param name='style'/>"
><inp2:{$prefix}_Field field="$field" format="$format"/></textarea>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_option_item">
<option value="<inp2:m_param name="key"/>"<inp2:m_param name="selected"/>><inp2:m_param name="option"/></option>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_option_phrase">
<option value="<inp2:m_param name="key"/>"<inp2:m_param name="selected"/>><inp2:m_phrase label="$option"/></option>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_options" title="lu_fld_{$field}" style="" has_empty="0" empty_value="" empty_label="" field_type="select" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<select class="field" tabindex="<inp2:m_get param="tab_index"/>" name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>" style="<inp2:m_param name="style"/>">
<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="use_phrases">
<inp2:{$prefix}_PredefinedOptions field="$field" block="inp_option_phrase" selected="selected" has_empty="$has_empty" empty_value="$empty_value" empty_label="$empty_label"/>
<inp2:m_else/>
<inp2:{$prefix}_PredefinedOptions field="$field" block="inp_option_item" selected="selected" has_empty="$has_empty" empty_value="$empty_value" empty_label="$empty_label"/>
</inp2:m_if>
</select>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_radio_item" style="" onclick="" has_br="0">
<input type="radio" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>" <inp2:m_param name="checked"/> name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>"><label for="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>">&nbsp;<inp2:m_param name="option"/></label><inp2:m_if check="m_Param" name="has_br"><br/><inp2:m_else/>&nbsp;&nbsp;</inp2:m_if>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_radio_phrase" style="" onclick="" has_br="0">
<input type="radio" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_param name="style"/>" <inp2:m_param name="checked"/> name="<inp2:{$prefix}_InputName field="$field"/>" id="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>" value="<inp2:m_param name="key"/>"><label for="<inp2:{$prefix}_InputName field="$field"/>_<inp2:m_param name="key"/>">&nbsp;<inp2:m_phrase label="$option"/></label><inp2:m_if check="m_Param" name="has_br"><br/><inp2:m_else/>&nbsp;&nbsp;</inp2:m_if>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_radio" title="lu_fld_{$field}" style="" pass_tabindex="" onclick="" onchange="" field_type="radio" has_br="0" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="use_phrases">
<inp2:{$prefix}_PredefinedOptions field="$field" block="inp_radio_phrase" selected="checked" has_br="$has_br"/>
<inp2:m_else />
<inp2:{$prefix}_PredefinedOptions field="$field" block="inp_radio_item" selected="checked" has_br="$has_br"/>
</inp2:m_if>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_captcha" style="" field="Captcha" title="lu_fld_Captcha" no_editing="1" field_type="captcha" is_last="0">
<inp2:m_RenderElement design="form_row" pass_params="1">
<img src="<inp2:m_Link template="platform/inc/captcha_image.elm" var="{$prefix}_captcha_code" w="150" h="30"/>" alt="<inp2:m_Phrase name="$title" no_editing="1"/>"/><br />
<br />
<input type="text" class="input-text" name="<inp2:{$prefix}_InputName field="Captcha"/>" id="<inp2:{$prefix}_InputName field="Captcha"/>" value="<inp2:{$prefix}_Field field="Captcha"/>" tabindex="<inp2:m_get param="tab_index"/>" style="<inp2:m_Param name="style"/>"/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_checkbox" title="lu_fld_{$field}" style="" field_type="checkbox" no_editing="1">
<inp2:m_RenderElement design="form_row" pass_params="1">
<input type="hidden" id="<inp2:{$prefix}_InputName field="$field"/>" name="<inp2:{$prefix}_InputName field="$field"/>" value="<inp2:{$prefix}_Field field="$field" db="db"/>" />
<input tabindex="<inp2:m_get param="tab_index"/>" type="checkbox" id="_cb_<inp2:{$prefix}_InputName field="$field"/>" name="_cb_<inp2:{$prefix}_InputName field="$field"/>" <inp2:{$prefix}_Field field="$field" checked="checked" db="db"/> style="<inp2:m_param name="style"/>" onchange="update_checkbox(this, document.getElementById('<inp2:{$prefix}_InputName field="$field"/>'));">
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_checkbox_item">
&nbsp;<input type="checkbox" <inp2:m_param name='checked'/> id="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>" value="<inp2:m_param name='key'/>" onclick="update_checkbox_options(/^<inp2:{$prefix}_InputName field='$field' as_preg='1'/>_([0-9A-Za-z-]+)/, '<inp2:{$prefix}_InputName field='$field'/>');"><label for="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>"><inp2:m_param name="option"/></label><inp2:m_if check="m_Param" name="has_br"><br/><inp2:m_else/>&nbsp;&nbsp;</inp2:m_if>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_checkbox_phrase">
&nbsp;<input type="checkbox" <inp2:m_param name='checked'/> id="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>" value="<inp2:m_param name='key'/>" onclick="update_checkbox_options(/^<inp2:{$prefix}_InputName field='$field' as_preg='1'/>_([0-9A-Za-z-]+)/, '<inp2:{$prefix}_InputName field='$field'/>');"><label for="<inp2:{$prefix}_InputName field='$field'/>_<inp2:m_param name='key'/>"><inp2:m_phrase label="$option"/></label><inp2:m_if check="m_Param" name="has_br"><br/><inp2:m_else/>&nbsp;&nbsp;</inp2:m_if>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="inp_edit_checkboxes" title="lu_fld_{$field}" no_empty="" pass_tabindex="" field_type="checkboxes" show_length="0" has_br="0">
<inp2:m_RenderElement design="form_row" pass_params="1">
<inp2:m_if check="{$prefix}_FieldOption" field="$field" option="use_phrases">
<inp2:{$prefix}_PredefinedOptions field="$field" no_empty="$no_empty" tabindex="$pass_tabindex" block="inp_checkbox_phrase" selected="checked" has_br="$has_br"/>
<inp2:m_else/>
<inp2:{$prefix}_PredefinedOptions field="$field" no_empty="$no_empty" tabindex="$pass_tabindex" block="inp_checkbox_item" selected="checked" has_br="$has_br"/>
</inp2:m_if>
<inp2:m_RenderElement prefix="$prefix" name="inp_edit_hidden" field="$field" db="db"/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.0.x/elements/pagination.elm.tpl
===================================================================
--- branches/1.0.x/elements/pagination.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/pagination.elm.tpl (revision 14770)
@@ -1,29 +1,41 @@
-<inp2:m_DefaultParam prefix="p" list_name="products_in_category" type=""/>
+<inp2:m_DefaultParam prefix="" list_name=""/>
<inp2:m_DefineElement name="prev_page">
<a href="<inp2:PageLink/>" class="prev">&nbsp;</a>
</inp2:m_DefineElement>
+<inp2:m_DefineElement name="no_prev_page">
+ <span class="prev">&nbsp;</span>
+</inp2:m_DefineElement>
+
<inp2:m_DefineElement name="next_page">
<a href="<inp2:PageLink/>" class="next">&nbsp;</a>
</inp2:m_DefineElement>
+<inp2:m_DefineElement name="no_next_page">
+ <span class="next">&nbsp;</span>
+</inp2:m_DefineElement>
+
<inp2:m_DefineElement name="page_current">
<a href="<inp2:PageLink/>" class="active"><inp2:m_param name="page"/></a>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="page_separator"></inp2:m_DefineElement>
-
<inp2:m_DefineElement name="page_link">
- <a href="<inp2:PageLink/>" class="active"><inp2:m_param name="page"/></a>
+ <a href="<inp2:PageLink/>"><inp2:m_param name="page"/></a>
</inp2:m_DefineElement>
<inp2:m_if check="{$prefix}_GridInfo" type="needs_pagination" list_name="$list_name">
-
<div class="pagination">
-
- <inp2:{$prefix}_PaginationBar list_name="$list_name" current_render_as="page_current" separator_render_as="html:" link_render_as="page_link" prev_page_render_as="prev_page" next_page_render_as="next_page" />
-
+ <inp2:$prefix_PaginationBar
+ list_name="$list_name"
+ current_render_as="page_current"
+ separator_render_as="html:"
+ link_render_as="page_link"
+ prev_page_render_as="prev_page"
+ no_prev_page_render_as="no_prev_page"
+ next_page_render_as="next_page"
+ no_next_page_render_as="no_next_page"
+ />
</div>
-
+ <div class="clear"></div>
</inp2:m_if>
\ No newline at end of file
Index: branches/1.0.x/elements/content_boxes/special_deals.elm.tpl
===================================================================
--- branches/1.0.x/elements/content_boxes/special_deals.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/content_boxes/special_deals.elm.tpl (revision 14770)
@@ -1,30 +1,30 @@
<inp2:m_Cache key="prefix:p;currency;guest_only">
<inp2:p_InitList list_name="featured_products" types="featured" parent_cat_id="0" recursive="1" per_page="10" sort_by="random"/>
-
+
<inp2:m_DefineElement name="featured_product_element">
- <div class="good-item good-item-float">
+ <div class="good-item good-item-float">
<dl>
<dt><a href="<inp2:ProductLink template='__default__'/>"><inp2:Field field="Name" html_escape="1"/></a></dt>
<dd>
<p class="img"><a href="<inp2:ProductLink template='__default__'/>"><inp2:Image render_as="image_element" Primary="1" Thumbnail="1" DefaultImage="img/no_picture.gif" MaxWidth="136" MaxHeight="136"/></a></p>
- <p class="price-deal"><s class="under"><inp2:Field name="MSRP" currency="selected"/>$2,549.<span>95</span></s><em class="price"><inp2:Field name="Price" currency="selected"/>$2,549.<span>95</span></em></p>
+ <p class="price-deal"><s class="under"><inp2:Field name="MSRP" currency="selected" decimal_tag="span"/></s><em class="price"><inp2:Field name="Price" currency="selected" decimal_tag="span"/></em></p>
<p><a href="<inp2:AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span>Add to Cart</span></a></p>
</dd>
</dl>
</div>
</inp2:m_DefineElement>
-
+
<div class="block block-margin no-border-bottom">
<h2><em>Special Deals</em><span class="sale"></span></h2>
<div id="scrollable">
<div class="items">
-
+
<inp2:p_ListProducts list_name="featured_products" render_as="featured_product_element" no_table="1"/>
-
+
<div class="clear"></div>
</div>
</div>
</div>
-
+
</inp2:m_Cache>
\ No newline at end of file
Index: branches/1.0.x/elements/content_boxes/new_products.elm.tpl
===================================================================
--- branches/1.0.x/elements/content_boxes/new_products.elm.tpl (revision 14769)
+++ branches/1.0.x/elements/content_boxes/new_products.elm.tpl (revision 14770)
@@ -1,26 +1,26 @@
<inp2:m_Cache key="prefix:p;currency;guest_only">
<inp2:p_InitList list_name="new_products" types="featured" parent_cat_id="0" recursive="1" per_page="12" sort_by="random"/>
-
+
<inp2:m_DefineElement name="product_new_element">
- <div class="good-item good-item-narrow <inp2:m_if check='m_Param' name='is_last'>good-item-narrow-last </inp2:m_if>good-item-float border-radius">
+ <div class="good-item good-item-narrow <inp2:m_if check='m_Param' name='is_last'>good-item-narrow-last </inp2:m_if>good-item-float border-radius">
<dl>
<dt><a href="<inp2:ProductLink template='__default__'/>"><inp2:Field field="Name" html_escape="1"/></a></dt>
<dd>
<p class="img"><a href="<inp2:ProductLink template='__default__'/>"><inp2:Image render_as="image_element" Primary="1" Thumbnail="1" DefaultImage="img/no_picture.gif" MaxWidth="136" MaxHeight="136"/></a></p>
- <p class="price"><inp2:Field name="Price" currency="selected"/>$2,549.<span>95</span></p>
+ <p class="price"><inp2:Field name="Price" currency="selected" decimal_tag="span"/></p>
<p><a href="<inp2:AddToCartLink template='checkout/cart' product_template='__default__'/>" class="addtocart"><span>Add to Cart</span></a></p>
</dd>
</dl>
</div>
</inp2:m_DefineElement>
-
+
<div class="block no-border-bottom">
<h2><em>New Arrivals</em><span class="new"></span></h2>
-
+
<inp2:p_ListProducts list_name="new_products" render_as="product_new_element" no_table="1"/>
-
- <div class="clear"></div>
+
+ <div class="clear"></div>
</div>
-
+
</inp2:m_Cache>
\ No newline at end of file
Index: branches/1.0.x/img/star_sprite_small.gif
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: branches/1.0.x/img/star_sprite_small.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: branches/1.0.x/img/star_sprite.gif
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes on: branches/1.0.x/img/star_sprite.gif
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property

Event Timeline