Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+528-19
- prompts.txtAdded+6
12345678910---title: Opsemoji: 馃悹colorFrom: pinkcolorTo: bluesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: opsemoji: 馃惓colorFrom: greencolorTo: purplesdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528<!DOCTYPE html><html lang="pl"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>OutletPark - Centrum Outletowe</title><script src="https://cdn.tailwindcss.com"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"><style>/* Custom animations */@keyframes fadeInUp {from { opacity: 0; transform: translateY(20px); }to { opacity: 1; transform: translateY(0); }}.animate-fade-in-up {animation: fadeInUp 0.6s ease-out forwards;}/* Custom scrollbar */::-webkit-scrollbar {width: 8px;height: 8px;}::-webkit-scrollbar-track {background: #f1f1f1;}::-webkit-scrollbar-thumb {background: #4f46e5;border-radius: 4px;}::-webkit-scrollbar-thumb:hover {background: #4338ca;}/* Mobile menu animation */.mobile-menu {transition: transform 0.3s ease-in-out;}.mobile-menu.open {transform: translateX(0);}.mobile-menu.closed {transform: translateX(100%);}/* Custom fonts */body {font-family: 'Lato', sans-serif;}/* Store card hover effect */.store-card:hover {transform: translateY(-5px);box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);}.store-card {transition: all 0.3s ease;}</style><link href="https://fonts.googleapis.com/css?family=Lato:300,400,700" rel="stylesheet"></head><body class="bg-gray-50 font-sans antialiased"><!-- Header --><header class="bg-white shadow-sm sticky top-0 z-50"><div class="container mx-auto px-4 py-3"><div class="flex justify-between items-center"><!-- Logo --><a href="/" class="text-2xl font-bold text-indigo-600"><span class="text-orange-500">OUTLET</span>PARK</a><!-- Desktop Navigation --><nav class="hidden md:flex space-x-8"><a href="#" class="text-gray-700 hover:text-indigo-600 font-medium transition-colors duration-200">Strona g艂贸wna</a><a href="#stores" class="text-gray-700 hover:text-indigo-600 font-medium transition-colors duration-200">Marki</a><a href="#about" class="text-gray-700 hover:text-indigo-600 font-medium transition-colors duration-200">O nas</a><a href="#location" class="text-gray-700 hover:text-indigo-600 font-medium transition-colors duration-200">Lokalizacja</a><a href="#contact" class="text-gray-700 hover:text-indigo-600 font-medium transition-colors duration-200">Kontakt</a></nav><!-- Desktop Icons --><div class="hidden md:flex items-center space-x-6"><button class="text-gray-600 hover:text-indigo-600 transition-colors duration-200"><i class="fas fa-search text-lg"></i></button></div><!-- Mobile Menu Button --><button id="mobile-menu-button" class="md:hidden text-gray-600 focus:outline-none"><i class="fas fa-bars text-2xl"></i></button></div></div></header><!-- Mobile Menu --><div id="mobile-menu" class="mobile-menu fixed inset-y-0 right-0 w-64 bg-white shadow-lg z-50 p-6 closed"><div class="flex justify-between items-center mb-8"><span class="text-xl font-bold text-indigo-600">MENU</span><button id="mobile-menu-close" class="text-gray-500 hover:text-gray-700"><i class="fas fa-times text-xl"></i></button></div><nav class="space-y-4"><a href="#" class="block py-2 text-gray-700 hover:text-indigo-600 font-medium">Strona g艂贸wna</a><a href="#stores" class="block py-2 text-gray-700 hover:text-indigo-600 font-medium">Marki</a><a href="#about" class="block py-2 text-gray-700 hover:text-indigo-600 font-medium">O nas</a><a href="#location" class="block py-2 text-gray-700 hover:text-indigo-600 font-medium">Lokalizacja</a><a href="#contact" class="block py-2 text-gray-700 hover:text-indigo-600 font-medium">Kontakt</a></nav></div><!-- Hero Section --><section class="bg-gradient-to-r from-indigo-600 to-purple-600 text-white py-16 md:py-24"><div class="container mx-auto px-4"><div class="max-w-3xl mx-auto text-center animate-fade-in-up"><h1 class="text-4xl md:text-5xl font-bold mb-6">Odkryj markowe produkty w outletowych cenach</h1><p class="text-xl md:text-2xl mb-8">Odwied藕 nasze centrum outletowe i znajd藕 wyj膮tkowe okazje!</p><div class="flex flex-col sm:flex-row justify-center gap-4"><a href="#location" class="bg-orange-500 hover:bg-orange-600 text-white font-bold py-3 px-6 rounded-full transition-colors duration-200 shadow-lg">Jak dojecha膰</a><a href="#stores" class="bg-white hover:bg-gray-100 text-indigo-600 font-bold py-3 px-6 rounded-full transition-colors duration-200 shadow-lg">Nasze marki</a></div></div></div></section><!-- About Section --><section id="about" class="py-12 bg-white"><div class="container mx-auto px-4"><div class="flex flex-col md:flex-row items-center"><div class="md:w-1/2 mb-8 md:mb-0 md:pr-8"><h2 class="text-3xl font-bold mb-6">OutletPark - wyj膮tkowe miejsce na zakupy</h2><p class="text-gray-700 mb-4">Jeste艣my najwi臋kszym centrum outletowym w regionie, oferuj膮cym produkty znanych marek w atrakcyjnych cenach.</p><p class="text-gray-700 mb-6">W OutletPark znajdziesz odzie偶, obuwie, akcesoria i wiele wi臋cej w cenach nawet do 70% ni偶szych ni偶 w tradycyjnych sklepach.</p><div class="flex flex-wrap gap-4"><div class="bg-indigo-50 text-indigo-700 px-4 py-2 rounded-full"><i class="fas fa-tag mr-2"></i> Rabaty do 70%</div><div class="bg-indigo-50 text-indigo-700 px-4 py-2 rounded-full"><i class="fas fa-store mr-2"></i> 100+ marek</div><div class="bg-indigo-50 text-indigo-700 px-4 py-2 rounded-full"><i class="fas fa-car mr-2"></i> Darmowy parking</div></div></div><div class="md:w-1/2"><img src="https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80"alt="OutletPark" class="w-full rounded-lg shadow-xl"></div></div></div></section><!-- Stores Section --><section id="stores" class="py-12 bg-gray-50"><div class="container mx-auto px-4"><div class="text-center mb-12"><h2 class="text-3xl font-bold mb-4">Nasze marki</h2><p class="text-gray-600 max-w-2xl mx-auto">Odkryj 艣wiatowe marki w outletowych cenach. Odwied藕 nasze sklepy stacjonarne i znajd藕 wyj膮tkowe okazje.</p></div><div class="grid grid-cols-2 md:grid-cols-4 gap-6"><!-- Store 1 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Nike" alt="Nike" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Nike</h3><p class="text-sm text-gray-500 mb-3">Odzie偶 i obuwie sportowe</p><p class="text-orange-500 font-medium">Rabaty do 50%</p></div><!-- Store 2 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Adidas" alt="Adidas" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Adidas</h3><p class="text-sm text-gray-500 mb-3">Odzie偶 i obuwie sportowe</p><p class="text-orange-500 font-medium">Rabaty do 60%</p></div><!-- Store 3 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Calvin+Klein" alt="Calvin Klein" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Calvin Klein</h3><p class="text-sm text-gray-500 mb-3">Odzie偶 i akcesoria</p><p class="text-orange-500 font-medium">Rabaty do 70%</p></div><!-- Store 4 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Levi's" alt="Levi's" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Levi's</h3><p class="text-sm text-gray-500 mb-3">Odzie偶 denim</p><p class="text-orange-500 font-medium">Rabaty do 50%</p></div><!-- Store 5 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Tommy+Hilfiger" alt="Tommy Hilfiger" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Tommy Hilfiger</h3><p class="text-sm text-gray-500 mb-3">Odzie偶 i akcesoria</p><p class="text-orange-500 font-medium">Rabaty do 60%</p></div><!-- Store 6 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Guess" alt="Guess" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Guess</h3><p class="text-sm text-gray-500 mb-3">Odzie偶 i akcesoria</p><p class="text-orange-500 font-medium">Rabaty do 55%</p></div><!-- Store 7 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Converse" alt="Converse" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Converse</h3><p class="text-sm text-gray-500 mb-3">Obuwie</p><p class="text-orange-500 font-medium">Rabaty do 40%</p></div><!-- Store 8 --><div class="store-card bg-white rounded-lg shadow-md overflow-hidden p-4 text-center"><div class="h-32 flex items-center justify-center mb-4"><img src="https://via.placeholder.com/150x80?text=Zara" alt="Zara" class="max-h-full max-w-full"></div><h3 class="font-semibold text-lg mb-2">Zara</h3><p class="text-sm text-gray-500 mb-3">Odzie偶</p><p class="text-orange-500 font-medium">Rabaty do 60%</p></div></div><div class="text-center mt-8"><a href="#" class="inline-block bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-6 rounded-full transition-colors duration-200">Zobacz wszystkie marki</a></div></div></section><!-- Location Section --><section id="location" class="py-12 bg-white"><div class="container mx-auto px-4"><div class="flex flex-col md:flex-row"><div class="md:w-1/2 mb-8 md:mb-0 md:pr-8"><h2 class="text-3xl font-bold mb-6">Lokalizacja</h2><div class="bg-gray-50 p-6 rounded-lg shadow-sm mb-6"><h3 class="font-semibold text-lg mb-4">OutletPark Warszawa</h3><p class="text-gray-700 mb-2"><i class="fas fa-map-marker-alt text-indigo-600 mr-2"></i> ul. Outletowa 1, 00-001 Warszawa</p><p class="text-gray-700 mb-4"><i class="fas fa-phone-alt text-indigo-600 mr-2"></i> +48 22 123 45 67</p><h4 class="font-medium mb-2">Godziny otwarcia:</h4><ul class="text-gray-700 space-y-1"><li class="flex justify-between"><span>Poniedzia艂ek - Pi膮tek:</span><span>10:00 - 21:00</span></li><li class="flex justify-between"><span>Sobota:</span><span>9:00 - 22:00</span></li><li class="flex justify-between"><span>Niedziela:</span><span>10:00 - 20:00</span></li></ul></div><div class="bg-orange-50 p-6 rounded-lg shadow-sm"><h3 class="font-semibold text-lg mb-4">Jak dojecha膰?</h3><div class="flex items-start mb-4"><div class="bg-indigo-100 text-indigo-600 p-2 rounded-full mr-4"><i class="fas fa-car"></i></div><div><h4 class="font-medium">Samochodem</h4><p class="text-gray-700">15 minut od centrum Warszawy, zjazd z trasy S8</p></div></div><div class="flex items-start"><div class="bg-indigo-100 text-indigo-600 p-2 rounded-full mr-4"><i class="fas fa-bus"></i></div><div><h4 class="font-medium">Komunikacj膮 miejsk膮</h4><p class="text-gray-700">Autobusy linii 123, 456 i 789 (przystanek OutletPark)</p></div></div></div></div><div class="md:w-1/2"><div class="h-full bg-gray-200 rounded-lg overflow-hidden"><iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2443.650410040004!2d21.01258931579687!3d52.2296759797609!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x471ecc669a869f01%3A0x72f0be2a88ead3fc!2sPa%C5%82ac%20Kultury%20i%20Nauki!5e0!3m2!1spl!2spl!4v1622021216785!5m2!1spl!2spl"width="100%" height="100%" style="min-height: 400px;" allowfullscreen="" loading="lazy"></iframe></div></div></div></div></section><!-- Events Section --><section class="py-12 bg-indigo-600 text-white"><div class="container mx-auto px-4"><div class="text-center mb-12"><h2 class="text-3xl font-bold mb-4">Nadchodz膮ce wydarzenia</h2><p class="text-xl max-w-2xl mx-auto">Sprawd藕 co si臋 dzieje w OutletPark i nie przegap wyj膮tkowych okazji!</p></div><div class="grid grid-cols-1 md:grid-cols-3 gap-8"><!-- Event 1 --><div class="bg-white text-gray-800 rounded-lg shadow-lg overflow-hidden"><div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80');"></div><div class="p-6"><div class="flex items-center text-sm text-indigo-600 mb-2"><i class="far fa-calendar-alt mr-2"></i><span>15-17 czerwca 2023</span></div><h3 class="font-bold text-xl mb-3">Weekend z dodatkowym rabatem</h3><p class="text-gray-600 mb-4">Przy zakupach powy偶ej 300 z艂 otrzymaj dodatkowe 20% zni偶ki na ca艂y asortyment.</p><a href="#" class="text-indigo-600 font-medium hover:text-indigo-800 transition-colors duration-200">Wi臋cej informacji <i class="fas fa-arrow-right ml-1"></i></a></div></div><!-- Event 2 --><div class="bg-white text-gray-800 rounded-lg shadow-lg overflow-hidden"><div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1551232864-3f0890e580d9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80');"></div><div class="p-6"><div class="flex items-center text-sm text-indigo-600 mb-2"><i class="far fa-calendar-alt mr-2"></i><span>24 czerwca 2023</span></div><h3 class="font-bold text-xl mb-3">Dzie艅 dziecka w OutletPark</h3><p class="text-gray-600 mb-4">Specjalne atrakcje dla dzieci i dodatkowe rabaty na odzie偶 dzieci臋c膮.</p><a href="#" class="text-indigo-600 font-medium hover:text-indigo-800 transition-colors duration-200">Wi臋cej informacji <i class="fas fa-arrow-right ml-1"></i></a></div></div><!-- Event 3 --><div class="bg-white text-gray-800 rounded-lg shadow-lg overflow-hidden"><div class="h-48 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=800&q=80');"></div><div class="p-6"><div class="flex items-center text-sm text-indigo-600 mb-2"><i class="far fa-calendar-alt mr-2"></i><span>1-31 lipca 2023</span></div><h3 class="font-bold text-xl mb-3">Letnie wyprzeda偶e</h3><p class="text-gray-600 mb-4">Najwi臋ksze letnie wyprzeda偶e w historii OutletPark - rabaty do 80%!</p><a href="#" class="text-indigo-600 font-medium hover:text-indigo-800 transition-colors duration-200">Wi臋cej informacji <i class="fas fa-arrow-right ml-1"></i></a></div></div></div></div></section><!-- Newsletter --><section class="py-12 bg-gray-800 text-white"><div class="container mx-auto px-4 text-center"><h2 class="text-3xl font-bold mb-4">B膮d藕 na bie偶膮co</h2><p class="text-xl mb-8 max-w-2xl mx-auto">Zapisz si臋 do newslettera i otrzymuj informacje o promocjach i wydarzeniach w OutletPark</p><form action="" method="GET" class="max-w-md mx-auto flex flex-col sm:flex-row gap-2"><input type="email" name="email" placeholder="Tw贸j adres email" required class="flex-grow px-4 py-3 rounded-lg focus:outline-none text-gray-900"><input type="hidden" name="newsletter_save" value="1"><button type="submit" id="send" class="bg-orange-500 hover:bg-orange-600 text-white font-bold px-6 py-3 rounded-lg transition-colors duration-200">Zapisz si臋</button></form><p class="text-sm text-gray-400 mt-4">Twoje dane s膮 bezpieczne. Nie spamujemy!</p></div></section><!-- Footer --><footer id="contact" class="bg-gray-900 text-white pt-12 pb-6"><div class="container mx-auto px-4"><div class="grid grid-cols-1 md:grid-cols-4 gap-8 mb-8"><!-- About --><div><h3 class="text-xl font-bold mb-4">OUTLET<span class="text-orange-500">PARK</span></h3><p class="text-gray-400 mb-4">Najwi臋ksze centrum outletowe w regionie. Markowe produkty w outletowych cenach.</p><div class="flex space-x-4"><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200"><i class="fab fa-facebook-f"></i></a><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200"><i class="fab fa-instagram"></i></a></div></div><!-- Quick Links --><div><h4 class="font-semibold text-lg mb-4">Szybkie linki</h4><ul class="space-y-2"><li><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200">Strona g艂贸wna</a></li><li><a href="#stores" class="text-gray-400 hover:text-white transition-colors duration-200">Marki</a></li><li><a href="#about" class="text-gray-400 hover:text-white transition-colors duration-200">O nas</a></li><li><a href="#location" class="text-gray-400 hover:text-white transition-colors duration-200">Lokalizacja</a></li></ul></div><!-- Customer Service --><div><h4 class="font-semibold text-lg mb-4">Informacje</h4><ul class="space-y-2"><li><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200">Regulamin</a></li><li><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200">Polityka prywatno艣ci</a></li><li><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200">Dla prasy</a></li><li><a href="#" class="text-gray-400 hover:text-white transition-colors duration-200">Kariera</a></li></ul></div><!-- Contact --><div><h4 class="font-semibold text-lg mb-4">Kontakt</h4><ul class="space-y-2"><li class="flex items-center text-gray-400"><i class="fas fa-map-marker-alt mr-2"></i> ul. Outletowa 1, 00-001 Warszawa</li><li class="flex items-center text-gray-400"><i class="fas fa-phone-alt mr-2"></i> +48 22 123 45 67</li><li class="flex items-center text-gray-400"><i class="fas fa-envelope mr-2"></i> kontakt@outletpark.pl</li><li class="flex items-center text-gray-400"><i class="fas fa-clock mr-2"></i> Pon-Pt: 10:00-21:00, Sob: 9:00-22:00, Niedz: 10:00-20:00</li></ul></div></div><div class="border-t border-gray-800 pt-6"><div class="flex flex-col md:flex-row justify-between items-center"><p class="text-gray-400 text-sm mb-4 md:mb-0">漏 2023 OutletPark. Wszelkie prawa zastrze偶one.</p><div class="flex space-x-4"><img src="https://via.placeholder.com/40x25?text=Logo" alt="OutletPark" class="h-6"></div></div></div></div></footer><script>// Mobile Menu Toggleconst mobileMenuButton = document.getElementById('mobile-menu-button');const mobileMenuClose = document.getElementById('mobile-menu-close');const mobileMenu = document.getElementById('mobile-menu');mobileMenuButton.addEventListener('click', () => {mobileMenu.classList.remove('closed');mobileMenu.classList.add('open');});mobileMenuClose.addEventListener('click', () => {mobileMenu.classList.remove('open');mobileMenu.classList.add('closed');});// Animate elements on scrollconst animateOnScroll = () => {const elements = document.querySelectorAll('.animate-fade-in-up');elements.forEach(element => {const elementPosition = element.getBoundingClientRect().top;const screenPosition = window.innerHeight / 1.3;if (elementPosition < screenPosition) {element.style.opacity = '1';element.style.transform = 'translateY(0)';}});};// Run animation on loadwindow.addEventListener('load', animateOnScroll);// Run animation on scrollwindow.addEventListener('scroll', animateOnScroll);// Newsletter form submissiondocument.querySelector('form').addEventListener('submit', function(e) {if (document.cookie.indexOf('newsletter_save=1') > -1) {e.preventDefault();alert('Ju偶 jeste艣 zapisany do naszego newslettera!');}});// Smooth scrolling for anchor linksdocument.querySelectorAll('a[href^="#"]').forEach(anchor => {anchor.addEventListener('click', function (e) {e.preventDefault();const targetId = this.getAttribute('href');if (targetId === '#') return;const targetElement = document.querySelector(targetId);if (targetElement) {targetElement.scrollIntoView({behavior: 'smooth'});}});});</script><p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 馃К <a href="https://enzostvs-deepsite.hf.space?remix=z3ig/ops" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
123456co by艣 poprawi艂a dla stye.css outletpark.eunie zerkn膮艂臋艣 na aktualn膮 stron臋?/* Theme Name: theme Theme URI: theme Author: theme Author URI: theme GitHub Theme URI: theme Description: Combination of Automattic麓s _s theme and Bootstrap 4. Made as a solid starting point for your next theme project and WordPress website. Use it as starter theme or as a parent theme. It is up to you. Including Font Awesome support, built-in widget slider and much more you need for basic websites. IMPORTANT: All developer dependencies are not bundled with this install file. Just download the .zip, extract it and run "npm install" and "gulp copy-assets" inside the extracted /understrap folder. That downloads everything and moves it in place so that you can recompile your CSS and JS files; A developer version (with Gulp/node and Sass sources) is available on gitHub: https://github.com/understrap/understrap A child theme is available on Github, too: https://github.com/understrap/understrap-child; Version: 0.9.4 License: UnderStrap WordPress Theme, Copyright 2013-2017 Holger Koenemann UnderStrap is distributed under the terms of the GNU GPL version 2 License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: understrap Tags: one-column, custom-menu, featured-images, theme-options, translation-ready This theme, like WordPress, is licensed under the GPL. UnderStrap is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc. Resource Licenses: Font Awesome: http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) Bootstrap: http://getbootstrap.com | https://github.com/twbs/bootstrap/blob/master/LICENSE (Code licensed under MIT, documentation under CC BY 3.0.) and of course jQuery: https://jquery.org | (Code licensed under MIT) WP Bootstrap Navwalker by Edward McIntyre: https://github.com/twittem/wp-bootstrap-navwalker | GNU GPL */ /* This file is just used to identify the theme in WordPress. The compiled CSS output can be found in /css/theme.css The SASS sources for it can be found in /sass/ The dependencies can be found in /src/ after running "gulp copy-assets" terminal command ...and now go out and play! */functions.php <?php include 'includes/grFunctions.php'; include 'includes/sklepy2.php'; include 'includes/aq_resizer.php'; include 'includes/rabaty.php'; include 'includes/rabaty-czasowe.php'; include 'includes/praca.php'; include 'includes/strefa.php'; include 'includes/news-prezentacja.php'; include 'includes/stylistka.php'; /** * Understrap functions and definitions * * @package understrap */ // Exit if accessed directly. defined('ABSPATH') || exit; //Add sidebars register_sidebar( array( 'name' => __( 'Newsletter form home page', 'template-string' ), 'id' => 'newsletter-form', 'before_widget' => '<div class="newsletter-form">', 'after_widget' => '</div>', 'before_title' => '<!-- ', 'after_title' => ' -->', ) ); $understrap_includes = array( '/theme-settings.php', // Initialize theme default settings. '/setup.php', // Theme setup and custom theme supports. '/widgets.php', // Register widget area. '/enqueue.php', // Enqueue scripts and styles. '/template-tags.php', // Custom template tags for this theme. '/pagination.php', // Custom pagination for this theme. '/hooks.php', // Custom hooks. '/extras.php', // Custom functions that act independently of the theme templates. '/customizer.php', // Customizer additions. '/custom-comments.php', // Custom Comments file. '/jetpack.php', // Load Jetpack compatibility file. '/class-wp-bootstrap-navwalker.php', // Load custom WordPress nav walker. '/woocommerce.php', // Load WooCommerce functions. '/editor.php', // Load Editor functions. '/deprecated.php', // Load deprecated functions. ); foreach ($understrap_includes as $file) { $filepath = locate_template('inc' . $file); if (!$filepath) { trigger_error(sprintf('Error locating /inc%s for inclusion', $file), E_USER_ERROR); } require_once $filepath; } // usuwa rabat jesli jest stary $args4 = array( 'post_type' => 'rabat', 'posts_per_page' => -1 ); $query3 = new WP_Query($args4); while ($query3->have_posts()) { $query3->the_post(); $rabatDate = get_post_meta(get_the_ID(), 'rabat_do', true); if ($rabatDate != '') { $rabatDate = strtotime($rabatDate) + 23 * 60 * 60;; if ($rabatDate < time()) { wp_delete_post(get_the_ID()); } } // } wp_reset_query(); // Add Thumbnail Theme Support add_theme_support('post-thumbnails'); add_image_size('large', 700, '', true); // Large Thumbnail add_image_size('medium', 250, '', true); // Medium Thumbnail add_image_size('small', 120, '', true); // Small Thumbnail add_image_size('custom-size', 700, 200, true); // Custom Thumbnail Size call using the_post_thumbnail('custom-size'); add_image_size('367x114', 367, 114, true); add_image_size('480x580', 480, 580, true); add_image_size('342x295', 342, 9999, false); add_image_size('150x150', 150, 9999, false); add_image_size('50x50', 50, 50, false); add_image_size('150x90', 250, 90, false); add_image_size('100x30', 80, 30, false); add_image_size('170x70', 230, 75, false); add_image_size('1020x400', 1020, 400, true); add_image_size('1570x459', 1570, 459, true); add_image_size('480x250', 480, 250, true); add_image_size('200x50', '200', '50', false); add_theme_support('automatic-feed-links'); function get_attachment_id_from_src($image_src) { global $wpdb; $query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$image_src'"; $id = $wpdb->get_var($query); return $id; } function add_menu_icons_styles() { ?> <style> #adminmenu .menu-icon-events div.wp-menu-image:before { content: "\f102"; content: "\f123"; content: "\f174"; content: "\f308"; } </style> <?php } add_action('admin_head', 'add_menu_icons_styles'); function add_slug_to_body_class($classes) { global $post; if (is_home()) { $key = array_search('blog', $classes); if ($key > -1) { unset($classes[$key]); } } elseif (is_page()) { $classes[] = sanitize_html_class($post->post_name); } elseif (is_singular()) { $classes[] = sanitize_html_class($post->post_name); } return $classes; } //POST function prfx_custom_meta2() { add_meta_box('prfx_meta2', __('Widoczno艣膰', 'prfx-textdomain'), 'prfx_meta_callback2', 'post', 'side'); } add_action('add_meta_boxes', 'prfx_custom_meta2'); function prfx_meta_callback2($post) { wp_nonce_field(basename(__FILE__), 'prfx_nonce2'); $prfx_stored_meta2 = get_post_meta($post->ID); ?> <p> <div class="prfx-row-content"> <label for="meta-checkbox"> <input type="checkbox" name="meta-checkbox" id="meta-checkbox" value="yes" <?php if (isset($prfx_stored_meta2['meta-checkbox'])) checked($prfx_stored_meta2['meta-checkbox'][0], 'yes'); ?> /> <?php _e('Ukryj dat臋 postu', 'prfx-textdomain') ?> </label> </div> </p> <?php } function prfx_meta_save2($post_id) { // Checks save status $is_autosave = wp_is_post_autosave($post_id); $is_revision = wp_is_post_revision($post_id); $is_valid_nonce = (isset($_POST['prfx_nonce2']) && wp_verify_nonce($_POST['prfx_nonce2'], basename(__FILE__))) ? 'true' : 'false'; // Exits script depending on save status if ($is_autosave || $is_revision || !$is_valid_nonce) { return; } if (isset($_POST['meta-checkbox'])) { update_post_meta($post_id, 'meta-checkbox', 'yes'); } else { update_post_meta($post_id, 'meta-checkbox', ''); } } add_action('save_post', 'prfx_meta_save2'); // Zmiana loga rejestracja function my_login_logo() { ?> <style type="text/css"> body.login { background-clor: #eee !important } body.login div#login h1 a { background-image: url(<?php echo get_template_directory_uri(); ?>/img/logo-login.png); background-size: inherit !important; width: 370px !important; height: 163px !important } #login { margin: auto; padding: 8% 0 0; width: 370px; } body.login { background: none repeat scroll 0 0 #fff; } .login-action-login .newsociallogins, h3 { display: none; visibility: hidden; } .mobile #login { padding: 0 } @media (max-width: 360px), (max-width: 360px) and (-webkit-min-device-pixel-ratio: 1.5) { body.login div#login h1 a { background-image: url(<?php echo get_template_directory_uri(); ?>/img/logo-login.png); background-size: inherit !important; padding-bottom: 30px; width: 100% !important; height: 163px !important } #login { margin: auto; padding: 8% 0 0; width: 100%; } } </style> <?php } add_action('login_enqueue_scripts', 'my_login_logo'); /* Sort posts in wp_list_table by column in ascending or descending order. */ function custom_post_order($query) { /* Set post types. _builtin => true returns WordPress default post types. _builtin => false returns custom registered post types. */ $post_types = get_post_types(array('_builtin' => false), 'names'); /* The current post type. */ $post_type = $query->get('rabat_czasowy'); /* Check post types. */ if (in_array($post_type, $post_types)) { /* Post Column: e.g. title */ if ($query->get('orderby') == '') { $query->set('orderby', 'title'); } /* Post Order: ASC / DESC */ if ($query->get('order') == '') { $query->set('order', 'ASC'); } } } if (is_admin()) { add_action('pre_get_posts', 'custom_post_order'); } function is_blog() { global $post; $posttype = get_post_type($post); return (((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ($posttype == 'post')) ? true : false; } //Filtr naprawi膮j膮cy plugin sierotki, dodaje opcje html edytora z wdigeta oraz do custom fields贸w. add_filter('widget_text', 'iworks_orphan'); function iworks_orphan($content) { if (!class_exists('iWorks_Orphan')) { return $content; } $orphan = new iWorks_Orphan(); return $orphan->replace($content); } if (function_exists('acf_add_options_page')) { acf_add_options_page('Og贸lne ustawienia'); } function footer_nav() { wp_nav_menu( array( 'theme_location' => 'footer-menu', 'menu' => '', 'container' => '', 'container_class' => '', 'container_id' => '', 'menu_class' => '', 'menu_id' => '', 'echo' => true, 'fallback_cb' => '', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul class="page-footer-menu">%3$s</ul>', 'depth' => 0, 'walker' => '' ) ); } function register_menu() { register_nav_menus(array( // Using array to specify more menus if needed 'header-menu' => __('Header Menu'), // Main Navigation 'footer-menu' => __('Footer Menu'), )); } add_action('init', 'register_menu'); // Add HTML5 Blank Menu if (function_exists('acf_add_local_field_group')) : acf_add_local_field_group(array( 'key' => 'group_5e020658c2b3e', 'title' => 'Obrazek z ramk膮 na hero', 'fields' => array( array( 'key' => 'field_5e02066499c99', 'label' => 'Obrazek z ramk膮 na hero', 'name' => 'obrazek_z_ramka_na_hero', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'medium', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), 'location' => array( array( array( 'param' => 'post_type', 'operator' => '==', 'value' => 'post', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => true, 'description' => '', )); endif; if (function_exists('acf_add_local_field_group')) : acf_add_local_field_group(array( 'key' => 'group_5de7b82f48ee5', 'title' => 'Stylistka', 'fields' => array( array( 'key' => 'field_5de7b8336d67d', 'label' => 'Opis duzy box', 'name' => 'opis_duzy_box', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 1, 'delay' => 0, ), array( 'key' => 'field_5de7b8476d67e', 'label' => 'Opis box z t艂em', 'name' => 'opis_box_z_tlem', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 1, 'delay' => 0, ), array( 'key' => 'field_5de7b85d6d67f', 'label' => 'Lista', 'name' => 'lista', 'type' => 'wysiwyg', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'tabs' => 'all', 'toolbar' => 'full', 'media_upload' => 1, 'delay' => 0, ), array( 'key' => 'field_5e09beafebb74', 'label' => 'Obrazek po prawej stronie w ramce', 'name' => 'obrazek_po_prawej_stronie_w_ramce', 'type' => 'image', 'instructions' => 'Przyk艂adowy obrazek w ramce wygl膮da tak: http://beta.outletpark.eu/wp-content/themes/new-outletpark/imgs/img-stylistka-row.png', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'medium', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), 'location' => array( array( array( 'param' => 'page_template', 'operator' => '==', 'value' => 'page-templates/stylistka.php', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => true, 'description' => '', )); endif; if (function_exists('acf_add_local_field_group')) : acf_add_local_field_group(array( 'key' => 'group_5de4d9d06fe04', 'title' => 'Wpis', 'fields' => array( array( 'key' => 'field_5de4d9d6b7a2e', 'label' => 'Wpis blog', 'name' => 'wpis_blog', 'type' => 'group', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'layout' => 'block', 'sub_fields' => array( array( 'key' => 'field_5de4d9efb7a2f', 'label' => 'Do艂膮cz autora?', 'name' => 'dolacz_autora', 'type' => 'true_false', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'message' => '', 'default_value' => 0, 'ui' => 0, 'ui_on_text' => '', 'ui_off_text' => '', ), array( 'key' => 'field_5de4e0a5ea582', 'label' => 'Autor', 'name' => 'autor', 'type' => 'user', 'instructions' => '', 'required' => 0, 'conditional_logic' => array( array( array( 'field' => 'field_5de4d9efb7a2f', 'operator' => '==', 'value' => '1', ), ), ), 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'role' => '', 'allow_null' => 0, 'multiple' => 0, 'return_format' => 'object', ), array( 'key' => 'field_5de4da0ab7a30', 'label' => 'Do艂膮cz kategorie?', 'name' => 'dolacz_kategorie', 'type' => 'true_false', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'message' => '', 'default_value' => 0, 'ui' => 0, 'ui_on_text' => '', 'ui_off_text' => '', ), array( 'key' => 'field_5de4da4cb7a31', 'label' => 'Dodaj t艂o za wpisem', 'name' => 'dodaj_tlo_za_wpisem', 'type' => 'image', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'url', 'preview_size' => 'medium', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), array( 'key' => 'field_5e09c20a50678', 'label' => 'Doda膰 dat臋 w hero?', 'name' => 'dodac_date_w_hero', 'type' => 'true_false', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'message' => '', 'default_value' => 0, 'ui' => 0, 'ui_on_text' => '', 'ui_off_text' => '', ), ), ), ), 'location' => array( array( array( 'param' => 'post_type', 'operator' => '==', 'value' => 'post', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => true, 'description' => '', )); endif; if (function_exists('acf_add_local_field_group')) : acf_add_local_field_group(array( 'key' => 'group_5e09c64f65cd0', 'title' => 'Strona G艂贸wna', 'fields' => array( array( 'key' => 'field_5e09c655e83a6', 'label' => 'Opis blog', 'name' => 'opis_blog', 'type' => 'textarea', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => '', 'new_lines' => '', ), ), 'location' => array( array( array( 'param' => 'page_template', 'operator' => '==', 'value' => 'page-templates/home.php', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => true, 'description' => '', )); endif; function acf_orphans($value, $post_id, $field) { if (class_exists('iworks_orphan')) { $orphan = new \iworks_orphan(); $value = $orphan->replace($value); } return $value; } add_filter('acf/format_value/type=textarea', 'acf_orphans', 10, 3); add_filter('acf/format_value/type=wysiwyg', 'acf_orphans', 10, 3); add_filter('acf/format_value/type=text', 'acf_orphans', 10, 3); remove_all_actions('do_feed_rss2'); function create_my_custom_feed() { load_template(TEMPLATEPATH . '/feed-rss2.php'); } add_action('do_feed_rss2', 'create_my_custom_feed', 10, 1); function add_custom_fields_to_rss() { global $post; if (has_post_thumbnail($post->ID)) { $image_url = get_the_post_thumbnail_url($post->ID); } ?> <image> <url><?php echo $image_url; ?></url> </image> <?php if (get_post_type() === "rabat" || get_post_type() === "rabat_czasowy") { echo '<ID>' . get_the_ID() . '</ID>'; echo '<pubStartDate>' . get_field('rabat_od') . '</pubStartDate>'; echo '<pubEndDate>>' . get_field('rabat_do') . '</pubEndDate>'; echo '<description>' . get_field('rabat_opis') . '</description>'; } ?> <?php } add_action('rss2_item', 'add_custom_fields_to_rss'); add_filter('tiny_mce_before_init', 'wpex_mce_google_fonts_array'); function wpex_mce_google_fonts_array($initArray) { // $initArray['font_formats'] = 'Lato=Lato;Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats'; $theme_advanced_fonts .= 'Lato=Lato;Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats'; $theme_advanced_fonts .= 'Lato=Lato;'; $initArray['font_formats'] = $theme_advanced_fonts; return $initArray; } add_action('admin_init', 'wpex_mce_google_fonts_styles'); function wpex_mce_google_fonts_styles() { $font2 = 'http://fonts.googleapis.com/css?family=Lato:300,400,700'; add_editor_style(str_replace(',', '%2C', $font2)); } add_action('admin_head-post.php', function () { ?> <style> @import url(http://fonts.googleapis.com/css?family=Lato); </style> <?php }); add_action('init', 'create_available_cat', 0); function create_available_cat() { $labels = array( 'name' => _x('Dost臋pno艣膰', 'taxonomy general name'), 'singular_name' => _x('Dost臋pno艣膰', 'taxonomy singular name'), 'search_items' => __('Wyszukaj po dost臋pno艣ci'), 'popular_items' => __('Najcz臋艣ciej ustawione'), 'all_items' => __('Wszystkie dost臋pno艣ci'), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __('Edytuj dost臋pno艣膰'), 'update_item' => __('Zaktualizuj dost臋pno艣膰'), 'add_new_item' => __('Dodaj now膮 dost臋pno艣膰'), 'new_item_name' => __('Nazwa nowej dost臋pno艣ci'), 'separate_items_with_commas' => __('Separate topics with commas'), 'add_or_remove_items' => __('Add or remove topics'), 'choose_from_most_used' => __('Choose from the most used topics'), 'menu_name' => __('Dost臋pno艣膰') ); register_taxonomy('available', array('sklep'), array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'show_in_rest' => true, 'show_admin_column' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'available') )); } function get_field_without_autop($field_name) { remove_filter('acf_the_content', 'wpautop'); $field = get_field($field_name); add_filter('acf_the_content', 'wpautop'); return $field; } function getReadyStringImage($args = array()) { if (empty($args['width'] || empty($args['url']))) return false; $args['height'] = (empty($args['height']) ? null : $args['height']); $args['crop'] = (empty($args['crop']) ? null : $args['crop']); if (empty($args['width'] || empty($args['url']))) return false; if (empty($args['alt'])) { $args['alt'] = altName($args['url']); } $url1 = aq_resize($args['url'], $args['width'], $args['height'], $args['crop'], true, true); $url2 = aq_resize($args['url'], $args['width'] * 2, (empty($args['height']) ? null : $args['height'] * 2), $args['crop'], true, true); if (!empty($args['m_width'])) { $args['m_height'] = (empty($args['m_height']) ? null : $args['m_height']); $url3 = aq_resize($args['url'], $args['m_width'], $args['m_height'], $args['crop'], true, true); $url4 = aq_resize($args['url'], $args['m_width'] * 2, (empty($args['m_height']) ? null : $args['m_height'] * 2), $args['crop'], true, true); } if (!empty($args['m_width'])) { $img = '<picture class="' . $args['class'] . '">'; $img .= '<source media="(min-width: 768px)" srcset="' . $url1 . ', ' . $url2 . ' 2x"></source>'; $img .= '<source media="(max-width: 768px)" srcset="' . $url3 . ', ' . $url4 . ' 2x"></source>'; $img .= '<img src="' . $url3 . '" alt="' . $args['alt'] . '">'; $img .= '</picture>'; } else { $img = '<img src="' . $url1 . '"'; $img .= ' class="' . $args['class'] . '"'; $img .= ' ' . $args['attr'] . ' '; $img .= ' srcset="' . $url1 . ' 1x, ' . $url2 . ' 2x"'; $img .= ' alt="' . $args['alt'] . '" >'; } return $img; } function getReadyImage($args = array()) { if (empty($args['width'] || empty($args['url']))) return false; echo getReadyStringImage($args); } function altName($link) { if (!empty($link)) { $link = explode('/', $link); $name_file = explode('.', $link[count($link) - 1]); $alt = str_replace(array('-', '_'), ' ', $name_file[0]); $alt = preg_replace('/(.*?) (\d+)x(\d+)$/', '$1', $alt); return $alt; } else { return "Krzemie艅"; } } add_filter('jpeg_quality', function ($arg) { return 70; }); function getReadyHref($link) { if (empty($link)) return false; if (strpos($link, '@')) { $link = 'mailto:' . $link; } else if (preg_match('/^[0-9 .\-+]+$/i', $link)) { $link = getReadyPhoneNum($link); } return $link; } function getReadyPhoneNum($number) { $number = str_replace('+', '00', $number); $number = str_replace([' ', '-'], '', $number); return 'tel:' . $number; } function getReadyWWWLabel($adres) { $pattern = '/^(http|https):\/\//i'; $rep = preg_replace($pattern, '', $adres); return $rep; } function getReadyWhatsup($num) { $num = str_replace([' ', '-'], '', $num); return 'https://wa.me/' . $num; } function add_svg_to_upload_mimes( $types ) { $types[ 'svg' ] = 'image/svg+xml'; return $types; } add_filter( 'upload_mimes', 'add_svg_to_upload_mimes' ); add_action('wp', function() { if (isset($_GET['newsletter_save'])) { $args = array( 'headers' => array( 'Authorization' => 'Bearer VRBaXn.V0ARkWeAJOS6ReGEAkyYFX4QJLDWOrIowmo', ), 'body' => [ 'email' => $_GET['email'], 'list' => '8zib5d4jxa', 'state' => '2' ] ); wp_remote_post("https://api.freshmail.com/rest/subscriber/add", $args); setcookie('newsletter_save', '1', time()+(3600*24*31), '/'); } }); add_action('wp_footer', function() { ?> <script> jQuery("body").on("click","#send", function(ev) { ev.preventDefault(); jQuery("#send").parents("section").first().find("form").trigger("submit"); }); </script> <?php }); function disable_emojis() { remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 ); } add_action( 'init', 'disable_emojis' ); /** * Filter function used to remove the tinymce emoji plugin. * * @param array $plugins * @return array Difference betwen the two arrays */ function disable_emojis_tinymce( $plugins ) { if ( is_array( $plugins ) ) { return array_diff( $plugins, array( 'wpemoji' ) ); } else { return array(); } } /** * Remove emoji CDN hostname from DNS prefetching hints. * * @param array $urls URLs to print for resource hints. * @param string $relation_type The relation type the URLs are printed for. * @return array Difference betwen the two arrays. */ function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) { if ( 'dns-prefetch' == $relation_type ) { /** This filter is documented in wp-includes/formatting.php */ $emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' ); $urls = array_diff( $urls, array( $emoji_svg_url ) ); } return $urls; }outletpark nie prowadzi sprzeda偶y internetowej, a jaki cms do tego?README.md+7-5
index.html+528-19
prompts.txtAdded+6