PluginProbe
WP Ultimate Post Grid / 2.4.0
WP Ultimate Post Grid v2.4.0
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
← All changes | helpers/giveaway.php +4 -4 2.6.0 → 2.4.0 View file →
@@ -4,10 +4,10 @@
4 4
5 5 public function __construct()
6 6 {
7 7 $now = new DateTime();
8 - $giveaway_start = new DateTime( '2017-11-16 10:00:00', new DateTimeZone( 'Europe/Brussels' ) );
9 - $giveaway_end = new DateTime( '2017-11-24 10:00:00', new DateTimeZone( 'Europe/Brussels' ) );
8 + $giveaway_start = new DateTime( '2017-01-13 17:00:00', new DateTimeZone( 'Europe/Brussels' ) );
9 + $giveaway_end = new DateTime( '2017-01-27 23:00:00', new DateTimeZone( 'Europe/Brussels' ) );
10 10
11 11 if ( $giveaway_start < $now && $now < $giveaway_end ) {
12 12 add_action( 'admin_menu', array( $this, 'add_submenu_page' ), 99 );
13 13 add_action( 'admin_notices', array( $this, 'giveaway_notice' ) );
@@ -21,9 +21,9 @@
21 21
22 22 public function page_template() {
23 23 echo '<div class="wrap">';
24 24 echo '<h1>Plugin Giveaway</h1>';
25 - echo '<a class="e-widget no-button" href="https://gleam.io/dY9yY/black-friday-2017" rel="nofollow">Black Friday Giveaway 2017</a>';
25 + echo '<a class="e-widget no-button" href="https://gleam.io/sTRSD/birthday-giveaway-2017" rel="nofollow">Birthday Giveaway 2017</a>';
26 26 echo '<script type="text/javascript" src="https://js.gleam.io/e.js" async="true"></script>';
27 27 echo '</div>';
28 28 }
29 29
@@ -32,9 +32,9 @@
32 32 $screen = get_current_screen();
33 33
34 34 if ( 'edit-wpupg_grid' === $screen->id ) {
35 35 echo '<div class="updated" style="padding: 10px;">';
36 - echo '<strong>Feeling lucky?</strong> Win plugins in our <a href="' . esc_url( admin_url( 'edit.php?post_type=' . WPUPG_POST_TYPE . '&page=wpupg_giveaway' ) ) . '" target="_blank">Black Friday Giveaway</a>!';
36 + echo '<strong>Feeling lucky?</strong> Win plugins in our <a href="' . esc_url( admin_url( 'edit.php?post_type=' . WPUPG_POST_TYPE . '&page=wpupg_giveaway' ) ) . '" target="_blank">Birthday Giveaway</a>!';
37 37 echo '</div>';
38 38 }
39 39 }
40 40 }