403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.46
Web Server : Apache
System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : infrafs ( 43850)
PHP Version : 8.2.29
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/infrafs/bike/wp-content/plugins/colibri-page-builder/extend-builder/shortcodes/blog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/infrafs/bike/wp-content/plugins/colibri-page-builder/extend-builder/shortcodes/blog/loop.php
<?php

namespace ExtendBuilder;

add_shortcode('colibri_item_template', function($attrs, $content = null) {
	$escaped_content = str_replace('<!---->', '', $content);
    $escaped_content = wp_kses_post($escaped_content);
    return do_shortcode($escaped_content);
});

add_shortcode('colibri_loop', '\ExtendBuilder\colibri_loop');

function colibri_loop($attrs, $content = null)
{
    ob_start();
    $atts = shortcode_atts(
        array(
            'query' => false,
            'no_posts_found_text' => 'No posts found',
            'posts' => '3',
            'filter_categories' => '',
            'filter_tags' => '',
            'filter_authors' => '',
            'order_by' => 'date',
            'order_type' => 'ASC',
            'post_order' => ''
        ),
        $attrs
    );

    $query = null;
    if ($atts['query'] == "true") {
	    $query = new \WP_Query(array(
		    'posts_per_page' =>  $atts['posts'],
            	    'ignore_sticky_posts' => 1,
		    'category_name' => $atts['filter_categories'],
		    'tag' => $atts['filter_tags'],
		    'author' => $atts['filter_authors'],
		    'orderby' => $atts['order_by'],
		    'order' => $atts['order_type'],
	    ));
    } else {
	    global $wp_query;
	    if (!$wp_query->in_the_loop) {
	    $query = $wp_query;
      }
    }

    $content = urldecode($content);


    if ($query) {

    if ($query->have_posts()):
        while ($query->have_posts()):
            $query->the_post();
            $escaped_content = str_replace('<!---->', '', $content);
            $shortcode_content = do_shortcode( $escaped_content );
            echo $shortcode_content;
        endwhile;
        wp_reset_postdata();
    else:
        ?>
          <div><?php echo wp_kses_post($atts['no_posts_found_text']); ?></div>
        <?php
    endif;
    }

    $content = ob_get_contents();
    ob_end_clean();

    return $content;

}

Youez - 2016 - github.com/yon3zu
LinuXploit