Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/views/settings/fields/text.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Text 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 $parent Parent field identifier.
12
+
* @type string $label Field label.
13
+
* @type string $container_class Field container class.
14
+
* @type string $value Field value.
15
+
* @type string $description Field description.
16
+
* @type string $input_attr Attributes for the input field.
17
+
* }
18
+
*/
19
+
20
+
defined( 'ABSPATH' ) || exit;
21
+
22
+
?>
23
+
24
+
<div class="wpr-field wpr-field--text <?php echo esc_attr( $data['container_class'] ); ?>">
25
+
<div class="wpr-text">
26
+
<?php if ( ! empty( $data['description'] ) ) : ?>
27
+
<div class="wpr-flex">
28
+
<label for="<?php echo esc_attr( $data['id'] ); ?>"><?php echo esc_html( $data['label'] ); ?></label>
29
+
<div class="wpr-field-description">
30
+
<?php echo $data['description']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
31
+
</div>
32
+
</div>
33
+
<?php else : ?>
34
+
<label for="<?php echo esc_attr( $data['id'] ); ?>"><?php echo esc_html( $data['label'] ); ?></label>
35
+
<?php endif; ?>
36
+
<input type="text" id="<?php echo esc_attr( $data['id'] ); ?>" class="" name="wp_rocket_settings[<?php echo esc_attr( $data['id'] ); ?>]" value="<?php echo esc_attr( $data['value'] ); ?>"<?php echo $data['input_attr']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>>
37
+
<?php if ( ! empty( $data['helper'] ) ) : ?>
38
+
<div class="wpr-field-description wpr-field-description-helper">
39
+
<?php echo $data['helper']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Dynamic content is properly escaped in the view. ?>
40
+
</div>
41
+
<?php endif; ?>
42
+
</div>
43
+
</div>
44
+