Tribe__Tabbed_View__Tab::render()
Creates a way to include the this tab HTML easily
Return
(string) HTML content of the tab
Source
File: src/Tribe/Tabbed_View/Tab.php
public function render() {
if ( empty( $this->template ) ) {
$this->template = Tribe__Main::instance()->plugin_path . '/src/admin-views/tabbed-view/tab.php';
}
$template = $this->template;
if ( empty( $template ) ) {
return '';
}
$default_data = array(
'tab' => $this,
);
$data = array_merge( $default_data, (array) $this->data );
extract( $data );
ob_start();
include $template;
$html = ob_get_clean();
return $html;
}