Файловый менеджер - Редактировать - /var/www/vhosts/allit.dev1.mndrn.cloud/wp-content/themes/allit/front-page.php
Назад
<?php get_header(); ?> <?php $mainslide = get_field('mainslide', 'options'); ?> <div class="relative"> <div class="slickmain lg:h-screen h-[calc(100vh-95px)] lg:-mt-[100px] w-full relative"> <?php foreach ($mainslide as $value) : ?> <div class="relative"> <div class="absolute top-0 left-0 h-full w-full bg-gradient-to-t foom-black z-10"></div> <a href="<?php echo $value['cta'] ?>" class="bg-center bg-cover bg-no-repeat flex flex-col px-4 relative justify-end pt-[20rem] pb-[5rem] lg:h-screen h-[calc(100vh-95px)] text-white font-light" style="background-image: url('<?php echo $value['immagine'] ?>');"> <div class="max-w-7xl z-10 relative w-full mx-auto"> <div class="text-4xl lg:text-5xl"> <?php echo $value['titolo']; ?> </div> <?php if(isset($value['testo']) && !empty($value['testo'])) :?> <div class="z-10 text-lg mt-4 lg:text-2xl"> <?php echo $value['testo']; ?> </div> <?php endif; ?> <div class="z-10"> <div class="rounded-lg text-center text-[#FFB703] mt-8 text-base transition-all duration-300 ease-in-out flex items-center lg:text-xl"> <button class="underline underline-offset-4" > <?php echo $value['testo_cta']; ?> </button> <i class="fa-solid fa-caret-right ml-2"></i> </div> </div> </div> </a> </div> <?php endforeach; ?> </div> <div class="absolute bottom-4 left-0 right-0 text-[#FFB703] w-full text-center"><i class="fa-solid fa-caret-down animate-bounce"></i></div> </div> <div class="max-w-7xl z-10 relative w-full mx-auto"> <div class="px-4 lg:px-0 text-[#204A81]"> <?php $profili_in_alluminio = get_field('profili_in_alluminio', 'options'); ?> <div class="flex flex-col mt-10"> <div class="z-10 text-4xl lg:text-5xl"> <?php echo $profili_in_alluminio['titolo']; ?> </div> <div class="z-10 mt-4 text-lg lg:text-2xl"> <?php echo $profili_in_alluminio['testo']; ?> </div> </div> <div class="z-10"> <div class="rounded-lg text-center text-[#FFB703] mt-8 text-base transition-all duration-300 ease-in-out flex items-center lg:text-xl"> <a href="<?php echo $profili_in_alluminio['cta']; ?>"> <button class="underline underline-offset-4" > <?php echo $profili_in_alluminio['testo_cta']; ?> </button> </a> <i class="fa-solid fa-caret-right ml-2"></i> </div> </div> </div> <?php $terms = get_terms( array( 'taxonomy' => 'tipologia_prodotto', 'hide_empty' => false, ) ); ?> <div class="block mt-4 overflow-hidden "> <div class="slickcategoryhome grid grid-cols-1 md:grid-cols-3 gap-6"> <?php foreach ($terms as $index => $term) : ?> <?php $thumbnail = get_field('immagine_categoria', $term->taxonomy . '_' . $term->term_id); $term_link = get_term_link($term); ?> <?php if (!empty($thumbnail)) : ?> <div class="group relative py-4 bg-white"> <a href="<?php echo $term_link; ?>" class="block relative"> <img src="<?php echo esc_url($thumbnail); ?>" class="w-full transition-all duration-300 ease-in-out shadow-lg" alt=""> <div class="absolute bottom-4 left-1/2 -translate-x-1/2 flex gap-2"> <?php for ($i = 1; $i < 4; $i++) : ?> <span class="h-2 w-2 rounded-full md:hidden <?php echo ($index === $i) ? 'bg-[#FFB703]' : 'bg-gray-400'; ?> transition-all duration-300"></span> <?php endfor; ?> </div> </a> </div> <?php endif; ?> <?php endforeach; ?> </div> </div> </div> <?php get_footer(); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.5 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка