Your IP : 216.73.217.77


Current Path : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/page/
Upload File :
Current File : /home/users/unlimited/www/facebook.codeskitter.site/themes/sunshine/layout/page/content.phtml

<div class="row page-margin wo_page_profile" data-page="page" data-id="<?php echo $wo['page_profile']['page_id'];?>">
	<div class="profile-container">
		<div class="card hovercard">
			<div class="cardheader user-cover">
				<?php if($wo['page_profile']['is_page_onwer'] == true) { ?>
					<form action="#" method="post" class="profile-cover-changer">
						<div class="input-group">
							<span class="input-group-btn profile_cover">
								<span class="btn btn-upload-image btn-file">
									<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.75" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 13m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path><path d="M5 7h2a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h2m9 7v7a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"></path><path d="M15 6l6 0"></path><path d="M18 3l0 6"></path></svg>
									<input type="file" name="cover" accept="image/x-png, image/jpeg" onchange="Wo_UpdateProfileCover();">
								</span>
							</span>
						</div>
						<input type="hidden" name="page_id" value="<?php echo $wo['page_profile']['page_id'];?>">
					</form>
				<?php } ?>
				<div class="user-cover-uploading-container"></div>
				<div class="user-cover-uploading-progress">
					<div class="pace-activity-parent"><div class="pace-activity"></div></div>
				</div>
				<img id="cover-image" src="<?php echo $wo['page_profile']['cover']?>" alt="<?php echo $wo['page_profile']['name']?> Cover Image"/>
			</div>
		</div>

		<div class="page-info-cont row">
			<div class="col-xs-12 col-sm-9 col-md-7 first_row">
				<div class="user-avatar flip">
					<div class="user-avatar-uploading-container">
						<div class="user-avatar-uploading-progress">
							<div class="ball-pulse"><div></div><div></div><div></div></div>
						</div>
					</div>
					<img id="page-avatar-image" alt="<?php echo $wo['page_profile']['name']?> Profile Picture" src="<?php echo $wo['page_profile']['avatar']?>"/>
					<?php if($wo['page_profile']['is_page_onwer'] == true) { ?>
						<form action="#" method="post" class="profile-avatar-changer wo_profile_pic_hover">
							<div class="profile_avatar">
								<span class="btn btn-upload-image btn-file">
									<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.75" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 13m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path><path d="M5 7h2a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h2m9 7v7a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2"></path><path d="M15 6l6 0"></path><path d="M18 3l0 6"></path></svg>
									<input type="file" name="avatar" accept="image/x-png, image/jpeg" onchange="Wo_UpdateProfileAvatar();">
								</span>
							</div>
							<input type="hidden" name="page_id" id="page-id" value="<?php echo $wo['page_profile']['page_id'];?>">
						</form>
					<?php } ?>
				</div>
				<div class="info">
					<div class="title">
						<a href="<?php echo $wo['page_profile']['url'];?>" data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>"><?php echo $wo['page_profile']['name']; ?></a>
						<?php if($wo['page_profile']['verified'] == 1) {   ?>
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="verified-color feather feather-check-circle" title="Verified Page" data-toggle="tooltip"><path d="M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z"></path></svg>
						<?php } ?>
						<div class="page_username">
							@<?php echo $wo['page_profile']['username']; ?> • <?php echo Wo_CountPageLikes($wo['page_profile']['page_id']);?> <?php echo $wo['lang']['people_likes_this']; ?>
						</div>
					</div>
				</div>
			</div>

			<div class="col-sm-3 col-md-5 last_row">
				<div class="options-buttons">
					<span class="user-follow-button page-like-btn">
						<?php echo Wo_GetLikeButton($wo['page_profile']['page_id']);?>
					</span>
					<span class="user-follow-button page-message-btn"><?php echo Wo_GetPageMessageButton($wo['page_profile']['page_id']);?></span>
					<?php if ($wo['page_profile']['is_page_onwer'] == true) { ?>
						<?php if ($wo['config']['job_system'] == 1 && Wo_IsPageOnwer($wo['page_profile']['page_id'],false) && $wo['config']['can_use_jobs']) { ?>
							<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=jobs" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=jobs');?>" class="btn btn-success btn-sm btn-mat"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-briefcase"><rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path></svg> <?php echo $wo['lang']['create_job']; ?></a>
						<?php } ?>
						<?php if ($wo['config']['offer_system'] == 1 && Wo_IsPageOnwer($wo['page_profile']['page_id'],false) && $wo['config']['can_use_offer']) { ?>
							<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=offer" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=offer');?>" class="btn btn-info btn-sm btn-mat"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-package"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg> <?php echo $wo['lang']['offer']; ?></a>
						<?php } ?>
						<a href="<?php echo Wo_SeoLink('index.php?link1=page-setting&page=' .  $wo['page_profile']['page_name']); ?>" data-ajax="?link1=page-setting&page=<?php echo $wo['page_profile']['page_name'];?>" class="btn btn-main btn-sm btn-mat"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-2"><polygon points="16 3 21 8 8 21 3 21 3 16 16 3"></polygon></svg> <?php echo $wo['lang']['edit']; ?></a>
					<?php } ?>
					<span class="user-follow-button page_info_cta">
						<?php echo Wo_GetCallInAction($wo['page_profile']['call_action_type'], $wo['page_profile']['call_action_type_url']);?>
					</span>
				</div>
			</div>
			<div class="col-md-12" style="position: static">
				<div class="page_navbar">
					<ul>
						<li>
							<?php  if($wo['config']['pro'] == 1 && $wo['page_profile']['is_page_onwer'] == true) {  ?>
								<?php if ($wo['user']['is_pro'] == 1) { ?>
								<?php if (in_array($wo['user']['pro_type'], array_keys($wo['pro_packages'])) && $wo['pro_packages'][$wo['user']['pro_type']]['pages_promotion'] > 0) {?>
								<?php if ($wo['page_profile']['boosted'] == 0) {?>
									<a href="<?php echo $wo['marker'];?>boosted">
										<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24"><path fill="#ff5722" d="M7,2V13H10V22L17,10H13L17,2H7Z" /></svg> <?php echo $wo['lang']['boost_page'];?>
									</a>
								<?php } else { ?>
									<a href="<?php echo $wo['marker'];?>un-boost">
										<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24"><path fill="#ff5722" d="M17,10H13L17,2H7V4.18L15.46,12.64M3.27,3L2,4.27L7,9.27V13H10V22L13.58,15.86L17.73,20L19,18.73L3.27,3Z" /></svg> <?php echo $wo['lang']['un_boost_page'];?>
									</a>
								<?php } ?>
								<?php  }  ?>
								<?php  } else {  ?>
									<a href="<?php echo Wo_SeoLink('index.php?link1=go-pro');?>">
										<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24"><path fill="#ff5722" d="M7,2V13H10V22L17,10H13L17,2H7Z" /></svg> <?php echo $wo['lang']['boost_page'];?>
									</a>
								<?php  }  ?>
							<?php  }  ?>
						</li>
						
						<?php if ($wo['loggedin'] && $wo['page_profile']['user_id'] != $wo['user']['id']) { ?>
							<li>
								<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=rating" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=rating');?>">
									<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24"><path fill="#FF9800" d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z" /></svg> <?php echo $wo['lang']['rating'] ?>
								</a>
							</li>
						<?php  }  ?>
						
						<li>
							<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=invite" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=invite');?>">
								<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24"><path fill="#e91e63" d="M19 17V19H7V17S7 13 13 13 19 17 19 17M16 8A3 3 0 1 0 13 11A3 3 0 0 0 16 8M19.2 13.06A5.6 5.6 0 0 1 21 17V19H24V17S24 13.55 19.2 13.06M18 5A2.91 2.91 0 0 0 17.11 5.14A5 5 0 0 1 17.11 10.86A2.91 2.91 0 0 0 18 11A3 3 0 0 0 18 5M8 10H5V7H3V10H0V12H3V15H5V12H8Z" /></svg> <?php echo $wo['lang']['page_inviate_label']; ?>
							</a>
						</li>
						<?php if ($wo['loggedin'] && !Wo_IsAdmin() && $wo['user']['id'] != $wo['page_profile']['user_id'] && !Wo_IsAdmin($wo['page_profile']['user_id'])): ?>
						<li>
							<div class="dropdown">
								<a href="#" class="dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
									<svg xmlns="http://www.w3.org/2000/svg" class="feather" width="24" height="24" viewBox="0 0 24 24"><path fill="#673ab7" d="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z" /></svg> <?php echo $wo['lang']['more']; ?>
								</a>
								<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1">
									<?php if (!Wo_IsReportExists($wo['page_profile']['page_id'],'page')): ?>
										<li id="report_status" class="pointer" onclick="$('#report_page').modal('show');">
											<span class="menu-item">
												<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12" y2="17"></line></svg>
												<?php echo $wo['lang']['report_page']; ?>
											</span>
										</li>
									<?php else: ?>
										<li id="report_status" class="pointer" onclick="Wo_ReportPage(<?php echo $wo['page_profile']['page_id']; ?>,false);">
											<span class="menu-item">
												<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12" y2="17"></line></svg>
												<?php echo $wo['lang']['unreport']; ?>
											</span>
										</li>
									<?php endif; ?>
								</ul>
							</div>
						</li>
						<?php endif; ?>
					</ul>
				</div>
			</div>
		</div>  
	</div>
	
	<div class="col-md-8">
		<?php if ( $wo['loggedin'] == true && isset($_GET['type']) && $_GET['type'] == 'rating'): ?>
			<div class="page-margin wow_content mt-0">
				<div class="wo_page_hdng pag_neg_padd pag_alone">
					<div class="wo_page_hdng_innr">
						<span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"></path></svg></span> <?php echo $wo['lang']['reviews']; ?>: <?php echo  number_format($wo['page_profile']['rating'], 1); ?>
					</div>
				</div>
			</div>
			<div class="list-group profile-lists">
				<div class="setting-well" id="page_reviews_cont">
					<?php
						$page_reviews = Wo_GetPageReviews($wo['page_profile']['page_id']);
						if (count($page_reviews) > 0) {
							foreach ($page_reviews as $wo['review']) {
								echo Wo_LoadPage('page/review-list');
							}
						} 
						else{
							echo '<div class="empty_state"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"></path></svg>' . 'No reviews found' . '</div>';
						}
					?>
					<div class="clear"></div>
				</div>
			</div>
			<?php if (count($page_reviews) > 0): ?>
				<div class="posts_load">
					<div class="load-more">
						<button class="btn btn-default text-center pointer" onclick="Wo_LoadPageReviews(this);">
						<i class="fa fa-arrow-down progress-icon" data-icon="arrow-down"></i> <?php echo $wo['lang']['load_more'] ?></button>
					</div>
				</div>           
			<?php endif; ?>      
		<?php endif; ?>
		
		<?php
            if (isset($_GET['type'])) {
			if ($_GET['type'] == 'invite') {
		?>
			<div class="page-margin mt-0">
				<div class="wow_content popular_posts_hdr">
					<h2><svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 10H15M17 12L17 8" class="icon_main" stroke-width="1.5" stroke-linecap="round"></path><path d="M1 17.1115C1 14.6984 2.69732 12.643 5.00404 12.2627L5.21182 12.2284C7.05892 11.9239 8.94108 11.9239 10.7882 12.2284L10.996 12.2627C13.3027 12.643 15 14.6984 15 17.1115C15 18.1545 14.1815 19 13.1719 19H2.82813C1.81848 19 1 18.1545 1 17.1115Z" stroke="currentColor" stroke-width="1.5"></path><path d="M12.0827 4.9375C12.0827 7.11212 10.2545 8.875 7.99935 8.875C5.74419 8.875 3.91602 7.11212 3.91602 4.9375C3.91602 2.76288 5.74419 1 7.99935 1C10.2545 1 12.0827 2.76288 12.0827 4.9375Z" class="icon_main" stroke-width="1.5"></path></svg>&nbsp;<?php echo $wo['lang']['invite_your_frineds']; ?>											
					</h2>
				</div>
			</div>
			

			<div class="">
				<div class="row cool-style-album-row profile_groups">
					<?php
						if (Wo_CountPageInvites($wo['page_profile']['page_id']) == 0) {
							echo '<div class="empty_state"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z" /></svg>' . $wo['lang']['not_invite'] . '</div>';
						} else {
							foreach (Wo_GetPageInvites($wo['page_profile']['page_id']) as $wo['UsersList']) {
							echo Wo_LoadPage('page/invite-list');
						}
						}
					?>
				</div>
				<div class="clear"></div>
			</div>
		<?php }elseif ($_GET['type'] == 'jobs' && $wo['config']['job_system'] == 1 && Wo_IsPageOnwer($wo['page_profile']['page_id'],false)) {
			$page_jobs = Wo_GetPosts(array('filter_by' => 'job', 'page_id' => $wo['page_profile']['page_id'])); 
			if (!empty($page_jobs)) { 
				if ($wo['page_profile']['is_page_onwer'] == true && $wo['config']['can_use_jobs']) {
					echo '<div class="page-margin mt-0"><div class="wow_content"><h5 class="search-filter-center-text empty_state" style="margin: 30px 0;"><svg version="1.1" class="feather" style="width: 80px;height: 80px;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"> <path style="fill:#C9C6CA;" d="M314.718,269.29l-47.055-18.512H100.638L53.583,269.29c-18.043,7.098-29.615,24.839-28.839,44.212 l5.713,142.631c0.326,8.143,7.022,14.577,15.172,14.577h277.044c8.15,0,14.846-6.433,15.172-14.577l5.713-142.631 C344.333,294.129,332.761,276.388,314.718,269.29z"/> <polygon style="fill:#6E4B53;" points="173.064,303.684 163.351,470.71 204.95,470.71 195.237,303.684 "/> <path style="fill:#5C414B;" d="M191.077,311.276h-13.852c-4.561,0-8.258-3.697-8.258-8.258v-22.11h30.368v22.11 C199.335,307.579,195.637,311.276,191.077,311.276z"/> <rect x="131.01" y="189.8" style="fill:#E6AF78;" width="106.29" height="91.11"/> <path style="fill:#D29B6E;" d="M131.006,218.153c15.056,10.843,33.443,17.202,53.145,17.202s38.088-6.359,53.145-17.202v-28.35 h-106.29V218.153z"/> <path style="fill:#6E4B53;" d="M184.151,0.239c-37.905,2.049-59.471,22.776-59.471,22.776s-31.634,0-31.634,37.96 c0,30.368,7.592,60.498,7.592,60.498h174.618C290.44,37.961,254.377-3.557,184.151,0.239z"/> <path style="fill:#5C414B;" d="M138.598,90.144c-27.89-34.87-13.919-67.129-13.919-67.129s-31.634,0-31.634,37.96 c0,30.368,7.592,60.498,7.592,60.498h37.96L138.598,90.144L138.598,90.144z"/> <path style="fill:#F0C087;" d="M267.663,113.882h-7.592l-10.004-18.258c-1.58-2.883-4.869-4.36-8.103-3.768 c-50.001,9.146-82.861-2.476-95.312-8.294c-3.262-1.524-7.145-0.522-9.241,2.405c-7.683,10.731-16.161,19.189-21.245,23.869 c-2.822,2.599-6.486,4.044-10.323,4.044h-5.463c-0.004,0-0.007,0.002-0.012,0.002c-0.832,0.015-1.682,0.103-2.547,0.27 c-7.389,1.428-12.368,8.492-12.368,16.017v5.502c0,7.262,4.65,14.112,11.721,15.763c1.593,0.372,3.143,0.477,4.627,0.359 c3.775-0.301,7.07,2.446,7.75,6.171c6.454,35.374,37.36,62.204,74.599,62.204s68.144-26.83,74.599-62.204 c0.655-3.588,3.752-6.201,7.35-6.125h1.564c8.386,0,15.184-6.798,15.184-15.184v-7.592 C282.848,120.68,276.049,113.882,267.663,113.882z"/> <path style="fill:#E6AF78;" d="M138.598,144.25V84.809c-0.413,0.365-0.854,0.694-1.187,1.159 c-7.683,10.731-16.161,19.189-21.245,23.869c-2.822,2.599-6.486,4.044-10.323,4.044h-5.463c-0.004,0-0.007,0.002-0.012,0.002 c-0.832,0.015-1.682,0.103-2.547,0.27c-7.389,1.428-12.368,8.492-12.368,16.017v5.502c0,7.262,4.65,14.112,11.721,15.763 c1.593,0.372,3.143,0.477,4.627,0.359c3.775-0.301,7.07,2.446,7.75,6.171c6.454,35.374,37.36,62.204,74.599,62.204 c5.162,0,10.184-0.563,15.054-1.546C164.616,211.54,138.598,180.934,138.598,144.25z"/> <g> <path style="fill:#DBD9DC;" d="M184.151,281.146l-55.391-48.467c-3.008-2.632-7.542-2.481-10.368,0.345l-17.754,17.754 l35.279,52.918c5.315,7.973,16.595,9.09,23.371,2.314L184.151,281.146z"/> <path style="fill:#DBD9DC;" d="M184.151,281.146l55.391-48.467c3.008-2.632,7.542-2.481,10.368,0.345l17.754,17.754l-35.279,52.918 c-5.315,7.973-16.595,9.09-23.371,2.314L184.151,281.146z"/> <path style="fill:#DBD9DC;" d="M64.518,320.948l-33.03-33.03c-4.608,7.519-7.115,16.346-6.745,25.584l5.713,142.631 c0.326,8.143,7.023,14.577,15.172,14.577h32.233V353.158C77.861,341.078,73.061,329.491,64.518,320.948z"/> </g> <g> <path style="fill:#6E4B53;" d="M330.389,305.548c0-4.552,3.702-8.258,8.258-8.258h49.548c4.556,0,8.258,3.706,8.258,8.258v33.032 h16.516v-33.032c0-13.661-11.113-24.774-24.774-24.774h-49.548c-13.661,0-24.774,11.113-24.774,24.774v33.032h16.516V305.548z"/> <path style="fill:#6E4B53;" d="M247.809,371.613v116.453c0,13.219,10.716,23.934,23.934,23.934h183.358 c13.218,0,23.934-10.716,23.934-23.934V371.613H247.809z"/> </g> <path style="fill:#825A5A;" d="M363.422,437.677c14.479,0,28.377-1.196,41.293-3.394l33.023-8.527 c30.091-10.881,49.555-28.206,49.555-47.72v-22.939c0-13.682-11.092-24.774-24.774-24.774H264.325 c-13.682,0-24.774,11.092-24.774,24.774v22.939c0,19.514,19.464,36.839,49.555,47.72l33.023,8.527 C335.044,436.481,348.943,437.677,363.422,437.677z"/> <g> <path style="fill:#C9C6CA;" d="M305.615,454.194L305.615,454.194c-9.122,0-16.516-7.395-16.516-16.516v-16.516 c0-4.561,3.697-8.258,8.258-8.258h16.516c4.561,0,8.258,3.697,8.258,8.258v16.516C322.131,446.799,314.737,454.194,305.615,454.194 z"/> <path style="fill:#C9C6CA;" d="M421.228,454.194L421.228,454.194c-9.122,0-16.516-7.395-16.516-16.516v-16.516 c0-4.561,3.697-8.258,8.258-8.258h16.516c4.561,0,8.258,3.697,8.258,8.258v16.516C437.744,446.799,430.35,454.194,421.228,454.194z "/> </g> <g> <circle style="fill:#DBD9DC;" cx="305.62" cy="437.68" r="8.258"/> <circle style="fill:#DBD9DC;" cx="421.23" cy="437.68" r="8.258"/> </g></svg>' . str_replace('{{page_name}}', $wo['page_profile']['page_name'], $wo['lang']['post_job_text']).' '.$wo['config']['siteName'] . '.<br><br><br><br>'.($wo['config']['can_use_jobs'] ? '<span class="btn btn-main btn-mat" onclick="OpenCreateJobModal()">'.$wo['lang']['create_job'].' </span>' : '').'</h5></div></div>';
				}
				
				?>
				<div id="posts" data-story-page="<?php echo $wo['page_profile']['page_id'];?>">
					<div class="post-container sun_post">
						<input id="page_post_jobs_filter" type="hidden">
						
				<?php foreach ($page_jobs as $key => $wo['story']) {
					$wo['story']['job']['page_type'] = 'page';
					echo Wo_LoadPage('story/includes/job');
				} ?>
					</div>
				</div>
				<?php }
			else{
				if ($wo['page_profile']['is_page_onwer'] == true && $wo['config']['can_use_jobs']) {
					echo '<div class="wow_content"><h5 class="search-filter-center-text empty_state"><svg version="1.1" class="feather" style="width: 80px;height: 80px;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"> <path style="fill:#C9C6CA;" d="M314.718,269.29l-47.055-18.512H100.638L53.583,269.29c-18.043,7.098-29.615,24.839-28.839,44.212 l5.713,142.631c0.326,8.143,7.022,14.577,15.172,14.577h277.044c8.15,0,14.846-6.433,15.172-14.577l5.713-142.631 C344.333,294.129,332.761,276.388,314.718,269.29z"/> <polygon style="fill:#6E4B53;" points="173.064,303.684 163.351,470.71 204.95,470.71 195.237,303.684 "/> <path style="fill:#5C414B;" d="M191.077,311.276h-13.852c-4.561,0-8.258-3.697-8.258-8.258v-22.11h30.368v22.11 C199.335,307.579,195.637,311.276,191.077,311.276z"/> <rect x="131.01" y="189.8" style="fill:#E6AF78;" width="106.29" height="91.11"/> <path style="fill:#D29B6E;" d="M131.006,218.153c15.056,10.843,33.443,17.202,53.145,17.202s38.088-6.359,53.145-17.202v-28.35 h-106.29V218.153z"/> <path style="fill:#6E4B53;" d="M184.151,0.239c-37.905,2.049-59.471,22.776-59.471,22.776s-31.634,0-31.634,37.96 c0,30.368,7.592,60.498,7.592,60.498h174.618C290.44,37.961,254.377-3.557,184.151,0.239z"/> <path style="fill:#5C414B;" d="M138.598,90.144c-27.89-34.87-13.919-67.129-13.919-67.129s-31.634,0-31.634,37.96 c0,30.368,7.592,60.498,7.592,60.498h37.96L138.598,90.144L138.598,90.144z"/> <path style="fill:#F0C087;" d="M267.663,113.882h-7.592l-10.004-18.258c-1.58-2.883-4.869-4.36-8.103-3.768 c-50.001,9.146-82.861-2.476-95.312-8.294c-3.262-1.524-7.145-0.522-9.241,2.405c-7.683,10.731-16.161,19.189-21.245,23.869 c-2.822,2.599-6.486,4.044-10.323,4.044h-5.463c-0.004,0-0.007,0.002-0.012,0.002c-0.832,0.015-1.682,0.103-2.547,0.27 c-7.389,1.428-12.368,8.492-12.368,16.017v5.502c0,7.262,4.65,14.112,11.721,15.763c1.593,0.372,3.143,0.477,4.627,0.359 c3.775-0.301,7.07,2.446,7.75,6.171c6.454,35.374,37.36,62.204,74.599,62.204s68.144-26.83,74.599-62.204 c0.655-3.588,3.752-6.201,7.35-6.125h1.564c8.386,0,15.184-6.798,15.184-15.184v-7.592 C282.848,120.68,276.049,113.882,267.663,113.882z"/> <path style="fill:#E6AF78;" d="M138.598,144.25V84.809c-0.413,0.365-0.854,0.694-1.187,1.159 c-7.683,10.731-16.161,19.189-21.245,23.869c-2.822,2.599-6.486,4.044-10.323,4.044h-5.463c-0.004,0-0.007,0.002-0.012,0.002 c-0.832,0.015-1.682,0.103-2.547,0.27c-7.389,1.428-12.368,8.492-12.368,16.017v5.502c0,7.262,4.65,14.112,11.721,15.763 c1.593,0.372,3.143,0.477,4.627,0.359c3.775-0.301,7.07,2.446,7.75,6.171c6.454,35.374,37.36,62.204,74.599,62.204 c5.162,0,10.184-0.563,15.054-1.546C164.616,211.54,138.598,180.934,138.598,144.25z"/> <g> <path style="fill:#DBD9DC;" d="M184.151,281.146l-55.391-48.467c-3.008-2.632-7.542-2.481-10.368,0.345l-17.754,17.754 l35.279,52.918c5.315,7.973,16.595,9.09,23.371,2.314L184.151,281.146z"/> <path style="fill:#DBD9DC;" d="M184.151,281.146l55.391-48.467c3.008-2.632,7.542-2.481,10.368,0.345l17.754,17.754l-35.279,52.918 c-5.315,7.973-16.595,9.09-23.371,2.314L184.151,281.146z"/> <path style="fill:#DBD9DC;" d="M64.518,320.948l-33.03-33.03c-4.608,7.519-7.115,16.346-6.745,25.584l5.713,142.631 c0.326,8.143,7.023,14.577,15.172,14.577h32.233V353.158C77.861,341.078,73.061,329.491,64.518,320.948z"/> </g> <g> <path style="fill:#6E4B53;" d="M330.389,305.548c0-4.552,3.702-8.258,8.258-8.258h49.548c4.556,0,8.258,3.706,8.258,8.258v33.032 h16.516v-33.032c0-13.661-11.113-24.774-24.774-24.774h-49.548c-13.661,0-24.774,11.113-24.774,24.774v33.032h16.516V305.548z"/> <path style="fill:#6E4B53;" d="M247.809,371.613v116.453c0,13.219,10.716,23.934,23.934,23.934h183.358 c13.218,0,23.934-10.716,23.934-23.934V371.613H247.809z"/> </g> <path style="fill:#825A5A;" d="M363.422,437.677c14.479,0,28.377-1.196,41.293-3.394l33.023-8.527 c30.091-10.881,49.555-28.206,49.555-47.72v-22.939c0-13.682-11.092-24.774-24.774-24.774H264.325 c-13.682,0-24.774,11.092-24.774,24.774v22.939c0,19.514,19.464,36.839,49.555,47.72l33.023,8.527 C335.044,436.481,348.943,437.677,363.422,437.677z"/> <g> <path style="fill:#C9C6CA;" d="M305.615,454.194L305.615,454.194c-9.122,0-16.516-7.395-16.516-16.516v-16.516 c0-4.561,3.697-8.258,8.258-8.258h16.516c4.561,0,8.258,3.697,8.258,8.258v16.516C322.131,446.799,314.737,454.194,305.615,454.194 z"/> <path style="fill:#C9C6CA;" d="M421.228,454.194L421.228,454.194c-9.122,0-16.516-7.395-16.516-16.516v-16.516 c0-4.561,3.697-8.258,8.258-8.258h16.516c4.561,0,8.258,3.697,8.258,8.258v16.516C437.744,446.799,430.35,454.194,421.228,454.194z "/> </g> <g> <circle style="fill:#DBD9DC;" cx="305.62" cy="437.68" r="8.258"/> <circle style="fill:#DBD9DC;" cx="421.23" cy="437.68" r="8.258"/> </g></svg>' . str_replace('{{page_name}}', $wo['page_profile']['page_name'], $wo['lang']['post_job_text']) .$wo['config']['siteName'] . '.<br><br><br><br>'
					.($wo['config']['can_use_jobs'] ? '<span class="btn btn-main btn-mat" onclick="OpenCreateJobModal()">'.$wo['lang']['create_job'].' </span>' : '').'</h5></div>';
				} else {
					echo '<div class="wow_content"><h5 class="search-filter-center-text empty_state"><svg version="1.1" class="feather" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" style="width: 80px;height: 80px;" xml:space="preserve"> <path style="fill:#5A5A5A;" d="M361,76v30c0,8.399-6.599,15-15,15h-15V76c0-8.401-6.599-15-15-15H196c-8.401,0-15,6.599-15,15v45 h-15c-8.401,0-15-6.601-15-15V76c0-24.901,20.099-45,45-45h120C340.901,31,361,51.099,361,76z"/> <path style="fill:#444444;" d="M316,61h-60V31h60c24.901,0,45,20.099,45,45v30c0,8.399-6.599,15-15,15h-15V76 C331,67.599,324.401,61,316,61z"/> <path style="fill:#5A5A5A;" d="M512,106v330c0,24.899-20.099,45-45,45H45c-24.901,0-45-20.101-45-45V106c0-4.2,1.8-7.8,4.501-10.501 L81,267.7h350l76.5-172.202C510.2,98.2,512,101.8,512,106z"/> <path style="fill:#444444;" d="M512,106v330c0,24.899-20.099,45-45,45H256V267.7h175l76.5-172.202C510.2,98.2,512,101.8,512,106z"/> <path style="fill:#6E6E6E;" d="M507.499,95.499L461,267.7c-5.4,19.799-23.099,33.3-43.5,33.3H94.501C74.099,301,56.4,287.5,51,267.7 L4.501,95.499C7.2,92.8,10.8,91,15,91h482C501.2,91,504.8,92.8,507.499,95.499z"/> <path style="fill:#5A5A5A;" d="M507.499,95.499L461,267.7c-5.4,19.799-23.099,33.3-43.5,33.3H256V91h241 C501.2,91,504.8,92.8,507.499,95.499z"/> <path style="fill:#FFD400;" d="M316,256H196c-8.401,0-15,6.599-15,15v60c0,8.399,6.599,15,15,15h120c8.401,0,15-6.601,15-15v-60 C331,262.599,324.401,256,316,256z"/> <path style="fill:#FDBF00;" d="M331,271v60c0,8.399-6.599,15-15,15h-60v-90h60C324.401,256,331,262.599,331,271z"/></svg>'.$wo['lang']['no_available_jobs'].'</h5></div>';
				}
			}
			?>
			<?php 
		    }elseif ($_GET['type'] == 'job_apply' && $wo['config']['job_system'] == 1 && !empty($_GET['id']) && is_numeric($_GET['id']) && $_GET['id'] > 0 && $wo['page_profile']['user_id'] == $wo['user']['id']) {
		    	$job_apply = Wo_GetApplyJob(array('job_id' => $_GET['id']));
			if (!empty($job_apply)) { ?>
				<div id="posts" data-story-page="<?php echo $wo['page_profile']['page_id'];?>" class="apply_job_info" data_apply_job="<?php echo($_GET['id']) ?>">
					<div class="post-container sun_post apply_job_container">
		<?php 	foreach ($job_apply as $key => $wo['job_apply']) {
					echo Wo_LoadPage('page/job_apply');
				} ?>
					</div>
					<div class="posts_load">
						<?php if (count($job_apply) >= 1): ?>
							<div class="load-more">
								<div class="btn btn-default text-center pointer" id="load_more_nearby_users" onclick="Wo_LoadMoreApplyJobs();">
									<i class="fa fa-arrow-down progress-icon" data-icon="arrow-down"></i> 
									<?php echo $wo['lang']['load_more'] ?>
								</div>
							</div>
						<?php endif ?>
					</div>
				</div>
		  <?php  }
		    }
		    elseif ($_GET['type'] == 'offer' && $wo['config']['offer_system'] == 1 && Wo_IsPageOnwer($wo['page_profile']['page_id'],false)) {
				if ($wo['page_profile']['is_page_onwer'] == true && $wo['config']['can_use_offer']) {
					echo '<div class="wow_content"><h5 class="search-filter-center-text empty_state" style="margin: 30px 0;"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-package"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>' . str_replace('{{page_name}}', $wo['page_profile']['page_name'], $wo['lang']['post_offer_text']).' '.$wo['config']['siteName'] . '.<br><br><br><br><span class="btn btn-main btn-mat" onclick="OpenCreateOfferModal()">'.$wo['lang']['create_offer'].' </span></h5></div>';
				}
				$page_offer = Wo_GetPosts(array('filter_by' => 'offer', 'page_id' => $wo['page_profile']['page_id'])); 
			if (!empty($page_offer)) { ?>

				<div id="posts" data-story-page="<?php echo $wo['page_profile']['page_id'];?>">
					<div class="post-container sun_post">
						<input id="page_post_offer_filter" type="hidden">
						
				<?php foreach ($page_offer as $key => $wo['story']) {
					echo Wo_LoadPage('story/content');
				} ?>

					</div>
				</div>
				<?php 
			}
			}

		 } else { ?>
		
		<?php echo Wo_GetPagePostPublisherBox($wo['page_profile']['page_id']); ?>
		
		<?php if ($wo['loggedin'] == true) { echo Wo_LoadPage('story/filter-by'); } ?>
		
		<div id="posts" data-story-page="<?php echo $wo['page_profile']['page_id'];?>">
			<div class="pinned-post-container">
				<?php
					$pinedstory = Wo_GetPinnedPost($wo['page_profile']['page_id'], 'page');
					if (count($pinedstory) == 1) {
						foreach ($pinedstory  as $wo['story']) {
							echo Wo_LoadPage('story/content');
						}
					}
				?>
			</div>
			<?php
				$stories = Wo_GetPosts(array('filter_by' => 'all', 'page_id' => $wo['page_profile']['page_id'],'placement' => 'multi_image_post')); 
				if (count($stories) == 0 && count($pinedstory) == 0) {
					echo Wo_LoadPage('story/page-no-stories');
				} else {
					foreach ($stories as $wo['story']) {
						echo Wo_LoadPage('story/content');
					}
				}
			?>
		</div>
		<?php if ($wo['loggedin'] == true && count($stories) > 0) {  ?>
			<div class="load-more pointer" id="load-more-posts" onclick="Wo_GetMorePosts();">
				<span class="btn btn-default"><i class="fa fa-chevron-circle-down progress-icon" data-icon="chevron-circle-down"></i> &nbsp;<?php echo $wo['lang']['load_more_posts']; ?><span>
			</div>
		<?php } } ?>
		<div id="load-more-filter">
			<span class="filter-by-more hidden" data-filter-by="all"></span>
		</div>
	</div>
	
	<div class="col-md-4">
		<?php if($wo['loggedin'] == true) {  ?>
			<div class="wow_content">
				<div class="wow_form_fields mt-0 profile_search">
					<input type="text" class="search-for-posts" placeholder="<?php echo $wo['lang']['search_for_posts']; ?>" onkeyup="Wo_SearchForPosts(this.value);">
					<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="9" cy="9" r="8" stroke="currentColor" stroke-width="2"></circle><path d="M14.5 15.5L18.5 19.5" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></svg>
				</div>
			</div>
		<?php } ?>
		
		<?php if ($wo['loggedin'] && $wo['page_profile']['user_id'] != $wo['user']['id']): ?>
			<div class="page-margin wow_content wo_page_ratingss">
				<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=rating" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=rating');?>"><?php echo $wo['lang']['rating'] ?>:</a>
				<span class="page-rating">
					<fieldset>
						<?php
						$rating = Wo_PageRating($wo['page_profile']['id'], $wo['user']['user_id']);
						?>
						<input type="radio" id="star5" name="rating" value="5" />
						<label for="star5" class="rate-page" data-val="5">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star <?php echo ($rating <= 5 && $rating > 4) ? 'active' : ''; ?>"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
						</label>
						<input type="radio" id="star4" name="rating" value="4" />
						<label for="star4" class="rate-page" data-val="4">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star <?php echo ($rating >= 4 && $rating > 3) ? 'active' : ''; ?>"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
						</label>
						<input type="radio" id="star3" name="rating" value="3" />
						<label for="star3" class="rate-page" data-val="3">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star <?php echo ($rating >= 3 && $rating > 2) ? 'active' : ''; ?>"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
						</label>
						<input type="radio" id="star2" name="rating" value="2" />
						<label for="star2" class="rate-page" data-val="2">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star <?php echo ($rating >= 2 && $rating > 1) ? 'active' : ''; ?>"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
						</label>
						<input type="radio" id="star1" name="rating" value="1" />
						<label for="star1" class="rate-page" data-val="1">
							<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star <?php echo ($rating >= 1 && $rating > 0) ? 'active' : ''; ?>"><polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon></svg>
						</label>
					</fieldset>
					<span class="clear"></span>
				</span>
				<span><?php echo  number_format($wo['page_profile']['rating'], 1); ?></span>
			</div>
		<?php endif; ?>

		<ul class="page-margin wow_content negg_padd list-unstyled event-options-list right_user_info wo_prof_side_info_padd padd_top">
			<div class="wo_page_hdng hidden">
				<div class="wo_page_hdng_innr">
					<span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"></path></svg></span> <?php echo $wo['lang']['info']; ?>
				</div>
			</div>
			<li class="list-group-item">
				<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.0341 13.9709C12.5719 13.9709 13.0172 13.4189 13.3574 12.3302C13.3992 12.1962 13.3246 12.0536 13.1905 12.0116C13.0564 11.9698 12.9139 12.0443 12.8721 12.1785C12.4998 13.3696 12.1367 13.4621 12.0342 13.4621H10.2542C10.1137 13.4621 10 13.5761 10 13.7164C10 13.8567 10.1139 13.9707 10.2542 13.9707H12.0341V13.9709Z" class="icon_main_fill"/><path d="M15.5198 10.8775C15.8571 10.4592 16.0189 10.0109 15.9982 9.54914C15.9776 9.04057 15.7435 8.64241 15.5508 8.39816C15.7745 7.85613 15.8606 7.00293 15.1137 6.34044C14.5664 5.85529 13.6371 5.63781 12.3498 5.69803C11.4445 5.73818 10.6873 5.90213 10.6563 5.90882H10.6529C10.4808 5.93894 10.2984 5.97574 10.1125 6.01589C10.0987 5.80176 10.1366 5.26976 10.5427 4.07194C11.0246 2.64659 10.9971 1.55583 10.4532 0.826432C9.88188 0.0602259 8.96976 0 8.70128 0C8.44314 0 8.20564 0.103722 8.03698 0.294437C7.65493 0.726056 7.69967 1.52238 7.74786 1.89042C7.29352 3.07486 6.01999 5.97909 4.94266 6.78545C4.92201 6.79883 4.9048 6.81556 4.88759 6.83229C4.57093 7.15684 4.35753 7.50816 4.21296 7.81598C4.00989 7.70891 3.77928 7.64868 3.53145 7.64868H1.43186C0.640205 7.64868 0 8.27436 0 9.04057V14.4776C0 15.2472 0.643647 15.8695 1.43186 15.8695H3.53145C3.83779 15.8695 4.12347 15.7758 4.35753 15.6152L5.16639 15.7089C5.2903 15.7256 7.49316 15.9967 9.75453 15.9532C10.1641 15.9833 10.5496 16 10.9076 16C11.5237 16 12.0606 15.9532 12.5081 15.8595C13.5613 15.642 14.2807 15.207 14.6456 14.568C14.9244 14.0795 14.9244 13.5943 14.8796 13.2865C15.5646 12.6842 15.685 12.0184 15.6609 11.55C15.6472 11.279 15.5852 11.0481 15.5198 10.8775ZM1.43186 14.9661C1.15306 14.9661 0.92933 14.7453 0.92933 14.4776V9.03722C0.92933 8.76621 1.1565 8.54872 1.43186 8.54872H3.53145C3.81025 8.54872 4.03398 8.76955 4.03398 9.03722V14.4743C4.03398 14.7453 3.80681 14.9628 3.53145 14.9628H1.43186V14.9661ZM14.6387 10.486C14.4941 10.6332 14.4666 10.8574 14.5767 11.0314C14.5767 11.0347 14.7178 11.2689 14.735 11.5901C14.7591 12.0284 14.5423 12.4166 14.088 12.7478C13.9262 12.8683 13.8608 13.0757 13.9296 13.2631C13.9296 13.2664 14.0776 13.7081 13.8367 14.1263C13.6061 14.5278 13.0932 14.8156 12.3153 14.9762C11.6924 15.1066 10.8456 15.1301 9.80615 15.0498C9.79239 15.0498 9.77518 15.0498 9.75797 15.0498C7.54478 15.0966 5.30751 14.8156 5.28341 14.8122H5.27997L4.93233 14.7721C4.95299 14.6784 4.96331 14.578 4.96331 14.4776V9.03722C4.96331 8.89335 4.93922 8.75282 4.89791 8.62233C4.95987 8.39816 5.13197 7.89962 5.53812 7.4747C7.08356 6.28356 8.59458 2.26516 8.65998 2.09118C8.68752 2.02091 8.6944 1.94396 8.68063 1.867C8.62212 1.49226 8.64277 1.03388 8.72538 0.896696C8.9078 0.900042 9.4 0.95023 9.69601 1.34839C10.0471 1.82016 10.0333 2.66332 9.65471 3.78084C9.07646 5.4839 9.02827 6.38059 9.48605 6.77541C9.71322 6.97281 10.0161 6.98285 10.2364 6.9059C10.4464 6.85905 10.646 6.8189 10.8353 6.78879C10.8491 6.78545 10.8663 6.7821 10.88 6.77875C11.9367 6.55458 13.8298 6.4174 14.4872 6.99958C15.0448 7.49477 14.649 8.15056 14.6043 8.22083C14.4769 8.4082 14.5148 8.65245 14.6869 8.80301C14.6903 8.80636 15.0517 9.1376 15.0689 9.5826C15.0827 9.88038 14.9381 10.1849 14.6387 10.486Z" fill="currentColor"/></svg>
				<?php echo Wo_CountPageLikes($wo['page_profile']['page_id']);?> <?php echo $wo['lang']['people_likes_this']; ?> 
				<?php if ($wo['page_profile']['is_page_onwer'] == true) { ?>
					<span class="green">+<?php echo Wo_CountLikesThisWeek($wo['page_profile']['page_id']); ?> <?php echo $wo['lang']['this_week']; ?></span>
				<?php } ?>
			</li>
			<li class="list-group-item">
				<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.13477 4.80029H12.8647" class="icon_main"/><path d="M0.923921 4.89916C1.37236 3.09322 2.80434 1.69689 4.6207 1.29441L4.92328 1.22737C6.29139 0.924211 7.70926 0.924212 9.07738 1.22737L9.37995 1.29441C11.1963 1.69689 12.6283 3.09323 13.0767 4.89917C13.4193 6.27877 13.4193 7.72124 13.0767 9.10083C12.6283 10.9068 11.1963 12.3031 9.37995 12.7056L9.07737 12.7726C7.70926 13.0758 6.29139 13.0758 4.92328 12.7726L4.6207 12.7056C2.80433 12.3031 1.37236 10.9068 0.923921 9.10084C0.581349 7.72124 0.581349 6.27877 0.923921 4.89916Z" class="icon_main"/><path d="M13.0767 9.10083C13.4193 7.72124 13.4193 6.27877 13.0767 4.89917C12.6283 3.09323 11.1963 1.69689 9.37995 1.29441L9.07738 1.22737C7.70926 0.924212 6.29139 0.924211 4.92328 1.22737L4.6207 1.29441C2.80434 1.69689 1.37236 3.09322 0.923921 4.89916C0.581349 6.27877 0.581349 7.72124 0.923921 9.10084C1.37236 10.9068 2.80433 12.3031 4.6207 12.7056L4.92328 12.7726" stroke="currentColor" stroke-linecap="round"/><path d="M3.66699 7L6.33366 7" class="icon_main" stroke-linecap="round"/></svg>
				<?php echo Wo_CountPagePosts($wo['page_profile']['page_id']);?> <?php echo $wo['lang']['posts']; ?>
			</li>
			
			<?php  if(!empty($wo['page_profile']['phone'])) {  ?>
				<li class="list-group-item">
					<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>
					<?php echo $wo['page_profile']['phone']?>
				</li>
			<?php } ?>
			
			<?php if ($wo['config']['job_system'] == 1){ ?>
				<?php if (Wo_IsPageOnwer($wo['page_profile']['page_id'],false)) { ?>
					<?php if ($wo['config']['can_use_jobs']) { ?>
						<li class="list-group-item">
							<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=jobs" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=jobs');?>">
								<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.2462 1.09779L6.11848 0.614379L6.11848 0.614379L6.2462 1.09779ZM7.75286 1.09779L7.62515 1.58121V1.58121L7.75286 1.09779ZM6.37391 1.5812C6.78373 1.47293 7.21533 1.47293 7.62515 1.58121L7.88058 0.614379C7.30335 0.461874 6.69571 0.461874 6.11848 0.614379L6.37391 1.5812ZM10.2842 3.70877C10.2842 2.25418 9.29414 0.987842 7.88058 0.614379L7.62515 1.58121C8.60792 1.84085 9.28422 2.71637 9.28422 3.70877L10.2842 3.70877ZM4.71484 3.70877C4.71484 2.71637 5.39115 1.84085 6.37391 1.5812L6.11848 0.614379C4.70492 0.987842 3.71484 2.25418 3.71484 3.70877L4.71484 3.70877Z" class="icon_main_fill"/><path d="M1.25567 9.93517L1.73647 9.79796L1.25567 9.93517ZM1.25332 6.29053L1.73412 6.42774V6.42774L1.25332 6.29053ZM12.7467 6.29053L12.2659 6.42774V6.42774L12.7467 6.29053ZM12.7443 9.93517L13.2251 10.0724L12.7443 9.93517ZM9.66193 12.7456L9.56727 12.2546L9.66193 12.7456ZM4.33807 12.7456L4.43273 12.2546L4.33807 12.7456ZM4.84865 3.37342L4.94331 3.86438H4.94331L4.84865 3.37342ZM9.15135 3.37342L9.24601 2.88247L9.15135 3.37342ZM9.86706 3.51142L9.7724 4.00238L9.86706 3.51142ZM12.6847 6.07329L13.1655 5.93608V5.93608L12.6847 6.07329ZM4.13294 3.51142L4.03828 3.02046L4.03828 3.02046L4.13294 3.51142ZM1.31531 6.07328L0.834508 5.93608H0.834508L1.31531 6.07328ZM4.2276 4.00238L4.94331 3.86438L4.75399 2.88247L4.03828 3.02046L4.2276 4.00238ZM9.05669 3.86438L9.7724 4.00238L9.96172 3.02046L9.24601 2.88247L9.05669 3.86438ZM12.2039 6.2105L12.2659 6.42774L13.2275 6.15333L13.1655 5.93608L12.2039 6.2105ZM1.73412 6.42774L1.79612 6.21049L0.834508 5.93608L0.772512 6.15332L1.73412 6.42774ZM1.73647 9.79796C1.42256 8.69797 1.42058 7.52645 1.73412 6.42774L0.772512 6.15332C0.40742 7.43267 0.410132 8.7943 0.77486 10.0724L1.73647 9.79796ZM12.2659 6.42774C12.5794 7.52646 12.5774 8.69797 12.2635 9.79796L13.2251 10.0724C13.5899 8.7943 13.5926 7.43268 13.2275 6.15332L12.2659 6.42774ZM9.56727 12.2546C7.87182 12.5815 6.12818 12.5815 4.43273 12.2546L4.24341 13.2366C6.06393 13.5876 7.93608 13.5876 9.75659 13.2366L9.56727 12.2546ZM4.94331 3.86438C6.30157 3.6025 7.69843 3.6025 9.05669 3.86438L9.24601 2.88247C7.76269 2.59647 6.23731 2.59647 4.75399 2.88247L4.94331 3.86438ZM4.43273 12.2546C3.13662 12.0047 2.09293 11.0471 1.73647 9.79796L0.77486 10.0724C1.23553 11.6867 2.57977 12.9158 4.24341 13.2366L4.43273 12.2546ZM9.75659 13.2366C11.4202 12.9158 12.7645 11.6867 13.2251 10.0724L12.2635 9.79796C11.9071 11.0471 10.8634 12.0047 9.56727 12.2546L9.75659 13.2366ZM9.7724 4.00238C10.9443 4.22832 11.8826 5.0846 12.2039 6.2105L13.1655 5.93608C12.7391 4.44199 11.498 3.31667 9.96172 3.02046L9.7724 4.00238ZM4.03828 3.02046C2.50198 3.31667 1.26088 4.44199 0.834508 5.93608L1.79612 6.21049C2.11742 5.0846 3.05574 4.22832 4.2276 4.00238L4.03828 3.02046ZM1.25716 6.86098C4.95993 8.23059 9.04007 8.23059 12.7428 6.86098L12.3959 5.92308C8.91702 7.20989 5.08298 7.20989 1.60408 5.92308L1.25716 6.86098Z" fill="currentColor"/><path d="M4.33301 6V8.33333" class="icon_main" stroke-linecap="round"/><path d="M9.66699 6V8.33333" class="icon_main" stroke-linecap="round"/></svg> <?php echo $wo['lang']['jobs']; ?>
							</a>
						</li>
					<?php } ?>
				<?php }else{ ?>
					<li class="list-group-item">
						<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=jobs" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=jobs');?>">
							<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.2462 1.09779L6.11848 0.614379L6.11848 0.614379L6.2462 1.09779ZM7.75286 1.09779L7.62515 1.58121V1.58121L7.75286 1.09779ZM6.37391 1.5812C6.78373 1.47293 7.21533 1.47293 7.62515 1.58121L7.88058 0.614379C7.30335 0.461874 6.69571 0.461874 6.11848 0.614379L6.37391 1.5812ZM10.2842 3.70877C10.2842 2.25418 9.29414 0.987842 7.88058 0.614379L7.62515 1.58121C8.60792 1.84085 9.28422 2.71637 9.28422 3.70877L10.2842 3.70877ZM4.71484 3.70877C4.71484 2.71637 5.39115 1.84085 6.37391 1.5812L6.11848 0.614379C4.70492 0.987842 3.71484 2.25418 3.71484 3.70877L4.71484 3.70877Z" class="icon_main_fill"/><path d="M1.25567 9.93517L1.73647 9.79796L1.25567 9.93517ZM1.25332 6.29053L1.73412 6.42774V6.42774L1.25332 6.29053ZM12.7467 6.29053L12.2659 6.42774V6.42774L12.7467 6.29053ZM12.7443 9.93517L13.2251 10.0724L12.7443 9.93517ZM9.66193 12.7456L9.56727 12.2546L9.66193 12.7456ZM4.33807 12.7456L4.43273 12.2546L4.33807 12.7456ZM4.84865 3.37342L4.94331 3.86438H4.94331L4.84865 3.37342ZM9.15135 3.37342L9.24601 2.88247L9.15135 3.37342ZM9.86706 3.51142L9.7724 4.00238L9.86706 3.51142ZM12.6847 6.07329L13.1655 5.93608V5.93608L12.6847 6.07329ZM4.13294 3.51142L4.03828 3.02046L4.03828 3.02046L4.13294 3.51142ZM1.31531 6.07328L0.834508 5.93608H0.834508L1.31531 6.07328ZM4.2276 4.00238L4.94331 3.86438L4.75399 2.88247L4.03828 3.02046L4.2276 4.00238ZM9.05669 3.86438L9.7724 4.00238L9.96172 3.02046L9.24601 2.88247L9.05669 3.86438ZM12.2039 6.2105L12.2659 6.42774L13.2275 6.15333L13.1655 5.93608L12.2039 6.2105ZM1.73412 6.42774L1.79612 6.21049L0.834508 5.93608L0.772512 6.15332L1.73412 6.42774ZM1.73647 9.79796C1.42256 8.69797 1.42058 7.52645 1.73412 6.42774L0.772512 6.15332C0.40742 7.43267 0.410132 8.7943 0.77486 10.0724L1.73647 9.79796ZM12.2659 6.42774C12.5794 7.52646 12.5774 8.69797 12.2635 9.79796L13.2251 10.0724C13.5899 8.7943 13.5926 7.43268 13.2275 6.15332L12.2659 6.42774ZM9.56727 12.2546C7.87182 12.5815 6.12818 12.5815 4.43273 12.2546L4.24341 13.2366C6.06393 13.5876 7.93608 13.5876 9.75659 13.2366L9.56727 12.2546ZM4.94331 3.86438C6.30157 3.6025 7.69843 3.6025 9.05669 3.86438L9.24601 2.88247C7.76269 2.59647 6.23731 2.59647 4.75399 2.88247L4.94331 3.86438ZM4.43273 12.2546C3.13662 12.0047 2.09293 11.0471 1.73647 9.79796L0.77486 10.0724C1.23553 11.6867 2.57977 12.9158 4.24341 13.2366L4.43273 12.2546ZM9.75659 13.2366C11.4202 12.9158 12.7645 11.6867 13.2251 10.0724L12.2635 9.79796C11.9071 11.0471 10.8634 12.0047 9.56727 12.2546L9.75659 13.2366ZM9.7724 4.00238C10.9443 4.22832 11.8826 5.0846 12.2039 6.2105L13.1655 5.93608C12.7391 4.44199 11.498 3.31667 9.96172 3.02046L9.7724 4.00238ZM4.03828 3.02046C2.50198 3.31667 1.26088 4.44199 0.834508 5.93608L1.79612 6.21049C2.11742 5.0846 3.05574 4.22832 4.2276 4.00238L4.03828 3.02046ZM1.25716 6.86098C4.95993 8.23059 9.04007 8.23059 12.7428 6.86098L12.3959 5.92308C8.91702 7.20989 5.08298 7.20989 1.60408 5.92308L1.25716 6.86098Z" fill="currentColor"/><path d="M4.33301 6V8.33333" class="icon_main" stroke-linecap="round"/><path d="M9.66699 6V8.33333" class="icon_main" stroke-linecap="round"/></svg> <?php echo $wo['lang']['jobs']; ?>
						</a>
					</li>
				<?php } ?>
			<?php } ?>
			<?php if ($wo['config']['offer_system'] == 1){ ?>
				<?php if (Wo_IsPageOnwer($wo['page_profile']['page_id'],false)) { ?>
					<?php if ($wo['config']['can_use_offer']) { ?>
						<li class="list-group-item">
							<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=offer" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=offer');?>">
								<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.43596 2.05764C6.0214 0.647453 7.9786 0.647453 8.56404 2.05764L8.97182 3.03989C9.21158 3.6174 9.73797 4.01776 10.3485 4.08694L11.4864 4.2159C12.9235 4.37875 13.5171 6.18366 12.4675 7.19923L11.5013 8.13411C11.0765 8.54515 10.8888 9.15053 11.0046 9.73633L11.2378 10.9172C11.5331 12.412 9.93178 13.5406 8.66787 12.7285L7.90473 12.2381C7.35176 11.8828 6.64824 11.8828 6.09527 12.2381L5.33213 12.7285C4.06822 13.5406 2.46687 12.412 2.76216 10.9172L2.99543 9.73633C3.11115 9.15053 2.92345 8.54515 2.49865 8.13411L1.53247 7.19923C0.482921 6.18366 1.07648 4.37875 2.51356 4.2159L3.65151 4.08694C4.26203 4.01776 4.78842 3.6174 5.02818 3.03989L5.43596 2.05764Z" class="icon_main" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.09527 12.2381L5.33213 12.7285C4.06823 13.5406 2.46688 12.412 2.76216 10.9172L2.99543 9.73633C3.11115 9.15053 2.92345 8.54515 2.49865 8.13411L1.53247 7.19923C0.48292 6.18366 1.07648 4.37875 2.51356 4.2159L3.65151 4.08694C4.26203 4.01776 4.78842 3.6174 5.02818 3.03989L5.43596 2.05764C6.0214 0.647453 7.9786 0.647453 8.56404 2.05764L8.97182 3.03989C9.21158 3.6174 9.73797 4.01776 10.3485 4.08694L11.4864 4.2159C12.9235 4.37875 13.5171 6.18366 12.4675 7.19923L11.5013 8.13411C11.0766 8.54515 10.8888 9.15053 11.0046 9.73633" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg> <?php echo $wo['lang']['offer']; ?>
							</a>
						</li>
					<?php } ?>
				<?php }else{ ?>
					    <li class="list-group-item">
							<a data-ajax="?link1=timeline&u=<?php echo $wo['page_profile']['page_name'];?>&type=offer" href="<?php echo Wo_SeoLink('index.php?link1=timeline&u=' . $wo['page_profile']['page_name'] . '&type=offer');?>">
								<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.43596 2.05764C6.0214 0.647453 7.9786 0.647453 8.56404 2.05764L8.97182 3.03989C9.21158 3.6174 9.73797 4.01776 10.3485 4.08694L11.4864 4.2159C12.9235 4.37875 13.5171 6.18366 12.4675 7.19923L11.5013 8.13411C11.0765 8.54515 10.8888 9.15053 11.0046 9.73633L11.2378 10.9172C11.5331 12.412 9.93178 13.5406 8.66787 12.7285L7.90473 12.2381C7.35176 11.8828 6.64824 11.8828 6.09527 12.2381L5.33213 12.7285C4.06822 13.5406 2.46687 12.412 2.76216 10.9172L2.99543 9.73633C3.11115 9.15053 2.92345 8.54515 2.49865 8.13411L1.53247 7.19923C0.482921 6.18366 1.07648 4.37875 2.51356 4.2159L3.65151 4.08694C4.26203 4.01776 4.78842 3.6174 5.02818 3.03989L5.43596 2.05764Z" class="icon_main" stroke-linecap="round" stroke-linejoin="round"/><path d="M6.09527 12.2381L5.33213 12.7285C4.06823 13.5406 2.46688 12.412 2.76216 10.9172L2.99543 9.73633C3.11115 9.15053 2.92345 8.54515 2.49865 8.13411L1.53247 7.19923C0.48292 6.18366 1.07648 4.37875 2.51356 4.2159L3.65151 4.08694C4.26203 4.01776 4.78842 3.6174 5.02818 3.03989L5.43596 2.05764C6.0214 0.647453 7.9786 0.647453 8.56404 2.05764L8.97182 3.03989C9.21158 3.6174 9.73797 4.01776 10.3485 4.08694L11.4864 4.2159C12.9235 4.37875 13.5171 6.18366 12.4675 7.19923L11.5013 8.13411C11.0766 8.54515 10.8888 9.15053 11.0046 9.73633" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg> <?php echo $wo['lang']['offer']; ?>
							</a>
						</li>
				<?php } ?>
			<?php } ?>
			
			<li class="list-group-item">
				<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.33366 11.5759V4.38403C9.33366 2.99665 8.35886 1.8025 7.00549 1.53197C5.68167 1.26734 4.31898 1.26734 2.99516 1.53197C1.64179 1.8025 0.666992 2.99665 0.666992 4.38403V11.5759C0.666992 12.4174 1.57546 12.9411 2.29766 12.5159L4.27054 11.3546C4.72128 11.0893 5.27937 11.0893 5.73011 11.3546L7.70299 12.5159C8.42519 12.9411 9.33366 12.4174 9.33366 11.5759Z" class="icon_main" stroke-linecap="round" stroke-linejoin="round"/><path d="M0.666992 11.5759C0.666992 12.4174 1.57546 12.9411 2.29766 12.5159L4.27054 11.3546C4.72128 11.0893 5.27937 11.0893 5.73011 11.3546L7.70299 12.5159C8.42519 12.9411 9.33366 12.4174 9.33366 11.5759V4.38403C9.33366 2.99665 8.35886 1.8025 7.00549 1.53197C5.68167 1.26734 4.31898 1.26734 2.99516 1.53197" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>
				<?php echo $wo['page_profile']['category']; ?>
			</li>
			<?php if (!empty($wo['page_profile']['page_sub_category'])) { ?>
			<li class="list-group-item">
				<svg width="10" height="14" viewBox="0 0 10 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.33366 11.5759V4.38403C9.33366 2.99665 8.35886 1.8025 7.00549 1.53197C5.68167 1.26734 4.31898 1.26734 2.99516 1.53197C1.64179 1.8025 0.666992 2.99665 0.666992 4.38403V11.5759C0.666992 12.4174 1.57546 12.9411 2.29766 12.5159L4.27054 11.3546C4.72128 11.0893 5.27937 11.0893 5.73011 11.3546L7.70299 12.5159C8.42519 12.9411 9.33366 12.4174 9.33366 11.5759Z" class="icon_main" stroke-linecap="round" stroke-linejoin="round"/><path d="M0.666992 11.5759C0.666992 12.4174 1.57546 12.9411 2.29766 12.5159L4.27054 11.3546C4.72128 11.0893 5.27937 11.0893 5.73011 11.3546L7.70299 12.5159C8.42519 12.9411 9.33366 12.4174 9.33366 11.5759V4.38403C9.33366 2.99665 8.35886 1.8025 7.00549 1.53197C5.68167 1.26734 4.31898 1.26734 2.99516 1.53197" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg>
				<?php echo $wo['page_profile']['page_sub_category']; ?>
			</li>
			<?php } ?>
			<?php 
			    $fields = Wo_GetCustomFields('page'); 
				if (!empty($fields)) {
					foreach ($fields as $key => $wo['field']) { 
						if (!empty($wo['page_profile']['fid_'.$wo['field']['id']])) {
							$text = $wo['page_profile']['fid_'.$wo['field']['id']];
							if ($wo['field']['type'] == 'selectbox') {
							     $options = @explode(',', $wo['field']['options']);
								foreach ($options as $key => $value) {
									if ($key + 1 == $wo['page_profile']['fid_'.$wo['field']['id']]) {
										$text = $options[$key];
									}
								}						
							}

						?>
						<li class="list-group-item">
							<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" title="<?php echo $wo['lang']['sub_category']; ?>"><path fill="currentColor" d="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"></path></svg>
							<?php echo $text; ?>
						</li>
			<?php } } } ?>
			<?php  if(!empty($wo['page_profile']['company'])) {  ?>
				<li class="list-group-item">
					<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" title="<?php echo $wo['lang']['company']; ?>"><path fill="currentColor" d="M18,15H16V17H18M18,11H16V13H18M20,19H12V17H14V15H12V13H14V11H12V9H20M10,7H8V5H10M10,11H8V9H10M10,15H8V13H10M10,19H8V17H10M6,7H4V5H6M6,11H4V9H6M6,15H4V13H6M6,19H4V17H6M12,7V3H2V21H22V7H12Z"></path></svg>
					<?php echo $wo['page_profile']['company']?>
				</li>
			<?php  }  ?>
			<?php if(!empty($wo['page_profile']['address'])) {  ?>
				<li class="list-group-item">
					<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3337 6.45032C11.3337 9.46045 8.94584 13 6.00033 13C3.05481 13 0.666992 9.46045 0.666992 6.45032C0.666992 3.44019 3.05481 1 6.00033 1C8.94584 1 11.3337 3.44019 11.3337 6.45032Z" stroke="currentColor"></path><path d="M4.33301 5.99998C4.33301 5.07951 5.0792 4.33331 5.99967 4.33331C6.92015 4.33331 7.66634 5.07951 7.66634 5.99998C7.66634 6.92045 6.92015 7.66665 5.99967 7.66665C5.0792 7.66665 4.33301 6.92045 4.33301 5.99998Z" class="icon_main"></path></svg>
					<span class="pointer" onclick="$('.user-location-frame').fadeToggle();"><?php echo $wo['lang']['located_in']; ?> <?php echo $wo['page_profile']['address'];?></span>
					<?php if (!empty($wo['config']['google_map_api']) && $wo['config']['google_map'] == 1) { ?>
						<iframe class="user-location-frame" width="100%" frameborder="0" style="border:0;margin-top: 10px;display: none;" src="https://www.google.com/maps/embed/v1/place?key=<?php echo $wo['config']['google_map_api']; ?>&q=<?php echo $wo['page_profile']['address'];?>&language=en"></iframe>
					<?php } ?>
					<?php if ($wo['config']['yandex_map'] == 1) { ?>
						<div id="place" <?php echo($wo['config']['yandex_map'] == 1 ? 'style="width: 100%; height: 300px; padding: 0; margin: 10px 0 0;"' : '') ?>></div>
						<script type="text/javascript">
		        			<?php if (!empty($wo['page_profile']['address'])) { ?>
		        				setTimeout(function () {
		        					var myMap;
							        ymaps.geocode("<?php echo($wo['page_profile']['address']); ?>").then(function (res) {
							            myMap = new ymaps.Map('place', {
							                center: res.geoObjects.get(0).geometry.getCoordinates(),
							                zoom : 10
							            });
							            myMap.geoObjects.add(new ymaps.Placemark(res.geoObjects.get(0).geometry.getCoordinates(), {
									            balloonContent: ''
									        }));
							        });
		        				},1000);
					        <?php } ?>
		        		</script>
					<?php } ?>
				</li>
			<?php } ?>
			<?php if(!empty($wo['page_profile']['website'])) {  ?>
				<li class="list-group-item website">
					<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.09091H15L9.16043 1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15 9.90909L1 9.90909L6.83957 15" class="icon_main" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>
					<a href="<?php echo $wo['page_profile']['website']?>" target="_blank">
						<?php echo $wo['page_profile']['website']?>
					</a>
				</li>
			<?php } ?>
			<?php if(!empty($wo['page_profile']['facebook']) || !empty($wo['page_profile']['twitter']) || !empty($wo['page_profile']['instgram']) || !empty($wo['page_profile']['linkedin']) || !empty($wo['page_profile']['vk'])) { ?>
				<li class="list-group-item user-social-links">
					<?php  if(!empty($wo['page_profile']['twitter'])) {  ?>
					<a class="social-btn" href="https://twitter.com/<?php echo $wo['page_profile']['twitter']?>" target="_blank">
						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#1d9bf0" d="M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z"></path></svg>
					</a>
					<?php }  if(!empty($wo['page_profile']['instgram'])) {  ?>
					<a class="social-btn" rel="publisher" href="https://instagram.com/<?php echo $wo['page_profile']['instgram']?>" target="_blank">
						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#FE207A" d="M7.8,2H16.2C19.4,2 22,4.6 22,7.8V16.2A5.8,5.8 0 0,1 16.2,22H7.8C4.6,22 2,19.4 2,16.2V7.8A5.8,5.8 0 0,1 7.8,2M7.6,4A3.6,3.6 0 0,0 4,7.6V16.4C4,18.39 5.61,20 7.6,20H16.4A3.6,3.6 0 0,0 20,16.4V7.6C20,5.61 18.39,4 16.4,4H7.6M17.25,5.5A1.25,1.25 0 0,1 18.5,6.75A1.25,1.25 0 0,1 17.25,8A1.25,1.25 0 0,1 16,6.75A1.25,1.25 0 0,1 17.25,5.5M12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z"></path></svg>
					</a>
					<?php }  if(!empty($wo['page_profile']['facebook'])) {  ?>
					<a class="social-btn" rel="publisher" href="https://www.facebook.com/<?php echo $wo['page_profile']['facebook']?>" target="_blank">
						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#0062E0" d="M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z"></path></svg>
					</a>
					<?php }  if(!empty($wo['page_profile']['linkedin'])) {  ?>
					<a class="social-btn" rel="publisher" href="https://www.linkedin.com/profile/view?id=<?php echo $wo['page_profile']['linkedin']?>" target="_blank">
						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#0a66c2" d="M19 3A2 2 0 0 1 21 5V19A2 2 0 0 1 19 21H5A2 2 0 0 1 3 19V5A2 2 0 0 1 5 3H19M18.5 18.5V13.2A3.26 3.26 0 0 0 15.24 9.94C14.39 9.94 13.4 10.46 12.92 11.24V10.13H10.13V18.5H12.92V13.57C12.92 12.8 13.54 12.17 14.31 12.17A1.4 1.4 0 0 1 15.71 13.57V18.5H18.5M6.88 8.56A1.68 1.68 0 0 0 8.56 6.88C8.56 5.95 7.81 5.19 6.88 5.19A1.69 1.69 0 0 0 5.19 6.88C5.19 7.81 5.95 8.56 6.88 8.56M8.27 18.5V10.13H5.5V18.5H8.27Z"></path></svg>
					</a>
					<?php } ?>
					<?php  if(!empty($wo['page_profile']['vk'])) {  ?>
					<a class="social-btn" rel="publisher" href="https://vk.com/<?php echo $wo['page_profile']['vk'];?>" target="_blank">
						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#0077ff"><path d="M21.579 6.855c.14-.465 0-.806-.662-.806h-2.193c-.558 0-.813.295-.953.619 0 0-1.115 2.719-2.695 4.482-.51.513-.743.675-1.021.675-.139 0-.341-.162-.341-.627V6.855c0-.558-.161-.806-.626-.806H9.642c-.348 0-.558.258-.558.504 0 .528.79.65.871 2.138v3.228c0 .707-.127.836-.407.836-.743 0-2.551-2.729-3.624-5.853-.209-.607-.42-.852-.98-.852H2.752c-.627 0-.752.295-.752.619 0 .582.743 3.462 3.461 7.271 1.812 2.601 4.363 4.011 6.687 4.011 1.393 0 1.565-.313 1.565-.853v-1.966c0-.626.133-.752.574-.752.324 0 .882.164 2.183 1.417 1.486 1.486 1.732 2.153 2.567 2.153h2.192c.626 0 .939-.313.759-.931-.197-.615-.907-1.51-1.849-2.569-.512-.604-1.277-1.254-1.51-1.579-.325-.419-.231-.604 0-.976.001.001 2.672-3.761 2.95-5.04z"></path></svg>
					</a>
					<?php } if (!empty($wo['page_profile']['youtube'])) { ?>
					<a class="social-btn" href="https://www.youtube.com/<?php echo $wo['page_profile']['youtube']?>" target="_blank">
						<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="#FF0000" d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z"></path></svg>
                    </a>
					<?php } ?>
				</li>
			<?php } ?>
		</ul>
		
		<?php if(!empty($wo['page_profile']['page_description'])) {  ?>
			<div class="page-margin wow_content">
				<div class="wo_page_hdng profile_hdng_side pag_neg_padd">
					<div class="wo_page_hdng_innr"><?php echo $wo['lang']['about']; ?></div>
				</div>
				<p class="page-margin mt-0"><?php echo $wo['page_profile']['page_description']?></p>
			</div>
		<?php } ?>
    
		<?php if($wo['loggedin'] == true) {  ?>
		<?php
			$pages = Wo_PageSug(1);
			if (count($pages) != 0) {
		?>
			<ul class="wow_content sidebar-conatnier" id="sidebar-page-list-container">
				<li class="list-group-item text-muted hidden" contenteditable="false"><?php echo $wo['lang']['pages_you_may_like']; ?></li>
				<div class="wo_page_hdng profile_hdng_side pag_neg_padd">
					<div class="wo_page_hdng_innr"><?php echo $wo['lang']['pages_you_may_like']; ?></div>
				</div>
				<div class="sidebar">
					<div class="sidebar-pages-may-know-container">
						<?php 
							foreach ($pages as $wo['PageList']) {
							$wo['PageList']['user_name'] = $wo['PageList']['name'];
								echo Wo_LoadPage('sidebar/sidebar-home-page-list');
							} 
						?>
					</div>
					<div class="clear"></div>
				</div>
			</ul>
		<?php } ?>
		<?php } ?>
    
		<?php 
		$sidebar_ad = Wo_GetAd('sidebar', false);
		if (!empty($sidebar_ad)) {?>
			<ul class="list-group sidebar-ad">
				<?php echo $sidebar_ad; ?>
			</ul>
		<?php } ?>
		<?php echo Wo_LoadPage('footer/sidebar-footer')?>
	</div>
