includes/render.php
changeset 320 112debff64bd
parent 317 f8356d9c3481
child 322 5f1cd51bf1be
equal deleted inserted replaced
319:8be996c3740d 320:112debff64bd
   887         $clear_text = '';
   887         $clear_text = '';
   888         if ( !empty($clear) )
   888         if ( !empty($clear) )
   889         {
   889         {
   890           $side = ( $clear == '|left' ) ? 'left' : 'right';
   890           $side = ( $clear == '|left' ) ? 'left' : 'right';
   891           $opposite = ( $clear == '|left' ) ? 'right' : 'left';
   891           $opposite = ( $clear == '|left' ) ? 'right' : 'left';
   892           $clear_text .= "float: $side; margin-$opposite: 20px;";
   892           $clear_text .= "float: $side; margin-$opposite: 20px; width: {$r_width}px;";
   893           $complete_tag .= 'style="' . $clear_text . '" ';
   893           $complete_tag .= 'style="' . $clear_text . '" ';
   894         }
   894         }
   895         $complete_tag .= '>';
   895         $complete_tag .= '>';
   896         
   896         
   897         $complete_tag .= '<a href="' . makeUrlNS('File', $filename) . '" style="display: block;">';
   897         $complete_tag .= '<a href="' . makeUrlNS('File', $filename) . '" style="display: block;">';