' . esc_html__( 'All settings saved!', 'bado-blog' ) . '

'; } } add_action( 'admin_notices', 'badoblog_fun_options_notice' ); // Display the options page function badoblog_fun_settings_function() { ?>

' . esc_html__( 'Useful links', 'bado-blog' ) . '

' . sprintf( esc_html__( 'Management and configuration instructions for the %s', 'bado-blog' ), BADOBLOG_NAME ) . '

' . sprintf( esc_html__( 'Information materials for the %s', 'bado-blog' ), BADOBLOG_NAME ) . '

' . esc_html__( 'Watch live sites demos', 'bado-blog' ) . '

' . sprintf( esc_html__( 'List of updates for the %s', 'bado-blog' ), BADOBLOG_NAME ) . '

' . esc_html__( 'Rate this theme', 'bado-blog' ) . '

'; } // support-tab content function badoblog_fun_support_tab() { echo '
'; echo '
'; // Comparison of Versions if ( function_exists( 'badoblog_fun_pr_set_info_comparison' ) ) { echo badoblog_fun_pr_set_info_comparison(); } echo '
'; echo '
'; // Support echo '
'; settings_fields( 'support-tab' ); do_settings_sections( 'support-tab' ); echo '
'; // Soc support if ( function_exists( 'badoblog_fun_admin_soc_sup_links' ) ) { badoblog_fun_admin_soc_sup_links(); } // Info badoblog_fun_admin_useful_links(); echo '
'; echo '
'; } // general-tab content function badoblog_fun_general_tab() { $customize_url = admin_url( 'customize.php?return=%2Fwp-admin%2Fthemes.php%3Fpage%3Ddmcwzmulti_page_settings' ); echo '
'; echo '
'; // Quick links to settings echo '
'; echo '
'; echo esc_html__( 'All settings of the front part of the theme are located in the visual editor', 'bado-blog' ); echo ' » ' . esc_html__( 'Open', 'bado-blog' ) . ''; echo '
'; echo '

' . esc_html__( 'Visual Customizer Quick Links', 'bado-blog' ) . '

'; echo '
'; $url_lay = admin_url( 'customize.php?autofocus[control]=badoblog_cus_lay_all' ); echo '' . esc_html__( 'Template orientation', 'bado-blog' ) . ''; $url_color = admin_url( 'customize.php?autofocus[control]=badoblog_cus_colors_primary_small' ); echo '' . esc_html__( 'Common colors', 'bado-blog' ) . ''; $url_font = admin_url( 'customize.php?autofocus[control]=badoblog_cus_typography_font' ); echo '' . esc_html__( 'General typography', 'bado-blog' ) . ''; $url_logo = admin_url( 'customize.php?autofocus[control]=display_header_text' ); echo '' . esc_html__( 'Title and logo', 'bado-blog' ) . ''; $url_top_menu = admin_url( 'customize.php?autofocus[control]=badoblog_cus_top_menu_size' ); echo '' . esc_html__( 'Top menu', 'bado-blog' ) . ''; $url_main_menu = admin_url( 'customize.php?autofocus[control]=badoblog_cus_main_menu_full_width' ); echo '' . esc_html__( 'Main menu', 'bado-blog' ) . ''; $url_soc = admin_url( 'customize.php?autofocus[control]=badoblog_cus_soc' ); echo '' . esc_html__( 'Social links', 'bado-blog' ) . ''; $url_widget = admin_url( 'customize.php?autofocus[control]=badoblog_cus_sidebar_design' ); echo '' . esc_html__( 'Sidebar settings', 'bado-blog' ) . ''; $url_cat = admin_url( 'customize.php?autofocus[panel]=badoblog_cus_panel_cat' ); echo '' . esc_html__( 'Categories', 'bado-blog' ) . ''; $url_post = admin_url( 'customize.php?autofocus[panel]=badoblog_cus_panel_post' ); echo '' . esc_html__( 'Posts and pages', 'bado-blog' ) . ''; $url_main = admin_url( 'customize.php?autofocus[panel]=badoblog_cus_panel_top' ); echo '' . esc_html__( 'Top part', 'bado-blog' ) . ''; $url_footer = admin_url( 'customize.php?autofocus[control]=badoblog_cus_footer_full' ); echo '' . esc_html__( 'Bottom part', 'bado-blog' ) . ''; echo '
'; echo '
'; // Expert settings echo '
'; echo '