</div>

<?php if ($wo['config']['offer_system'] == 1) { ?>
<script src="https://cdn.jsdelivr.net/npm/jquery-ui-timepicker-addon@1.6.3/dist/jquery-ui-timepicker-addon.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
    var thumb_drop_block = $("[data-block='thumdrop-zone']");
    if (typeof(window.FileReader) == 'undefined') {
      thumb_drop_block.find('.thumbnail-rendderer div').text('Drag drop is not supported in your browser!');
    }
    else{
      thumb_drop_block[0].ondragover = function() {
          thumb_drop_block.addClass('hover');
          return false;
      };
          
      thumb_drop_block[0].ondragleave = function() {
          thumb_drop_block.removeClass('hover');
          return false;
      };

      thumb_drop_block[0].ondrop = function(event) {
          event.preventDefault();
          thumb_drop_block.removeClass('hover');
          var file = event.dataTransfer.files;
          $("#thumbnail_two").prop('files', file);
          $("#wow_fcov_img_holder").html("<img src='" + window.URL.createObjectURL(event.dataTransfer.files[0]) + "' alt='Picture'>")
      };
    }
    $("#thumbnail_two").change(function(event) {
      $("#wow_fcov_img_holder").html("<img src='" + window.URL.createObjectURL(this.files[0]) + "' alt='Picture'>")
    });
 });
	function OpenCreateOfferModal() {
		$('#create-offer-modal').modal('show');
	}
