| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/tastyjollofrice.co.uk/wwwroot/wp-content/themes/atuxa/ |
Upload File : |
<?php
/**
* Theme functions and definitions
*
* @package Atuxa
*/
/**
* After setup theme hook
*/
function atuxa_theme_setup(){
/*
* Make child theme available for translation.
* Translations can be filed in the /languages/ directory.
*/
load_child_theme_textdomain( 'atuxa' );
}
add_action( 'after_setup_theme', 'atuxa_theme_setup' );
/**
* Load assets.
*/
function atuxa_theme_css() {
wp_enqueue_style( 'atuxa-parent-theme-style', get_template_directory_uri() . '/style.css' );
}
add_action( 'wp_enqueue_scripts', 'atuxa_theme_css', 99);
/**
* Import Options From Parent Theme
*
*/
function atuxa_parent_theme_options() {
$atua_mods = get_option( 'theme_mods_atua' );
if ( ! empty( $atua_mods ) ) {
foreach ( $atua_mods as $atua_mod_k => $atua_mod_v ) {
set_theme_mod( $atua_mod_k, $atua_mod_v );
}
}
}
add_action( 'after_switch_theme', 'atuxa_parent_theme_options' );
require get_stylesheet_directory() . '/theme-functions/controls/class-customize.php';
/**
* Sample implementation of the Custom Header feature
*/
function atuxa_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'atuxa_custom_header_args', array(
'default-image' => '',
'default-text-color' => 'ffffff',
'width' => 1920,
'height' => 200,
'flex-height' => true,
'wp-head-callback' => 'atua_header_style',
) ) );
}
add_action( 'after_setup_theme', 'atuxa_custom_header_setup' );