Changeset 803
- Timestamp:
- Jul 17, 2005, 4:58:42 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/ChangeLog
r802 r803 1 2005-07-17 Pierrick LE GALL 2 3 * new configuration parameter : hide thumbnail captions on main 4 page with $conf['show_thumbnail_caption'] 5 6 * new configuration parameter : hide picture name in title on 7 picture presentation page with $conf['show_picture_name_on_title'] 8 9 * template : new CSS classes to manage picture.php title 10 1 11 2005-07-16 Pierrick LE GALL 2 12 -
trunk/include/category_default.inc.php
r760 r803 62 62 while ($row = mysql_fetch_array($result)) 63 63 { 64 // name of the picture65 if (isset($row['name']) and $row['name'] != '')66 {67 $name = $row['name'];68 }69 else70 {71 $name = str_replace('_', ' ', get_filename_wo_extension($row['file']));72 }73 if ($page['cat'] == 'best_rated')74 {75 $name = '('.$row['average_rate'].') '.$name;76 }77 78 if ($page['cat'] == 'search')79 {80 $name = replace_search($name, $_GET['search']);81 }82 83 64 $thumbnail_url = get_thumbnail_src($row['path'], @$row['tn_ext']); 84 65 … … 112 93 ) 113 94 ); 95 96 if ($conf['show_thumbnail_caption']) 97 { 98 // name of the picture 99 if (isset($row['name']) and $row['name'] != '') 100 { 101 $name = $row['name']; 102 } 103 else 104 { 105 $name = str_replace('_', ' ', get_filename_wo_extension($row['file'])); 106 } 107 if ($page['cat'] == 'best_rated') 108 { 109 $name = '('.$row['average_rate'].') '.$name; 110 } 111 112 if ($page['cat'] == 'search') 113 { 114 $name = replace_search($name, $_GET['search']); 115 } 114 116 115 $template->assign_block_vars( 116 'thumbnails.line.thumbnail.element_name', 117 array( 118 'NAME' => $name 119 ) 120 ); 117 $template->assign_block_vars( 118 'thumbnails.line.thumbnail.element_name', 119 array( 120 'NAME' => $name 121 ) 122 ); 123 } 121 124 122 125 if ($user['show_nb_comments'] -
trunk/include/config_default.inc.php
r801 r803 217 217 // "hour", "half day", "day", "week", "month". 218 218 $conf['feed_period'] = 'week'; 219 220 // show_thumbnail_caption : on thumbnails page, show thumbnail captions ? 221 $conf['show_thumbnail_caption'] = true; 222 223 // show_picture_name_on_title : on picture presentation page, show picture 224 // name ? 225 $conf['show_picture_name_on_title'] = true; 219 226 ?> -
trunk/picture.php
r801 r803 587 587 ) 588 588 ); 589 590 if ($conf['show_picture_name_on_title']) 591 { 592 $template->assign_block_vars('title', array()); 593 } 594 589 595 //------------------------------------------------------- upper menu management 590 596 // download link if file is not a picture -
trunk/template/default/default.css
r800 r803 100 100 101 101 /* POSITION */ 102 103 div#pictureTitle { 104 float:left; 105 text-align:left; 106 } 107 108 div#pictureNumber { 109 float:right; 110 text-align:right; 111 } 102 112 103 113 #gauche,#droite -
trunk/template/default/picture.tpl
r774 r803 2 2 <div class="information">{information.INFORMATION}</div> 3 3 <!-- END information --> 4 4 5 <div class="titrePage"> 5 <div id="gauche"><a href="{U_HOME}">{L_HOME}</a>{LEVEL_SEPARATOR}{CATEGORY}</div> 6 <div id="centre" class="nameImage">{TITLE}</div> 7 <div id="droite">{PHOTO}</div> 6 <div id="pictureTitle"> 7 <a href="{U_HOME}">{L_HOME}</a>{LEVEL_SEPARATOR}{CATEGORY} 8 <!-- BEGIN title --> 9 {LEVEL_SEPARATOR}{TITLE} 10 <!-- END title --> 11 </div> 12 <div id="pictureNumber">{PHOTO}</div> 8 13 </div> 9 14
Note: See TracChangeset
for help on using the changeset viewer.