</script>
<div class="modal fade sun_modal" id="create-offer-modal" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="wow_pops_head">
				<svg height="100px" preserveAspectRatio="none" version="1.1" viewBox="0 0 300 100" width="300px" xmlns="http://www.w3.org/2000/svg"><path d="M30.913,43.944c0,0,42.911-34.464,87.51-14.191c77.31,35.14,113.304-1.952,146.638-4.729 c48.654-4.056,69.94,16.218,69.94,16.218v54.396H30.913V43.944z" fill="currentColor" opacity="0.6"></path> <path d="M-35.667,44.628c0,0,42.91-34.463,87.51-14.191c77.31,35.141,113.304-1.952,146.639-4.729 c48.653-4.055,69.939,16.218,69.939,16.218v54.396H-35.667V44.628z" fill="currentColor" opacity="0.6"></path> <path d="M-34.667,62.998c0,0,56-45.667,120.316-27.839C167.484,57.842,197,41.332,232.286,30.428 c53.07-16.399,104.047,36.903,104.047,36.903l1.333,36.667l-372-2.954L-34.667,62.998z" fill="currentColor"></path></svg>
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>
				<h4><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z"></path></svg> <?php echo $wo['lang']['create_offer'] ?></h4>
			</div>
			<form class="create-offer-form form-horizontal" method="post">
				<div class="modal-body">
					<div class="app-offer-alert"></div>
					<div class="clear"></div>
					<div class="row">
						<div class="col-lg-6">
							<div class="wow_form_fields">
								<label for="discount_type"><?php echo $wo['lang']['type'] ?></label>
								<select id="discount_type" name="discount_type">
									<option value="discount_percent"><?php echo $wo['lang']['discount_percent'] ?></option>
									<option value="discount_amount"><?php echo $wo['lang']['discount_amount'] ?></option>
									<option value="buy_get_discount"><?php echo $wo['lang']['buy_get_discount'] ?></option>
									<option value="spend_get_off"><?php echo $wo['lang']['spend_get_off'] ?></option>
									<option value="free_shipping"><?php echo $wo['lang']['free_shipping'] ?></option>
								</select>
							</div>
						</div>
						<div class="col-lg-6 discount_percent_input">
							<div class="wow_form_fields">
								<label for="discount_percent"><?php echo $wo['lang']['discount_percent'] ?></label>
								<select id="discount_percent" name="discount_percent">
									<?php for ($i=1; $i < 100 ; $i++) {  ?>
										<option value="<?php echo $i ?>"><?php echo $i ?>%</option>
									<?php } ?>
								</select>
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-12 discount_amount_input" style="display: none;">
							<div class="wow_form_fields">
								<label for="discount_amount"><?php echo $wo['lang']['discount_amount'] ?></label>
								<input id="discount_amount" name="discount_amount" type="text" value="">
							</div>
						</div>
					</div>
					<div class="row buy_get_discount_input" style="display: none;">
						<div class="col-lg-6">
							<div class="wow_form_fields">
								<label for="buy"><?php echo $wo['lang']['buy'] ?></label>
								<input id="buy" name="buy" type="text" value="">
							</div>
						</div>
						<div class="col-lg-6">
							<div class="wow_form_fields">
								<label for="get"><?php echo $wo['lang']['get'] ?></label>
								<input id="get" name="get" type="text" value="">
							</div>
						</div>
					</div>
					<div class="row spend_get_off_input" style="display: none;">
						<div class="col-lg-6">
							<div class="wow_form_fields">
								<label for="spend"><?php echo $wo['lang']['spend'] ?></label>
								<input id="spend" name="spend" type="text" value="">
							</div>
						</div>
						<div class="col-lg-6">
							<div class="wow_form_fields">
								<label for="amount_off"><?php echo $wo['lang']['amount_off'] ?></label>
								<input id="amount_off" name="amount_off" type="text" value="">
							</div>
						</div>
					</div>
					<div class="row">
						<div class="col-lg-9">
							<div class="wow_form_fields">
								<label for="discounted_items"><?php echo $wo['lang']['discounted_items'] ?></label>
								<input id="discounted_items" name="discounted_items" type="text" value="" maxlength="100">
								<span class="help-block"><?php echo $wo['lang']['items_services'] ?></span>
							</div>
						</div>
						<div class="col-lg-3">
							<div class="wow_form_fields">
								<label for="currency"><?php echo $wo['lang']['currency'] ?></label>
								<select id="currency" name="currency">
									<?php foreach ($wo['currencies'] as $key => $currency) { ?>
										<option value="<?php echo $key; ?>"><?php echo $currency['text'] ?> (<?php echo $currency['symbol'] ?>)</option>
									<?php } ?>
								</select>
							</div>
						</div>
					</div>
					<div class="wow_form_fields">
						<label for="description"><?php echo $wo['lang']['description'] ?></label>
						<textarea name="description" rows="3" id="description"></textarea>
					</div>
					<div class="wow_form_fields">
						<label for="event-end-date"><?php echo $wo['lang']['end_date']; ?></label>
						<div class="row">
							<div class="col-md-6">
								<input type="text" class="date1" name="expire_date" id="event-end-date">
							</div>
							<div class="col-md-6">
								<input type="text" class="time1" name="expire_time">
							</div>
						</div>
					</div>
					<div class="wow_form_fields">
						<label><?php echo $wo['lang']['thumbnail']; ?></label>
						<div class="wow_fcov_image" data-block="thumdrop-zone">
							<div id="wow_fcov_img_holder">
								<img src="<?php echo $wo['config']['theme_url'];?>/img/ad_pattern.png">
							</div>
							<div class="upload_ad_image" onclick="document.getElementById('thumbnail_two').click(); return false">
								<div class="upload_ad_image_content">
									<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z"></path></svg> <?php echo $wo['lang']['drop_img_here']; ?> <?php echo $wo['lang']['or']; ?> <?php echo $wo['lang']['browse_to_upload']; ?>
								</div>
							</div>
						</div>
					</div>
					<div class="publisher-hidden-option">
						<div id="progress" class="create-offer-progress">
							<span id="percent" class="create-product-percent <?php echo Wo_RightToLeft('pull-right');?>">0%</span>
							<div class="progress">
								<div id="bar" class="progress-bar active create-product-bar"></div> 
							</div>
							<div class="clear"></div>
						</div>
					</div>
					<input type="file" class="hidden" id="thumbnail_two" name="thumbnail" accept="image/*">
					<input type="hidden" name="page_id" id="page_id" class="form-control input-md" value="<?php echo $wo['page_profile']['page_id'];?>">
					<input type="hidden" name="hash_id" value="<?php echo Wo_CreateSession();?>">
				</div>
				<div class="form-group last-sett-btn modal-footer">
					<button type="submit" class="btn btn-main btn-mat add_wow_loader"><?php echo $wo['lang']['publish'] ?></button>
				</div>
			</form>
		</div>
	</div>
