new style picture
This commit is contained in:
@@ -5,7 +5,7 @@ $class = $full_width ? 'article-item article-item--lg' : 'article-item';
|
||||
?>
|
||||
<div class="<?= $class; ?>">
|
||||
<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>
|
||||
<div class="article-item__text">
|
||||
<div class="article-time">
|
||||
|
||||
@@ -38,6 +38,12 @@ ul.wp-block-list li{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.news-list-picture{
|
||||
height: 21rem !important;
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.article-single IMG{
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,10 @@ function 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('EN_PARTS', '746,741,742,743,744,745');
|
||||
|
||||
|
||||
@@ -62,9 +62,10 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
<header class="header">
|
||||
<div class="container">
|
||||
<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">
|
||||
<img src="<?php echo esc_url($site_logo); ?>" alt="" />
|
||||
<img src="<?php echo esc_url($site_logo); ?>" width="158" alt="" />
|
||||
</a>
|
||||
<nav class="nav header__nav">
|
||||
<?php get_template_part('partials/menu-primary'); ?>
|
||||
|
||||
Reference in New Issue
Block a user