Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 155 to 166

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 4th December 2024 08:35 Europe/London time based on the source file dated 15th April 2024 14:55 Europe/London time.