Page MenuHomeIn-Portal Phabricator

modern-store
No OneTemporary

File Metadata

Created
Mon, Jan 6, 12:27 AM

modern-store

Index: branches/1.0.x/products/shop_all.tpl
===================================================================
--- branches/1.0.x/products/shop_all.tpl (nonexistent)
+++ branches/1.0.x/products/shop_all.tpl (revision 14768)
@@ -0,0 +1,38 @@
+<inp2:m_DefaultParam category=""/>
+
+<inp2:m_ifnot check="m_Param" name="category">
+ <inp2:m_Get name="m_cat_id" result_to_var="category"/>
+</inp2:m_ifnot>
+
+<inp2:m_DefineElement name="shop_all_product_element">
+ <li>
+ <a
+ href="<inp2:ProductLink template='__default__'/>"
+ image="<inp2:ImageSrc primary='1' MaxWidth='80' DefaultWidth='80' html_escape='1'/>"
+ price="<inp2:Field name='Price' currency='selected'/>"
+ cart_link="<inp2:AddToCartLink template='in-commerce/checkout/shop_cart' product_template='__default__'/>"
+ >
+ <inp2:Field name="Name"/>
+ </a>
+ </li>
+</inp2:m_DefineElement>
+
+<ul>
+ <inp2:p_PrintList render_as="shop_all_product_element" per_page="20" parent_cat_id="$category" recursive="1"/>
+</ul>
+
+<script type="text/javascript">
+ $(document).ready(
+ function () {
+ $('a', '#level-content').mouseover(
+ function ($e) {
+ var $me = $(this);
+
+ $('.image', '#level-good').attr('src', $me.attr('image'));
+ $('.price', '#level-good').html( $me.attr('price') );
+ $('.addtocart', '#level-good').attr('href', $me.attr('cart_link') );
+ }
+ );
+ }
+ );
+</script>
\ No newline at end of file
Property changes on: branches/1.0.x/products/shop_all.tpl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
Index: branches/1.0.x/elements/login.elm.tpl
===================================================================
--- branches/1.0.x/elements/login.elm.tpl (nonexistent)
+++ branches/1.0.x/elements/login.elm.tpl (revision 14768)
@@ -0,0 +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="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
Property changes on: branches/1.0.x/elements/login.elm.tpl
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property

Event Timeline