holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12787: LJSUP-13593: Add new button for lj-like ...

Committer: akanashin
LJSUP-13593: Add new button for lj-like (surfingbird)
U   trunk/cgi-bin/LJ/CleanHtml/Like.pm
U   trunk/templates/CleanHtml/Like.tmpl
Modified: trunk/cgi-bin/LJ/CleanHtml/Like.pm
===================================================================
--- trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-10-18 10:33:23 UTC (rev 12786)
+++ trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-10-18 11:57:45 UTC (rev 12787)
@@ -51,7 +51,7 @@
                         )];
 
         if (($remote && LJ::SUP->is_remote_sup()) || LJ::SUP::is_sup_ip()) {
-            push @$buttons_list, 'vkontakte', 'surfinbird';
+            push @$buttons_list, 'vkontakte', 'surfingbird';
         }
 
         return $buttons_list;
@@ -61,7 +61,7 @@
     my @buttons = ();
     
     my $params = {};
-   
+
     foreach my $button ( split /,\s*/, $buttons_list ) {
         if ($button =~ /^(?:re|repost)(?:\?budget=(\d+))?$/i) {
             $params->{repost_budget} = $1 if $1;
@@ -79,8 +79,8 @@
         elsif ( $button =~ /^(?:vk|vkontakte)$/i ) {
             push @buttons, 'vkontakte';
         }
-        elsif ( $button =~ /^(?:su|surfinbird)$/i ) {
-            push @buttons, 'surfinbird';
+        elsif ( $button =~ /^(?:su|surfingbird)$/i ) {
+            push @buttons, 'surfingbird';
         }
         elsif ( $button =~ /^(?:tu|tumblr)$/i ) {
             push @buttons, 'tumblr';
@@ -136,9 +136,9 @@
     $params->{'lj_like.google'} = 1;
 }
 
-sub __surfinbird {
+sub __surfingbird {
     my ($self, $params) = @_;
-    $params->{'lj_like.surfinbird'} = 1;
+    $params->{'lj_like.surfingbird'} = 1;
 }
 
 sub __tumblr {
@@ -222,8 +222,8 @@
         elsif ( $button eq 'google' ) {
             $self->__google($params);
         }
-        elsif ( $button eq 'surfinbird' ) {
-            $self->__surfinbird($params);
+        elsif ( $button eq 'surfingbird' ) {
+            $self->__surfingbird($params);
         }
         elsif ( $button eq 'tumblr' ) {
             $self->__tumblr($params);

Modified: trunk/templates/CleanHtml/Like.tmpl
===================================================================
--- trunk/templates/CleanHtml/Like.tmpl	2012-10-18 10:33:23 UTC (rev 12786)
+++ trunk/templates/CleanHtml/Like.tmpl	2012-10-18 11:57:45 UTC (rev 12787)
@@ -27,7 +27,7 @@
 </div>
 </tmpl_if>
 
-<tmpl_if lj_like.surfinbird>
+<tmpl_if lj_like.surfingbird>
 <div class="lj-like-item lj-like-item-surfinbird">
 <a target="_blank" class="surfinbird__like_button" data-text="<TMPL_VAR expr="ml('ljlike.surfingbird')">" data-url="<tmpl_var url_eurl_ehtml>" href="http://surfingbird.ru/share">Серф</a>
 </div>

Tags: akanashin, holyandrew, ljcom, pm, tmpl
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