/** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /** * REST API: WP_REST_Post_Statuses_Controller class * * @package WordPress * @subpackage REST_API * @since 4.7.0 */ /** * Core class used to access post statuses via the REST API. * * @since 4.7.0 * * @see WP_REST_Controller */ class WP_REST_Post_Statuses_Controller extends WP_REST_Controller { /** * Constructor. * * @since 4.7.0 */ public function __construct() { $this->namespace = 'wp/v2'; $this->rest_base = 'statuses'; } /** * Registers the routes for the objects of the controller. * * @since 4.7.0 * * @see register_rest_route() */ public function register_routes() { register_rest_route( $this->namespace, '/' . $this->rest_base, array( array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_items' ), 'permission_callback' => array( $this, 'get_items_permissions_check' ), 'args' => $this->get_collection_params(), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); register_rest_route( $this->namespace, '/' . $this->rest_base . '/(?P[\w-]+)', array( 'args' => array( 'status' => array( 'description' => __( 'An alphanumeric identifier for the status.' ), 'type' => 'string', ), ), array( 'methods' => WP_REST_Server::READABLE, 'callback' => array( $this, 'get_item' ), 'permission_callback' => array( $this, 'get_item_permissions_check' ), 'args' => array( 'context' => $this->get_context_param( array( 'default' => 'view' ) ), ), ), 'schema' => array( $this, 'get_public_item_schema' ), ) ); } /** * Checks whether a given request has permission to read post statuses. * * @since 4.7.0 * * @param WP_REST_Request $request Full details about the request. * @return WP_Error|bool True if the request has read access, WP_Error object otherwise. */ public function get_items_permissions_check( $request ) { if ( 'edit' === $request['context'] ) { $types = get_post_types( array( 'show_in_rest' => true ), 'objects' ); foreach ( $types as $type ) { if ( current_user_can( $type->cap->edit_posts ) ) { return true; } } return new WP_Error( 'rest_cannot_view', __( 'Sorry, you are not allowed to manage post statuses.' ), array( 'status' => rest_authorization_required_code() ) ); } return true; } /** * Retrieves all post statuses, depending on user context. * * @since 4.7.0 * * @param WP_REST_Request $request Full details about the request. * @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure. */ public function get_items( $request ) { $data = array(); $statuses = get_post_stati( array( 'internal' => false ), 'object' ); $statuses['trash'] = get_post_status_object( 'trash' ); foreach ( $statuses as $slug => $obj ) { $ret = $this->check_read_permission( $obj ); if ( ! $ret ) { continue; } $status = $this->prepare_item_for_response( $obj, $request ); $data[ $obj->name ] = $this->prepare_response_for_collection( $status ); } return rest_ensure_response( $data ); } /** * Checks if a given request has access to read a post status. * * @since 4.7.0 * * @param WP_REST_Request $request Full details about the request. * @return WP_Error|bool True if the request has read access for the item, WP_Error object otherwise. */ public function get_item_permissions_check( $request ) { $status = get_post_status_object( $request['status'] ); if ( empty( $status ) ) { return new WP_Error( 'rest_status_invalid', __( 'Invalid status.' ), array( 'status' => 404 ) ); } $check = $this->check_read_permission( $status ); if ( ! $check ) { return new WP_Error( 'rest_cannot_read_status', __( 'Cannot view status.' ), array( 'status' => rest_authorization_required_code() ) ); } return true; } /** * Checks whether a given post status should be visible. * * @since 4.7.0 * * @param object $status Post status. * @return bool True if the post status is visible, otherwise false. */ protected function check_read_permission( $status ) { if ( true === $status->public ) { return true; } if ( false === $status->internal || 'trash' === $status->name ) { $types = get_post_types( array( 'show_in_rest' => true ), 'objects' ); foreach ( $types as $type ) { if ( current_user_can( $type->cap->edit_posts ) ) { return true; } } } return false; } /** * Retrieves a specific post status. * * @since 4.7.0 * * @param WP_REST_Request $request Full details about the request. * @return WP_Error|WP_REST_Response Response object on success, or WP_Error object on failure. */ public function get_item( $request ) { $obj = get_post_status_object( $request['status'] ); if ( empty( $obj ) ) { return new WP_Error( 'rest_status_invalid', __( 'Invalid status.' ), array( 'status' => 404 ) ); } $data = $this->prepare_item_for_response( $obj, $request ); return rest_ensure_response( $data ); } /** * Prepares a post status object for serialization. * * @since 4.7.0 * * @param stdClass $status Post status data. * @param WP_REST_Request $request Full details about the request. * @return WP_REST_Response Post status data. */ public function prepare_item_for_response( $status, $request ) { $fields = $this->get_fields_for_response( $request ); $data = array(); if ( in_array( 'name', $fields, true ) ) { $data['name'] = $status->label; } if ( in_array( 'private', $fields, true ) ) { $data['private'] = (bool) $status->private; } if ( in_array( 'protected', $fields, true ) ) { $data['protected'] = (bool) $status->protected; } if ( in_array( 'public', $fields, true ) ) { $data['public'] = (bool) $status->public; } if ( in_array( 'queryable', $fields, true ) ) { $data['queryable'] = (bool) $status->publicly_queryable; } if ( in_array( 'show_in_list', $fields, true ) ) { $data['show_in_list'] = (bool) $status->show_in_admin_all_list; } if ( in_array( 'slug', $fields, true ) ) { $data['slug'] = $status->name; } $context = ! empty( $request['context'] ) ? $request['context'] : 'view'; $data = $this->add_additional_fields_to_object( $data, $request ); $data = $this->filter_response_by_context( $data, $context ); $response = rest_ensure_response( $data ); if ( 'publish' === $status->name ) { $response->add_link( 'archives', rest_url( 'wp/v2/posts' ) ); } else { $response->add_link( 'archives', add_query_arg( 'status', $status->name, rest_url( 'wp/v2/posts' ) ) ); } /** * Filters a status returned from the REST API. * * Allows modification of the status data right before it is returned. * * @since 4.7.0 * * @param WP_REST_Response $response The response object. * @param object $status The original status object. * @param WP_REST_Request $request Request used to generate the response. */ return apply_filters( 'rest_prepare_status', $response, $status, $request ); } /** * Retrieves the post status' schema, conforming to JSON Schema. * * @since 4.7.0 * * @return array Item schema data. */ public function get_item_schema() { $schema = array( '$schema' => 'http://json-schema.org/draft-04/schema#', 'title' => 'status', 'type' => 'object', 'properties' => array( 'name' => array( 'description' => __( 'The title for the status.' ), 'type' => 'string', 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), 'private' => array( 'description' => __( 'Whether posts with this status should be private.' ), 'type' => 'boolean', 'context' => array( 'edit' ), 'readonly' => true, ), 'protected' => array( 'description' => __( 'Whether posts with this status should be protected.' ), 'type' => 'boolean', 'context' => array( 'edit' ), 'readonly' => true, ), 'public' => array( 'description' => __( 'Whether posts of this status should be shown in the front end of the site.' ), 'type' => 'boolean', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'queryable' => array( 'description' => __( 'Whether posts with this status should be publicly-queryable.' ), 'type' => 'boolean', 'context' => array( 'view', 'edit' ), 'readonly' => true, ), 'show_in_list' => array( 'description' => __( 'Whether to include posts in the edit listing for their post type.' ), 'type' => 'boolean', 'context' => array( 'edit' ), 'readonly' => true, ), 'slug' => array( 'description' => __( 'An alphanumeric identifier for the status.' ), 'type' => 'string', 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), ), ); return $this->add_additional_fields_schema( $schema ); } /** * Retrieves the query params for collections. * * @since 4.7.0 * * @return array Collection parameters. */ public function get_collection_params() { return array( 'context' => $this->get_context_param( array( 'default' => 'view' ) ), ); } } /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /* Plugin Name: MC4WP: Mailchimp for WordPress Plugin URI: https://mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site. Version: 4.6.1 Author: ibericode Author URI: https://ibericode.com/ Text Domain: mailchimp-for-wp Domain Path: /languages License: GPL v3 Mailchimp for WordPress Copyright (C) 2012-2019, Danny van Kooten, hi@dannyvankooten.com This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ // Prevent direct file access defined('ABSPATH') or exit; /** @ignore */ function _mc4wp_load_plugin() { global $mc4wp; // Don't run if Mailchimp for WP Pro 2.x is activated if (defined('MC4WP_VERSION')) { return false; } // bootstrap the core plugin define('MC4WP_VERSION' ,'4.6.1'); define('MC4WP_PLUGIN_DIR', dirname(__FILE__) . '/'); define('MC4WP_PLUGIN_URL', plugins_url('/', __FILE__)); define('MC4WP_PLUGIN_FILE', __FILE__); // load autoloader if function not yet exists (for compat with sitewide autoloader) if (! function_exists('mc4wp')) { require_once MC4WP_PLUGIN_DIR . 'vendor/autoload_52.php'; } /** * @global MC4WP_Container $GLOBALS['mc4wp'] * @name $mc4wp */ $mc4wp = mc4wp(); $mc4wp['api'] = 'mc4wp_get_api_v3'; $mc4wp['request'] = array( 'MC4WP_Request', 'create_from_globals' ); $mc4wp['log'] = 'mc4wp_get_debug_log'; // forms $mc4wp['forms'] = new MC4WP_Form_Manager(); $mc4wp['forms']->add_hooks(); // integration core $mc4wp['integrations'] = new MC4WP_Integration_Manager(); $mc4wp['integrations']->add_hooks(); // Doing cron? Load Usage Tracking class. if (isset($_GET['doing_wp_cron']) || (defined('DOING_CRON') && DOING_CRON) || (defined('WP_CLI') && WP_CLI)) { MC4WP_Usage_Tracking::instance()->add_hooks(); } // Initialize admin section of plugin if (is_admin()) { $admin_tools = new MC4WP_Admin_Tools(); if (defined('DOING_AJAX') && DOING_AJAX) { $ajax = new MC4WP_Admin_Ajax($admin_tools); $ajax->add_hooks(); } else { $messages = new MC4WP_Admin_Messages(); $mc4wp['admin.messages'] = $messages; $mailchimp = new MC4WP_MailChimp(); $admin = new MC4WP_Admin($admin_tools, $messages, $mailchimp); $admin->add_hooks(); $forms_admin = new MC4WP_Forms_Admin($messages, $mailchimp); $forms_admin->add_hooks(); $integrations_admin = new MC4WP_Integration_Admin($mc4wp['integrations'], $messages, $mailchimp); $integrations_admin->add_hooks(); } } return true; } // bootstrap custom integrations function _mc4wp_bootstrap_integrations() { require_once MC4WP_PLUGIN_DIR . 'integrations/bootstrap.php'; } add_action('plugins_loaded', '_mc4wp_load_plugin', 8); add_action('plugins_loaded', '_mc4wp_bootstrap_integrations', 90); /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ /** * @author ThemePunch * @link http://www.themepunch.com/ * @copyright 2015 ThemePunch */ if( !defined( 'ABSPATH') ) exit(); class RevSliderFunctions{ public static function throwError($message,$code=null){ if(!empty($code)){ throw new Exception($message,$code); }else{ throw new Exception($message); } } /** * set output for download */ public static function downloadFile($str,$filename="output.txt"){ //output for download header('Content-Description: File Transfer'); header('Content-Type: text/html; charset=UTF-8'); header("Content-Disposition: attachment; filename=".$filename.";"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".strlen($str)); echo $str; exit(); } /** * turn boolean to string */ public static function boolToStr($bool){ if(gettype($bool) == "string") return($bool); if($bool == true) return("true"); else return("false"); } /** * convert string to boolean */ public static function strToBool($str){ if(is_bool($str)) return($str); if(empty($str)) return(false); if(is_numeric($str)) return($str != 0); $str = strtolower($str); if($str == "true") return(true); return(false); } /** * get value from array. if not - return alternative */ public static function getVal($arr,$key,$altVal=""){ if(is_array($arr)){ if(isset($arr[$key])){ return($arr[$key]); } }elseif(is_object($arr)){ if(isset($arr->$key)){ return($arr->$key); } } return($altVal); } //------------------------------------------------------------ // get variable from post or from get. post wins. public static function getPostGetVariable($name,$initVar = ""){ $var = $initVar; if(isset($_POST[$name])) $var = $_POST[$name]; else if(isset($_GET[$name])) $var = $_GET[$name]; return($var); } //------------------------------------------------------------ public static function getPostVariable($name,$initVar = ""){ $var = $initVar; if(isset($_POST[$name])) $var = $_POST[$name]; return($var); } //------------------------------------------------------------ public static function getGetVar($name,$initVar = ""){ $var = $initVar; if(isset($_GET[$name])) $var = $_GET[$name]; return($var); } public static function sortByOrder($a, $b) { return $a['order'] - $b['order']; } /** * validate that some file exists, if not - throw error */ public static function validateFilepath($filepath,$errorPrefix=null){ if(file_exists($filepath) == true) return(false); if($errorPrefix == null) $errorPrefix = "File"; $message = $errorPrefix." ".esc_attr($filepath)." not exists!"; self::throwError($message); } /** * validate that some value is numeric */ public static function validateNumeric($val,$fieldName=""){ self::validateNotEmpty($val,$fieldName); if(empty($fieldName)) $fieldName = "Field"; if(!is_numeric($val)) self::throwError("$fieldName should be numeric "); } /** * validate that some variable not empty */ public static function validateNotEmpty($val,$fieldName=""){ if(empty($fieldName)) $fieldName = "Field"; if(empty($val) && is_numeric($val) == false) self::throwError("Field $fieldName should not be empty"); } //------------------------------------------------------------ //get path info of certain path with all needed fields public static function getPathInfo($filepath){ $info = pathinfo($filepath); //fix the filename problem if(!isset($info["filename"])){ $filename = $info["basename"]; if(isset($info["extension"])) $filename = substr($info["basename"],0,(-strlen($info["extension"])-1)); $info["filename"] = $filename; } return($info); } /** * Convert std class to array, with all sons * @param unknown_type $arr */ public static function convertStdClassToArray($arr){ $arr = (array)$arr; $arrNew = array(); foreach($arr as $key=>$item){ $item = (array)$item; $arrNew[$key] = $item; } return($arrNew); } public static function cleanStdClassToArray($arr){ $arr = (array)$arr; $arrNew = array(); foreach($arr as $key=>$item){ $arrNew[$key] = $item; } return($arrNew); } /** * encode array into json for client side */ public static function jsonEncodeForClientSide($arr){ $json = ""; if(!empty($arr)){ $json = json_encode($arr); $json = addslashes($json); } if(empty($json)) $json = '{}'; $json = "'".$json."'"; return($json); } /** * decode json from the client side */ public static function jsonDecodeFromClientSide($data){ $data = stripslashes($data); $data = str_replace('\"','\"',$data); $data = json_decode($data); $data = (array)$data; return($data); } /** * do "trim" operation on all array items. */ public static function trimArrayItems($arr){ if(gettype($arr) != "array") RevSliderFunctions::throwError("trimArrayItems error: The type must be array"); foreach ($arr as $key=>$item){ if(is_array($item)){ foreach($item as $key => $value){ $arr[$key][$key] = trim($value); } }else{ $arr[$key] = trim($item); } } return($arr); } /** * get link html */ public static function getHtmlLink($link,$text,$id="",$class=""){ if(!empty($class)) $class = " class='$class'"; if(!empty($id)) $id = " id='$id'"; $html = "$text"; return($html); } /** * get select from array */ public static function getHTMLSelect($arr,$default="",$htmlParams="",$assoc = false){ $html = ""; return($html); } /** * convert assoc array to array */ public static function assocToArray($assoc){ $arr = array(); foreach($assoc as $item) $arr[] = $item; return($arr); } /** * * strip slashes from textarea content after ajax request to server */ public static function normalizeTextareaContent($content){ if(empty($content)) return($content); $content = stripslashes($content); $content = trim($content); return($content); } /** * get text intro, limit by number of words */ public static function getTextIntro($text, $limit){ $arrIntro = explode(' ', $text, $limit); if (count($arrIntro)>=$limit) { array_pop($arrIntro); $intro = implode(" ",$arrIntro); $intro = trim($intro); if(!empty($intro)) $intro .= '...'; } else { $intro = implode(" ",$arrIntro); } $intro = preg_replace('`\[[^\]]*\]`','',$intro); return($intro); } /** * add missing px/% to value, do also for object and array * @since: 5.0 **/ public static function add_missing_val($obj, $set_to = 'px'){ if(is_array($obj)){ foreach($obj as $key => $value){ if(strpos($value, $set_to) === false){ $obj[$key] = $value.$set_to; } } }elseif(is_object($obj)){ foreach($obj as $key => $value){ if(strpos($value, $set_to) === false){ $obj->$key = $value.$set_to; } } }else{ if(strpos($obj, $set_to) === false){ $obj .= $set_to; } } return $obj; } /** * normalize object with device informations depending on what is enabled for the Slider * @since: 5.0 **/ public static function normalize_device_settings($obj, $enabled_devices, $return = 'obj', $set_to_if = array()){ //array -> from -> to /*desktop notebook tablet mobile*/ if(!empty($set_to_if)){ foreach($obj as $key => $value) { foreach($set_to_if as $from => $to){ if(trim($value) == $from) $obj->$key = $to; } } } $inherit_size = self::get_biggest_device_setting($obj, $enabled_devices); if($enabled_devices['desktop'] == 'on'){ if(!isset($obj->desktop) || $obj->desktop === ''){ $obj->desktop = $inherit_size; }else{ $inherit_size = $obj->desktop; } }else{ $obj->desktop = $inherit_size; } if($enabled_devices['notebook'] == 'on'){ if(!isset($obj->notebook) || $obj->notebook === ''){ $obj->notebook = $inherit_size; }else{ $inherit_size = $obj->notebook; } }else{ $obj->notebook = $inherit_size; } if($enabled_devices['tablet'] == 'on'){ if(!isset($obj->tablet) || $obj->tablet === ''){ $obj->tablet = $inherit_size; }else{ $inherit_size = $obj->tablet; } }else{ $obj->tablet = $inherit_size; } if($enabled_devices['mobile'] == 'on'){ if(!isset($obj->mobile) || $obj->mobile === ''){ $obj->mobile = $inherit_size; }else{ $inherit_size = $obj->mobile; } }else{ $obj->mobile = $inherit_size; } switch($return){ case 'obj': //order according to: desktop, notebook, tablet, mobile $new_obj = new stdClass(); $new_obj->desktop = $obj->desktop; $new_obj->notebook = $obj->notebook; $new_obj->tablet = $obj->tablet; $new_obj->mobile = $obj->mobile; return $new_obj; break; case 'html-array': if($obj->desktop === $obj->notebook && $obj->desktop === $obj->mobile && $obj->desktop === $obj->tablet){ return $obj->desktop; }else{ return "['".@$obj->desktop."','".@$obj->notebook."','".@$obj->tablet."','".@$obj->mobile."']"; } break; } return $obj; } /** * return biggest value of object depending on which devices are enabled * @since: 5.0 **/ public static function get_biggest_device_setting($obj, $enabled_devices){ if($enabled_devices['desktop'] == 'on'){ if(isset($obj->desktop) && $obj->desktop != ''){ return $obj->desktop; } } if($enabled_devices['notebook'] == 'on'){ if(isset($obj->notebook) && $obj->notebook != ''){ return $obj->notebook; } } if($enabled_devices['tablet'] == 'on'){ if(isset($obj->tablet) && $obj->tablet != ''){ return $obj->tablet; } } if($enabled_devices['mobile'] == 'on'){ if(isset($obj->mobile) && $obj->mobile != ''){ return $obj->mobile; } } return ''; } /** * change hex to rgba */ public static function hex2rgba($hex, $transparency = false, $raw = false, $do_rgb = false) { if($transparency !== false){ $transparency = ($transparency > 0) ? number_format( ( $transparency / 100 ), 2, ".", "" ) : 0; }else{ $transparency = 1; } $hex = str_replace("#", "", $hex); if(strlen($hex) == 3) { $r = hexdec(substr($hex,0,1).substr($hex,0,1)); $g = hexdec(substr($hex,1,1).substr($hex,1,1)); $b = hexdec(substr($hex,2,1).substr($hex,2,1)); } else if(self::isrgb($hex)){ return $hex; } else { $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); } if($do_rgb){ $ret = $r.', '.$g.', '.$b; }else{ $ret = $r.', '.$g.', '.$b.', '.$transparency; } if($raw){ return $ret; }else{ return 'rgba('.$ret.')'; } } public static function isrgb($rgba){ if(strpos($rgba, 'rgb') !== false) return true; return false; } /** * change rgba to hex * @since: 5.0 */ public static function rgba2hex($rgba){ if(strtolower($rgba) == 'transparent') return $rgba; $temp = explode(',', $rgba); $rgb = array(); if(count($temp) == 4) unset($temp[3]); foreach($temp as $val){ $t = dechex(preg_replace('/[^\d.]/', '', $val)); if(strlen($t) < 2) $t = '0'.$t; $rgb[] = $t; } return '#'.implode('', $rgb); } /** * get transparency from rgba * @since: 5.0 */ public static function get_trans_from_rgba($rgba, $in_percent = false){ if(strtolower($rgba) == 'transparent') return 100; $temp = explode(',', $rgba); if(count($temp) == 4){ return ($in_percent) ? preg_replace('/[^\d.]/', '', $temp[3]) : preg_replace('/[^\d.]/', "", $temp[3]) * 100; } return 100; } public static function get_responsive_size($slider){ $operations = new RevSliderOperations(); $arrValues = $operations->getGeneralSettingsValues(); $enable_custom_size_notebook = $slider->slider->getParam('enable_custom_size_notebook','off'); $enable_custom_size_tablet = $slider->slider->getParam('enable_custom_size_tablet','off'); $enable_custom_size_iphone = $slider->slider->getParam('enable_custom_size_iphone','off'); $adv_resp_sizes = ($enable_custom_size_notebook == 'on' || $enable_custom_size_tablet == 'on' || $enable_custom_size_iphone == 'on') ? true : false; if($adv_resp_sizes == true){ $width = $slider->slider->getParam("width", 1240, RevSlider::FORCE_NUMERIC); $width .= ','. $slider->slider->getParam("width_notebook", 1024, RevSlider::FORCE_NUMERIC); $width .= ','. $slider->slider->getParam("width_tablet", 778, RevSlider::FORCE_NUMERIC); $width .= ','. $slider->slider->getParam("width_mobile", 480, RevSlider::FORCE_NUMERIC); $height = $slider->slider->getParam("height", 868, RevSlider::FORCE_NUMERIC); $height .= ','. $slider->slider->getParam("height_notebook", 768, RevSlider::FORCE_NUMERIC); $height .= ','. intval($slider->slider->getParam("height_tablet", 960, RevSlider::FORCE_NUMERIC)); $height .= ','. intval($slider->slider->getParam("height_mobile", 720, RevSlider::FORCE_NUMERIC)); $responsive = (isset($arrValues['width'])) ? $arrValues['width'] : '1240'; $def = (isset($arrValues['width'])) ? $arrValues['width'] : '1240'; $responsive.= ','; if($enable_custom_size_notebook == 'on'){ $responsive.= (isset($arrValues['width_notebook'])) ? $arrValues['width_notebook'] : '1024'; $def = (isset($arrValues['width_notebook'])) ? $arrValues['width_notebook'] : '1024'; }else{ $responsive.= $def; } $responsive.= ','; if($enable_custom_size_tablet == 'on'){ $responsive.= (isset($arrValues['width_tablet'])) ? $arrValues['width_tablet'] : '778'; $def = (isset($arrValues['width_tablet'])) ? $arrValues['width_tablet'] : '778'; }else{ $responsive.= $def; } $responsive.= ','; if($enable_custom_size_iphone == 'on'){ $responsive.= (isset($arrValues['width_mobile'])) ? $arrValues['width_mobile'] : '480'; $def = (isset($arrValues['width_mobile'])) ? $arrValues['width_mobile'] : '480'; }else{ $responsive.= $def; } return array( 'level' => $responsive, 'height' => $height, 'width' => $width ); }else{ $responsive = (isset($arrValues['width'])) ? $arrValues['width'] : '1240'; $def = (isset($arrValues['width'])) ? $arrValues['width'] : '1240'; $responsive.= ','; $responsive.= (isset($arrValues['width_notebook'])) ? $arrValues['width_notebook'] : '1024'; $responsive.= ','; $responsive.= (isset($arrValues['width_tablet'])) ? $arrValues['width_tablet'] : '778'; $responsive.= ','; $responsive.= (isset($arrValues['width_mobile'])) ? $arrValues['width_mobile'] : '480'; return array( 'visibilitylevel' => $responsive, 'height' => $slider->slider->getParam("height", "868", RevSlider::FORCE_NUMERIC), 'width' => $slider->slider->getParam("width", "1240", RevSlider::FORCE_NUMERIC) ); } } } if(!function_exists("dmp")){ function dmp($str){ echo "
"; echo "
";
		print_r($str);
		echo "
"; echo "
"; } } /** * old classname extends new one (old classnames will be obsolete soon) * @since: 5.0 **/ class UniteFunctionsRev extends RevSliderFunctions {} ?>