diff --git a/blocks/archive.php b/blocks/archive.php
index 01383c3..3a880e9 100644
--- a/blocks/archive.php
+++ b/blocks/archive.php
@@ -22,8 +22,10 @@ if( $posts ):
+
цитата
diff --git a/blocks/mosts.php b/blocks/mosts.php
index 86307b1..4b20643 100644
--- a/blocks/mosts.php
+++ b/blocks/mosts.php
@@ -1,8 +1,8 @@
3,
@@ -17,13 +17,14 @@ if (!$mosts = kuri_set($key)) {
'suppress_filters' => true, // подавление работы фильтров изменения SQL запроса
));
- kuri_set($key, $mosts);
-}
+// kuri_set($key, $mosts);
+//}
+
# вывод поста
if( $mosts ):?>
-
+
Самое читаемое
diff --git a/blocks/opinion.php b/blocks/opinion.php
index 1f3a880..463f833 100644
--- a/blocks/opinion.php
+++ b/blocks/opinion.php
@@ -20,19 +20,14 @@ if (!$opinions = kuri_set($key)) {
}
# вывод поста
-if($opinions ):
+if(is_array($opinions)):
- foreach($opinions as $post):
- setup_postdata( $opinions );
- ?>
+ $post = $opinions[0];?>
-
+
мнение
- max_num_pages > 1 ) : ?>
\ No newline at end of file
diff --git a/blocks/subscipts.php b/blocks/subscipts.php
index e69de29..8d70daa 100644
--- a/blocks/subscipts.php
+++ b/blocks/subscipts.php
@@ -0,0 +1,4 @@
+
test
+
\ No newline at end of file
diff --git a/category.php b/category.php
index 9fad36f..212b02e 100644
--- a/category.php
+++ b/category.php
@@ -31,7 +31,7 @@ $nn = 0;?>
@@ -63,16 +63,8 @@ $nn = 0;?>
-max_num_pages > 1 ) : ?>
-
-
-
+
+
\ No newline at end of file
diff --git a/footer.php b/footer.php
index 07bee66..9db55f4 100644
--- a/footer.php
+++ b/footer.php
@@ -4,6 +4,9 @@
*/
?>
+
+
+
@@ -14,15 +17,13 @@
-
+ '']);?>
+ '']);?>
+
-
-
-
+
@@ -71,12 +82,12 @@
Важно
-
- =get_search_query();?>
-
'gamburer_menu'
) ); ?>
-
+
+
+
+
+
+
+
@@ -55,4 +82,13 @@
+
+
+
\ No newline at end of file
diff --git a/index.php b/index.php
index 93b7eb8..2c35c3c 100644
--- a/index.php
+++ b/index.php
@@ -24,7 +24,7 @@ $nn = 0;?>
-
Главное
+Главное
have_posts()) : while($query->have_posts()) : $query->the_post();?>
@@ -75,10 +75,9 @@ $nn = 0;?>
-
-
-
-
+ 'mob-lite']);?>
+ 'mob-lite']);?>
+ 'mob-lite']);?>
diff --git a/scripts/burger-menu.js b/scripts/burger-menu.js
index a5b5c23..439023f 100644
--- a/scripts/burger-menu.js
+++ b/scripts/burger-menu.js
@@ -3,5 +3,10 @@ jQuery(document).ready(function() {
jQuery('.menu.main ul').slideToggle(500);
e.preventDefault();
});
+
+ $(".fa-search").click(function(){
+ $(".wrap, .input").toggleClass("active");
+ $("input[type='text']").focus();
+ });
});
\ No newline at end of file
diff --git a/search.php b/search.php
new file mode 100644
index 0000000..490f534
--- /dev/null
+++ b/search.php
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
Поиск:
+
+
+
+
+
+
+
+
+
+
По запросу «post_count; _e('');
+_e('');
+echo $key; _e(' » найдено ');
+if ($count == 1):
+echo $count . ' '; _e('результат');
+else:
+ if ($count > 4):
+ echo $count . ' '; _e('результатов');
+ else:
+ echo $count . ' '; _e('результата');
+ endif;
+endif;
+wp_reset_query(); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/single.php b/single.php
index bd63c84..3bf8ee2 100644
--- a/single.php
+++ b/single.php
@@ -25,12 +25,12 @@
-
+
$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
- Поделиться
+
diff --git a/style.css b/style.css
index 36332a9..049aca5 100644
--- a/style.css
+++ b/style.css
@@ -110,18 +110,143 @@ a{
max-width: 330px;
display: flex;
flex-direction: column;
- margin-right: 28px;
- border-right: 28px solid #F2F2F2;
+ /** margin-right: 28px;
+ border-right: 28px solid #F2F2F2;*/
}
+ #vert-title{
+ width: 48px;
+ background: #F2F2F2;
+
+ }
+
+ #main-arrow{
+ background: url(/wp-content/themes/vij/pub/icons/main-arrow.png) no-repeat;
+ width: 51px;
+ height: 130px;
+ }
+
+
+ .wrap{
+ transform: translate(-50%, -50%);
+ width: 0px;
+ height: 55px;
+ line-height: 55px;
+ border-radius: 35px;
+ background: #F2F2F2;
+ /*transition: all 0.5s ease;
+ box-shadow: 0 0 10px rgba(0,0,0,0.5);
+ transition: all 0.5s ease;*/
+ align-items: center;
+ justify-content: center;
+ margin-top: 55px;
+ margin-left: 35px;
+ }
+
+ .input{
+ border: 0;
+ background: transparent;
+ width: 0%;
+ outline: none;
+ font-size: 18px;
+ color: black;
+ transition: all 0.3s ease;
+ margin-left: 12px;
+ }
+
+ .wrap .fa{
+ color: black;
+ position: absolute;
+ right: 17px;
+ top: 15px;
+ font-size: 18px;
+ cursor: pointer;
+ }
+
+ .wrap.active{
+ width: 200px;
+ transition: all 0.5s ease;
+ }
+
+ .input.active{
+ width: 98%;
+ padding-left: 5px;
+ transition: all 0.5s 0.8s ease;
+ }
+
+ .input::placeholder {
+ color: #909294;
+ font-size: 15px;
+ }
+
+
+ #search-form{
+ margin-bottom: 22px;
+ }
+
+ .search_submit {
+ background: #F18129;
+ border-radius: 35px;
+ border: 1px solid #F18129;
+ color: white;
+ padding: 8px 8px;
+ text-decoration: none;
+ display: inline-block;
+ text-align: center;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 12px;
+ line-height: 110%;
+ width: 134px;
+ height: 50px;
+ }
+
+ .search-text{
+ width: 60%;
+ height: 50px;
+ border-radius: 35px;
+ border: 1px solid #F2F2F2;
+ background: #F2F2F2;
+ font-size: 18px;
+ line-height: 22px;
+ padding-left: 12px;
+ }
+
+ .search-result{
+ font-size: 14px;
+ line-height: 160%;
+ padding-bottom: 12px;
+ }
+
+
+ /** #vert-title div{
+
+ background: #F18129;
+ writing-mode: tb-rl;
+ transform:rotate(180deg);
+ width: 100%;
+ color: white;
+
+ font-weight: bold;
+ font-size: 11px;
+ line-height: 150%;
+ letter-spacing: 0.095em;
+ text-transform: uppercase;
+ padding: 48px 12px 48px 12px;
+ clip-path: polygon(100% 0%, 100% 51%, 100% 100%, 29% 100%, 0% 50%, 29% 0);
+
+ }*/
+
+
#right{
max-width: 330px;
display: flex;
flex-direction: column;
border-left: 1px solid #E9EAEB;
- padding-left: 12px;
+
}
header{
@@ -136,48 +261,64 @@ a{
#footer_menu{
display: flex;
align-items: center;
+ justify-content: center;
+ padding-top: 12px;
+ padding-bottom: 12px;
}
#footer_menu > div:nth-child(2){
- margin-left: auto;
+ /** margin-left: auto; */
}
#footer_up{
- width: 20%;
+ width: 30%;
text-align: right;
}
#footer_info{
display: flex;
+ align-items: center;
margin-bottom: 8px;
+ border-top: 1px solid #D5D5D6;
+ border-bottom: 1px solid #D5D5D6;
+ margin-bottom: 28px;
+ padding-top: 28px;
+ padding-bottom: 28px;
}
#footer_qr{
- width: 300px;
+ width: 20%;
margin-right: 12px;
text-align: center;
}
+ #footer-contact{
+ width: 20%;
+ }
+
#footer_subscript{
margin-left: 32px;
margin-right: 22px;
- margin-top: 12px;
+ width: 25%;
}
#footer_logo{
margin-left: 12px;
margin-right: 32px;
width: 150px;
-
}
#footer_social{
margin-left: 12px;
margin-right: 12px;
+ width: 30%;
}
+
+
+
.sub_button {
background: #F18129;
border-radius: 55px;
@@ -186,9 +327,13 @@ a{
padding: 10px 28px;
text-align: center;
text-decoration: none;
+ text-transform: uppercase;
+ font-weight: bold;
display: inline-block;
font-size: 16px;
font-size: 11px;
+ line-height: 110%;
+ height: 55px;
}
.vazh{
@@ -199,24 +344,27 @@ a{
#footer_2{
display: flex;
+ justify-content: center;
}
#footer_3{
display: flex;
- margin-top: 12px;
+ justify-content: center;
+ align-items: center;
+ margin-top: 28px;
+ margin-bottom: 28px;
}
#rating{
width: 20%;
text-align: right;
- margin-right: 8px;
- margin-top: 12px;
}
#pere{
width: 40%;
font-size: 12px;
line-height: 150%;
+ margin-left: 18px;
color: #909294;
}
@@ -225,7 +373,7 @@ a{
font-size: 13px;
line-height: 150%;
margin-right: 8px;
- width: 300px;
+ width: 20%;
text-align: center;
}
@@ -234,6 +382,8 @@ a{
color: #444444;
font-size: 13px;
line-height: 150%;
+ width: 80%;
+
}
#svid li{
@@ -242,6 +392,11 @@ a{
+ .sp-button{
+ color: orange;
+ }
+
+
/** - menus -- */
ul.menu_main{
display: flex;
@@ -261,7 +416,6 @@ a{
flex-direction: column;
background-color: #00466A;
padding: 32px 22px 22px 32px;
- margin-bottom: 22px;
}
ul.menu_left li{
@@ -307,7 +461,7 @@ a{
font-size: 12px;
}
- header, footer, article, nav, #right {
+ header, article, nav{
padding: 1em;
}
@@ -329,7 +483,7 @@ a{
}
#head_mail a{
- color: blue;
+ color: #2D9CDB;
text-decoration: underline;
}
@@ -375,23 +529,34 @@ a{
background: #F5F5F5;
}
+ .pagination-wrapper{
+ width: 100%;
+ text-align: center;
+ }
+
.page-numbers {
display: inline-block;
padding: 5px 10px;
margin: 0 2px 0 0;
- border: 1px solid #eee;
line-height: 1;
text-decoration: none;
- border-radius: 2px;
font-weight: 600;
}
-
- .page-numbers.current,
+
+ a.page-numbers{
+ color: #909294;
+ }
a.page-numbers:hover {
-
- background: #f9f9f9;
+ color: #909294;
}
+
+ .page-numbers.current{
+ font-weight: bold;
+ font-size: 22px;
+ line-height: 140%;
+ color: #171717;
+ }
h1{
@@ -401,6 +566,50 @@ a{
margin-bottom: 18px;
}
+ #mainpage-title{
+ margin-top: 42px;
+ }
+
+ site-header .search-form {
+ position: absolute;
+ right: 200px;
+ top: 200px;
+ }
+
+
+
+ .site-header .search-field {
+ background-color: transparent;
+ background-image: url(images/search-icon.png);
+ background-position: 5px center;
+ background-repeat: no-repeat;
+ background-size: 24px 24px;
+ border: none;
+ cursor: pointer;
+ height: 37px;
+ margin: 3px 0;
+ padding: 0 0 0 34px;
+ position: relative;
+ -webkit-transition: width 400ms ease, background 400ms ease;
+ transition: width 400ms ease, background 400ms ease;
+ width: 0;
+ }
+
+ .site-header .search-field:focus {
+ background-color: #fff;
+ border: 2px solid #c3c0ab;
+ cursor: text;
+ outline: 0;
+ width: 230px;
+ }
+
+ .search-form
+ .search-submit {
+ display:none;
+
+ }
+
+
.mini-card-block{
display: grid;
@@ -456,6 +665,7 @@ a{
.main-card-title{
font-family: 'GrtskPeta';
font-size: 36px;
+ text-align: center;
}
.main-card-text{
@@ -466,6 +676,10 @@ a{
padding: 8px;
}
+.main-card IMG{
+ width: 100%;
+}
+
@@ -578,6 +792,8 @@ a{
.left_opinion img{
margin-top: 8px;
margin-bottom: 8px;
+ width: 84px;
+ height: 84px;
}
.left_opinion_title{
@@ -650,19 +866,34 @@ a{
.right_archive{
margin-bottom: 22px;
+ text-align: center;
}
.right_archive_img{
width: 280px;
+ margin-bottom: 12px;
}
.right_archive_text{
font-size: 15px;
line-height: 130%;
font-weight: bold;
+ text-align: center;
}
+.right_archive_link{
+ font-size: 15px;
+ line-height: 130%;
+ text-align: center;
+}
+
+ .right_archive_link a{
+ color: #909294;
+ }
+
+
+
.yets_rubric{
color: #F18129;
@@ -679,14 +910,15 @@ a{
.yets{
display: grid;
grid-gap: 1rem;
- grid-template-columns: repeat(auto-fi, minmax(300px, 1fr));
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
margin-top: 8px;
margin-bottom: 28px;
+ padding: 8px;
width: 100%;
}
.yet_card{
- padding: 12px;
+ padding: 32px 28px 32px 28px;
background: #E9EAEB;
font-weight: bold;
}
@@ -723,23 +955,122 @@ a{
color: #909294;
}
+
+#subscript-mail{
+ padding-left: 22px;
+ padding-right: 22px;
+ margin-top: 18px;
+ margin-bottom: 22px;
+
+}
+
+#subscript_box{
+ text-align: center;
+}
+
+#convert{
+
+ width: 87px;
+ height: 87px;
+ border: 1px solid #E9EAEB;
+ box-sizing: border-box;
+ background: url(/wp-content/themes/vij/pub/icons/mail.png) no-repeat;
+ background-position: center;
+ margin-left: auto;
+ margin-right: auto;
+
+
+}
+
+ .form-right input{
+ width: 230px;
+ height: 50px;
+ border-radius: 35px;
+ background: #F2F2F2;
+ border: 1px solid #F2F2F2;
+ margin-bottom: 12px;
+ padding-left: 28px;
+ }
+
+ .frm_mail{
+ width: 240px;
+ height: 50px;
+ border-radius: 35px;
+ border: 1px solid #F2F2F2;
+ background: #F2F2F2;
+ font-size: 12px;
+ line-height: 110%;
+ }
+
+ .frm_submit {
+ background: #F18129;
+ border-radius: 35px;
+ border: 1px solid #F18129;
+ color: white;
+ padding: 10px 28px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ text-align: center;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 12px;
+ line-height: 110%;
+ width: 234px;
+ height: 50px;
+ }
+
+
+ .right_title{
+ font-weight: 600;
+ font-size: 15px;
+ line-height: 130%;
+ text-align: center;
+ margin-top: 22px;
+ margin-bottom: 12px;
+ padding-left: 28px;
+ padding-right: 28px;
+ }
+
+ .form-right{
+ text-align: center;
+ }
+
+ .sub_button {
+ background: #F18129;
+ border-radius: 55px;
+ border: 1px solid #F18129;
+ color: white;
+ padding: 10px 28px;
+ text-align: center;
+ text-decoration: none;
+ display: inline-block;
+ font-size: 16px;
+ font-size: 11px;
+}
+
+
+
/** socials */
#socials{
display: flex;
- margin: 0 12px 32px 12px;
+ margin-bottom: 18px;
+ justify-content: center;
+ align-items: center;
}
#socials_footer{
display: flex;
- margin: 12px 12px 32px 12px;
+ margin: 0 12px 0 12px;
}
.btn_soc{
margin-right: 18px;
padding: 10px;
border-radius: 50%;
- border: 1px solid #E9EAEB;
+ border: 1px solid #D5D5D6;
}
.btn_soc_post{
@@ -747,21 +1078,30 @@ a{
}
-.soc_btn{
- height: 24px;
- width: 24px;
- /*border-radius: 10px;*/
- border: 1px solid #E9EAEB;
-}
-
.rating{
border-radius: 50%;
background-color: white;
- padding: 8px;
color: white;
background: #ACACAC;
+ width: 4em;
+ height: 4em;
+ line-height: 4em;
+ text-align: center;
+ font-size: 15px;
+ font-weight: bold;
}
+
+.btn_soc{
+ margin-right: 18px;
+ padding: 10px;
+ border-radius: 50%;
+ border: 1px solid #D5D5D6;
+}
+
+
+
+
.soc_telegram{
background: url(/wp-content/themes/vij/pub/icons/telegram-icon.png) no-repeat;
}
@@ -803,6 +1143,26 @@ img-fluid{
@media screen and ( max-width: 580px ) {
+
+ #left{
+ display: none;
+ }
+
+ #right{
+ display: none;
+ }
+
+
+ .main-card-title{
+ font-size: 24px;
+ }
+
+
+ #content{
+ width: 100%;
+ }
+
+
.toggle-nav {
display: inline-block !important;
@@ -854,12 +1214,65 @@ img-fluid{
margin-top: 12px;
}
+
+ .post-h1{
+ font-weight: 24px;
+ }
+
+ .img-fluid{
+ width: 100%;
+ }
+
+
.main.menu li:after {
content: none;
}
+
+ #footer_logo{
+ display: none;
+ }
+
+ #footer_qr{
+ display: none;
+ }
+
+
+ #footer_menu{
+ display: none;
+ }
+
+
+ #pere{
+ width: 90%;
+ }
+
+
+ #footer_subscript{
+ display: none;
+ }
+
+ .footer_sub{
+ width: 70%;
+ text-align: center;
+ }
+
+
+ #svid{
+ display: none;
+ }
+
+
+ #socials_footer{
+ width: 100%;
+ text-align: center;
+ }
+
+
+
+
}
@@ -879,6 +1292,10 @@ img-fluid{
display: none;
}
+ #vert-title{
+ display: none;
+ }
+
#nav_content{
display: none;
}
@@ -925,6 +1342,8 @@ and (max-device-width : 667px) {
width: 100%;
}
+
+
}