// ========================================================================= // SHORTCODE: Frontpage On This Day Widget (100% width, single column, white headings) // Usage: [frontpage_on_this_day] // ========================================================================= add_shortcode('frontpage_on_this_day', 'otg_render_frontpage_on_this_day'); function otg_render_frontpage_on_this_day() { global $wpdb; $events_table = 'otg_rangers_events'; $transactions_table = 'otg_transactions'; $players_table = 'otg_players'; $current_md = date('m-d'); // e.g., '08-06' $current_year = date('Y'); // 1. Query general/historical events (excluding current year, capped at 5)[cite: 5] $events_sql = $wpdb->prepare( "SELECT * FROM {$events_table} WHERE DATE_FORMAT(event_date, '%%m-%%d') = %s AND YEAR(event_date) != %d ORDER BY event_date ASC LIMIT 5", $current_md, $current_year ); $events = $wpdb->get_results($events_sql); // 2. Query game events played on this month/day across all years[cite: 5] $games_sql = $wpdb->prepare( "SELECT * FROM {$events_table} WHERE DATE_FORMAT(event_date, '%%m-%%d') = %s AND (LOWER(category) = 'game' OR LOWER(category) = 'playoffs' OR related_game_id IS NOT NULL) ORDER BY event_date DESC", $current_md ); $game_events = $wpdb->get_results($games_sql); // 3. Query specifically for Birthdays matching today's month/day from both otg_rangers_events and otg_players $birthday_events = []; // 3a. Get birthdays from events table $event_birthdays_sql = $wpdb->prepare( "SELECT title, event_date as bday_date FROM {$events_table} WHERE DATE_FORMAT(event_date, '%%m-%%d') = %s AND LOWER(category) = 'birthday' ORDER BY event_date ASC", $current_md ); $event_bdays = $wpdb->get_results($event_birthdays_sql); if (!empty($event_bdays)) { foreach ($event_bdays as $eb) { $birthday_events[] = [ 'name' => $eb->title, 'date' => $eb->bday_date ]; } } // 3b. Get player birthdays from otg_players table where played = 'y' $player_birthdays_sql = $wpdb->prepare( "SELECT Name, Birthday as bday_date FROM {$players_table} WHERE played = 'y' AND DATE_FORMAT(Birthday, '%%m-%%d') = %s ORDER BY Birthday ASC", $current_md ); $player_bdays = $wpdb->get_results($player_birthdays_sql); if (!empty($player_bdays)) { foreach ($player_bdays as $pb) { $birthday_events[] = [ 'name' => $pb->Name, 'date' => $pb->bday_date ]; } } // Sort combined birthdays by birth year ascending usort($birthday_events, function($a, $b) { return strcmp($a['date'], $b['date']); }); // 4. Query up to the top 5 most recent transactions excluding the current date[cite: 5] $transactions_sql = $wpdb->prepare( "SELECT * FROM {$transactions_table} WHERE DATE_FORMAT(Date, '%%m-%%d') = %s AND YEAR(Date) != %d ORDER BY Date DESC LIMIT 5", $current_md, $current_year ); $transactions = $wpdb->get_results($transactions_sql); // Build container matching Active Injuries styling/padding (20px) and width set to 100%[cite: 5] $html = '
'; // Widget Header matching "ACTIVE INDUSTRIES" layout/size: "ON THIS DAY: AUGUST 6"[cite: 5] $html .= '
ON THIS DAY: ' . strtoupper(date('F j')) . '
'; // --- SECTION A: Overall Game Record & Last 5 Games on this Date --- if (!empty($game_events)) { $html .= '
'; $html .= '
Games
'; $html .= '
Record & Last Games on ' . date('F j') . ':
'; $last_five_games = array_slice($game_events, 0, 5); $html .= '
'; foreach ($last_five_games as $g) { $g_year = date('Y', strtotime($g->event_date)); $g_title = esc_html($g->title); $html .= '
'; $html .= '' . $g_year . ': ' . $g_title; $html .= '
'; } $html .= '
'; $html .= '
'; } else { $html .= '
No games played on this day.
'; } // --- SECTION B: Birthdays --- $html .= '
'; $html .= '
Birthdays
'; if (!empty($birthday_events)) { $html .= '
'; foreach ($birthday_events as $bday) { $b_year = !empty($bday['date']) ? date('Y', strtotime($bday['date'])) : ''; $b_title = esc_html($bday['name']); $html .= '
'; $html .= '' . $b_title . '' . ($b_year ? ' (' . $b_year . ')' : ''); $html .= '
'; } $html .= '
'; } else { $html .= '
No birthdays today.
'; } $html .= '
'; // --- SECTION C: Transactions --- if (!empty($transactions)) { $html .= '
'; $html .= '
Transactions
'; $html .= '
'; foreach ($transactions as $tx) { $t_year = date('Y', strtotime($tx->Date)); $t_name = esc_html($tx->Name ?? 'Player'); $t_type = esc_html($tx->Transaction ?? 'Transaction'); $html .= '
'; $html .= '' . $t_year . ' - ' . $t_name . ': ' . $t_type; $html .= '
'; } $html .= '
'; $html .= '
'; } // --- SECTION D: Passings & Historical Events (Capped at 5) --- if (!empty($events)) { $html .= '
'; foreach ($events as $event) { $year = date('Y', strtotime($event->event_date)); $title = esc_html($event->title); $excerpt = esc_html($event->excerpt); // Handle YouTube Embed Responsively $youtube_html = ''; if (!empty($event->you_tube_link)) { $yt_url = trim($event->you_tube_link); $embed_url = ''; if (strpos($yt_url, 'embed/') !== false) { $embed_url = $yt_url; } elseif (strpos($yt_url, 'youtu.be/') !== false) { $parts = explode('youtu.be/', $yt_url); $embed_url = 'https://www.youtube.com/embed/' . strtok($parts[1], '?'); } elseif (strpos($yt_url, 'watch?v=') !== false) { parse_str(parse_url($yt_url, PHP_URL_QUERY), $queryParams); if (!empty($queryParams['v'])) { $embed_url = 'https://www.youtube.com/embed/' . $queryParams['v']; } } if (!empty($embed_url)) { $youtube_html = '
'; } } // Single column card box (with white/neutral accents)[cite: 5] $html .= '
'; $html .= '
' . $year . '
'; $html .= '
' . $title . '
'; if (!empty($excerpt)) { $html .= '
' . $excerpt . '
'; } $html .= $youtube_html; $html .= '
'; } $html .= '
'; } // Link at the bottom to go to the /on-this-day/ page[cite: 5] $on_this_day_url = esc_url(home_url('/on-this-day/')); $html .= '
'; $html .= 'View All Historical Events »'; $html .= '
'; $html .= '
'; return $html; } Poti And MacIntyre Re-Signed - OutsideTheGarden
JULY
«
Mon
20
NHL Arbitration
Tue
21
NHL Arbitration
Wed
22
NHL Arbitration
Thu
23
NHL Arbitration
Fri
24
NHL Arbitration
Sat
25
NHL Arbitration
Sun
26
NHL Arbitration
»
Last updated 10 minutes ago
Last updated 10 minutes ago

