PluginProbe
Property Hive / 2.3.1
Property Hive v2.3.1
2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 1.4.61 All 261 releases
propertyhive / templates / account / navigation.php

navigation.php in Property Hive 2.3.1, at templates/account/navigation.php

30 lines 933 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Outputs the 'My Account' navigation
4 *
5 * Override this template by copying it to yourtheme/propertyhive/account/navigation.php.
6 *
7 * @author PropertyHive
8 * @package PropertyHive/Templates
9 * @version 1.0.0
10 */
11
12 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
13 ?>
14
15 <nav class="my-account-navigation">
16
17 <ul>
18 <?php
19 // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
20 $i = 0;
21 foreach ( $pages as $id => $page )
22 {
23 echo '<li class="my-account-navigation-' . esc_attr($id) . '' . ( ( $i == 0 ) ? ' active' : '' ) . '"><a href="' . ( ( isset($page['href']) ) ? esc_url( $page['href'] ) : '#my-account-' . esc_attr($id) ) . '">' . esc_html($page['name']) . '</a></li>';
24
25 ++$i;
26 }
27 ?>
28 </ul>
29
30 </nav>