agy_options_check( 'headline' ) ?>

agy_options_check( 'subtitle' ) ?>

agy_options_check( 'message' ) ?>

agy_options_check( 'separator_text' ) ?>

' . $header_text . '', 'agy' ), array( 'a' => array( 'href' => array(), 'target' => array(), 'class' => array() ), ) ), esc_url( $header_url ), __( $header_target, 'agy' ), __( $header_class, 'agy' ) ); } /** * 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' ), array( 'a' => array( 'href' => array(), 'target' => array() ), 'img' => array( 'src' => array(), 'class' => array() ) ) ), esc_url( 'https://mlab-studio.com' ), __( '_blank', 'agy' ), plugins_url( '../admin/assets/img/agy-logo.png', __FILE__ ), __( 'agy-logo', 'agy' ) ); ?>
agy_header_links( 'Give us 5 stars', 'https://wordpress.org/support/plugin/agy-verification/reviews/?filter=5#new-post', '_blank', 'agy-right-header-side' ); echo $this->agy_header_links( 'Support', 'https://wordpress.org/support/plugin/agy-verification', '_blank', 'agy-right-header-side' ); ?>
agy_header_tabs(); ?>
'agy-save-changes-btn' ) ); ?>
' . __( $description, 'agy' ) . ''; break; case 'number': echo '' . __( $description, 'agy' ) . ''; break; case 'checkbox': echo '' . $description . ''; break; case 'url': echo '' . __( $description, 'agy' ) . ''; break; case 'color': echo ''; break; case 'textarea': echo ''; break; } } // General page Settings API fields public function agy_section_id_enabled_disabled() { $this->agy_settings_fields( 'checkbox', 'agy-enabled-disabled', 'agy-switch-input', 'enabled_disabled', $this->agy_option_check_radio_btn( 'enabled_disabled' ) ); } public function agy_section_id_unregister_user() { $this->agy_settings_fields( 'checkbox', 'agy-unregister-user', 'agy-switch-input', 'unregister_user', $this->agy_option_check_radio_btn( 'unregister_user' ) ); } public function agy_section_id_debug_mode() { $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.' ); } public function agy_section_id_exclude_pages() { $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.' ); } // Text page Settings API fields public function agy_section_id_headline() { $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', '', '', '', 'required' ); } public function agy_section_id_subtitle() { $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', '', '', '', 'required' ); } public function agy_section_id_message() { $this->agy_settings_fields( 'textarea', 'agy-message', 'agy-settings-field', 'message', esc_attr__( sanitize_text_field( $this->agy_options_check( 'message' ) ) ), '', '', '', '', 'required' ); } public function agy_section_id_enter_btn() { $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', '', '', '', 'required' ); } public function agy_section_id_exit_btn() { $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', '', '', '', 'required' ); } public function agy_section_id_exit_url() { $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' ); } public function agy_section_id_separator_text() { $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' ); } public function agy_section_id_slogan() { $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' ); } // Design page Settings API fields public function agy_section_id_background_color() { $this->agy_settings_fields( 'color', 'agy-background-color', 'agy-settings-color', 'background_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'background_color' ) ) ) ); } public function agy_section_id_z_index() { $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' ); } public function agy_section_id_box_width() { $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' ); } public function agy_section_id_headline_color() { $this->agy_settings_fields( 'color', 'agy-headline-color', 'agy-settings-color', 'headline_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'headline_color' ) ) ) ); } public function agy_section_id_headline_font_size() { $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' ); } public function agy_section_id_subtitle_color() { $this->agy_settings_fields( 'color', 'agy-subtitle-color', 'agy-settings-color', 'subtitle_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'subtitle_color' ) ) ) ); } public function agy_section_id_subtitle_font_size() { $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' ); } public function agy_section_id_message_color() { $this->agy_settings_fields( 'color', 'agy-message-color', 'agy-settings-color', 'message_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'message_color' ) ) ) ); } public function agy_section_id_message_font_size() { $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' ); } public function agy_section_id_btn_background_color() { $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' ) ) ) ); } public function agy_section_id_btn_font_color() { $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' ) ) ) ); } public function agy_section_id_btn_border_style() { $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' ); } public function agy_section_id_btn_border_color() { $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' ) ) ) ); } public function agy_section_id_btn_font_size() { $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' ); } public function agy_section_id_exit_btn_background_color() { $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' ) ) ) ); } public function agy_section_id_exit_btn_font_color() { $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' ) ) ) ); } public function agy_section_id_exit_btn_border_style() { $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' ); } public function agy_section_id_exit_btn_border_color() { $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' ) ) ) ); } public function agy_section_id_exit_btn_font_size() { $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' ); } public function agy_section_id_separator_color() { $this->agy_settings_fields( 'color', 'agy-separator-color', 'agy-settings-color', 'separator_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'separator_color' ) ) ) ); } public function agy_section_id_separator_font_size() { $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' ); } public function agy_section_id_slogan_color() { $this->agy_settings_fields( 'color', 'agy-slogan-color', 'agy-settings-color', 'slogan_color', esc_attr__( sanitize_text_field( $this->agy_options_check( 'slogan_color' ) ) ) ); } public function agy_section_id_slogan_font_size() { $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' ); } } new Agy_Dashboard(); }