| Server IP : 91.134.83.25 / Your IP : 216.73.216.79 Web Server : Apache System : Linux plesk.serveurapc.fr 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64 User : marrasse ( 10057) PHP Version : 8.2.32 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/as-cp.fr/wpascp/wp-content/plugins/wp-rocket/views/settings/buttons/ |
Upload File : |
<?php
/**
* Action button link template.
*
* @since 3.0
*
* @data array {
* Data to populate the template.
*
* @type string $label Link text.
* @type string $action Action linked to the button.
* @type string $attributes String of attribute=value for the <button> tag, e.g. class, etc.
* @type string $tooltip Tooltip text.
* }
*/
defined( 'ABSPATH' ) || exit;
?>
<button id="wpr-action-<?php echo esc_attr( $data['action'] ); ?>" <?php echo $data['attributes']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $data['attributes'] escaped with sanitize_key & esc_attr ?>><?php echo $data['label']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
<?php if ( ! empty( $data['tooltip'] ) ) : ?>
<div class="wpr-tooltip">
<div class="wpr-tooltip-content">
<?php echo esc_html( $data['tooltip'] ); ?>
</div>
</div>
<?php endif; ?>
</button>