Browse Source

Add nocover image

spaghetti 8 years ago
parent
commit
e54f549df1

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

254
 <? */ ?>
254
 <? */ ?>
255
 <div class='collage_image image_group_<?=$GroupID?>'>
255
 <div class='collage_image image_group_<?=$GroupID?>'>
256
       <a href="torrents.php?id=<?=$GroupID?>" class="bookmark_<?=$GroupID?>">
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
         <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
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
       </a>
261
       </a>
263
     </div>
262
     </div>
264
 
263
 

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

243
 ?>
243
 ?>
244
         <div class="collage_image image_group_<?=$GroupID?>">
244
         <div class="collage_image image_group_<?=$GroupID?>">
245
           <a href="torrents.php?id=<?=$GroupID?>">
245
           <a href="torrents.php?id=<?=$GroupID?>">
246
-<?  if ($WikiImage) { ?>
246
+<?  if (!$WikiImage) {
247
+      $WikiImage = STATIC_SERVER.'common/noartwork/nocover.png';
248
+    } ?>
247
             <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="100%" />
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
           </a>
250
           </a>
252
         </div>
251
         </div>
253
 <?
252
 <?

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

199
 <?  if ($WikiImage != '') { ?>
199
 <?  if ($WikiImage != '') { ?>
200
       <div><img width="100%" class="lightbox-init" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$AltName?>" /></div>
200
       <div><img width="100%" class="lightbox-init" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$AltName?>" /></div>
201
 <?  } else { ?>
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
 $Index++;
205
 $Index++;

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


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

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

Loading…
Cancel
Save