Project Gallery
Project Photos
php
$block_id = 'block_3y5in0sc';
// Gallery data
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/01/imgi_17_1650435395.jpg',
'alt' => 'Biomass Boiler 200 t/h -- Brazil 2014',
'title' => 'Biomass Boiler Project'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_18_1650435407.jpg',
'alt' => 'Superheater Installation',
'title' => 'Superheater Components'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_19_1650435414.jpg',
'alt' => 'Water Wall Panel Assembly',
'title' => 'Water Wall Panels'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_20_1650435420.jpg',
'alt' => 'Economizer Manufacturing',
'title' => 'Economizer Production'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_21_1650435424.jpg',
'alt' => 'Steam Drum Assembly',
'title' => 'Steam Drum Components'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_22_1650435430.jpg',
'alt' => 'Finned Tube Production',
'title' => 'Finned Tube Manufacturing'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_23_1650435437.jpg',
'alt' => 'Quality Control Testing',
'title' => 'NDT Quality Control'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_24_1650435447.jpg',
'alt' => 'Final Assembly Process',
'title' => 'Final Assembly'
]
];
// HTMX request handling
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);
if ($direction === 'next') {
$new_index = ($current_index + 1) % $total_images;
} else {
$new_index = ($current_index - 1 + $total_images) % $total_images;
}
$current_image = $gallery_images[$new_index];
$modal_html = <<
Нажмите на любое изображение, чтобы посмотреть в полном размере • = count($gallery_images) ? изображений в галерее
php endif; ?