Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/wp-rocket/views/settings/navigation.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/**
3
+
* Menu template.
4
+
*
5
+
* @since 3.0
6
+
*
7
+
* @param array $data {
8
+
* Array of page sections arrays.
9
+
*
10
+
* @type string $id Menu item identifier.
11
+
* @type string $title Menu item title.
12
+
* @type string $menu_description Menu item summary.
13
+
* @type string $class Class(es) to apply to the menu item.
14
+
* }
15
+
*/
16
+
17
+
defined( 'ABSPATH' ) || exit;
18
+
19
+
?>
20
+
<?php
21
+
if ( rocket_valid_key() ) {
22
+
foreach ( $data as $section ) { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
23
+
?>
24
+
<a href="#<?php echo esc_attr( $section['id'] ); ?>" id="wpr-nav-<?php echo esc_attr( $section['id'] ); ?>" class="wpr-menuItem <?php echo esc_attr( $section['class'] ); ?>">
25
+
<div class="wpr-menuItem-title"><?php echo esc_html( $section['title'] ); ?></div>
26
+
<div class="wpr-menuItem-description"><?php echo esc_html( $section['menu_description'] ); ?></div>
27
+
</a>
28
+
<?php
29
+
}
30
+
}
31
+