File: /var/www/rmc-logistics.net/wp-content/themes/shablon/index.php
<?php get_header(); ?>
<section class="announcement">
<div class="container">
<div class="row announcement-row">
<div class="col-md-3 col-xs-5 announce_bg">
<div class="announce-title">Announcement </div>
</div>
<div class="col-md-9 col-xs-7 ">
<div class="announce-text">
<div id="carousel-example-generic" class="carousel slide vertical" data-ride="carousel">
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<?php $news_query = new WP_Query("post_type=news&post_status=publish&showposts=3");
$counter = 0;
while ($news_query->have_posts()) : $news_query->the_post(); $counter++; ?>
<div class="item <?php if ($counter == 1) echo "active"; ?>">
<div class="carousel-caption">
<?php the_title(); ?>
</div>
</div>
<?php endwhile; wp_reset_query(); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section id="content_section">
<div class="container">
<div class="row ">
<div class="col-lg-5 col-md-5">
<div id="page_content" class="clearfix">
<h1 class="page_title"><?php the_title(); ?></h1>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(''); ?>
<?php endwhile; ?>
<?php else : ?>
<h2 align="center">Не найдено</h2>
<?php endif; ?>
</div>
</div>
<div class="col-lg-2 col-md-3 col-sm-5 contacts-home">
<h3 class="adress">Contacts</h3>
<p><font size="1"><?php echo get_post_meta($post->ID, 'address_meta', true);// echo get_option('v_pole_adress') ?></font></p>
<hr>
<b>Tel.: <?php echo get_post_meta($post->ID, 'tel_meta', true);//echo get_option('v_pole_kod') ?></b><br>
<b>Fax.: <?php echo get_post_meta($post->ID, 'tel_fax_meta', true);//echo get_option('v_pole_nomer') ?></b><br>
<b><?php echo get_post_meta($post->ID, 'email_meta', true); //echo get_option('v_pole_email') ?></b>
</div>
<div class="col-lg-5 col-md-4 col-sm-7 contacts-form-home">
<h3 class="feedback">Feedback</h3>
<?php echo do_shortcode( '[contact-form-7 id="4"] '); ?>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>