</div>
<?php } ?>

<div class="modal fade" id="report_page" role="dialog">
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></span></button>
				<h4 class="modal-title">
					<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12" y2="17"></line></svg>
					<?php echo $wo['lang']['report_page']; ?>
				</h4>
			</div>
			<div class="modal-body">
				<textarea class="form-control" placeholder="Type text" dir="auto" rows="4" id="report-page-text-<?php echo $wo['page_profile']['page_id']; ?>"></textarea>
			</div>
			<div class="modal-footer">
				<div class="ball-pulse"><div></div><div></div><div></div></div>
				<button type="button" class="btn btn-main btn-mat" id="report-page-button" onclick="Wo_ReportPage(<?php echo $wo['page_profile']['page_id']; ?>,true)" >
					<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
					<?php echo $wo['lang']['send']; ?>
				</button>
			</div>
		</div>
	</div>
</div>
<div class="modal fade" id="rate_page" role="dialog">
	<div class="modal-dialog wow_mat_mdl">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></span></button>
				<h4 class="modal-title"><?php echo $wo['lang']['rate']; ?> <?php echo $wo['page_profile']['page_title'];?></h4>
			</div>
			<div class="modal-body">
				<textarea class="form-control" placeholder="<?php echo $wo['lang']['your_review']; ?>" dir="auto" rows="5" id="rating_review"></textarea>
				<input type="hidden" id="rating_value" >
			</div>
			<div class="modal-footer">
				<div class="ball-pulse"><div></div><div></div><div></div></div>
				<button type="button" class="btn btn-main btn-mat" id="rate-page-button" onclick="Wo_RatePage()" ><?php echo $wo['lang']['save']; ?></button>
			</div>
		</div>
	</div>
