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

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

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

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

' . sprintf( esc_html__( 'Information materials for the %s', 'airin-blog' ), AIRINBLOG_NAME ) . '

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

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

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

'; } // function Soc support links function airinblog_fun_admin_soc_sup_links() { $gtduri = get_template_directory_uri(); echo '

' . esc_html__( 'Social Media Links', 'airin-blog' ) . '

' . esc_html__( 'Follow theme updates, suggest new features, participate in polls, discuss, and ask questions', 'airin-blog' ) . '

'; } // support-tab content function airinblog_fun_support_tab() { echo '
'; echo '
'; // Comparison of Versions echo '

' . AIRINBLOG_NAME . ' Theme ' . esc_html__( '(Comparison of Versions)', 'airin-blog' ) . '

' . esc_html__( 'Available features', 'airin-blog' ) . ' ' . esc_html__( 'Free', 'airin-blog' ) . ' Premium
' . esc_html__( 'Powerful typography', 'airin-blog' ) . '
' . esc_html__( 'Modularity and flexibility', 'airin-blog' ) . '
' . sprintf( esc_html__( 'Visual customizer support (%s)', 'airin-blog' ), 'WordPress' ) . '
' . esc_html__( 'Flexible heading customization with logo', 'airin-blog' ) . '
' . esc_html__( 'Flexible sidebar orientation', 'airin-blog' ) . '
' . esc_html__( 'Ability to choose your own sidebar orientation for posts and pages', 'airin-blog' ) . '
' . esc_html__( 'Selecting the width of the site', 'airin-blog' ) . '
' . esc_html__( 'Three pagination options', 'airin-blog' ) . '
' . esc_html__( 'Four menu locations', 'airin-blog' ) . '
' . esc_html__( 'Mega menu (mega lists, dropdown, single) in the main menu', 'airin-blog' ) . '
' . esc_html__( 'Social link customizer in the site header', 'airin-blog' ) . '
' . esc_html__( 'Plugins adapting', 'airin-blog' ) . ' (WooCommerce, bbPress, The Events Calendar, Elementor, WPML, Jetpack, Yoast SEO, Newsletter, Contact Form 7)
' . esc_html__( 'Home page customizer (choice of 8 blocks)', 'airin-blog' ) . '
' . esc_html__( 'Megamenu (graphic) with customizer in the main menu', 'airin-blog' ) . '
' . esc_html__( 'Wide slider (below the main menu)', 'airin-blog' ) . '
' . esc_html__( 'More fonts to choose from', 'airin-blog' ) . '
' . esc_html__( 'Powerful color settings', 'airin-blog' ) . '
' . esc_html__( 'Ready-made color schemes', 'airin-blog' ) . '
' . esc_html__( 'Reset theme settings and activate presets', 'airin-blog' ) . '
' . esc_html__( 'Full demo versions of sites (Import thematic demo versions in one click)', 'airin-blog' ) . '
' . esc_html__( 'Lots of hooks (windows for codes)', 'airin-blog' ) . '
' . esc_html__( 'Additional widgets', 'airin-blog' ) . '
' . sprintf( esc_html__( 'Separate sidebars for %1$s and %2$s', 'airin-blog' ), 'WooCommerce', 'bbPress' ) . '
' . esc_html__( 'Expanded plugins adapting', 'airin-blog' ) . ' (WooCommerce, bbPress, The Events Calendar)
' . esc_html__( 'Buy', 'airin-blog' ) . ' Premium
'; echo '
'; echo '
'; // Support echo '
'; settings_fields( 'support-tab' ); do_settings_sections( 'support-tab' ); echo '
'; // Soc support airinblog_fun_admin_soc_sup_links(); // Info airinblog_fun_admin_useful_links(); echo '
'; echo '
'; } // general-tab content function airinblog_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', 'airin-blog' ); echo ' » ' . esc_html__( 'Open', 'airin-blog' ) . ''; echo '
'; echo '

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

