| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying instructor statistic in user profile overview. |
| 4 |
* |
| 5 |
* @author ThimPress |
| 6 |
* @package LearnPress/Templates |
| 7 |
* @version 1.0.0 |
| 8 |
*/ |
| 9 |
|
| 10 |
use LearnPress\Helpers\Template; |
| 11 |
|
| 12 |
defined( 'ABSPATH' ) || exit; |
| 13 |
|
| 14 |
if ( empty( $data ) ) { |
| 15 |
return; |
| 16 |
} |
| 17 |
|
| 18 |
$html_wrapper = apply_filters( |
| 19 |
'learn-press/profile/layout/instructor-statistics/wrapper', |
| 20 |
[ |
| 21 |
'<div id="dashboard-statistic">' => '</div>', |
| 22 |
'<div class="dashboard-statistic__row">' => '</div>', |
| 23 |
] |
| 24 |
); |
| 25 |
|
| 26 |
ob_start(); |
| 27 |
do_action( 'learn-press/profile/layout/instructor-statistics', $data ); |
| 28 |
$inner_html = ob_get_clean(); |
| 29 |
echo Template::instance()->nest_elements( $html_wrapper, $inner_html ); |
| 30 |
|