Project Gallery
Project Photos
php
$block_id = 'block_ph1516bmb';
// Gallery data
$gallery_images = [
[
'src' = 'https://orlpower.com/wp-content/uploads/2026/01/imgi_17_1650435572.jpg',
'alt' => 'ASME biomass boiler 200 t/h – twin units for sugar mill, Philippines (2015–2016)',
'title' => 'Biomass Boiler Twin Units Overview'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_18_1650435699.jpg',
'alt' => 'Manufacturing – biomass boiler 200 t/h for sugar mill, Philippines (ASME)',
'title' => 'Manufacturing Process'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_19_1650435713.jpg',
'alt' => 'Pressure parts – water-wall & tube assemblies, biomass boiler 200 t/h Philippines',
'title' => 'Pressure Parts Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_24_1650435746.jpg',
'alt' => 'Installation phase – unit 1 (2015), biomass boiler 200 t/h Philippines',
'title' => 'Installation – Unit 1 (2015)'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_20_1650435719.jpg',
'alt' => 'Drum assembly – biomass boiler 200 t/h, Philippines sugar mill (ASME)',
'title' => 'Steam Drum Assembly'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_21_1650435725.jpg',
'alt' => 'Supporting structure & platforms – biomass boiler 200 t/h Philippines',
'title' => 'Supporting Structure & Platforms'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_23_1650435739.jpg',
'alt' => 'Installation phase – unit 2 (2016), biomass boiler 200 t/h Philippines',
'title' => 'Installation – Unit 2 (2016)'
],
[
'src' => 'https://orlpower.com/wp-content/uploads/2026/01/imgi_22_1650435733.jpg',
'alt' => 'Commissioning – twin-unit biomass boiler 2×200 t/h Philippines (ASME)',
'title' => 'Twin-Unit Commissioning'
],
];
// 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);
$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; ?