# propertyhive/2.2.6/templates/account/sections.php

Property Hive, version 2.2.6. 31 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/2.2.6/code/templates/account/sections.php
- Raw: https://pluginprobe.com/plugins/propertyhive/2.2.6/raw/templates/account/sections.php
- Modified: 2025-05-13T08:38:24+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.2.6/code/templates/account/sections.php#L10-L20`.

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

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

<div class="my-account-sections">

	<?php
		$i = 0;
		foreach ( $pages as $id => $page )
		{
			echo '<div id="my-account-' . esc_attr($id) . '"' . ( ( $i > 0 ) ? ' style="display:none;"' : '' ) . '>';

				do_action( 'propertyhive_my_account_section_' . $id );

			echo '</div>';

			++$i;
		}
	?>

</div>
```
