Файловый менеджер - Редактировать - /home/pimjdymy/public_html/zeroesops/wp-content/themes/zeroesops/index.php
Назад
<?php /** * The main template file * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package Zeroesops */ get_header(); ?> <div class="site-wrapper-reveal"> <!-- breadcrumb-area start --> <?php get_template_part( 'template-parts/content', 'breadcrumbs' ); ?> <!-- breadcrumb-area end --> <?php if ( have_posts() ) : ?> <div class="blog-pages-wrapper section-space--ptb_100"> <div class="container"> <div class="row"> <?php while ( have_posts() ) : the_post(); ?> <div class="col-lg-4 col-md-6 mb-30 wow move-up"> <!--======= Single Blog Item Start ========--> <div class="single-blog-item blog-grid"> <!-- Post Feature Start --> <?php if( has_post_thumbnail() ): ?> <div class="post-feature blog-thumbnail"> <a href="<?php the_permalink(); ?>"> <img class="blog-img-fluid" src="<?php echo get_the_post_thumbnail_url(); ?>" alt="Blog Images"> </a> </div> <?php endif; ?> <!-- Post Feature End --> <!-- Post info Start --> <div class="post-info lg-blog-post-info"> <div class="post-meta"> <div class="post-date"> <span class="far fa-calendar meta-icon"></span> <?php echo get_the_date(); ?> </div> </div> <h5 class="post-title font-weight--bold"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h5> <div class="post-excerpt mt-15"> <p><?php echo wp_trim_words( get_the_excerpt(), 20, '...' ); ?></p> </div> <div class="btn-text"> <a href="<?php the_permalink(); ?>">Read more <i class="ml-1 button-icon far fa-long-arrow-right"></i></a> </div> </div> <!-- Post info End --> </div> <!--===== Single Blog Item End =========--> </div> <?php endwhile; ?> <!-- Custom Pagination --> <div class="col-lg-12 wow move-up"> <div class="ht-pagination mt-30 pagination justify-content-center"> <div class="pagination-wrapper"> <ul class="page-pagination"> <?php $big = 999999999; $pagination_links = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'prev_text' => __( 'Prev', 'textdomain' ), 'next_text' => __( 'Next', 'textdomain' ), 'type' => 'array', ) ); if ( is_array( $pagination_links ) ) { foreach ( $pagination_links as $link ) { if ( strpos( $link, 'prev' ) !== false ) { echo '<li class="prev page-numbers">' . $link . '</li>'; } elseif ( strpos( $link, 'next' ) !== false ) { $next_link = '<li class="next page-numbers">' . $link . '</li>'; } else { echo '<li>' . $link . '</li>'; } } if ( isset( $next_link ) ) { echo $next_link; } } ?> </ul> </div> </div> </div> </div> </div> </div> <?php else : ?> <p><?php esc_html_e( 'Sorry, no posts matched your criteria.', 'textdomain' ); ?></p> <?php endif; ?> <div class="cta-image-area_one section-space--ptb_80 cta-bg-image_one"> <div class="container"> <div class="row align-items-center"> <?php if( get_field( 'action_title', 'option' ) ): ?> <div class="col-xl-8 col-lg-7"> <div class="cta-content md-text-center"> <h3 class="heading text-white"><?php echo get_field( 'action_title', 'option' ); ?></h3> </div> </div> <?php endif; ?> <?php $button_link = get_field( 'button_link', 'option' ); ?> <div class="col-xl-4 col-lg-5"> <div class="cta-button-group--one text-center"> <?php if( $button_link['talk_button'] ): ?><a href="<?php echo $button_link['talk_button']['url']; ?>" class="btn btn--white btn-one"><span class="btn-icon me-2"><i class="far fa-comment-alt-dots"></i></span> <?php echo $button_link['talk_button']['title']; ?></a><?php endif; ?> <?php if( $button_link['info_button'] ): ?><a href="<?php echo $button_link['info_button']['url']; ?>" class="btn btn--secondary btn-two"><span class="btn-icon me-2"><i class="far fa-info-circle"></i></span> <?php echo $button_link['info_button']['title']; ?></a><?php endif; ?> </div> </div> </div> </div> </div> <?php // get_sidebar(); get_footer();
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка