ESSBOptionsStructureHelper::field_textbox('style', 'buttons', 'customizer_totalfontsize_beforeafter', __('Total counter before/after share buttons text font-size', ESSB3_TEXT_DOMAIN), __('Enter value in px (ex: 14px) to change the total counter text font-size', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_section_end('style', 'buttons');
    ESSBOptionsStructureHelper::field_section_start('style', 'buttons', __('Color customization for all social networks', ESSB3_TEXT_DOMAIN), __('Choose color settings that will be applied for all social networks', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_color('style', 'buttons', 'customizer_bgcolor', __('Background color', ESSB3_TEXT_DOMAIN), __('Replace all buttons background color', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_color('style', 'buttons', 'customizer_textcolor', __('Text color', ESSB3_TEXT_DOMAIN), __('Replace all buttons text color', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_color('style', 'buttons', 'customizer_hovercolor', __('Hover background color', ESSB3_TEXT_DOMAIN), __('Replace all buttons hover background color', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_color('style', 'buttons', 'customizer_hovertextcolor', __('Hover text color', ESSB3_TEXT_DOMAIN), __('Replace all buttons hover text color', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_switch('style', 'buttons', 'customizer_remove_bg_hover_effects', __('Remove effects applied from theme on hover', ESSB3_TEXT_DOMAIN), __('Activate this option to remove the default theme hover effects (like darken or lighten color).', ESSB3_TEXT_DOMAIN), '', __('Yes', ESSB3_TEXT_DOMAIN), __('No', ESSB3_TEXT_DOMAIN));
    ESSBOptionsStructureHelper::field_section_end('style', 'buttons');
    ESSBOptionsStructureHelper::field_heading('style', 'buttons', 'heading3', __('Color customization for single social networks', ESSB3_TEXT_DOMAIN));
    essb3_prepare_color_customization_by_network('style', 'buttons');
}
ESSBOptionsStructureHelper::field_heading('style', 'css', 'heading1', __('Additional CSS', ESSB3_TEXT_DOMAIN));
ESSBOptionsStructureHelper::field_editor('style', 'css', 'customizer_css', __('Additional custom CSS', ESSB3_TEXT_DOMAIN), '');
ESSBOptionsStructureHelper::field_heading('style', 'css2', 'heading1', __('Additional Footer CSS', ESSB3_TEXT_DOMAIN));
ESSBOptionsStructureHelper::field_editor('style', 'css2', 'customizer_css_footer', __('Additional custom CSS that will be added to footer', ESSB3_TEXT_DOMAIN), __('Add custom CSS code here if you wish that code to be included into footer of site', ESSB3_TEXT_DOMAIN));
ESSBOptionsStructureHelper::field_heading('style', 'fans', 'heading1', __('Fans Color Customization', ESSB3_TEXT_DOMAIN));
ESSBOptionsStructureHelper::field_switch('style', 'fans', 'activate_fanscounter_customizer', __('Activate color customizer', ESSB3_TEXT_DOMAIN), __('Color customizations will not be included unless you activate this option. You are able to activate customization on specific post/pages even if this option is not set to active.', ESSB3_TEXT_DOMAIN), '', __('Yes', ESSB3_TEXT_DOMAIN), __('No', ESSB3_TEXT_DOMAIN));
essb3_draw_fanscounter_customization('style', 'fans');
ESSBOptionsStructureHelper::field_heading('style', 'image', 'heading1', __('Image Share Color Customization', ESSB3_TEXT_DOMAIN));
ESSBOptionsStructureHelper::field_switch('style', 'image', 'activate_imageshare_customizer', __('Activate color customizer', ESSB3_TEXT_DOMAIN), __('Color customizations will not be included unless you activate this option. You are able to activate customization on specific post/pages even if this option is not set to active.', ESSB3_TEXT_DOMAIN), '', __('Yes', ESSB3_TEXT_DOMAIN), __('No', ESSB3_TEXT_DOMAIN));
essb3_draw_imageshare_customization('style', 'image');
// settings by post type
add_action('admin_init', 'essb3_register_settings_by_posttypes');
function essb3_register_settings_by_posttypes()
{
    global $wp_post_types;
    $pts = get_post_types(array('show_ui' => true, '_builtin' => true));
    $cpts = get_post_types(array('show_ui' => true, '_builtin' => false));
    $first_post_type = "";
    $key = 1;