Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wpforms-.../template.../admin/payments
File: reports.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Payments overview reports (summary metrics).
[2] Fix | Delete
* i.e. Total Payments, Total Sales, etc.
[3] Fix | Delete
*
[4] Fix | Delete
* @since 1.8.2
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $current The active stat card upon page load.
[7] Fix | Delete
* @var array $statcards Payments report stat cards (clickable list-items).
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
[11] Fix | Delete
[12] Fix | Delete
// Bail early, if stat cards are empty or not assigned.
[13] Fix | Delete
if ( empty( $statcards ) ) {
[14] Fix | Delete
return;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
?>
[18] Fix | Delete
<div role="menu" class="wpforms-payments-overview-reports" aria-orientation="horizontal" aria-label="<?php esc_attr_e( 'Payments report indicators', 'wpforms-lite' ); ?>" aria-describedby="wpforms-payments-overview-reports-helptext">
[19] Fix | Delete
<p id="wpforms-payments-overview-reports-helptext" class="screen-reader-text">
[20] Fix | Delete
<?php esc_html_e( 'List of data points available for filtering. Click a data point for a detailed report.', 'wpforms-lite' ); ?>
[21] Fix | Delete
</p>
[22] Fix | Delete
<ul class="wpforms-payments-overview-reports-legend">
[23] Fix | Delete
[24] Fix | Delete
<?php
[25] Fix | Delete
foreach ( $statcards as $chart => $attributes ) :
[26] Fix | Delete
[27] Fix | Delete
// Skip stat card, if it's not supposed to be displayed.
[28] Fix | Delete
if ( isset( $attributes['condition'] ) && ! $attributes['condition'] ) {
[29] Fix | Delete
continue;
[30] Fix | Delete
}
[31] Fix | Delete
[32] Fix | Delete
$button_classes = ! empty( $attributes['button_classes'] ) ? (array) $attributes['button_classes'] : [];
[33] Fix | Delete
[34] Fix | Delete
// To highlight the stats being displayed in the chart at the moment, identify the selected stat card.
[35] Fix | Delete
if ( $chart === $current ) {
[36] Fix | Delete
$button_classes[] = 'is-selected';
[37] Fix | Delete
}
[38] Fix | Delete
?>
[39] Fix | Delete
<li class="wpforms-payments-overview-reports-statcard">
[40] Fix | Delete
<button class="<?php echo wpforms_sanitize_classes( $button_classes, true ); ?>" data-stats="<?php echo esc_attr( $chart ); ?>">
[41] Fix | Delete
<span class="statcard-label"><?php echo esc_html( $attributes['label'] ); ?></span>
[42] Fix | Delete
<span class="statcard-value"><?php echo ! empty( $attributes['value'] ) ? esc_html( $attributes['value'] ) : '0'; ?></span>
[43] Fix | Delete
<span class="statcard-delta" role="presentation" title="<?php esc_attr_e( 'Comparison to previous period', 'wpforms-lite' ); ?>"><?php echo ! empty( $attributes['delta'] ) ? (int) $attributes['delta'] : ''; ?></span>
[44] Fix | Delete
</button>
[45] Fix | Delete
</li>
[46] Fix | Delete
<?php endforeach; ?>
[47] Fix | Delete
[48] Fix | Delete
</ul>
[49] Fix | Delete
</div>
[50] Fix | Delete
[51] Fix | Delete
<?php
[52] Fix | Delete
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function