Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r10412: LJSUP-8445: S2 ljadskyscraper

Committer: esavintcev
LJSUP-8445: S2 ljadskyscraper
U   trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
Modified: trunk/bin/upgrading/s2layers/tranquilityii/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-04-21 04:11:28 UTC (rev 10411)
+++ trunk/bin/upgrading/s2layers/tranquilityii/layout.s2	2011-04-21 04:14:47 UTC (rev 10412)
@@ -650,6 +650,11 @@
             margin-left: 5px;
         }
 
+        .box-vertical,
+        .box-vertical2 {
+            margin: 0 0 0 -5px;
+        }
+
         #footer {
             position: relative;
             font-family: $*f_footer;
@@ -797,6 +802,7 @@
 # -------------------------------
 function Page::print ( )
 {
+    var Page p = get_page();
     var string title = $this->title();
 
     # generate page id:
@@ -851,6 +857,16 @@
                 print_lj_links($this);
                 print safe ($this->lay_sidebar_view_summary());
                 $this->print_linklist();
+                if (viewer_sees_ad_box("s2.vertical")) {
+                    """<div class="box-vertical">""";
+                    $p->print_ad_box("s2.vertical");
+                    """</div>""";
+                }
+                if (viewer_sees_ad_box("s2.vertical.2")) {
+                    """<div class="box-vertical2">""";
+                    $p->print_ad_box("s2.vertical.2");
+                    """</div>""";
+                }
             print "</div>\n";
             print "<div id=\"content\">\n";
                 $this->print_body();

Tags: ljcom, s2, savintsev_egor
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