add_section(
'footer_options' ,
array(
'title' => __( 'Footer Options', 'blog-tale' ),
'panel' => 'theme_option_panel',
)
);
/*Option to choose footer column layout*/
$wp_customize->add_setting(
'theme_options[footer_column_layout]',
array(
'default' => $default_options['footer_column_layout'],
'sanitize_callback' => 'blog_tale_sanitize_radio',
)
);
$wp_customize->add_control(
new Blog_Tale_Radio_Image_Control(
$wp_customize,
'theme_options[footer_column_layout]',
array(
'label' => __( 'Footer Column Layout', 'blog-tale' ),
'description' => sprintf( __( 'Footer widgetareas used will vary based on the footer column layout chosen. Head over to widgets to see which footer widgetareas are used if you change the layout.', 'blog-tale' ), $widgets_link ),
'section' => 'footer_options',
'choices' => blog_tale_get_footer_layouts()
)
)
);
/**/
/*Copyright Text.*/
$wp_customize->add_setting(
'theme_options[copyright_text]',
array(
'default' => $default_options['copyright_text'],
'sanitize_callback' => 'sanitize_text_field',
'transport' => 'postMessage',
)
);
$wp_customize->add_control(
'theme_options[copyright_text]',
array(
'label' => __( 'Copyright Text', 'blog-tale' ),
'section' => 'footer_options',
'type' => 'text',
)
);
/*Enable copyright footer credit*/
$wp_customize->add_setting(
'theme_options[enable_footer_credit]',
array(
'default' => $default_options['enable_footer_credit'],
'sanitize_callback' => 'blog_tale_sanitize_checkbox',
)
);
$wp_customize->add_control(
'theme_options[enable_footer_credit]',
array(
'label' => __( 'Enable Footer Credit', 'blog-tale' ),
'section' => 'footer_options',
'type' => 'checkbox',
)
);
/*Enable Footer Nav*/
$wp_customize->add_setting(
'theme_options[enable_footer_nav]',
array(
'default' => $default_options['enable_footer_nav'],
'sanitize_callback' => 'blog_tale_sanitize_checkbox',
)
);
$wp_customize->add_control(
'theme_options[enable_footer_nav]',
array(
'label' => __( 'Show Footer Nav Menu', 'blog-tale' ),
'description' => sprintf( __( 'You can add/edit footer nav menu from here.', 'blog-tale' ), "javascript:wp.customize.control( 'nav_menu_locations[footer-menu]' ).focus();" ),
'section' => 'footer_options',
'type' => 'checkbox',
)
);