Project Gallery
Project Photos
php
$block_id = 'block_ph2021bmb';
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/01/imgi_20_1651915287.jpg',
'alt' => 'ASME biomass boiler 225 t/h for sugar mill – Philippines 2021',
'title' => 'Biomass Boiler 225 t/h Overview'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_19_1651915281.jpg',
'alt' => 'Structural assembly of biomass boiler – Philippines 2021',
'title' => 'Structural Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_21_1651915293.jpg',
'alt' => 'Pressure parts of biomass boiler – Philippines 2021',
'title' => 'Pressure Parts'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_17_1650436177.jpg',
'alt' => 'ASME-compliant manufacturing – Philippines 2021',
'title' => 'Manufacturing Process'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_18_1650436272.jpg',
'alt' => 'Key component detail – biomass boiler Philippines 2021',
'title' => 'Component Detail'
],
];
if (isset($HTMX_BLOCK_ID) && $HTMX_BLOCK_ID === $block_id) {
$action = $_GET['action'] ?? '';
if ($action === 'modal') {
$image_index = intval($_GET['index'] ?? 0);
$current_image = $gallery_images[$image_index] ?? $gallery_images[0];
$total_images = count($gallery_images);
$modal_html = <<
HTML;
hx_response($modal_html);
}
if ($action === 'navigate') {
$direction = $_GET['direction'] ?? 'next';
$current_index = intval($_GET['current'] ?? 0);
$total_images = count($gallery_images);
$new_index = $direction === 'next'
? ($current_index + 1) % $total_images
: ($current_index - 1 + $total_images) % $total_images;
$current_image = $gallery_images[$new_index];
$modal_html = <<
Нажмите на любое изображение, чтобы посмотреть в полном размере · = count($gallery_images) ? изображений в галерее
php endif; ?