![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /var/www/theprintave/wp-content/plugins/haru-pricom/templates/menu-post/ |
<?php /** * @package HaruTheme/Haru Pricom * @version 1.0.0 * @author Administrator <admin@harutheme.com> * @copyright Copyright 2022, HaruTheme * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link http://harutheme.com */ use \Haru_Pricom\Classes\Helper as ControlsHelper; use \Haru_Pricom\Classes\Haru_Template; global $wp_query; $original_query = $wp_query; $args = ControlsHelper::get_query_args( $settings ); $wp_query = new \WP_Query( $args ); ?> <?php if ( have_posts() ) : ?> <?php if ( 'list-small' == $settings['pre_style'] ) : ?> <div class="post-list"> <?php while ( have_posts() ) : the_post(); echo Haru_Template::haru_get_template( 'menu-post/post-style-1.php', $settings ); endwhile; ?> </div> <?php endif; ?> <?php else : ?> <div class="haru-info"><?php echo esc_html__( 'No post found', 'haru-pricom' ); ?></div> <?php endif; ?> <?php wp_reset_query(); $wp_query = $original_query;