Committer: pkornilov
LJSUP-6515: Custom Userheads.U trunk/templates/Shop/UserHeads.tmpl
Modified: trunk/templates/Shop/UserHeads.tmpl =================================================================== --- trunk/templates/Shop/UserHeads.tmpl 2010-08-24 06:31:58 UTC (rev 9380) +++ trunk/templates/Shop/UserHeads.tmpl 2010-08-24 07:54:53 UTC (rev 9381) @@ -16,7 +16,7 @@ <li class="m-buy-types-item<TMPL_IF is_gift> current</TMPL_IF><tmpl_if is_self_disabled> current</tmpl_if>"><a href="<TMPL_VAR thispage>?gift=1" id="buy_gift"><TMPL_VAR expr="ml('shop.view.gift')"></a></li> </ul> <ul class="b-buy-goods"> - <li class="b-buy-goods-item <tmpl_unless is_gift>current</tmpl_unless><tmpl_if is_self_disabled> disabled</tmpl_if>"> + <li class="b-buy-goods-item<tmpl_unless is_gift> current</tmpl_unless><tmpl_if is_self_disabled> disabled</tmpl_if>"> <form action="" method="post"> <fieldset> <TMPL_VAR form_auth> @@ -24,13 +24,12 @@ <TMPL_LOOP userheads><li class="b-userheads-item"><label for="uh-<TMPL_VAR uh_id>"><input type="radio" name="uh" value="uh-<TMPL_VAR uh_id>" id="uh-<TMPL_VAR uh_id>" /><img src="<TMPL_VAR uh_img>" width="17" height="17" alt="" /><br /><TMPL_IF expr="int(price)==0"><strong class="free"><TMPL_VAR price_free></strong><TMPL_ELSE><TMPL_IF expr="int(price)>=2"><strong class="premium"><TMPL_VAR price_premium></strong><TMPL_ELSE><strong>$<TMPL_VAR price></strong></TMPL_IF></TMPL_IF><br /><TMPL_if 0><TMPL_if sup_sms><a href="javascript:void();"><TMPL_VAR expr="ml('shop.view.vgifts.paybysms')"></a></TMPL_if></TMPL_if></label></li></TMPL_LOOP> </ul> <div class="b-buy-total canyon"> - <p class="canyon-section"><TMPL_VAR expr="ml('shop.view.total')"> <strong>$<span class="i-total"></span></strong></p> <button type="submit" class="canyon-side"><TMPL_VAR expr="ml('shop.view.add_to_cart')"></button> </div> </fieldset> </form> </li> - <li class="b-buy-goods-item <tmpl_if is_gift>current</tmpl_if><tmpl_if is_self_disabled> current</tmpl_if>"> + <li class="b-buy-goods-item<tmpl_if is_gift> current</tmpl_if><tmpl_if is_self_disabled> current</tmpl_if>"> <TMPL_IF expr="(default_page eq 'self')"> <form action="" method="post"> <fieldset> @@ -66,12 +65,11 @@ </ul> </div> <ul class="b-buy-form b-userheads-items"> - <TMPL_LOOP userheads><li class="b-userheads-item"><label for="uh-<TMPL_VAR uh_id>"><input type="radio" name="uh" value="uh-<TMPL_VAR uh_id>" id="uh-<TMPL_VAR uh_id>" /><img src="<TMPL_VAR uh_img>" width="17" height="17" alt="" /><br /><TMPL_IF expr="int(price)==0"><strong class="free"><TMPL_VAR price_free></strong><TMPL_ELSE><TMPL_IF expr="int(price)>=2"><strong class="premium"><TMPL_VAR price_premium></strong><TMPL_ELSE><strong>$<TMPL_VAR price></strong></TMPL_IF></TMPL_IF><br /><TMPL_if 0><TMPL_if sup_sms><a href="javascript:void();"><TMPL_VAR expr="ml('shop.view.vgifts.paybysms')"></a></TMPL_if></TMPL_if></label></li></TMPL_LOOP> + <TMPL_LOOP userheads><li class="b-userheads-item"><label for="uh2-<TMPL_VAR uh_id>"><input type="radio" name="uh" value="uh-<TMPL_VAR uh_id>" id="uh2-<TMPL_VAR uh_id>" /><img src="<TMPL_VAR uh_img>" width="17" height="17" alt="" /><br /><TMPL_IF expr="int(price)==0"><strong class="free"><TMPL_VAR price_free></strong><TMPL_ELSE><TMPL_IF expr="int(price)>=2"><strong class="premium"><TMPL_VAR price_premium></strong><TMPL_ELSE><strong>$<TMPL_VAR price></strong></TMPL_IF></TMPL_IF><br /><TMPL_if 0><TMPL_if sup_sms><a href="javascript:void();"><TMPL_VAR expr="ml('shop.view.vgifts.paybysms')"></a></TMPL_if></TMPL_if></label></li></TMPL_LOOP> </ul> <ul class="b-buy-form b-buy-onetime b-buy-gift"> </ul> <div class="b-buy-total canyon"> - <p class="canyon-section"><TMPL_VAR expr="ml('shop.view.total')"> <strong>$<span class="i-total"><TMPL_VAR first_price></span></strong></p> <button type="submit" class="canyon-side"><TMPL_VAR expr="ml('shop.view.add_to_cart')"></button> </div> </fieldset> @@ -100,7 +98,3 @@ </div> </div> -<script type='text/javascript'> - var userheads_price=<TMPL_VAR js_prices> - var userheads_price_gift=<TMPL_VAR js_prices_rcpt> -</script>