Changeset 17008
- Timestamp:
- Jul 25, 2012, 1:43:35 PM (12 years ago)
- Location:
- branches/2.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/admin.php
r16929 r17008 220 220 } 221 221 222 // any photo in the caddie? 223 $query = ' 224 SELECT COUNT(*) 225 FROM '.CADDIE_TABLE.' 226 WHERE user_id = '.$user['id'].' 227 ;'; 228 list($nb_photos_in_caddie) = pwg_db_fetch_row(pwg_query($query)); 229 230 if ($nb_photos_in_caddie > 0) 231 { 232 $template->assign( 233 array( 234 'NB_PHOTOS_IN_CADDIE' => $nb_photos_in_caddie, 235 'U_CADDIE' => $link_start.'batch_manager&cat=caddie', 236 ) 237 ); 238 } 239 222 240 // +-----------------------------------------------------------------------+ 223 241 // | Plugin menu | -
branches/2.4/admin/themes/default/template/admin.tpl
r15230 r17008 42 42 <li><a href="{$U_RECENT_SET}">{'Recent photos'|@translate}</a></li> 43 43 <li><a href="{$U_BATCH}">{'Batch Manager'|@translate}</a></li> 44 {if $NB_PHOTOS_IN_CADDIE > 0} 45 <li><a href="{$U_CADDIE}">{'Caddie'|@translate}<span class="adminMenubarCounter">{$NB_PHOTOS_IN_CADDIE}</span></a></li> 46 {/if} 44 47 </ul> 45 48 </dd> -
branches/2.4/admin/themes/default/theme.css
r14546 r17008 1115 1115 #wImg {max-height:100px;border:2px solid #ccc;margin-top:5px;} 1116 1116 #addWatermark {display:none;} 1117 1118 .adminMenubarCounter { 1119 background-color:#666; 1120 color:white; 1121 padding:1px 5px; 1122 border-radius:10px; 1123 -moz-border-radius:10px; 1124 -webkit-border-radius:10px; 1125 -border-radius:10px; 1126 margin-left:5px; 1127 }
Note: See TracChangeset
for help on using the changeset viewer.