changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r6993: LJINT-200: Remove Avito banners and link...

Committer: gariev
LJINT-200: Remove Avito banners and links from LJ.com


U   trunk/cgi-bin/LJ/Hooks/SUP.pm
U   trunk/htdocs/index.bml.sup
Modified: trunk/cgi-bin/LJ/Hooks/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/SUP.pm	2009-01-22 19:24:03 UTC (rev 6992)
+++ trunk/cgi-bin/LJ/Hooks/SUP.pm	2009-01-23 07:18:52 UTC (rev 6993)
@@ -345,8 +345,6 @@
             id      => $ljru_menu_id,
             url     => 'http://www.livejournal.ru/',
             links   => [
-                {   url     => 'http://avito.livejournal.ru/',
-                    text    => BML::ml('ljru.nav.avito')},
                 {   url     => 'http://www.livejournal.ru/themes',
                     text    => BML::ml('ljru.nav.themes')},
                 {   url     => 'http://www.livejournal.ru/photos',
@@ -362,16 +360,6 @@
             ],
         };
 
-        ## Add avito menu item into the Journal menu block
-        unless ($LJ::DISABLED{avito}) {
-            my @journal_item = grep { $_->{id} eq "horizon-menu-journal" || $_->{id} eq 'vertigo-menu-journal' } @$aref;
-            if (@journal_item) {
-                unless (grep { $_->{url} eq $LJ::BAZAR_URL } @{$journal_item[0]->{links}} ) {
-                    push @{$journal_item[0]->{links}}, {url => $LJ::BAZAR_URL, text => BML::ml('ljru.nav.post_to_bazar')};
-                }
-            }
-        }
-
         ##
         ## In horizon scheme, replace the first item.
         ## Othewise, insert as first item.
@@ -394,7 +382,6 @@
             { 'name' => BML::ml('horizon.barenav.post'),    'url' => "$siteroot/update.bml" },
             { 'name' => BML::ml('horizon.barenav.explore'), 'url' => "$siteroot/site/search.bml" },
             { 'name' => BML::ml('horizon.barenav.giftshop'),'url' => "$siteroot/shop/" },
-            { 'name' => BML::ml('ljru.nav.avito'),          'url' => 'http://avito.livejournal.ru/' },
         );
     }
     return;
@@ -549,19 +536,6 @@
     return LJ::Subscription::Pending->new($remote, event => 'SupOfficialPost', );
 });
 
-LJ::register_hook("after_entry_post_extra_options", sub {
-    my %opts        = @_;
-    my $ju          = $opts{user};
-    my $itemlink    = $opts{itemlink};
-
-    return if $LJ::DISABLED{avito};
-    return undef unless LJ::SUP->is_remote_sup();
-
-    use vars '%ML';
-    local *ML = \%BML::ML;
-    return "<li><a href=\"$LJ::BAZAR_POST_URL$itemlink\">".$ML{'after_entry_post_extra_option'}."</a></li>\n";
-});
-
 LJ::register_hook("rss_extra_info", sub {
     my $journalinfo = shift;
     my $item = shift;

Modified: trunk/htdocs/index.bml.sup
===================================================================
--- trunk/htdocs/index.bml.sup	2009-01-22 19:24:03 UTC (rev 6992)
+++ trunk/htdocs/index.bml.sup	2009-01-23 07:18:52 UTC (rev 6993)
@@ -31,10 +31,6 @@
     $headextra .= qq[<!--[if IE]><link rel="stylesheet" type="text/css" href="$LJ::STATPREFIX/stc/lanzelot/css/index.bml.sup.ie.css" /><![endif]-->];
 	my $rating_posts = LJ::Widget::ExtBlock->render(id=>'rating.posts');
 	my $rating_users = LJ::Widget::ExtBlock->render(id=>'rating.users');
-	my $avito_box    = LJ::Widget::ExtBlock::Dynamic->render(
-        id      => 'avito.box', 
-        params  => { id => ($remote) ? $remote->id : 0 }, 
-    );
 	my $real_time_sms= LJ::Widget::ExtBlock->render(id=>'realtime.sms');
 	
 	
@@ -73,9 +69,6 @@
                 $ret .= "<li class='news'>" . BML::ml('.loggedin.greeting.alert', {'user' => $news->ljuser_display}) . "</li>";
             }
         }
-        unless ($LJ::DISABLED{avito}) {
-            $ret .= "<li class='hotlink-avito'><a href='$LJ::BAZAR_URL'>$ML{'.avito.sell_an_item'}</a></li>";
-        }
         $ret .= "</ul>";
         $ret .= "</div><!-- end .homepage-account-left -->";
         $ret .= "<div class='homepage-account-right'>";
@@ -131,10 +124,6 @@
        
         $ret .= $real_time_sms;
         
-        unless ($remote->get_cap('paid')) {
-            $ret .= $avito_box;
-        }
-        
     	$ret .=	"<div class='promo-block no-widget-div'>
 			<span class='header'>Рейтинги</span>
 			<div>
@@ -225,8 +214,6 @@
 	
                 $real_time_sms
 
-	            $avito_box
-			
 			<div class="promo-block no-widget-div">
 				<span class="header">Рейтинги</span>
 				<div>

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