Committer: gprochaev
LJSUP-6515. Custom UserheadsA trunk/templates/Shop/UserHeads.tmpl
Added: trunk/templates/Shop/UserHeads.tmpl =================================================================== --- trunk/templates/Shop/UserHeads.tmpl (rev 0) +++ trunk/templates/Shop/UserHeads.tmpl 2010-08-20 06:57:28 UTC (rev 9364) @@ -0,0 +1,108 @@ +<TMPL_INCLUDE name="templates/Shop/Error.tmpl"> +<TMPL_INCLUDE name="templates/Shop/Warnings.tmpl"> + +<div id="shop_userheads"> +<tmpl_var js_complete> + +<div class="b-shop-intro b-userheads-intro"> + <h3><TMPL_VAR expr="ml('shop.view.userheads.promo.title')"></h3> + <p><TMPL_VAR expr="ml('shop.view.userheads.promo.text')"></p> +</div> + +<p class="b-shop-important"><TMPL_VAR expr="ml('shop.view.userheads.important', 'siteroot', lj_siteroot)"></p> +<div class="b-buy"> + <ul class="m-buy-types"> + <li class="m-buy-types-item<TMPL_UNLESS is_gift> current</TMPL_UNLESS><tmpl_if is_self_disabled> disabled</tmpl_if>"><tmpl_unless is_self_disabled><a href="<TMPL_VAR thispage>"></tmpl_if><TMPL_VAR expr="ml('shop.view.for_myself')"><tmpl_unless is_self_disabled></a></tmpl_if></li> + <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>"> + <form action="" method="post"> + <fieldset> + <TMPL_VAR form_auth> + <div class="b-buy-intro"> + <TMPL_LOOP userheads> + <img src="<TMPL_VAR uh_img>"><br/><input type="radio" name="uh" value="uh-<TMPL_VAR uh_id>"><TMPL_VAR price> + </TMPL_LOOP> + </div> + <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>"> + <TMPL_IF expr="(default_page eq 'self')"> + <form action="" method="post"> + <fieldset> + <TMPL_VAR form_auth> + <div class="b-buy-goptions b-buy-guserheads"> + <h4><TMPL_VAR expr="ml('shop.view.gift.title.options')"></h4> + <ul class="b-buy-goptions-form"> + <li class="b-buy-goptions-recipient"> + <label for="giftto"><TMPL_VAR expr="ml('shop.view.gift.rcpt')"></label> + <span><TMPL_VAR EXPR="ljuser(rcpt_username)"> (<a href="<TMPL_VAR thispage>?gift=1"><TMPL_VAR expr="ml('shop.view.change')"></a>)</span> + </li> + <li class="b-buy-goptions-date"> + <label for="_mm"><TMPL_VAR expr="ml('shop.view.gift.giveafter')"></label> + <span> + <select id="_mm" name="giveafter_mm" class="select"> + <TMPL_LOOP name="months"><TMPL_IF EXPR="num == giveafter_mm"> + <option value="<TMPL_VAR num>" selected="selected"> + <TMPL_VAR name> + </option> + <TMPL_ELSE> + <option value="<TMPL_VAR num>"> + <TMPL_VAR name> + </option> + </TMPL_IF> + </TMPL_LOOP> + </select> + <input type="text" size="2" id="_dd" name="giveafter_dd" value="<TMPL_VAR giveafter_dd>" maxlength="2" class="text" /><input type="text" size="4" id="_yyyy" name="giveafter_yyyy" value="2010" maxlength="4" class="text" /> + </span> + </li> + <li class="b-buy-goptions-anon"> + <input type="checkbox" name="gift_anon" id="gift_anon" value="1" class="checkbox i-buy-goptions-anon" /><label for="gift_anon"><TMPL_VAR expr="ml('shop.view.gift.anon')"></label> + </li> + </ul> + </div> + <div class="b-buy-intro"> + <p><TMPL_VAR description></p> + </div> + <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> + </form> + <TMPL_ELSE> + <form action="<TMPL_VAR thispage>" method="get"> + <fieldset> + <input type="hidden" name="gift" value="1"> + <div class="b-buy-goptions b-buy-guserheads"> + <h4><TMPL_VAR expr="ml('shop.view.gift.title.options')"></h4> + <ul class="b-buy-goptions-form"> + <li class="b-buy-goptions-recipient"> + <label for="giftto"><TMPL_VAR expr="ml('shop.view.gift.rcpt')"></label> + <span><input type="text" name="giftto" id="giftto" maxlength="15" size="15" value="" class="text" /><i class="i-buy-goptions-recipient"></i></span> + </li> + </ul> + </div> + <div class="b-buy-total canyon"> + <button type="submit" class="canyon-side"><TMPL_VAR expr="ml('shop.view.next')"></button> + </div> + </fieldset> + </form> + </TMPL_IF> + </li> + </ul> +</div> + +</div> +<script type='text/javascript'> + var userheads_price=<TMPL_VAR js_prices> + var userheads_price_gift=<TMPL_VAR js_prices_rcpt> +</script>