add new icons

This commit is contained in:
arlemp@selectel.ru
2022-02-09 00:22:15 +03:00
parent 00c96d16eb
commit c8f2b0222e
15 changed files with 168 additions and 28 deletions

View File

@@ -28,7 +28,7 @@ if( $posts ):
<?endif?> <?endif?>
<br> <br>
<center class="left_center_block"> <center class="left_center_block">
<a href="https://vetandlife.ru/category/arkhiv/" class="left_button" target="_blank">Архив номеров</a> <a href="https://vetandlife.ru/category/arkhiv/" class="left_button" target="_blank"><?=vij_lang('archives', LANG_VERSION);?></a>
</center> </center>
</div> </div>

View File

@@ -23,7 +23,7 @@ $posts = get_posts( array(
# вывод поста # вывод поста
if( $posts ):?> if( $posts ):?>
<div class="moread_rubric">Read also:</div> <div class="moread_rubric">Related articles:</div>
<div class="moread"> <div class="moread">

View File

@@ -3,7 +3,7 @@
if (LANG_VERSION == 'en'){ if (LANG_VERSION == 'en'){
$left_mob_menu = 'leftenmenu'; $left_mob_menu = 'leftenmenu';
$part_title = 'Parts'; $part_title = 'Topics';
} }
else{ else{

View File

@@ -43,7 +43,7 @@
<a href="<?=get_site_url()?>?s="><li class="btn_search"></li></a> <a href="<?=get_site_url()?>?s="><li class="btn_search"></li></a>
<a href="<?=get_site_url()?>/feed"><li class="btn_rss"></li></a> <a href="<?=get_site_url()?>/feed"><li class="btn_rss"></li></a>
<li class="toggle-nav" id="toggle-nav"></li> <li class="toggle-nav" id="toggle-nav"></li>
<a href="<?=get_site_url().vij_lang('btn_lan_link', LANG_VERSION)?>"><li class="btn_lan"><?=vij_lang('btn_lan', LANG_VERSION)?></li></a> <a href="<?=get_site_url().vij_lang('btn_lan_link', LANG_VERSION)?>"><li class="btn_lan"><nobr><?=vij_lang('btn_lan', LANG_VERSION)?></nobr></li></a>
</ul> </ul>

View File

@@ -1,6 +1,6 @@
<?php if ( $wp_query->max_num_pages > 1 ) : ?><div class="pagination-wrapper"><?php the_posts_pagination( array( <?php if ( $wp_query->max_num_pages > 1 ) : ?><div class="pagination-wrapper"><?php the_posts_pagination( array(
'prev_text' => __( '<&nbsp;&nbsp;Обратно', 'quidus' ), 'prev_text' => __( '<&nbsp;&nbsp;'.vij_lang('prev', LANG_VERSION), 'quidus' ),
'next_text' => __( 'Далее&nbsp;&nbsp;>', 'quidus' ), 'next_text' => __( vij_lang('next', LANG_VERSION).'&nbsp;&nbsp;>', 'quidus' ),
'end_size' => 2, 'end_size' => 2,
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'quidus' ) . ' </span>', 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'quidus' ) . ' </span>',
) ); ) );

View File

@@ -14,12 +14,10 @@
# вывод поста # вывод поста
if( $posts ):?> if( $posts ):?>
<?if (LANG_VERSION == 'en'):?>
<div class="yets_rubric">More on the topic</div>
<?else:?> <div class="yets_rubric"><?=vij_lang('more', LANG_VERSION)?></div>
<div class="yets_rubric">Еще по теме</div>
<?endif?>
<div class="yets"> <div class="yets">
<?php foreach($posts as $post): <?php foreach($posts as $post):

View File

@@ -186,7 +186,7 @@
<div id="footer_info"> <div id="footer_info">
<div id="footer_qr"> <div id="footer_qr">
<img src = "<?=get_stylesheet_directory_uri()?>/pub/qr.png" /> <img src = "<?=get_stylesheet_directory_uri()?>/pub/icons/qvij.svg" width="100" height="100" />
<p class="vazh"><?=vij_lang('qrtitle', LANG_VERSION);?></p> <p class="vazh"><?=vij_lang('qrtitle', LANG_VERSION);?></p>
</div> </div>
<div id="footer-contact"> <div id="footer-contact">

View File

@@ -4,7 +4,7 @@
<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');?><?=get_bloginfo('name')?></title> <title><?php wp_title('|', true, 'right');?><?=get_bloginfo('name')?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=145"> <link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=149">
<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/golos.js"></script> <script type='text/javascript' src="<?php echo get_stylesheet_directory_uri()?>/scripts/golos.js"></script>
@@ -20,6 +20,16 @@
<?endif?> <?endif?>
<?php wp_head();?> <?php wp_head();?>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VGN4NSFMW5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-VGN4NSFMW5');
</script>
</head> </head>
<body> <body>
<!-- Facebook Pixel Code --> <!-- Facebook Pixel Code -->

View File

@@ -24,7 +24,11 @@ function vij_lang($name, $lan){
'your_mail' => 'Ваша почта', 'your_mail' => 'Ваша почта',
'gazeta' => 'Читать газету<br>«Ветеринария и Жизнь»', 'gazeta' => 'Читать газету<br>«Ветеринария и Жизнь»',
'up_bth' => 'наверх', 'up_bth' => 'наверх',
'qrtitle' => 'Важно' 'qrtitle' => 'Важно',
'archives' => 'Архив номеров',
'more' => 'Еще по теме',
'next' => 'Далее',
'prev' => 'Обратно'
]; ];
@@ -51,7 +55,11 @@ function vij_lang($name, $lan){
'your_mail' => 'Your email', 'your_mail' => 'Your email',
'gazeta' => 'Veterinary Medicine and Life newspaper', 'gazeta' => 'Veterinary Medicine and Life newspaper',
'up_bth' => 'UP', 'up_bth' => 'UP',
'qrtitle' => 'important' 'qrtitle' => 'important',
'archives' => 'Archives',
'more' => 'Read more about',
'next' => 'Next',
'prev' => 'Prev'
]; ];

