Skip to content

Commit

Permalink
Update customizer-settings.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi authored Aug 25, 2024
1 parent 358c1c8 commit 9d8d30f
Showing 1 changed file with 168 additions and 168 deletions.
336 changes: 168 additions & 168 deletions inc/customizer/customizer-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,176 +408,10 @@ function hovercraft_customizer($wp_customize) {
)
) );

// category layouts section
$wp_customize->add_section( 'hovercraft_category_layouts', array(
'title' => 'Category Layouts',
'priority' => 33,
) );

// homepage hide main setting
$wp_customize->add_setting('hovercraft_homepage_hide_main', array(
'default' => 0,
'sanitize_callback' => 'hovercraft_sanitize_checkbox',
));

// homepage hide main control
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize,
'hovercraft_homepage_hide_main',
array(
'label' => __('Hide homepage main section', 'hovercraft'),
'section' => 'static_front_page',
'settings' => 'hovercraft_homepage_hide_main',
'type' => 'checkbox',
)
)
);

// page layouts section
$wp_customize->add_section( 'hovercraft_page_layouts', array(
'title' => 'Page Layouts',
'priority' => 34,
) );

// tiles across setting
$wp_customize->add_setting( 'hovercraft_tiles_across', array(
'default' => '3',
'sanitize_callback' => 'hovercraft_sanitize_float',
)
);

// tiles across control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_tiles_across',
array(
'label' => __('Tiles Across (Desktop)', 'hovercraft'),
'description' => __( 'How many tiles across should display in the tiles widget area? (How many columns)', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_tiles_across',
'type' => 'select',
'choices' => array(
'2' => '2 Columns',
'3' => '3 Columns',
'4' => '4 Columns',
'5' => '5 Columns',
'6' => '6 Columns',
'7' => '7 Columns',
'8' => '8 Columns',
'9' => '9 Columns',
'10' => '10 Columns',
'11' => '11 Columns',
'12' => '12 Columns'
)
)
) );

// columns across setting
$wp_customize->add_setting( 'hovercraft_columns_across', array(
'default' => '4',
'sanitize_callback' => 'hovercraft_sanitize_float',
)
);

// columns across control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_columns_across',
array(
'label' => __('Columns Across (Desktop)', 'hovercraft'),
'description' => __( 'How many columns across should display in the columns widget area? (How many columns)', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_columns_across',
'type' => 'select',
'choices' => array(
'3' => '3 Columns',
'4' => '4 Columns',
'5' => '5 Columns',
'6' => '6 Columns'
)
)
) );

// gallery captions setting
$wp_customize->add_setting( 'hovercraft_gallery_captions', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// gallery captions control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_gallery_captions',
array(
'label' => __('Gallery Captions Display', 'hovercraft'),
'description' => __( 'What display style should the image gallery captions use?', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_gallery_captions',
'type' => 'select',
'choices' => array(
'none' => 'None (Disabled)',
'below_image' => 'Below Image',
'inside_image' => 'Inside Image (Bottom)'
)
)
) );

// tiles captions setting
$wp_customize->add_setting( 'hovercraft_tiles_captions', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// tiles captions control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_tiles_captions',
array(
'label' => __('Tiles Captions Display', 'hovercraft'),
'description' => __( 'What display style should the images captions inside Tiles use?', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_tiles_captions',
'type' => 'select',
'choices' => array(
'none' => 'None (Disabled)',
'below_image' => 'Below Image',
'inside_image' => 'Inside Image (Bottom)'
)
)
) );

// blockquote captions setting
$wp_customize->add_setting( 'hovercraft_blockquote_captions', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// blockquote captions control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_blockquote_captions',
array(
'label' => __('Gallery Blockquote Display', 'hovercraft'),
'description' => __( 'What display style should the blockquote captions use?', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_blockquote_captions',
'type' => 'select',
'choices' => array(
'none' => 'None (Disabled)',
'below_image' => 'Below Image',
'inside_image' => 'Inside Image (Bottom)'
)
)
) );

// widget layouts section
$wp_customize->add_section( 'hovercraft_widget_layouts', array(
'title' => 'Widget Area Layouts',
'priority' => 35,
'title' => 'Widget Areas',
'priority' => 33,
) );

