correct play icons and eng menu
This commit is contained in:
@@ -2,19 +2,18 @@
|
||||
|
||||
if (LANG_VERSION == 'en'){
|
||||
$left_mob_menu = 'leftenmenu';
|
||||
$gamburger_menu = 4789;
|
||||
|
||||
$part_title = 'Parts';
|
||||
|
||||
}
|
||||
else{
|
||||
$left_mob_menu = 'leftmenu';
|
||||
$gamburger_menu = 23;
|
||||
$part_title = 'Рубрики';
|
||||
}
|
||||
|
||||
//$menu_items = wp_get_nav_menu_items($gamburger_menu);?>
|
||||
|
||||
<?php $menu_items = wp_get_nav_menu_items($gamburger_menu);?>
|
||||
<?php $menu_items = wp_get_nav_menu_items(vij_lang('gamburger', LANG_VERSION));?>
|
||||
|
||||
<div id="mobile_main_menu">
|
||||
|
||||
|
||||
@@ -17,7 +17,11 @@ if ( $q->have_posts() ) :
|
||||
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<div class="card-img-top">
|
||||
<a href="<?the_permalink();?>"><img src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
|
||||
<a href="<?the_permalink();?>"><img src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>">
|
||||
<?if( has_tag( 'видео' ) ):?>
|
||||
<span class="play-card"></span>
|
||||
<?endif?>
|
||||
</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
|
||||
11
category.php
11
category.php
@@ -27,8 +27,12 @@ $nn = 0;?>
|
||||
<div class="main-card">
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<div class="card-img-top">
|
||||
<a href="<?the_permalink();?>"><img class="card-img-top" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>"></a>
|
||||
</div>
|
||||
<a href="<?the_permalink();?>"><img class="card-img-top" src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>" alt="<?the_title();?>">
|
||||
<?if( has_tag( 'видео' ) ):?>
|
||||
<span class="play-card"></span>
|
||||
<?endif?>
|
||||
</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
<h2 class="main-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
||||
<div class="main-card-body">
|
||||
@@ -46,10 +50,11 @@ $nn = 0;?>
|
||||
<div class="mini-card">
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<div class="mini-card-img">
|
||||
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'large'); ?>" alt="<?the_title();?>"></a>
|
||||
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(null, 'large'); ?>" alt="<?the_title();?>">
|
||||
<?if( has_tag( 'видео' ) ):?>
|
||||
<span class="play-card"></span>
|
||||
<?endif?>
|
||||
</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
||||
|
||||
41
footer.php
41
footer.php
@@ -108,29 +108,36 @@
|
||||
</div><!-- end main -->
|
||||
|
||||
|
||||
<div class="mobile-info">
|
||||
<a href="https://www.youtube.com/channel/UCOXOjXmMNl8eVO4ldrv5c5Q" target="_blank">
|
||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/melano-live.png" width="240" height="200" />
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
|
||||
<?if (LANG_VERSION == 'ru'):?>
|
||||
|
||||
<div class="mobile-info">
|
||||
<a href="https://vetandlife.ru/category/sdelano-chestno/?utm_medium=banner&utm_campaign=mobile&utm_source=site" target="_blank">
|
||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/fair_240x200.jpg" width="240" height="200" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="mobile-info">
|
||||
<a href="https://www.youtube.com/channel/UCOXOjXmMNl8eVO4ldrv5c5Q" target="_blank">
|
||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/10/melano-live.png" width="240" height="200" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
|
||||
|
||||
<div class="mobile-info">
|
||||
<a href="https://vetandlife.ru/category/sdelano-chestno/?utm_medium=banner&utm_campaign=mobile&utm_source=site" target="_blank">
|
||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/fair_240x200.jpg" width="240" height="200" />
|
||||
</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<?php include get_template_directory().'/blocks/mobile-gazeta.php';?>
|
||||
|
||||
|
||||
<div class="mobile-info">
|
||||
<a href="https://vetandlife.ru/parthers/v-fgbu-vgnki-razrabotan-metod-odnovremennogo-opredeleniya-v-kormah-bolee-120-lekarstvennyh-sredstv-primenyaemyh-v-zhivotnovodstve-antibiotikov-i-antiprotozojnyh-preparatov/" target="_blank">
|
||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_240x200.jpg" width="240" height="200" />
|
||||
</a>
|
||||
</div>
|
||||
<?if (LANG_VERSION == 'ru'):?>
|
||||
<div class="mobile-info">
|
||||
<a href="https://vetandlife.ru/parthers/v-fgbu-vgnki-razrabotan-metod-odnovremennogo-opredeleniya-v-kormah-bolee-120-lekarstvennyh-sredstv-primenyaemyh-v-zhivotnovodstve-antibiotikov-i-antiprotozojnyh-preparatov/" target="_blank">
|
||||
<img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_240x200.jpg" width="240" height="200" />
|
||||
</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<?php include get_template_directory().'/blocks/mobile-subscript.php';?>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<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');?><?=get_bloginfo('name')?></title>
|
||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=122">
|
||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri();?>?ver=123">
|
||||
<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/golos.js"></script>
|
||||
|
||||
@@ -39,10 +39,11 @@ $nn = 0;?>
|
||||
<div class="mini-card">
|
||||
<?if ( has_post_thumbnail() ) :?>
|
||||
<div class="mini-card-img">
|
||||
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="<?the_title();?>"></a>
|
||||
<a href="<?the_permalink();?>"><img class="mini-card-img" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="<?the_title();?>">
|
||||
<?if( has_tag( 'видео' ) ):?>
|
||||
<span class="play-card"></span>
|
||||
<?endif?>
|
||||
</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
|
||||
|
||||
2
lang.php
2
lang.php
@@ -8,6 +8,7 @@ function vij_lang($name, $lan){
|
||||
'path_logo' => '/pub/logo/vij_logo.svg',
|
||||
'mainmenu' => 'topmenu',
|
||||
'mob_main_menu' => 'mob_rubrics',
|
||||
'gamburger' => 23,
|
||||
'btn_lan' => 'EN',
|
||||
'btn_lan_link' => '/en/',
|
||||
'alt_logo' => 'Ветеринария и жизнь. Информационный портал и газета',
|
||||
@@ -32,6 +33,7 @@ function vij_lang($name, $lan){
|
||||
'path_logo' => '/pub/logo/vl_logo.svg',
|
||||
'mainmenu' => 'topenmenu',
|
||||
'mob_main_menu' => 'topenmenu',
|
||||
'gamburger' => 4838,
|
||||
'btn_lan' => 'РУС',
|
||||
'btn_lan_link' => '/',
|
||||
'alt_logo' => 'Veterinary Medicine and Life. Online news outlet and newspaper',
|
||||
|
||||
17
style.css
17
style.css
@@ -1115,9 +1115,24 @@ a{
|
||||
}
|
||||
|
||||
|
||||
.play-card-main{
|
||||
position: absolute;
|
||||
display: block;
|
||||
background: url(https://vetandlife.ru/wp-content/themes/vij/pub/play.png);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
top: 43%;
|
||||
left: 45%;
|
||||
background-size: 50px 50px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.card-img-top{
|
||||
text-align: center;
|
||||
/**text-align: center;
|
||||
width: 100%; */
|
||||
position: relative;
|
||||
width: 100%;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user