| @@ 108-138 (lines=31) @@ | ||
| 105 | * @param \EE_Event_Single_Config $config |
|
| 106 | * @return \EE_Template_Part_Manager |
|
| 107 | */ |
|
| 108 | public function initialize_template_parts( EE_Event_Single_Config $config = null ) { |
|
| 109 | $config = $config instanceof EE_Event_Single_Config ? $config : $this->config(); |
|
| 110 | EEH_Autoloader::instance()->register_template_part_autoloaders(); |
|
| 111 | $template_parts = new EE_Template_Part_Manager(); |
|
| 112 | $template_parts->add_template_part( |
|
| 113 | 'tickets', |
|
| 114 | __( 'Ticket Selector', 'event_espresso' ), |
|
| 115 | 'content-espresso_events-tickets.php', |
|
| 116 | $config->display_order_tickets |
|
| 117 | ); |
|
| 118 | $template_parts->add_template_part( |
|
| 119 | 'datetimes', |
|
| 120 | __( 'Dates and Times', 'event_espresso' ), |
|
| 121 | 'content-espresso_events-datetimes.php', |
|
| 122 | $config->display_order_datetimes |
|
| 123 | ); |
|
| 124 | $template_parts->add_template_part( |
|
| 125 | 'event', |
|
| 126 | __( 'Event Description', 'event_espresso' ), |
|
| 127 | 'content-espresso_events-details.php', |
|
| 128 | $config->display_order_event |
|
| 129 | ); |
|
| 130 | $template_parts->add_template_part( |
|
| 131 | 'venue', |
|
| 132 | __( 'Venue Information', 'event_espresso' ), |
|
| 133 | 'content-espresso_events-venues.php', |
|
| 134 | $config->display_order_venue |
|
| 135 | ); |
|
| 136 | do_action( 'AHEE__EED_Event_Single__initialize_template_parts', $template_parts ); |
|
| 137 | return $template_parts; |
|
| 138 | } |
|
| 139 | ||
| 140 | ||
| 141 | ||
| @@ 109-139 (lines=31) @@ | ||
| 106 | * @param \EE_Events_Archive_Config $config |
|
| 107 | * @return \EE_Template_Part_Manager |
|
| 108 | */ |
|
| 109 | public function initialize_template_parts( EE_Events_Archive_Config $config = null ) { |
|
| 110 | $config = $config instanceof EE_Events_Archive_Config ? $config : $this->config(); |
|
| 111 | EEH_Autoloader::instance()->register_template_part_autoloaders(); |
|
| 112 | $template_parts = new EE_Template_Part_Manager(); |
|
| 113 | $template_parts->add_template_part( |
|
| 114 | 'tickets', |
|
| 115 | __( 'Ticket Selector', 'event_espresso' ), |
|
| 116 | 'content-espresso_events-tickets.php', |
|
| 117 | $config->display_order_tickets |
|
| 118 | ); |
|
| 119 | $template_parts->add_template_part( |
|
| 120 | 'datetimes', |
|
| 121 | __( 'Dates and Times', 'event_espresso' ), |
|
| 122 | 'content-espresso_events-datetimes.php', |
|
| 123 | $config->display_order_datetimes |
|
| 124 | ); |
|
| 125 | $template_parts->add_template_part( |
|
| 126 | 'event', |
|
| 127 | __( 'Event Description', 'event_espresso' ), |
|
| 128 | 'content-espresso_events-details.php', |
|
| 129 | $config->display_order_event |
|
| 130 | ); |
|
| 131 | $template_parts->add_template_part( |
|
| 132 | 'venue', |
|
| 133 | __( 'Venue Information', 'event_espresso' ), |
|
| 134 | 'content-espresso_events-venues.php', |
|
| 135 | $config->display_order_venue |
|
| 136 | ); |
|
| 137 | do_action( 'AHEE__EED_Event_Archive__initialize_template_parts', $template_parts ); |
|
| 138 | return $template_parts; |
|
| 139 | } |
|
| 140 | ||
| 141 | ||
| 142 | ||