We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa8b87 commit adc756fCopy full SHA for adc756f
README.md
@@ -56,8 +56,12 @@ $clothing = $collection->categoryClothing()->getAll();
56
$catsuit = $collection->getByID('clothing.catsuit');
57
58
// Get the screenshot URL for a mod
59
-if($catsuit->hasImage()) {
60
- echo '<img src"'.$catsuit->getImageURL().'">';
+$images = $catsuit->getScreenshotCollection();
+if($images->hasScreenshots()) {
61
+ $default = $images->getDefault();
62
+ ?>
63
+ <img src"<?php php echo $default->getURL() ?>" alt="<?php echo $default->getTitle() ?>">
64
+ <?php
65
}
66
```
67
0 commit comments