Файловый менеджер - Редактировать - /home/digitalm/birramastro/wp-content/themes/weisber/tmpl/post-formats/list-gallery.php
Назад
<?php /** * Gallery post format */ $post_class = ''; if ( function_exists( 'FW' ) ) { $gallery_files = fw_get_db_post_option(get_The_ID(), 'gallery'); } ?> <article id="post-<?php the_ID(); ?>" <?php post_class( esc_attr($post_class) ); ?>> <?php if ( !empty( $gallery_files ) ) { $autoplay = fw_get_db_settings_option( 'blog_gallery_autoplay' ); echo ' <div class="swiper-container ltx-post-gallery" data-autoplay="'.esc_attr($autoplay).'"> <div class="swiper-wrapper">'; foreach ( $gallery_files as $item ) { echo '<a href="'.esc_url(get_the_permalink()).'" class="swiper-slide">'; echo wp_get_attachment_image( $item['attachment_id'], 'weisber-blog-full' ); echo '</a>'; } echo '</div> <div class="arrows"> <a href="#" class="arrow-left fa fa-arrow-left"></a> <a href="#" class="arrow-right fa fa-arrow-right"></a> </div> <div class="swiper-pages"></div> </div>'; } else if ( has_post_thumbnail() ) { $weisber_photo_class = 'photo'; echo '<a href="'.esc_url(get_the_permalink()).'" class="'.esc_attr($weisber_photo_class).'">'; the_post_thumbnail(); echo '</a>'; } $headline = 'date'; ?> <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 weisber_get_the_post_headline(); ?> </div> </article>
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка