Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[livejournal] r21202: LJSUP-10691: Image placeholders in comme...

Committer: esavintcev
LJSUP-10691: Image placeholders in comments
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-02-16 13:26:42 UTC (rev 21201)
+++ trunk/cgi-bin/cleanhtml.pl	2012-02-16 13:47:26 UTC (rev 21202)
@@ -1149,7 +1149,7 @@
                     }
 
                     if ($img_bad) {
-                        $newdata .= qq~<a class="b-mediaplaceholder b-mediaplaceholder-photo" extern_href="$href_b_link" href="~ .
+                        $newdata .= qq~<a class="b-mediaplaceholder b-mediaplaceholder-photo" data-href="$href_b_link" href="~ .
                             LJ::ehtml($hash->{'src'}) . '">' .
                             '<span class="b-mediaplaceholder-inner">' .
                             '<i class="b-mediaplaceholder-pic"></i>' .
@@ -1157,6 +1157,7 @@
                             '<span class="b-mediaplaceholder-label b-mediaplaceholder-loading">' . LJ::Lang::ml("mediaplaceholder.loading") . '</span>'.
                             '</span>' .
                             '</a>';
+                        $newdata .= $href_b_link ? '<a href="' . $href_b_link .'" class="b-mediaplaceholder-external" title="' . LJ::Lang::ml("mediaplaceholder.link") . '">' . LJ::Lang::ml("mediaplaceholder.link") . '</a>' : '';
                         $alt_output = 1;
                         $opencount{"img"}++;
                     }

Tags: esavintcev, livejournal, pl, savintsev_egor
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