37 if ( trim( $galleryText ) ===
'' ) {
42 $captionWidth = ceil( $thumbWidth - 20 );
44 $outerWrapper =
'<div class="gallerytextwrapper" style="width: ' . $captionWidth .
'px">';
47 $outerWrapper .
'<div class="gallerytext">' . $galleryText .
"</div>"