Guest User

event class offset

a guest
Feb 10th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. if ( self::$current_month == $month && self::$current_year == $year) {
  2.                     // Past, Present, Future class
  3.                     if ( self::$today == $day ) {
  4.                         $ppf .= ' tribe-events-present';
  5.                     } else if ( self::$today > $day -4 ) {
  6.                         $ppf .= ' tribe-events-past';
  7.                     } else if ( self::$today < $day + 4 ) {
  8.                         $ppf .= ' tribe-events-future';
  9.                     }
Advertisement
Add Comment
Please, Sign In to add comment