Файловый менеджер - Редактировать - /var/www/vhosts/allit.dev1.mndrn.cloud/wp-content/themes/allit/single.php
Назад
<?php get_header(); ?> <?php $contenutoprodotto = get_field('contenuto_prodotto'); ?> <?php $articoli = get_field('scheda_articoli'); ?> <div class="lg:mt-8 mt-4 max-w-7xl z-10 w-full mx-auto"> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '<p id="breadcrumbs" class="px-4 lg:px-0 text-[#3089B0] uppercase float-left">', '</p>' ); } ?> <div class="inline text-3xl text-gray-300 ml-2">^</div> </div> <div class="px-4 lg:px-0 block max-w-7xl z-10 w-full mx-auto"> <div class="grid grid-cols-12 gap-4 lg:py-16"> <div class="col-span-12"> <div class="my-4 block py-4 mt-10 lg:px-0 lg:my-0 lg:py-0"> <div class="max-w-none lg:py-4"> <div class="text-[#204A81] text-4xl"> <?php echo get_field('titolo') ?> </div> <h3 class="mt-4"> <?php echo get_field('sottotitolo') ?> </h3> </div> </div> <time class="uppercase mt-4 text-[#898B8C] text-sm"><?php the_date(); ?></time> </div> <div class="col-span-12"> <div class="max-w-none py-4 lg:text-xl"> <div class="mb-5"> <img src="<?php echo get_field('hero') ?>" class=" w-full"> </div> <?php echo get_field('testo') ?> </div> </div> </div> </div> <?php if ($contenutoprodotto != '') : ?> <div class="py-4 px-4 lg:px-0 max-w-7xl z-10 w-full mx-auto"> <div class="grid grid-cols-12 gap-4 lg:gap-8 items-center justify-center"> <?php $count = 0; foreach ($contenutoprodotto as $value) : $count++; ?> <div class="col-span-12 lg:col-span-6"> <img src="<?php echo $value['immagine']; ?>" class="pb-4" alt=""> </div> <div class="col-span-12 lg:col-span-6 pb-4 prose max-w-none lg:pl-44 lg:pr-32"> <?php echo $value['testo']; ?> <?php if ($count == 3) : ?> <div class="lg:inline-block bg-[#FFB703] py-4 px-4 rounded-lg uppercase text-white text-center cursor-pointer">Richiedi informazioni</div> <?php endif; ?> </div> <?php endforeach; ?> </div> </div> <div class="fixed lg:hidden bottom-0 left-0 z-40 bg-[#FFB703] w-full py-4 uppercase text-white text-center cursor-pointer">Richiedi informazioni</div> <?php endif; ?> <div class="py-4 px-4 lg:px-0 max-w-7xl z-10 w-full mx-auto"> <?php $galleria = get_field('gallery'); ?> <div id="default-carousel" class="relative w-full" data-carousel="slide"> <!-- Carousel wrapper --> <div class="relative h-56 overflow-hidden rounded-lg md:h-96"> <?php $count = 0; foreach ($galleria as $value) : $count++; ?> <!-- Item 1 --> <div class="hidden duration-700 ease-in-out" data-carousel-item> <img src="<?php echo $value; ?>" class="absolute block w-full -translate-x-1/2 -translate-y-1/2 top-1/2 left-1/2" alt="..."> </div> <?php endforeach; ?> </div> <!-- Slider indicators --> <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse"> <?php foreach ($galleria as $value) : ?> <div class="w-3 h-3 rounded-full " aria-current="<?php echo ($count - 1 == 0) ? 'true' : 'false'; ?>" aria-label="Slide 1" data-carousel-slide-to="<?php echo $count - 1; ?>"></div> <?php endforeach; ?> </div> </div> </div> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка