add page template
This commit is contained in:
@@ -21,7 +21,7 @@ if( $posts ):
|
||||
?>
|
||||
|
||||
<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_link"><a href="<?php the_permalink(); ?>">cвежий номер</a></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>
|
||||
|
||||
<!-- 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>
|
||||
</html>
|
||||
|
||||
|
||||
42
header.php
42
header.php
@@ -4,13 +4,20 @@
|
||||
<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">
|
||||
<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">
|
||||
<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>
|
||||
<?php wp_head();?>
|
||||
|
||||
</head>
|
||||
<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>
|
||||
|
||||
<div id="mainlogo">
|
||||
@@ -32,21 +39,9 @@
|
||||
<div id="head_mail"><a href="mailto:info@vetandlife.ru">info@vetandlife.ru</a></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">
|
||||
<!--<li class="btn_search"></li>
|
||||
<li class="btn_rss"></li> -->
|
||||
<a href="<?=get_site_url()?>?s="><li class="btn_search"></li></a>
|
||||
<a href="<?=get_site_url()?>/feed"><li class="btn_rss"></li></a>
|
||||
<li class="toggle-nav"></li>
|
||||
</ul>
|
||||
|
||||
@@ -59,23 +54,6 @@
|
||||
</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>
|
||||
|
||||
<?php $subclass = ''; ?>
|
||||
|
||||
@@ -21,7 +21,7 @@ get_header();?>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!--«москва» -->
|
||||
<?if (trim($s) !== ''):?>
|
||||
|
||||
<p class="search-result">По запросу «<?php
|
||||
$allsearch = new WP_Query("s=$s&showposts=-1");
|
||||
@@ -68,6 +68,8 @@ wp_reset_query(); ?></p>
|
||||
<?get_template_part( '/blocks/paginator');?>
|
||||
|
||||
|
||||
<?php endif;?>
|
||||
|
||||
<?php endif;?>
|
||||
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
?>
|
||||
|
||||
<ul id="nav_content">
|
||||
<li><a href="http://beta.vetandlife.ru">Главная</li>
|
||||
<li><a href="<?=get_site_url()?>">Главная</li>
|
||||
<li>-<li>
|
||||
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></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');?>
|
||||
</div>
|
||||
<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>
|
||||
|
||||
|
||||
37
style.css
37
style.css
@@ -129,7 +129,7 @@ a{
|
||||
|
||||
#mainlogo{
|
||||
margin-left: 12px;
|
||||
min-width: 340px;
|
||||
width: 340px;
|
||||
}
|
||||
|
||||
.wrap{
|
||||
@@ -288,7 +288,10 @@ a{
|
||||
background-color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07);
|
||||
width: 100%;
|
||||
|
||||
/* justify-content: space-around;
|
||||
flex-wrap: wrap; */
|
||||
|
||||
@@ -536,6 +539,23 @@ a{
|
||||
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{
|
||||
background: url(/wp-content/themes/vij/pub/icons/union.png) no-repeat;
|
||||
}
|
||||
@@ -550,7 +570,8 @@ a{
|
||||
margin-right: 58px;
|
||||
margin-left: 58px;
|
||||
padding-bottom: 28px;
|
||||
max-width: 880px;
|
||||
/*max-width: 880px;*/
|
||||
width: 55%;
|
||||
}
|
||||
|
||||
#content p{
|
||||
@@ -742,10 +763,6 @@ a{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.news_date{
|
||||
color: #909294;
|
||||
font-family: 'GrtskPeta';
|
||||
@@ -932,7 +949,6 @@ a{
|
||||
}
|
||||
|
||||
.right_archive_img{
|
||||
width: 280px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
@@ -1222,7 +1238,7 @@ img-fluid{
|
||||
|
||||
#content{
|
||||
/*width: 100%;*/
|
||||
max-width: 780px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1382,6 +1398,9 @@ img-fluid{
|
||||
|
||||
|
||||
|
||||
#footer{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.post_info_social{
|
||||
display: none;
|
||||
@@ -1401,6 +1420,8 @@ and (max-device-width : 667px) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.mini-card{
|
||||
width: 100%;
|
||||
padding-right: 12px;
|
||||
|
||||
Reference in New Issue
Block a user