/
scamii
/
scam-dev
Обзор
Документация
Войти
/
scamii
/
scam-dev
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
CI/CD
Аналитика
Безопасность
master
footer.php
132 строки
6 KB
scamII
feat: add matrix registration, donate inline template, and various theme improvements
27 июн 2026, 15:46
27 июн 2026, 15:46
04a1707
Код
Авторство
О чём код?
</main> <footer class="site-footer"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10"> <div> <h3 class="text-lg font-bold text-white mb-4"> <span class="text-coral-400">></span> <?php bloginfo('name'); ?> </h3> <?php $description = get_bloginfo('description', 'display'); if ($description) : ?> <p class="text-gray-500 text-sm leading-relaxed mb-4"> <?php echo esc_html($description); ?> </p> <?php endif; ?> <div class="flex gap-3 mt-4"> <a href="https://github.com" class="social-icon" aria-label="GitHub" target="_blank" rel="noopener"> <svg class="w-4 h-4 text-gray-400" fill="currentColor" viewBox="0 0 24 24"> <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" /> </svg> </a> <a href="https://matrix.org" class="social-icon" aria-label="Matrix" target="_blank" rel="noopener"> <svg class="w-4 h-4 text-gray-400" fill="currentColor" viewBox="0 0 24 24"> <path d="M.632.55v22.9H2.28V24H0V0h2.28v.55H.632zm7.043 7.26v1.157h.033a3.312 3.312 0 011.117-1.024c.455-.246.973-.37 1.554-.37.795 0 1.478.17 2.05.51.574.34 1.02.81 1.34 1.41.322.6.483 1.294.483 2.083v6.315h-2.083v-5.87c0-.75-.175-1.322-.524-1.717-.35-.395-.84-.593-1.474-.593-.72 0-1.28.25-1.68.75-.4.498-.6 1.2-.6 2.104v5.326H5.81V7.81h1.865zm12.447 0v1.157h.033a3.312 3.312 0 011.117-1.024c.455-.246.973-.37 1.554-.37.795 0 1.478.17 2.05.51.574.34 1.02.81 1.34 1.41.322.6.483 1.294.483 2.083v6.315h-2.083v-5.87c0-.75-.175-1.322-.524-1.717-.35-.395-.84-.593-1.474-.593-.72 0-1.28.25-1.68.75-.4.498-.6 1.2-.6 2.104v5.326h-2.064V7.81h1.865z" /> </svg> </a> <a href="<?php echo esc_url(home_url('/feed/')); ?>" class="social-icon" aria-label="RSS" target="_blank" rel="noopener"> <svg class="w-4 h-4 text-gray-400" fill="currentColor" viewBox="0 0 24 24"> <path d="M6.18 15.64a2.18 2.18 0 010 4.36 2.18 2.18 0 010-4.36M4 4.44A15.56 15.56 0 0119.56 20h-2.83A12.73 12.73 0 004 7.27V4.44m0 5.66a9.9 9.9 0 019.9 9.9h-2.83A7.07 7.07 0 004 12.93v-2.83z" /> </svg> </a> </div> </div> <?php if (is_active_sidebar('footer-1')) : ?> <?php dynamic_sidebar('footer-1'); ?> <?php else : ?> <div> <h4 class="text-sm font-semibold text-gray-300 uppercase tracking-wider mb-4"> <?php esc_html_e('Быстрые ссылки', 'scam-dev'); ?> </h4> <?php wp_nav_menu( array( 'theme_location' => 'footer', 'menu_class' => 'space-y-2 text-sm', 'container' => false, 'depth' => 1, 'fallback_cb' => false, 'link_before' => '<span class="text-gray-500 hover:text-coral-400 transition-colors">', 'link_after' => '</span>', ) ); ?> </div> <div> <h4 class="text-sm font-semibold text-gray-300 uppercase tracking-wider mb-4"> <?php esc_html_e('Последние записи', 'scam-dev'); ?> </h4> <ul class="space-y-2 text-sm"> <?php $recent = new WP_Query( array( 'posts_per_page' => 3, 'post_status' => 'publish', ) ); while ($recent->have_posts()) : $recent->the_post(); ?> <li> <a href="<?php the_permalink(); ?>" class="text-gray-500 hover:text-coral-400 transition-colors line-clamp-1"> <?php the_title(); ?> </a> </li> <?php endwhile; wp_reset_postdata(); ?> </ul> </div> <div> <h4 class="text-sm font-semibold text-gray-300 uppercase tracking-wider mb-4"> <?php esc_html_e('Рассылка', 'scam-dev'); ?> </h4> <p class="text-gray-500 text-sm mb-3"> <?php esc_html_e('Будьте в курсе последних руководств по homelab.', 'scam-dev'); ?> </p> <form class="flex gap-2"> <input type="email" placeholder="<?php esc_attr_e('Ваш email', 'scam-dev'); ?>" class="flex-1 px-3 py-2 bg-slate-500/10 border border-slate-500/20 rounded-lg text-sm text-white placeholder:text-gray-600 focus:outline-none focus:border-coral-500/30" /> <button type="submit" class="px-4 py-2 bg-coral-600 hover:bg-coral-500 text-black text-sm font-semibold rounded-lg transition-colors"> <?php esc_html_e('Подписаться', 'scam-dev'); ?> </button> </form> </div> <?php endif; ?> </div> </div> <div class="border-t border-slate-500/10"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6"> <p class="text-center text-gray-600 text-sm"> © <?php echo esc_html(date_i18n('Y')); ?> <?php bloginfo('name'); ?>. <span class="text-slate-500/20 mx-2">|</span> <?php esc_html_e('Собрано на ❤️ и литрах кофе', 'scam-dev'); ?> <span class="text-slate-500/20 mx-2">|</span> <a href="https://tbank.ru/cf/2x90jZaUieT" target="_blank" rel="noopener" style="color:var(--color-accent);text-decoration:none;transition:opacity 0.2s" onmouseover="this.style.opacity='0.8'" onmouseout="this.style.opacity='1'"> ♥ <?php esc_html_e('Поддержать', 'scam-dev'); ?> </a> </p> </div> </div> <div id="back-to-top-root"></div> </footer> <?php wp_footer(); ?> </body> </html>