Project Gallery
Project Photos
php
$block_id = 'block_n9dft10u';
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/03/image3-scaled.webp',
'alt' => 'Corner tube boiler testing procedures - China (2018)',
'title' => 'Testing Procedures'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/image-7-scaled.webp',
'alt' => 'Corner tube boiler final assembly - China (2018)',
'title' => 'Final Assembly Phase'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/image4-scaled.webp',
'alt' => 'Corner tube boiler completed project - China (2018)',
'title' => 'Completed Project'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_17_1650435851.jpg',
'alt' => 'Corner tube boiler 75 t/h twin units - China (2017-2018)',
'title' => 'Corner Tube Boiler Twin Units Overview'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_19_1650435865.jpg',
'alt' => 'Corner tube boiler pressure parts - China (2017-2018)',
'title' => 'Pressure Parts Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_20_1650435869.jpg',
'alt' => 'Corner tube boiler structural components - China (2017-2018)',
'title' => 'Structural Components'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_23_1650435886.jpg',
'alt' => 'Corner tube boiler unit 2 - China (2018)',
'title' => 'Unit 2 (2018)'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_24_1650435892.jpg',
'alt' => 'Corner tube boiler commissioning - China (2017-2018)',
'title' => 'Commissioning'
],
];
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; ?