diff --git a/blocks/mainnews.php b/blocks/mainnews.php
new file mode 100644
index 0000000..5765a2d
--- /dev/null
+++ b/blocks/mainnews.php
@@ -0,0 +1,35 @@
+ -1, // нужно для отображения всех постов, без разделения по страницам
+ 'post__in' => get_option( 'sticky_posts' ),
+ 'posts_per_page' => 1
+);
+
+$q = new WP_Query( $params );
+
+if ( $q->have_posts() ) :
+ $q->the_post();
+ $mainpost_id = get_the_ID();
+?>
+
+
+
+
Главное
+
+
array(2),
+ 'post__not_in' => array($mainpost_id),
'meta_query' => array(
array(
'key' => '_thumbnail_id',
@@ -22,54 +30,30 @@ $nn = 0;?>
); # фильтруем рубрики
?>
-
+have_posts()) : ?>
+
-
Главное
+
-have_posts()) : while($query->have_posts()) : $query->the_post();?>
+ have_posts()) : $query->the_post();?>
- $nn++;?>
-
-
-
-
-
-
-
-
; ?>)
-
-
-
-
-
-
-
-
-
-
-
- 1):?>
-
-
-
-
-
; ?>)
+
+
+
+
+
; ?>)
+
+
+
+
-
-
-
-
-
-
+
+
-
+
@@ -81,6 +65,8 @@ $nn = 0;?>
'mob-lite']);?>
'mob-lite']);?>
+
+
diff --git a/rsscreate.php b/rsscreate.php
new file mode 100644
index 0000000..673557f
--- /dev/null
+++ b/rsscreate.php
@@ -0,0 +1,30 @@
+ 20,
+ 'category' => 2,
+ 'orderby' => 'date',
+ 'order' => 'DESC',
+ 'include' => array(),
+ 'exclude' => array(),
+ 'meta_key' => '',
+ 'meta_value' =>'',
+ 'post_type' => 'post',
+ 'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
+));
+
+if( $posts ){
+
+ include('views/rss/yanews.php');
+
+}
+
+
+
+
diff --git a/single.php b/single.php
index c44a4d7..b6331d3 100644
--- a/single.php
+++ b/single.php
@@ -66,7 +66,7 @@
-
+
diff --git a/style.css b/style.css
index 413c050..2419fae 100644
--- a/style.css
+++ b/style.css
@@ -132,6 +132,13 @@ a{
width: 340px;
}
+ .right-info{
+ margin-top: 8px;
+ margin-bottom: 12px;
+ text-align: center;
+ width: 100%;
+ }
+
.wrap{
transform: translate(0%, 0%);
width: 0px;
@@ -146,6 +153,8 @@ a{
/* margin-top: 55px;
margin-left: 35px;*/
}
+
+
.input{
border: 0;
@@ -502,6 +511,8 @@ a{
font-size: 12px;
}
+
+
article{
padding: 1em;
}
@@ -808,9 +819,10 @@ a{
.left_preview{
- border-radius: 50%;
- width: 95px;
- height: 84px;
+ /*border-radius: 50%;*/
+ /*width: 105px;
+ height: 84px;*/
+ width: 145px;
}
.publ_expert{
@@ -871,13 +883,14 @@ a{
.left_opinion img{
margin-top: 8px;
margin-bottom: 8px;
- width: 84px;
- height: 84px;
+ /*width: 84px;
+ height: 84px;*/
}
.left_opinion_title{
margin-bottom: 8px;
font-weight: bold;
+ text-transform: uppercase;
}
.left_opinion_text{
@@ -1124,8 +1137,10 @@ a{
text-align: center;
text-decoration: none;
display: inline-block;
+ cursor: pointer;
font-size: 16px;
font-size: 11px;
+
}
@@ -1231,6 +1246,7 @@ img-fluid{
}
+
.main-card-title{
font-size: 24px;
}
@@ -1396,7 +1412,9 @@ img-fluid{
width: 100%;
}
-
+ .fulltext IMG{
+ width: 100%;
+ }
#footer{
width: 100%;
@@ -1406,7 +1424,6 @@ img-fluid{
display: none;
}
-
}
diff --git a/views/mailsub.php b/views/mailsub.php
new file mode 100644
index 0000000..c138bf6
--- /dev/null
+++ b/views/mailsub.php
@@ -0,0 +1,274 @@
+
+
+
+
+
=$title?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | |
+
+
+
+
+ |
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+ |
+
+
+
+ |
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+ | |
+
+
+
+
+
+
+
+ ID)):?>
+
+
+
+
+
+ |
+
+
+ |
+
+
+ | |
+
+
+ | |
+
+
+ | |
+
+
+
+
+ |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | |
+
+
+ |
+
+ |
+
+
+ | |
+
+
+ |
+
+ |
+
+
+ | |
+
+
+
+ | |
+
+
+
+
+ |
+ |
+
+
+
+
+
+ |
+
+
+ | |
+
+
+ | |
+
+
+ |
+
+ |
+
+
+ | |
+
+
+ |
+
+ |
+
+
+ | |
+
+
+
+ |
+
+
+
+ |
+
+
+
+ |
+
+
+
+
diff --git a/views/rss/yanews.php b/views/rss/yanews.php
new file mode 100644
index 0000000..2fc77e8
--- /dev/null
+++ b/views/rss/yanews.php
@@ -0,0 +1,29 @@
+';?>
+
+
+ Новости с сайта www.vetandlife.ru
+ https://www.vetandlife.ru
+ Новости с сайта www.vetandlife.ru
+
+ -
+ =htmlspecialchars($post->post_title)?>
+ =get_permalink($post->ID);?>
+ =htmlspecialchars($post->post_excerpt);?>
+ $category=get_the_category($post->ID);?>
+ События
+ $author = get_the_author($post->ID);?>
+
+ =$author?>
+
+ ID)):?>
+
+
+ =_U2RFC822($post->post_date)?>
+ post_content)?>
+ ]]>
+
+
+
+
+