Promo::action_add_promo_banner( string $file, array $name, TribeEventsViewsV2TemplateTemplate $template )
Include the promo banner after the after component.
Contents
Parameters
- $file
-
(string) (Required) Complete path to include the PHP File.
- $name
-
(array) (Required) Template name.
- $template
-
(TribeEventsViewsV2TemplateTemplate) (Required) Current instance of the Template.
Return
(void) Template render has no return.
Source
File: src/Tribe/Views/V2/Template/Promo.php
public function action_add_promo_banner( $file, $name, $template ) { if ( ! tribe_get_option( 'donate-link', false ) ) { return; } tribe_events_promo_banner(); }
Changelog
Version | Description |
---|---|
5.1.5 | Introduced. |