Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Sun, Jan 5, 10:25 PM

modern-store

Index: branches/1.0.x/products/compare.tpl
===================================================================
--- branches/1.0.x/products/compare.tpl (revision 15270)
+++ branches/1.0.x/products/compare.tpl (revision 15271)
@@ -1,204 +1,203 @@
<!--##
<NAME>Compare Products</NAME>
<DESC>Product comparison page</DESC>
<SECTION>Pages||Compare Products</SECTION>
##-->
-<inp2:m_DefineElement name="page_title"><inp2:st_PageInfo type="htmlhead_title" html_escape="1"/></inp2:m_DefineElement>
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<inp2:p_InitList list_name="compare_products" types="compare" parent_cat_id="any"/>
<inp2:m_ifnot check="p_TotalRecords" list_name="compare_products">
<inp2:p_ContinueLink redirect="1"/>
</inp2:m_ifnot>
<div class="block no-border-bottom">
<h2><em>Comparing Products (<abbr id="product-count"><inp2:p_TotalRecords list_name="compare_products"/></abbr>)</em><span></span></h2>
<div class="compare border-radius">
<inp2:m_DefineElement name="product_compare_header">
<div class="good-item" product_id="<inp2:Field name='ProductId'/>" position="<inp2:m_Param name='num'/>">
<div class="button-delete"><a href="#"><img src="<inp2:m_TemplatesBase/>img/icon-delete.png" width="13" height="13" alt="" /></a></div>
<dl>
<dt><a href="<inp2:ProductLink template='__default__'/>"><inp2:Field name="Name"/></a></dt>
<dd>
<p class="img">
<a href="<inp2:ProductLink template='__default__'/>">
<inp2:Image render_as="image_element" Primary="1" Thumbnail="1" DefaultImage="img/product_no_picture.png" MaxWidth="136" MaxHeight="136"/>
</a>
</p>
<p class="price"><inp2:Field name="Price" currency="selected" decimal_tag="span"/></p>
<p>
<a href="<inp2:AddToCartLink template='elements/ajax/cart_bubble' product_template='__default__'/>" class="addtocart" rel="nofollow">
<inp2:m_if check="Field" name="HasRequiredOptions" db="db">
<span>Click to See</span>
<inp2:m_else/>
<span>Add to Cart</span>
</inp2:m_if>
</a>
</p>
</dd>
</dl>
<div class="rating">
<p>
<inp2:VotesIndicator small_style="small-star"/>
</p>
<p><a href="<inp2:ProductLink template='__default__' anchor='reviews'/>">Reviews</a> (<a href="<inp2:ProductLink template='__default__' anchor='reviews'/>"><inp2:Field name="CachedReviewsQty"/></a>)</p>
</div>
<dl class="har">
<dt>Model:</dt>
<dd>XT2324</dd>
<inp2:m_if check="p_Field" name="ManufacturerId" db="db">
<dt>Manufacturer:</dt>
<dd><inp2:Field name="ManufacturerId"/></dd>
</inp2:m_if>
<dt>SKU:</dt>
<dd><inp2:Field name="SKU"/></dd>
<dt>Size:</dt>
<dd>22''</dd>
</dl>
</div>
</inp2:m_DefineElement>
<inp2:p_PrintList render_as="product_compare_header" list_name="compare_products"/>
<div id="add-product" class="good-item last-child" <inp2:m_ifnot check="p_TotalRecords" list_name="compare_products" equals_to="0|1|2"> style="display: none;"</inp2:m_ifnot>>
<p class="buttons-block"><a href="<inp2:p_ContinueLink/>" class="compare-button"><span><img src="<inp2:m_TemplatesBase/>img/bg-button-compare-add.png" width="24" height="24" alt="" /><br />Select Product<br />to Compare</span></a></p>
</div>
<div class="clear"></div>
<div id="compare-menu" style="width: 678px;">
<inp2:m_if check="p_HasCompareField" name="Description" list_name="compare_products">
<h3><a href="#">Description</a></h3>
<div>
<inp2:m_DefineElement name="product_compare_description">
<div class="good-item-cell">
<div class="description">
<p><inp2:Field name="Description"/></p>
</div>
</div>
</inp2:m_DefineElement>
<inp2:p_PrintList render_as="product_compare_description" list_name="compare_products"/>
<div class="clear"></div>
</div>
</inp2:m_if>
<inp2:m_if check="p_HasCompareField" name="cust_Features" list_name="compare_products">
<h3><a href="#">Features</a></h3>
<div>
<inp2:m_DefineElement name="product_compare_features">
<div class="good-item-cell">
<div class="description">
<p><inp2:Field name="cust_Features"/></p>
</div>
</div>
</inp2:m_DefineElement>
<inp2:p_PrintList render_as="product_compare_features" list_name="compare_products"/>
<div class="clear"></div>
</div>
</inp2:m_if>
<!--<h3><a href="#">Details</a></h3>
<div></div>
<h3><a href="#">Specifications</a></h3>
<div></div>
<h3><a href="#">Overall Rating</a></h3>
<div></div>-->
<inp2:m_if check="p_HasCompareField" name="CachedReviewsQty" list_name="compare_products">
<h3><a href="#">Reviews</a></h3>
<div>
<inp2:m_DefineElement name="product_compare_reviews">
<div class="good-item-cell">
<div class="description">
<p class="reviews">
<inp2:m_DefineElement name="short_review_element">
<div class="row-review">
<p class="user"><inp2:Field name="ReviewedBy"/></p>
<div class="text-review"><inp2:Field name="ReviewText"/></div>
</div>
</inp2:m_DefineElement>
<inp2:rev_PrintList render_as="short_review_element" per_page="-1" requery="1"/>
</p>
</div>
</div>
</inp2:m_DefineElement>
<inp2:p_PrintList render_as="product_compare_reviews" list_name="compare_products"/>
<div class="clear"></div>
</div>
</inp2:m_if>
</div>
<div class="clear"></div>
</div>
</div>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<inp2:m_DefineElement name="add_to_head">
<script type= "text/javascript">
$(document).ready(
function() {
var icons = {header: 'ui-icon-circle-arrow-e', headerSelected: 'ui-icon-circle-arrow-s'};
$( '#compare-menu' ).accordion({
icons: icons,
autoHeight: false,
navigation: true
});
$('.button-delete').click(
function ($e) {
var $me = $(this),
$header = $me.parent(),
$position = $header.attr('position');
compare_product($header.attr('product_id'), false);
$header.remove();
$('h3', '#compare-menu').next('div').each(
function () {
$('.good-item-cell:nth-child(' + $position + ')', this).remove();
}
);
$('#product-count').html( parseInt($('#product-count').text()) - 1 );
// renumber positions, since they were shifted
var $index = 1;
$('.button-delete').parent().each(
function () {
$(this).attr('position', $index++);
}
);
$('#add-product').show();
return false;
}
);
}
);
</script>
</inp2:m_DefineElement>
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="designs/default_design.des" pass_params="1"/>
<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Index: branches/1.0.x/index.tpl
===================================================================
--- branches/1.0.x/index.tpl (revision 15270)
+++ branches/1.0.x/index.tpl (revision 15271)
@@ -1,85 +1,81 @@
<!--##
<NAME>Home</NAME>
<DESC>Welcome page</DESC>
<SECTION></SECTION>
##-->
-<!--## PAGE TITLE ELEMENT ##-->
-<inp2:m_DefineElement name="page_title"><inp2:st_PageInfo type="htmlhead_title"/></inp2:m_DefineElement>
-<!--## //PAGE TITLE ELEMENT ##-->
-
<!--## SIDE-BAR ELEMENT ##-->
<inp2:m_DefineElement name="sidebar">
<inp2:m_Include template="elements/side_boxes/categories.elm" data_exists="1"/>
<inp2:m_Include template="elements/side_boxes/picks.elm" data_exists="1"/>
<inp2:m_Include template="elements/side_boxes/subscribe.elm"/>
</inp2:m_DefineElement>
<!--## /SIDE-BAR ELEMENT ##-->
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<inp2:m_Include template="elements/promo.elm" group_id="1" strip_nl="2"/>
<inp2:m_Include template="elements/content_boxes/special_deals.elm" data_exists="1" strip_nl="2"/>
<inp2:m_Include template="elements/content_boxes/new_products.elm" data_exists="1" strip_nl="2"/>
<inp2:m_RenderElement design="content_box">
<inp2:m_Capture to_var="header">
<inp2:m_phrase name="lu_title_WelcomeTitle"/>
</inp2:m_Capture>
<inp2:st_ContentBlock num="1"/>
</inp2:m_RenderElement>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<inp2:m_DefineElement name="add_to_head">
<script type="text/javascript">
$(document).ready(
function() {
var icons = {header: 'ui-icon-circle-arrow-e', headerSelected: 'ui-icon-circle-arrow-s'},
level2icons = {header: 'ui-icon-circle-arrow-l2e', headerSelected: 'ui-icon-circle-arrow-l2s'},
level3icons = {header: 'ui-icon-circle-arrow-l3e', headerSelected: 'ui-icon-circle-arrow-l3s'};
// $( '#accordion-menu' ).accordion({icons: icons, autoHeight: false});
$( '#level2-menu' ).accordion({icons: level2icons});
$( '.level3-menu' ).accordion({
icons: level3icons,
header: 'h4',
autoHeight: false,
event: 'mouseover'
});
}
);
</script>
</inp2:m_DefineElement>
<inp2:m_DefineElement name="add_to_footer">
<script src="<inp2:m_TemplatesBase />inc/js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/jquery.mousewheel.js" type="text/javascript"></script>
<script src="<inp2:m_TemplatesBase />inc/js/jquery.contentcarousel.js" type="text/javascript"></script>
<script>
$(function() {
$('#scrollable').contentcarousel({
// speed for the sliding animation
sliderSpeed : 500,
// easing for the sliding animation
sliderEasing : 'easeOutExpo',
// speed for the item animation (open / close)
itemSpeed : 500,
// easing for the item animation (open / close)
itemEasing : 'easeOutExpo',
// number of items to scroll at a time
scroll : 1
});
});
</script>
</inp2:m_DefineElement>
<!--## DESIGN TEMPLATE ##-->
<inp2:m_include template="designs/default_design.des" pass_params="1" left_column="sidebar"/>
<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Index: branches/1.0.x/elements/title_bar.elm.tpl
===================================================================
--- branches/1.0.x/elements/title_bar.elm.tpl (revision 15270)
+++ branches/1.0.x/elements/title_bar.elm.tpl (revision 15271)
@@ -1,12 +1,9 @@
-<inp2:m_DefineElement name="pagetitle_category_caption">
- <inp2:m_if check="m_ParamEquals" name="cat_id" value="0" inverse="inverse">
- <inp2:m_if check="m_ParamEquals" name="is_module_root" value="0"><inp2:m_param name="separator"/></inp2:m_if>
- </inp2:m_if>
+<inp2:m_DefineElement name="nb_titlebar_element">
+ <inp2:m_ifnot check="m_Param" name="is_first">
+ <inp2:m_param name="separator"/>
+ </inp2:m_ifnot>
+
<inp2:m_param name="cat_name"/>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="pagetitle_root_category"> </inp2:m_DefineElement>
-
-<inp2:m_DefineElement name="pagetitle_module_root"><inp2:m_param name="cat_name"/></inp2:m_DefineElement>
-
-<inp2:c_CategoryPath separator=" &gt; " render_as="pagetitle_category_caption" root_cat_render_as="pagetitle_root_category" module_root_render_as="pagetitle_module_root" />
\ No newline at end of file
+<inp2:c_CategoryPath separator=" &gt; " render_as="nb_titlebar_element" strip_nl="2"/>
\ 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 15270)
+++ branches/1.0.x/elements/content_boxes.elm.tpl (revision 15271)
@@ -1,142 +1,140 @@
<!--## 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:st_PageInfo type="htmlhead_title" html_escape="1"/>
</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" /> />
</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>
##-->
<inp2:m_DefineElement name="rating_percent_element">
<i><inp2:m_Param name="percent"/>%</i>
<span>
<inp2:VotesIndicator rating="$rating" small_style="small-star"/>
<!--##<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 class="yes-count">(<inp2:Field name="HelpfulCount"/>)</em>&nbsp;&nbsp;<a href="<inp2:HelpfulLink helpful='0'/>" class="no">No</a>&nbsp;&nbsp;<em class="no-count">(<inp2:Field name="NotHelpfulCount"/>)</em>
</p>
<p><a href="<inp2:ItemLink template='elements/ajax/spam_report' width='720' height='350'/>" class="thickbox">Is this Review Inappropriate?</a></p>
<p class="rat">
<inp2:m_if check="Field" name="Rating" db="db">
Rating:
<inp2:VotesIndicator small_style="small-star"/>
<!--##<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>##-->
<inp2:m_else/>
&nbsp;
</inp2:m_if>
</p>
<p class="date"><strong><inp2:DateField name="CreatedOn" format="F j, Y"/></strong></p>
</div>
</div>
</inp2:m_DefineElement>
<inp2:m_DefineElement no_editing="1" name="prev_next_element" prefix="" id_field="" special="prefix-navigation" main_list="">
<inp2:{$prefix}.{$special}_InitList per_page="-1" main_list="$main_list" skip_quering="1"/>
<inp2:m_if check="{$prefix}.previous_Field" name="$id_field" item="$prefix" list="{$prefix}.{$special}">
<a href="<inp2:{$prefix}.previous_ItemLink template='__default__'/>" class="product-prev" title="Previous"></a>
</inp2:m_if>
<inp2:m_if check="{$prefix}.next_Field" name="$id_field" item="$prefix" list="{$prefix}.{$special}">
<a href="<inp2:{$prefix}.next_ItemLink template='__default__'/>" class="product-next" title="Next"></a>
</inp2:m_if>
</inp2:m_DefineElement>
\ No newline at end of file
Index: branches/1.0.x/elements/navigation_bar.elm.tpl
===================================================================
--- branches/1.0.x/elements/navigation_bar.elm.tpl (revision 15270)
+++ branches/1.0.x/elements/navigation_bar.elm.tpl (revision 15271)
@@ -1,35 +1,60 @@
-<inp2:m_DefaultParam titles="" templates="" show_category="0" navigation_buttons="0"/>
+<inp2:m_DefaultParam titles="" templates="" show_category="0" navigation_buttons="0" category_title="MenuTitle"/>
-<inp2:m_DefineElement name="root_category">
- <a href="<inp2:c_CategoryLink template="__default__" />"><inp2:m_Phrase name="lu_rootcategory_name"/></a>
+<inp2:m_DefineElement name="nb_current_element">
+ <inp2:m_ifnot check="m_Param" name="is_first">
+ <i></i>
+ </inp2:m_ifnot>
+
+ <em><inp2:m_param name="title"/></em>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="module_root">
- <i></i> <a href="<inp2:c_CategoryLink template="$module_index" cat_id="$cat_id"/>"><inp2:m_param name="title"/></a>
+<inp2:m_DefineElement name="nb_element">
+ <inp2:m_ifnot check="m_Param" name="is_first">
+ <i></i>
+ </inp2:m_ifnot>
+
+ <a href="<inp2:m_Link template='$template' m_cat_id='0" m_cat_page='1'/>"><inp2:m_param name="title"/></a>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="nav_link">
- <i></i>
- <inp2:m_if check="m_Param" name="category">
- <a href="<inp2:c_CategoryLink template="__default__" m_cat_page="1"/>"><inp2:m_param name="title"/></a>
- <inp2:m_else/>
- <a href="<inp2:m_Link template="$template" m_cat_id="0" m_cat_page="1"/>"><inp2:m_param name="title"/></a>
- </inp2:m_if>
+<inp2:m_DefineElement name="nb_category_element">
+ <inp2:m_ifnot check="m_Param" name="is_first">
+ <i></i>
+ </inp2:m_ifnot>
+
+ <a href="<inp2:c_CategoryLink template='__default__' m_cat_page='1'/>"><inp2:m_param name="title"/></a>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="module_item">
- <i></i> <a href="<inp2:{$prefix}_ItemLink template="$template" />"><inp2:m_param name="title"/></a>
+<inp2:m_DefineElement name="nb_module_item_element">
+ <a href="<inp2:{$prefix}_ItemLink template="$template" />"><inp2:m_param name="title"/></a>
</inp2:m_DefineElement>
-<inp2:m_DefineElement name="current_item">
- <i></i> <em><inp2:m_param name="title"/></em>
+<inp2:m_DefineElement name="nb_custom_element">
+ <inp2:m_ifnot check="m_Param" name="is_first">
+ <i></i>
+ </inp2:m_ifnot>
+
+ <inp2:m_if check="m_Param" name="title" equals_to="__page__">
+ <a href="<inp2:m_Link template='$template' m_cat_id='0' m_cat_page='1'/>"><inp2:st_PageInfo type="title"/></a>
+ <inp2:m_elseif check="m_Param" name="title" equals_to="__item__"/>
+ <inp2:c_CategoryItemElement render_as="nb_module_item_element" pass_params="1"/>
+ </inp2:m_if>
</inp2:m_DefineElement>
<h2>
- <inp2:c_CategoryPath separator="" render_as="nav_link" current_render_as="current_item" module_item_render_as="module_item" root_cat_render_as="root_category" module_root_render_as="html:" titles="$titles" templates="$templates" show_category="$show_category"/><span></span>
-
-<inp2:m_if check="m_Param" name="navigation_buttons">
- <inp2:m_RenderElement name="prev_next_element" prefix="p" id_field="ProductId" special="product-navigation" main_list="1"/>
-</inp2:m_if>
+ <inp2:c_CategoryPath
+ separator=""
+ render_as="nb_element"
+ current_render_as="nb_current_element"
+
+ category_render_as="nb_category_element"
+ custom_render_as="nb_custom_element"
+
+ titles="$titles" templates="$templates"
+ show_category="$show_category" category_title="$category_title"
+ />
+ <span></span>
+ <inp2:m_if check="m_Param" name="navigation_buttons">
+ <inp2:m_RenderElement name="prev_next_element" prefix="p" id_field="ProductId" special="product-navigation" main_list="1"/>
+ </inp2:m_if>
</h2>
\ No newline at end of file

Event Timeline