sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r22822: LJSUP-13514: Create JournalPromo Widget ...

Committer: vtroitsky
LJSUP-13514: Create JournalPromo Widget for Control Strip
U   trunk/cgi-bin/LJ/ControlStrip.pm
Modified: trunk/cgi-bin/LJ/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/ControlStrip.pm	2012-09-06 07:41:12 UTC (rev 22821)
+++ trunk/cgi-bin/LJ/ControlStrip.pm	2012-09-06 12:05:25 UTC (rev 22822)
@@ -2,6 +2,7 @@
 
 use strict;
 use LJ::Widget::Calendar;
+use LJ::Widget::JournalPromoStrip;
 
 sub render
 {
@@ -313,6 +314,10 @@
                                            ? LJ::Widget::SiteMessages->render
                                            : '';
 
+    $data_control_strip->{promo_strip} = LJ::Widget::JournalPromoStrip->should_render(remote => $remote, journal => $journal)
+                                            ? LJ::Widget::JournalPromoStrip->render(remote => $remote, journal => $journal)
+                                            : '';
+
     {
         my $extra_cells;
         LJ::run_hooks('add_extra_cells_in_controlstrip', \$extra_cells);

Tags: livejournal, pm, sunnyman, vtroitsky
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