File: /disk001/machen/public_html/support/wp-content/themes/wp-moose/template-parts/special-loop.php
<?php
/**
* Template part for posts loop.
*
* @package Moose
*/
$layout = get_wp_moose_sidebar_layout();
$wrap_clsx = array(
'container mx-auto py-half-gutter lg:flex',
'lg:flex-row' => $layout === 'right-sidebar',
'lg:flex-row-reverse' => $layout === 'left-sidebar',
);
?>
<div class="<?php wp_moose_clsx_echo( $wrap_clsx ); ?>">
<div id="content" class="content flex-grow">
<?php if ( have_posts() ): ?>
<div class="flex flex-wrap">
<?php
// posts loop
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content' );
}
?>
</div>
<?php
/**
* Hook - wp_moose_action_posts_pagination.
*/
do_action( 'wp_moose_action_posts_pagination' );
?>
<?php else: ?>
<?php get_template_part( 'template-parts/content', 'none' ); ?>
<?php endif; ?>
</div>
<?php
/**
* Hook - wp_moose_action_sidebar.
*
* @hooked wp_moose_add_primary_sidebar - 10;
*/
do_action( 'wp_moose_action_sidebar', $layout );
?>
</div>