<?php
$frm_name = "Youname";
$recepient = "pavelcdn@gmail.com";
$sitename = "Название Сайта";
$subject = "Новая заявка с сайта \"$sitename\"";
$cena = trim($_POST["cena"]);
$file = trim($_POST["file"]);
$email = trim($_POST["email"]);
$text = trim($_POST["text"]);
$radio2 = trim($_POST["radio2"]);
$message = '$subject <br>';
if (!empty($cena)) {
$message .= "Имя: $cena <br>";
}
if (!empty($file)) {
$message .= "Телефон: $file <br>";
}
if (!empty($email)) {
$message .= "E-mail: $email <br>";
}
if (!empty($radio1)) {
$message .= "Сообщение: $text <br>";
}
if (!empty($radio2)) {
$message .= "Срок действия: $radio2 <br>";
}
// или
// $message = "
// Имя: $name <br>
// Удобная дата: $data $selecTime
// Удобное время для звонка: $selectbasic <br>
// Телефон: $phone <br>
// E-mail: $email <br>
// Сообщение: $comments <br>
// С какой кнопки пришла форма: $otkuda
// ";
mail($recepient, $subject, $message, "From: $frm_name <$email>" . "\r\n" . "Reply-To: $email" . "\r\n" . "X-Mailer: PHP/" . phpversion() . "\r\n" . "Content-type: text/html; charset=\"utf-8\"");
?>
<div class="newsContent">
<?php
//Запрашиваем пять последних записей по дате
$items = new WP_Query(array(
'posts_per_page' => 5,
'category__in' => 7) // если надо выводить только определенную категорию
);
while ($items->have_posts()) : $items->the_post();
if ($items->current_post == 0) : ?>
<div class="contentLeft">
<div class="contentSmall">
<?php if (has_post_thumbnail()) { ?>
<?php the_post_thumbnail(array(496, 368)); ?>
<?php } ?>
<h1><a href="#"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<div class="dateNav">
<div class="currentDate">
<p><?php echo get_the_date('j M') ?></p>
<p class="year"><?php echo get_the_date('Y') ?></p>
</div>
<?php the_category(', '); ?>
</div>
</div>
</div>
<?php if ($items->post_count > 1) {
echo '<div class="contentRight"><ul class="topNews">';
} ?>
<?php else : ?>
<li>
<div class="contentSmall">
<?php if (has_post_thumbnail()) { ?>
<?php the_post_thumbnail(array(184, 136)); ?>
<?php } ?>
<h1><a href="#"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<div class="dateNav">
<div class="currentDate">
<p><?php echo get_the_date('j M') ?></p>
<p class="year"><?php echo get_the_date('Y') ?></p>
</div>
<?php the_category(', '); ?>
</div>
</div>
</li>
<?php endif;
endwhile; ?>
<?php if ($items->post_count > 1) {
echo '</ul></div>';
} ?>
</div>
<a href="<a href=" http:="" wordpress="" category="" glavnaya-rubrika-2="" podrubrika01="" "="" rel="category tag">Подрубрика01</a>
<a href="<?php the_category(', '); ?>"><?php $cat = get_the_category();
echo $cat[0]->cat_name; ?></a>
<?php
$query2 = new WP_Query(array(
'post_type' => 'post',
'post_status' => 'publish',
'offset' => 1,
'posts_per_page' => 4,
'category__in' => 7
));
// Цикл
?>
<ul class="topNews">
<?php
if ($query2->have_posts()) {
while ($query2->have_posts()) {
$query2->the_post(); ?>
<li>
<div class="contentSmall">
<?php if (has_post_thumbnail()) { ?>
<?php the_post_thumbnail(array(184, 136)); ?>
<?php } ?>
<h1><a href="<?php echo $myLink ?>"><?php the_title(); ?></a></h1>
<?php the_content(); ?>
<div class="dateNav">
<div class="currentDate">
<p><?php echo get_the_date('j M') ?></p>
<p class="year"><?php echo get_the_date('Y') ?></p>
</div>
<a href="#">СМИ</a>
</div>
</div>
</li>
<?php
}
?>
</ul>
<?php
} else {
// Постов не найдено
}
если человеку сайт нужен на пару часов то проблем нет , но если это нормальный сайт , muse это позор. Раньше я бы сравнил сайт на muse с сайтом на ucoz , а сейчас такого мусора хватает и без юкоза