Project Gallery
Project Photos
php
$block_id = 'block_xr7hvxes';
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/03/20260317142056_4_292.webp',
'alt' => 'Industrial Equipment Component Assembly',
'title' => 'Component Assembly Overview'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/Layout-of-U-shaped-heat-exchange-tube-A3-Rev.0_01-scaled.webp',
'alt' => 'Bundle tubes for feedwater heater – ORL Power',
'title' => 'Bundle Tubes for Feedwater Heater'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260317142425_6_292.webp',
'alt' => 'Manufacturing Process Detail',
'title' => 'Manufacturing Process'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260317142605_7_292.webp',
'alt' => 'Quality Control Inspection',
'title' => 'Quality Control Phase'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260317142652_8_292.webp',
'alt' => 'Technical Assembly Work',
'title' => 'Technical Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260317142753_9_292.webp',
'alt' => 'Final Testing Procedures',
'title' => 'Final Testing'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260317142115_5_292.webp',
'alt' => 'Project Documentation',
'title' => 'Documentation Phase'
],
];
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; ?