Tribe_Events::get_html()
{@inheritDoc}
Source
File: src/Tribe/Views/V2/Shortcodes/Tribe_Events.php
public function get_html() {
$context = tribe_context();
$view_slug = $this->get_argument( 'view', $context->get( 'view' ) );
// Make sure to enqueue assets
tribe_asset_enqueue_group( Assets::$group_key );
// Toggle the shortcode required modifications
$this->toggle_view_hooks( true );
/**
* @todo modify the context based on arguments passed to the method.
*/
// Setup the view instance.
$view = View::make( $view_slug, $context );
// Setup wether this view should manage url or not.
$view->get_template()->set( 'should_manage_url', $this->should_manage_url() );
$html = $view->get_html();
// Toggle the shortcode required modifications
$this->toggle_view_hooks( false );
return $html;
}