0xsec Shell
0xSec


Server : LiteSpeed
System : Linux webbox1.ncrdns.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User : rahcos ( 1533)
PHP Version : 8.4.23
Disable Function : NONE
Directory :  /home/rahcos/.trash/wp-content/themes/hara/elementor_templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/rahcos/.trash/wp-content/themes/hara/elementor_templates/posts-grid.php
<?php
/**
 * Templates Name: Elementor
 * Widget: Post Grid
 */

$query = $this->query_posts();

if (!$query->found_posts) {
    return;
}
$this->settings_layout();
$this->add_render_attribute('item', 'class', 'item');

$style = $settings['style'];

$allowed_styles = array_keys($this->get_post_style());
if ( ! in_array( $style, $allowed_styles ) ) {
    $style = 'post-style-1';
}

$configs = array(
    'thumbnail_size_size',
    'show_title',
    'show_category',
    'post_title_tag',
    'show_excerpt',
    'excerpt_length',
    'show_read_more',
    'read_more_text',
    'show_author',
    'show_date',
    'show_comments',
    'show_comments_text',
);
foreach ($configs as $value) {
    set_query_var($value, $settings[$value]);
}
set_query_var('style', $style);
?>

<div <?php echo $this->get_render_attribute_string('wrapper'); ?>>

    <?php $this->render_element_heading(); ?>

    <div <?php echo $this->get_render_attribute_string('row'); ?>>

        <?php while ($query->have_posts()) : $query->the_post(); global $product; ?>
            <div <?php echo $this->get_render_attribute_string('item'); ?>>
                <?php get_template_part('page-templates/posts/item-'. $style); ?>     
            </div>
        <?php endwhile; ?> 

        <?php wp_reset_postdata(); ?>
    </div>
</div>

c0oded By c0rpz