'1200',
'layout' => '2',
'primary' => 'col-md-8',
'display_author' => 'on',
'display_date' => 'on',
'display_comment_count' => 'on',
'display_categories' => 'on',
'excerpt_content' => 'excerpt',
'home_widget' =>'on',
'home_posts' =>'on',
'jumbo_headline_title' => 'Lobster!',
'jumbo_headline_text' => 'You could write something extraordinary and profound here!',
'cust_header_headline_title' => 'This is your Custom header!',
'cust_header_headline_text' => 'You could could change the World!',
'custom_header_display' => '',
);
return get_option( 'cdc_lobster_theme_options', $default_theme_options );
}
/**
* Create the jumbo headline section on the home page
*
* @since 1.0
*/
function cyber_dc_boot_jumbotron() {
$cyber_dc_boot_theme_options = cyber_dc_boot_theme_options();
if ( is_home() || is_front_page() && ! empty( $cyber_dc_boot_theme_options['jumbo_headline_title'] ) ) {
?>
'.bloginfo( 'description' ).'';} ?>
$paged ) {
?>
add_section( 'cyber_dc_boot_layout', array(
'title' => __( 'Layout', 'cdc_lobster' ),
'priority' => 35,
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[width]', array(
'default' => $cyber_dc_boot_theme_options['width'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_width', array(
'label' => __( 'Site Width', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_layout',
'settings' => 'cdc_lobster_theme_options[width]',
'priority' => 10,
'type' => 'select',
'choices' => array(
'1200' => __( '1200px', 'cdc_lobster' ),
'960' => __( '960px', 'cdc_lobster' ),
),
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[layout]', array(
'default' => $cyber_dc_boot_theme_options['layout'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_site_layout', array(
'label' => __( 'Site Layout', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_layout',
'settings' => 'cdc_lobster_theme_options[layout]',
'priority' => 15,
'type' => 'radio',
'choices' => array(
'1' => __( '1 Sidebar - Left', 'cdc_lobster' ),
'2' => __( '1 Sidebar - Right', 'cdc_lobster' ),
'6' => __( 'No Sidebars', 'cdc_lobster' )
),
) );
$choices = array(
'col-md-2' => '17%',
'col-md-3' => '25%',
'col-md-4' => '34%',
'col-md-5' => '42%',
'col-md-6' => '50%',
'col-md-7' => '58%',
'col-md-8' => '66%',
'col-md-9' => '75%',
'col-md-10' => '83%',
'col-md-12' => '100%',
);
$wp_customize->add_setting( 'cdc_lobster_theme_options[primary]', array(
'default' => $cyber_dc_boot_theme_options['primary'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_primary_column', array(
'label' => __( 'Main Content', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_layout',
'settings' => 'cdc_lobster_theme_options[primary]',
'priority' => 20,
'type' => 'select',
'choices' => $choices,
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[excerpt_content]', array(
'default' => $cyber_dc_boot_theme_options['excerpt_content'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_excerpt_content', array(
'label' => __( 'Post Content Display', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_layout',
'settings' => 'cdc_lobster_theme_options[excerpt_content]',
'priority' => 30,
'type' => 'radio',
'choices' => array(
'excerpt' => __( 'Teaser Excerpt', 'cdc_lobster' ),
'content' => __( 'Full Content', 'cdc_lobster' ),
),
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[home_widget]', array(
'default' => $cyber_dc_boot_theme_options['home_widget'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_home_widget', array(
'label' => __( 'Display Home Page Top Widget Area', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_layout',
'settings' => 'cdc_lobster_theme_options[home_widget]',
'priority' => 35,
'type' => 'checkbox',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[home_posts]', array(
'default' => $cyber_dc_boot_theme_options['home_posts'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_home_posts', array(
'label' => __( 'Display Home Page Posts', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_layout',
'settings' => 'cdc_lobster_theme_options[home_posts]',
'priority' => 40,
'type' => 'checkbox',
) );
// Jumbo headline section panel
$wp_customize->add_section( 'cyber_dc_boot_jumbo', array(
'title' => __( 'Jumbo Headline', 'cdc_lobster' ),
'priority' => 36,
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[jumbo_headline_title]', array(
'default' => $cyber_dc_boot_theme_options['jumbo_headline_title'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_jumbo_headline_title', array(
'label' => __( 'Jumbo Headline Title', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_jumbo',
'settings' => 'cdc_lobster_theme_options[jumbo_headline_title]',
'priority' => 26,
'type' => 'text',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[jumbo_headline_text]', array(
'default' => $cyber_dc_boot_theme_options['jumbo_headline_text'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_jumbo_headline_text', array(
'label' => __( 'Jumbo Headline Text', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_jumbo',
'settings' => 'cdc_lobster_theme_options[jumbo_headline_text]',
'priority' => 27,
'type' => 'text',
) );
// Posts panel
$wp_customize->add_section( 'cyber_dc_boot_posts', array(
'title' => __( 'Posts', 'cdc_lobster' ),
'priority' => 45,
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[display_categories]', array(
'default' => $cyber_dc_boot_theme_options['display_categories'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_display_categories', array(
'label' => __( 'Display Categories', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_posts',
'settings' => 'cdc_lobster_theme_options[display_categories]',
'type' => 'checkbox',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[display_author]', array(
'default' => $cyber_dc_boot_theme_options['display_author'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_display_author', array(
'label' => __( 'Display Author', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_posts',
'settings' => 'cdc_lobster_theme_options[display_author]',
'type' => 'checkbox',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[display_date]', array(
'default' => $cyber_dc_boot_theme_options['display_date'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_display_date', array(
'label' => __( 'Display Date', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_posts',
'settings' => 'cdc_lobster_theme_options[display_date]',
'type' => 'checkbox',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[display_comment_count]', array(
'default' => $cyber_dc_boot_theme_options['display_comment_count'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_display_comment_count', array(
'label' => __( 'Display Comment Count', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_posts',
'settings' => 'cdc_lobster_theme_options[display_comment_count]',
'type' => 'checkbox',
) );
// Custom header section panel
$wp_customize->add_section( 'cyber_dc_boot_cust_header', array(
'title' => __( 'Custom Header', 'cdc_lobster' ),
'priority' => 54,
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[cust_header_headline_title]', array(
'default' => $cyber_dc_boot_theme_options['cust_header_headline_title'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_cust_header_headline_title', array(
'label' => __( 'Custom Header Headline Title', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_cust_header',
'settings' => 'cdc_lobster_theme_options[cust_header_headline_title]',
'priority' => 34,
'type' => 'text',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[cust_header_headline_text]', array(
'default' => $cyber_dc_boot_theme_options['cust_header_headline_text'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_cust_header_headline_text', array(
'label' => __( 'Custom Header Headline Text', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_cust_header',
'settings' => 'cdc_lobster_theme_options[cust_header_headline_text]',
'priority' => 38,
'type' => 'text',
) );
$wp_customize->add_setting( 'cdc_lobster_theme_options[custom_header_display]', array(
'default' => $cyber_dc_boot_theme_options['custom_header_display'],
'type' => 'option',
'capability' => 'edit_theme_options',
) );
$wp_customize->add_control( 'cyber_dc_boot_cust_header_display', array(
'label' => __( 'Display Custom Header and Header Image (This box must be ticked to enable the Header Image feature below.)', 'cdc_lobster' ),
'section' => 'cyber_dc_boot_cust_header',
'settings' => 'cdc_lobster_theme_options[custom_header_display]',
'priority' => 25,
'type' => 'checkbox',
) );
}
}
$cyber_dc_boot_customizer = new Cyber_DC_Boot_Customizer;