Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Mon, Jan 6, 12:12 AM

modern-store

Index: branches/1.0.x/index.tpl
===================================================================
--- branches/1.0.x/index.tpl (revision 14927)
+++ branches/1.0.x/index.tpl (revision 14928)
@@ -1,95 +1,95 @@
<!--##
<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" strip_nl="2"/>
+ <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>
$(function() {
var icons = {
header: "ui-icon-circle-arrow-e",
headerSelected: "ui-icon-circle-arrow-s"
};
var level2icons = {
header: "ui-icon-circle-arrow-l2e",
headerSelected: "ui-icon-circle-arrow-l2s"
};
var 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/promo.elm.tpl
===================================================================
--- branches/1.0.x/elements/promo.elm.tpl (revision 14927)
+++ branches/1.0.x/elements/promo.elm.tpl (revision 14928)
@@ -1,56 +1,58 @@
+<inp2:m_DefaultParam group_id=""/>
+
<inp2:m_DefineElement name="promo_block_element">
<li>
<a href="<inp2:PromoLink/>" class="<inp2:Field name='CSSClassName' db='db'/>" title="<inp2:Field name='Title' html_escape='1'/>"<inp2:m_if check="LinkInNewWindow"> target="_blank"</inp2:m_if>>
<img src="<inp2:Field name='l1_Image' format='resize:710x260;crop:C|C'/>" />
</a>
<script type="text/javascript">
$slide_ids.push(<inp2:Field name="BlockId"/>);
$slide_viewed.push(false);
</script>
</li>
</inp2:m_DefineElement>
<inp2:m_IfDataExists>
<div id="slider">
<script type="text/javascript">
var $slide_ids = [], $slide_viewed = [];
</script>
<ul class="slides">
- <inp2:promo-block.home_PrintList render_as="promo_block_element"/>
+ <inp2:promo-block_PrintList render_as="promo_block_element" group_id="$group_id"/>
</ul>
</div>
<div class="clear"></div>
<script type="text/javascript">
$(document).ready(
function() {
function register_promo_view (slider) {
var $block_id = $slide_ids[slider.currentSlide],
$promo_stats_url = '<inp2:m_Link promo-block_id="#ID#" promo-block_event="OnRegisterView" __NO_REWRITE__="1" pass="m,promo-block" no_amp="1" js_escape="1"/>';
if ( !$slide_viewed[slider.currentSlide] ) {
$slide_viewed[slider.currentSlide] = true;
$.get( $promo_stats_url.replace('#ID#', $block_id) );
}
}
$('#slider').flexslider(
{
- animation: '<inp2:m_GetConfig name="PromoTransitionEffect"/>',
- animationDuration: <inp2:m_GetConfig name="PromoTransitionTime"/> * 1000, // in milliseconds
- slideshowSpeed: <inp2:m_GetConfig name="PromoRotationDelay"/> * 1000, // in seconds
- controlNav: <inp2:m_GetConfig name="PromoTransitionControls"/> ? true: false,
+ animation: '<inp2:m_if check="promo-block_GetGroupSetting" name="TransitionEffect" group_id="$group_id" db="db" equals_to="-1"><inp2:promo-block_GetGroupSetting name="TransitionEffectCustom" group_id="$group_id"/><inp2:m_else/><inp2:promo-block_GetGroupSetting name="TransitionEffect" group_id="$group_id"/></inp2:m_if>',
+ animationDuration: <inp2:promo-block_GetGroupSetting name="TransitionTime" group_id="$group_id"/> * 1000, // in milliseconds
+ slideshowSpeed: <inp2:promo-block_GetGroupSetting name="RotationDelay" group_id="$group_id"/> * 1000, // in seconds
+ controlNav: <inp2:m_if check="promo-block_GetGroupSetting" name="TransitionControls" group_id="$group_id">true<inp2:m_else/>false</inp2:m_if>,
directionNav: false,
prevText: '',
nextText: '',
start: register_promo_view,
after: register_promo_view
}
);
}
);
</script>
</inp2:m_IfDataExists>
\ No newline at end of file

Event Timeline