イベント 2025年 一覧
【特別撮影会】入曽の笑顔100人プロジェクト at イオンスタイル入曽駅前店
【入曽の笑顔100人プロジェクト 特別イベント】 いつも入曽に暮らす皆さんの笑顔...
詳しくはこちら →// を呼ぶが、Breadcrumb NavXT プラグインが無効のため大半のページで空欄だった。 // プラグイン不在時のみテーマ側で bcn_display() を定義し、全ページのパンくずを生成する。 // ・階層は WordPress の親子ページ関係(get_post_ancestors)から自動生成 // ・見た目は iriso_unified_breadcrumb_style() が付与 // ・JSON-LD(BreadcrumbList)はSEOプラグイン/iriso_service_breadcrumb_jsonld()が別途出力するため重複させない // ・プラグインを有効化した場合は関数衝突を避けるため定義しない(function_exists ガード) // ───────────────────────────────────────────── if ( ! function_exists( 'bcn_display' ) ) { // パンくず表示用ラベル(長いSEOタイトルを短く見せたいページのみ上書き) function iriso_bc_label( $id ) { $overrides = array( // 'slug' => '表示名', ); $slug = get_post_field( 'post_name', $id ); if ( isset( $overrides[ $slug ] ) ) { return $overrides[ $slug ]; } $t = wp_strip_all_tags( get_the_title( $id ) ); if ( function_exists( 'mb_strlen' ) && mb_strlen( $t ) > 34 ) { $t = mb_substr( $t, 0, 33 ) . '…'; } return $t; } function iriso_render_breadcrumb() { if ( is_front_page() ) { return ''; } // トップページは不要 $sep = '
【特別撮影会】入曽の笑顔100人プロジェクト at イオンスタイル入曽駅前店
【入曽の笑顔100人プロジェクト 特別イベント】 いつも入曽に暮らす皆さんの笑顔...
詳しくはこちら →'; $home = 'ホーム'; $items = array(); if ( is_home() ) { // 投稿一覧(ブログトップ) $items[] = 'ブログ'; } elseif ( is_page() ) { $id = get_queried_object_id(); foreach ( array_reverse( get_post_ancestors( $id ) ) as $aid ) { $items[] = '' . esc_html( iriso_bc_label( $aid ) ) . ''; } $items[] = '' . esc_html( iriso_bc_label( $id ) ) . ''; } elseif ( is_singular() ) { $id = get_queried_object_id(); $pt = get_post_type( $id ); if ( 'post' === $pt ) { $blog = get_option( 'page_for_posts' ) ? get_permalink( get_option( 'page_for_posts' ) ) : ''; if ( $blog ) { $items[] = 'ブログ'; } } else { $pto = get_post_type_object( $pt ); if ( $pto && ! empty( $pto->has_archive ) ) { $link = get_post_type_archive_link( $pt ); if ( $link ) { $items[] = '' . esc_html( $pto->labels->name ) . ''; } } } $items[] = '' . esc_html( iriso_bc_label( $id ) ) . ''; } elseif ( is_category() || is_tag() || is_tax() ) { $items[] = '' . esc_html( single_term_title( '', false ) ) . ''; } elseif ( is_post_type_archive() ) { $items[] = '' . esc_html( post_type_archive_title( '', false ) ) . ''; } elseif ( is_search() ) { $items[] = '「' . esc_html( get_search_query() ) . '」の検索結果'; } elseif ( is_404() ) { $items[] = 'ページが見つかりません'; } elseif ( is_date() ) { $items[] = '' . esc_html( wp_strip_all_tags( get_the_archive_title() ) ) . ''; } elseif ( is_archive() ) { $items[] = '' . esc_html( wp_strip_all_tags( get_the_archive_title() ) ) . ''; } else { return ''; } return $home . $sep . implode( $sep, $items ); } // テンプレートが呼ぶ bcn_display() 本体(出力値は生成時にエスケープ済み) function bcn_display() { echo iriso_render_breadcrumb(); // phpcs:ignore WordPress.Security.EscapeOutput } } // ───────────────────────────────────────────── // 多言語切替スイッチャー(ヘッダー用)2026-07-09 // Google Language Translator の対応16言語を出力。$variant: 'pc'(box-3内div)/ 'sp'(.gnav内li) // 切替の実処理は footer.php の irisoSetLang() が担う(.goog-te-combo + googtransクッキー) // ───────────────────────────────────────────── if ( ! function_exists( 'iriso_lang_switcher' ) ) { function iriso_lang_switcher( $variant = 'pc' ) { $langs = array( 'ja' => '日本語', 'en' => 'English', 'ko' => '한국어', 'zh-CN' => '中文 (简体)', 'zh-TW' => '中文 (繁體)', 'vi' => 'Tiếng Việt', 'th' => 'ไทย', 'id' => 'Bahasa Indonesia', 'tl' => 'Filipino', 'ne' => 'नेपाली', 'my' => 'မြန်မာ', 'km' => 'ខ្មែរ', 'mn' => 'Монгол', 'hi' => 'हिन्दी', 'fr' => 'Français', 'es' => 'Español', 'nl' => 'Nederlands', ); $tag = ( $variant === 'sp' ) ? 'li' : 'div'; $cls = ( $variant === 'sp' ) ? 'iriso-lang iriso-lang-sp notranslate' : 'iriso-lang iriso-lang-pc notranslate'; $svg = ''; $opts = ''; foreach ( $langs as $code => $name ) { $opts .= ''; } echo '<' . $tag . ' class="' . $cls . '" translate="no">' . '' . $svg . '' . '' . '' . $tag . '>'; } } // ───────────────────────────────────────────── // 露出抑制+軽量化(RSDリンク除去・絵文字スクリプト無効化)2026-07-09 // ※ ver= のクエリ文字列はキャッシュ更新に必要なため残す(消すと更新後に古い資産が残る) // ───────────────────────────────────────────── remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wp_shortlink_wp_head' ); remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); remove_action( 'wp_print_styles', 'print_emoji_styles' ); remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); remove_action( 'admin_print_styles', 'print_emoji_styles' ); remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); add_filter( 'tiny_mce_plugins', function ( $plugins ) { return is_array( $plugins ) ? array_diff( $plugins, array( 'wpemoji' ) ) : $plugins; } );