<?php $current = apply_filters( 'stm_account_current_page', '' ); ?>

<div class="stm-actions-list heading-font">

	<?php do_action( 'stm_before_account_navigation' ); ?>

	<?php foreach ( stm_account_navigation() as $key => $item ) : ?>
		<a href="<?php echo esc_url( $item['url'] ); ?>"
		   class="<?php echo esc_attr( $current ) === $key ? 'active' : ''; ?>">
			<?php if ( isset( $item['icon'] ) ) { ?>
				<i class="<?php echo esc_attr( $item['icon'] ); ?>"></i>
			<?php } ?>
			<?php echo esc_html( $item['label'] ); ?>
		</a>
	<?php endforeach; ?>
	<?php do_action( 'saved_search_navigation', $current ); ?>

	<?php do_action( 'stm_after_account_navigation' ); ?>

</div>
