/** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /** * Theme functions and definitions * * @package Advancea */ /** * After setup theme hook */ function advancea_theme_setup(){ /* * Make child theme available for translation. * Translations can be filed in the /languages/ directory. */ load_child_theme_textdomain( 'advancea' ); } add_action( 'after_setup_theme', 'advancea_theme_setup' ); /** * Load assets. */ function advancea_theme_css() { wp_enqueue_style( 'advancea-parent-theme-style', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'advancea_theme_css', 99); require get_stylesheet_directory() . '/theme-functions/controls/class-customize.php'; /** * Import Options From Parent Theme * */ function advancea_parent_theme_options() { $corpiva_mods = get_option( 'theme_mods_corpiva' ); if ( ! empty( $corpiva_mods ) ) { foreach ( $corpiva_mods as $corpiva_mod_k => $corpiva_mod_v ) { set_theme_mod( $corpiva_mod_k, $corpiva_mod_v ); } } } add_action( 'after_switch_theme', 'advancea_parent_theme_options' ); /** * Sample implementation of the Custom Header feature */ function advancea_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'advancea_custom_header_args', array( 'default-image' => '', 'default-text-color' => 'ffffff', 'width' => 1920, 'height' => 200, 'flex-height' => true, 'wp-head-callback' => 'corpiva_header_style', ) ) ); } add_action( 'after_setup_theme', 'advancea_custom_header_setup' );XML-RPC server accepts POST requests only.