Changeset 11924
- Timestamp:
- Aug 9, 2011, 4:21:33 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_default.inc.php
r11893 r11924 137 137 } 138 138 139 if ($conf['show_thumbnail_caption']) 140 {// name of the picture 141 if (isset($row['name']) and $row['name'] != '') 142 { 143 $name = $row['name']; 144 } 145 else 146 { 147 $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 148 } 139 if (isset($row['name']) and $row['name'] != '') 140 { 141 $name = $row['name']; 142 } 143 else 144 { 145 $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 146 } 149 147 150 148 $name = trigger_event('render_element_description', $name); 151 149 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 150 switch ($page['section']) 151 { 152 case 'best_rated' : 153 { 154 $name = '('.$row['rating_score'].') '.$name; 155 break; 156 } 157 case 'most_visited' : 158 { 159 if ( !$user['show_nb_hits']) { 160 $name = '('.$row['hit'].') '.$name; 161 } 162 break; 163 } 164 } 167 165 168 $tpl_var['NAME'] = $name; 169 } 166 $tpl_var['NAME'] = $name; 170 167 171 168 if ( isset($nb_comments_of) ) … … 179 176 $tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures); 180 177 $template->assign('thumbnails', $tpl_thumbnails_var); 181 178 $template->assign('SHOW_THUMBNAIL_CAPTION', $conf['show_thumbnail_caption']); 182 179 $template->assign_var_from_handle('THUMBNAILS', 'index_thumbnails'); 183 180 -
trunk/themes/default/template/thumbnails.tpl
r11918 r11924 8 8 </a> 9 9 </span> 10 {if $SHOW_THUMBNAIL_CAPTION } 10 11 <span class="thumbLegend"> 11 { if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}12 {$thumbnail.NAME} 12 13 {if !empty($thumbnail.icon_ts)} 13 14 <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)"> … … 27 28 {/if} 28 29 </span> 30 {/if} 29 31 </span> 30 32 </li>
Note: See TracChangeset
for help on using the changeset viewer.