журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12692: LJSUP-13769: S2 styles Journal Promo blo...

Committer: nnikulochkina
LJSUP-13769: S2 styles Journal Promo block
U   trunk/bin/upgrading/en_LJ.dat
U   trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2012-09-26 08:06:57 UTC (rev 12691)
+++ trunk/bin/upgrading/en_LJ.dat	2012-09-26 09:40:40 UTC (rev 12692)
@@ -10831,6 +10831,7 @@
 
 journalpromo.announce=<a href="[[settings_url]]">Turn on promo</a> in your journal
 journalpromo.no_promotion=You can <a href="[[settings_url]]">change you journal promo settings</a>
+journalpromo.no_promotion.guest=<a href="[[shop_url]]">Buy promo</a> for mininal price.
 journalpromo.stripe.order=Order
 
 journalpromo.admin_bubble.title=Title

Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2012-09-26 08:06:57 UTC (rev 12691)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2012-09-26 09:40:40 UTC (rev 12692)
@@ -346,11 +346,12 @@
 
 function _journalpromo {
     var Page p = get_page();
-    $p->render_journalpromo();
-
-    """
+    
+    if ($p->render_journalpromo()) {
+        """
                 <div class="hr"><hr /></div>
-    """;
+        """;
+    }       
 }
 
 function _print_entry(Entry e) {

Tags: dat, ljcom, nikulochkina, nnikulochkina, s2
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