# propertyhive/2.4.0/templates/account/navigation.php

Property Hive, version 2.4.0. 30 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.4.0/code/templates/account/navigation.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.4.0/raw/templates/account/navigation.php
- Modified: 2026-09-16T09:29:48+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/2.4.0/code/templates/account/navigation.php#L10-L20`.

```php
<?php
/**
 * Outputs the 'My Account' navigation
 *
 * Override this template by copying it to yourtheme/propertyhive/account/navigation.php.
 *
 * @author 		PropertyHive
 * @package 	PropertyHive/Templates
 * @version     1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>

<nav class="my-account-navigation">

	<ul>
	<?php
		// 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.
		$i = 0;
		foreach ( $pages as $id => $page )
		{
			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>';

			++$i;
		}
	?>
	</ul>

</nav>
```
