Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_slideshow_image_file_path()

Description

Get the full path for the slideshow image file

Parameters

ColumnTypeDefaultDescription
$ref integer ID of the slideshow image

Return

string The full path to the slideshow image

Location

include/slideshow_functions.php lines 154 to 165

Definition

 
function get_slideshow_image_file_path($ref)
    {
    
$homeanim_folder_path dirname(__DIR__) . "/{$GLOBALS['homeanim_folder']}";
    
$image_file_path "{$homeanim_folder_path}/{$ref}.jpg";

    if(!
file_exists($image_file_path) || !is_readable($image_file_path))
        {
        return 
'';
        }

    return 
$image_file_path;
    }

This article was last updated 13th July 2020 14:35 Europe/London time based on the source file dated 8th June 2020 12:35 Europe/London time.