add_section( 'baumkupen_section_typography', array( 'title' => esc_html__( 'タイポグラフィ', 'baumkupen' ), 'priority' => 40, ) ); // ベースとなるフォントサイズ 本文の文字 px 単位 // フォントサイズ(モバイル) $wp_customize->add_setting( 'body_font_size_mobile', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '16', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Px_Control( $wp_customize, 'body_font_size_mobile', array( // 'priority' => 1, 'section' => 'baumkupen_section_typography', 'label' => esc_html__('フォントサイズ(モバイル)', 'baumkupen' ), 'description' => esc_html__('ベースとなるフォントサイズ', 'baumkupen' ), 'input_attrs' => array( 'min' => 12, 'max' => 30, 'step'=> 1, ), ) ) ); // フォントサイズ(モバイル) $wp_customize->add_setting( 'body_font_size_desktop', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '16', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Px_Control( $wp_customize, 'body_font_size_desktop', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('フォントサイズ(デスクトップ)', 'baumkupen' ), 'description' => esc_html__('ベースとなるフォントサイズ', 'baumkupen' ), 'input_attrs' => array( 'min' => 12, 'max' => 30, 'step'=> 1, ), ) ) ); // サイトタイトル $wp_customize->add_setting( 'site_title_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1.5', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'site_title_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('タイトル', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // サイトキャッチフレーズ $wp_customize->add_setting( 'site_description_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.8', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'site_description_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('キャッチフレーズ', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // ヘッダーメニュー $wp_customize->add_setting( 'header_menu_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.92', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'header_menu_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('ヘッダーメニュー', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // 投稿一覧タイトル $wp_customize->add_setting( 'index_post_heading_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'index_post_heading_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('投稿一覧 タイトル', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // 投稿一覧抜粋 $wp_customize->add_setting( 'index_post_excerpt_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.94', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'index_post_excerpt_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('投稿一覧 抜粋', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // 投稿一覧メタ 日付 $wp_customize->add_setting( 'index_post_date_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.9', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'index_post_date_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('投稿一覧 日付', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // 投稿一覧 コメント数 カテゴリ タグ $wp_customize->add_setting( 'index_post_meta_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.8', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'index_post_meta_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('投稿一覧 コメント数 カテゴリ タグ', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // 投稿内 投稿日 更新日 $wp_customize->add_setting( 'single_post_date_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.7', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'single_post_date_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('投稿内 日付', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // 投稿内 カテゴリ タグ $wp_customize->add_setting( 'single_post_meta_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.9', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'single_post_meta_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('投稿内 カテゴリ タグ', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // サイドウィジェット $wp_customize->add_setting( 'sidebar_widget_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'sidebar_widget_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('サイドウィジェット' , 'baumkupen'), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // サイドウィジェット タイトル $wp_customize->add_setting( 'sidebar_widget_title_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'sidebar_widget_title_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('サイドウィジェット タイトル', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // フッターウィジェット $wp_customize->add_setting( 'footer_widget_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.9', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'footer_widget_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('フッターウィジェット', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // フッターウィジェット タイトル $wp_customize->add_setting( 'footer_widget_title_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'footer_widget_title_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('フッターウィジェット タイトル', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // フッター コピーライト $wp_customize->add_setting( 'footer_copyright_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.85', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'footer_copyright_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('フッター コピーライト', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // h1 $wp_customize->add_setting( 'h1_font_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1.45', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'h1_font_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('H1', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // h2 $wp_customize->add_setting( 'h2_font_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1.3', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'h2_font_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('H2', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // h3 $wp_customize->add_setting( 'h3_font_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1.2', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'h3_font_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('H3', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // h4 $wp_customize->add_setting( 'h4_font_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1.1', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'h4_font_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('H4', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // h5 $wp_customize->add_setting( 'h5_font_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '1', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'h5_font_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('H5', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); // h6 $wp_customize->add_setting( 'h6_font_size', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '0.9', ) ); $wp_customize->add_control( new Baumkupen_Range_Number_Rem_Control( $wp_customize, 'h6_font_size', array( 'section' => 'baumkupen_section_typography', 'label' => esc_html__('H6', 'baumkupen' ), 'input_attrs' => array( 'min' => 0.1, 'max' => 3, 'step'=> 0.01, ), ) ) ); }