// home premain top widget columns setting
Expand Down Expand Up @@ -784,6 +618,172 @@ function hovercraft_customizer($wp_customize) {
)
) );

// category layouts section
$wp_customize->add_section( 'hovercraft_category_layouts', array(
'title' => 'Category Layouts',
'priority' => 34,
) );

// homepage hide main setting
$wp_customize->add_setting('hovercraft_homepage_hide_main', array(
'default' => 0,
'sanitize_callback' => 'hovercraft_sanitize_checkbox',
));

// homepage hide main control
$wp_customize->add_control(
new WP_Customize_Control(
$wp_customize,
'hovercraft_homepage_hide_main',
array(
'label' => __('Hide homepage main section', 'hovercraft'),
'section' => 'static_front_page',
'settings' => 'hovercraft_homepage_hide_main',
'type' => 'checkbox',
)
)
);

// page layouts section
$wp_customize->add_section( 'hovercraft_page_layouts', array(
'title' => 'Page Layouts',
'priority' => 35,
) );

// tiles across setting
$wp_customize->add_setting( 'hovercraft_tiles_across', array(
'default' => '3',
'sanitize_callback' => 'hovercraft_sanitize_float',
)
);

// tiles across control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_tiles_across',
array(
'label' => __('Tiles Across (Desktop)', 'hovercraft'),
'description' => __( 'How many tiles across should display in the tiles widget area? (How many columns)', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_tiles_across',
'type' => 'select',
'choices' => array(
'2' => '2 Columns',
'3' => '3 Columns',
'4' => '4 Columns',
'5' => '5 Columns',
'6' => '6 Columns',
'7' => '7 Columns',
'8' => '8 Columns',
'9' => '9 Columns',
'10' => '10 Columns',
'11' => '11 Columns',
'12' => '12 Columns'
)
)
) );

// columns across setting
$wp_customize->add_setting( 'hovercraft_columns_across', array(
'default' => '4',
'sanitize_callback' => 'hovercraft_sanitize_float',
)
);

// columns across control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_columns_across',
array(
'label' => __('Columns Across (Desktop)', 'hovercraft'),
'description' => __( 'How many columns across should display in the columns widget area? (How many columns)', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_columns_across',
'type' => 'select',
'choices' => array(
'3' => '3 Columns',
'4' => '4 Columns',
'5' => '5 Columns',
'6' => '6 Columns'
)
)
) );

// gallery captions setting
$wp_customize->add_setting( 'hovercraft_gallery_captions', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// gallery captions control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_gallery_captions',
array(
'label' => __('Gallery Captions Display', 'hovercraft'),
'description' => __( 'What display style should the image gallery captions use?', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_gallery_captions',
'type' => 'select',
'choices' => array(
'none' => 'None (Disabled)',
'below_image' => 'Below Image',
'inside_image' => 'Inside Image (Bottom)'
)
)
) );

// tiles captions setting
$wp_customize->add_setting( 'hovercraft_tiles_captions', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// tiles captions control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_tiles_captions',
array(
'label' => __('Tiles Captions Display', 'hovercraft'),
'description' => __( 'What display style should the images captions inside Tiles use?', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_tiles_captions',
'type' => 'select',
'choices' => array(
'none' => 'None (Disabled)',
'below_image' => 'Below Image',
'inside_image' => 'Inside Image (Bottom)'
)
)
) );

// blockquote captions setting
$wp_customize->add_setting( 'hovercraft_blockquote_captions', array(
'default' => 'none',
'sanitize_callback' => 'hovercraft_sanitize_select',
)
);

// blockquote captions control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_blockquote_captions',
array(
'label' => __('Gallery Blockquote Display', 'hovercraft'),
'description' => __( 'What display style should the blockquote captions use?', 'hovercraft' ),
'section' => 'hovercraft_page_layouts',
'settings' => 'hovercraft_blockquote_captions',
'type' => 'select',
'choices' => array(
'none' => 'None (Disabled)',
'below_image' => 'Below Image',
'inside_image' => 'Inside Image (Bottom)'
)
)
) );

// blog options section
$wp_customize->add_section( 'hovercraft_blog', array(
'title' => 'Blog (Posts)',
Expand Down

0 comments on commit 9d8d30f

Please sign in to comment.