37 if ( trim( $galleryText ) ===
'' ) {
41 # ATTENTION: The newline after <div class="gallerytext"> is needed to
42 # accommodate htmltidy which in version 4.8.6 generated crackpot HTML
43 # in its absence, see: https:
47 $captionWidth = ceil( $thumbWidth - 20 );
49 $outerWrapper =
'<div class="gallerytextwrapper" style="width: ' . $captionWidth .
'px">';
51 return "\n\t\t\t" . $outerWrapper .
'<div class="gallerytext">' .
"\n"
53 .
"\n\t\t\t</div></div>";