Project Gallery
Project Photos
php
$block_id = 'block_dz2019ppu';
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/01/imgi_17_1650436028.jpg',
'alt' => 'ASME 530t/h power plant boiler upgrade – Algeria 2019',
'title' => 'Power Plant Boiler Upgrade 530 t/h'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/M19-16-0-0-水冷壁-Boiler-wall-panels-Assembly-A0-Rev.2.pdf-2-1-1-_01-scaled.webp',
'alt' => 'Water wall panels assembly drawing – ORL Power boiler project',
'title' => 'Water Wall Panels Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_18_1650436045.jpg',
'alt' => 'Upgraded components assembly – Algeria power plant 2019',
'title' => 'Upgraded Components Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_19_1650436051.jpg',
'alt' => 'Upgraded pressure parts – Algeria power plant boiler 2019',
'title' => 'Upgraded Pressure Parts'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_20_1650436056.jpg',
'alt' => 'System integration – Algeria boiler upgrade 2019',
'title' => 'System Integration'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_21_1650436062.jpg',
'alt' => 'Auxiliary systems – Algeria power plant upgrade 2019',
'title' => 'Auxiliary Equipment'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_23_1650436083.jpg',
'alt' => 'Quality inspection – Algeria power plant boiler upgrade 2019',
'title' => 'Quality Inspection'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_24_1650436090.jpg',
'alt' => 'Project commissioning – Algeria boiler upgrade 2019',
'title' => 'Project 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; ?