</div>
<div class="modal fade in" id="page_rated" role="dialog">
	<div class="modal-dialog">
      <div class="modal-content">
        <p style="text-align: center;padding: 30px 20px;font-family: Hind,Arial;font-size: 16px;">
          <i class="fa fa-check" aria-hidden="true" style="color: green;"></i>      
          <?php echo $wo['lang']['page_rated']; ?>
        </p>
      </div>
    </div>
</div>
<!-- JS Pages functions -->
<script>
	$(document).on('change', '#discount_type', function(event) {
		var type = $(this).val();
		$('.discount_percent_input').slideUp('slow');
		$('.discount_amount_input').slideUp('slow');
		$('.buy_get_discount_input').slideUp('slow');
		$('.spend_get_off_input').slideUp('slow');
		if (type == 'discount_percent') {
			$('.discount_percent_input').slideDown('slow');
		}
		else if(type == 'discount_amount'){
            $('.discount_amount_input').slideDown('slow');
		}
		else if(type == 'buy_get_discount'){
            $('.buy_get_discount_input').slideDown('slow');
            $('.discount_percent_input').slideDown('slow');
		}
		else if(type == 'spend_get_off'){
            $('.spend_get_off_input').slideDown('slow');
		}
	});


$(document).ready(function() {

	$('form.create-offer-form').ajaxForm({
	        url: Wo_Ajax_Requests_File() + '?f=offer&s=create_offer',
	        beforeSend: function() {
	         var percentVal = '0%';
	         create_bar.width(percentVal);
	         create_percent.html(percentVal);
	         
	         
	          $('.wo_settings_page').find('.last-sett-btn .ball-pulse').fadeIn(100);
	        },
	        uploadProgress: function (event, position, total, percentComplete) {
	           var percentVal = percentComplete + '%';
	           create_bar.width(percentVal);
	           $('.create-offer-progress').slideDown(200);
	           create_percent.html(percentVal);
	        },
	        success: function(data) {
	         if (data.status == 200) {
	           $('.app-offer-alert').html("<div class='alert alert-success'><?php echo($wo['lang']['offer_successfully_created']) ?></div>");
		       $('.app-offer-alert').find('.alert-success').fadeIn(300);
		       setTimeout(function (argument) {
		        $('.app-offer-alert').find('.alert-success').fadeOut(300);
		        window.location.reload(true);

		       },3000);
	         } else {
	         	$('#create-offer-modal').animate({
			        scrollTop: $('html, body').offset().top //#DIV_ID is an example. Use the id of your destination on the page
			    });
	             $('.app-offer-alert').html('<div class="alert alert-danger">' + data.error + '</div>');
	             $('.alert-danger').fadeIn(300);
	             setTimeout(function (argument) {
	             	$('.alert-danger').fadeOut(300);
	             },3000);
	         }
	         $('.wo_settings_page').find('.last-sett-btn .ball-pulse').fadeOut(100);
	        }
	    });



		$(".date1").flatpickr({
			dateFormat: "Y-m-d",
			altInput: true,
			altFormat: "F j, Y",
			minDate: "today",
		});
		
		$(".time1").flatpickr({
			enableTime: true,
			noCalendar: true,
			dateFormat: "H:i",
		});

});



	function OpenCreateJobModal() {
		$('#create-job-modal').modal('show');
	}
