/home/techb158/on-time-movers.com/wp-content/plugins/mystickyelements
NameSizeModeActions
admin/-0755rm
dist/-0755rm
images/-0755rm
img/-0755rm
intl-tel-input-src/-0755rm
languages/-0755rm
class-email-signup.php64410644editdlrm
class-help.php52140644editdlrm
class-review-box.php307810644editdlrm
class-upgrade-box.php131330644editdlrm
mystickyelements-admin-integration.php70050644editdlrm
mystickyelements-admin-widgetanalytics.php63890644editdlrm
mystickyelements-admin.php1046350644editdlrm
mystickyelements-contact-leads.php15430644editdlrm
mystickyelements-deactivate-form.php91880644editdlrm
mystickyelements-fontawesome-icons.php228520644editdlrm
mystickyelements-fonts.php343710644editdlrm
mystickyelements-front.php693000644editdlrm
mystickyelements-popup.php22220644editdlrm
mystickyelements-widget.php32250644editdlrm
mystickyelements.php1579060644editdlrm
readme.txt275360644editdlrm
recommended-plugins.php263110644editdlrm
upgrade-to-pro.php545060644editdlrm
Edit: /home/techb158/on-time-movers.com/wp-content/plugins/mystickyelements/class-help.php (5214B)
* @license : GPL2 * */ if (defined('ABSPATH') === false) { exit; } // Class for help and footer menu class MSE_HELP { // Allowed pages for showing the help menu private static $allowed_pages = ['my-sticky-elements', 'my-sticky-elements-new-widget', 'mystickyelements-upgrade-to-pro', 'my-sticky-elements-integration', 'my-sticky-elements-analytics', 'my-sticky-elements-leads', 'my-sticky-elements-upgrade']; // constructor public function __construct() { $page = $_GET['page'] ?? ''; // Check if we're on one of those pages if (in_array($page, self::$allowed_pages, true)) { // register enqueue css add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts')); // add need help in footer add_action('admin_footer', array($this, 'admin_footer_need_help_content')); } // add ajax action add_action('wp_ajax_hide_mse_help_cta', array($this, 'hide_mse_help_cta')); }//end __construct() // load help settings public function load_help_settings(){ define('MSE_FOOTER_HELP_DATA', array( 'help_icon' => esc_url(MYSTICKYELEMENTS_URL."images/help/help-icon.svg"), 'close_icon' => esc_url(MYSTICKYELEMENTS_URL."images/help/close.svg"), 'premio_site_info' => esc_url('https://premio.io/'), 'help_center_link' => esc_url('https://premio.io/help/mystickyelements/?utm_source=pluginspage'), 'footer_menu' => array( 'support' => array( 'title' => esc_html("Get Support", "mystickyelements"), 'link' => esc_url("https://premio.io/help/mystickyelements"), 'status' => true, ), 'upgrade_to_pro' => array( 'title' => esc_html("Upgrade to Pro", "mystickyelements"), 'link' => esc_url(admin_url("admin.php?page=my-sticky-elements-upgrade")), 'status' => true, ), 'recommended_plugins' => array( 'title' => esc_html("Recommended Plugins", "mystickyelements"), 'link' => esc_url(admin_url("admin.php?page=recommended-plugins")), 'status' => get_option("hide_mserecommended_plugin") ? false : true, ), 'live_link' => array( 'title' => esc_html("Add Live Chat", "mystickyelements"), 'link' => esc_url(admin_url("admin.php?page=my-sticky-elements-chatway-plugin")), 'status' => class_exists( 'Chatway' ) ? false : true, ), ), 'support_widget' => array( 'upgrade_to_pro' => array( 'title' => esc_html("Upgrade to Pro", "mystickyelements"), 'link' => esc_url(admin_url("admin.php?page=my-sticky-elements-upgrade")), 'icon' => esc_url(MYSTICKYELEMENTS_URL."images/help/pro.svg"), ), 'get_support' => array( 'title' => esc_html("Get Support", "mystickyelements"), 'link' => esc_url("https://premio.io/help/mystickyelements"), 'icon' => esc_url(MYSTICKYELEMENTS_URL."images/help/help-circle.svg"), ), 'contact' => array( 'title' => esc_html("Contact Us", "mystickyelements"), 'link' => false, 'icon' => esc_url(MYSTICKYELEMENTS_URL."images/help/headphones.svg"), ), ), )); } // enqueue scripts public function admin_enqueue_scripts(){ // enqueue css wp_enqueue_style('mystickyelements-help-css', MYSTICKYELEMENTS_URL . 'dist/css/help.css', array(), MY_STICKY_ELEMENT_VERSION); } // Need Help Footer Content public function admin_footer_need_help_content(){ $this->load_help_settings(); include_once MYSTICKYELEMENTS_PATH.'/admin/help.php'; } // Hide MSE Help CTA public function hide_mse_help_cta(){ $response = array(); $response['status'] = 0; $response['error'] = 0; $response['data'] = array(); $response['message'] = ""; $postData = filter_input_array(INPUT_POST); $errorCounter = 0; if (!isset($postData['nonce']) || empty($postData['nonce'])) { $response['message'] = esc_html__("Your request is not valid", 'mystickyelements'); $errorCounter++; } else { $nonce = esc_attr($postData['nonce']); if(!wp_verify_nonce($nonce, 'hide_mse_help_cta')) { $response['message'] = esc_html__("Your request is not valid", 'mystickyelements'); $errorCounter++; } } if($errorCounter == 0) { $response['status'] = 1; add_option("mse_help_cta", "yes"); } echo wp_json_encode($response); die; } } new MSE_HELP();