Changeset 28262


Ignore:
Timestamp:
04/25/14 19:56:43 (5 years ago)
Author:
sarybe
Message:

[thumbnailtooltip] add dimensions and file size options

Location:
extensions/ThumbnailTooltip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/ThumbnailTooltip/admin/admin.tpl

    r28210 r28262  
    2020    <td align="right" nowrap="nowrap">{'tn_name_link'|@translate} : &nbsp;&nbsp;</td> 
    2121    <td><select name="value1" style="widht:30px"> 
    22           <option label="{'tn_type1'|@translate}" value="tn_type1" {if $VALUE1 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
    23           <option label="{'tn_type2'|@translate}" value="tn_type2" {if $VALUE1 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
    24           <option label="{'tn_type3'|@translate}" value="tn_type3" {if $VALUE1 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
    25           <option label="{'tn_type4'|@translate}" value="tn_type4" {if $VALUE1 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
    26           <option label="{'tn_type5'|@translate}" value="tn_type5" {if $VALUE1 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
    27           <option label="{'tn_type6'|@translate}" value="tn_type6" {if $VALUE1 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
    28           <option label="{'tn_type7'|@translate}" value="tn_type7" {if $VALUE1 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
    29           <option label="{'tn_type8'|@translate}" value="tn_type8" {if $VALUE1 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     22          <option value="tn_type1" {if $VALUE1 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
     23          <option value="tn_type2" {if $VALUE1 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
     24          <option value="tn_type3" {if $VALUE1 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
     25          <option value="tn_type4" {if $VALUE1 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
     26          <option value="tn_type5" {if $VALUE1 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
     27          <option value="tn_type6" {if $VALUE1 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
     28          <option value="tn_type7" {if $VALUE1 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
     29          <option value="tn_type8" {if $VALUE1 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     30          <option value="tn_type9" {if $VALUE1 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 
    3031        </select> 
    3132                <select name="value2" style="widht:30px"> 
    32           <option label="{'tn_none'|@translate}" value="none" {if $VALUE2 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
    33           <option label="{'tn_type1'|@translate}" value="tn_type1" {if $VALUE2 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
    34           <option label="{'tn_type2'|@translate}" value="tn_type2" {if $VALUE2 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
    35           <option label="{'tn_type3'|@translate}" value="tn_type3" {if $VALUE2 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
    36           <option label="{'tn_type4'|@translate}" value="tn_type4" {if $VALUE2 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
    37           <option label="{'tn_type5'|@translate}" value="tn_type5" {if $VALUE2 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
    38           <option label="{'tn_type6'|@translate}" value="tn_type6" {if $VALUE2 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
    39           <option label="{'tn_type7'|@translate}" value="tn_type7" {if $VALUE2 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
    40           <option label="{'tn_type8'|@translate}" value="tn_type8" {if $VALUE2 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     33          <option value="none" {if $VALUE2 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
     34          <option value="tn_type1" {if $VALUE2 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
     35          <option value="tn_type2" {if $VALUE2 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
     36          <option value="tn_type3" {if $VALUE2 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
     37          <option value="tn_type4" {if $VALUE2 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
     38          <option value="tn_type5" {if $VALUE2 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
     39          <option value="tn_type6" {if $VALUE2 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
     40          <option value="tn_type7" {if $VALUE2 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
     41          <option value="tn_type8" {if $VALUE2 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     42          <option value="tn_type9" {if $VALUE2 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 
    4143        </select> 
    4244                <select name="value3" style="widht:30px"> 
    43           <option label="{'tn_none'|@translate}" value="none" {if $VALUE3 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
    44           <option label="{'tn_type1'|@translate}" value="tn_type1" {if $VALUE3 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
    45           <option label="{'tn_type2'|@translate}" value="tn_type2" {if $VALUE3 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
    46           <option label="{'tn_type3'|@translate}" value="tn_type3" {if $VALUE3 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
    47           <option label="{'tn_type4'|@translate}" value="tn_type4" {if $VALUE3 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
    48           <option label="{'tn_type5'|@translate}" value="tn_type5" {if $VALUE3 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
    49           <option label="{'tn_type6'|@translate}" value="tn_type6" {if $VALUE3 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
    50           <option label="{'tn_type7'|@translate}" value="tn_type7" {if $VALUE3 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
    51           <option label="{'tn_type8'|@translate}" value="tn_type8" {if $VALUE3 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     45          <option value="none" {if $VALUE3 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
     46          <option value="tn_type1" {if $VALUE3 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
     47          <option value="tn_type2" {if $VALUE3 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
     48          <option value="tn_type3" {if $VALUE3 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
     49          <option value="tn_type4" {if $VALUE3 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
     50          <option value="tn_type5" {if $VALUE3 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
     51          <option value="tn_type6" {if $VALUE3 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
     52          <option value="tn_type7" {if $VALUE3 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
     53          <option value="tn_type8" {if $VALUE3 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     54          <option value="tn_type9" {if $VALUE3 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 
    5255        </select> 
    5356                <select name="value4" style="widht:30px"> 
    54           <option label="{'tn_none'|@translate}" value="none" {if $VALUE4 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
    55           <option label="{'tn_type1'|@translate}" value="tn_type1" {if $VALUE4 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
    56           <option label="{'tn_type2'|@translate}" value="tn_type2" {if $VALUE4 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
    57           <option label="{'tn_type3'|@translate}" value="tn_type3" {if $VALUE4 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
    58           <option label="{'tn_type4'|@translate}" value="tn_type4" {if $VALUE4 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
    59           <option label="{'tn_type5'|@translate}" value="tn_type5" {if $VALUE4 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
    60           <option label="{'tn_type6'|@translate}" value="tn_type6" {if $VALUE4 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
    61           <option label="{'tn_type7'|@translate}" value="tn_type7" {if $VALUE4 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
    62           <option label="{'tn_type8'|@translate}" value="tn_type8" {if $VALUE4 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     57          <option value="none" {if $VALUE4 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
     58          <option value="tn_type1" {if $VALUE4 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
     59          <option value="tn_type2" {if $VALUE4 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
     60          <option value="tn_type3" {if $VALUE4 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
     61          <option value="tn_type4" {if $VALUE4 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
     62          <option value="tn_type5" {if $VALUE4 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
     63          <option value="tn_type6" {if $VALUE4 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
     64          <option value="tn_type7" {if $VALUE4 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
     65          <option value="tn_type8" {if $VALUE4 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     66          <option value="tn_type9" {if $VALUE4 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 
    6367        </select> 
    6468                <select name="value5" style="widht:30px"> 
    65           <option label="{'tn_none'|@translate}" value="none" {if $VALUE5 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
    66           <option label="{'tn_type1'|@translate}" value="tn_type1" {if $VALUE5 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
    67           <option label="{'tn_type2'|@translate}" value="tn_type2" {if $VALUE5 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
    68           <option label="{'tn_type3'|@translate}" value="tn_type3" {if $VALUE5 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
    69           <option label="{'tn_type4'|@translate}" value="tn_type4" {if $VALUE5 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
    70           <option label="{'tn_type5'|@translate}" value="tn_type5" {if $VALUE5 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
    71           <option label="{'tn_type6'|@translate}" value="tn_type6" {if $VALUE5 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
    72           <option label="{'tn_type7'|@translate}" value="tn_type7" {if $VALUE5 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
    73           <option label="{'tn_type8'|@translate}" value="tn_type8" {if $VALUE5 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     69          <option value="none" {if $VALUE5 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
     70          <option value="tn_type1" {if $VALUE5 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
     71          <option value="tn_type2" {if $VALUE5 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
     72          <option value="tn_type3" {if $VALUE5 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
     73          <option value="tn_type4" {if $VALUE5 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
     74          <option value="tn_type5" {if $VALUE5 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
     75          <option value="tn_type6" {if $VALUE5 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
     76          <option value="tn_type7" {if $VALUE5 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
     77          <option value="tn_type8" {if $VALUE5 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     78          <option value="tn_type9" {if $VALUE5 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 
    7479        </select> 
    7580                <select name="value6" style="widht:30px"> 
    76           <option label="{'tn_none'|@translate}" value="none" {if $VALUE6 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
    77           <option label="{'tn_type1'|@translate}" value="tn_type1" {if $VALUE6 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
    78           <option label="{'tn_type2'|@translate}" value="tn_type2" {if $VALUE6 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
    79           <option label="{'tn_type3'|@translate}" value="tn_type3" {if $VALUE6 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
    80           <option label="{'tn_type4'|@translate}" value="tn_type4" {if $VALUE6 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
    81           <option label="{'tn_type5'|@translate}" value="tn_type5" {if $VALUE6 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
    82           <option label="{'tn_type6'|@translate}" value="tn_type6" {if $VALUE6 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
    83           <option label="{'tn_type7'|@translate}" value="tn_type7" {if $VALUE6 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
    84           <option label="{'tn_type8'|@translate}" value="tn_type8" {if $VALUE6 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     81          <option value="none" {if $VALUE6 == 'tn_none'}selected="selected"{/if}>{'tn_none'|@translate}</option> 
     82          <option value="tn_type1" {if $VALUE6 == 'tn_type1'}selected="selected"{/if}>{'tn_type1'|@translate}</option> 
     83          <option value="tn_type2" {if $VALUE6 == 'tn_type2'}selected="selected"{/if}>{'tn_type2'|@translate}</option> 
     84          <option value="tn_type3" {if $VALUE6 == 'tn_type3'}selected="selected"{/if}>{'tn_type3'|@translate}</option> 
     85          <option value="tn_type4" {if $VALUE6 == 'tn_type4'}selected="selected"{/if}>{'tn_type4'|@translate}</option> 
     86          <option value="tn_type5" {if $VALUE6 == 'tn_type5'}selected="selected"{/if}>{'tn_type5'|@translate}</option> 
     87          <option value="tn_type6" {if $VALUE6 == 'tn_type6'}selected="selected"{/if}>{'tn_type6'|@translate}</option> 
     88          <option value="tn_type7" {if $VALUE6 == 'tn_type7'}selected="selected"{/if}>{'tn_type7'|@translate}</option> 
     89          <option value="tn_type8" {if $VALUE6 == 'tn_type8'}selected="selected"{/if}>{'tn_type8'|@translate}</option> 
     90          <option value="tn_type9" {if $VALUE6 == 'tn_type9'}selected="selected"{/if}>{'Dimensions'|@translate} - {'Filesize'|@translate}</option> 
    8591        </select> 
    8692    </td> 
  • extensions/ThumbnailTooltip/include/class.inc.php

    r28210 r28262  
    3838      foreach($tpl_var as $cle=>$valeur) { 
    3939        $query = " 
    40                   SELECT name AS value1, hit AS value2, hit AS value3, comment AS value4, author AS value5, CONCAT('".l10n('Author').' : '."', author,'') AS value6, rating_score AS value7 
    41                   FROM ".IMAGES_TABLE." 
     40                  SELECT name, hit, comment, author, rating_score, CONCAT(width, 'x', height) AS dimensions, filesize FROM ".IMAGES_TABLE." 
    4241                  WHERE id = ".(int)$tpl_var[$cle]['id']." 
    4342                ;"; 
     
    4746        $details_param = array(); 
    4847           
    49         $details['tn_type1'] = $row['value1']; 
     48        $details['tn_type1'] = $row['name']; 
    5049 
    51         if (!empty($row['value2'])) { 
    52                   $details['tn_type2'] = $row['value2'].' '.strtolower(l10n('Visits')); 
     50        if (!empty($row['hit'])) { 
     51                  $details['tn_type2'] = $row['hit'].' '.strtolower(l10n('Visits')); 
     52                  $details['tn_type3'] = '('.$row['hit'].' '.strtolower(l10n('Visits')).')'; 
     53              if (!empty($row['rating_score'])) { $type8 = ', '.strtolower(l10n('Rating score')).' '.$row['rating_score']; } else { $type8 = ''; } 
     54                  $details['tn_type8'] = '('.$row['hit'].' '.strtolower(l10n('Visits')).$type8.')'; 
    5355        } 
    54         if (!empty($row['value3'])) { 
    55                   $details['tn_type3'] = '('.$row['value3'].' '.strtolower(l10n('Visits')).')'; 
    56             if (!empty($row['value7'])) { $type8 = ', '.strtolower(l10n('Rating score')).' '.$row['value7']; } else { $type8 = ''; } 
    57                   $details['tn_type8'] = '('.$row['value3'].' '.strtolower(l10n('Visits')).$type8.')'; 
     56        if (!empty($row['comment'])) { 
     57                  $details['tn_type4'] = $row['comment']; 
    5858        } 
    59         if (!empty($row['value4'])) { 
    60                   $details['tn_type4'] = $row['value4']; 
     59        if (!empty($row['author'])) { 
     60                  $details['tn_type5'] = $row['author']; 
    6161        } 
    62         if (!empty($row['value5'])) { 
    63                   $details['tn_type5'] = $row['value5']; 
     62        if (!empty($row['author'])) { 
     63                  $details['tn_type6'] = (preg_match('#(,|\/)#i', $row['author'])) ? str_replace(array('(',')'), '', ucfirst(l10n('author(s) : %s', $row['author']))) : l10n('Author').' : '.$row['author']; 
    6464        } 
    65         if (!empty($row['value6'])) { 
    66                   $details['tn_type6'] = $row['value6']; 
     65        if (!empty($row['rating_score'])) { 
     66                  $details['tn_type7'] = strtolower(l10n('Rating score')).' '.$row['rating_score']; 
    6767        } 
    68         if (!empty($row['value7'])) { 
    69                   $details['tn_type7'] = strtolower(l10n('Rating score')).' '.$row['value7']; 
     68        if (!empty($row['dimensions'])) { 
     69                  $details['tn_type9'] = l10n('Dimensions').' : '.$row['dimensions']; 
    7070        } 
     71                if (!empty($row['filesize'])) { 
     72                  if (($params['separator']=='1') && (!empty($details['tn_type9']))) { $details['tn_type9'].= ' - '; } elseif (($params['separator']!='1') && (!empty($details['tn_type9']))) { $details['tn_type9'].= ' '; } else { $details['tn_type9'] = ' '; }  
     73                  $details['tn_type9'].= l10n('Filesize').' : '.l10n('%d Kb', $row['filesize']);  
     74                } 
    7175                   
    7276        if ((!empty($details[$values['value1']])) && ($details[$values['value1']]!='none')) { $details_param[] = $details[$values['value1']]; } 
     
    97101        if ($params['display_author_cat']==true) { 
    98102      foreach($tpl_var as $cle=>$valeur) { 
    99         $query = "SELECT author FROM ".IMAGE_CATEGORY_TABLE." INNER JOIN ".IMAGES_TABLE." ON image_id = id WHERE category_id = ".(int)$tpl_var[$cle]['id']." LIMIT 1"; 
     103        $query = "SELECT author FROM ".IMAGE_CATEGORY_TABLE." INNER JOIN ".IMAGES_TABLE." ON image_id = id WHERE category_id = ".(int)$tpl_var[$cle]['id']." AND author<>'' GROUP BY author"; 
    100104            $result = pwg_query($query); 
    101105            $row = pwg_db_fetch_assoc($result); 
    102  
     106                 
     107                $auteur = ''; 
    103108            if (!empty($row['author'])) { 
    104               if (preg_match('#(,|\/)#i', $row['author'])) { $auteur = str_replace(array('(',')'), '', ucfirst(sprintf($lang['author(s) : %s'],$row['author']))); } else { $auteur = $lang['Author'].' : '.$row['author']; } 
     109                  do { 
     110                    $auteur .= $row['author'].', '; 
     111                  } while ($row = pwg_db_fetch_assoc($result)); 
     112                  $auteur = substr($auteur, 0, -2); 
     113              if (preg_match('#(,|\/)#i', $auteur )) { $auteur = str_replace(array('(',')'), '', ucfirst(sprintf($lang['author(s) : %s'], $auteur))); } else { $auteur = $lang['Author'].' : '.$auteur ; } 
    105114              if (!empty($tpl_var[$cle]['DESCRIPTION'])) { $tpl_var[$cle]['DESCRIPTION'] = $tpl_var[$cle]['DESCRIPTION'].'<br/>'.$auteur; } else { $tpl_var[$cle]['DESCRIPTION'] = $auteur; } 
    106115            } 
Note: See TracChangeset for help on using the changeset viewer.