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.
| 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 |
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 |
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 |
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 |
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'.