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 24, 2024
1 parent d633a60 commit d82b9aa
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions inc/customizer/customizer-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,74 @@ function hovercraft_customizer($wp_customize) {
'priority' => 35,
) );

// home premain top widget columns setting
$wp_customize->add_setting( 'hovercraft_home_premain_top_columns', array(
'default' => '1',
'sanitize_callback' => 'hovercraft_sanitize_float',
)
);

// home premain top widget columns control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_home_premain_top_columns',
array(
'label' => __('Home Premain Top Columns (Desktop)', 'hovercraft'),
'description' => __( 'How many widgets across should display in the Home Premain Top widget area?', 'hovercraft' ),
'section' => 'hovercraft_widget_layouts',
'settings' => 'hovercraft_home_premain_top_columns',
'type' => 'select',
'choices' => array(
'1' => '1 Column',
'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'
)
)
) );

// home premain bottom widget columns setting
$wp_customize->add_setting( 'hovercraft_home_premain_bottom_columns', array(
'default' => '1',
'sanitize_callback' => 'hovercraft_sanitize_float',
)
);

// home premain bottom widget columns control
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize,
'hovercraft_home_premain_bottom_columns',
array(
'label' => __('Home Premain Bottom Columns (Desktop)', 'hovercraft'),
'description' => __( 'How many widgets across should display in the Home Premain Bottom widget area?', 'hovercraft' ),
'section' => 'hovercraft_widget_layouts',
'settings' => 'hovercraft_home_premain_bottom_columns',
'type' => 'select',
'choices' => array(
'1' => '1 Column',
'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'
)
)
) );

// home postmain top widget columns setting
$wp_customize->add_setting( 'hovercraft_home_postmain_top_columns', array(
'default' => '1',
Expand Down

0 comments on commit d82b9aa

Please sign in to comment.