Table of Contents

public/themes/blog/functions-media.php

Source: public/themes/blog/functions-media.php · 118 lines, ~564 statements · namespace: (global) · `declare(strict_types=1)`: no


Blog Theme Media Helpers

Slideshow, gallery, download and thumbnail helpers for the Bootstrap Blog theme. Extracted from the monolithic functions.php (Phase 5 remediation). All functions use function_exists() guards to avoid redeclaration errors.

Functions (4)

Function Line Params Returns Summary
get_slideshow 21 1 get_slideshow() - Get posts with media for slideshow
display_galleries 59 2 display_galleries() - Get gallery images
get_download_page_data 73 1 get_download_page_data() - Get download page data
get_post_thumbnail 99 3 Get post thumbnail with fallback

get_slideshow()

Declared inside a guard (the project uses `if (!function_exists(…))` around global functions), so the declaration is conditional at load time.

public function get_slideshow($limit = 5)

get_slideshow() - Get posts with media for slideshow

Parameter Type Default Description
$limit (untyped) 5

display_galleries()

Declared inside a guard (the project uses `if (!function_exists(…))` around global functions), so the declaration is conditional at load time.

public function display_galleries($start, $limit)

display_galleries() - Get gallery images

Parameter Type Default Description
$start (untyped) required
$limit (untyped) required

get_download_page_data()

Declared inside a guard (the project uses `if (!function_exists(…))` around global functions), so the declaration is conditional at load time.

public function get_download_page_data($identifier)

get_download_page_data() - Get download page data

Parameter Type Default Description
$identifier (untyped) required

get_post_thumbnail()

Declared inside a guard (the project uses `if (!function_exists(…))` around global functions), so the declaration is conditional at load time.

public function get_post_thumbnail($post_img, $post_title, $img_alt = '')

Get post thumbnail with fallback

Parameter Type Default Description
$post_img (untyped) required
$post_title (untyped) required
$img_alt (untyped) ''''''

Generated by 'tools/gendoc'.