'; echo '
'; $url_lay = admin_url( 'customize.php?autofocus[control]=airinblog_cus_lay_all' ); echo '' . esc_html__( 'Template orientation', 'airin-blog' ) . ''; $url_color = admin_url( 'customize.php?autofocus[control]=airinblog_cus_colors_primary' ); echo '' . esc_html__( 'Common colors', 'airin-blog' ) . ''; $url_font = admin_url( 'customize.php?autofocus[control]=airinblog_cus_typography_font' ); echo '' . esc_html__( 'General typography', 'airin-blog' ) . ''; $url_logo = admin_url( 'customize.php?autofocus[control]=display_header_text' ); echo '' . esc_html__( 'Title and logo', 'airin-blog' ) . ''; $url_top_menu = admin_url( 'customize.php?autofocus[control]=airinblog_cus_top_menu_size' ); echo '' . esc_html__( 'Top menu', 'airin-blog' ) . ''; $url_main_menu = admin_url( 'customize.php?autofocus[control]=airinblog_cus_main_menu_full_width' ); echo '' . esc_html__( 'Main menu', 'airin-blog' ) . ''; $url_soc = admin_url( 'customize.php?autofocus[control]=airinblog_cus_soc' ); echo '' . esc_html__( 'Social links', 'airin-blog' ) . ''; $url_widget = admin_url( 'customize.php?autofocus[control]=airinblog_cus_widget_sidebar_design' ); echo '' . esc_html__( 'Widget settings', 'airin-blog' ) . ''; $url_cat = admin_url( 'customize.php?autofocus[panel]=airinblog_cus_panel_cat' ); echo '' . esc_html__( 'Categories', 'airin-blog' ) . ''; $url_post = admin_url( 'customize.php?autofocus[panel]=airinblog_cus_panel_post' ); echo '' . esc_html__( 'Posts and pages', 'airin-blog' ) . ''; $url_main = admin_url( 'customize.php?autofocus[panel]=airinblog_cus_panel_top' ); echo '' . esc_html__( 'Top part', 'airin-blog' ) . ''; $url_footer = admin_url( 'customize.php?autofocus[control]=airinblog_cus_footer_full' ); echo '' . esc_html__( 'Bottom part', 'airin-blog' ) . ''; echo '
'; echo '
'; // Expert settings echo '
'; echo '

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

'; settings_fields( 'general-tab' ); do_settings_sections( 'general-tab' ); submit_button(); echo '
'; echo '
'; echo '
'; // Free echo '

' . AIRINBLOG_NAME . ' Premium

' . esc_html__( 'Home page customizer (choice of 8 blocks)', 'airin-blog' ) . '

' . esc_html__( 'Megamenu (graphic) with customizer in the main menu', 'airin-blog' ) . '

' . esc_html__( 'Wide slider (below the main menu)', 'airin-blog' ) . '

' . esc_html__( 'More fonts to choose from', 'airin-blog' ) . '

' . esc_html__( 'Powerful color settings', 'airin-blog' ) . '

' . esc_html__( 'Ready-made color schemes', 'airin-blog' ) . '

' . esc_html__( 'Reset theme settings and activate presets', 'airin-blog' ) . '

' . esc_html__( 'Full demo versions of sites (Import thematic demo versions in one click)', 'airin-blog' ) . '

' . esc_html__( 'Lots of hooks (windows for codes)', 'airin-blog' ) . '

' . esc_html__( 'Additional widgets', 'airin-blog' ) . '

' . sprintf( esc_html__( 'Separate sidebars for %1$s and %2$s', 'airin-blog' ), 'WooCommerce', 'bbPress' ) . '

' . esc_html__( 'Expanded plugins adapting', 'airin-blog' ) . ' (WooCommerce, bbPress, Events Calendar)

' . esc_html__( 'Buy', 'airin-blog' ) . ' Premium
'; // Info airinblog_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 airinblog_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( 'airinblog-style-admin-set', get_template_directory_uri() . '/css/admin/admin-set-style.css', array(), AIRINBLOG_VERSION ); } add_action( 'admin_enqueue_scripts', 'airinblog_fun_admin_set_page_scripts' ); } airinblog_fun_general_settings(); } // Registration, adding settings and sections function airinblog_fun_theme_settings() { // Section - Support if ( !defined( 'DMCWZAF_VERSION' ) ) { add_settings_section( 'airinblog_set_section_support_contact', esc_html__( 'Technical support', 'airin-blog' ), 'airinblog_fun_callback_support_contact', 'support-tab' ); } // ------------------------------------------------------------ // Images format // ------------------------------------------------------------ // Section add_settings_section( 'airinblog_set_section_img_all', '

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