12
pub/icons/gumburger.svg Normal file
View File

@@ -0,0 +1,12 @@
<svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_100_223)">
<path d="M0 1.45833C0 1.07156 0.131696 0.700627 0.366117 0.427136C0.600537 0.153646 0.918479 0 1.25 0H18.75C19.0815 0 19.3995 0.153646 19.6339 0.427136C19.8683 0.700627 20 1.07156 20 1.45833C20 1.84511 19.8683 2.21604 19.6339 2.48953C19.3995 2.76302 19.0815 2.91667 18.75 2.91667H1.25C0.918479 2.91667 0.600537 2.76302 0.366117 2.48953C0.131696 2.21604 0 1.84511 0 1.45833Z" fill="#00466A"/>
<path d="M0 18.9583C0 18.5716 0.131696 18.2006 0.366117 17.9271C0.600537 17.6536 0.918479 17.5 1.25 17.5H18.75C19.0815 17.5 19.3995 17.6536 19.6339 17.9271C19.8683 18.2006 20 18.5716 20 18.9583C20 19.3451 19.8683 19.716 19.6339 19.9895C19.3995 20.263 19.0815 20.4167 18.75 20.4167H1.25C0.918479 20.4167 0.600537 20.263 0.366117 19.9895C0.131696 19.716 0 19.3451 0 18.9583Z" fill="#00466A"/>
<path d="M8.75 8.75C8.41848 8.75 8.10054 8.90365 7.86612 9.17714C7.6317 9.45063 7.5 9.82156 7.5 10.2083C7.5 10.5951 7.6317 10.966 7.86612 11.2395C8.10054 11.513 8.41848 11.6667 8.75 11.6667H18.75C19.0815 11.6667 19.3995 11.513 19.6339 11.2395C19.8683 10.966 20 10.5951 20 10.2083C20 9.82156 19.8683 9.45063 19.6339 9.17714C19.3995 8.90365 19.0815 8.75 18.75 8.75H8.75Z" fill="#00466A"/>
</g>
<defs>
<clipPath id="clip0_100_223">
<rect width="20" height="20.4167" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

3
pub/icons/lupa.svg Normal file
View File

