Tribe__Admin__Notice__Marketing::black_friday_display_notice()
HTML for the Black Friday notice.
Return
(string)
Source
File: src/Tribe/Admin/Notice/Marketing.php
public function black_friday_display_notice() { Tribe__Assets::instance()->enqueue( [ 'tribe-common-admin' ] ); $current_screen = get_current_screen(); $icon_url = Tribe__Main::instance()->plugin_url . 'src/resources/images/icons/sale-burst.svg'; $cta_url = 'https://evnt.is/bf' . date( 'Y' ); // If we are on the settings page or a welcome page, change the Black Friday URL. if ( ! empty( $current_screen->id ) && ( 'tribe_events_page_tribe-common' === $current_screen->id || 'events_page_tribe-common' === $current_screen->id || 'toplevel_page_tribe-common' === $current_screen->id ) ) { if ( isset( $_GET['welcome-message-the-events-calendar'] ) || isset( $_GET['welcome-message-event-tickets' ] ) ) { $cta_url .= 'welcome'; } else { $cta_url .= 'settings'; } } ob_start(); include Tribe__Main::instance()->plugin_path . 'src/admin-views/notices/tribe-bf-general.php'; return ob_get_clean(); }
Changelog
Version | Description |
---|---|
4.12.14 | Introduced. |