', '', 'general-tab' ); // Setting the size of the main image of posts and pages (width) add_settings_field( 'airinblog_set_size_imgs_all', esc_html__( 'Choose which images to use for the entire site', 'airin-blog' ), 'airinblog_fun_callback_size_img_all', 'general-tab', 'airinblog_set_section_img_all' ); register_setting( 'general-tab', 'airinblog_set_size_imgs_all' ); // ------------------------------------------------------------ // Main post image // ------------------------------------------------------------ // Section add_settings_section( 'airinblog_set_section_thumb_post', '

' . esc_html__( 'Main post image', 'airin-blog' ) . '

', '', 'general-tab' ); // Setting the size of the main image of posts and pages (width) add_settings_field( 'airinblog_set_size_img_post_w', esc_html__( 'Add a new image size and apply the default for the main image of posts and pages', 'airin-blog' ), 'airinblog_fun_callback_size_img_post_w_front', 'general-tab', 'airinblog_set_section_thumb_post', array( 'label_for' => 'airinblog_set_size_img_post_w', 'class' => 'airinblog-class', 'name' => 'airinblog_set_size_img_post_w', ) ); register_setting( 'general-tab', 'airinblog_set_size_img_post_w', 'absint' ); // Setting the size of the main image of posts and pages (height) add_settings_field( 'airinblog_set_size_img_post_h', esc_html__( 'To restore the default settings, clear the field data and save', 'airin-blog' ), 'airinblog_fun_callback_size_img_post_h_front', 'general-tab', 'airinblog_set_section_thumb_post', array( 'label_for' => 'airinblog_set_size_img_post_h', 'class' => 'airinblog-class', 'name' => 'airinblog_set_size_img_post_h', ) ); register_setting( 'general-tab', 'airinblog_set_size_img_post_h', 'absint' ); } add_action( 'admin_init', 'airinblog_fun_theme_settings' ); // ------------------------------------------------------------ // CALLBACK - Support links // ------------------------------------------------------------ // Support if ( !defined( 'DMCWZAF_VERSION' ) ) { function airinblog_fun_callback_support_contact() { echo '

Site: support.web-zone.org

'; echo '

Email: support@web-zone.org

'; } } // ------------------------------------------------------------ // CALLBACK - Images format // ------------------------------------------------------------ function airinblog_fun_callback_size_img_all() { $opt = get_option( 'airinblog_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.', 'airin-blog' ) . '

' . esc_html__( 'You can change this setting to control the size of the images yourself.', 'airin-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.', 'airin-blog' ), 'WordPress' ) . '

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

'; } // ------------------------------------------------------------ // CALLBACK - Main image for post // ------------------------------------------------------------ // Adjusting the size of the main post image function airinblog_fun_callback_size_img_post_w_front( $args ) { $value = get_option( $args['name'] ); printf( '

' . esc_html__( 'These settings register a new size for the main (top) image of posts and pages.', 'airin-blog' ) . '

' . esc_html__( 'After applying, all new uploaded images will be supplemented with the new size, which is apply by default for the main image of posts and pages.', 'airin-blog' ) . '


' . esc_html__( 'Width', 'airin-blog' ) . ' px. (' . esc_html__( 'default', 'airin-blog' ) . ' - 0) ', esc_attr( $args['name'] ), esc_attr( $args['name'] ), absint( $value ) ); } // Adjusting the size of the main post image function airinblog_fun_callback_size_img_post_h_front( $args ) { $value = get_option( $args['name'] ); printf( esc_html__( 'Height', 'airin-blog' ) . ' px. (' . esc_html__( 'default', 'airin-blog' ) . ' - 0)

' . 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.', 'airin-blog' ), 'WordPress' ) . '

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

', esc_attr( $args['name'] ), esc_attr( $args['name'] ), absint( $value ) ); } //---------------------------------------------------------------------------------- //region Promo //---------------------------------------------------------------------------------- // 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 airinblog_fun_admin_set_page_script_plans( $hook_suffix ) { $tab_page = array('appearance_page_dmcwzmulti_page_settings-pricing'); if ( !in_array( $hook_suffix, $tab_page ) ) { return; } // Scripts for plans wp_enqueue_script( 'airinblog-script-admin-set-plans', get_template_directory_uri() . '/js/admin/help_usability.js', array('jquery'), AIRINBLOG_VERSION, true ); } add_action( 'admin_enqueue_scripts', 'airinblog_fun_admin_set_page_script_plans' );