Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 162 to 173

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 19th March 2024 06:35 Europe/London time based on the source file dated 20th February 2024 17:10 Europe/London time.