File manager - Edit - /home/infoilmg/public_html/wp-content/themes/voice/template-parts/modules/posts.php
Back
<?php $mod = wp_parse_args( (array) $mod, vce_get_module_defaults_posts() ); ?> <?php $module_query = vce_get_module_query( $mod, vce_module_template_is_paged() ); ?> <?php echo vce_open_column_wrap($mod); ?> <div id="main-box-<?php echo esc_attr($k+1); ?>" class="main-box vce-border-top <?php echo vce_get_column_class($mod); ?> <?php echo esc_attr(vce_get_module_css_class($mod)); ?>"> <?php if(!empty($mod['title']) && empty($mod['hide_title'])): ?> <h3 class="main-box-title <?php echo vce_get_cat_class( $mod ); ?>"><?php echo vce_get_module_title($mod); ?></h3> <?php endif; ?> <div class="main-box-inside <?php echo vce_get_mainbox_class( $mod ); ?>"> <?php if ( $module_query->have_posts() ) : ?> <?php $i = 0; while ( $module_query->have_posts() ) : $module_query->the_post(); $i++; ?> <?php echo vce_loop_wrap_div($mod, $i, count( $module_query->posts ) ); ?> <?php get_template_part( 'template-parts/loops/layout-'.vce_module_layout($mod, $i) ); ?> <?php if ( $i == ( count( $module_query->posts ) ) ) : ?> </div> <?php endif;?> <?php endwhile; ?> <?php echo vce_check_module_action( $mod, $module_query ); ?> <?php else: ?> <?php if ( current_user_can( 'manage_options' ) ): ?> <p class="no-modules-msg"><?php wp_kses_post( sprintf( __( 'No posts match your criteria. Please choose different options in <a href="%s">Module Generator</a>.', 'voice' ), admin_url( 'post.php?post='.get_the_ID().'&action=edit#vce_hp_modules' ) ) ); ?></p> <?php endif; ?> <?php endif; ?> <?php wp_reset_postdata(); ?> </div> </div> <?php echo vce_close_column_wrap($modules, $k ); ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings