
											<ul class='side_menu'>

											



												<li><a rel='nofollow'  href="<?php echo $website_url ;?>/">الرئيسية <span class='menu_number' >001</span></a></li>


												<li class="list_li" menu_open="0"> 	 



													<a  rel='nofollow'  menu_open="0" class="btn inactive menu_header" > الخدمات  <span class='menu_number' >002</span><span style='font-size:18px;' class=" las la-angle-down"></span> </a>

													<ul class='sub_menu' style="display: none;">

															 

														<?php 

														  mysqli_data_seek($services_cat_result,0);

																												  
														   /*بداية التكرار */  
														 while($services_cat_fetch = mysqli_fetch_array($services_cat_result)) {
   		 $services_cat_fetch = clean_array($services_cat_fetch);

															  

														  ?>

															 <a href="<?php echo $website_url ;?>/service/<?php echo $services_cat_fetch['id'] ?>/<?php echo url_dash($services_cat_fetch['title']); ?>"><?php echo $services_cat_fetch['title'] ?></a>

														

														  <?php } ?>

															 

													</ul>	

												</li>

												

												<?php 
												
													$last_i=0; 
													
													$keys = array_keys($_SESSION['menus']); // نحصل على كل المفاتيح كمصفوفة

													for ($i = 0; $i < count($keys); $i++) {
														$key = $keys[$i];
														$value = $_SESSION['menus'][$key];
														//echo "[$i] $key => $value<br>";
														$last_i=$i+3; 
												?>
												
												<li class="list_li" menu_open="0"> 	 



													<a  rel='nofollow'  menu_open="0" class="btn inactive menu_header" > <?php echo $value; ?>  <span class='menu_number' >00<?php echo $last_i;  ?></span> <span style='font-size:18px;' class=" las la-angle-down"></span> </a>

													<ul class='sub_menu' style="display: none;">


															<?php	
																// استخراج محتوى القوائم الجانبية																														
																$array=array_unique($_SESSION[$value]);
																foreach ($array as $x) {
																  $page=explode(',',$x);
																
															?>
															
															<?php if($_SESSION['pages_status'][$page[0]]==1 and $page[2]==0){?> <a href="<?php echo $website_url ;?>/<?php echo $page[0]; ?>/<?php echo str_replace(" ",'-',$page[1]); ?>"><?php echo $page[1]; ?></a>  
															
															<?php }elseif($_SESSION['pages_status'][$page[0]]==1 and $page[2]==1){ ?><a href="<?php echo $website_url ;?>/page/<?php echo $page[0]; ?>/<?php echo str_replace(" ",'-',$page[1]); ?>"><?php echo $page[1]; ?></a>   <?php } ?> 

															<?php } ?>


														

													</ul>	

												</li>
												
												<?php  } ?>											
												
												<?php	
												$array=$_SESSION['not_menued'];
												foreach ($array as $x) {
													$page=explode(',',$x);
												
													if($_SESSION['pages_status'][$page[0]]==1){ ?>
														<li><a rel='nofollow' href="<?php echo $website_url ;?>/<?php echo $page[0]; ?>/<?php echo str_replace(" ",'-',$page[1]); ?>"><span class='menu_number' >00<?php $last_i++; echo $last_i;  ?></span><?php echo $page[1]; ?></a>	</li>													
													<?php }?>
												<?php } ?>

							

			
											

												<?php //****************************** ايكونات التواصل الاجتماعى فى القائمة الجانبية ********************************************?>

												
											


												<li class="social_icon" style="display:block;bottom:-50px;text-align: left;margin-bottom: 0px;position: absolute;bottom: -2%;left: 5%;z-index:999">

                         

													<?php if($_SESSION['comp_face']!=''){ ?>

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive   lab la-facebook-f" target="_blank"  href="<?php echo $_SESSION['comp_face']?>" title='<?php echo $_SESSION['comp_title'];?> على الفيسبوك '></a>	

													<?php } if($_SESSION['comp_google']!=''){?>

													

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive  lab la-snapchat" target="_blank"  href="<?php echo $_SESSION['comp_google']?>" title='<?php echo $_SESSION['comp_title'];?> على جوجل بلاس'></a>

													<?php } if($_SESSION['comp_twitter']!=''){?>

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive  lab la-twitter" target="_blank"  href="<?php echo $_SESSION['comp_twitter']?>" title='<?php echo $_SESSION['comp_title'];?> على تويتر '></a>	

													<?php } if($_SESSION['comp_youtube']!=''){?>

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive  lab la-youtube" target="_blank"  href="<?php echo $_SESSION['comp_youtube'];?>" title='<?php echo $_SESSION['comp_title'];?> على يوتيوب'></a>	

													<?php } if($_SESSION['comp_instagram']!=''){?>

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive  lab la-instagram" target="_blank"  href="<?php echo $_SESSION['comp_instagram']?>" title='<?php echo $_SESSION['comp_title'];?> على انستجرام'></a>	

													<?php }  if($_SESSION['comp_pinterest']!=''){?>

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive  lab la-pinterest" target="_blank"  href="<?php echo $_SESSION['comp_pinterest']?>" title='<?php echo $_SESSION['comp_title'];?> على بينتريست'></a>	

													<?php } if($_SESSION['comp_linkedin']!=''){?>

													<a style='border:0'  rel='nofollow'  class="bottom_social  inactive  lab la-facebook-f" target="_blank"  href="<?php echo $_SESSION['comp_linkedin']?>" title='<?php echo $_SESSION['comp_title'];?> على لينكيد ان'></a>	

													<?php } ?>



												</li>

						

											</ul>

											

											

											  

						

						

										</div>

									</div>

								