$(function () {
  if($(window).width() > 600) {
    $(".user-avatar").hover(function () {
      $('.profile-avatar-changer').fadeIn(100);
    }, function () {
      $('.profile-avatar-changer').fadeOut(100);
    });
  }
  if($(window).width() > 600) {
    $(".user-cover").hover(function () {
      $('.profile-cover-changer').fadeIn(100);
    }, function () {
      $('.profile-cover-changer').fadeOut(100);
    });
  }
  $('form.profile-avatar-changer').ajaxForm({
    url: Wo_Ajax_Requests_File() + '?f=update_page_avatar_picture',

    beforeSend: function () {
    	$('.profile_avatar').fadeOut(100);
      $('.user-avatar-uploading-container,.user-avatar-uploading-progress').fadeIn(200);
    },
    success: function (data) {
    	$('.profile_avatar').fadeIn(100);
      if(data.status == 200) {
        $('[id^=page-avatar-image]').attr("src", data.img);
      }
      $('.user-avatar-uploading-container, .user-avatar-uploading-progress').fadeOut(200);
    }
  });

  $('form.profile-cover-changer').ajaxForm({
    url: Wo_Ajax_Requests_File() + '?f=update_page_cover_picture',

    beforeSend: function () {
    	$('.profile_cover').fadeOut(100);
      $('.user-cover-uploading-container,.user-cover-uploading-progress').fadeIn(200);
    },
    success: function (data) {
    	$('.profile_cover').fadeIn(100);
      if(data.status == 200) {
      	$('.user-cover').find('img').attr("src", data.img);
        // $('[id^=cover-image]').attr("src", data.img);
      }
      $('.user-cover-uploading-container,.user-cover-uploading-progress').fadeOut(200);
    }
  });
  <?php if ($wo['loggedin'] == true): ?>
    <?php if (!Wo_IsPageRatingExists($wo['page_profile']['page_id'],$wo['user']['id'])): ?>
      $(".rate-page").click(function(event) {
        $("#rate_page").modal().find('#rating_value').val($(this).attr('data-val'));
      });
    <?php else: ?>
      $(".rate-page").click(function(event) {
        $("#page_rated").modal();
        Wo_Delay(function(){
         $("#page_rated").modal('hide'); 
        },2000)
        return false;
      });
    <?php endif; ?>
  <?php endif;?>
});

  

