/var/www/html/wp-content/plugins/expand-maker/files/

OS : Linux

PHP Version : 7.4.33

Software : Apache/2.4.6 (CentOS) PHP/7.4.33

Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 $action, 'plugin' => $key ), admin_url( 'update.php' ) ), esc_attr($action).'_'.esc_attr($key) ); return $contactFormUrl; } public static function getVersionString() { $version = 'YRM_VERSION='.EXPM_VERSION; if(YRM_PKG > YRM_FREE_PKG) { $version = 'YRM_VERSION_PRO=' . EXPM_VERSION_PRO.";"; } return $version; } public static function separateToActiveAndNotActive($extensions) { $result = array( 'active' => array(), 'passive' => array() ); foreach($extensions as $extension) { if(empty($extension)) { continue; } $key = @$extension['pluginKey']; if(is_plugin_active($key)) { if($extension['isType']) { $result['active'][] = $extension; } } else if (!empty($extension['comingSoon']) && $extension['comingSoon']) { $result['comingSoon'][] = $extension; } else { $result['passive'][] = $extension; } } return $result; } public static function getLabelProSpan() { $proSpan = ''; if(YRM_PKG == YRM_FREE_PKG) { $proSpan = ''.__('pro', YRM_LANG).''; } return $proSpan; } public static function getOptionPkgClassName() { $optionPkgClassName = 'yrm-option-wrapper'; if(YRM_PKG == YRM_FREE_PKG) { $optionPkgClassName .= '-pro'; } return $optionPkgClassName; } public static function getTitleFromType($type) { $title = ''; $typeTitles = array( 'button' => __('Button', YRM_LANG), 'inline' => __('Inline', YRM_LANG), 'link' => __('Link button', YRM_LANG), 'alink' => __('Link', YRM_LANG), 'popup' => __('Button & popup', YRM_LANG), 'inlinePopup' => __('Inline & popup', YRM_LANG), 'accordionPopup' => __('Accordion & popup', YRM_LANG), 'scroll' => __('Scroll to top', YRM_LANG), 'forms' => __('Read More Login & Registration forms', YRM_LANG), 'proVersion' => __('Read more & popup', YRM_LANG), 'analytics' => __('Analytics', YRM_LANG), 'subscription' => __('Subscription', YRM_LANG), 'accordion' => __('Accordion', YRM_LANG) ); $typeTitles = apply_filters('yrmTypeTitles', $typeTitles); if (!empty($typeTitles[$type])) { $title = $typeTitles[$type]; } return $title; } public static function getYoutubeEmbedUrl($url) { $shortUrlRegex = '/youtu.be\/([a-zA-Z0-9_-]+)\??/i'; $longUrlRegex = '/youtube.com\/((?:embed)|(?:watch))((?:\?v\=)|(?:\/))([a-zA-Z0-9_-]+)/i'; if (preg_match($longUrlRegex, $url, $matches)) { $youtube_id = $matches[count($matches) - 1]; } if (preg_match($shortUrlRegex, $url, $matches)) { $youtube_id = $matches[count($matches) - 1]; } return 'https://www.youtube.com/embed/' . esc_attr($youtube_id) ; } /** * Update options * * @since 2.5.3 * * @return void */ public static function updateOption($optionKey, $optionValue) { if (is_multisite()) { update_site_option($optionKey, $optionValue); } else { update_option($optionKey, $optionValue); } } public static function getOption($optionKey) { if (is_multisite()) { return get_site_option($optionKey); } return get_option($optionKey); } public static function deleteOption($optionKey) { if (is_multisite()) { delete_site_option($optionKey); } else { delete_option($optionKey); } } public static function reportIssueButton() { $button = ' '; return $button; } public static function newIdeasButton() { $button = ' '; return $button; } public static function upgradeButton($customText = '') { $buttonDefaultTex = 'Upgrade
to PRO version'; $buttonTex = $customText ? $customText: $buttonDefaultTex; $button = ''; return $button; } public static function allowToShowType($type) { global $YRM_TYPES; $typesGroup = $YRM_TYPES['typesGroupList']; $currentGroup = @$_GET['yrm_group_name'] ? @esc_attr($_GET['yrm_group_name']): 'all'; if ($currentGroup == 'all') { return true; } if (!empty($typesGroup[$type]) && $_GET['yrm_group_name'] == $typesGroup[$type]) { return true; } return false; } public static function getCSSSafeSize($dimension, $force = true) { if (empty($dimension) && $force) { return 'inherit'; } $size = (int)$dimension.'px'; // If user write dimension in px or % we give that dimension to target otherwise the default value will be px if (strpos($dimension, '%') || strpos($dimension, 'px')) { $size = $dimension; } return $size; } public static function getAllowedTags() { $generalArray = array( 'type' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'class' => array(), 'data-options' => array(), 'data-settings' => array(), 'data-condition-id' => array(), 'data-child-class' => array(), 'data-id' => array(), 'style' => array(), 'data-ajaxnonce' => array(), 'onclick' => array(), 'data-*' => true, 'checked' => true, 'disabled' => true, 'selected' => true, 'href' => true, 'target' => true, 'src' => true, 'border' => true, 'alt' => true, 'width' => true, 'height' => true, 'colspan' => true, 'for' => true, ); $allowed_html = array( 'div' => array( 'type' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'class' => array(), 'data-options' => array(), 'data-settings' => array(), 'data-condition-id' => array(), 'data-child-class' => array(), 'data-id' => array(), 'data-*' => true, 'style' => array() ), 'input' => array( 'type' => array(), 'id' => array(), 'name' => array(), 'value' => array(), 'class' => array(), 'data-attr-href' => array(), "checked" => array(), 'style' => array(), 'data-*' => true, ), 'img' => $generalArray, 'span' => $generalArray, 'label' => $generalArray, 'select' => array( 'option' => array('value', 'selected'), 'name' => array(), 'class' => array(), 'js-circle-time-zone' => array(), 'style' => array(), 'multiple' => array(), 'data-select-type' => array() ), 'option' => $generalArray, 'canvas' => array( 'width' => array(), 'height' => array(), 'style' => array() ), "style" => $generalArray, "iframe" => $generalArray, 'a' => $generalArray, 'i' => $generalArray, 'script' => $generalArray, 'p' => $generalArray, 'b' => $generalArray, 'strong' => $generalArray, 'br' => $generalArray, 'ul' => $generalArray, 'ol' => $generalArray, 'li' => $generalArray, 'button' => $generalArray, 'table' => $generalArray, 'tbody' => $generalArray, 'tr' => $generalArray, 'td' => $generalArray, 'th' => $generalArray, 'thead' => $generalArray, 'h1' => $generalArray, 'h2' => $generalArray, 'h3' => $generalArray, 'h4' => $generalArray, 'h5' => $generalArray, ); return $allowed_html; } public static function upgradeContent() { $content = ""; if(YRM_PKG == YRM_FREE_PKG) { ob_start(); ?>

Upgrade Now'); ?>
PRO
'; $content.= ''.esc_attr($message).''; $content.= '
'; return $content; }