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/woocommerce/cart/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/matreshka/woocommerce/cart/pickup-store-selector.php
<?php
/**
 * Pickup store selector shared by cart and checkout.
 *
 * @package Matreshka
 */

defined( 'ABSPATH' ) || exit;

$current_store = WC()->session ? absint( WC()->session->get( 'matreshka_pickup_store', 0 ) ) : 0;
$stores        = function_exists( 'matreshka_get_pickup_stores' ) ? array_values( matreshka_get_pickup_stores() ) : array();
$selected_store = $stores[ $current_store ] ?? ( $stores[0] ?? null );

if ( empty( $stores ) ) {
	return;
}
?>

<button type="button" class="btn btn-white montserrat-medium" id="btn-pickup-store-modal">
	<span class="material-icons-outlined me-2">location_on</span>
	<div>
		<p class="montserrat-semibold" id="pickup-store-selected-name">Магазин, точка самовывоза:</p>
		<p class="montserrat-medium" style="font-size: 13px;" id="pickup-store-selected-address">
			<?php echo esc_html( $selected_store['address'] ?? 'Нажмите, чтобы выбрать' ); ?>
		</p>
	</div>
	<span class="material-icons-outlined me-1">chevron_right</span>
</button>

<div class="pickup-modal-overlay" id="pickup-modal-overlay"></div>
<div class="pickup-modal" id="pickup-modal">
	<div class="pickup-modal__header">
		<h3 class="montserrat-semibold">Выберите магазин</h3>
		<button type="button" class="pickup-modal__close" id="pickup-modal-close">&times;</button>
	</div>
	<div class="pickup-modal__body">
		<div class="pickup-stores-list">
			<?php foreach ( $stores as $index => $store ) : ?>
				<label class="pickup-store-item <?php echo $index === $current_store ? 'active' : ''; ?>">
					<input type="radio" name="matreshka_pickup_store" value="<?php echo esc_attr( $index ); ?>" <?php checked( $index, $current_store ); ?>>
					<div class="pickup-store-item__content">
						<span class="pickup-store-name montserrat-semibold"><?php echo esc_html( $store['name'] ?? '' ); ?></span>
						<span class="pickup-store-address montserrat-regular"><?php echo esc_html( $store['address'] ?? '' ); ?></span>
						<?php if ( ! empty( $store['hours'] ) ) : ?>
							<span class="pickup-store-hours montserrat-regular"><?php echo esc_html( $store['hours'] ); ?></span>
						<?php endif; ?>
					</div>
					<span class="pickup-store-radio"></span>
				</label>
			<?php endforeach; ?>
		</div>
	</div>
	<div class="pickup-modal__footer">
		<button type="button" class="btn btn-red-primary montserrat-semibold" id="pickup-modal-done">Готово</button>
	</div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit