Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Sun, Apr 20, 5:32 PM

modern-store

Index: branches/1.0.x/checkout.tpl
===================================================================
--- branches/1.0.x/checkout.tpl (revision 15799)
+++ branches/1.0.x/checkout.tpl (revision 15800)
@@ -1,391 +1,391 @@
<!--##
<NAME>One Step Checkout</NAME>
<DESC></DESC>
<SECTION>Pages||Checkout</SECTION>
##-->
<inp2:m_DefineElement name="page_title">One Step Checkout</inp2:m_DefineElement>
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<ul class="steps">
<li class="step1"><a href="<inp2:m_Link template='cart'/>"><i></i>Shopping Cart</a></li>
<li class="step2 active"><a href="#"><i></i>One-step Checkout</a></li>
<li class="step3"><span><i></i>Receipt</span></li>
</ul>
<div class="clear"></div>
<div class="cart-detail">
<h1>One-Step Checkout</h1>
<form method="post" action="<inp2:m_FormAction/>" id="checkout-form" class="form checkout-form">
<script type="text/javascript">
FormManager.resetFields('ord');
</script>
<inp2:ord_ShowDefaultAddress type="billing"/>
<inp2:ord_ShowDefaultAddress type="shipping"/>
<div class="halfcol">
<fieldset class="firstline">
<inp2:m_ifnot check="m_LoggedIn">
<div class="login-alt">
Continue as Guest or
<div class="login">
<a href="" id="login-alt">Log In</a>
</div>
</div>
</inp2:m_ifnot>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingEmail" title="lu_fld_YourEmail"/>
</fieldset>
<fieldset>
<div class="fieldset">
Billing Address
</div>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingTo" title="lu_fld_FullName"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingCompany" title="lu_fld_Company"/>
<inp2:m_RenderElement name="inp_edit_address" prefix="ord" field="BillingAddress1" field2="BillingAddress2" title="lu_fld_Address"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingCity" title="lu_fld_City"/>
<inp2:m_RenderElement name="inp_edit_country" prefix="ord" field="BillingCountry" state_field="BillingState" title="lu_fld_Country" has_empty="1" empty_label="lu_opt_SelectCountry"/>
<inp2:m_RenderElement name="inp_edit_state" prefix="ord" field="BillingState" title="lu_fld_State" has_empty="1" row_class="alt1"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingZip" title="lu_fld_Zip" row_class="alt2"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="BillingPhone" title="lu_fld_Phone"/>
</fieldset>
<fieldset class="creditcard">
<div class="fieldset">
Payment Information
</div>
<div class="creditcards">
<inp2:m_if check='ord_UsingCreditCard'>
<span><img src="<inp2:m_TemplatesBase/>img/creditcards.jpg" width="245" height="39" alt="" /></span>
</inp2:m_if>
<inp2:m_if check="pt.gw-paypal_Field" name="PaymentTypeId" gateway="PayPal">
<span<inp2:m_if check='ord_UsingCreditCard'> class="paypal"</inp2:m_if>>
<a href="#" id="paypal" payment_type="<inp2:pt.gw-paypal_Field name='PaymentTypeId' gateway='PayPal'/>">
<img src="<inp2:m_TemplatesBase/>img/paypal.jpg" width="98" height="45" alt="" />
</a>
</span>
<script type="text/javascript">
$(document).ready(
function () {
$('#paypal').click(
function ($e) {
FormManager.getField('ord', 'PaymentType').value = $(this).attr('payment_type');
FormManager.submitForm('ord');
return false;
}
);
}
);
</script>
</inp2:m_if>
</div>
<inp2:m_if check='ord_UsingCreditCard'>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="PaymentAccount" title="lu_fld_CreditCardNumber"/>
<inp2:m_RenderElement design="form_row" prefix="ord" field="PaymentCCExpDate" title="lu_fld_ExpirationDate" row_class="alt1 expdate" field_type="cc_expiration">
<select class="field" name="<inp2:ord_InputName field='PaymentCCExpMonth'/>" id="<inp2:ord_InputName field='PaymentCCExpMonth'/>">
<inp2:ord_PredefinedOptions field="PaymentCCExpMonth" render_as="inp_option_item" selected="selected"/>
</select> /
<select class="field" name="<inp2:ord_InputName field='PaymentCCExpYear'/>" id="<inp2:ord_InputName field='PaymentCCExpYear'/>">
<option value=''></option>
<inp2:ord_PrintYearOptions field="PaymentCCExpYear" render_as="inp_option_item" selected="selected"/>
</select>
</inp2:m_RenderElement>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="PaymentCVV2" title="lu_fld_SecurityCode" row_class="alt2"/>
<input type="hidden" name="check_credit_card" id="check_credit_card" value="true"/>
</inp2:m_if>
</fieldset>
</div>
<div class="halfcol halfcol-last">
<inp2:m_ifnot check="m_LoggedIn">
<div class="badge-optional"></div>
<fieldset class="firstline" id="create-account-password">
<p>
<label><input type="checkbox" id="create_account" name="create_account" value="1"<inp2:m_if check="m_Get" name="create_account"> checked</inp2:m_if>/> Create account for easy purchases and order tracking</label>
</p>
<inp2:m_RenderElement name="inp_edit_password" prefix="ord" field="UserPassword" title="lu_fld_Password" verify_title="lu_fld_VerifyPassword"/>
</fieldset>
</inp2:m_ifnot>
<div class="firstline" style="<inp2:m_ifnot check='m_LoggedIn'>display: none</inp2:m_ifnot>"></div>
<fieldset>
<div class="fieldset">
<label>
<input type="checkbox" id="same_as_billing" name="same_as_billing" value="1"<inp2:m_if check="ord_AddressesTheSame"> checked</inp2:m_if>/> Ship To Address is the same as Billing
</label>
</div>
<div id="shipping-address"<inp2:m_if check="ord_AddressesTheSame"> style="display: none;"</inp2:m_if>>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingTo" title="lu_fld_FullName"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingCompany" title="lu_fld_Company"/>
<inp2:m_RenderElement name="inp_edit_address" prefix="ord" field="ShippingAddress1" field2="ShippingAddress2" title="lu_fld_Address"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingCity" title="lu_fld_City"/>
<inp2:m_RenderElement name="inp_edit_country" prefix="ord" field="ShippingCountry" state_field="ShippingState" title="lu_fld_Country" has_empty="1" empty_label="lu_opt_SelectCountry"/>
<inp2:m_RenderElement name="inp_edit_state" prefix="ord" field="ShippingState" title="lu_fld_State" has_empty="1" row_class="alt1"/>
<inp2:m_RenderElement name="inp_edit_box" prefix="ord" field="ShippingZip" title="lu_fld_Zip" row_class="alt2"/>
</div>
<p id="shipping-type-container">
<inp2:m_include template="elements/ajax/shipping_type"/>
</p>
<div class="safe-shop" id="shipping-address-placeholder"<inp2:m_ifnot check="ord_AddressesTheSame"> style="display: none;"</inp2:m_ifnot>>
<p class="title">100% Safe & Secure Shopping</p>
<ul class="list">
<li>All Transactions are Encrypted</li>
<li>Your Information is Protected</li>
<li>No Hidden Charges</li>
<li>Satisfaction Guaranteed</li>
</ul>
</div>
</fieldset>
<fieldset>
<div class="fieldset">
Your Order Summary (<inp2:orditems_TotalRecords/> Items)
- <a href="<inp2:m_Link template='elements/ajax/order_details' width='800' height='600'/>" class="thickbox link">View Order Details</a>
+ <a href="<inp2:m_Link template='elements/ajax/order_details' width='800' height='600'/>" class="form-manager-window link">View Order Details</a>
</div>
<dl class="total">
<inp2:m_include template="elements/ajax/order_totals"/>
</dl>
<div class="clear"></div>
<div class="terms">
<label><input type="checkbox" id="terms" name="terms" value="yes" checked="true" />&nbsp;I Agree to Terms and Conditions</label>
</div>
<p class="buttons">
<a href="#" class="place-button"><span>Place Order</span></a>
</p>
</fieldset>
</div>
<div class="clear"></div>
<inp2:m_RenderElement name="inp_edit_hidden" prefix="ord" field="PaymentType" db="db"/>
<input type="hidden" name="check_billing_address" id="check_billing_address" value="true"/>
<input type="hidden" name="check_shipping_address" id="check_shipping_address" value="true"/>
</form>
<inp2:m_include template="elements/ajax/payment_form"/>
</div>
<script type="text/javascript">
function CheckoutManager() {}
CheckoutManager.sameAsBilling = <inp2:m_if check="ord_AddressesTheSame">true<inp2:m_else/>false</inp2:m_if>;
CheckoutManager.addressFields = ['To', 'Company', 'Address1', 'Address2', 'City', 'Country', 'State', 'Zip'];
CheckoutManager.initAddressFields = function () {
var $me = this;
$(this.addressFields).each(
function () {
var $field = this.toString();
$( FormManager.getField('ord', 'Billing' + $field) ).change(
function ($e) {
if ( $me.sameAsBilling ) {
$( FormManager.getField('ord', 'Shipping' + $field) ).val( $(this).val() ).change();
}
}
);
$( FormManager.getField('ord', 'Shipping' + $field) ).change(
function ($e) {
if ( !$me.isAddressValid('Shipping') ) {
$('select', '#shipping-type-container').empty().append('<option value="">Please enter address</option>');
return ;
}
$me.updateOrder(
'elements/ajax/shipping_type',
function ($data) {
$('#shipping-type-container').html($data);
}
);
}
);
}
);
}
CheckoutManager.isAddressValid = function ($type) {
var $status = true;
$(this.addressFields).each(
function () {
var $field = this.toString(),
$input = $( FormManager.getField('ord', $type + $field) );
if ( $field == 'Address2' || ($input.is('select') && $('option', $input).length <= 2 ) ) {
// 2nd address line or empty state dropdown
return true;
}
if ( $input.val() == '' ) {
$status = false;
return false;
}
}
);
return $status;
}
CheckoutManager.updateOrder = function ($return_template, $callback, $remove_fields) {
var $me = this,
$params = $('#checkout-form').serializeArray();
if ( $remove_fields === undefined ) {
$remove_fields = ['check_billing_address', 'check_shipping_address', 'check_credit_card'];
}
for (var $i in $params) {
if ( in_array($params[$i].name, $remove_fields) ) {
delete $params[$i];
}
}
$.post(
FormManager.getURL('ord', $return_template, 'OnUpdate'),
$params,
function ($data) {
var $redirect = TB.parseRedirect($data);
if ( $redirect !== false ) {
window.location.href = $redirect;
return ;
}
$callback.apply($me, [$data]);
}
)
}
CheckoutManager.copyAddress = function () {
$(this.addressFields).each(
function () {
var $field = this.toString();
$( FormManager.getField('ord', 'Shipping' + $field) ).val( $( FormManager.getField('ord', 'Billing' + $field) ).val() );
}
);
$( FormManager.getField('ord', 'ShippingAddress1') ).change();
}
CheckoutManager.init = function () {
var $me = this;
this.sameAsBilling = $('#same_as_billing').is(':checked');
$('#same_as_billing').click(
function ($e) {
$me.sameAsBilling = $(this).is(':checked');
if ($me.sameAsBilling) {
$me.copyAddress();
}
$('#shipping-address').toggle(!$me.sameAsBilling);
$('#shipping-address-placeholder').toggle($me.sameAsBilling);
}
);
$('#create_account').click(
function ($e) {
$('.password-block').toggle( $(this).is(':checked') );
}
);
$('#login-alt').click(
function ($e) {
var $login_link = $('#login');
if ( !$login_link.parents('.login:first').hasClass('plashka-sel') ) {
$login_link.click();
}
return false;
}
);
$('body').bind(
'OnAfterLogin',
function ($e, $params) {
// 1. remove login button
$('.login-alt').remove();
// 2. remove user password controls
$('.badge-optional').remove();
$('#create-account-password').fadeOut('slow').remove();
$('.firstline').fadeIn('slow');
FormManager.unregisterField('ord', 'UserPassword');
FormManager.unregisterField('ord', 'VerifyUserPassword');
// 3. put user e-mail into the form
FormManager.setFieldStatus('ord', 'BillingEmail');
FormManager.getField('ord', 'BillingEmail').value = $params['user_email'];
}
)
this.initAddressFields();
}
$(document).ready(
function () {
FormManager.registerForm(
{
prefix: 'ord',
save_event: 'OnUpdateAjax',
id: '<inp2:ord_Field name="OrderId"/>',
form_id: 'checkout-form',
before_close: function ($data, $add_params) {
// when all form data is valid
CheckoutManager.updateOrder(
'elements/ajax/payment_form',
function ($data) {
$('#payment-form').replaceWith($data);
$('#payment-form').submit();
}
);
}
}
);
$('.place-button').click(
function ($e) {
FormManager.submitForm('ord');
return false;
}
);
CheckoutManager.init();
}
);
$('.password-block').toggle( $('#create_account').is(':checked') );
</script>
</inp2:m_DefineElement>
<!--## /MAIN CONTENT ##-->
<!--## DESIGN TEMPLATE ##-->
<inp2:m_Set check_credit_card="true"/>
<inp2:m_include template="designs/default_design.des" pass_params="1"/>
<!--## /DESIGN TEMPLATE ##-->
\ No newline at end of file
Index: branches/1.0.x/products/details.tpl
===================================================================
--- branches/1.0.x/products/details.tpl (revision 15799)
+++ branches/1.0.x/products/details.tpl (revision 15800)
@@ -1,298 +1,298 @@
<!--##
<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_DefineElement>
<inp2:m_DefineElement name="before_content">
<inp2:m_ifnot check="p_OptionsUpdateMode">
<inp2:m_ifnot check="p_FieldEquals" field="OptionsSelectionMode" value="1">
<div class="block-fixed">
<div>
<a href="<inp2:p_AddToCartLink template='elements/ajax/cart_bubble' product_template='__default__'/>" class="button-addtocart" qty_id="product-qty" rel="nofollow"><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>
<script type="text/javascript">
$(document).ready(
function () {
$('.button-addtocart').click(
function ($e) {
$('#add-to-cart-btn').click();
return false;
}
);
}
);
</script>
</inp2:m_ifnot>
</inp2:m_ifnot>
</inp2:m_DefineElement>
<!--## MAIN CONTENT ##-->
<inp2:m_DefineElement name="content">
<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>
<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>
<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:p_ImageSrc format="resize:256x258;wm:img/logo_watermark.png|-1|-1" DefaultImage="img/product_no_picture_big.png"/>" width="256" height="258" alt="" /></li>
<inp2:m_if check="p_HasAdditionalImages">
<inp2:m_DefineElement name="additional_image_element">
<li><img src="<inp2:ImageSrc format="resize:256x258;wm:img/logo_watermark.png|-1|-1;default:img/product_no_picture.png"/>" width="256" height="258" alt="" /></li>
</inp2:m_DefineElement>
<inp2:p_ListImages render_as="additional_image_element" types="additional" per_page="-1" no_table="1" MaxWidth="256" DefaultWidth="256" DefaultImage="img/product_no_picture_big.png"/>
</inp2:m_if>
</ul>
<div class="viewlarger">
<a href="" onclick="TINY.box.show({image:'<inp2:p_ImageSrc format="resize:800x600;wm:img/logo_watermark.png|-1|-1"/>',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 />
<inp2:m_if check="p_ComparePossible">
<inp2:m_if check="p_InCompare">
<a href="#" class="link-compare" added="1">Remove from Comparison List</a><br />
<inp2:m_else/>
<a href="#" class="link-compare" added="0">Compare to other Products</a><br />
</inp2:m_if>
</inp2:m_if>
<a href="#" class="link-wishlist">Add to Wishlist</a><br />
</div>
</div>
<div class="description">
<inp2:m_if check="p_ShouldListOptions">
<inp2:m_Include template="elements/ajax/product_options"/>
<inp2:m_else/>
<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" id="product-qty" value="1" class="field" /></p>
<p class="but"><a href="<inp2:p_AddToCartLink template='elements/ajax/cart_bubble' product_template='__default__'/>" class="addtocart" id="add-to-cart-btn" qty_id="product-qty" rel="nofollow"><span><i>Add to Cart</i></span></a></p>
<p class="avail">Availability: <em><inp2:m_if check="p_Available">In Stock<inp2:m_else/>Not In Stock</inp2:m_if></em></p>
</div>
</inp2:m_if>
<div class="clear"></div>
<dl class="har">
<dt>Model:</dt>
<dd>XT2324</dd>
<dt>Manufacturer:</dt>
<dd><inp2:p_Field name="ManufacturerId"/></dd>
</dl>
<dl class="har har_right">
<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>
</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">
<inp2:p_Field name="cust_Features"/>
</div>
</inp2:m_if>
<inp2:m_if check="p_Field" name="Description">
<div id="tabs-2">
<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>
<div class="clear"></div>
</div>
<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" html_escape="1" cut_first="60"/> (<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='elements/ajax/add_review' width='600' height='340'/>" class="thickbox addreview">Add a Review</a></p>
+ <p class="but-review"><a href="<inp2:p_ProductLink template='elements/ajax/add_review' width='600' height='340'/>" class="form-manager-window 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>
<inp2:rev_PrintList render_as="review_element"/>
<script type="text/javascript">
$(document).ready(
function () {
$('.reviews .row-review').each(
function () {
var $review = $(this);
$('.yes, .no', this).click(
function ($e) {
var $link = $(this),
$counter = $('.' + $link.attr('class') + '-count', $review);
$.get(
$link.attr('href'),
function ($count) {
$counter.html('(' + $count + ')');
}
)
return false;
}
);
}
);
}
);
</script>
</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 type= "text/javascript">
$(document).ready(
function() {
$('#tabs').tabs();
$('#pikame').PikaChoose({autoPlay:false, showCaption:false});
$('.link-compare').click(
function ($e) {
var $me = $(this),
$added = $me.attr('added') == '1';
compare_product(
<inp2:p_Field name="ProductId"/>,
!$added,
function ($data) {
$added = !$added;
$me
.attr('added', $added ? '1' : '0')
.html($added ? 'Remove from Comparison List' : 'Compare to other Products');
}
);
return 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/elements/login.elm.tpl
===================================================================
--- branches/1.0.x/elements/login.elm.tpl (revision 15799)
+++ branches/1.0.x/elements/login.elm.tpl (revision 15800)
@@ -1,89 +1,89 @@
<inp2:m_if check="m_LoggedIn">
<div class="txt logged">Welcome back, <strong><inp2:u_Field name="FirstName"/></strong>!</div>
<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='elements/ajax/register' width='850' height='630'/>" class="thickbox">Register</a> for an account or
+ Welcome! Please <a href="<inp2:m_Link template='elements/ajax/register' width='850' height='630'/>" class="form-manager-window">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,
before_close: function ($data, $add_params) {
$('#header').load('<inp2:m_Link render_template="elements/header.elm" pass="all" no_amp="1" js_escape="1"/>');
$('body').trigger('OnAfterLogin', [$data]);
}
}
);
$('#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/content_boxes.elm.tpl
===================================================================
--- branches/1.0.x/elements/content_boxes.elm.tpl (revision 15799)
+++ branches/1.0.x/elements/content_boxes.elm.tpl (revision 15800)
@@ -1,140 +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_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" 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><a href="<inp2:ItemLink template='elements/ajax/spam_report' width='720' height='350'/>" class="form-manager-window">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

Event Timeline