Файловый менеджер - Редактировать - /home/infrafs/INFRABIKEUS/wp-content/themes/trackstore/framework/modules/blog/templates/parts/image-background.php
Назад
<?php $image_size = isset( $image_size ) ? $image_size : 'full'; $image_meta = get_post_meta( get_the_ID(), 'eltd_blog_list_featured_image_meta', true ); $has_featured = ! empty( $image_meta ) || has_post_thumbnail(); $blog_list_image_id = ! empty( $image_meta ) && trackstore_elated_blog_item_has_link() ? trackstore_elated_get_attachment_id_from_url( $image_meta ) : ''; $background_image = ''; if ( ! empty( $blog_list_image_id ) ) { $background_image_url = wp_get_attachment_image_src( $blog_list_image_id, $image_size ); if ( ! empty( $background_image_url ) ) { $background_image = 'background-image: url( ' . esc_url( $background_image_url[0] ) . ')'; } } else { $background_image = 'background-image: url( ' . get_the_post_thumbnail_url( get_the_ID(), $image_size ) . ')'; } ?> <?php if ( $has_featured ) { ?> <div class="eltd-post-image-background" <?php trackstore_elated_inline_style($background_image); ?>> <a itemprop="url" href="<?php echo get_the_permalink(); ?>" title="<?php the_title_attribute(); ?>"></a> </div> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка