add page template
This commit is contained in:
@@ -21,7 +21,7 @@ if( $posts ):
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="right_archive">
|
<div class="right_archive">
|
||||||
<a href="<?php the_permalink(); ?>"><img width="280" class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'left-thumb');?>" alt="<?the_title();?>"></a>
|
<a href="<?php the_permalink(); ?>"><img width="280" class="right_archive_img" src="<?php echo get_the_post_thumbnail_url($post, 'fil');?>" alt="<?the_title();?>"></a>
|
||||||
<div class="right_archive_text"><a href="<?php the_permalink(); ?>">Читать газету<br>«Ветеринария и Жизнь»</a></div>
|
<div class="right_archive_text"><a href="<?php the_permalink(); ?>">Читать газету<br>«Ветеринария и Жизнь»</a></div>
|
||||||
<div class="right_archive_link"><a href="<?php the_permalink(); ?>">cвежий номер</a></div>
|
<div class="right_archive_link"><a href="<?php the_permalink(); ?>">cвежий номер</a></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
23
blocks/search-form.php
Normal file
23
blocks/search-form.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<div class="wrap">
|
||||||
|
<form action="<?php bloginfo('url') ?>" method="GET">
|
||||||
|
<input type="text" class="input" name="s" id="s" placeholder="Поиск по сайту">
|
||||||
|
</form>
|
||||||
|
<i class="fa fa-search" aria-hidden="true"></i>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <div id="aj_search">
|
||||||
|
<form action="<?php //bloginfo('url') ?>" method="GET">
|
||||||
|
<input type="text" name="s" id="s" value="поиск..." autocomplete="off" />
|
||||||
|
</form>
|
||||||
|
<div id="aj_searchresults"></div>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- <form role="search" method="get" class="search-form" action="<?php //echo home_url( '/' ); ?>">
|
||||||
|
<label>
|
||||||
|
<span class="screen-reader-text">Search for:</span>
|
||||||
|
<input type="search" class="search-field" placeholder="Искать…" value="" name="s" title="Искать:" />
|
||||||
|
</label>
|
||||||
|
<input type="submit" class="search-submit" value="Поиск" />
|
||||||
|
</form> -->
|
||||||
16
footer.php
16
footer.php
@@ -119,6 +119,22 @@
|
|||||||
|
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<!-- Yandex.Metrika counter -->
|
||||||
|
<script type="text/javascript" >
|
||||||
|
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||||
|
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
||||||
|
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||||
|
|
||||||
|
ym(56480275, "init", {
|
||||||
|
clickmap:true,
|
||||||
|
trackLinks:true,
|
||||||
|
accurateTrackBounce:true,
|
||||||
|
webvisor:true
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<noscript><div><img src="https://mc.yandex.ru/watch/56480275" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||||
|
<!-- /Yandex.Metrika counter -->
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
|||||||
42
header.php
42
header.php
@@ -4,13 +4,20 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title><?php wp_title('|', true, 'right');?></title>
|
<title><?php wp_title('|', true, 'right');?></title>
|
||||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=13">
|
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=17">
|
||||||
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
<link href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" rel="stylesheet">
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/jquery-3.6.0.min.js"></script>
|
||||||
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=9"></script>
|
<script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/burger-menu.js?ver=9"></script>
|
||||||
<?php wp_head();?>
|
<?php wp_head();?>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<!-- Facebook Pixel Code -->
|
||||||
|
<noscript>
|
||||||
|
<img height="1" width="1" src="https://www.facebook.com/tr?id=126851132579904&ev=PageView
|
||||||
|
&noscript=1"/>
|
||||||
|
</noscript>
|
||||||
|
<!-- End Facebook Pixel Code -->
|
||||||
<header>
|
<header>
|
||||||
|
|
||||||
<div id="mainlogo">
|
<div id="mainlogo">
|
||||||
@@ -32,21 +39,9 @@
|
|||||||
<div id="head_mail"><a href="mailto:info@vetandlife.ru">info@vetandlife.ru</a></div>
|
<div id="head_mail"><a href="mailto:info@vetandlife.ru">info@vetandlife.ru</a></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="wrap">
|
|
||||||
<form action="<?php bloginfo('url') ?>" method="GET">
|
|
||||||
<input type="text" class="input" name="s" id="s" placeholder="Поиск по сайту">
|
|
||||||
</form>
|
|
||||||
<i class="fa fa-search" aria-hidden="true"></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!--<div class="header-rss">
|
|
||||||
<i class="fa fa-rss" aria-hidden="true"></i>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<ul id="header_icons">
|
<ul id="header_icons">
|
||||||
<!--<li class="btn_search"></li>
|
<a href="<?=get_site_url()?>?s="><li class="btn_search"></li></a>
|
||||||
<li class="btn_rss"></li> -->
|
<a href="<?=get_site_url()?>/feed"><li class="btn_rss"></li></a>
|
||||||
<li class="toggle-nav"></li>
|
<li class="toggle-nav"></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -59,23 +54,6 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
<!-- <div id="aj_search">
|
|
||||||
<form action="<?php //bloginfo('url') ?>" method="GET">
|
|
||||||
<input type="text" name="s" id="s" value="поиск..." autocomplete="off" />
|
|
||||||
</form>
|
|
||||||
<div id="aj_searchresults"></div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <form role="search" method="get" class="search-form" action="<?php //echo home_url( '/' ); ?>">
|
|
||||||
<label>
|
|
||||||
<span class="screen-reader-text">Search for:</span>
|
|
||||||
<input type="search" class="search-field" placeholder="Искать…" value="" name="s" title="Искать:" />
|
|
||||||
</label>
|
|
||||||
<input type="submit" class="search-submit" value="Поиск" />
|
|
||||||
</form> -->
|
|
||||||
|
|
||||||
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<?php $subclass = ''; ?>
|
<?php $subclass = ''; ?>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ get_header();?>
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--«москва» -->
|
<?if (trim($s) !== ''):?>
|
||||||
|
|
||||||
<p class="search-result">По запросу «<?php
|
<p class="search-result">По запросу «<?php
|
||||||
$allsearch = new WP_Query("s=$s&showposts=-1");
|
$allsearch = new WP_Query("s=$s&showposts=-1");
|
||||||
@@ -68,6 +68,8 @@ wp_reset_query(); ?></p>
|
|||||||
<?get_template_part( '/blocks/paginator');?>
|
<?get_template_part( '/blocks/paginator');?>
|
||||||
|
|
||||||
|
|
||||||
|
<?php endif;?>
|
||||||
|
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<ul id="nav_content">
|
<ul id="nav_content">
|
||||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
<li><a href="<?=get_site_url()?>">Главная</li>
|
||||||
<li>-<li>
|
<li>-<li>
|
||||||
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
|
||||||
<li>-<li>
|
<li>-<li>
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <?php the_time('j F Y, G:i');?>
|
<span class="post_link_category"><a href="<?=$category_link?>"><?=$category['0']->name;?></a></span>, <?php the_time('j F Y, G:i');?>
|
||||||
</div>
|
</div>
|
||||||
<div class="post_panel_info_sub">
|
<div class="post_panel_info_sub">
|
||||||
<!--Поделиться <i class="fas fa-share-square btn_soc_post"></i>--> <i class="fab fa-vk btn_soc_post"></i> <i class="fab fa-facebook-square btn_soc_post"></i> <i class="fab fa-telegram-plane btn_soc_post"></i>
|
<!--Поделиться <i class="fas fa-share-square btn_soc_post"></i>--> <?php include get_template_directory().'/blocks/social-share.php';?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
39
style.css
39
style.css
@@ -129,7 +129,7 @@ a{
|
|||||||
|
|
||||||
#mainlogo{
|
#mainlogo{
|
||||||
margin-left: 12px;
|
margin-left: 12px;
|
||||||
min-width: 340px;
|
width: 340px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrap{
|
.wrap{
|
||||||
@@ -287,8 +287,11 @@ a{
|
|||||||
header{
|
header{
|
||||||
background-color: white;
|
background-color: white;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07);
|
box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07);
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
/* justify-content: space-around;
|
/* justify-content: space-around;
|
||||||
flex-wrap: wrap; */
|
flex-wrap: wrap; */
|
||||||
|
|
||||||
@@ -536,6 +539,23 @@ a{
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header_btn{
|
||||||
|
width: 20px;
|
||||||
|
height: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#copy{
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer_3{
|
||||||
|
width: 100%;
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.btn_search{
|
.btn_search{
|
||||||
background: url(/wp-content/themes/vij/pub/icons/union.png) no-repeat;
|
background: url(/wp-content/themes/vij/pub/icons/union.png) no-repeat;
|
||||||
}
|
}
|
||||||
@@ -550,7 +570,8 @@ a{
|
|||||||
margin-right: 58px;
|
margin-right: 58px;
|
||||||
margin-left: 58px;
|
margin-left: 58px;
|
||||||
padding-bottom: 28px;
|
padding-bottom: 28px;
|
||||||
max-width: 880px;
|
/*max-width: 880px;*/
|
||||||
|
width: 55%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content p{
|
#content p{
|
||||||
@@ -742,10 +763,6 @@ a{
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.news_date{
|
.news_date{
|
||||||
color: #909294;
|
color: #909294;
|
||||||
font-family: 'GrtskPeta';
|
font-family: 'GrtskPeta';
|
||||||
@@ -932,7 +949,6 @@ a{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.right_archive_img{
|
.right_archive_img{
|
||||||
width: 280px;
|
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1222,7 +1238,7 @@ img-fluid{
|
|||||||
|
|
||||||
#content{
|
#content{
|
||||||
/*width: 100%;*/
|
/*width: 100%;*/
|
||||||
max-width: 780px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1382,6 +1398,9 @@ img-fluid{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#footer{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.post_info_social{
|
.post_info_social{
|
||||||
display: none;
|
display: none;
|
||||||
@@ -1401,6 +1420,8 @@ and (max-device-width : 667px) {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.mini-card{
|
.mini-card{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: 12px;
|
padding-right: 12px;
|
||||||
|
|||||||
Reference in New Issue
Block a user