new style picture

This commit is contained in:
argoexpert press
2025-05-05 22:55:06 +03:00
parent b999114b8e
commit 9ff9de46a4
4 changed files with 14 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ $class = $full_width ? 'article-item article-item--lg' : 'article-item';
?> ?>
<div class="<?= $class; ?>"> <div class="<?= $class; ?>">
<a href="<?php the_permalink(); ?>" class="article-item__image-container"> <a href="<?php the_permalink(); ?>" class="article-item__image-container">
<?=render_webp_picture_by_post(); ?> <?=render_webp_picture_by_post( null, 'news-list-picture'); ?>
</a> </a>
<div class="article-item__text"> <div class="article-item__text">
<div class="article-time"> <div class="article-time">

View File

@@ -38,6 +38,12 @@ ul.wp-block-list li{
display: block; display: block;
} }
.news-list-picture{
height: 21rem !important;
object-fit: cover;
width: 100%;
}
.article-single IMG{ .article-single IMG{
max-width: 100%; max-width: 100%;
} }

View File

@@ -30,6 +30,10 @@ function redirect_non_admin_users() {
} }
add_action('admin_init', 'redirect_non_admin_users'); add_action('admin_init', 'redirect_non_admin_users');
//require_once get_template_directory() . '/filters/fix_agroexpert_links.php';
define('ENPART', 740); define('ENPART', 740);
define('EN_PARTS', '746,741,742,743,744,745'); define('EN_PARTS', '746,741,742,743,744,745');

View File

@@ -62,9 +62,10 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<header class="header"> <header class="header">
<div class="container"> <div class="container">
<div class="header__inner"> <div class="header__inner">
<?php $site_logo = get_field('site_logo', 'option'); ?> <?php $site_logo = get_field('site_logo', 'option');
$site_logo = "https://agroexpert.press/wp-content/uploads/2025/04/80_ae_logo.svg"?>
<a href="<?php echo home_url(); ?>" class="logo header__logo"> <a href="<?php echo home_url(); ?>" class="logo header__logo">
<img src="<?php echo esc_url($site_logo); ?>" alt="" /> <img src="<?php echo esc_url($site_logo); ?>" width="158" alt="" />
</a> </a>
<nav class="nav header__nav"> <nav class="nav header__nav">
<?php get_template_part('partials/menu-primary'); ?> <?php get_template_part('partials/menu-primary'); ?>