✏️ 编辑:archive.php
路径:
/virtual/bigbrother/public_html/hyper-tool.com/wp-content/themes/hestia/archive.php
大小:1.54 KB · 修改:2019-03-20 06:38:22 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
<?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. * * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy} * * @package Hestia * @since Hestia 1.0 * @modified 1.1.30 */ get_header(); $default = hestia_get_blog_layout_default(); $sidebar_layout = apply_filters( 'hestia_sidebar_layout', get_theme_mod( 'hestia_blog_sidebar_layout', $default ) ); $wrapper_classes = apply_filters( 'hestia_filter_archive_content_classes', 'col-md-8 archive-post-wrap' ); do_action( 'hestia_before_archive_content' ); ?> <div class="<?php echo hestia_layout(); ?>"> <div class="hestia-blogs" data-layout="<?php echo esc_attr( $sidebar_layout ); ?>"> <div class="container"> <div class="row"> <?php if ( $sidebar_layout === 'sidebar-left' ) { get_sidebar(); } ?> <div class="<?php echo esc_attr( $wrapper_classes ); ?>"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content' ); endwhile; the_posts_pagination(); else : get_template_part( 'template-parts/content', 'none' ); endif; ?> </div> <?php if ( $sidebar_layout === 'sidebar-right' ) { get_sidebar(); } ?> </div> </div> </div> <?php get_footer(); ?>
💾 保存
取消
保存为 UTF-8,换行统一为 LF