add wp-rocket

This commit is contained in:
nguyen dung
2022-02-18 19:09:35 +07:00
parent 39b8cb3612
commit 3110d00ee7
927 changed files with 271703 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<?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.
* }
*/
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. ?></button>

View File

@@ -0,0 +1,19 @@
<?php
/**
* Action button link template.
*
* @since 3.0
*
* @data array {
* Data to populate the template.
*
* @type string $label Link text.
* @type string $url URL for the href attribute.
* @type string $attributes String of attribute=value for the <a> tag, e.g. class, target, etc.
* }
*/
defined( 'ABSPATH' ) || exit;
?>
<a href="<?php echo esc_url( $data['url'] ); ?>" <?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. ?></a>