]> git.mxchange.org Git - friendica-addons.git/commitdiff
showmore: add css classes to elements
authorrabuzarus <>
Wed, 13 Apr 2016 23:28:04 +0000 (01:28 +0200)
committerrabuzarus <>
Wed, 13 Apr 2016 23:28:04 +0000 (01:28 +0200)
showmore/showmore.php

index 9a136c7f23eb319c183cbfd1c869493444896912..a9d8334f3e41dea7532d2df1d11599cf95fb2a70 100755 (executable)
@@ -121,9 +121,9 @@ function showmore_prepare_body(&$a,&$b) {
 
        if($found) {
                $rnd = random_string(8);
-               $b['html'] = '<span id="showmore-teaser-'.$rnd.'" style="display: block;">'.$shortened." ".
-                               '<span id="showmore-wrap-'.$rnd.'" style="white-space:nowrap;" class="fakelink" onclick="openClose(\'showmore-'.$rnd.'\'); openClose(\'showmore-teaser-'.$rnd.'\');" >'.sprintf(t('show more')).'</span></span>'.
-                               '<div id="showmore-'.$rnd.'" style="display: none;">'.$b['html'].'</div>';
+               $b['html'] = '<span id="showmore-teaser-'.$rnd.'" class="showmore-teaser" style="display: block;">'.$shortened." ".
+                               '<span id="showmore-wrap-'.$rnd.'" style="white-space:nowrap;" class="showmore-wrap fakelink" onclick="openClose(\'showmore-'.$rnd.'\'); openClose(\'showmore-teaser-'.$rnd.'\');" >'.sprintf(t('show more')).'</span></span>'.
+                               '<div id="showmore-'.$rnd.'" class="showmore-content" style="display: none;">'.$b['html'].'</div>';
        }
 }