Templates::__construct()
Templates constructor.
Builds and sets up the Template to work with the plugin templates.
Source
File: src/Events_Pro/Custom_Tables/V1/Templates/Templates.php
public function __construct() {
$this->set_template_origin( \Tribe__Events__Pro__Main::instance() );
$this->set_template_folder( '/src/views/custom-tables-v1' );
$this->set_template_folder_lookup( true );
$this->set_template_context_extract( true );
// Set some defaults we might use over and over.
$series_relationship_label = _x( 'Event Series:', 'The text shown before indicating the Series the Event is in relation with.', 'tribe-events-calendar-pro' );
$this->set( 'series_relationship_label', $series_relationship_label );
// @todo remove this when our Customizer will expose presentational classes.
$this->set( 'fg_accent_color_class', 'tribe-events-ical' );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |