| 1 |
<?php |
| 2 |
/** |
| 3 |
* Outputs the 'My Account' main sections that relate to the navigation/tabs |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/propertyhive/account/sections.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 |
<div class="my-account-sections"> |
| 16 |
|
| 17 |
<?php |
| 18 |
$i = 0; |
| 19 |
foreach ( $pages as $id => $page ) |
| 20 |
{ |
| 21 |
echo '<div id="my-account-' . esc_attr($id) . '"' . ( ( $i > 0 ) ? ' style="display:none;"' : '' ) . '>'; |
| 22 |
|
| 23 |
do_action( 'propertyhive_my_account_section_' . $id ); |
| 24 |
|
| 25 |
echo '</div>'; |
| 26 |
|
| 27 |
++$i; |
| 28 |
} |
| 29 |
?> |
| 30 |
|
| 31 |
</div> |