Файловый менеджер - Редактировать - /home/digitalm/birramastro/wp-content/themes/weisber/tmpl/post-formats/list.php
Назад
<?php /** * The default template for displaying standard post format */ $post_class = ''; $featured = get_query_var( 'weisber_featured_disabled' ); if ( function_exists( 'FW' ) AND empty ( $featured ) ) { $featured_post = fw_get_db_post_option(get_The_ID(), 'featured'); if ( !empty($featured_post) ) { $post_class = 'ltx-featured-post-none'; } } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( esc_attr($post_class) ); ?>> <?php if ( has_post_thumbnail() ) { $weisber_photo_class = 'photo'; $weisber_layout = get_query_var( 'weisber_layout' ); $weisber_image_src = wp_get_attachment_image_src( get_post_thumbnail_id( get_The_ID()), 'full' ); if ($weisber_image_src[2] > $weisber_image_src[1]) $weisber_photo_class .= ' vertical'; echo '<a href="'.esc_url(get_the_permalink()).'" class="'.esc_attr($weisber_photo_class).'">'; if ( empty($weisber_layout) OR $weisber_layout == 'classic' ) { the_post_thumbnail(); } else if ( $weisber_layout == 'two-cols' ) { the_post_thumbnail(); } else { $sizes_hooks = array( 'weisber-blog', 'weisber-blog-full' ); $sizes_media = array( '1199px' => 'weisber-blog' ); weisber_the_img_srcset( get_post_thumbnail_id(), $sizes_hooks, $sizes_media ); } echo '</a>'; } ?> <div class="description"> <?php weisber_get_the_cats_archive(); ?> <a href="<?php esc_url( the_permalink() ); ?>" class="header"><h3><?php the_title(); ?></h3></a> <?php if ( !function_exists('FW') ) { $weisber_display_excerpt = 'visible'; } if ( (!has_post_thumbnail() OR empty($weisber_layout)) OR !empty( $weisber_display_excerpt ) ): if ( !empty( $weisber_display_excerpt ) AND $weisber_display_excerpt == 'visible' ): ?> <div class="text text-page"> <?php add_filter( 'the_content', 'weisber_excerpt' ); if( strpos( $post->post_content, '<!--more-->' ) ) { the_content( esc_html__( 'Read more', 'weisber' ) ); } else { the_excerpt(); } ?> </div> <?php endif; endif; ?> <?php weisber_get_the_post_headline(); ?> </div> </article>
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.04 |
proxy
|
phpinfo
|
Настройка