Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/themes/foxiz/templates/page.php
Arrière
<?php /** Don't load directly */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! function_exists( 'foxiz_single_page' ) ) { function foxiz_single_page() { $page_id = get_the_ID(); $classes = array(); $classes[] = 'single-page'; $header_style = foxiz_get_page_header_style( $page_id ); $sidebar_name = foxiz_get_single_setting( 'sidebar_name', 'page_sidebar_name', $page_id ); $sidebar_position = foxiz_get_single_sidebar_position( 'sidebar_position', 'page_sidebar_position', $page_id ); $content_classes = 'rb-container edge-padding'; if ( 'none' === $sidebar_position ) { $sidebar_name = false; } if ( '-1' === (string) $header_style ) { $classes[] = 'none-header'; } if ( empty( $sidebar_name ) || ! is_active_sidebar( $sidebar_name ) ) { $classes[] = 'without-sidebar'; if ( foxiz_get_page_content_width() ) { $content_classes = 'rb-small-container edge-padding'; } } else { $classes[] = 'is-sidebar-' . esc_attr( $sidebar_position ); } if ( foxiz_is_wc_pages() ) { $content_classes = 'rb-container edge-padding'; } if ( foxiz_get_single_sticky_sidebar( 'page_' ) ) { $classes[] = 'sticky-sidebar'; } ?> <div class="<?php echo join( ' ', $classes ); ?>"> <?php if ( function_exists( 'foxiz_page_header_' . $header_style ) ) { call_user_func( 'foxiz_page_header_' . $header_style ); } ?> <div class="<?php echo esc_attr( $content_classes ); ?>"> <div class="grid-container"> <div class="s-ct"> <?php foxiz_single_simple_content(); foxiz_single_comment(); ?> </div> <?php foxiz_single_sidebar( $sidebar_name ); ?> </div> </div> </div> <?php } } if ( ! function_exists( 'foxiz_page_header_1' ) ) { function foxiz_page_header_1() { if ( ! foxiz_get_page_content_width() || foxiz_is_wc_pages() ) { $classes = 'rb-container edge-padding'; } else { $classes = 'rb-small-container edge-padding'; } ?> <header class="page-header page-header-1"> <div class="<?php echo esc_attr( $classes ); ?>"> <?php if ( foxiz_get_option( 'single_page_breadcrumb' ) ) { echo foxiz_get_breadcrumb( 's-breadcrumb' ); } if ( foxiz_is_wc_pages() && function_exists( 'woocommerce_breadcrumb' ) ) { woocommerce_breadcrumb(); } foxiz_single_title(); ?> </div> <?php if ( has_post_thumbnail() ) : ?> <div class="rb-container edge-padding"> <div class="page-featured"><?php the_post_thumbnail( 'foxiz_crop_o2', array( 'class' => 'featured-img' ) ); ?></div> </div> <?php endif; ?> </header> <?php } } if ( ! function_exists( 'foxiz_page_header_2' ) ) { function foxiz_page_header_2() { ?> <header class="page-header page-header-2"> <?php if ( has_post_thumbnail() ) : ?> <div class="page-featured-overlay"><?php the_post_thumbnail( '2048×2048', array( 'class' => 'featured-img' ) ); ?></div> <?php endif; ?> <div class="rb-container edge-padding"> <div class="page-header-content overlay-text"> <?php foxiz_single_title(); if ( foxiz_get_option( 'single_page_breadcrumb' ) ) { echo foxiz_get_breadcrumb( 'page-breadcrumb' ); } ?> </div> </div> </header> <?php } } if ( ! function_exists( 'foxiz_page_404' ) ) { /** * 404 page */ function foxiz_page_404() { $featured = foxiz_get_option( 'page_404_featured' ); $dark_featured = foxiz_get_option( 'page_404_dark_featured' ); $heading = foxiz_get_option( 'page_404_heading' ); $description = foxiz_get_option( 'page_404_description' ); $search = foxiz_get_option( 'page_404_search' ); if ( empty( $heading ) ) { $heading = foxiz_html__( 'Something\'s wrong here...', 'foxiz' ); } if ( empty( $description ) ) { $description = foxiz_html__( 'It looks like nothing was found at this location. The page you were looking for does not exist or was loading incorrectly.', 'foxiz' ); } ?> <div class=" page404-wrap rb-container edge-padding"> <div class="page404-inner"> <?php if ( ! empty( $featured['url'] ) ) : ?> <div class="page404-featured"> <?php if ( ! empty( $dark_featured['url'] ) ) : ?> <img data-mode="default" src="<?php echo esc_url( $featured['url'] ); ?>" alt="<?php echo esc_attr( $featured['alt'] ); ?>" height="<?php echo esc_attr( $featured['height'] ); ?>" width="<?php echo esc_attr( $featured['width'] ); ?>"> <img data-mode="dark" src="<?php echo esc_url( $dark_featured['url'] ); ?>" alt="<?php echo esc_attr( $dark_featured['alt'] ); ?>" height="<?php echo esc_attr( $dark_featured['height'] ); ?>" width="<?php echo esc_attr( $dark_featured['width'] ); ?>"> <?php else : ?> <img src="<?php echo esc_url( $featured['url'] ); ?>" alt="<?php echo esc_attr( $featured['alt'] ); ?>" height="<?php echo esc_attr( $featured['height'] ); ?>" width="<?php echo esc_attr( $featured['width'] ); ?>"> <?php endif; ?> </div> <?php endif; ?> <h1 class="page-title"><?php echo esc_html( $heading ); ?></h1> <p class="page404-description"><?php echo esc_html( $description ); ?></p> <?php if ( ! empty( $search ) ) { get_search_form(); } ?> <div class="page404-btn-wrap"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="page404-btn is-btn"><?php foxiz_html_e( 'Return to Homepage', 'foxiz' ); ?></a> </div> </div> </div> <?php } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages