Ejemplo n.º 1
0
     if (strlen($caption) > 27) {
         $caption = substr(stripslashes($caption), 0, 24) . "...";
     } else {
         $caption = stripslashes($caption);
     }
     if ($caption != '') {
         print border($addon['config']['rg_tn_bc'], 'start', $caption);
     } else {
         print border($addon['config']['rg_tn_bc'], 'start', $roster->locale->act['nocaption']);
     }
     echo '<table width="100%" cellspacing="0" cellpadding="0" border="0">
 <tr>
 <td colspan=2>';
     $path = $imgdirthumb . $row['file'] . '-thumb.' . $row['ext'];
     $path2 = $imgdir . $row['catagory'] . '/' . $row['file'] . '.' . $row['ext'];
     echo $functions->getimage($row['id'], $addon['config']['rg_u_ovlb'], $addon['config']['rg_u_lb'], $row['disc'], $row['caption'], $path, $path2, $rating, $addon['config']['rg_width'], $addon['config']['rg_height'], $row['catagory']);
     echo '</td></tr>';
     $caption = '';
     if ($addon['config']['rg_dct'] == 1) {
         if ($addon['config']['rg_caption_align'] == 0) {
             $caption .= $row['caption'];
         }
     }
     if ($addon['config']['rg_drt'] == 1) {
         if ($addon['config']['rg_rating_align'] == 0) {
             $caption .= ' ' . $rating;
         }
     }
     if ($caption != '') {
         echo '<tr>
       <td class="divider_' . $addon['config']['rg_tn_bc'] . '" colspan=2><img src="img/pixel.gif" width="1" height="1" alt="" /></td>