related_posts_title]', array( 'settings' => 'root_options[related_posts_title]', 'section' => 'root_modules_related_posts', 'label' => __( 'Related articles title', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[related_post_taxonomy_order]', array( 'default' => $defaults['related_post_taxonomy_order'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[related_post_taxonomy_order]', array( 'settings' => 'root_options[related_post_taxonomy_order]', 'type' => 'select', 'section' => 'root_modules_related_posts', 'label' => __( 'Order related posts', THEME_TEXTDOMAIN ), 'choices' => array( 'categories' => __( 'By categories', THEME_TEXTDOMAIN ), 'tags' => __( 'By tags', THEME_TEXTDOMAIN ) ), 'description' => __( 'In related posts, posts from the same category\tag are displayed first, and then, if there is not enough related articles to the specified number, they are displayed randomly', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[related_posts_exclude]', array( 'default' => $defaults['related_posts_exclude'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[related_posts_exclude]', array( 'settings' => 'root_options[related_posts_exclude]', 'section' => 'root_modules_related_posts', 'label' => __( 'ID of posts to exclude', THEME_TEXTDOMAIN ), 'description' => __( 'You can specify the ID of the posts separated by commas to exclude them from the related posts', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[related_posts_category_exclude]', array( 'default' => $defaults['related_posts_category_exclude'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[related_posts_category_exclude]', array( 'settings' => 'root_options[related_posts_category_exclude]', 'section' => 'root_modules_related_posts', 'label' => __( 'ID of categories to exclude', THEME_TEXTDOMAIN ), 'description' => __( 'You can specify the ID of categories separated by commas to exclude them from the related posts', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[related_posts_after_comments]', array( 'default' => $defaults['related_posts_after_comments'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[related_posts_after_comments]', array( 'settings' => 'root_options[related_posts_after_comments]', 'section' => 'root_modules_related_posts', 'label' => __( 'Display related posts after comments', THEME_TEXTDOMAIN ), 'type' => 'checkbox', 'description' => __( 'By default, related posts are displayed before comments', THEME_TEXTDOMAIN ), ) ); // modules > scroll to top $wp_customize->add_section( 'root_modules_arrow', array( 'title' => __( 'Scroll to top button', THEME_TEXTDOMAIN ), 'description' => __( 'In this section, you can customize the top button', THEME_TEXTDOMAIN ) . ' ?', 'panel' => 'panel_modules', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[structure_arrow]', array( 'default' => $defaults['structure_arrow'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[structure_arrow]', array( 'settings' => 'root_options[structure_arrow]', 'section' => 'root_modules_arrow', 'label' => __( 'Show scroll to top button?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[structure_arrow_bg]', array( 'default' => $defaults['structure_arrow_bg'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[structure_arrow_bg]', array( 'settings' => 'root_options[structure_arrow_bg]', 'section' => 'root_modules_arrow', 'label' => __( 'Background color', THEME_TEXTDOMAIN ), ) ) ); $wp_customize->add_setting( 'root_options[structure_arrow_color]', array( 'default' => $defaults['structure_arrow_color'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[structure_arrow_color]', array( 'section' => 'root_modules_arrow', 'settings' => 'root_options[structure_arrow_color]', 'label' => __( 'Arrow color', THEME_TEXTDOMAIN ), ) ) ); $wp_customize->add_setting( 'root_options[structure_arrow_width]', array( 'default' => $defaults['structure_arrow_width'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Range_Control( $wp_customize, 'root_options[structure_arrow_width]', array( 'settings' => 'root_options[structure_arrow_width]', 'section' => 'root_modules_arrow', 'label' => __( 'Button width, px', THEME_TEXTDOMAIN ), 'description' => __( 'Default is 50px', THEME_TEXTDOMAIN ), 'input_attrs' => array( 'min' => 30, 'max' => 80, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'root_options[structure_arrow_height]', array( 'default' => $defaults['structure_arrow_height'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Range_Control( $wp_customize, 'root_options[structure_arrow_height]', array( 'settings' => 'root_options[structure_arrow_height]', 'section' => 'root_modules_arrow', 'label' => __( 'Button height, px', THEME_TEXTDOMAIN ), 'description' => __( 'Default is 50px', THEME_TEXTDOMAIN ), 'input_attrs' => array( 'min' => 30, 'max' => 80, 'step' => 1, ), ) ) ); $wp_customize->add_setting( 'root_options[structure_arrow_position]', array( 'default' => $defaults['structure_arrow_position'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[structure_arrow_position]', array( 'settings' => 'root_options[structure_arrow_position]', 'section' => 'root_modules_arrow', 'type' => 'select', 'label' => __( 'Button position', THEME_TEXTDOMAIN ), 'choices' => array( 'left' => __( 'Left', THEME_TEXTDOMAIN ), 'right' => __( 'Right', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[structure_arrow_icon]', array( 'default' => $defaults['structure_arrow_icon'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[structure_arrow_icon]', array( 'settings' => 'root_options[structure_arrow_icon]', 'section' => 'root_modules_arrow', 'type' => 'select', 'label' => __( 'Button icon', THEME_TEXTDOMAIN ), 'choices' => array( '\f102' => __( 'Double quote up', THEME_TEXTDOMAIN ), '\f106' => __( 'Quote up', THEME_TEXTDOMAIN ), '\f139' => __( 'Arrow in a circle', THEME_TEXTDOMAIN ), '\f148' => __( 'Up arrow', THEME_TEXTDOMAIN ), '\f151' => __( 'Arrow in a square', THEME_TEXTDOMAIN ), '\f176' => __( 'Up arrow 2', THEME_TEXTDOMAIN ), '\f01b' => __( 'Arrow in a circle 2', THEME_TEXTDOMAIN ), '\f077' => __( 'Up arrow 3', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[structure_arrow_mob]', array( 'default' => $defaults['structure_arrow_mob'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[structure_arrow_mob]', array( 'settings' => 'root_options[structure_arrow_mob]', 'section' => 'root_modules_arrow', 'label' => __( 'Show scroll to top button on mobile?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); // post cards $wp_customize->add_panel( 'root_post_cards_panel', array( 'priority' => 14, 'capability' => 'edit_theme_options', 'title' => __( 'Post cards', THEME_TEXTDOMAIN ), 'type' => 'default', ) ); // post cards > one post big $wp_customize->add_section( 'root_post_cards_one_post_big', array( 'title' => __( 'One post is big', THEME_TEXTDOMAIN ), 'panel' => 'root_post_cards_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[post_one_big_tag]', array( 'default' => $defaults['post_one_big_tag'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_tag]', array( 'settings' => 'root_options[post_one_big_tag]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Title tag', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'h2' => 'h2', 'div' => 'div', ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_thumbnail]', array( 'default' => $defaults['post_one_big_show_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_thumbnail]', array( 'settings' => 'root_options[post_one_big_show_thumbnail]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show the thumbnail?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_date]', array( 'default' => $defaults['post_one_big_show_date'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_date]', array( 'settings' => 'root_options[post_one_big_show_date]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show the date?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_category]', array( 'default' => $defaults['post_one_big_show_category'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_category]', array( 'settings' => 'root_options[post_one_big_show_category]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show category?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_author]', array( 'default' => $defaults['post_one_big_show_author'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_author]', array( 'settings' => 'root_options[post_one_big_show_author]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show the author?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_comments]', array( 'default' => $defaults['post_one_big_show_comments'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_comments]', array( 'settings' => 'root_options[post_one_big_show_comments]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show count comments?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_views]', array( 'default' => $defaults['post_one_big_show_views'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_views]', array( 'settings' => 'root_options[post_one_big_show_views]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show count views?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_excerpt]', array( 'default' => $defaults['post_one_big_show_excerpt'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_excerpt]', array( 'settings' => 'root_options[post_one_big_show_excerpt]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show excerpt?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_show_rating]', array( 'default' => $defaults['post_one_big_show_rating'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_show_rating]', array( 'settings' => 'root_options[post_one_big_show_rating]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Show rating?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_big_thumbnail_left]', array( 'default' => $defaults['post_one_big_thumbnail_left'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_thumbnail_left]', array( 'settings' => 'root_options[post_one_big_thumbnail_left]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Press thumbnail to the left', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[post_one_big_round_thumbnail]', array( 'default' => $defaults['post_one_big_round_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_round_thumbnail]', array( 'settings' => 'root_options[post_one_big_round_thumbnail]', 'section' => 'root_post_cards_one_post_big', 'label' => __( 'Round off a thumbnail', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[post_one_big_excerpt_length]', array( 'default' => $defaults['post_one_big_excerpt_length'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_big_excerpt_length]', array( 'settings' => 'root_options[post_one_big_excerpt_length]', 'label' => __( 'Excerpt length', THEME_TEXTDOMAIN ), 'section' => 'root_post_cards_one_post_big', 'type' => 'number', ) ); // post cards > one post small $wp_customize->add_section( 'root_post_cards_one_post_small', array( 'title' => __( 'One post is small', THEME_TEXTDOMAIN ), 'panel' => 'root_post_cards_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[post_one_small_tag]', array( 'default' => $defaults['post_one_small_tag'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_tag]', array( 'settings' => 'root_options[post_one_small_tag]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Title tag', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'h2' => 'h2', 'div' => 'div', ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_thumbnail]', array( 'default' => $defaults['post_one_small_show_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_thumbnail]', array( 'settings' => 'root_options[post_one_small_show_thumbnail]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show the thumbnail?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_date]', array( 'default' => $defaults['post_one_small_show_date'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_date]', array( 'settings' => 'root_options[post_one_small_show_date]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show the date?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_category]', array( 'default' => $defaults['post_one_small_show_category'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_category]', array( 'settings' => 'root_options[post_one_small_show_category]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show category?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_comments]', array( 'default' => $defaults['post_one_small_show_comments'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_comments]', array( 'settings' => 'root_options[post_one_small_show_comments]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show count comments?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_views]', array( 'default' => $defaults['post_one_small_show_views'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_views]', array( 'settings' => 'root_options[post_one_small_show_views]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show count views?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_excerpt]', array( 'default' => $defaults['post_one_small_show_excerpt'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_excerpt]', array( 'settings' => 'root_options[post_one_small_show_excerpt]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show excerpt?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_show_rating]', array( 'default' => $defaults['post_one_small_show_rating'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_show_rating]', array( 'settings' => 'root_options[post_one_small_show_rating]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Show rating?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[post_one_small_round_thumbnail]', array( 'default' => $defaults['post_one_small_round_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_round_thumbnail]', array( 'settings' => 'root_options[post_one_small_round_thumbnail]', 'section' => 'root_post_cards_one_post_small', 'label' => __( 'Round off a thumbnail', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[post_one_small_excerpt_length]', array( 'default' => $defaults['post_one_small_excerpt_length'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[post_one_small_excerpt_length]', array( 'settings' => 'root_options[post_one_small_excerpt_length]', 'label' => __( 'Excerpt length', THEME_TEXTDOMAIN ), 'section' => 'root_post_cards_one_post_small', 'type' => 'number', ) ); // post cards > posts small $wp_customize->add_section( 'root_post_cards_posts_small', array( 'title' => __( 'Small cards (2 or 3 per line)', THEME_TEXTDOMAIN ), 'panel' => 'root_post_cards_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[posts_small_tag]', array( 'default' => $defaults['posts_small_tag'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_tag]', array( 'settings' => 'root_options[posts_small_tag]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Title tag', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'h2' => 'h2', 'div' => 'div', ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_thumbnail]', array( 'default' => $defaults['posts_small_show_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_thumbnail]', array( 'settings' => 'root_options[posts_small_show_thumbnail]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show the thumbnail?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_date]', array( 'default' => $defaults['posts_small_show_date'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_date]', array( 'settings' => 'root_options[posts_small_show_date]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show the date?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_category]', array( 'default' => $defaults['posts_small_show_category'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_category]', array( 'settings' => 'root_options[posts_small_show_category]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show category?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_comments]', array( 'default' => $defaults['posts_small_show_comments'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_comments]', array( 'settings' => 'root_options[posts_small_show_comments]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show count comments?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_views]', array( 'default' => $defaults['posts_small_show_views'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_views]', array( 'settings' => 'root_options[posts_small_show_views]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show count views?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_excerpt]', array( 'default' => $defaults['posts_small_show_excerpt'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_excerpt]', array( 'settings' => 'root_options[posts_small_show_excerpt]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show excerpt?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_show_rating]', array( 'default' => $defaults['posts_small_show_rating'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_show_rating]', array( 'settings' => 'root_options[posts_small_show_rating]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Show rating?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_small_round_thumbnail]', array( 'default' => $defaults['posts_small_round_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_round_thumbnail]', array( 'settings' => 'root_options[posts_small_round_thumbnail]', 'section' => 'root_post_cards_posts_small', 'label' => __( 'Round off a thumbnail', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[posts_small_excerpt_length]', array( 'default' => $defaults['posts_small_excerpt_length'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_small_excerpt_length]', array( 'settings' => 'root_options[posts_small_excerpt_length]', 'label' => __( 'Excerpt length', THEME_TEXTDOMAIN ), 'section' => 'root_post_cards_posts_small', 'type' => 'number', ) ); // post cards > posts square $wp_customize->add_section( 'root_post_cards_posts_square', array( 'title' => __( 'Square cards (2 or 3 per line)', THEME_TEXTDOMAIN ), 'panel' => 'root_post_cards_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[posts_square_tag]', array( 'default' => $defaults['posts_square_tag'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_tag]', array( 'settings' => 'root_options[posts_square_tag]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Title tag', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'h2' => 'h2', 'div' => 'div', ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_thumbnail]', array( 'default' => $defaults['posts_square_show_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_thumbnail]', array( 'settings' => 'root_options[posts_square_show_thumbnail]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show the thumbnail?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_date]', array( 'default' => $defaults['posts_square_show_date'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_date]', array( 'settings' => 'root_options[posts_square_show_date]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show the date?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_category]', array( 'default' => $defaults['posts_square_show_category'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_category]', array( 'settings' => 'root_options[posts_square_show_category]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show category?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_comments]', array( 'default' => $defaults['posts_square_show_comments'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_comments]', array( 'settings' => 'root_options[posts_square_show_comments]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show count comments?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_views]', array( 'default' => $defaults['posts_square_show_views'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_views]', array( 'settings' => 'root_options[posts_square_show_views]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show count views?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_excerpt]', array( 'default' => $defaults['posts_square_show_excerpt'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_excerpt]', array( 'settings' => 'root_options[posts_square_show_excerpt]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show excerpt?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_show_rating]', array( 'default' => $defaults['posts_square_show_rating'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_show_rating]', array( 'settings' => 'root_options[posts_square_show_rating]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Show rating?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_square_round_thumbnail]', array( 'default' => $defaults['posts_square_round_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_round_thumbnail]', array( 'settings' => 'root_options[posts_square_round_thumbnail]', 'section' => 'root_post_cards_posts_square', 'label' => __( 'Round off a thumbnail', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[posts_square_excerpt_length]', array( 'default' => $defaults['posts_square_excerpt_length'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_square_excerpt_length]', array( 'settings' => 'root_options[posts_square_excerpt_length]', 'label' => __( 'Excerpt length', THEME_TEXTDOMAIN ), 'section' => 'root_post_cards_posts_square', 'type' => 'number', ) ); // post cards > posts related $wp_customize->add_section( 'root_post_cards_posts_related', array( 'title' => __( 'Related posts', THEME_TEXTDOMAIN ), 'panel' => 'root_post_cards_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[posts_related_tag]', array( 'default' => $defaults['posts_related_tag'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_tag]', array( 'settings' => 'root_options[posts_related_tag]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Title tag', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'h2' => 'h2', 'div' => 'div', ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_thumbnail]', array( 'default' => $defaults['posts_related_show_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_thumbnail]', array( 'settings' => 'root_options[posts_related_show_thumbnail]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show the thumbnail?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_date]', array( 'default' => $defaults['posts_related_show_date'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_date]', array( 'settings' => 'root_options[posts_related_show_date]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show the date?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_category]', array( 'default' => $defaults['posts_related_show_category'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_category]', array( 'settings' => 'root_options[posts_related_show_category]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show category?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_comments]', array( 'default' => $defaults['posts_related_show_comments'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_comments]', array( 'settings' => 'root_options[posts_related_show_comments]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show count comments?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_views]', array( 'default' => $defaults['posts_related_show_views'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_views]', array( 'settings' => 'root_options[posts_related_show_views]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show count views?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_excerpt]', array( 'default' => $defaults['posts_related_show_excerpt'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_excerpt]', array( 'settings' => 'root_options[posts_related_show_excerpt]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show excerpt?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_show_rating]', array( 'default' => $defaults['posts_related_show_rating'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_show_rating]', array( 'settings' => 'root_options[posts_related_show_rating]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Show rating?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, output', THEME_TEXTDOMAIN ), 'no' => __( 'No, do not output', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[posts_related_round_thumbnail]', array( 'default' => $defaults['posts_related_round_thumbnail'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_round_thumbnail]', array( 'settings' => 'root_options[posts_related_round_thumbnail]', 'section' => 'root_post_cards_posts_related', 'label' => __( 'Round off a thumbnail', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[posts_related_excerpt_length]', array( 'default' => $defaults['posts_related_excerpt_length'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[posts_related_excerpt_length]', array( 'settings' => 'root_options[posts_related_excerpt_length]', 'label' => __( 'Excerpt length', THEME_TEXTDOMAIN ), 'section' => 'root_post_cards_posts_related', 'type' => 'number', ) ); // codes $wp_customize->add_section( 'root_code', array( 'title' => __( 'Codes', THEME_TEXTDOMAIN ), 'capability' => 'edit_theme_options', 'priority' => 14, ) ); $wp_customize->add_setting( 'root_options[code_head]', array( 'default' => $defaults['code_head'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[code_head]', array( 'settings' => 'root_options[code_head]', 'section' => 'root_code', 'label' => __( 'In <head> section', THEME_TEXTDOMAIN ), 'description' => __( 'Before </head> tag', THEME_TEXTDOMAIN ), 'type' => 'textarea', ) ); $wp_customize->add_setting( 'root_options[code_body]', array( 'default' => $defaults['code_body'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[code_body]', array( 'settings' => 'root_options[code_body]', 'section' => 'root_code', 'label' => __( 'Before </body>', THEME_TEXTDOMAIN ), 'type' => 'textarea', ) ); $wp_customize->add_setting( 'root_options[code_after_content]', array( 'default' => $defaults['code_after_content'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[code_after_content]', array( 'settings' => 'root_options[code_after_content]', 'section' => 'root_code', 'label' => __( 'After content', THEME_TEXTDOMAIN ), 'type' => 'textarea', ) ); // typography $wp_customize->add_panel( 'root_typography_panel', array( 'priority' => 14, 'capability' => 'edit_theme_options', 'title' => __( 'Typography', THEME_TEXTDOMAIN ), 'type' => 'default', ) ); global $class_fonts; $fonts_list = $class_fonts->get_fonts_key_value(); // typography > general $wp_customize->add_section( 'root_typography_general', array( 'title' => __( 'General', THEME_TEXTDOMAIN ), 'panel' => 'root_typography_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[typography_family]', array( 'default' => $defaults['typography_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_family]', array( 'settings' => 'root_options[typography_family]', 'section' => 'root_typography_general', 'label' => __( 'Main text', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_font_size]', array( 'default' => $defaults['typography_font_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_font_size]', array( 'settings' => 'root_options[typography_font_size]', 'section' => 'root_typography_general', 'label' => __( 'Size, px', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '16' ), 'input_attrs' => $font_size, ) ); $wp_customize->add_setting( 'root_options[typography_line_height]', array( 'default' => $defaults['typography_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_line_height]', array( 'settings' => 'root_options[typography_line_height]', 'section' => 'root_typography_general', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.5' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_bold]', array( 'default' => $defaults['typography_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_bold]', array( 'settings' => 'root_options[typography_bold]', 'section' => 'root_typography_general', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_italic]', array( 'default' => $defaults['typography_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_italic]', array( 'settings' => 'root_options[typography_italic]', 'section' => 'root_typography_general', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_underline]', array( 'default' => $defaults['typography_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_underline]', array( 'settings' => 'root_options[typography_underline]', 'section' => 'root_typography_general', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_uppercase]', array( 'default' => $defaults['typography_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_uppercase]', array( 'settings' => 'root_options[typography_uppercase]', 'section' => 'root_typography_general', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); // typography > header $wp_customize->add_section( 'root_typography_header', array( 'title' => __( 'Header', THEME_TEXTDOMAIN ), 'panel' => 'root_typography_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[typography_site_title_family]', array( 'default' => $defaults['typography_site_title_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_family]', array( 'settings' => 'root_options[typography_site_title_family]', 'section' => 'root_typography_header', 'label' => __( 'Site title', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_site_title_size]', array( 'default' => $defaults['typography_site_title_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_size]', array( 'settings' => 'root_options[typography_site_title_size]', 'section' => 'root_typography_header', 'label' => __( 'Size, px', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '28' ), 'input_attrs' => $font_size, ) ); $wp_customize->add_setting( 'root_options[typography_site_title_line_height]', array( 'default' => $defaults['typography_site_title_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_line_height]', array( 'settings' => 'root_options[typography_site_title_line_height]', 'section' => 'root_typography_header', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_site_title_bold]', array( 'default' => $defaults['typography_site_title_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_bold]', array( 'settings' => 'root_options[typography_site_title_bold]', 'section' => 'root_typography_header', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_title_italic]', array( 'default' => $defaults['typography_site_title_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_italic]', array( 'settings' => 'root_options[typography_site_title_italic]', 'section' => 'root_typography_header', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_title_underline]', array( 'default' => $defaults['typography_site_title_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_underline]', array( 'settings' => 'root_options[typography_site_title_underline]', 'section' => 'root_typography_header', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_title_uppercase]', array( 'default' => $defaults['typography_site_title_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_title_uppercase]', array( 'settings' => 'root_options[typography_site_title_uppercase]', 'section' => 'root_typography_header', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_description_family]', array( 'default' => $defaults['typography_site_description_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_family]', array( 'settings' => 'root_options[typography_site_description_family]', 'section' => 'root_typography_header', 'label' => __( 'Site description', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_site_description_size]', array( 'default' => $defaults['typography_site_description_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_size]', array( 'settings' => 'root_options[typography_site_description_size]', 'section' => 'root_typography_header', 'label' => __( 'Size, px', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '16' ), 'input_attrs' => $font_size, ) ); $wp_customize->add_setting( 'root_options[typography_site_description_line_height]', array( 'default' => $defaults['typography_site_description_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_line_height]', array( 'settings' => 'root_options[typography_site_description_line_height]', 'section' => 'root_typography_header', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_site_description_bold]', array( 'default' => $defaults['typography_site_description_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_bold]', array( 'settings' => 'root_options[typography_site_description_bold]', 'section' => 'root_typography_header', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_description_italic]', array( 'default' => $defaults['typography_site_description_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_italic]', array( 'settings' => 'root_options[typography_site_description_italic]', 'section' => 'root_typography_header', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_description_underline]', array( 'default' => $defaults['typography_site_description_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_underline]', array( 'settings' => 'root_options[typography_site_description_underline]', 'section' => 'root_typography_header', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_site_description_uppercase]', array( 'default' => $defaults['typography_site_description_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_site_description_uppercase]', array( 'settings' => 'root_options[typography_site_description_uppercase]', 'section' => 'root_typography_header', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_family]', array( 'default' => $defaults['typography_top_menu_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_family]', array( 'settings' => 'root_options[typography_top_menu_family]', 'section' => 'root_typography_header', 'label' => __( 'Links in the menu', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_size]', array( 'default' => $defaults['typography_top_menu_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_size]', array( 'settings' => 'root_options[typography_top_menu_size]', 'section' => 'root_typography_header', 'label' => __( 'Size, px', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '16' ), 'input_attrs' => $font_size, ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_line_height]', array( 'default' => $defaults['typography_top_menu_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_line_height]', array( 'settings' => 'root_options[typography_top_menu_line_height]', 'section' => 'root_typography_header', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_bold]', array( 'default' => $defaults['typography_top_menu_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_bold]', array( 'settings' => 'root_options[typography_top_menu_bold]', 'section' => 'root_typography_header', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_italic]', array( 'default' => $defaults['typography_top_menu_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_italic]', array( 'settings' => 'root_options[typography_top_menu_italic]', 'section' => 'root_typography_header', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_underline]', array( 'default' => $defaults['typography_top_menu_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_underline]', array( 'settings' => 'root_options[typography_top_menu_underline]', 'section' => 'root_typography_header', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_top_menu_uppercase]', array( 'default' => $defaults['typography_top_menu_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_top_menu_uppercase]', array( 'settings' => 'root_options[typography_top_menu_uppercase]', 'section' => 'root_typography_header', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); // typography > menu $wp_customize->add_section( 'root_typography_menu', array( 'title' => __( 'Menu', THEME_TEXTDOMAIN ), 'panel' => 'root_typography_panel', 'capability' => 'edit_theme_options', ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_family]', array( 'default' => $defaults['typography_menu_links_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_family]', array( 'settings' => 'root_options[typography_menu_links_family]', 'section' => 'root_typography_menu', 'label' => __( 'Links in the menu', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_size]', array( 'default' => $defaults['typography_menu_links_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_size]', array( 'settings' => 'root_options[typography_menu_links_size]', 'section' => 'root_typography_menu', 'label' => __( 'Size, px', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '16' ), 'input_attrs' => $font_size, ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_line_height]', array( 'default' => $defaults['typography_menu_links_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_line_height]', array( 'settings' => 'root_options[typography_menu_links_line_height]', 'section' => 'root_typography_menu', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.5' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_bold]', array( 'default' => $defaults['typography_menu_links_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_bold]', array( 'settings' => 'root_options[typography_menu_links_bold]', 'section' => 'root_typography_menu', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_italic]', array( 'default' => $defaults['typography_menu_links_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_italic]', array( 'settings' => 'root_options[typography_menu_links_italic]', 'section' => 'root_typography_menu', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_underline]', array( 'default' => $defaults['typography_menu_links_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_underline]', array( 'settings' => 'root_options[typography_menu_links_underline]', 'section' => 'root_typography_menu', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_menu_links_uppercase]', array( 'default' => $defaults['typography_menu_links_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_menu_links_uppercase]', array( 'settings' => 'root_options[typography_menu_links_uppercase]', 'section' => 'root_typography_menu', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); // typography > headers $wp_customize->add_section( 'root_typography_headers', array( 'title' => __( 'Headers', THEME_TEXTDOMAIN ), 'panel' => 'root_typography_panel', 'capability' => 'edit_theme_options', 'description' => __( 'Font sizes of headings are in relative em units', THEME_TEXTDOMAIN ) . ' ?', ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_family]', array( 'default' => $defaults['typography_header_h1_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_family]', array( 'settings' => 'root_options[typography_header_h1_family]', 'section' => 'root_typography_headers', 'label' => __( 'Header H1', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_size]', array( 'default' => $defaults['typography_header_h1_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_size]', array( 'settings' => 'root_options[typography_header_h1_size]', 'section' => 'root_typography_headers', 'label' => __( 'Size, em', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '2.5' ), 'input_attrs' => $font_size_em, ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_line_height]', array( 'default' => $defaults['typography_header_h1_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_line_height]', array( 'settings' => 'root_options[typography_header_h1_line_height]', 'section' => 'root_typography_headers', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_bold]', array( 'default' => $defaults['typography_header_h1_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_bold]', array( 'settings' => 'root_options[typography_header_h1_bold]', 'section' => 'root_typography_headers', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_italic]', array( 'default' => $defaults['typography_header_h1_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_italic]', array( 'settings' => 'root_options[typography_header_h1_italic]', 'section' => 'root_typography_headers', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_underline]', array( 'default' => $defaults['typography_header_h1_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_underline]', array( 'settings' => 'root_options[typography_header_h1_underline]', 'section' => 'root_typography_headers', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h1_uppercase]', array( 'default' => $defaults['typography_header_h1_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h1_uppercase]', array( 'settings' => 'root_options[typography_header_h1_uppercase]', 'section' => 'root_typography_headers', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_family]', array( 'default' => $defaults['typography_header_h2_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_family]', array( 'settings' => 'root_options[typography_header_h2_family]', 'section' => 'root_typography_headers', 'label' => __( 'Header H2', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_size]', array( 'default' => $defaults['typography_header_h2_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_size]', array( 'settings' => 'root_options[typography_header_h2_size]', 'section' => 'root_typography_headers', 'label' => __( 'Size, em', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.5' ), 'input_attrs' => $font_size_em, ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_line_height]', array( 'default' => $defaults['typography_header_h2_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_line_height]', array( 'settings' => 'root_options[typography_header_h2_line_height]', 'section' => 'root_typography_headers', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_bold]', array( 'default' => $defaults['typography_header_h2_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_bold]', array( 'settings' => 'root_options[typography_header_h2_bold]', 'section' => 'root_typography_headers', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_italic]', array( 'default' => $defaults['typography_header_h2_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_italic]', array( 'settings' => 'root_options[typography_header_h2_italic]', 'section' => 'root_typography_headers', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_underline]', array( 'default' => $defaults['typography_header_h2_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_underline]', array( 'settings' => 'root_options[typography_header_h2_underline]', 'section' => 'root_typography_headers', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h2_uppercase]', array( 'default' => $defaults['typography_header_h2_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h2_uppercase]', array( 'settings' => 'root_options[typography_header_h2_uppercase]', 'section' => 'root_typography_headers', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_family]', array( 'default' => $defaults['typography_header_h3_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_family]', array( 'settings' => 'root_options[typography_header_h3_family]', 'section' => 'root_typography_headers', 'label' => __( 'Header H3', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_size]', array( 'default' => $defaults['typography_header_h3_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_size]', array( 'settings' => 'root_options[typography_header_h3_size]', 'section' => 'root_typography_headers', 'label' => __( 'Size, em', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.3' ), 'input_attrs' => $font_size_em, ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_line_height]', array( 'default' => $defaults['typography_header_h3_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_line_height]', array( 'settings' => 'root_options[typography_header_h3_line_height]', 'section' => 'root_typography_headers', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_bold]', array( 'default' => $defaults['typography_header_h3_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_bold]', array( 'settings' => 'root_options[typography_header_h3_bold]', 'section' => 'root_typography_headers', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_italic]', array( 'default' => $defaults['typography_header_h3_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_italic]', array( 'settings' => 'root_options[typography_header_h3_italic]', 'section' => 'root_typography_headers', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_underline]', array( 'default' => $defaults['typography_header_h3_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_underline]', array( 'settings' => 'root_options[typography_header_h3_underline]', 'section' => 'root_typography_headers', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h3_uppercase]', array( 'default' => $defaults['typography_header_h3_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h3_uppercase]', array( 'settings' => 'root_options[typography_header_h3_uppercase]', 'section' => 'root_typography_headers', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_family]', array( 'default' => $defaults['typography_header_h4_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_family]', array( 'settings' => 'root_options[typography_header_h4_family]', 'section' => 'root_typography_headers', 'label' => __( 'Header H4', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_size]', array( 'default' => $defaults['typography_header_h4_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_size]', array( 'settings' => 'root_options[typography_header_h4_size]', 'section' => 'root_typography_headers', 'label' => __( 'Size, em', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.2' ), 'input_attrs' => $font_size_em, ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_line_height]', array( 'default' => $defaults['typography_header_h4_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_line_height]', array( 'settings' => 'root_options[typography_header_h4_line_height]', 'section' => 'root_typography_headers', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_bold]', array( 'default' => $defaults['typography_header_h4_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_bold]', array( 'settings' => 'root_options[typography_header_h4_bold]', 'section' => 'root_typography_headers', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_italic]', array( 'default' => $defaults['typography_header_h4_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_italic]', array( 'settings' => 'root_options[typography_header_h4_italic]', 'section' => 'root_typography_headers', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_underline]', array( 'default' => $defaults['typography_header_h4_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_underline]', array( 'settings' => 'root_options[typography_header_h4_underline]', 'section' => 'root_typography_headers', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h4_uppercase]', array( 'default' => $defaults['typography_header_h4_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h4_uppercase]', array( 'settings' => 'root_options[typography_header_h4_uppercase]', 'section' => 'root_typography_headers', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_family]', array( 'default' => $defaults['typography_header_h5_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_family]', array( 'settings' => 'root_options[typography_header_h5_family]', 'section' => 'root_typography_headers', 'label' => __( 'Header H5', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_size]', array( 'default' => $defaults['typography_header_h5_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_size]', array( 'settings' => 'root_options[typography_header_h5_size]', 'section' => 'root_typography_headers', 'label' => __( 'Size, em', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_size_em, ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_line_height]', array( 'default' => $defaults['typography_header_h5_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_line_height]', array( 'settings' => 'root_options[typography_header_h5_line_height]', 'section' => 'root_typography_headers', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_bold]', array( 'default' => $defaults['typography_header_h5_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_bold]', array( 'settings' => 'root_options[typography_header_h5_bold]', 'section' => 'root_typography_headers', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_italic]', array( 'default' => $defaults['typography_header_h5_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_italic]', array( 'settings' => 'root_options[typography_header_h5_italic]', 'section' => 'root_typography_headers', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_underline]', array( 'default' => $defaults['typography_header_h5_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_underline]', array( 'settings' => 'root_options[typography_header_h5_underline]', 'section' => 'root_typography_headers', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h5_uppercase]', array( 'default' => $defaults['typography_header_h5_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h5_uppercase]', array( 'settings' => 'root_options[typography_header_h5_uppercase]', 'section' => 'root_typography_headers', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_family]', array( 'default' => $defaults['typography_header_h6_family'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_family]', array( 'settings' => 'root_options[typography_header_h6_family]', 'section' => 'root_typography_headers', 'label' => __( 'Header H6', THEME_TEXTDOMAIN ), 'type' => 'select', 'choices' => $fonts_list, ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_size]', array( 'default' => $defaults['typography_header_h6_size'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_size]', array( 'settings' => 'root_options[typography_header_h6_size]', 'section' => 'root_typography_headers', 'label' => __( 'Size, em', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '0.67' ), 'input_attrs' => $font_size_em, ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_line_height]', array( 'default' => $defaults['typography_header_h6_line_height'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_line_height]', array( 'settings' => 'root_options[typography_header_h6_line_height]', 'section' => 'root_typography_headers', 'label' => __( 'Line height', THEME_TEXTDOMAIN ), 'type' => 'number', 'description' => sprintf( esc_html__( 'Default %s', THEME_TEXTDOMAIN ), '1.1' ), 'input_attrs' => $font_line_height, ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_bold]', array( 'default' => $defaults['typography_header_h6_bold'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_bold]', array( 'settings' => 'root_options[typography_header_h6_bold]', 'section' => 'root_typography_headers', 'label' => __( 'Bold', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_italic]', array( 'default' => $defaults['typography_header_h6_italic'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_italic]', array( 'settings' => 'root_options[typography_header_h6_italic]', 'section' => 'root_typography_headers', 'label' => __( 'Italic', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_underline]', array( 'default' => $defaults['typography_header_h6_underline'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_underline]', array( 'settings' => 'root_options[typography_header_h6_underline]', 'section' => 'root_typography_headers', 'label' => __( 'Underlined', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[typography_header_h6_uppercase]', array( 'default' => $defaults['typography_header_h6_uppercase'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[typography_header_h6_uppercase]', array( 'settings' => 'root_options[typography_header_h6_uppercase]', 'section' => 'root_typography_headers', 'label' => __( 'Uppercase', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); // colors $wp_customize->get_setting( 'background_color' )->default = '#f9f8f5'; $wp_customize->add_setting( 'root_options[color_main]', array( 'default' => $defaults['color_main'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_main]', array( 'settings' => 'root_options[color_main]', 'section' => 'colors', 'label' => __( 'Base site color', THEME_TEXTDOMAIN ), 'description' => __( 'Separators, pagination, lists, buttons, mob. menu, etc. It is desirable to choose a color that stands out on a white background', THEME_TEXTDOMAIN ), ) ) ); $wp_customize->add_setting( 'root_options[color_text]', array( 'default' => $defaults['color_text'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_text]', array( 'settings' => 'root_options[color_text]', 'label' => __( 'Site text color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_link]', array( 'default' => $defaults['color_link'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_link]', array( 'settings' => 'root_options[color_link]', 'label' => __( 'Link color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_link_hover]', array( 'default' => $defaults['color_link_hover'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_link_hover]', array( 'settings' => 'root_options[color_link_hover]', 'label' => __( 'Link hover color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_header_bg]', array( 'default' => $defaults['color_header_bg'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_header_bg]', array( 'settings' => 'root_options[color_header_bg]', 'label' => __( 'Header background color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_header_text]', array( 'default' => $defaults['color_header_text'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_header_text]', array( 'settings' => 'root_options[color_header_text]', 'label' => __( 'Header text and link color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_logo]', array( 'default' => $defaults['color_logo'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_logo]', array( 'settings' => 'root_options[color_logo]', 'label' => __( 'Site title color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_description]', array( 'default' => $defaults['color_description'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_description]', array( 'settings' => 'root_options[color_description]', 'label' => __( 'Site description color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_top_menu]', array( 'default' => $defaults['color_top_menu'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_top_menu]', array( 'settings' => 'root_options[color_top_menu]', 'label' => __( 'Header menu link color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_menu_bg]', array( 'default' => $defaults['color_menu_bg'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_menu_bg]', array( 'settings' => 'root_options[color_menu_bg]', 'label' => __( 'Menu background color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_menu]', array( 'default' => $defaults['color_menu'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_menu]', array( 'settings' => 'root_options[color_menu]', 'label' => __( 'Menu link color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_content_bg]', array( 'default' => $defaults['color_content_bg'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_content_bg]', array( 'settings' => 'root_options[color_content_bg]', 'label' => __( 'Content background color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_footer_bg]', array( 'default' => $defaults['color_footer_bg'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_footer_bg]', array( 'settings' => 'root_options[color_footer_bg]', 'label' => __( 'Footer background color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); $wp_customize->add_setting( 'root_options[color_footer_text]', array( 'default' => $defaults['color_footer_text'], 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'root_options[color_footer_text]', array( 'settings' => 'root_options[color_footer_text]', 'label' => __( 'Footer text and link color', THEME_TEXTDOMAIN ), 'section' => 'colors', ) ) ); // background $wp_customize->add_setting( 'root_options[bg_pattern]', array( 'default' => $defaults['bg_pattern'], 'capability' => 'edit_theme_options', 'type' => 'option', ) ); $wp_customize->add_control( new Customize_Control_Radio_Image( $wp_customize, 'root_options[bg_pattern]', array( 'settings' => 'root_options[bg_pattern]', 'label' => __( 'Pattern', THEME_TEXTDOMAIN ), 'section' => 'background_image', 'choices' => root_get_patterns(), ) ) ); $wp_customize->add_setting( 'root_options[body_bg_link]', array( 'default' => $defaults['body_bg_link'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[body_bg_link]', array( 'settings' => 'root_options[body_bg_link]', 'section' => 'background_image', 'label' => __( 'Site background link', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[body_bg_link_js]', array( 'default' => $defaults['body_bg_link_js'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[body_bg_link_js]', array( 'settings' => 'root_options[body_bg_link_js]', 'section' => 'background_image', 'label' => __( 'Hide link background by JS', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[header_bg]', array( 'default' => $defaults['header_bg'], 'capability' => 'edit_theme_options', 'type' => 'option', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'root_options[header_bg]', array( 'settings' => 'root_options[header_bg]', 'label' => __( 'Header background', THEME_TEXTDOMAIN ), 'section' => 'background_image', 'description' => __( 'By default, the background of the header is displayed only on the desktop', THEME_TEXTDOMAIN ), ) ) ); $wp_customize->add_setting( 'root_options[header_bg_repeat]', array( 'default' => $defaults['header_bg_repeat'], 'capability' => 'edit_theme_options', 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[header_bg_repeat]', array( 'settings' => 'root_options[header_bg_repeat]', 'type' => 'select', 'section' => 'background_image', 'label' => __( 'Header background repeat', THEME_TEXTDOMAIN ), 'description' => __( 'If you need to repeat the background image of the header, you can set it in the box below', THEME_TEXTDOMAIN ), 'choices' => array( 'no-repeat' => __( 'No repeat', THEME_TEXTDOMAIN ), 'repeat' => __( 'Repeat horizontal and vertical', THEME_TEXTDOMAIN ), 'repeat-x' => __( 'Repeat horizontal', THEME_TEXTDOMAIN ), 'repeat-y' => __( 'Repeat vertical', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[header_bg_position]', array( 'default' => $defaults['header_bg_position'], 'capability' => 'edit_theme_options', 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[header_bg_position]', array( 'settings' => 'root_options[header_bg_position]', 'type' => 'select', 'section' => 'background_image', 'label' => __( 'Header background position', THEME_TEXTDOMAIN ), 'choices' => array( 'left top' => __( 'Top left', THEME_TEXTDOMAIN ), 'center top' => __( 'Top center', THEME_TEXTDOMAIN ), 'right top' => __( 'Top right', THEME_TEXTDOMAIN ), 'left center' => __( 'Middle left', THEME_TEXTDOMAIN ), 'center center' => __( 'Middle center', THEME_TEXTDOMAIN ), 'right center' => __( 'Middle right', THEME_TEXTDOMAIN ), 'left bottom' => __( 'Bottom left', THEME_TEXTDOMAIN ), 'center bottom' => __( 'Bottom center', THEME_TEXTDOMAIN ), 'right bottom' => __( 'Bottom right', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[header_bg_mob]', array( 'default' => $defaults['header_bg_mob'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[header_bg_mob]', array( 'settings' => 'root_options[header_bg_mob]', 'section' => 'background_image', 'label' => __( 'Display header background on mobile', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); // tweak $wp_customize->add_section( 'root_tweak', array( 'title' => __( 'Tweak options', THEME_TEXTDOMAIN ), 'capability' => 'edit_theme_options', 'priority' => 200, ) ); $wp_customize->add_setting( 'root_options[content_full_width]', array( 'default' => $defaults['content_full_width'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[content_full_width]', array( 'settings' => 'root_options[content_full_width]', 'section' => 'root_tweak', 'label' => __( 'Content on full width', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[social_share_title]', array( 'default' => $defaults['social_share_title'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[social_share_title]', array( 'settings' => 'root_options[social_share_title]', 'section' => 'root_tweak', 'label' => __( 'Social buttons title', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[social_share_title_show]', array( 'default' => $defaults['social_share_title_show'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[social_share_title_show]', array( 'settings' => 'root_options[social_share_title_show]', 'section' => 'root_tweak', 'label' => __( 'Show title social buttons', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[rating_title]', array( 'default' => $defaults['rating_title'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[rating_title]', array( 'settings' => 'root_options[rating_title]', 'section' => 'root_tweak', 'label' => __( 'Rating title', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[rating_text_show]', array( 'default' => $defaults['rating_text_show'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[rating_text_show]', array( 'settings' => 'root_options[rating_text_show]', 'section' => 'root_tweak', 'label' => __( 'Show rating statistics', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[advertising_page_display]', array( 'default' => $defaults['advertising_page_display'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[advertising_page_display]', array( 'settings' => 'root_options[advertising_page_display]', 'section' => 'root_tweak', 'label' => __( 'Enable avertising on pages', THEME_TEXTDOMAIN ), 'type' => 'checkbox', ) ); $wp_customize->add_setting( 'root_options[microdata_publisher_telephone]', array( 'default' => $defaults['microdata_publisher_telephone'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[microdata_publisher_telephone]', array( 'settings' => 'root_options[microdata_publisher_telephone]', 'section' => 'root_tweak', 'label' => __( 'The value of the telephone field for publisher microdata', THEME_TEXTDOMAIN ), 'description' => __( 'If the field is not specified, the site name will be displayed as the telephone value', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[microdata_publisher_address]', array( 'default' => $defaults['microdata_publisher_address'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[microdata_publisher_address]', array( 'settings' => 'root_options[microdata_publisher_address]', 'section' => 'root_tweak', 'label' => __( 'The value of the address field for publisher microdata', THEME_TEXTDOMAIN ), 'description' => __( 'If the field is not specified, the site address will be displayed as the address value', THEME_TEXTDOMAIN ), ) ); // partner program $wp_customize->add_section( 'root_partner', array( 'title' => __( 'Affiliate program', THEME_TEXTDOMAIN ), 'description' => 'Мы добавили возможность зарабатывать Вам на нашей партнерской программе. Вы можете втроить партнерскую ссылку в подвал сайта и зарабатывать 25% с продаж. Ваш партнерский ID уже встроен в тему.

Ссылка замаскирована через JS, она не индексируется и не передает вес страницы и обернута в noindex.

О продаже по партнерской ссылке мы сообщим Вам на e-mail, Вы ничего не пропустите.', 'capability' => 'edit_theme_options', 'priority' => 999, ) ); $wp_customize->add_setting( 'root_options[wpshop_partner_enable]', array( 'default' => $defaults['wpshop_partner_enable'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[wpshop_partner_enable]', array( 'settings' => 'root_options[wpshop_partner_enable]', 'section' => 'root_partner', 'label' => __( 'Start earning money?', THEME_TEXTDOMAIN ), 'type' => 'radio', 'choices' => array( 'yes' => __( 'Yes, I want to earn', THEME_TEXTDOMAIN ), 'no' => __( 'No, not interested', THEME_TEXTDOMAIN ), ), ) ); $wp_customize->add_setting( 'root_options[wpshop_partner_id]', array( 'default' => $defaults['wpshop_partner_id'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[wpshop_partner_id]', array( 'settings' => 'root_options[wpshop_partner_id]', 'section' => 'root_partner', 'label' => __( 'Your partner ID', THEME_TEXTDOMAIN ), 'description' => 'Ваш ID (' . get_wpshop_partner_id() . ') уже встроен в тему, можно найти в Личном кабинете, выглядит так: /?partner=ВАШ_ID', ) ); $wp_customize->add_setting( 'root_options[wpshop_partner_prefix]', array( 'default' => $defaults['wpshop_partner_prefix'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[wpshop_partner_prefix]', array( 'settings' => 'root_options[wpshop_partner_prefix]', 'section' => 'root_partner', 'label' => __( 'Text before link', THEME_TEXTDOMAIN ), ) ); $wp_customize->add_setting( 'root_options[wpshop_partner_postfix]', array( 'default' => $defaults['wpshop_partner_postfix'], 'type' => 'option', ) ); $wp_customize->add_control( 'root_options[wpshop_partner_postfix]', array( 'settings' => 'root_options[wpshop_partner_postfix]', 'section' => 'root_partner', 'label' => __( 'Text after link', THEME_TEXTDOMAIN ), ) ); } add_action( 'customize_register', THEME_SLUG . '_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function root_customize_preview_js() { wp_enqueue_script( 'root_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), rand(1,9999), true ); } //add_action( 'customize_preview_init', THEME_SLUG . '_customize_preview_js' ); function root_customizer_body_classes( $classes ) { /** * Sidebar */ $sidebar_class = ''; // Sidebar on front page if ( root_get_option( 'structure_home_sidebar' ) == 'none' && is_front_page() ) { $sidebar_class = 'sidebar-none'; } if ( root_get_option( 'structure_home_sidebar' ) == 'left' && is_front_page() ) { $sidebar_class = 'sidebar-left'; } // Sidebar in archive if ( root_get_option( 'structure_archive_sidebar' ) == 'none' && is_archive() ) { $sidebar_class = 'sidebar-none'; } if ( root_get_option( 'structure_archive_sidebar' ) == 'left' && is_archive() ) { $sidebar_class = 'sidebar-left'; } // Sidebar in single if ( root_get_option( 'structure_single_sidebar' ) == 'none' && is_single() ) { $sidebar_class = 'sidebar-none'; } if ( root_get_option( 'structure_single_sidebar' ) == 'left' && is_single() ) { $sidebar_class = 'sidebar-left'; } // Sidebar on page if ( root_get_option( 'structure_page_sidebar' ) == 'none' && is_page() ) { $sidebar_class = 'sidebar-none'; } if ( root_get_option( 'structure_page_sidebar' ) == 'left' && is_page() ) { $sidebar_class = 'sidebar-left'; } // settings for a single article if ( is_single() || is_page() ) { global $post; if ( 'checked' == get_post_meta( $post->ID, 'sidebar_hide', true ) ) { $sidebar_class = 'sidebar-none'; } } $classes[] = $sidebar_class; /** * Skin */ $skin = root_get_option( 'skin' ); if ( ! empty( $skin ) && $skin != 'no' ) { $classes[] = $skin; } return $classes; } add_filter( 'body_class', THEME_SLUG . '_customizer_body_classes' ); /** * Sanitize int value * * @param $val * * @return int */ function root_sanitize_integer( $val ) { return absint( $val ); } /** * Get all patterns to customizer choicer * * @return array */ function root_get_patterns() { global $patterns; $pattern_choices = array( 'no' => array( 'label' => esc_html__( 'No', THEME_TEXTDOMAIN ), 'url' => '%s/images/backgrounds/no.png' ), ); foreach ( $patterns as $key => $pattern ) { $pattern_choices[ $key ] = array( 'label' => $pattern['label'], 'url' => '%s/images/backgrounds/' . $pattern['mini'], ); } return $pattern_choices; } /** * Get pattern file name * * @param string $pattern * * @return string */ function root_get_pattern_url( $pattern = '' ) { global $patterns; if ( isset( $patterns[$pattern] ) ) { return $patterns[$pattern]['pattern']; } else { return ''; } } /** * Customizer CSS */ require get_template_directory() . '/inc/customizer/customizer-css.php'; /** * Customizer Control - Radio Image */ require get_template_directory() . '/inc/customizer/customizer-control-radio-image.php'; /** * Customizer Control - Range */ require get_template_directory() . '/inc/customizer/customizer-control-range.php'; 503 Service Unavailable

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.