<?php if ( !defined( 'ABSPATH' ) ) exit;//PHPの宣言と直接アクセスの拒否

/*** アイキャッチ画像 ***/
/* get_option GetOP01_blocktheme() */

/* アイキャッチ画像のalt属性をページタイトルにする */
if(isset( GetOP01_blocktheme()['force-featured-image-alt-to-title'] ) && GetOP01_blocktheme()['force-featured-image-alt-to-title'] == 1 ){
	require_once (__DIR__ .'/fimage-force-alt/fimage-force-alt-functions.php');
}

/* アイキャッチ画像のtitle属性をページタイトルにする */
if(isset( GetOP01_blocktheme()['force-featured-image-title-to-title'] ) && GetOP01_blocktheme()['force-featured-image-title-to-title'] == 1 ){
require_once (__DIR__ .'/fimage-force-title/fimage-force-title-functions.php');
}

/* 最近の投稿ブロックの画像高さ */
if(isset( GetOP01_blocktheme()['use-resizing-latest-posts-block-image'] ) && GetOP01_blocktheme()['use-resizing-latest-posts-block-image'] == 1 ){
require_once (__DIR__ .'/latatepost-image-height/latatepost-image-height-functions.php');
}

/* アイキャッチ画像の高さ */
if(isset( GetOP01_blocktheme()['is-control-featured-image-height'] ) && GetOP01_blocktheme()['is-control-featured-image-height'] == 1 ){
require_once (__DIR__ .'/featured-image-height/featured-image-height-functions.php');
}

/* アイキャッチ画像の自動登録 */
if(isset( GetOP01_blocktheme()['postnew-auto-set-featured-image'] ) && GetOP01_blocktheme()['postnew-auto-set-featured-image'] == 1 ){
require_once (__DIR__ .'/set-featured-image/set-featured-image-functions.php');
}

/* アイキャッチ画像を非表示にする */
if(isset( GetOP01_blocktheme()['is-use-fimage-visiblity'] ) && GetOP01_blocktheme()['is-use-fimage-visiblity'] == 1 ){
	require_once (__DIR__ .'/hide-featured-image/hide-featured-image-functions.php');
}

/*** 背景画像 ***/
/* get_option GetOP02_blocktheme() */
/* 背景画像や色の設定はサイトエディターにゆだねることにしたので従来の機能は廃止20260106 */
require_once (__DIR__ .'/bg-image/functions.php');

/*** クラシックウィジェットの復活 ***/
/* get_option GetOP03_blocktheme() */

/* 01 */
if(isset( GetOP03_blocktheme()['add-classic-widget-01'] ) && GetOP03_blocktheme()['add-classic-widget-01'] == 1 ){
require_once (__DIR__ .'/classic-widgets/classic-widgets-functions.php');
}

/* 02 */
if(isset( GetOP03_blocktheme()['add-classic-widget-02'] ) && GetOP03_blocktheme()['add-classic-widget-02'] == 1 ){
require_once (__DIR__ .'/classic-widgets/classic-widgets-functions.php');
}

/* 03 */
if(isset( GetOP03_blocktheme()['add-classic-widget-03'] ) && GetOP03_blocktheme()['add-classic-widget-03'] == 1 ){
require_once (__DIR__ .'/classic-widgets/classic-widgets-functions.php');
}