PluginProbe ʕ •ᴥ•ʔ
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) / 2.9.0
My Sticky Bar – Floating Notification Bar & Sticky Header (formerly myStickymenu) v2.9.0
2.9.1 2.9.0 2.8.9 2.8.8 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 2.0 2.0.1 2.0.3 2.0.4 2.0.5 2.0.6 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.5 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.6.6 2.6.7 2.6.8 2.6.9 2.7 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7
mystickymenu / class-help.php
mystickymenu Last commit date
admin 1 month ago dist 1 month ago images 1 year ago languages 1 month ago class-email-signup.php 7 months ago class-help.php 1 month ago class-review-box.php 1 month ago class-upgrade-box.php 1 month ago index.php 8 years ago mystickymenu-admin-widgetanalytics.php 1 month ago mystickymenu-contact-leads.php 1 year ago mystickymenu-deactivate-form.php 1 month ago mystickymenu-fonts.php 2 years ago mystickymenu-popup.php 1 month ago mystickymenu-review-popup.php 9 months ago mystickymenu.php 1 month ago mystickymeny-new-welcomebar.php 1 month ago readme.txt 3 weeks ago recommended-plugins.php 7 months ago uninstall.php 2 years ago upgrade-to-pro.php 1 month ago welcome-bar.php 1 month ago
class-help.php
98 lines
1 <?php
2 /**
3 * Help And Footer Menu Class
4 *
5 * @author : Premio <contact@premio.io>
6 * @license : GPL2
7 * */
8
9 if (defined('ABSPATH') === false) {
10 exit;
11 }
12
13 // Class for help and footer menu
14 class MSB_HELP {
15
16
17 // Allowed pages for showing the help menu
18 private static $allowed_pages = ['my-stickymenu-welcomebar', 'my-stickymenu-new-welcomebar', 'my-sticky-menu-analytics', 'my-sticky-menu-leads', 'my-stickymenu-settings', 'my-stickymenu-upgrade' ];
19
20 // constructor
21 public function __construct() {
22
23 $page = $_GET['page'] ?? '';
24 // Check if we're on one of those pages
25 if (in_array($page, self::$allowed_pages, true)) {
26 // register enqueue css
27 add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
28 // add need help in footer
29 add_action('admin_footer', array($this, 'admin_footer_need_help_content'));
30 }
31
32 }//end __construct()
33
34 // load help settings
35 public function load_help_settings(){
36 define('MSB_FOOTER_HELP_DATA', array(
37 'help_icon' => esc_url(MYSTICKYMENU_URL."images/help/help-icon.svg"),
38 'close_icon' => esc_url(MYSTICKYMENU_URL."images/help/close.svg"),
39 'premio_site_info' => esc_url('https://premio.io/'),
40 'help_center_link' => esc_url('https://premio.io/help/mystickymenu/?utm_source=pluginspage'),
41 'footer_menu' => array(
42 'support' => array(
43 'title' => esc_html__("Get Support", "mystickymenu"),
44 'link' => esc_url("https://premio.io/help/mystickymenu/"),
45 'status' => true,
46 ),
47 'upgrade_to_pro' => array(
48 'title' => esc_html__("Upgrade to Pro", "mystickymenu"),
49 'link' => esc_url(admin_url("admin.php?page=my-stickymenu-upgrade")),
50 'status' => true,
51 ),
52 'recommended_plugins' => array(
53 'title' => esc_html__("Recommended Plugins", "mystickymenu"),
54 'link' => esc_url(admin_url("admin.php?page=msm-recommended-plugins")),
55 'status' => get_option("hide_msmrecommended_plugin") ? false : true,
56 ),
57 'live_link' => array(
58 'title' => esc_html__("Add Poptin Popups", "mystickymenu"),
59 'link' => esc_url(admin_url("admin.php?page=install-poptin-plugin")),
60 'status' => class_exists( 'POPTIN_Plugin_Base' ) ? false : true,
61 ),
62 ),
63 'support_widget' => array(
64 'upgrade_to_pro' => array(
65 'title' => esc_html__("Upgrade to Pro", "mystickymenu"),
66 'link' => esc_url(admin_url("admin.php?page=my-stickymenu-upgrade")),
67 'icon' => esc_url(MYSTICKYMENU_URL."images/help/pro.svg"),
68 ),
69 'get_support' => array(
70 'title' => esc_html__("Get Support", "mystickymenu"),
71 'link' => esc_url("https://premio.io/help/mystickymenu/"),
72 'icon' => esc_url(MYSTICKYMENU_URL."images/help/help-circle.svg"),
73 ),
74 'contact' => array(
75 'title' => esc_html__("Contact Us", "mystickymenu"),
76 'link' => false,
77 'icon' => esc_url(MYSTICKYMENU_URL."images/help/headphones.svg"),
78 ),
79 ),
80 ));
81 }
82
83 // enqueue scripts
84 public function admin_enqueue_scripts(){
85 // enqueue css
86 wp_enqueue_style('mystickymenu-help-css', MYSTICKYMENU_URL . '/dist/css/help.css', array(), MYSTICKY_VERSION);
87
88 }
89
90 // Need Help Footer Content
91 public function admin_footer_need_help_content(){
92 $this->load_help_settings();
93
94 include_once MYSTICKYMENU_PATH.'/admin/help.php';
95 }
96
97 }
98 new MSB_HELP();