Project Gallery
Project Photos
php
$block_id = 'block_o1hv4pne';
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/03/20260319152730_380_240.webp',
'alt' => 'Project Component 380',
'title' => 'Component Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/M25-23-2-0-外部散热器-External-Radiator-A1-Rev.2-1-_01-scaled.webp',
'alt' => 'External radiator engineering drawing – ORL Power',
'title' => 'External Radiator Drawing'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/image-1-.jpeg-1-scaled.webp',
'alt' => 'Industrial Equipment Image 1',
'title' => 'Equipment Overview'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/image.jpeg-1-scaled.webp',
'alt' => 'Industrial Equipment Image 2',
'title' => 'Equipment Detail View'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260319152735_381_240.webp',
'alt' => 'Project Component 381',
'title' => 'Technical Detail'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260319152716_377_240.webp',
'alt' => 'Project Component 377',
'title' => 'Manufacturing Process'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260319152720_378_240.webp',
'alt' => 'Project Component 378',
'title' => 'Quality Control'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/03/20260319152751_384_240.webp',
'alt' => 'Project Component 384',
'title' => 'Final Assembly'
],
];
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; ?