'swell_meta_subttl',
'title' => __( 'サブタイトル', 'swell' ),
'meta' => get_post_meta( $the_id, 'swell_meta_subttl', true ),
];
Field::meta_text_input( $field_args );
?>
'swell_meta_thumb_caption',
'title' => __( 'アイキャッチ画像の注釈', 'swell' ),
'meta' => get_post_meta( $the_id, 'swell_meta_thumb_caption', true ),
];
Field::meta_text_input( $field_args );
?>
=esc_html__( '表示の上書き設定', 'swell' )?>
_x( '表示', 'show', 'swell' ),
'hide' => _x( '非表示', 'show', 'swell' ),
];
$meta_items = [
'swell_meta_ttl_pos' => [
'title' => __( 'タイトル位置', 'swell' ),
'options' => [
'top' => __( 'コンテンツ上', 'swell' ),
'inner' => __( 'コンテンツ内', 'swell' ),
],
],
'swell_meta_show_pickbnr' => [
'title' => __( 'ピックアップバナー', 'swell' ),
'options' => $show_or_hide_options,
],
'swell_meta_show_sidebar' => [
'title' => __( 'サイドバー', 'swell' ),
'options' => $show_or_hide_options,
],
'swell_meta_show_thumb' => [
'title' => __( 'アイキャッチ画像', 'swell' ),
'options' => $show_or_hide_options,
],
'swell_meta_show_index' => [
'title' => __( '目次', 'swell' ),
'options' => $show_or_hide_options,
],
'swell_meta_toc_target' => [
'title' => __( '目次抽出対象', 'swell' ),
'options' => [
'h2' => sprintf( __( '%sまで表示', 'swell' ), 'H2' ),
'h3' => sprintf( __( '%sまで表示', 'swell' ), 'H3' ),
'h4' => sprintf( __( '%sまで表示', 'swell' ), 'H4' ),
'h5' => sprintf( __( '%sまで表示', 'swell' ), 'H5' ),
],
],
];
if ( ! $is_page ) :
$meta_items['swell_meta_show_related'] = [
'title' => __( '関連記事', 'swell' ),
'options' => $show_or_hide_options,
];
$meta_items['swell_meta_show_author'] = [
'title' => __( '著者情報', 'swell' ),
'options' => $show_or_hide_options,
];
$meta_items['swell_meta_show_comments'] = [
'title' => __( 'コメント', 'swell' ),
'options' => $show_or_hide_options,
];
endif;
foreach ( $meta_items as $key => $data ) :
$meta_val = get_post_meta( $the_id, $key, true );
?>
__( '上部ウィジェットを隠す', 'swell' ),
'swell_meta_show_widget_bottom' => __( '下部ウィジェットを隠す', 'swell' ),
'swell_meta_hide_before_index' => __( '目次広告を隠す', 'swell' ),
'swell_meta_hide_autoad' => __( '自動広告を停止する', 'swell' ),
];
if ( $is_page ) :
$meta_checkboxes['swell_meta_no_mb'] = __( 'コンテンツ下の余白をなくす', 'swell' );
else :
$meta_checkboxes['swell_meta_hide_sharebtn'] = __( 'シェアボタンを隠す', 'swell' );
$meta_checkboxes['swell_meta_hide_widget_cta'] = __( 'CTAウィジェットを隠す', 'swell' );
endif;
foreach ( $meta_checkboxes as $key => $label ) :
$meta_val = get_post_meta( $the_id, $key, true );
?>