📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 12:15:20
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
templates
/
pxl_recent_news
✏️
Editing: layout-1.php
<?php $source = $widget->get_setting('source', ''); $orderby = $widget->get_setting('orderby', 'date'); $order = $widget->get_setting('order', 'desc'); $limit = $widget->get_setting('limit', 4); $post_ids = $widget->get_setting('post_ids', ''); extract(pxl_get_posts_of_grid('post', [ 'source' => $source, 'orderby' => $orderby, 'order' => $order, 'limit' => $limit, 'post_ids' => $post_ids, ])); $show_date = $widget->get_setting('show_date', ''); $show_category = $widget->get_setting('show_category', ''); if (is_array($posts)): ?> <div class="pxl-recent-news pxl-recent-news1"> <h3 class="pxl-box--title pxl-empty"><?php echo esc_attr($settings['box_title']) ?></h3> <?php foreach ($posts as $key => $post): ?> <div class="pxl-post-item"> <?php if($show_category == 'true'): ?> <div class="pxl-post--category"> <?php the_terms( $post->ID, 'category', '', ' ' ); ?> </div> <?php endif; ?> <h5 class="pxl-post--title title-hover-line title-hover-line-dark"><a href="<?php echo esc_url(get_permalink( $post->ID )); ?>"><?php echo esc_attr(get_the_title($post->ID)); ?></a></h5> <?php if($show_date == 'true'): ?> <div class="pxl-post--date"> <?php $date_formart = get_option('date_format'); echo get_the_date($date_formart, $post->ID); ?> </div> <?php endif; ?> </div> <?php endforeach; ?> </div> <?php endif; ?>
💾 Save Changes
❌ Cancel