Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/views/cpcss/metabox/container.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Critical path CSS section in WP Rocket metabox.
4
+
*
5
+
* @since 3.6
6
+
*
7
+
* @data array {
8
+
* Data to populate the template.
9
+
*
10
+
* @type string $disabled_description Description to explain why the buttons are disabled.
11
+
* }
12
+
*/
13
+
14
+
defined( 'ABSPATH' ) || exit;
15
+
16
+
$rocket_disabled_description = empty( $data['disabled_description'] );
17
+
?>
18
+
<div class="inside">
19
+
<h3><?php esc_html_e( 'Critical Path CSS', 'rocket' ); ?></h3>
20
+
<div id="rocket-metabox-cpcss-content">
21
+
<?php do_action( 'rocket_metabox_cpcss_content' ); ?>
22
+
</div>
23
+
</div>
24
+
<div id="cpcss_response_notice" class="components-notice is-notice is-warning<?php echo $rocket_disabled_description ? ' hidden' : ''; ?>">
25
+
<div class="components-notice__content">
26
+
<?php if ( ! $rocket_disabled_description ) : ?>
27
+
<p><?php echo esc_html( $data['disabled_description'] ); ?></p>
28
+
<?php endif; ?>
29
+
</div>
30
+
</div>
31
+