| @@ 113-143 (lines=31) @@ | ||
| 110 | * @param EE_Config_Base|EE_Event_Single_Config $config |
|
| 111 | * @return EE_Template_Part_Manager |
|
| 112 | */ |
|
| 113 | public function initialize_template_parts(EE_Event_Single_Config $config = null) |
|
| 114 | { |
|
| 115 | /** @type EE_Event_Single_Config $config */ |
|
| 116 | $config = $config instanceof EE_Event_Single_Config ? $config : $this->config(); |
|
| 117 | EEH_Autoloader::instance()->register_template_part_autoloaders(); |
|
| 118 | $template_parts = new EE_Template_Part_Manager(); |
|
| 119 | $template_parts->add_template_part( |
|
| 120 | 'tickets', |
|
| 121 | __('Ticket Selector', 'event_espresso'), |
|
| 122 | 'content-espresso_events-tickets.php', |
|
| 123 | $config->display_order_tickets |
|
| 124 | ); |
|
| 125 | $template_parts->add_template_part( |
|
| 126 | 'datetimes', |
|
| 127 | __('Dates and Times', 'event_espresso'), |
|
| 128 | 'content-espresso_events-datetimes.php', |
|
| 129 | $config->display_order_datetimes |
|
| 130 | ); |
|
| 131 | $template_parts->add_template_part( |
|
| 132 | 'event', |
|
| 133 | __('Event Description', 'event_espresso'), |
|
| 134 | 'content-espresso_events-details.php', |
|
| 135 | $config->display_order_event |
|
| 136 | ); |
|
| 137 | $template_parts->add_template_part( |
|
| 138 | 'venue', |
|
| 139 | __('Venue Information', 'event_espresso'), |
|
| 140 | 'content-espresso_events-venues.php', |
|
| 141 | $config->display_order_venue |
|
| 142 | ); |
|
| 143 | do_action('AHEE__EED_Event_Single__initialize_template_parts', $template_parts); |
|
| 144 | return $template_parts; |
|
| 145 | } |
|
| 146 | ||
| @@ 185-215 (lines=31) @@ | ||
| 182 | * @param \EE_Events_Archive_Config $config |
|
| 183 | * @return \EE_Template_Part_Manager |
|
| 184 | */ |
|
| 185 | public function initialize_template_parts(EE_Events_Archive_Config $config = null) |
|
| 186 | { |
|
| 187 | $config = $config instanceof EE_Events_Archive_Config ? $config : $this->config(); |
|
| 188 | EEH_Autoloader::instance()->register_template_part_autoloaders(); |
|
| 189 | $template_parts = new EE_Template_Part_Manager(); |
|
| 190 | $template_parts->add_template_part( |
|
| 191 | 'tickets', |
|
| 192 | __('Ticket Selector', 'event_espresso'), |
|
| 193 | 'content-espresso_events-tickets.php', |
|
| 194 | $config->display_order_tickets |
|
| 195 | ); |
|
| 196 | $template_parts->add_template_part( |
|
| 197 | 'datetimes', |
|
| 198 | __('Dates and Times', 'event_espresso'), |
|
| 199 | 'content-espresso_events-datetimes.php', |
|
| 200 | $config->display_order_datetimes |
|
| 201 | ); |
|
| 202 | $template_parts->add_template_part( |
|
| 203 | 'event', |
|
| 204 | __('Event Description', 'event_espresso'), |
|
| 205 | 'content-espresso_events-details.php', |
|
| 206 | $config->display_order_event |
|
| 207 | ); |
|
| 208 | $template_parts->add_template_part( |
|
| 209 | 'venue', |
|
| 210 | __('Venue Information', 'event_espresso'), |
|
| 211 | 'content-espresso_events-venues.php', |
|
| 212 | $config->display_order_venue |
|
| 213 | ); |
|
| 214 | do_action('AHEE__EED_Event_Archive__initialize_template_parts', $template_parts); |
|
| 215 | return $template_parts; |
|
| 216 | } |
|
| 217 | ||
| 218 | ||