holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12762: https://jira.sup.com/browse/LJSUP-13593

Committer: akanashin
https://jira.sup.com/browse/LJSUP-13593
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-15 20:31:03 UTC (rev 12761)
+++ trunk/cgi-bin/LJ/CleanHtml/Like.pm	2012-10-16 07:02:30 UTC (rev 12762)
@@ -42,6 +42,7 @@
         return [qw( repost
                     facebook
                     twitter
+                    surfinbird
                     google
                     vkontakte)];
     }
@@ -67,6 +68,9 @@
         elsif ( $button =~ /^(?:vk|vkontakte)$/i ) {
             push @buttons, 'vkontakte';
         }
+        elsif ( $button =~ /^(?:su|surfinbird)$/i ) {
+            push @buttons, 'surfinbird';
+        }
         elsif ( $button =~ /^(?:lj|livejournal)$/i ) {
             push @buttons, 'livejournal';
         }
@@ -117,6 +121,11 @@
     $params->{'lj_like.google'} = 1;
 }
 
+sub __surfinbird {
+    my ($self, $params) = @_;
+    $params->{'lj_like.surfinbird'} = 1;
+}
+
 sub __vkontakte {
     my ($self, $params, $vkontakte_like_js) = @_;
 
@@ -192,6 +201,9 @@
         elsif ( $button eq 'google' ) {
             $self->__google($params);
         }
+        elsif ( $button eq 'surfinbird' ) {
+            $self->__surfinbird($params);
+        }
         elsif ( $button eq 'vkontakte' ) {
             $self->__vkontakte($params, $opts->{'vkontakte_like_js'});
         }

Modified: trunk/templates/CleanHtml/Like.tmpl
===================================================================
--- trunk/templates/CleanHtml/Like.tmpl	2012-10-15 20:31:03 UTC (rev 12761)
+++ trunk/templates/CleanHtml/Like.tmpl	2012-10-16 07:02:30 UTC (rev 12762)
@@ -27,6 +27,12 @@
 </div>
 </tmpl_if>
 
+<tmpl_if lj_like.surfinbird>
+<div>
+<a target="_blank" class="surfinbird__like_button" data-surf-config="{'layout': 'common', 'width': '120', 'height': '20'}" href="http://surfingbird.ru/share">Серф</a>
+</div>
+</tmpl_if>
+
 <tmpl_if lj_like.vk_no_conf>
 <div class="lj-like-item lj-like-item-vkontakte"><b>[vkontakte like]</b></div>
 </tmpl_if>

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