8889841chome/clixcotz/benson.clix.co.tz/wp-content/plugins/revslider/admin/revslider-admin.class.php 0000644 00000126117 15052140203 0026361 0 ustar 00 * @link https://www.themepunch.com/ * @copyright 2024 ThemePunch */ if(!defined('ABSPATH')) exit(); class RevSliderAdmin extends RevSliderFunctionsAdmin { private $view = 'slider'; private $user_role = 'administrator'; private $global_settings = array(); private $screens = array(); //holds all RevSlider Relevant screens in it private $allowed_views = array('sliders', 'slider', 'slide', 'update'); //holds pages, that are allowed to be included private $pages = array('revslider'); //, 'revslider_navigation', 'rev_addon', 'revslider_global_settings' private $dev_mode = false; private $path_views; /** * START: DEPRECATED FUNCTIONS PRIOR 6.2.0 THAT ARE IN HERE FOR OLD THEMES TO WORK PROPERLY **/ /** * Activate the Plugin through the ThemePunch Servers * @before: RevSliderOperations::checkPurchaseVerification(); * @moved to RevSliderLicense::activate_plugin(); **/ public function activate_plugin($code){ $this->add_deprecation_message('RevSliderAdmin->activate_plugin', 'RevSliderLicense->active_plugin'); $rs_license = new RevSliderLicense(); return $rs_license->activate_plugin($code); } /** * Deactivate the Plugin through the ThemePunch Servers * @before: RevSliderOperations::doPurchaseDeactivation(); * @moved to RevSliderLicense::deactivate_plugin(); **/ public function deactivate_plugin(){ $this->add_deprecation_message('RevSliderAdmin->deactivate_plugin', 'RevSliderAdmin->deactivate_plugin'); $rs_license = new RevSliderLicense(); return $rs_license->deactivate_plugin(); } /** * END: DEPRECATED FUNCTIONS THAT ARE IN HERE FOR OLD ADDONS TO WORK PROPERLY **/ /** * construct admin part **/ public function __construct(){ parent::__construct(); if(!file_exists(RS_PLUGIN_PATH.'admin/assets/js/plugins/utils.min.js') && !file_exists(RS_PLUGIN_PATH.'admin/assets/js/modules/editor.min.js')){ $this->dev_mode = true; } $this->path_views = RS_PLUGIN_PATH . 'admin/views/'; $this->global_settings = $this->get_global_settings(); $this->set_current_page(); $this->set_user_role(); $this->do_update_checks(); $this->add_actions(); $this->add_filters(); } /** * enqueue all admin styles **/ public function enqueue_admin_styles(){ global $pagenow; if(!in_array($this->get_val($_GET, 'page'), $this->pages) && !$this->is_edit_page() && (!isset($pagenow) || $pagenow !== 'plugins.php')) return; $f = new RevSliderFunctions(); $gs = $f->get_global_settings(); $fdl = $f->get_val($gs, 'fontdownload', 'off'); if($fdl === 'preload'){ $fonts = array('Open Sans' => 'Open+Sans:wght@300;400;600;700;800', 'Roboto' => 'Roboto:wght@300;400;500;700');//, 'Material Icons' => 'Material+Icons' $html = $f->preload_fonts($fonts); if(!empty($html)) echo $html; echo "\n\n"; }else{ //off or disabled $url_css = $f->modify_fonts_url('https://fonts.googleapis.com/css2?family='); $url_material = str_replace('css?', 'icon?', $url_css); wp_enqueue_style('rs-open-sans', $url_css.'Open+Sans:wght@300;400;600;700;800'); wp_enqueue_style('rs-roboto', $url_css.'Roboto'); wp_enqueue_style('tp-material-icons', $url_material.'Material+Icons'); } //wp_enqueue_style('revslider-global-styles', RS_PLUGIN_URL_CLEAN . 'admin/assets/css/global.css', array(), RS_REVISION); wp_enqueue_style(array('wp-jquery-ui', 'wp-jquery-ui-core', 'wp-jquery-ui-dialog', 'wp-color-picker')); wp_enqueue_style('revbuilder-color-picker-css', RS_PLUGIN_URL_CLEAN . 'admin/assets/css/tp-color-picker.css', array(), RS_REVISION); wp_enqueue_style('revbuilder-ddTP', RS_PLUGIN_URL_CLEAN . 'admin/assets/css/ddTP.css', array(), RS_REVISION); //wp_enqueue_style('RevMirror-css', RS_PLUGIN_URL_CLEAN .'admin/assets/css/RevMirror.css', array(), RS_REVISION); wp_enqueue_style('rs-frontend-settings', RS_PLUGIN_URL_CLEAN . 'sr6/assets/css/rs6.css', array(), RS_REVISION); wp_enqueue_style('rs-icon-set-fa-icon-', RS_PLUGIN_URL_CLEAN . 'sr6/assets/fonts/font-awesome/css/font-awesome.css', array(), RS_REVISION); wp_enqueue_style('rs-icon-set-pe-7s-', RS_PLUGIN_URL_CLEAN . 'sr6/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css', array(), RS_REVISION); wp_enqueue_style('revslider-basics-css', RS_PLUGIN_URL_CLEAN . 'admin/assets/css/basics.css', array(), RS_REVISION); //'rs-new-plugin-settings' wp_enqueue_style('rs-new-plugin-settings', RS_PLUGIN_URL_CLEAN . 'admin/assets/css/builder.css', array('revslider-basics-css'), RS_REVISION); if(is_rtl()){ wp_enqueue_style('rs-new-plugin-settings-rtl', RS_PLUGIN_URL_CLEAN . 'admin/assets/css/builder-rtl.css', array('rs-new-plugin-settings'), RS_REVISION); } } /** * enqueue all admin scripts **/ public function enqueue_admin_scripts(){ global $pagenow; if(!in_array($this->get_val($_GET, 'page'), $this->pages) && !$this->is_edit_page() && (!isset($pagenow) || $pagenow !== 'plugins.php')) return; wp_enqueue_script(array('jquery', 'jquery-ui-core', 'jquery-ui-mouse', 'jquery-ui-accordion', 'jquery-ui-datepicker', 'jquery-ui-dialog', 'jquery-ui-slider', 'jquery-ui-autocomplete', 'jquery-ui-sortable', 'jquery-ui-droppable', 'jquery-ui-tabs', 'jquery-ui-widget', 'wp-color-picker', 'wpdialogs', 'updates')); wp_enqueue_script(array('wp-color-picker')); //include all media upload scripts $this->add_media_upload_includes(); global $wp_scripts; $view = $this->get_val($_GET, 'view'); wp_enqueue_script('jquery-ui-droppable', array('jquery'), RS_REVISION); /** * dequeue tp-tools to make sure that always the latest is loaded **/ if(version_compare($this->get_val($wp_scripts, array('registered', 'tp-tools', 'ver'), '1.0'), RS_TP_TOOLS, '<')){ wp_deregister_script('tp-tools'); wp_dequeue_script('tp-tools'); } wp_enqueue_script('tp-tools', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/rbtools.min.js', array(), RS_TP_TOOLS); if($view == '' && $this->get_val($_GET, 'page') === 'revslider'){ //overview page wp_enqueue_script('_tpt', RS_PLUGIN_URL_CLEAN . 'public/js/libs/tptools.js', '', RS_REVISION); } if($this->dev_mode){ wp_enqueue_script('revbuilder-admin', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/admin.js', array('jquery'), RS_REVISION, false); wp_localize_script('revbuilder-admin', 'RVS_LANG', $this->get_javascript_multilanguage()); //Load multilanguage for JavaScript wp_enqueue_script('revbuilder-basics', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/basics.js', array('jquery'), RS_REVISION, false); wp_enqueue_script('revbuilder-ddTP', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/plugins/ddTP.js', array('jquery'), RS_REVISION, false); wp_enqueue_script('revbuilder-color-picker-js', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/plugins/tp-color-picker.min.js', array('jquery', 'revbuilder-ddTP', 'wp-color-picker'), RS_REVISION); wp_enqueue_script('revbuilder-clipboard', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/plugins/clipboard.min.js', array('jquery'), RS_REVISION, false); wp_enqueue_script('revbuilder-objectlibrary', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/objectlibrary.js', array('jquery'), RS_REVISION, false); wp_enqueue_script('revbuilder-optimizer', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/optimizer.js', array('jquery'), RS_REVISION, false); }else{ wp_enqueue_script('revbuilder-admin', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/admin.min.js', array('jquery'), RS_REVISION, false); wp_localize_script('revbuilder-admin', 'RVS_LANG', $this->get_javascript_multilanguage()); //Load multilanguage for JavaScript wp_enqueue_script('revbuilder-utils', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/plugins/utils.min.js', array('jquery', 'wp-color-picker'), RS_REVISION, false); } if($view == 'slide' && $this->dev_mode){ wp_enqueue_script('revbuilder-help', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/helpinit.js', array('jquery', 'revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-toolbar', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/rightclick.js', array('jquery', 'revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-effects', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/timeline.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-panzoom', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.panzoom.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-slideanim', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.slideanims.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-layer', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/layer.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-layertools', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/layertools.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-quick-style', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/quickstyle.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-navigations', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/navigation.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-layeractions', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/layeractions.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-layerlist', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/layerlist.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-slide', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/slide.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder-slider', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/slider.js', array('jquery','revbuilder-admin'), RS_REVISION, false); wp_enqueue_script('revbuilder', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/builder.js', array('jquery','revbuilder-admin', 'jquery-ui-sortable'), RS_REVISION, false); add_action('admin_print_scripts', array($this, 'add_editor_mode'), 1); }elseif($view == 'slide' && !$this->dev_mode){ wp_enqueue_script('revbuilder-editor', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/editor.min.js', array('jquery', 'revbuilder-admin', 'jquery-ui-sortable'), RS_REVISION, false); add_action('admin_print_scripts', array($this, 'add_editor_mode'), 1); } if($view == '' || $view == 'sliders'){ if($this->dev_mode){ wp_enqueue_script('revbuilder-overview', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/overview.js', array('jquery'), RS_REVISION, false); }else{ wp_enqueue_script('revbuilder-overview', RS_PLUGIN_URL_CLEAN . 'admin/assets/js/modules/overview.min.js', array('jquery'), RS_REVISION, false); } if(!file_exists(RS_PLUGIN_PATH.'sr6/assets/js/rs6.min.js')){ wp_enqueue_script('revmin', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.main.js', 'tp-tools', RS_REVISION, false); //if on, load all libraries instead of dynamically loading them wp_enqueue_script('revmin-actions', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.actions.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-carousel', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.carousel.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-layeranimation', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.layeranimation.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-navigation', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.navigation.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-panzoom', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.panzoom.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-parallax', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.parallax.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-slideanims', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.slideanims.js', 'tp-tools', RS_REVISION, false); wp_enqueue_script('revmin-video', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/dev/rs6.video.js', 'tp-tools', RS_REVISION, false); }else{ wp_enqueue_script('revmin', RS_PLUGIN_URL_CLEAN . 'sr6/assets/js/rs6.min.js', array('jquery', 'tp-tools'), RS_REVISION, false); } } } /** * adds needed JavaScript to the header * to tell the scripts that we are in the editor * @since: 6.4.0 **/ public function add_editor_mode(){ echo ''."\n"; } /** * add all js and css needed for media upload */ protected static function add_media_upload_includes(){ if(function_exists('wp_enqueue_media')) wp_enqueue_media(); wp_enqueue_script('thickbox'); wp_enqueue_script('media-upload'); wp_enqueue_style('thickbox'); } /** * Load the plugin text domain for translation. */ public function load_plugin_textdomain(){ load_plugin_textdomain('revslider', false, dirname(RS_PLUGIN_SLUG_PATH) . '/languages/'); load_plugin_textdomain('revsliderhelp', false, dirname(RS_PLUGIN_SLUG_PATH) . '/languages/'); } /** * set the user role, to restrict plugin usage to certain groups * @since: 6.0 **/ public function set_user_role(){ $this->user_role = $this->get_val($this->global_settings, 'permission', 'administrator'); if($this->user_role === 'admin') $this->user_role = 'administrator'; if(!in_array($this->user_role, array('author', 'editor', 'administrator'))) $this->user_role = 'administrator'; switch($this->user_role){ case 'author': $this->user_role = 'edit_published_posts'; break; case 'editor': $this->user_role = 'edit_pages'; break; default: case 'admin': case 'administrator': $this->user_role = 'manage_options'; break; } } /** * return the user role **/ public function get_user_role(){ return $this->user_role; } /** * add the admin pages to the WordPress backend * @since: 6.0 **/ public function add_admin_pages(){ //$this->screens[] = add_menu_page('Slider Revolution', 'Slider Revolution', $this->user_role, 'revslider', array($this, 'display_admin_page'), 'dashicons-update'); $tp_premium = $this->_truefalse(get_option('revslider-valid', 'false')); $tp_ticket = ($tp_premium !== true) ? ' class="revslider_premium"' : ''; $this->screens[] = add_menu_page('Slider Revolution', 'Slider Revolution', $this->user_role, 'revslider', null, 'dashicons-update'); $this->screens[] = add_submenu_page('revslider', __('Slider Revolution - Overview', 'revslider'), __('Overview', 'revslider'), $this->user_role, 'revslider', array($this, 'display_admin_page')); $this->screens[] = add_submenu_page('revslider', '', __('
Our website uses plugins from YouTube, which is operated by Google. The operator of the pages is YouTube LLC, 901 Cherry Ave., San Bruno, CA 94066, USA.
If you visit one of our pages featuring a YouTube plugin, a connection to the YouTube servers is established. Here the YouTube server is informed about which of our pages you have visited.
If you\'re logged in to your YouTube account, YouTube allows you to associate your browsing behavior directly with your personal profile. You can prevent this by logging out of your YouTube account.
YouTube is used to help make our website appealing. This constitutes a justified interest pursuant to Art. 6 (1) (f) DSGVO.
Further information about handling user data, can be found in the data protection declaration of YouTube under https://www.google.de/intl/de/policies/privacy.
Our website uses features provided by the Vimeo video portal. This service is provided by Vimeo Inc., 555 West 18th Street, New York, New York 10011, USA.
If you visit one of our pages featuring a Vimeo plugin, a connection to the Vimeo servers is established. Here the Vimeo server is informed about which of our pages you have visited. In addition, Vimeo will receive your IP address. This also applies if you are not logged in to Vimeo when you visit our plugin or do not have a Vimeo account. The information is transmitted to a Vimeo server in the US, where it is stored.
If you are logged in to your Vimeo account, Vimeo allows you to associate your browsing behavior directly with your personal profile. You can prevent this by logging out of your Vimeo account.
For more information on how to handle user data, please refer to the Vimeo Privacy Policy at https://vimeo.com/privacy.
For uniform representation of fonts, this page uses web fonts provided by Google. When you open a page, your browser loads the required web fonts into your browser cache to display texts and fonts correctly.
For this purpose your browser has to establish a direct connection to Google servers. Google thus becomes aware that our web page was accessed via your IP address. The use of Google Web fonts is done in the interest of a uniform and attractive presentation of our plugin. This constitutes a justified interest pursuant to Art. 6 (1) (f) DSGVO.
If your browser does not support web fonts, a standard font is used by your computer.
Further information about handling user data, can be found at https://developers.google.com/fonts/faq and in Google\'s privacy policy at https://www.google.com/policies/privacy/.
On our pages, plugins of the SoundCloud social network (SoundCloud Limited, Berners House, 47-48 Berners Street, London W1T 3NF, UK) may be integrated. The SoundCloud plugins can be recognized by the SoundCloud logo on our site.
When you visit our site, a direct connection between your browser and the SoundCloud server is established via the plugin. This enables SoundCloud to receive information that you have visited our site from your IP address. If you click on the “Like” or “Share” buttons while you are logged into your SoundCloud account, you can link the content of our pages to your SoundCloud profile. This means that SoundCloud can associate visits to our pages with your user account. We would like to point out that, as the provider of these pages, we have no knowledge of the content of the data transmitted or how it will be used by SoundCloud. For more information on SoundCloud’s privacy policy, please go to https://soundcloud.com/pages/privacy.
If you do not want SoundCloud to associate your visit to our site with your SoundCloud account, please log out of your SoundCloud account.
', 'revslider'); } /** * Add functionality to the footer to do ajax requests outside of revslider pages **/ public static function add_ajax_footer_functionality(){ ?>