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

Property Hive, version 1.4.50. 29 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/1.4.50/code/templates/account/navigation.php
- Raw: https://pluginprobe.com/plugins/propertyhive/1.4.50/raw/templates/account/navigation.php
- Modified: 2017-05-22T15:22:20+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/1.4.50/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
		$i = 0;
		foreach ( $pages as $id => $page )
		{
			echo '<li class="my-account-navigation-' . $id . '' . ( ( $i == 0 ) ? ' active' : '' ) . '"><a href="' . ( ( isset($page['href']) ) ? $page['href'] : '#my-account-' . $id ) . '">' . $page['name'] . '</a></li>';

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

</nav>
```
