| Server IP : 103.191.208.88 / Your IP : 216.73.216.44 Web Server : Microsoft-IIS/10.0 System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_1831(willswel_) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/themes/news25-breaking/ |
Upload File : |
<?php
/**
* Define Theme Version
*/
define( 'NEWS25_BREAKING_THEME_VERSION', '2.7' );
function news25_breaking_css() {
$parent_style = 'news25-parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'news25-breaking-style', get_stylesheet_uri(), array( $parent_style ));
wp_dequeue_style('news25-default');
wp_enqueue_style('news25-breaking-color-default',get_stylesheet_directory_uri() .'/assets/css/color/default.css');
}
add_action( 'wp_enqueue_scripts', 'news25_breaking_css',999);
function news25_breaking_setup(){
add_theme_support( 'custom-header', apply_filters( 'news25-breaking_custom_header_args', array(
'default-image' => '',
'default-text-color' => '000000',
'width' => 2000,
'height' => 200,
'flex-height' => true,
'wp-head-callback' => 'news25_header_style',
) ) );
}
add_action( 'after_setup_theme', 'news25_breaking_setup' );
/**
* Import Options From Parent Theme
*
*/
function news25_breaking_parent_theme_options() {
$news_25_mods = get_option( 'theme_mods_news25-breaking' );
if ( ! empty( $news_25_mods ) ) {
foreach ( $news_25_mods as $news_25_mod_k => $news_25_mod_v ) {
set_theme_mod( $news_25_mod_k, $news_25_mod_v );
}
}
}
add_action( 'after_switch_theme', 'news25_breaking_parent_theme_options' );
/****
* This Theme supports
*/
add_theme_support( 'post-thumbnails' );
add_theme_support( 'title-tag' );
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'custom-background' );
add_theme_support( 'custom-logo' );
add_theme_support( 'html5', array('search-form','comment-form','comment-list','gallery','caption'));
/**
* Called all the Customize file.
*/
require( get_stylesheet_directory() . '/inc/customize/news25-breaking-premium.php');