<?php
/**
 * @var $include_favorites
 * @var $jobster_design
 * @var $pid
 */

if ( ( $include_favorites && function_exists( 'upb_get_bookmark_count' ) ) || shortcode_exists( 'easy-social-share' ) ) { ?>

	<div class="job-social-icons-wrapper">

		<?php if ( $include_favorites && function_exists( 'upb_get_bookmark_count' ) ) { ?>

			<div class="job-favorites social-icons">

				<?php if ( $jobster_design['favorites_slider_icon_options_job'] ) {

					wpj_display_job_favorite_icon( $pid, '<i class="' . $jobster_design['favorites_slider_icon_options_job'] . ' red icon"></i>', '<i class="' . $jobster_design['favorites_slider_icon_options_job'] . ' outline grey icon"></i>' );

				} else {

					wpj_display_job_favorite_icon( $pid, '<i class="heart red icon"></i>', '<i class="heart outline grey icon"></i>' );

				} ?>

			</div>

		<?php }

		if ( shortcode_exists( 'easy-social-share' ) ) { ?>

			<div class="easy-social-share">

				<div>

					<?php echo do_shortcode( '[easy-social-share]' ); ?>

				</div>

			</div>

		<?php } ?>

	</div>

<?php }