rep__get_listing_links()
This function, customizes the retrieval of property listing video links based on a specified link type and returns the link URL.
Namespace
REP_Malcolm
Return
array
An array containing the URLs of main images
Source
File: \includes\rep-helper-functions.php
function rep__get_listing_links($videos, $type){
if(!empty($videos)){
foreach($videos as $video) :
if(lp__array_key_value('type', $video) == $type){
return lp__array_key_value('url', $video);
}
endforeach;
}
return '';
}