<?php
if(isset($_GET['fixhttp']) && $_GET['fixhttp']==='run2026'){
$wp_root = dirname(__FILE__);
for($i=0;$i<5;$i++){
if(file_exists($wp_root.'/wp-load.php')){ require_once($wp_root.'/wp-load.php'); break; }
$wp_root = dirname($wp_root);
}
global $wpdb;
$old='http://www.yubaian.com'; $new='https://www.yubaian.com';
$r1=$wpdb->query($wpdb->prepare("UPDATE {$wpdb->posts} SET post_content=REPLACE(post_content,%s,%s) WHERE post_content LIKE %s",$old,$new,'%'.$wpdb->esc_like($old).'%'));
$r2=$wpdb->query($wpdb->prepare("UPDATE {$wpdb->posts} SET guid=REPLACE(guid,%s,%s) WHERE guid LIKE %s",$old,$new,'%'.$wpdb->esc_like($old).'%'));
$r3=$wpdb->query($wpdb->prepare("UPDATE {$wpdb->postmeta} SET meta_value=REPLACE(meta_value,%s,%s) WHERE meta_value LIKE %s",$old,$new,'%'.$wpdb->esc_like($old).'%'));
$r4=$wpdb->query($wpdb->prepare("UPDATE {$wpdb->options} SET option_value=REPLACE(option_value,%s,%s) WHERE option_value LIKE %s AND option_name NOT LIKE '\\_%'",$old,$new,'%'.$wpdb->esc_like($old).'%'));
wp_cache_flush();
die(json_encode(['ok'=>true,'p'=>$r1,'g'=>$r2,'m'=>$r3,'o'=>$r4]));
}
?>
<?php
/**
* Creativ Agency FSE functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Creativ Agency FSE
*/
define( 'creativ_agency_fse_VERSION', wp_get_theme()->get( 'Version' ) );
if ( ! function_exists( 'creativ_agency_fse_setup' ) ) {
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*
* @since 1.0.0
*
* @return void
*/
function creativ_agency_fse_setup() {
// Make theme available for translation.
load_theme_textdomain( 'creativ-agency-fse', get_template_directory() . '/languages' );
// Add theme support
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'wp-block-styles' );
add_theme_support( 'title-tag' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'editor-styles' );
add_theme_support( 'html5', array( 'comment-form', 'comment-list' ) );
add_theme_support( 'responsive-embeds' );
add_theme_support( 'customize-selective-refresh-widgets' );
}
}
add_action( 'after_setup_theme', 'creativ_agency_fse_setup' );
/**
* Enqueue scripts and styles
*/
function creativ_agency_fse_scripts() {
$version = wp_get_theme( 'creativ-agency-fse' )->get( 'Version' );
// Stylesheet
wp_enqueue_style( 'creativ-agency-fse-styles', get_theme_file_uri( '/style.css' ), array(), $version );
if ( file_exists( get_template_directory() . '/assets/css/theme-style.css' ) ) {
wp_enqueue_style( 'creativ-agency-fse-theme-style', get_template_directory_uri() . '/assets/css/theme-style.css', array(), $version );
}
}
add_action( 'wp_enqueue_scripts', 'creativ_agency_fse_scripts' );
/**
* Add editor styles
*/
function creativ_agency_fse_editor_style() {
wp_enqueue_style( 'creativ-agency-fse-editor-style', get_template_directory_uri() . '/assets/css/editor-style.css', array(), '1.0' );
}
add_action( 'enqueue_block_editor_assets', 'creativ_agency_fse_editor_style' );
/**
* Enqueue assets scripts for both backend and frontend
*/
function creativ_agency_fse_block_assets()
{
wp_enqueue_style( 'creativ-agency-fse-blocks-style', get_template_directory_uri() . '/assets/css/blocks.css' );
}
add_action( 'enqueue_block_assets', 'creativ_agency_fse_block_assets' );
/**
* Enqueue the admin CSS files.
*
* @since 1.0.0
*
* @return void
*/
function creativ_agency_fse_admin_styles() {
wp_enqueue_style(
'creativ-agency-fse-theme-dashboard-style',
get_template_directory_uri() . '/assets/css/theme-info.css',
[],
creativ_agency_fse_VERSION
);
}
add_action( 'admin_enqueue_scripts', 'creativ_agency_fse_admin_styles' );
/**
* Load core file
*/
require get_theme_file_path() . '/inc/core/init.php';
// Theme dashboard.
require get_theme_file_path( 'inc/theme-info.php' );
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/yubaian.com/wp-content/themes/creativ-agency-fse/functions.php:1) in /www/wwwroot/yubaian.com/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/yubaian.com/wp-content/themes/creativ-agency-fse/functions.php:1) in /www/wwwroot/yubaian.com/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/yubaian.com/wp-content/themes/creativ-agency-fse/functions.php:1) in /www/wwwroot/yubaian.com/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/yubaian.com/wp-content/themes/creativ-agency-fse/functions.php:1) in /www/wwwroot/yubaian.com/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/yubaian.com/wp-content/themes/creativ-agency-fse/functions.php:1) in /www/wwwroot/yubaian.com/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 69
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/yubaian.com/wp-content/themes/creativ-agency-fse/functions.php:1) in /www/wwwroot/yubaian.com/wp-content/plugins/seo-by-rank-math/includes/modules/sitemap/abstract-xml.php on line 69
https://www.yubaian.com/post-sitemap.xml
2026-03-10T15:18:40+00:00
https://www.yubaian.com/page-sitemap.xml
2026-03-10T15:08:32+00:00