<?php /** * Index template. * * @package Neve */ /** * Filters the container classes. * * @param string $classes Container classes. * * @since 1.0.0 */ $container_class = apply_filters( 'neve_container_class_filter', 'container', 'blog-archive' ); get_header(); $wrapper_classes = [ 'posts-wrapper' ]; $wrapper_classes = apply_filters( 'neve_posts_wrapper_class', $wrapper_classes ); $load_before_after_hooks = get_theme_mod( 'neve_blog_archive_layout', 'grid' ) === 'default'; ?> <div class="<?php echo esc_attr( $container_class ); ?> archive-container"> <?php /** * Executes the rendering function for the featured post. * * @since 3.2 */ do_action( 'neve_do_featured_post', 'index' ); ?> <div class="row"> <?php /** * Executes the rendering function for the sidebar. * * @param string $context Sidebar context. * @param string $position Sidebar position. * * @since 1.0.0 */ do_action( 'neve_do_sidebar', 'blog-archive', 'left' ); ?> <div class="nv-index-posts blog col"> <?php /** * Executes actions before the posts loop start. * * @since 2.4.0 */ do_action( 'neve_before_loop' ); /** * Executes the rendering function for the page header. * * @param string $context Header display page. * * @since 2.3.10 */ do_action( 'neve_page_header', 'index' ); /** * Executes actions before the post loop. * * @since 2.3.10 */ do_action( 'neve_before_posts_loop' ); if ( have_posts() ) { /* Start the Loop. */ echo '<div class="' . esc_attr( join( ' ', $wrapper_classes ) ) . '">'; $pagination_type = get_theme_mod( 'neve_pagination_type', 'number' ); if ( $pagination_type !== 'infinite' ) { global $wp_query; $posts_on_current_page = $wp_query->post_count; $hook_after_post = -1; if ( $posts_on_current_page >= 2 ) { $hook_after_post = (int) ceil( $posts_on_current_page / 2 ); } $post_index = 1; } neve_do_loop_hook( 'before' ); /** * Exclude posts from the main loop * * @param array $excluded_posts Excluded post ids. * @since 3.2 */ $excluded_posts = apply_filters( 'nv_exclude_posts', [] ); while ( have_posts() ) { the_post(); $pid = get_the_ID(); if ( in_array( $pid, $excluded_posts, true ) ) { continue; } neve_do_loop_hook( 'entry_before' ); if ( $load_before_after_hooks ) { /** * Executes actions before rendering the post content. * * @since 2.11 */ do_action( 'neve_loop_entry_before' ); } get_template_part( 'template-parts/content', get_post_type() ); if ( $load_before_after_hooks ) { /** * Executes actions after rendering the post content. * * @since 2.11 */ do_action( 'neve_loop_entry_after' ); } if ( $pagination_type !== 'infinite' && $load_before_after_hooks ) { if ( $post_index === $hook_after_post && $hook_after_post !== - 1 ) { /** * Executes actions in the middle of the loop. * * The actions only fires if the pagination is not set as "infinite scroll". * * @since 2.3.10 */ do_action( 'neve_middle_posts_loop' ); } $post_index ++; } neve_do_loop_hook( 'entry_after' ); } echo '</div>'; if ( ! is_singular() ) { /** * Executes the rendering function for the pagination. * * @param string $context Pagination location context. */ do_action( 'neve_do_pagination', 'blog-archive' ); } } else { get_template_part( 'template-parts/content', 'none' ); } ?> <div class="w-100"></div> <?php /** * Executes actions after the post loop. * * @since 2.3.10 */ do_action( 'neve_after_posts_loop' ); neve_do_loop_hook( 'after' ); ?> </div> <?php do_action( 'neve_do_sidebar', 'blog-archive', 'right' ); ?> </div> </div> <?php get_footer();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
docs | Folder | 0755 |
|
|
globals | Folder | 0755 |
|
|
header-footer-grid | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
page-templates | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
vendor | Folder | 0755 |
|
|
views | Folder | 0755 |
|
|
woocommerce | Folder | 0755 |
|
|
404.php | File | 108 B | 0644 |
|
500.php | File | 178 B | 0644 |
|
CHANGELOG.md | File | 58.28 KB | 0644 |
|
LICENSE.txt | File | 17.67 KB | 0644 |
|
archive-download.php | File | 1.06 KB | 0644 |
|
autoloader.php | File | 4.05 KB | 0644 |
|
comments.php | File | 295 B | 0644 |
|
footer-pwa.php | File | 147 B | 0644 |
|
footer.php | File | 1.21 KB | 0644 |
|
functions.php | File | 5.03 KB | 0644 |
|
header-pwa.php | File | 680 B | 0644 |
|
header.php | File | 2.63 KB | 0644 |
|
index.php | File | 4.09 KB | 0644 |
|
offline.php | File | 178 B | 0644 |
|
page.php | File | 1.59 KB | 0644 |
|
readme.md | File | 41.69 KB | 0644 |
|
readme.txt | File | 41.6 KB | 0644 |
|
screenshot-mobile.png | File | 17.77 KB | 0644 |
|
screenshot.png | File | 610.36 KB | 0644 |
|
search.php | File | 1.18 KB | 0644 |
|
searchform.php | File | 1.97 KB | 0644 |
|
sidebar-shop.php | File | 325 B | 0644 |
|
sidebar.php | File | 306 B | 0644 |
|
single-download.php | File | 1.21 KB | 0644 |
|
single.php | File | 1.17 KB | 0644 |
|
start.php | File | 2.38 KB | 0644 |
|
style-main-new-rtl.css | File | 45.37 KB | 0644 |
|
style-main-new-rtl.min.css | File | 38.12 KB | 0644 |
|
style-main-new.css | File | 45.4 KB | 0644 |
|
style-main-new.min.css | File | 38.1 KB | 0644 |
|
style.css | File | 1.63 KB | 0644 |
|
taxonomy-download_category.php | File | 1.07 KB | 0644 |
|
taxonomy-download_tag.php | File | 1.07 KB | 0644 |
|
toolset-config.json | File | 4.33 KB | 0644 |
|
wpml-config.xml | File | 1.08 KB | 0644 |
|