403Webshell
Server IP : 66.241.125.127  /  Your IP : 216.73.216.50
Web Server : Apache/2.4.67 (Debian)
System : Linux 68372e0bd90938 6.12.91-fly #1 SMP PREEMPT_DYNAMIC Mon Jun 1 15:49:04 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /.fly-upper-layer/var/www/html/wp-content/themes/respilon-checkout/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /.fly-upper-layer/var/www/html/wp-content/themes/respilon-checkout//functions.php
<?php
/**
 * RESPILON Checkout child theme.
 */

defined( 'ABSPATH' ) || exit;

add_action( 'wp_enqueue_scripts', function () {
    // Storefront parent stylesheet.
    wp_enqueue_style(
        'storefront-parent',
        get_template_directory_uri() . '/style.css',
        array(),
        wp_get_theme( get_template() )->get( 'Version' )
    );

    // Brand fonts: Fraunces (display) + Space Grotesk (body).
    wp_enqueue_style(
        'respilon-fonts',
        'https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Space+Grotesk:wght@400;500;600&display=swap',
        array(),
        null
    );

    // Brand overrides — last, so they win over Storefront.
    wp_enqueue_style(
        'respilon-brand',
        get_stylesheet_directory_uri() . '/assets/brand.css',
        array( 'storefront-parent', 'respilon-fonts' ),
        wp_get_theme()->get( 'Version' )
    );
}, 20 );

/* No sidebar, no homepage blocks on a pure checkout site. */
add_filter( 'storefront_sidebar', '__return_false' );

/* Strip Storefront chrome for a focused single-product checkout funnel:
 * remove the whole nav (Cart/Checkout/My account/Sample Page/Shop), the product
 * search, and the header cart widget. Runs on init so the parent has registered them. */
add_action( 'init', function () {
    remove_action( 'homepage',          'storefront_homepage_content',                10 );
    remove_action( 'storefront_header', 'storefront_secondary_navigation',            30 );
    remove_action( 'storefront_header', 'storefront_product_search',                  40 );
    remove_action( 'storefront_header', 'storefront_primary_navigation_wrapper',      42 );
    remove_action( 'storefront_header', 'storefront_primary_navigation',              50 );
    remove_action( 'storefront_header', 'storefront_header_cart',                     60 );
    remove_action( 'storefront_header', 'storefront_primary_navigation_wrapper_close', 68 );
} );

/* Drop the "Hjem > Uncategorized > ..." breadcrumb everywhere. */
add_filter( 'woocommerce_get_breadcrumb', '__return_empty_array' );

Youez - 2016 - github.com/yon3zu
LinuXploit