@@ -0,0 +1,3 @@
<svg width="19" height="19" viewBox="0 0 19 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.71 16.29L14.31 12.9C15.407 11.5025 16.0022 9.77666 16 8C16 6.41775 15.5308 4.87103 14.6518 3.55544C13.7727 2.23985 12.5233 1.21447 11.0615 0.608967C9.59966 0.00346625 7.99113 -0.15496 6.43928 0.153721C4.88743 0.462403 3.46197 1.22433 2.34315 2.34315C1.22433 3.46197 0.462403 4.88743 0.153721 6.43928C-0.15496 7.99113 0.00346625 9.59966 0.608967 11.0615C1.21447 12.5233 2.23985 13.7727 3.55544 14.6518C4.87103 15.5308 6.41775 16 8 16C9.77666 16.0022 11.5025 15.407 12.9 14.31L16.29 17.71C16.383 17.8037 16.4936 17.8781 16.6154 17.9289C16.7373 17.9797 16.868 18.0058 17 18.0058C17.132 18.0058 17.2627 17.9797 17.3846 17.9289C17.5064 17.8781 17.617 17.8037 17.71 17.71C17.8037 17.617 17.8781 17.5064 17.9289 17.3846C17.9797 17.2627 18.0058 17.132 18.0058 17C18.0058 16.868 17.9797 16.7373 17.9289 16.6154C17.8781 16.4936 17.8037 16.383 17.71 16.29V16.29ZM2 8C2 6.81332 2.3519 5.65328 3.01119 4.66658C3.67047 3.67989 4.60755 2.91085 5.7039 2.45673C6.80026 2.0026 8.00666 1.88378 9.17055 2.11529C10.3344 2.3468 11.4035 2.91825 12.2426 3.75736C13.0818 4.59648 13.6532 5.66558 13.8847 6.82946C14.1162 7.99335 13.9974 9.19975 13.5433 10.2961C13.0892 11.3925 12.3201 12.3295 11.3334 12.9888C10.3467 13.6481 9.18669 14 8 14C6.4087 14 4.88258 13.3679 3.75736 12.2426C2.63214 11.1174 2 9.5913 2 8Z" fill="#171717"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