function Wo_ReportPage(id = false,report = true){
    var report_text = $("#report-page-text-<?php echo $wo['page_profile']['page_id']; ?>").val();
    if (!id) {return false;}
    else if(report == true){
      if (!report_text) {return false;}  
    }
	$('#report_page').find('.modal-footer .ball-pulse').fadeIn(100);
    $.ajax({
        url: Wo_Ajax_Requests_File() + '?f=reports&s=report_page',
        type: 'POST',
        dataType: 'json',
        data: {text:report_text,page:id}
    })
    .done(function(data) {
        if(data.status == 200 && data.code == 0){
            $('#report_status').replaceWith('\
                <li id="report_status" class="list-group-item pointer" onclick="$(\'#report_page\').modal(\'show\');">\
                    <span class="menu-item"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12" y2="17"></line></svg>\
                    <?php echo $wo['lang']['report_page']; ?></span>\
                </li>');
        }

        else if (data.status == 200 && data.code == 1) {
            $("#report-page-text-<?php echo $wo['page_profile']['page_id']; ?>").val('');
            $("#report_page").modal('hide');
            $('#report_status').replaceWith('\
                <li id="report_status" class="list-group-item pointer" onclick="Wo_ReportPage(<?php echo $wo['page_profile']['page_id']; ?>,false);">\
                    <span class="menu-item"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle"><path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12" y2="17"></line></svg>\
                    <?php echo $wo['lang']['unreport']; ?></span>\
                </li>');
        }
        $('#report_page').find('.modal-footer .ball-pulse').fadeOut(100);
    })
    .fail(function() {
        console.log("error");
    })
}

function Wo_UpdateProfileAvatar() {
  $("form.profile-avatar-changer").submit();
}

function Wo_UpdateProfileCover() {
  $("form.profile-cover-changer").submit();
}

function Wo_RatePage(self){

  $.ajax({
    url: Wo_Ajax_Requests_File() + '?f=pages&s=rate_page',
    type: 'POST',
    dataType: 'json',
    data: {text: $("#rating_review").val(),page_id:'<?php echo $wo['page_profile']['page_id'];?>',val:$("#rating_value").val()},
  })
  .done(function(data) {
    if (data.status == 200) {
      $("#rate_page").modal('hide');
      location.reload();
    }
    Wo_progressIconLoader($("#rate-page-button"));
  })
  .fail(function() {
    console.log("error");
  })
}

function Wo_LoadPageReviews(self = false){
  if (!self) {
    return false;
  }
  var preview_id = ($('[data-user-review]').length > 0) ? $('[data-user-review]').last().attr('data-user-review') : 0;
  $.ajax({
    url: Wo_Ajax_Requests_File(),
    type: 'GET',
    dataType: 'json',
    data: {f: 'pages',s:'load_reviews',page:'<?php echo $wo['page_profile']['page_id'];?>',after_id:preview_id},
  })
  .done(function(data) {
    if (data.status == 200) {
      $("#page_reviews_cont").append(data.html);
    }
    else{
      $(self).fadeIn('fast', function() {
        $(this).remove();
      });
    }
  })
  .fail(function() {
    console.log("error");
  })
}
</script>
<?php if (!empty($wo['page_profile']['background_image']) && $wo['page_profile']['background_image_status'] == 1) { ?>
<style>
  body {
    background: url(<?php echo Wo_GetMedia($wo['page_profile']['background_image']); ?>) fixed !important;
    background-size:100% auto;
  }
</style>
<?php } ?>

