agy_options_check( 'headline' ) ?>

agy_options_check( 'subtitle' ) ?>

agy_options_check( 'message' ) ?>

agy_options_check( 'separator_text' ) ?>

' . $header_text . '', AGY_TEXT_DOMAIN ), array( 'a' => array( 'href' => array(), 'target' => array(), 'class' => array() ), ) ), esc_url( $header_url ), __( $header_target, AGY_TEXT_DOMAIN ), __( $header_class, AGY_TEXT_DOMAIN ) ); } /** * Front-end modal template conditional styling * * @param string $option_font_size Font size declaration * @param string $option_color Color declaration * @param string $option_background_color Background color declaration * @param string $option_z_index Z Index declaration * @param string $option_width Width declaration * @param string $option_border_style Border declaration * @param string $option_border_color Border color declaration * * @return string */ public function agy_template_styling( $option_font_size = '', $option_color = '', $option_background_color = '', $option_z_index = '', $option_width = '', $option_border_style = '', $option_border_color = '' ): string { return 'font-size: ' . $this->agy_options_check( $option_font_size ) . 'px; color: ' . $this->agy_options_check( $option_color ) . '; background: ' . $this->agy_options_check( $option_background_color ) . '; z-index: ' . $this->agy_options_check( $option_z_index ) . '; width: ' . $this->agy_options_check( $option_width ) . '%; border: ' . $this->agy_options_check( $option_border_style ) . ' ' . $this->agy_options_check( $option_border_color ) . ';'; } // Header menu for admin template protected function agy_header_tabs() { ?>
', AGY_TEXT_DOMAIN ), array( 'a' => array( 'href' => array(), 'target' => array() ), 'img' => array( 'src' => array(), 'class' => array() ) ) ), esc_url( 'https://mlab-studio.com' ), __( '_blank', AGY_TEXT_DOMAIN ), plugins_url( '../admin/assets/img/agy-logo.png', __FILE__ ), __( 'agy-logo', AGY_TEXT_DOMAIN ) ); ?>
agy_header_links( 'Case Study', 'https://mlab-studio.com', '_blank', 'agy-tablinks' ); ?> agy_header_links( 'Give us 5 stars', 'https://wordpress.org/support/plugin/agy-verification/reviews/?filter=5#new-post', '_blank', 'agy-tablinks' ); ?> agy_header_links( 'Support', 'https://wordpress.org/support/plugin/agy-verification', '_blank', 'agy-tablinks' ); ?>
agy_header_tabs(); ?>
'agy-save-changes-btn' ) ); if ( wp_doing_ajax() ) { wp_die(); } ?>
' . __( 'Set your General settings.', AGY_TEXT_DOMAIN ) . '

'; } public function agy_settings_section_tab2_callback() { echo '

' . __( 'Set content for verification.', AGY_TEXT_DOMAIN ) . '

'; } public function agy_settings_section_tab3_callback() { echo '

' . __( 'Set design for the verification.', AGY_TEXT_DOMAIN ) . '

'; } public function agy_settings_section_tab4_callback() { echo '

' . __( 'This section logs important system events and updates, helping administrators monitor the plugin\'s performance and troubleshoot issues.', AGY_TEXT_DOMAIN ) . '

