views/noticias/wp-content/themes/supermag/acmethemes/admin-notice/class-admin-notice-handler.php
/**

	 * Display review notice

	 * Aso call other necessary functions

	 *

	 * Active callback of after_setup_theme

	 * return void

	 */
Display review notice
Aso call other necessary functions

Active callback of after_setup_theme
return void
Display review notice Aso call other necessary functions Active callback of after_setup_theme return void
public function display_review_notice() {
		global $current_user;
		$user_id                  = $current_user->ID;
		$ignored_notice           = get_user_meta( $user_id, 'remove_theme_review_notice', true );
		$ignored_notice_partially = get_user_meta( $user_id, 'nag_remove_theme_review_notice_partially', true );
		if ( ( get_option('supermag_theme_installed_time' ) > strtotime( '-15 day' ) ) || ( $ignored_notice_partially > strtotime( '-15 day' ) ) || ( $ignored_notice ) ) {
			return;
		}
		?>
		<div class="notice updated at-review-notice">
			<p>
				<?php
				printf(
					esc_html__(
						'Howdy, %1$s! It seems that you have been using this theme for more than 15 days. We hope you are happy with everything that the theme has to offer. If you can spare a minute, please help us by leaving a 5-star review on WordPress.org.  By spreading the love, we can continue to develop new amazing features in the future, for free!', 'supermag'
					),
					'<strong>' . esc_html( $current_user->display_name ) . '</strong>'
				);
				?>
			</p>
			<div class="links">
				<a href="https://wordpress.org/support/theme/supermag/reviews/?filter=5#new-post" class="btn button-primary" target="_blank">
					<span class="dashicons dashicons-thumbs-up"></span>
					<span><?php esc_html_e( 'Sure', 'supermag' ); ?></span>
				</a>
				<a href="?nag_remove_theme_review_notice_partially=0" class="btn at-danger-btn">
					<span class="dashicons dashicons-calendar"></span>
					<span><?php esc_html_e( 'Maybe later', 'supermag' ); ?></span>
				</a>
				<a href="?nag_remove_theme_review_notice=0" class="btn at-success-btn">
					<span class="dashicons dashicons-smiley"></span>
					<span><?php esc_html_e( 'I already did', 'supermag' ); ?></span>
				</a>
				<a href="<?php echo esc_url( 'https://wordpress.org/support/theme/supermag/' ); ?>" class="btn at-default-btn" target="_blank">
					<span class="dashicons dashicons-edit"></span>
					<span><?php esc_html_e( 'Got theme support question?', 'supermag' ); ?></span>
				</a>
			</div>
			<a class="notice-dismiss" style="text-decoration:none;" href="?nag_remove_theme_review_notice_partially=0"></a>
		</div>
		<?php
	}
public function display_review_notice ( ) { global $ current_user ; $ user_id = $ current_user -> ID ; $ ignored_notice = get_user_meta ( $ user_id , 'remove_theme_review_notice' , true ) ; $ ignored_notice_partially = get_user_meta ( $ user_id , 'nag_remove_theme_review_notice_partially' , true ) ; if ( ( get_option ( 'supermag_theme_installed_time' ) > strtotime ( '-15 day' ) ) || ( $ ignored_notice_partially > strtotime ( '-15 day' ) ) || ( $ ignored_notice ) ) { return ; } ?> <div class="notice updated at-review-notice">

			<p>

				 <?php printf ( esc_html__ ( 'Howdy, %1$s! It seems that you have been using this theme for more than 15 days. We hope you are happy with everything that the theme has to offer. If you can spare a minute, please help us by leaving a 5-star review on WordPress.org.  By spreading the love, we can continue to develop new amazing features in the future, for free!' , 'supermag' ) , '<strong>' . esc_html ( $ current_user -> display_name ) . '</strong>' ) ; ?> </p>



			<div class="links">

				<a href="https://wordpress.org/support/theme/supermag/reviews/?filter=5#new-post" class="btn button-primary" target="_blank">

					<span class="dashicons dashicons-thumbs-up"></span>

					<span> <?php esc_html_e ( 'Sure' , 'supermag' ) ; ?> </span>

				</a>



				<a href="?nag_remove_theme_review_notice_partially=0" class="btn at-danger-btn">

					<span class="dashicons dashicons-calendar"></span>

					<span> <?php esc_html_e ( 'Maybe later' , 'supermag' ) ; ?> </span>

				</a>



				<a href="?nag_remove_theme_review_notice=0" class="btn at-success-btn">

					<span class="dashicons dashicons-smiley"></span>

					<span> <?php esc_html_e ( 'I already did' , 'supermag' ) ; ?> </span>

				</a>



				<a href=" <?php echo esc_url ( 'https://wordpress.org/support/theme/supermag/' ) ; ?> " class="btn at-default-btn" target="_blank">

					<span class="dashicons dashicons-edit"></span>

					<span> <?php esc_html_e ( 'Got theme support question?' , 'supermag' ) ; ?> </span>

				</a>

			</div>



			<a class="notice-dismiss" style="text-decoration:none;" href="?nag_remove_theme_review_notice_partially=0"></a>

		</div>



		 <?php }
Display review notice
 Aso call other necessary functions
Display review notice Aso call other necessary functions
/**

		 * Return from notice display if:

		 *

		 * 1. The theme installed is less than 15 days ago.

		 * 2. If the user has ignored the message partially for 15 days.

		 * 3. Dismiss always if clicked on 'I Already Did' button.

		 */ /* Translators: %1$s current user display name. */