Oracle (ex_ioracle) wrote in changelog,
Oracle
ex_ioracle
changelog

[livejournal] r18481: LJSUP-8029: New AD slot at journal pages...

Committer: skomarov
LJSUP-8029: New AD slot at journal pages
U   trunk/bin/upgrading/s2layers/classic/layout.s2
U   trunk/bin/upgrading/s2layers/generator/layout.s2
U   trunk/bin/upgrading/s2layers/sixhtml/layout.s2
Modified: trunk/bin/upgrading/s2layers/classic/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/classic/layout.s2	2011-03-05 08:23:31 UTC (rev 18480)
+++ trunk/bin/upgrading/s2layers/classic/layout.s2	2011-03-05 08:38:33 UTC (rev 18481)
@@ -482,6 +482,7 @@
 
     $this->print_head();
     $this->print_stylesheets();
+    var Page p = get_page();
 
 print safe """
   <title>$title</title>
@@ -536,6 +537,11 @@
     print safe $website; "<td>"; server_sig(); "</td></tr>";
 
     "</table></td></tr></table>";
+    if (viewer_sees_ad_box("s2.box.yandex")) {
+        """<div class="box-yandex">""";
+        $p->print_ad_box("s2.box.yandex");
+        """</div>""";
+    }
     if (viewer_sees_hbox_bottom()) {
         """<div style="text-align: center; margin-top: 50px; clear: both;">""";
         $this->print_hbox_bottom();

Modified: trunk/bin/upgrading/s2layers/generator/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/generator/layout.s2	2011-03-05 08:23:31 UTC (rev 18480)
+++ trunk/bin/upgrading/s2layers/generator/layout.s2	2011-03-05 08:38:33 UTC (rev 18481)
@@ -728,8 +728,17 @@
     $this->print_body();
 
 if (viewer_sees_hbox_bottom()) {
+var Page p = get_page();
     """
     <table cellpadding="2" cellspacing="0" border="0" summary="" style="margin-top: 10px;" class="box">
+    <tr> """;
+        if (viewer_sees_ad_box("s2.box.yandex")) {
+            """<div style="width: 744px; margin: 0 auto;">""";
+            $p->print_ad_box("s2.box.yandex");
+            """</div>""";
+        }
+        """
+    </tr>
     <tr><td bgcolor="$*stronger_back" align="center">
     <table width="100%" cellpadding="3" cellspacing="0"
     border="0"

Modified: trunk/bin/upgrading/s2layers/sixhtml/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sixhtml/layout.s2	2011-03-05 08:23:31 UTC (rev 18480)
+++ trunk/bin/upgrading/s2layers/sixhtml/layout.s2	2011-03-05 08:38:33 UTC (rev 18481)
@@ -547,6 +547,7 @@
 }
 
 function handle_sidebar_array(string[][] list) {
+var Page p = get_page();
     foreach var string[] item ($list) {
         var string module = $item[0];
         var string title = $item[1];
@@ -586,6 +587,11 @@
             print_module_ads($title);
         }
     }
+     if (viewer_sees_ad_box("s2.box.yandex")) {
+            """<div class="box-yandex">""";
+            $p->print_ad_box("s2.box.yandex");
+            """</div>""";
+        }
 }
 
 function Page::lay_sidebar_primary() {

Tags: ioracle, livejournal, 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