Browse Source

Add nocover image

spaghetti 8 years ago
parent
commit
e54f549df1

+ 3
- 4
sections/bookmarks/torrents.php View File

@@ -254,11 +254,10 @@ foreach ($GroupIDs as $GroupID) {
254 254
 <? */ ?>
255 255
 <div class='collage_image image_group_<?=$GroupID?>'>
256 256
       <a href="torrents.php?id=<?=$GroupID?>" class="bookmark_<?=$GroupID?>">
257
-<?  if ($WikiImage) { ?>
257
+<?  if (!$WikiImage) { 
258
+      $WikiImage = STATIC_SERVER.'common/noartwork/nocover.png';
259
+} ?>
258 260
         <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
259
-<?  } else { ?>
260
-        <div style="width: 75px; padding: 5px;"><?=$DisplayName?></div>
261
-<?  } ?>
262 261
       </a>
263 262
     </div>
264 263
 

+ 3
- 4
sections/collages/torrent_collage.php View File

@@ -243,11 +243,10 @@ foreach ($GroupIDs as $GroupID) {
243 243
 ?>
244 244
         <div class="collage_image image_group_<?=$GroupID?>">
245 245
           <a href="torrents.php?id=<?=$GroupID?>">
246
-<?  if ($WikiImage) { ?>
246
+<?  if (!$WikiImage) {
247
+      $WikiImage = STATIC_SERVER.'common/noartwork/nocover.png';
248
+    } ?>
247 249
             <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
248
-<?  } else { ?>
249
-            <span style="width: 107px; padding: 5px;"><?=$DisplayName?></span>
250
-<?  } ?>
251 250
           </a>
252 251
         </div>
253 252
 <?

+ 1
- 1
sections/torrents/details.php View File

@@ -199,7 +199,7 @@ View::show_header($Title, 'browse,comments,torrent,bbcode,recommend,cover_art,su
199 199
 <?  if ($WikiImage != '') { ?>
200 200
       <div><img width="100%" class="lightbox-init" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$AltName?>" /></div>
201 201
 <?  } else { ?>
202
-      <div><img width="100%" src="<?=STATIC_SERVER?>common/noartwork/comedy.png<? /*=$CategoryIcons[$GroupCategoryID - 1]*/ ?>" alt="<?=$Categories[$GroupCategoryID - 1]?>" class="brackets tooltip" title="<?=$Categories[$GroupCategoryID - 1]?>" height="220" border="0" /></div>
202
+      <div><img width="100%" src="<?=STATIC_SERVER?>common/noartwork/nocover.png" alt="<?=$Categories[$GroupCategoryID - 1]?>" class="brackets tooltip" title="<?=$Categories[$GroupCategoryID - 1]?>" /></div>
203 203
 <?
204 204
   }
205 205
 $Index++;

BIN
static/common/noartwork/nocover.png View File


+ 1
- 1
static/styles/global.css View File

@@ -65,7 +65,7 @@ pre br {
65 65
 }
66 66
 
67 67
 .collage_images {
68
-  display: table;
68
+  display: block;
69 69
 }
70 70
 
71 71
 ul.collage_images li {

Loading…
Cancel
Save