add_section( 'blograzzi-display-columns-layout', array( 'title' => __( 'Columns Layout', 'blograzzi' ), 'panel' => 'blograzzi-display', ) ); $wp_customize->add_control( 'blograzzi_settings[container_style]', array( 'type' => 'radio', 'section' => 'blograzzi-display-columns-layout', 'label' => __( 'Container style', 'blograzzi' ), 'choices' => array( 'boxed' => __( 'Boxed', 'blograzzi' ), 'full-width' => __( 'Full width', 'blograzzi' ), ), ) ); $wp_customize->add_control( new Blograzzi_Radio_HTML_Control( $wp_customize, 'blograzzi_settings[column_mode]', array( 'type' => 'radio', 'section' => 'blograzzi-display-columns-layout', 'label' => __( 'Layout', 'blograzzi' ), 'choices' => array( 'one_column' => sprintf( '%2$s', BLOGRAZZI_ROOTURI, __( 'One column', 'blograzzi' ) ), 'two_col_left' => sprintf( '%2$s', BLOGRAZZI_ROOTURI, __( 'Two columns, right sidebar', 'blograzzi' ) ), 'two_col_right' => sprintf( '%2$s', BLOGRAZZI_ROOTURI, __( 'Two columns, left sidebar', 'blograzzi' ) ), 'three_col_left' => sprintf( '%2$s', BLOGRAZZI_ROOTURI, __( 'Three columns, right sidebars', 'blograzzi' ) ), 'three_col_right' => sprintf( '%2$s', BLOGRAZZI_ROOTURI, __( 'Three columns, left sidebars', 'blograzzi' ) ), 'three_col_center' => sprintf( '%2$s', BLOGRAZZI_ROOTURI, __( 'Three columns, left & right sidebars', 'blograzzi' ) ), ), ) ) ); /* =Columns Widths --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-display-columns-width', array( 'title' => __( 'Columns Width', 'blograzzi' ), 'panel' => 'blograzzi-display', 'description' => __( 'Leave values empty to reset to the default values.', 'blograzzi' ), ) ); $wp_customize->add_control( new Blograzzi_Columns_Width_Control( $wp_customize, 'blograzzi_settings[container_width]', array( 'section' => 'blograzzi-display-columns-width', ) ) ); $wp_customize->add_control( new Blograzzi_Columns_Width_Control( $wp_customize, 'blograzzi_settings[column_width]', array( 'section' => 'blograzzi-display-columns-width', ) ) ); /* =Post Elements --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-display-posts', array( 'title' => __( 'Posts Elements', 'blograzzi' ), 'panel' => 'blograzzi-display', ) ); $wp_customize->add_control( 'blograzzi_settings[hide_post_author]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-posts', 'label' => __( 'Hide post author', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[hide_post_cat]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-posts', 'label' => __( 'Hide post categories', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[hide_post_tags]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-posts', 'label' => __( 'Hide post tags', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[hide_post_commentcount]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-posts', 'label' => __( 'Hide post comment count', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[hide_author_bio]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-posts', 'label' => __( 'Hide author bio', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[post_date_display]', array( 'type' => 'radio', 'section' => 'blograzzi-display-posts', 'label' => __( 'Post date display', 'blograzzi' ), 'choices' => array( 'hidden' => __( 'Hidden', 'blograzzi'), 'icon_no_year' => __( 'Icon', 'blograzzi'), 'icon_plus_year'=> __( 'Icon with year', 'blograzzi'), 'text' => __( 'Inline text', 'blograzzi'), ) ) ); /* =Excerpts --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-display-excerpts', array( 'title' => __( 'Excerpts', 'blograzzi' ), 'panel' => 'blograzzi-display', ) ); $wp_customize->add_control( 'blograzzi_settings[posts_show_excerpt]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-excerpts', 'label' => __( 'Show excerpts in Front Page', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[archive_full_content]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-excerpts', 'label' => __( 'Show full content in archive pages', 'blograzzi' ), ) ); $wp_customize->add_control( 'blograzzi_settings[show_excerpt_more]', array( 'type' => 'checkbox', 'section' => 'blograzzi-display-excerpts', 'label' => __( 'Show More link for manual excerpts', 'blograzzi' ), ) ); $wp_customize->add_control( new Blograzzi_Code_Control( $wp_customize, 'blograzzi_settings[excerpt_html_tags]', array( 'type' => 'textarea', 'section' => 'blograzzi-display-excerpts', 'label' => __( 'Keep these HTML tags in excerpts', 'blograzzi' ), 'description' => __( "Enter the HTML tags you'd like to retain in excerpts. For example, enter <p><ul><li> to retain <p>, <ul>, and <li> HTML tags.", 'blograzzi' ), 'input_attrs' => array( 'rows' => 1, 'cols' => 60 ) ) ) ); /* =Miscellaneous --------------------------------------------------------------------------------------*/ $wp_customize->add_section( 'blograzzi-display-misc', array( 'title' => __( 'Miscellaneous', 'blograzzi' ), 'panel' => 'blograzzi-display', ) ); $options = array( 'section' => 'blograzzi-display-misc', 'type' => 'checkbox', 'options' => array( 'disable_editor_style' => array( 'label' => __( 'Disable custom editor styles', 'blograzzi' ) ), ) ); blograzzi_add_customizer_options( $options, $wp_customize ); }