'; } // Settings API public function agy_register_settings() { register_setting( 'agy_settings_fields', 'agy_settings_fields', 'agy_sanitize_callback' ); // Adding sections add_settings_section( 'agy_section_id', __( 'Configuration Settings', AGY_TEXT_DOMAIN ), array( $this, 'agy_settings_section_callback' ), 'agy_settings_section_tab1' ); add_settings_section( 'agy_section_id', __( 'Content Settings', AGY_TEXT_DOMAIN ), array( $this, 'agy_settings_section_tab2_callback' ), 'agy_settings_section_tab2' ); add_settings_section( 'agy_section_id', __( 'Design Settings', AGY_TEXT_DOMAIN ), array( $this, 'agy_settings_section_tab3_callback' ), 'agy_settings_section_tab3' ); add_settings_section( 'agy_section_id', __( 'Plugin status', AGY_TEXT_DOMAIN ), array( $this, 'agy_settings_section_tab4_callback' ), 'agy_settings_section_tab4' ); // General page fields add_settings_field( 'agy_section_id_enabled_disabled', __( 'Enable / Disable', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_enabled_disabled' ), 'agy_settings_section_tab1', 'agy_section_id' ); add_settings_field( 'agy_section_id_unregister_user', __( 'Show for unregistered users only', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_unregister_user' ), 'agy_settings_section_tab1', 'agy_section_id' ); add_settings_field( 'agy_section_id_debug_mode', __( 'Activate Debug mode', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_debug_mode' ), 'agy_settings_section_tab1', 'agy_section_id' ); add_settings_field( 'agy_section_id_exclude_pages', __( 'Exclude pages', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exclude_pages' ), 'agy_settings_section_tab1', 'agy_section_id' ); // Texts page fields add_settings_field( 'agy_section_id_headline', __( 'Headline *', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_headline' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_subtitle', __( 'Subtitle *', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_subtitle' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_message', __( 'Message *', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_message' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_enter_btn', __( 'Enter Button Label *', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_enter_btn' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_btn', __( 'Exit Button Label *', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_btn' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_url', __( 'Exit URL *', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_url' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_separator_text', __( 'Separator Text', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_separator_text' ), 'agy_settings_section_tab2', 'agy_section_id' ); add_settings_field( 'agy_section_id_slogan', __( 'Slogan', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_slogan' ), 'agy_settings_section_tab2', 'agy_section_id' ); // Design page fields add_settings_field( 'agy_section_id_background_color', __( 'Background color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_background_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_z_index', __( 'Z-Index ( Overlay )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_z_index' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_box_width', __( 'Content Box width ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_box_width' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_headline_color', __( 'Headline Color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_headline_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_headline_font_size', __( 'Headline Font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_headline_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_subtitle_color', __( 'Subtitle Color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_subtitle_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_subtitle_font_size', __( 'Subtitle Font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_subtitle_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_message_color', __( 'Message Color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_message_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_message_font_size', __( 'Message Font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_message_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_btn_background_color', __( 'Enter Button background color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_btn_background_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_btn_font_color', __( 'Enter Button font color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_btn_font_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_btn_border_style', __( 'Enter Button border style', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_btn_border_style' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_btn_border_color', __( 'Enter Button border color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_btn_border_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_btn_font_size', __( 'Enter Button font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_btn_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_btn_background_color', __( 'Exit Button background color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_btn_background_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_btn_font_color', __( 'Exit Button font color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_btn_font_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_btn_border_style', __( 'Exit Button border style', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_btn_border_style' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_btn_border_color', __( 'Exit Button border color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_btn_border_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_exit_btn_font_size', __( 'Exit Button font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_exit_btn_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_separator_color', __( 'Separator Color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_separator_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_separator_font_size', __( 'Separator Font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_separator_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_slogan_color', __( 'Slogan Color', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_slogan_color' ), 'agy_settings_section_tab3', 'agy_section_id' ); add_settings_field( 'agy_section_id_slogan_font_size', __( 'Slogan Font size ( in px )', AGY_TEXT_DOMAIN ), array( $this, 'agy_section_id_slogan_font_size' ), 'agy_settings_section_tab3', 'agy_section_id' ); } /** * Getting option * * @param string $id Checking option value * * @return string */ public function agy_options_check( string $id ): string { $options = get_option( 'agy_settings_fields' ); return ( ! empty( $options[ $id ] ) ? $options[ $id ] : '' ); } /** * Getting option for radio buttons only * * @param string $id Checking option value for radio button only * * @return string */ public function agy_option_check_radio_btn( string $id ): string { $options = get_option( 'agy_settings_fields' ); return isset( $options[ $id ] ) ? checked( 1, $options[ $id ], false ) : ''; } /** * Conditional check for input field in Settings API * * @param string $type Input field type attribute * @param string $id Input field ID attribute * @param string $class Input field class attribute * @param string $name Input field name attribute * @param string $value Input field value attribute * @param string $placeholder Input field placeholder attribute * @param string $description Input field description * @param string $min Input field min attribute * @param string $max Input field max attribute * @param string $required Required attribute */ protected function agy_settings_fields( string $type, string $id, string $class, string $name, string $value, string $placeholder = '', string $description = '', string $min = '', string $max = '', string $required = '' ) { switch ( $type ) { case 'text': echo '' . esc_attr( $description ) . ''; break; case 'number': echo '' . esc_attr( $description ) . ''; break; case 'checkbox': echo '' . esc_attr( $description ) . ''; break; case 'url': echo '' . esc_attr( $description ) . ''; break; case 'color': echo '' . esc_attr( $description ) . ''; break; case 'textarea': echo '' . esc_attr( $description ) . ''; break; } } // General page Settings API fields public function agy_section_id_enabled_disabled() { echo '
'; $this->agy_settings_fields( 'checkbox', 'agy-enabled-disabled', 'agy-switch-input', 'enabled_disabled', $this->agy_option_check_radio_btn( 'enabled_disabled' ), '', 'Turn on/off plugin.' ); echo '
'; } public function agy_section_id_unregister_user() { echo '
'; $this->agy_settings_fields( 'checkbox', 'agy-unregister-user', 'agy-switch-input', 'unregister_user', $this->agy_option_check_radio_btn( 'unregister_user' ), '', 'Turning this feature on, the verification will be shown only for non-registered user.' ); echo '
'; } public function agy_section_id_debug_mode() { echo '
'; $this->agy_settings_fields( 'checkbox', 'agy-debug-mode', 'agy-switch-input', 'debug_mode', $this->agy_option_check_radio_btn( 'debug_mode' ), '', 'Turn off the cookie for testing purpose. While the Debug mode is on, "Show for unregistered users only" field will not be usable. Don\'t forget to turn it off when you finish.' ); echo '
'; } public function agy_section_id_exclude_pages() { echo '
'; $this->agy_settings_fields( 'text', 'agy-exclude-pages', 'agy-settings-field', 'exclude_pages', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exclude_pages' ) ) ), 'home, about-us, contact', 'Add a comma separated page slug in order to exclude verification for that specific page.' ); echo '
'; } // Text page Settings API fields public function agy_section_id_headline() { echo '
'; $this->agy_settings_fields( 'text', 'agy-headline', 'agy-settings-field', 'headline', esc_attr__( sanitize_text_field( $this->agy_options_check( 'headline' ) ) ), 'This is a headline', 'The very top part of the text.', '', '', 'required' ); echo '
'; } public function agy_section_id_subtitle() { echo '
'; $this->agy_settings_fields( 'text', 'agy-subtitle', 'agy-settings-field', 'subtitle', esc_attr__( sanitize_text_field( $this->agy_options_check( 'subtitle' ) ) ), 'This is a subtitle', 'Text below the headline.', '', '', 'required' ); echo '
'; } public function agy_section_id_message() { echo '
'; $this->agy_settings_fields( 'textarea', 'agy-message', 'agy-settings-field', 'message', esc_attr__( sanitize_text_field( $this->agy_options_check( 'message' ) ) ), '', 'Message notice for user that visit the website.', '', '', 'required' ); echo '
'; } public function agy_section_id_enter_btn() { echo '
'; $this->agy_settings_fields( 'text', 'agy-enter-btn', 'agy-settings-field', 'enter_btn', esc_attr__( sanitize_text_field( $this->agy_options_check( 'enter_btn' ) ) ), 'I am older, enter', 'Text for verified user that can visit the website.', '', '', 'required' ); echo '
'; } public function agy_section_id_exit_btn() { echo '
'; $this->agy_settings_fields( 'text', 'agy-exit-btn', 'agy-settings-field', 'exit_btn', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_btn' ) ) ), 'I am not older, exit', 'Text for non-verified user that can\'t visit website.', '', '', 'required' ); echo '
'; } public function agy_section_id_exit_url() { echo '
'; $this->agy_settings_fields( 'url', 'agy-exit-url', 'agy-settings-field', 'exit_url', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_url' ) ) ), 'https://domain.com', 'The redirect URL if the exit button was clicked', '', '', 'required' ); echo '
'; } public function agy_section_id_separator_text() { echo '
'; $this->agy_settings_fields( 'text', 'agy-separator-text', 'agy-settings-field', 'separator_text', esc_attr__( sanitize_text_field( $this->agy_options_check( 'separator_text' ) ) ), 'This is a separator text', 'Separator text is used to devide the Enter and Exit button.' ); echo '
'; } public function agy_section_id_slogan() { echo '
'; $this->agy_settings_fields( 'textarea', 'agy-slogan', 'agy-settings-field', 'slogan', esc_attr__( sanitize_text_field( $this->agy_options_check( 'slogan' ) ) ), 'This is a slogan', 'Slogan text is used at the very bottom of the verification.' ); echo '
'; } // Design page Settings API fields public function agy_section_id_background_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-background-color', 'agy-settings-color', 'background_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'background_color' ) ) ), '', 'Background color of the verification popup.' ); echo '
'; } public function agy_section_id_z_index() { echo '
'; $this->agy_settings_fields( 'number', 'agy-z-index', 'agy-settings-field', 'z_index', esc_attr__( sanitize_text_field( $this->agy_options_check( 'z_index' ) ) ), '1', 'CSS property - Z Index' ); echo '
'; } public function agy_section_id_box_width() { echo '
'; $this->agy_settings_fields( 'number', 'agy-box-width', 'agy-settings-field', 'box_width', esc_attr__( sanitize_text_field( $this->agy_options_check( 'box_width' ) ) ), '50', 'Width ( in % ) of the popup container. From 30% to the 90%', '30', '90' ); echo '
'; } public function agy_section_id_headline_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-headline-color', 'agy-settings-color', 'headline_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'headline_color' ) ) ), '', 'Headline font color' ); echo '
'; } public function agy_section_id_headline_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-headline-font-size', 'agy-settings-field', 'headline_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'headline_font_size' ) ) ), '16', 'Headline font size.' ); echo '
'; } public function agy_section_id_subtitle_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-subtitle-color', 'agy-settings-color', 'subtitle_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'subtitle_color' ) ) ), '', 'Subtitle font color' ); echo '
'; } public function agy_section_id_subtitle_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-subtitle-font-size', 'agy-settings-field', 'subtitle_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'subtitle_font_size' ) ) ), '16', 'Subtitle font size' ); echo '
'; } public function agy_section_id_message_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-message-color', 'agy-settings-color', 'message_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'message_color' ) ) ), '', 'Message font color' ); echo '
'; } public function agy_section_id_message_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-message-font-size', 'agy-settings-field', 'message_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'message_font_size' ) ) ), '16', 'Message font size' ); echo '
'; } public function agy_section_id_btn_background_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-btn-background-color', 'agy-settings-color', 'btn_background_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'btn_background_color' ) ) ), '', 'Button background color.' ); echo '
'; } public function agy_section_id_btn_font_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-btn-font-color', 'agy-settings-color', 'btn_font_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'btn_font_color' ) ) ), '', 'Button font color.' ); echo '
'; } public function agy_section_id_btn_border_style() { echo '
'; $this->agy_settings_fields( 'text', 'agy-btn-border-style', 'agy-settings-color', 'btn_border_style', esc_attr__( sanitize_text_field( $this->agy_options_check( 'btn_border_style' ) ) ), '2px outset', 'CSS property - Border' ); echo '
'; } public function agy_section_id_btn_border_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-btn-border-color', 'agy-settings-color', 'btn_border_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'btn_border_color' ) ) ), '', 'Border color' ); echo '
'; } public function agy_section_id_btn_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-btn-font-size', 'agy-settings-field', 'btn_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'btn_font_size' ) ) ), '16', 'Button font size.' ); echo '
'; } public function agy_section_id_exit_btn_background_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-exit-btn-background-color', 'agy-settings-color', 'exit_btn_background_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_btn_background_color' ) ) ), '', 'Exit button background color.' ); echo '
'; } public function agy_section_id_exit_btn_font_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-exit-btn-font-color', 'agy-settings-color', 'exit_btn_font_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_btn_font_color' ) ) ), '', 'Exit button font color.' ); echo '
'; } public function agy_section_id_exit_btn_border_style() { echo '
'; $this->agy_settings_fields( 'text', 'agy-exit-btn-border-style', 'agy-settings-color', 'exit_btn_border_style', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_btn_border_style' ) ) ), '1px solid', 'CSS property - Border' ); echo '
'; } public function agy_section_id_exit_btn_border_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-exit-btn-border-color', 'agy-settings-color', 'exit_btn_border_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_btn_border_color' ) ) ), 'Exit button font color.' ); echo '
'; } public function agy_section_id_exit_btn_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-exit_btn_font_size', 'agy-settings-field', 'exit_btn_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'exit_btn_font_size' ) ) ), '16', 'Exit button font size.' ); echo '
'; } public function agy_section_id_separator_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-separator-color', 'agy-settings-color', 'separator_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'separator_color' ) ) ), '', 'Separator color.' ); echo '
'; } public function agy_section_id_separator_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-separator-font-size', 'agy-settings-field', 'separator_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'separator_font_size' ) ) ), '16', 'Separator font size.' ); echo '
'; } public function agy_section_id_slogan_color() { echo '
'; $this->agy_settings_fields( 'color', 'agy-slogan-color', 'agy-settings-color', 'slogan_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'slogan_color' ) ) ), '', 'Slogan color.' ); echo '
'; } public function agy_section_id_slogan_font_size() { echo '
'; $this->agy_settings_fields( 'number', 'agy-slogan-font-size', 'agy-settings-field', 'slogan_font_size', esc_attr__( sanitize_text_field( $this->agy_options_check( 'slogan_font_size' ) ) ), '16', 'Slogan font size.' ); echo '
'; } } new Agy_Dashboard(); }