2
pub/icons/qvij.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -29,7 +29,18 @@ $posts = get_posts( array(
if( $posts ){ if( $posts ){
include('views/rss/yanews.php');
ob_start();
include('views/rss/yanews.php');
$result = ob_get_contents();
ob_end_clean();
$result = trim($result);
if ($result !== ''){
file_put_contents('/vhosts/beta/rss/yanews.xml', trim($result));
}
} }

90
single-5121.php Normal file
View File

@@ -0,0 +1,90 @@
<?php get_header();?>
<div id="content">
<?//while(have_posts()):?>
<?the_post();?>
<?php $category = get_the_category();
$category_id = $category[0]->term_id;
$category_link = get_category_link($category_id);
$post_id = get_the_ID();
?>
<ul id="nav_content">
<li><a href="<?=get_site_url()?>">Главная</li>
<li>-<li>
<li><a href="<?=$category_link?>"><?=$category['0']->name;?></a></li>
<li>-<li>
<li><?=mb_substr(get_the_title(), 0, 50);?>...</li>
</ul>
<div class="post_info">
<div class="post_info_sub">
<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_info_sub post_info_social">
<?php include get_template_directory().'/blocks/social-share.php';?>
</div>
</div>
<div id="fulltext">
<h1 class="post-h1"><?php wp_title('');?></h1>
<?$author = get_the_author();
if ( ! empty ( $author ) AND $author !== 'vetandlife.ru'):?>
<div class="post_author">
Автор: <?php the_author(); ?>
</div>
<?endif?>
<?if ( has_post_thumbnail() ) :?>
<div id="post-img">
<img class="img-fluid rounded" src="<?php echo get_the_post_thumbnail_url(null, 'full');?>" alt="<?the_title();?>">
</div>
<div class="post_img_title"><?the_post_thumbnail_caption()?></div>
<?endif?>
<div class="fulltext">
<?the_content();?>
</div>
<div class="promo-agregators">
<p>Свежие отраслевые новости на нашем канале в <span class="promo-telega"><a href="https://t.me/ViZHuvizh" target="_blank">Telegram</a></span></p>
<p>Добавьте «Ветеринарию и жизнь» в избранное в <a href="https://yandex.ru/news/?favid=254162793" target="_blank"><span style="color:red; font-weight: bold;">Я</span><span style="font-weight: bold; color:black;">НДЕКС.НОВОСТИ</span></a></p>
</div>
<!--<p><small class="text-muted"><?php the_tags('');?></small></p> -->
<?//endwhile;?>
<?php include get_template_directory().'/blocks/yets.php';?>
<div id="tags">
<?php the_tags();?>
</div>
<div class="post_panel_info">
<div class="post_panel_info_sub">
<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>--> <?php include get_template_directory().'/blocks/social-share.php';?>
</div>
</div>
</div>
<?php include get_template_directory().'/blocks/moread.php';?>
<div class="publ-to-main">
<button class="more_button" onclick="location.href='<?=get_site_url()?>/page/2'" type="button">
На главную</button>
</div>
</div>
<?php get_footer();?>

View File

@@ -323,6 +323,7 @@ a{
display: flex; display: flex;
align-items: center; align-items: center;
box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07); box-shadow: 0px 4px 53px rgba(0, 0, 0, 0.07);
margin-right: 12px;
width: 100%; width: 100%;
/* justify-content: space-around; /* justify-content: space-around;
@@ -897,7 +898,7 @@ a{
#header_icons li{ #header_icons li{
width: 20px; width: 20px;
height: 15px; height: 20px;
margin-left: 6px; margin-left: 6px;
cursor: pointer; cursor: pointer;
} }
@@ -908,12 +909,12 @@ a{
} }
.btn_rss{ .btn_rss{
background: url(/wp-content/themes/vij/pub/icons/header-rss.png) no-repeat; background: url(/wp-content/themes/vij/pub/icons/rss.svg) no-repeat;
} }
.btn_lan{ .btn_lan{
font-weight: bold; font-weight: bold;
margin-top: -4px; margin-top: -2px;
} }
#copy{ #copy{
@@ -929,7 +930,7 @@ a{
} }
.btn_search{ .btn_search{
background: url(/wp-content/themes/vij/pub/icons/union.png) no-repeat; background: url(/wp-content/themes/vij/pub/icons/lupa.svg) no-repeat;
} }
@@ -1083,7 +1084,7 @@ a{
.mini-card-block{ .mini-card-block{
display: grid; display: grid;
grid-gap: 2rem; grid-gap: 2rem;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(250px, 350px));
} }
@@ -2112,6 +2113,7 @@ span.rub_back_title{
#header_icons{ #header_icons{
margin-left: 0; margin-left: 0;
padding-right: 8px;
} }
.main-card-title{ .main-card-title{
@@ -2128,7 +2130,9 @@ span.rub_back_title{
.toggle-nav { .toggle-nav {
display: inline-block !important; display: inline-block !important;
background: url(/wp-content/themes/vij/pub/icons/burger-15.png) no-repeat; background: url(/wp-content/themes/vij/pub/icons/gumburger.svg) no-repeat;
width: 20px;
height: 20px;
padding-left: 12px; padding-left: 12px;
} }
@@ -2338,8 +2342,8 @@ span.rub_back_title{
} }
#header_icons li{ #header_icons li{
width: 20px; width: 25px;
height: 15px; height: 25px;
margin-left: 8px; margin-left: 8px;
cursor: pointer; cursor: pointer;
} }
@@ -2347,7 +2351,9 @@ span.rub_back_title{
.toggle-nav { .toggle-nav {
display: inline-block !important; display: inline-block !important;
background: url(/wp-content/themes/vij/pub/icons/burger-15.png) no-repeat; background: url(/wp-content/themes/vij/pub/icons/gumburger.svg) no-repeat;
width: 20px;
height: 20px;
padding-left: 12px; padding-left: 12px;
} }
@@ -2467,8 +2473,8 @@ and (max-device-width : 667px) {
} }
#header_icons li{ #header_icons li{
width: 20px; width: 25px;
height: 15px; height: 25px;
margin-left: 6px; margin-left: 6px;
cursor: pointer; cursor: pointer;
} }