holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11596: LJSUP-11372: Develop regional self promo...

Committer: akanashin
LJSUP-11372: Develop regional self promo for Ukraine
U   trunk/templates/Shop/SelfPromo.tmpl
Modified: trunk/templates/Shop/SelfPromo.tmpl
===================================================================
--- trunk/templates/Shop/SelfPromo.tmpl	2012-03-16 13:14:13 UTC (rev 11595)
+++ trunk/templates/Shop/SelfPromo.tmpl	2012-03-16 13:19:23 UTC (rev 11596)
@@ -5,6 +5,33 @@
 	<p><TMPL_VAR expr="ml('shop.view.selfpromo.promo.text')"></p>
 </div>
 
+<TMPL_IF ua_rating_is_enabled>
+    <ul class="opt-menu opt-menu-sort">
+        <li>
+            <TMPL_IF view_ua_ratings>
+                <strong><TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.ua')"></strong>
+            <TMPL_ELSE>
+                <TMPL_IF widget_ru>
+                    <a href="http://www.livejournal.com/ratings/posts/?widget=ru&ctxpp=no&uselang=ru&unique_journals=1&rating_country=ua" title="<TMPL_VAR ml_ratings_view_ua_description>"><TMPL_VAR ml_ratings_view_ua></a>
+                <TMPL_ELSE>
+                                       <a href="<TMPL_VAR self_uri>?country=ua" title="<TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.ua.description')">"><TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.ua')"></a>
+                </TMPL_IF>
+            </TMPL_IF>
+        </li>
+        <li>
+            <TMPL_IF view_ua_ratings>
+                <TMPL_IF widget_ru>
+                    <a href="http://www.livejournal.com/ratings/posts/?widget=ru&ctxpp=no&uselang=ru&unique_journals=1&rating_country=default" title="<TMPL_VAR ml_ratings_view_default_description>"><TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.default')"></a>
+                <TMPL_ELSE>
+                        <a href="<TMPL_VAR self_uri>?country=default" title="<TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.default.description')">"><TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.default')"></a>
+                </TMPL_IF>
+            <TMPL_ELSE>
+                <strong><TMPL_VAR expr="ml('/shop/selfpromo.bml.ratings.view.default')"></strong>
+            </TMPL_IF>
+        </li>
+    </ul>
+</TMPL_IF>
+
 <ul class="m-shop-tabs" id="mTabsShop">
 <TMPL_IF name="tab_entry_active">
     <li class="current"><a href="<TMPL_VAR self_uri>?type=entry"> <TMPL_VAR expr="ml('/shop/selfpromo.bml.tab.entry')"></a></li>
@@ -56,4 +83,4 @@
 		return confirm('<TMPL_VAR expr="ml('/shop/selfpromo.bml.confirm.cancel.text')">');
 	});
 	//]]>
-</script>
\ No newline at end of file
+</script>

Tags: akanashin, holyandrew, ljcom, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments