<?php
/**
 * @var $mins
 * @var $class_on
 * @var $class_off
 * @var $type
 * @var $tooltip
 * @var $tooltip_position
 */
?>

<div class="user-status-wrapper <?php if ( is_page( wpj_get_option( 'wpjobster_user_profile_page_id' ) ) ) echo 'user-profile-status-wrapper'; ?>">

	<?php if ( $mins <= 5 ) { ?>

		<!-- ONLINE -->
		<div class="status-icon-wrapper <?php echo $class_on; ?>">

			<?php if ( $type == 'yes_with_text' ) _e( 'Online', 'wpjobster' );

			elseif ( $type == 'yes_with_icon' ) {

				if ( $tooltip ) { ?>

					<div data-inverted="" data-tooltip="<?php _e( 'Online', 'wpjobster' ); ?>" data-position="<?php echo $tooltip_position; ?>">

				<?php } ?>

						<span class="online-bullet"> &bull; </span>

				<?php if ( $tooltip ) { ?>

					</div>

				<?php }

			} ?>

		</div>

	<?php } else { ?>

		<!-- OFFLINE -->
		<div class="status-icon-wrapper <?php echo $class_off; ?>">

			<?php if ( $type == 'yes_with_text' ) _e( 'Offline', 'wpjobster' );

			elseif ( $type == 'yes_with_icon' ) {

				if ( $tooltip ) { ?>

					<div data-inverted="" data-tooltip="<?php _e( 'Offline', 'wpjobster' ); ?>" data-position="<?php echo $tooltip_position; ?>">

				<?php } ?>

						<span class="offline-bullet"> &bull; </span>

				<?php if ( $tooltip ) { ?>

					</div>

				<?php }

			} ?>

		</div>

	<?php } ?>

</div>