classes/uix/ui/control/template.php 1 location
|
@@ 52-61 (lines=10) @@
|
| 49 |
|
* @access public |
| 50 |
|
* @return string |
| 51 |
|
*/ |
| 52 |
|
public function input() { |
| 53 |
|
$output = null; |
| 54 |
|
if ( ! empty( $this->struct['template'] ) && file_exists( $this->struct['template'] ) ) { |
| 55 |
|
ob_start(); |
| 56 |
|
include $this->struct['template']; |
| 57 |
|
$output .= ob_get_clean(); |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
return $output; |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
} |
| 64 |
|
|
classes/uix/ui/panel.php 1 location
|
@@ 337-348 (lines=12) @@
|
| 334 |
|
* @access public |
| 335 |
|
* @return string|null HTML of rendered template |
| 336 |
|
*/ |
| 337 |
|
public function render_template() { |
| 338 |
|
// template |
| 339 |
|
$_output = null; |
| 340 |
|
|
| 341 |
|
if ( ! empty( $this->struct['template'] ) ) { |
| 342 |
|
ob_start(); |
| 343 |
|
include $this->struct['template']; |
| 344 |
|
$_output .= ob_get_clean(); |
| 345 |
|
} |
| 346 |
|
|
| 347 |
|
return $_output; |
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
/** |
| 351 |
|
* Enqueues specific tabs assets for the active pages |