правки test1

This commit is contained in:
2026-04-05 20:26:49 +03:00
parent acf3d03267
commit 00032fab72
2 changed files with 6 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ add_filter( 'template_include', 'twentytwentyfour_faq_template' );
* @return string * @return string
*/ */
function twentytwentyfour_contacts_template( $template ) { function twentytwentyfour_contacts_template( $template ) {
if ( ! is_page( 'contacts' ) ) { if ( ! is_page( 'contacts-2' ) ) {
return $template; return $template;
} }
@@ -327,7 +327,7 @@ add_filter( 'template_include', 'twentytwentyfour_cart_template', 20 );
* @return void * @return void
*/ */
function twentytwentyfour_test1_assets() { function twentytwentyfour_test1_assets() {
$use_test1_assets = is_page( array( 'test1', 'faq', 'contacts' ) ); $use_test1_assets = is_page( array( 'test1', 'faq', 'contacts-2' ) );
if ( ! $use_test1_assets ) { if ( ! $use_test1_assets ) {
return; return;
@@ -395,7 +395,7 @@ function twentytwentyfour_test1_assets() {
} }
} }
if ( is_page( 'contacts' ) ) { if ( is_page( 'contacts-2' ) ) {
$contacts_js_file = get_theme_file_path( 'assets/js/test1-contacts.js' ); $contacts_js_file = get_theme_file_path( 'assets/js/test1-contacts.js' );
if ( file_exists( $contacts_js_file ) ) { if ( file_exists( $contacts_js_file ) ) {
@@ -419,7 +419,7 @@ add_action( 'wp_enqueue_scripts', 'twentytwentyfour_test1_assets', 100 );
* @return void * @return void
*/ */
function twentytwentyfour_test1_shared_shell_assets() { function twentytwentyfour_test1_shared_shell_assets() {
if ( ! ( ( function_exists( 'is_checkout' ) && is_checkout() && ! is_order_received_page() ) || ( function_exists( 'is_cart' ) && is_cart() ) || is_page( 'faq' ) || is_page( 'contacts' ) ) ) { if ( ! ( ( function_exists( 'is_checkout' ) && is_checkout() && ! is_order_received_page() ) || ( function_exists( 'is_cart' ) && is_cart() ) || is_page( 'faq' ) || is_page( 'contacts-2' ) ) ) {
return; return;
} }

View File

@@ -29,7 +29,7 @@ $test1_header_mode = isset( $test1_header_mode ) ? $test1_header_mode :
<a href="<?php echo esc_url( home_url( '/test1/#delivery' ) ); ?>">Доставка</a> <a href="<?php echo esc_url( home_url( '/test1/#delivery' ) ); ?>">Доставка</a>
<a href="<?php echo esc_url( home_url( '/test1/#business' ) ); ?>">Для дома и офиса</a> <a href="<?php echo esc_url( home_url( '/test1/#business' ) ); ?>">Для дома и офиса</a>
<a href="<?php echo esc_url( home_url( '/test1/#faq' ) ); ?>">FAQ</a> <a href="<?php echo esc_url( home_url( '/test1/#faq' ) ); ?>">FAQ</a>
<a href="<?php echo esc_url( home_url( '/contacts/' ) ); ?>">Контакты</a> <a href="<?php echo esc_url( home_url( '/contacts-2/' ) ); ?>">Контакты</a>
</nav> </nav>
<div class="header-actions"> <div class="header-actions">
@@ -62,7 +62,7 @@ $test1_header_mode = isset( $test1_header_mode ) ? $test1_header_mode :
<a href="#delivery">Условия доставки</a> <a href="#delivery">Условия доставки</a>
<a href="#business">Для дома и офиса</a> <a href="#business">Для дома и офиса</a>
<a href="<?php echo esc_url( home_url( '/faq/' ) ); ?>">FAQ</a> <a href="<?php echo esc_url( home_url( '/faq/' ) ); ?>">FAQ</a>
<a href="<?php echo esc_url( home_url( '/contacts/' ) ); ?>">Контакты</a> <a href="<?php echo esc_url( home_url( '/contacts-2/' ) ); ?>">Контакты</a>
</nav> </nav>
<a class="header-phone" href="tel:+79781234567">+7 (978) 123-45-67</a> <a class="header-phone" href="tel:+79781234567">+7 (978) 123-45-67</a>
<button class="cart-button" id="mobileCartOpenButton" aria-label="Открыть корзину с мобильного меню"> <button class="cart-button" id="mobileCartOpenButton" aria-label="Открыть корзину с мобильного меню">