Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/views/settings/fields/rocket-addon.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Rocket add-on block template.
4
+
*
5
+
* @since 3.0
6
+
*
7
+
* @param array $data {
8
+
* Checkbox Field arguments.
9
+
*
10
+
* @type string $id Field identifier.
11
+
* @type string $label Add-on label.
12
+
* @type string $title Add-on title.
13
+
* @type string $description Add-on description.
14
+
* @type string $logo Add-on logo.
15
+
* @type string $value Field value.
16
+
* }
17
+
*/
18
+
19
+
defined( 'ABSPATH' ) || exit;
20
+
21
+
$rocket_settings_page = ! empty( $data['settings_page'] ) ? $data['settings_page'] : '';
22
+
?>
23
+
24
+
<fieldset class="wpr-fieldsContainer-fieldset">
25
+
<div class="wpr-field">
26
+
<div class="wpr-flex">
27
+
<h4 class="wpr-title3"><?php echo esc_html( $data['label'] ); ?></h4>
28
+
<?php
29
+
$rocket_default = true;
30
+
// This filter is documented in one-click-addon.php.
31
+
$rocket_display = apply_filters( 'rocket_display_input_' . $data['id'], $rocket_default );
32
+
33
+
if ( ! is_bool( $rocket_display ) ) {
34
+
$rocket_display = $rocket_default;
35
+
}
36
+
37
+
if ( $rocket_display ) :
38
+
?>
39
+
<div class="wpr-radio wpr-radio--reverse">
40
+
<input type="checkbox" id="<?php echo esc_attr( $data['id'] ); ?>" class="" name="wp_rocket_settings[<?php echo esc_attr( $data['id'] ); ?>]" value="1" <?php checked( $data['value'], 1 ); ?> <?php echo $data['input_attr'];//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>>
41
+
<label for="<?php echo esc_attr( $data['id'] ); ?>" class="">
42
+
<span data-l10n-active="On" data-l10n-inactive="Off" class="wpr-radio-ui"></span>
43
+
<?php esc_html_e( 'Add-on status', 'rocket' ); ?>
44
+
</label>
45
+
</div>
46
+
<?php endif; ?>
47
+
</div>
48
+
</div>
49
+
50
+
<div class="wpr-field wpr-addon">
51
+
<div class="wpr-flex">
52
+
<div class="wpr-addon-logo">
53
+
<img src="<?php echo esc_url( $data['logo']['url'] ); ?>" width="<?php echo esc_attr( $data['logo']['width'] ); ?>" height="<?php echo esc_attr( $data['logo']['height'] ); ?>" alt="">
54
+
</div>
55
+
<div class="wpr-addon-text">
56
+
<?php if ( ! empty( $data['title'] ) ) : ?>
57
+
<div class="wpr-addon-title">
58
+
<?php echo esc_attr( $data['title'] ); ?>
59
+
</div>
60
+
<?php endif; ?>
61
+
<?php if ( ! empty( $data['description'] ) ) : ?>
62
+
<div class="wpr-field-description">
63
+
<?php echo $data['description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
64
+
</div>
65
+
<?php endif; ?>
66
+
<?php if ( ! empty( $data['helper'] ) ) : ?>
67
+
<div class="wpr-field-helper">
68
+
<?php echo $data['helper']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
69
+
</div>
70
+
<?php endif; ?>
71
+
<?php if ( $rocket_settings_page ) : ?>
72
+
<a href="#<?php echo esc_attr( $rocket_settings_page ); ?>" class="wpr-button wpr-button--small wpr-button--icon wpr-button--purple wpr-icon-chevron-right wpr-toggle-button wpr-<?php echo esc_attr( $rocket_settings_page ); ?>ToggleButton"><?php esc_html_e( 'Modify options', 'rocket' ); ?></a>
73
+
<?php endif; ?>
74
+
</div>
75
+
</div>
76
+
</div>
77
+
</fieldset>
78
+