<?php
/**
 * @var $icon
 * @var $selected_currency
 * @var $wpjobster_currencies_array
 * @var $is_checkout_page
 * @var $wpjobster_currencies_symbols_array
 */
?>

<div class="dropdown-menu dropdown-menu-small currency js-dropdown-menu">

	<input type="hidden" name="currency">

	<div class="trigger-text js-dropdown-menu-trigger"><i class="<?php echo $icon; ?> icon trigger-icon"></i><?php echo $selected_currency; ?></div>

	<div class="dropdown-menu-list">

		<?php foreach ( $wpjobster_currencies_array as $wpjobster_currency ) { ?>

			<div class="<?php if ( $is_checkout_page ) { echo 'disabled '; } ?>item <?php if ( $selected_currency == $wpjobster_currency ) echo 'active selected'; ?>" data-currencyval="<?php echo $wpjobster_currency; ?>">

				<?php if ( $wpjobster_currencies_symbols_array[$wpjobster_currency] != $wpjobster_currency ) { ?>

					<span class="symbol"><?php echo $wpjobster_currencies_symbols_array[$wpjobster_currency]; ?></span>

				<?php }

				echo $wpjobster_currency; ?>

			</div>

		<?php } ?>

	</div>

</div>