, Ruben Garcia * @since 1.5.9 */ // Exit if accessed directly if( !defined( 'ABSPATH' ) ) exit; /** * GamiPress admin notices * * @since 1.5.9 */ function gamipress_admin_notices() { // Bail if current user is not a site administrator if( ! current_user_can( 'update_plugins' ) ){ return; } // Check if user checked already hide the review notice if( gamipress_is_network_wide_active() ) { $hide_review_notice = ( $exists = get_site_option( 'gamipress_hide_review_notice' ) ) ? $exists : ''; } else { $hide_review_notice = ( $exists = get_option( 'gamipress_hide_review_notice' ) ) ? $exists : ''; } if( $hide_review_notice !== 'yes' ) { // Get the GamiPress installation date if( gamipress_is_network_wide_active() ) { $gamipress_install_date = ( $exists = get_site_option( 'gamipress_install_date' ) ) ? $exists : date( 'Y-m-d H:i:s' ); } else { $gamipress_install_date = ( $exists = get_option( 'gamipress_install_date' ) ) ? $exists : date( 'Y-m-d H:i:s' ); } $now = date( 'Y-m-d h:i:s' ); $datetime1 = new DateTime( $gamipress_install_date ); $datetime2 = new DateTime( $now ); // Difference in days between installation date and now $diff_interval = round( ( $datetime2->format( 'U' ) - $datetime1->format( 'U' ) ) / ( 60 * 60 * 24 ) ); if( $diff_interval >= 7 ) { ?>

GamiPress for a while.', 'gamipress' ); ?>
5-star rating on WordPress?', 'gamipress' ); ?>



~Ruben Garcia