PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wiloke-listing-tools
/
app
/
Frontend
<?php namespace WilokeListingTools\Frontend; use WilokeListingTools\Framework\Helpers\GetSettings; class Gallery { public static function createGalleryInfo($galleryID, $link, $aSizes = ['thumbnail', 'full']) { $aItem['title'] = get_the_title($galleryID); $aItem['link'] = $link; foreach ($aSizes as $size) { $aItem[$size] = wp_get_attachment_image_url($galleryID, $size); } return $aItem; } public static function parseGallery($postID, $size = 'medium', $metaKey = 'gallery') { $aRawGallery = GetSettings::getPostMeta($postID, $metaKey); if (empty($aRawGallery)) { return false; } $aGallery = []; foreach ($aRawGallery as $galleryID => $link) { $aGallery[] = self::createGalleryInfo($galleryID, $link, ['thumbnail', 'full', $size]); } return $aGallery; } }
[+]
..
[-] SingleListing.php
[edit]
[-] CheckoutPage.php
[edit]
[-] PriceRange.php
[edit]
[-] User.php
[edit]
[-] EnqueueScripts.php
[edit]
[-] BusinessHours.php
[edit]
[-] GenerateURL.php
[edit]
[-] Gallery.php
[edit]