Browse Source

Add front page contact form controls.

pull/11/head
Ned Zimmerman 7 years ago
parent
commit
cc3d2ea495
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 22
      app/admin.php

22
app/admin.php

@ -88,6 +88,28 @@ add_action('customize_register', function (\WP_Customize_Manager $wp_customize)
'section' => 'pb_front_page_catalog',
'settings' => 'pb_front_page_catalog_title',
]);
$wp_customize->add_section('pb_front_page_contact_form', [
'title' => __('Front Page Contact Form', 'aldine'),
'priority' => 25,
]);
$wp_customize->add_setting('pb_front_page_contact_form', [
'type' => 'option',
]);
$wp_customize->add_control('pb_front_page_contact_form', [
'label' => __('Show Front Page Contact Form', 'aldine'),
'section' => 'pb_front_page_contact_form',
'settings' => 'pb_front_page_contact_form',
'type' => 'checkbox'
]);
$wp_customize->add_setting('pb_front_page_contact_form_title', [
'type' => 'option',
'sanitize_callback' => 'sanitize_text_field'
]);
$wp_customize->add_control('pb_front_page_contact_form_title', [
'label' => __('Front Page Contact Form Title', 'aldine'),
'section' => 'pb_front_page_contact_form',
'settings' => 'pb_front_page_contact_form_title',
]);
});
/**

Loading…
Cancel
Save