<?php if ($wo['config']['job_system'] == 1) { ?>
<div class="modal fade sun_modal" id="create-job-modal" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="wow_pops_head">
				<svg height="100px" preserveAspectRatio="none" version="1.1" viewBox="0 0 300 100" width="300px" xmlns="http://www.w3.org/2000/svg"><path d="M30.913,43.944c0,0,42.911-34.464,87.51-14.191c77.31,35.14,113.304-1.952,146.638-4.729 c48.654-4.056,69.94,16.218,69.94,16.218v54.396H30.913V43.944z" fill="currentColor" opacity="0.6"></path> <path d="M-35.667,44.628c0,0,42.91-34.463,87.51-14.191c77.31,35.141,113.304-1.952,146.639-4.729 c48.653-4.055,69.939,16.218,69.939,16.218v54.396H-35.667V44.628z" fill="currentColor" opacity="0.6"></path> <path d="M-34.667,62.998c0,0,56-45.667,120.316-27.839C167.484,57.842,197,41.332,232.286,30.428 c53.07-16.399,104.047,36.903,104.047,36.903l1.333,36.667l-372-2.954L-34.667,62.998z" fill="currentColor"></path></svg>
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>
				<h4><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M10,2H14A2,2 0 0,1 16,4V6H20A2,2 0 0,1 22,8V19A2,2 0 0,1 20,21H4C2.89,21 2,20.1 2,19V8C2,6.89 2.89,6 4,6H8V4C8,2.89 8.89,2 10,2M14,6V4H10V6H14Z"></path></svg> <?php echo $wo['lang']['create_job'] ?></h4>
			</div>
			<form class="create-job-form form-horizontal" method="post">
				<div class="modal-body">
					<div class="wo_create_job_box">
						<div class="app-general-alert setting-update-alert"></div>
						<div class="clear"></div>
						<div class="row">
							<div class="col-lg-6">
								<div class="wow_form_fields">
									<label for="job_title"><?php echo $wo['lang']['job_title'] ?></label>
									<input id="job_title" name="job_title" type="text" value="">
								</div>
							</div>
							<div class="col-lg-6">
								<div class="wow_form_fields">
									<label for="location"><?php echo $wo['lang']['location']; ?></label>
									<input id="location" class="job_location" name="location" type="text" value="<?php echo $wo['user']['address'];?>">
									<?php if ($wo['config']['yandex_map'] == 1) { ?>
										<div class="yandex_search_job"></div>
									<?php } ?>
								</div>
							</div>
						</div>
						<div class="wow_form_fields">
							<label><?php echo $wo['lang']['salary_range'] ?></label>
							<div class="wo_create_job_box_flex">
								<div class="sun_input">
									<input id="minimum" name="minimum" type="text" placeholder="<?php echo $wo['config']['currency_symbol_array'][$wo['config']['currency']] .' '. $wo['lang']['minimum'] ?>" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
								</div>
								<div class="sun_input">
									<input id="maximum" name="maximum" type="text" placeholder="<?php echo $wo['config']['currency_symbol_array'][$wo['config']['currency']] .' '. $wo['lang']['maximum'] ?>" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
								</div>
								<div class="sun_input">
									<select id="currency" name="currency">
										<?php foreach ($wo['currencies'] as $key => $currency) { ?>
											<option value="<?php echo $key; ?>"><?php echo  $currency['text'] ?> (<?php echo  $currency['symbol'] ?>)</option>
										<?php } ?>
									</select>
								</div>
								<div class="sun_input">
									<select id="salary_date" name="salary_date">
										<option value="per_hour"><?php echo $wo['lang']['per_hour'] ?></option>
										<option value="per_day"><?php echo $wo['lang']['per_day'] ?></option>
										<option value="per_week"><?php echo $wo['lang']['per_week'] ?></option>
										<option value="per_month"><?php echo $wo['lang']['per_month'] ?></option>
										<option value="per_year"><?php echo $wo['lang']['per_year'] ?></option>
									</select>
								</div>
							</div>
						</div>
						<div class="row">
							<div class="col-lg-6">
								<div class="wow_form_fields">
									<label for="job_type"><?php echo $wo['lang']['job_type'] ?></label>
									<select id="job_type" name="job_type">
										<option value="full_time"><?php echo $wo['lang']['full_time'] ?></option>
										<option value="part_time"><?php echo $wo['lang']['part_time'] ?></option>
										<option value="internship"><?php echo $wo['lang']['internship'] ?></option>
										<option value="volunteer"><?php echo $wo['lang']['volunteer'] ?></option>
										<option value="contract"><?php echo $wo['lang']['contract'] ?></option>
									</select>
								</div>
							</div>
							<div class="col-lg-6">
								<div class="wow_form_fields">
									<label for="category"><?php echo $wo['lang']['category']; ?></label>
									<select name="category" id="category">
										<?php foreach ($wo['job_categories'] as $category_id => $category_name) {?>
											<option value="<?php echo $category_id?>"><?php echo $category_name; ?></option>
										<?php } ?>
									</select>
								</div>
							</div>
						</div>
						<div class="wow_form_fields">
							<label for="description"><?php echo $wo['lang']['description']; ?></label>
							<textarea name="description" rows="2" id="description"></textarea>
							<span class="help-block"><?php echo $wo['lang']['job_des_text'] ?></span>
						</div>
						
						<div class="setting-panel job-setting-panel">
							<div class="sun_input">
								<label><?php echo $wo['lang']['questions'] ?></label>
								<div class="sun_input">
									<a href="javascript:void(0)" class="wo_create_job_qstn" id="add_new_question"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus-circle"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg> <?php echo $wo['lang']['add_question']; ?></a>
									<div class="">
										<div id="question_one_parent"></div>
										<div id="question_two_parent"></div>
										<div id="question_three_parent"></div>
									</div>
								</div>
							</div>
							<div class="clear"></div>
							<div class="th-alert">
								<label for="job_add_iamge"><?php echo $wo['lang']['job_add_iamge'] ?></label> 
								<div class="wo_create_job_box_img">
									<div class="main prv-img pointer wo_create_job_box_img" id="select-img" data-block="thumdrop-zone">
										<div class="thumbnail-rendderer">
											<img src="<?php echo($wo['page_profile']['cover']) ?>">
										</div>
									</div>
									<div class="row wo_create_job_box_img_btns">
										<div class="col-md-6">
											<button type="button" class="btn btn-main form-control" id="use_upload_photo"><?php echo $wo['lang']['browse_to_upload'] ?></button>
										</div>
										<div class="col-md-6">
											<button type="button" class="btn btn-main form-control" id="use_cover_photo"><?php echo $wo['lang']['use_cover_photo'] ?></button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>

					<div class="publisher-hidden-option">
						<div id="progress" class="create-product-progress">
							<span id="percent" class="create-product-percent <?php echo Wo_RightToLeft('pull-right');?>">0%</span>
							<div class="progress">
								<div id="bar" class="progress-bar active create-product-bar"></div> 
							</div>
							<div class="clear"></div>
						</div>
					</div>

					<input type="file" class="hidden" id="thumbnail" name="thumbnail" accept="image/*">
					<input type="text" class="hidden" id="image_type" name="image_type" value="cover">
					<input type="hidden" name="lat" id="lat-job" class="form-control input-md" value="">
					<input type="hidden" name="lng" id="lng-job" class="form-control input-md" value="">
					<input type="hidden" name="page_id" id="page_id" class="form-control input-md" value="<?php echo $wo['page_profile']['page_id'];?>">
					<input type="hidden" name="hash_id" value="<?php echo Wo_CreateSession();?>">
				</div>
				<div class="form-group last-sett-btn modal-footer">
					<button type="submit" class="btn btn-main btn-mat add_wow_loader"><?php echo $wo['lang']['publish'] ?></button>
				</div>
			</form>
		</div>
	</div>
</div>

<script src="<?php echo $wo['config']['theme_url'];?>/javascript/bootstrap-tagsinput-latest/src/bootstrap-tagsinput.js"></script>

<script type="text/javascript">
	var question_one = '<div id="question_one_block" class="wo_create_job_qstn_block"><label><?php echo $wo['lang']['question_one'] ?></label><button type="button" class="close" onclick="HideQuestion(\'one\')"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button><select class="form-control" name="question_one_type" id="question_one_type"><option value="free_text_question"><?php echo $wo['lang']['free_text_question'] ?></option><option value="yes_no_question"><?php echo $wo['lang']['yes_no_question'] ?></option><option value="multiple_choice_question"><?php echo $wo['lang']['multiple_choice_question'] ?></option></select><br><textarea class="form-control" name="question_one" rows="3" id="question_one"></textarea><div id="question_one_answers_div" style="display: none;"><br><input class="form-control" type="text" name="question_one_answers" id="question_one_answers" placeholder="<?php echo $wo['lang']['add_an_answers'] ?>"></div></div>';
	var question_two = '<div id="question_two_block" class="wo_create_job_qstn_block"><label><?php echo $wo['lang']['question_two'] ?></label><button type="button" class="close" onclick="HideQuestion(\'two\')"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button><select class="form-control" name="question_two_type" id="question_two_type"><option value="free_text_question"><?php echo $wo['lang']['free_text_question'] ?></option><option value="yes_no_question"><?php echo $wo['lang']['yes_no_question'] ?></option><option value="multiple_choice_question"><?php echo $wo['lang']['multiple_choice_question'] ?></option></select><br><textarea class="form-control" name="question_two" rows="3" id="question_two"></textarea><div id="question_two_answers_div" style="display: none;"><br><input class="form-control" type="text" name="question_two_answers" id="question_two_answers" placeholder="<?php echo $wo['lang']['add_an_answers'] ?>"></div></div>';

	var question_three = '<div id="question_three_block" class="wo_create_job_qstn_block"><label><?php echo $wo['lang']['question_three'] ?></label><button type="button" class="close" onclick="HideQuestion(\'three\')"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button><select class="form-control" name="question_three_type" id="question_three_type"><option value="free_text_question"><?php echo $wo['lang']['free_text_question'] ?></option><option value="yes_no_question"><?php echo $wo['lang']['yes_no_question'] ?></option><option value="multiple_choice_question"><?php echo $wo['lang']['multiple_choice_question'] ?></option></select><br><textarea class="form-control" name="question_three" rows="3" id="question_three"></textarea><div id="question_three_answers_div" style="display: none;"><br><input class="form-control" type="text" name="question_three_answers" id="question_three_answers" placeholder="<?php echo $wo['lang']['add_an_answers'] ?>"></div></div>';


	function HideQuestion(type) {
		$('#question_'+type+'_block').remove();
		$('#add_new_question').css('display', 'block');
	}


	$(document).ready(function() {
		if (navigator.geolocation) {
	        var location = navigator.geolocation.getCurrentPosition(function (position) {
	            $("#lng-job").val(position.coords.longitude);
	            $("#lat-job").val(position.coords.latitude);
	        });
	    }

		$('form.create-job-form').on('keyup keypress', function(e) {
		  var keyCode = e.keyCode || e.which;
		  if (keyCode === 13) { 
		    e.preventDefault();
		    return false;
		  }
		});

		$('#add_new_question').click(function(event) {
			if ($('#question_one_block').is(":visible")) {
				if ($('#question_two_block').is(":visible")) {
					if ($('#question_three_block').is(":visible")) {
						$(this).css('display', 'none');
					}
					else{
						$('#question_three_parent').html(question_three);
						setTimeout(function (argument) {
							$("#question_three_answers").tagsinput({
						      maxTags: 10,
						    });
						},1000);
					}
				}
				else{
					$('#question_two_parent').html(question_two);
					setTimeout(function (argument) {
						$("#question_two_answers").tagsinput({
					      maxTags: 10,
					    });
					},1000);
				}
			}
			else{
				$('#question_one_parent').html(question_one);
				setTimeout(function (argument) {
					$("#question_one_answers").tagsinput({
				      maxTags: 10,
				    });
				},1000);
			}
		});


		$(document).on('change', '#question_one_type', function(event) {
	    	if ($(this).val() == 'multiple_choice_question') {
		      	$('#question_one_answers_div').css('display', 'block');
		      }
		      else{
		      	$('#question_one_answers_div').css('display', 'none');
		      }
	    });

	    $(document).on('change', '#question_two_type', function(event) {
	    	if ($(this).val() == 'multiple_choice_question') {
		      	$('#question_two_answers_div').css('display', 'block');
		      }
		      else{
		      	$('#question_two_answers_div').css('display', 'none');
		      }
	    });

	    $(document).on('change', '#question_three_type', function(event) {
	    	if ($(this).val() == 'multiple_choice_question') {
		      	$('#question_three_answers_div').css('display', 'block');
		      }
		      else{
		      	$('#question_three_answers_div').css('display', 'none');
		      }
	    });

	    $("#select-img").click(function(event) {
	      $("#thumbnail").click()
	    });

	    $("#use_upload_photo").click(function(event) {
	      $("#thumbnail").click()
	    });

	    $("#thumbnail").change(function(event) {
	      $(".prv-img").html("<img src='" + window.URL.createObjectURL(this.files[0]) + "' alt='Picture'>");
	      $('#image_type').val('upload');
	    });

	    $("#use_cover_photo").click(function(event) {
	      $(".prv-img").html("<img src='<?php echo($wo['page_profile']['cover']) ?>' alt='Picture'>");
	      $('#image_type').val('cover');
	    });

	    var create_bar = $('.create-product-bar');
	    var create_percent = $('.create-product-percent');

	    $('form.create-job-form').ajaxForm({
	        url: Wo_Ajax_Requests_File() + '?f=job&s=create_job',
	        beforeSend: function() {
	         var percentVal = '0%';
	         create_bar.width(percentVal);
	         create_percent.html(percentVal);
	         
	         
	          $('form.create-job-form').find('.add_wow_loader').addClass('btn-loading');
	        },
	        uploadProgress: function (event, position, total, percentComplete) {
	           var percentVal = percentComplete + '%';
	           create_bar.width(percentVal);
	           $('.create-product-progress').slideDown(200);
	           create_percent.html(percentVal);
	        },
	        success: function(data) {
	         if (data.status == 200) {
	         	$('.app-general-alert').html("<div class='alert alert-success'><?php echo($wo['lang']['job_successfully_created']) ?></div>");
		       $('.app-general-alert').find('.alert-success').fadeIn(300);
		       setTimeout(function (argument) {
		        $('.app-general-alert').find('.alert-success').fadeOut(300);
		        window.location.reload(true);

		       },3000);
	         } else {
	         	$('#create-job-modal').animate({
			        scrollTop: $('html, body').offset().top //#DIV_ID is an example. Use the id of your destination on the page
			    });
	             $('.app-general-alert').html('<div class="alert alert-danger">' + data.error + '</div>');
	             $('.alert-danger').fadeIn(300);
	             setTimeout(function (argument) {
	             	$('.alert-danger').fadeOut(300);
	             },3000);
	         }
	         $('form.create-job-form').find('.add_wow_loader').removeClass('btn-loading');
	        }
	    });



	});

<?php if ($wo['config']['google_map'] == 1) { ?>
var create_pac_input = document.getElementById('location');
  (function pacSelectFirst(input) {
    // store the original event binding function
    var _addEventListenerProduct = (input.addEventListener) ? input.addEventListener : input.attachEvent;
    function addEventListenerWrapper(type, listener) {
      // Simulate a 'down arrow' keypress on hitting 'return' when no pac suggestion is selected,
      // and then trigger the original listener.
      if(type == "keydown") {
        var orig_listener_product = listener;
        listener = function (event) {
          var suggestion_selected_product = $(".pac-item-selected").length > 0;
          if(event.which == 13 && !suggestion_selected_product) {
            var simulated_downarrow_product = $.Event("keydown", {
              keyCode: 40,
              which: 40
            });
            orig_listener_product.apply(input, [simulated_downarrow_product]);
          }
          orig_listener_product.apply(input, [event]);
        };
      }
      // add the modified listener
      _addEventListenerProduct.apply(input, [type, listener]);
    }
    if(input.addEventListener)
      input.addEventListener = addEventListenerWrapper;
    else if(input.attachEvent)
      input.attachEvent = addEventListenerWrapper;
  })(create_pac_input);

  $(function () {
     var autocompleteproduct = new google.maps.places.Autocomplete(create_pac_input);
  });
<?php } ?>
<?php if ($wo['config']['yandex_map'] == 1) { ?>
	$(function() {
		$('.job_location').on( "keydown", function() {
			let self = this;
		  var myGeocoder = ymaps.geocode($(this).val());
      myGeocoder.then(
          function (res) {
          	if (res.geoObjects.getLength() == 0) {
          		$('.yandex_search_job').html('');
          	}
          	else{
          		let html = '';
          		for (var i = 0; i < res.geoObjects.getLength(); i++) {
          			html += '<p class="pointer" onclick="AddYandexResult(\'.job_location\',this,\'.yandex_search_job\')">'+res.geoObjects.get(i).properties.get('name')+'</p>';
              }
              $('.yandex_search_job').html(html);
          	}
          },
          function (err) {
              $('.yandex_search_job').html('');
          }
      );
		});
	});
<?php } ?>
</script>

<?php } ?>