403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/thelittlebigshow/wp-content/plugins/slider-block/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/thelittlebigshow/wp-content/plugins/slider-block/slider-block.php
<?php

/**
 * Plugin Name:     Image Slider Block
 * Description:     Display Multiple Images In Beautiful Slider & Reduce Page Scroll
 * Version:         1.3.8
 * Author:          WPDeveloper
 * Author URI:           https://wpdeveloper.net
 * License:         GPL-3.0-or-later
 * License URI:     https://www.gnu.org/licenses/gpl-3.0.html
 * Text Domain:     slider-block
 *
 * @package         slider-block
 */

/**
 * Registers all block assets so that they can be enqueued through the block editor
 * in the corresponding context.
 *
 * @see https://developer.wordpress.org/block-editor/tutorials/block-tutorial/applying-styles-with-stylesheets/
 */

require_once __DIR__ . '/includes/font-loader.php';
require_once __DIR__ . '/includes/post-meta.php';
require_once __DIR__ . '/includes/helpers.php';
require_once __DIR__ . '/lib/style-handler/style-handler.php';

function create_block_slider_block_init() {
    define( 'SLIDER_BLOCK_VERSION', "1.3.8" );
    define( 'SLIDER_BLOCK_ADMIN_URL', plugin_dir_url( __FILE__ ) );
    define( 'SLIDER_BLOCK_ADMIN_PATH', dirname( __FILE__ ) );

    $script_asset_path = SLIDER_BLOCK_ADMIN_PATH . "/dist/index.asset.php";
    if ( ! file_exists( $script_asset_path ) ) {
        throw new Error(
            'You need to run `npm start` or `npm run build` for the "block/testimonial" block first.'
        );
    }
    $index_js         = SLIDER_BLOCK_ADMIN_URL . 'dist/index.js';
    $script_asset     = require $script_asset_path;
    $all_dependencies = array_merge( $script_asset['dependencies'], [
        'wp-blocks',
        'wp-i18n',
        'wp-element',
        'wp-block-editor',
        'slider-block-controls-util',
        'essential-blocks-slickjs',
        'essential-blocks-eb-animation'
    ] );

    wp_register_script(
        'create-block-slider-block-editor-script',
        $index_js,
        $all_dependencies,
        $script_asset['version'],
        true
    );

    $animate_css = SLIDER_BLOCK_ADMIN_URL . 'lib/css/animate.min.css';
    wp_register_style(
        'essential-blocks-animation',
        $animate_css,
        [],
        SLIDER_BLOCK_VERSION
    );

    $slick_css = SLIDER_BLOCK_ADMIN_URL . 'lib/css/slick.css';
    wp_register_style(
        'slick-style',
        $slick_css,
        [],
        SLIDER_BLOCK_VERSION
    );

    $slick_js = SLIDER_BLOCK_ADMIN_URL . 'lib/js/slick.min.js';
    wp_register_script(
        'essential-blocks-slickjs',
        $slick_js,
        ["jquery"],
        SLIDER_BLOCK_VERSION,
        true
    );

    $load_animation_js = SLIDER_BLOCK_ADMIN_URL . 'lib/js/eb-animation-load.js';
    wp_register_script(
        'essential-blocks-eb-animation',
        $load_animation_js,
        ["jquery"],
        SLIDER_BLOCK_VERSION,
        true
    );

		wp_register_style(
			'essential-blocks-fontawesome',
			SLIDER_BLOCK_ADMIN_URL . '/lib/css/fontawesome/css/all.min.css'
		);

    $style_css = SLIDER_BLOCK_ADMIN_URL . 'dist/style.css';
    //Frontend & Editor Style
    wp_register_style(
        'create-block-slider-block-frontend-style',
        $style_css,
        [
            'slick-style',
            'essential-blocks-animation',
						'essential-blocks-fontawesome'
        ],
        SLIDER_BLOCK_VERSION
    );

    //Frontend Style
    $frontend_js    = SLIDER_BLOCK_ADMIN_URL . 'dist/frontend/index.js';
    $frontend_asset = require SLIDER_BLOCK_ADMIN_PATH . '/dist/frontend/index.asset.php';
    wp_register_script(
        'slider-block-frontend-js',
        $frontend_js,
        $frontend_asset['dependencies'],
        $frontend_asset['version'],
        true
    );

    if ( ! WP_Block_Type_Registry::get_instance()->is_registered( 'essential-blocks/slider' ) ) {
        register_block_type(
            Slider_Helper::get_block_register_path( "slider-block/slider-block", SLIDER_BLOCK_ADMIN_PATH ),
            [
                'editor_script'   => 'create-block-slider-block-editor-script',
                'editor_style'    => 'create-block-slider-block-frontend-style',
                'render_callback' => function ( $attributes, $content ) {
                    if ( ! is_admin() ) {
                        wp_enqueue_style( 'create-block-slider-block-frontend-style' );
                        wp_enqueue_script( 'essential-blocks-slickjs' );
                        wp_enqueue_script( 'essential-blocks-eb-animation' );
                        wp_enqueue_script( 'slider-block-frontend-js' );
                    }
                    return $content;
                }
            ]
        );
    }
}
add_action( 'init', 'create_block_slider_block_init', 99 );

Youez - 2016 - github.com/yon3zu
LinuXploit