correct play icons and eng menu

This commit is contained in:
arlemp@selectel.ru
2021-12-25 00:10:28 +03:00
parent bdc408057f
commit e467080e6e
8 changed files with 60 additions and 27 deletions

View File

@@ -2,19 +2,18 @@
if (LANG_VERSION == 'en'){ if (LANG_VERSION == 'en'){
$left_mob_menu = 'leftenmenu'; $left_mob_menu = 'leftenmenu';
$gamburger_menu = 4789;
$part_title = 'Parts'; $part_title = 'Parts';
} }
else{ else{
$left_mob_menu = 'leftmenu'; $left_mob_menu = 'leftmenu';
$gamburger_menu = 23;
$part_title = 'Рубрики'; $part_title = 'Рубрики';
} }
//$menu_items = wp_get_nav_menu_items($gamburger_menu);?> //$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"> <div id="mobile_main_menu">

View File

@@ -17,7 +17,11 @@ if ( $q->have_posts() ) :
<?if ( has_post_thumbnail() ) :?> <?if ( has_post_thumbnail() ) :?>
<div class="card-img-top"> <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> </div>
<?endif?> <?endif?>

View File

@@ -27,7 +27,11 @@ $nn = 0;?>
<div class="main-card"> <div class="main-card">
<?if ( has_post_thumbnail() ) :?> <?if ( has_post_thumbnail() ) :?>
<div class="card-img-top"> <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> <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> </div>
<?endif?> <?endif?>
<h2 class="main-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2> <h2 class="main-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>
@@ -46,10 +50,11 @@ $nn = 0;?>
<div class="mini-card"> <div class="mini-card">
<?if ( has_post_thumbnail() ) :?> <?if ( has_post_thumbnail() ) :?>
<div class="mini-card-img"> <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( 'видео' ) ):?> <?if( has_tag( 'видео' ) ):?>
<span class="play-card"></span> <span class="play-card"></span>
<?endif?> <?endif?>
</a>
</div> </div>
<?endif?> <?endif?>
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2> <h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>

View File

@@ -108,29 +108,36 @@
</div><!-- end main --> </div><!-- end main -->
<?if (LANG_VERSION == 'ru'):?>
<div class="mobile-info"> <div class="mobile-info">
<a href="https://www.youtube.com/channel/UCOXOjXmMNl8eVO4ldrv5c5Q" target="_blank"> <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" /> <img src="https://vetandlife.ru/wp-content/uploads/2021/10/melano-live.png" width="240" height="200" />
</a> </a>
</div>
</div>
<?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?> <?get_template_part( '/blocks/mosts', null, ['subclass' => 'mob-lite']);?>
<div class="mobile-info"> <div class="mobile-info">
<a href="https://vetandlife.ru/category/sdelano-chestno/?utm_medium=banner&utm_campaign=mobile&utm_source=site" target="_blank"> <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" /> <img src="https://vetandlife.ru/wp-content/uploads/2021/12/fair_240x200.jpg" width="240" height="200" />
</a> </a>
</div> </div>
<?endif?>
<?php include get_template_directory().'/blocks/mobile-gazeta.php';?> <?php include get_template_directory().'/blocks/mobile-gazeta.php';?>
<div class="mobile-info"> <?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"> <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" /> <img src="https://vetandlife.ru/wp-content/uploads/2021/12/vgnki_240x200.jpg" width="240" height="200" />
</a> </a>
</div> </div>
<?endif?>
<?php include get_template_directory().'/blocks/mobile-subscript.php';?> <?php include get_template_directory().'/blocks/mobile-subscript.php';?>

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=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"> <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>

View File

@@ -39,10 +39,11 @@ $nn = 0;?>
<div class="mini-card"> <div class="mini-card">
<?if ( has_post_thumbnail() ) :?> <?if ( has_post_thumbnail() ) :?>
<div class="mini-card-img"> <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( 'видео' ) ):?> <?if( has_tag( 'видео' ) ):?>
<span class="play-card"></span> <span class="play-card"></span>
<?endif?> <?endif?>
</a>
</div> </div>
<?endif?> <?endif?>
<h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2> <h2 class="mini-card-title"><a href="<?the_permalink();?>"><?the_title();?></a></h2>

View File

@@ -8,6 +8,7 @@ function vij_lang($name, $lan){
'path_logo' => '/pub/logo/vij_logo.svg', 'path_logo' => '/pub/logo/vij_logo.svg',
'mainmenu' => 'topmenu', 'mainmenu' => 'topmenu',
'mob_main_menu' => 'mob_rubrics', 'mob_main_menu' => 'mob_rubrics',
'gamburger' => 23,
'btn_lan' => 'EN', 'btn_lan' => 'EN',
'btn_lan_link' => '/en/', 'btn_lan_link' => '/en/',
'alt_logo' => 'Ветеринария и жизнь. Информационный портал и газета', 'alt_logo' => 'Ветеринария и жизнь. Информационный портал и газета',
@@ -32,6 +33,7 @@ function vij_lang($name, $lan){
'path_logo' => '/pub/logo/vl_logo.svg', 'path_logo' => '/pub/logo/vl_logo.svg',
'mainmenu' => 'topenmenu', 'mainmenu' => 'topenmenu',
'mob_main_menu' => 'topenmenu', 'mob_main_menu' => 'topenmenu',
'gamburger' => 4838,
'btn_lan' => 'РУС', 'btn_lan' => 'РУС',
'btn_lan_link' => '/', 'btn_lan_link' => '/',
'alt_logo' => 'Veterinary Medicine and Life. Online news outlet and newspaper', 'alt_logo' => 'Veterinary Medicine and Life. Online news outlet and newspaper',

View File

@@ -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{ .card-img-top{
text-align: center; /**text-align: center;
width: 100%; */
position: relative;
width: 100%; width: 100%;
margin-bottom: 12px; margin-bottom: 12px;
} }