You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
?>
|
|
<div class="<?php echo esc_attr( "awsm-jobs-overview-widget-wrapper awsm-jobs-overview-{$widget_id}-widget-wrapper" ); ?>">
|
|
<?php
|
|
/**
|
|
* Fires before the overview widget content.
|
|
*
|
|
* @since 3.0.0
|
|
*
|
|
* @param string $widget_id Overview widget ID.
|
|
*/
|
|
do_action( 'before_awsm_jobs_overview_widget_content', $widget_id );
|
|
|
|
$analytics_data = AWSM_Job_Openings_Overview::get_applications_analytics_data();
|
|
if ( ! empty( $analytics_data ) ) :
|
|
?>
|
|
<div class="awsm-jobs-overview-chart-wrapper">
|
|
<canvas id="awsm-jobs-overview-applications-analytics-chart"></canvas>
|
|
</div>
|
|
<?php else : ?>
|
|
<div class="awsm-jobs-overview-empty-wrapper">
|
|
<img src="<?php echo esc_url( AWSM_JOBS_PLUGIN_URL . '/assets/img/applications-analytics-chart.png' ); ?>">
|
|
<p>📂 <?php esc_html_e( 'Awaiting applications', 'wp-job-openings' ); ?></p>
|
|
</div>
|
|
<?php
|
|
endif;
|
|
|
|
/**
|
|
* Fires after the overview widget content.
|
|
*
|
|
* @since 3.0.0
|
|
*
|
|
* @param string $widget_id Overview widget ID.
|
|
*/
|
|
do_action( 'after_awsm_jobs_overview_widget_content', $widget_id );
|
|
?>
|
|
</div>
|