<?php get_header(); ?>
<!-- если страница не 12 -->

<?php 

if ( is_page( array( 2 ) ) ) 

{ ?>


<?php } else { ?>


<?php 

if ( !is_page( array( 125000 ) ) ) 

{ ?>



<!-- контент -->


<?php 

if ( is_page( array( 142 ) ) ) 

{ ?>

			<?php
				// Start the Loop.
				while ( have_posts() ) : the_post();

					// Include the page content template.
					get_template_part( 'content', 'page' );

					// If comments are open or we have at least one comment, load up the comment template.
					
				endwhile;
			?>
<?php } else { ?>






<!--  -->




<div class="main-content">
					<div class="wrapper">
					<?php if ( in_category('27'))  {?>
						<div class="page-presentation page-uslugi">
							<div class="presentation__item presentation__item--large presentation-uslugi">

								<div class="presentation__title presentation__title--large">
									услуги
								</div>
								<div class="presentation__subtitle">
									Косметический сервис
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('28'))  {?>
						<div class="page-presentation page-action">
							<div class="presentation__item presentation__item--large presentation-uslugi">

								<div class="presentation__title presentation__title--large">
									услуги
								</div>
								<div class="presentation__subtitle">
									Ногтевой сервис
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('29'))  {?>
						<div class="page-presentation page-butik">
							<div class="presentation__item presentation__item--large presentation-uslugi">

								<div class="presentation__title presentation__title--large">
									услуги
								</div>
								<div class="presentation__subtitle">
									Парихмахерский сервис
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('30'))  {?>
						<div class="page-presentation page-gallery">
							<div class="presentation__item presentation__item--large presentation-uslugi">

								<div class="presentation__title presentation__title--large">
									услуги
								</div>
								<div class="presentation__subtitle">
									Солярий
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('35'))  {?>
						<div class="page-presentation page-action">
							<div class="presentation__item presentation-action">
								<div class="presentation__title">
									Акции
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('34'))  {?>
						<div class="page-presentation page-butik">
							<div class="presentation__item presentation-butik">
								<div class="presentation__title">
									Бутик косметики
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('31'))  {?>
						<div class="page-presentation page-gallery">
							<div class="presentation__item presentation-gallery">
								<div class="presentation__title">
									Галерея
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('36'))  {?>
						<div class="page-presentation page-contacts">
							<div class="presentation__item presentation-contacts">
								<div class="presentation__title">
									Контакты
								</div>
							</div>
						</div>
					<?php }?>
					
					<?php if ( in_category('32'))  {?>
						<div class="page-presentation page-services">
							<div class="presentation__item presentation-services">
								<div class="presentation__title">
									Услуги
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('39'))  {?>
						<div class="page-presentation page-raznoe">
							<div class="presentation__item presentation-raznor">
								<div class="presentation__title">
									Разное
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( in_category('33'))  {?>
						<div class="page-presentation page-prices">
							<div class="presentation__item presentation-prices">
								<div class="presentation__title">
									Цены
								</div>
							</div>
						</div>
					<?php }?>
					<?php if ( is_page('20'))  {?>
					<div class="page-presentation page-raznoe">
						<div class="presentation__item presentation-raznoe">
								<div class="presentation__title">
									Отзывы
								</div>
						</div>
					</div>
					<?php }?>
					
		

<div class="procedure2">

						<div class="page-navigation">
				
<?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?>

						</div>
						<div class="services-search">
						<?php echo do_shortcode('[wd_asp id=1]'); ?>
						</div>
					
</div>
<!--  -->


<div class="clear"></div>



<div class="procedure">
<?php IF ((!is_page (array('27','16','14')))) { ?>
<h1 class="page"><?php the_title(); ?></h1> 
 <?php } ?>


<?php if ( is_page( array( 14 ) ) ) { ?>
<?php include('uslugi.php'); ?>
<?php } else { ?>
<?php }?>
			

<?php
				// Start the Loop.
				while ( have_posts() ) : the_post();

					// Include the page content template.
					get_template_part( 'content', 'page' );

					// If comments are open or we have at least one comment, load up the comment template.
					
				endwhile;
			?>


<?php }?>
</div>



<?php IF ((!is_page (array('29','16','33','879','1712','20' )))) { ?>
<div class="price">
<a href="/ceny/" class="button button__price">прайс на услуги</a>
</div>
 <?php } ?>



						
					</div>
				</div>



<!-- если другая какая то страница -->
<?php } else { ?>






<br>
<span class="label label-warning"><?php the_title(); ?></span>
<br>

<?php if(has_post_thumbnail()){ ?>
<a href="<?php
$thumb_id = get_post_thumbnail_id();
$thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail-size', true);
echo $thumb_url[0];
?>" class="fancybox"  title="<?php the_title(); ?>">

<?php if ( has_post_thumbnail()) {the_post_thumbnail(array(400, 400),array("class"=>"alignleft post_thumbnail wow fadeIn" ,'alt' => get_the_title()));} ?>

	</a>


<?php } ?>




			<?php
				// Start the Loop.
				while ( have_posts() ) : the_post();

					// Include the page content template.
					get_template_part( 'content', 'page' );

					// If comments are open or we have at least one comment, load up the comment template.
					
				endwhile;
			?>






<?php }?>

<?php }?>


<?php get_footer(); ?>