' . esc_html__( 'Expert settings of the administrative part of the theme', 'bado-blog' ) . '

'; settings_fields( 'general-tab' ); do_settings_sections( 'general-tab' ); submit_button(); echo '
'; echo '
'; echo '
'; // Comparison of Versions if ( function_exists( 'badoblog_fun_pr_set_general_comparison' ) ) { echo badoblog_fun_pr_set_general_comparison(); } // Info badoblog_fun_admin_useful_links(); echo '
'; echo '
'; } // Display scripts only on page (and tabs) dmcwzmulti_page_settings // Per WordPress rules - use $hook_suffix // info - developer.wordpress.org/reference/hooks/admin_footer-hook_suffix/ // The page is defined as - appearance_page_dmcwzmulti_page_settings function badoblog_fun_admin_set_page_scripts( $hook_suffix ) { $tab_page = array( 'appearance_page_dmcwzmulti_page_settings', 'appearance_page_dmcwzmulti_page_settings-affiliation', 'appearance_page_dmcwzmulti_page_settings-account', 'appearance_page_dmcwzmulti_page_settings-contact', 'appearance_page_dmcwzmulti_page_settings-addons', 'appearance_page_dmcwzmulti_page_settings-pricing' ); if ( !in_array( $hook_suffix, $tab_page ) ) { return; } // Style file for admin set page wp_enqueue_style( 'badoblog-style-admin-set', get_template_directory_uri() . '/css/admin/admin-set-style.css', array(), BADOBLOG_VERSION ); } add_action( 'admin_enqueue_scripts', 'badoblog_fun_admin_set_page_scripts' ); } badoblog_fun_general_settings(); } // Registration, adding settings and sections function badoblog_fun_theme_settings() { // Section - Support if ( !defined( 'DMCWZAF_VERSION' ) ) { add_settings_section( 'badoblog_set_section_support_contact', esc_html__( 'Technical support', 'bado-blog' ), 'badoblog_fun_callback_support_contact', 'support-tab' ); } // ------------------------------------------------------------ // Images format // ------------------------------------------------------------ // Section add_settings_section( 'badoblog_set_section_img_all', '

' . esc_html__( 'Images format', 'bado-blog' ) . '

', '', 'general-tab' ); // Setting the size of the main image of posts and pages (width) add_settings_field( 'badoblog_set_size_imgs_all', esc_html__( 'Choose which images to use for the entire site', 'bado-blog' ), 'badoblog_fun_callback_size_img_all', 'general-tab', 'badoblog_set_section_img_all' ); register_setting( 'general-tab', 'badoblog_set_size_imgs_all' ); } add_action( 'admin_init', 'badoblog_fun_theme_settings' ); // ------------------------------------------------------------ // CALLBACK - Support links // ------------------------------------------------------------ // Support if ( !defined( 'DMCWZAF_VERSION' ) ) { function badoblog_fun_callback_support_contact() { echo '

Site: support.web-zone.org

'; echo '

Email: support@web-zone.org

'; } } // ------------------------------------------------------------ // CALLBACK - Images format // ------------------------------------------------------------ function badoblog_fun_callback_size_img_all() { $opt = get_option( 'badoblog_set_size_imgs_all' ); echo '

' . esc_html__( 'The theme creates multiple thumbnail sizes in a single 16x9 format and uses optimal sizes in the right places. This has a good effect on loading speed and proper display in a unified style.', 'bado-blog' ) . '

' . esc_html__( 'You can change this setting to control the size of the images yourself.', 'bado-blog' ) . '






' . sprintf( esc_html__( 'It is important to know! These settings cannot delete or modify existing image files. Slicing of images occurs at the time of uploading a new image to the %s media library.', 'bado-blog' ), 'WordPress' ) . '

' . esc_html__( 'To change old pictures, use the thumbnail regeneration plugin.', 'bado-blog' ) . '

'; }