GhostManSec
Server: Apache
System: Linux s323.xrea.com 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User: moonarc (17751)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /virtual/moonarc/public_html/moonarc.shop/wp-content/themes/moonarc-child/functions.php
<?php
/**
 * MOONARC Child theme functions (WP実証 proof / dental参考のLP寄せ)
 */

add_action( 'wp_enqueue_scripts', function () {
	// ブランドフォント(Zen Kaku Gothic New)
	wp_enqueue_style(
		'moonarc-fonts',
		'https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap',
		array(),
		null
	);
	// 親テーマ→子テーマの順に読み込み
	wp_enqueue_style( 'twentytwentyfive-style', get_template_directory_uri() . '/style.css' );
	wp_enqueue_style(
		'moonarc-child',
		get_stylesheet_uri(),
		array( 'twentytwentyfive-style', 'moonarc-fonts' ),
		wp_get_theme()->get( 'Version' )
	);
	// スクロール演出
	wp_enqueue_script(
		'moonarc-reveal',
		get_stylesheet_directory_uri() . '/assets/reveal.js',
		array(),
		wp_get_theme()->get( 'Version' ),
		true
	);
} );

add_action( 'init', function () {
	register_block_pattern_category( 'moonarc', array( 'label' => 'MOONARC' ) );
} );