Poti And MacIntyre Re-Signed

Poti Accepts Qualifying Offer
The Rangers today announced that defenseman Tom Poti has been re-signed for the coming season.  Early reports indicated that Poti has accepted his one year qualifying offer of 2.36 million dollars and will be eligible for free agency next July as a 29 year old.  Tom Poti was acquired March 19th, 2002 along with Rem Murray in exchange for Mike York and a 4th round pick.  Since joining the Rangers, Poti has fallen out of favor with the fans mostly as a result of his style of play, but compounded by two arbitration filings as well as being part of the deal that sent fan favorite Mike York to Edmonton.

Originally drafted 59th overall in the 1996 NHL Entry Draft by the Edmonton Oilers, Poti has represented the United States at the 2002 Olympics and was an NHL All-star selection in the 2002-03 season after Brian Leetch was unable to participate due to injury.  With limited offensive options on the blueline, Poti is expected to be the leader for the Rangers on defense, particularly on the power play.

REGULAR SEASON
SeasonGPGAPts+/-PIMPPGSHGGWGGTGOTGSOGSH% 
2001-200211178-4210100911.11 
2002-200380113748-760302001487.43 
2003-200467101424-147405021248.06 
Total158225880-12109808022810.00 

Minor League Defenseman Re-Signed
Also re-signed today was minor league defenseman/forward Steve MacIntyre, terms of the contract were not released.  MacIntyre has spent the past two seasons within the Rangers organization, playing the majority of his games with the Charlotte Checkers of the ECHL.  A fan favorite in Charlotte, “Big Mac” has established himself as an enforcer with limited offensive potential.  An undrafted free-agent, MacIntyre has been working to improve his speed and skating in an effort to move up to the AHL.

REGULAR SEASON
SeasonTeamLeagueGPGAPts+/-PIMPPGSHGSOG 
1997-1998SaskatoonWHL10000 
1998-1999SaskatoonWHL55202190 
1999-2000Prince Albert RaidersWHL47112100 
1999-2000Red Deer RebelsWHL2000065 
2001-2002MuskegonUHL1111258 
2002-2003MuskegonUHL54213279 
2002-2003St JeanQSPHL1011268 
2003-2004Charlotte CheckersECHL611453621710 
2003-2004Hartford Wolf PackAHL30001000 
2004-2005Charlotte CheckersECHL461453421400 
2004-2005Hartford Wolf PackAHL27112720700 
Total  335101323781398100 
0 0 votes
Article Rating
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
September 21, 2026
Preseason Matchup Preview
NYR
NYR
VS
7:00 PM
Prudential Center
NJD
NJD

LATEST FORUM POSTS

View All →
By 14 hours ago
Works great -- thanks much.
By 17 hours ago
I've added a floating button down in the bottom right
By 18 hours ago
Let me see what I can do  
By 18 hours ago
Any way you can put in a "top of page" arrow on the bottom somewhere?
By 18 hours ago
I see -- just a few minor adjustments.  Looks good....glad you got rid of the side bar.  Never did figure out that autoplay thing nor which one it was.
Metropolitan
TeamGPWLOTPts
zCAR8253227113
xPHI8243271298
xPIT8241251698
eWSH824330995
eCBJ8240301292
eNYI824334591
eNJD824237387
eNYR823439977
Active Injuries
Player Status Injury
Matt Rempe LTIR Hand
[frontpage_on_this_day]
[box]
TOP
0
Would love your thoughts, please comment.x
()
x