HEX
Server: Apache/2
System: Linux server-80-13-140-150.da.direct 5.14.0-362.24.1.el9_3.0.1.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 22:31:43 UTC 2024 x86_64
User: cpt (1004)
PHP: 8.1.24
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/cpt/public_html/wp-content/plugins/wpforms/templates/admin/components/chart.php
<?php
/**
 * Overview chart template.
 *
 * @since 1.8.2
 *
 * @var string $id          Identifier to outline the context of where the chart will be used. i.e., "entries".
 * @var array  $notice      Container variable for holding placeholder heading and description text that is displayed when the chart has no stats to show.
 * @var string $total_items Total number of items (entries) as a placeholder text to be shown.
 */

defined( 'ABSPATH' ) || exit; // Exit if accessed directly.

?>
<div class="wpforms-overview-chart">
	<div class="spinner"></div>
	<div class="wpforms-overview-chart-notice wpforms-hide">
		<div class="wpforms-overview-chart-notice-content">
			<h2><?php echo esc_html( $notice['heading'] ); ?></h2>
			<p><?php echo esc_html( $notice['description'] ); ?></p>
		</div>
	</div>

	<?php if ( ! empty( $total_items ) ) : ?>
		<h3 class="wpforms-overview-chart-heading">
			<?php echo esc_html( $total_items ); ?>:
			<span class="wpforms-overview-chart-total-items">0</span>
		</h3>
	<?php endif; ?>

	<div class="wpforms-overview-chart-canvas">
		<canvas id="wpforms-<?php echo esc_attr( $id ); ?>-overview-canvas" width="400" height="300"></canvas>
	</div>
</div>

<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */