PluginProbe ʕ •ᴥ•ʔ
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager / trunk
Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager vtrunk
3.1.9 3.1.8 3.1.7 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 trunk 1.3.7 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 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.1.9 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.8 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9 2.9.1 2.9.2
folders / includes / class-help.php
folders / includes Last commit date
class-email-signup.php 1 year ago class-help.php 1 month ago class-polylang.php 7 months ago class-review-box.php 1 year ago class-upgrade-box.php 10 months ago class-wpml.php 7 months ago folders.class.php 1 month ago form.class.php 10 months ago form.fields.php 1 year ago import.export.class.php 8 months ago media.replace.php 7 months ago notifications.class.php 8 months ago plugins.class.php 8 months ago tree.class.php 8 months ago
class-help.php
97 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 FOLDERS_HELP extends WCP_Folders {
15
16
17 // Allowed pages for showing the help menu
18 private static $allowed_pages = ['wcp_folders_settings', 'folders-upgrade-to-pro', 'plugins.php'];
19
20 // constructor
21 public function __construct() {
22
23 $current = basename($_SERVER['PHP_SELF'] ?? '');
24 $page = $_GET['page'] ?? '';
25 // Check if we're on one of those pages
26 if (in_array($current, self::$allowed_pages, true) || in_array($page, self::$allowed_pages, true)) {
27 // register enqueue css
28 add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts'));
29 // add need help in footer
30 add_action('admin_footer', array($this, 'admin_footer_need_help_content'));
31 }
32
33 }//end __construct()
34
35 // load help settings
36 public function load_help_settings(){
37 $customize_folders = get_option("customize_folders");
38 define('WCP_FOLDER_FOOTER_HELP_DATA', array(
39 'help_icon' => esc_url(WCP_FOLDER_URL."assets/images/help/help-icon.svg"),
40 'close_icon' => esc_url(WCP_FOLDER_URL."assets/images/help/close.svg"),
41 'premio_site_info' => esc_url('https://premio.io/'),
42 'help_center_link' => esc_url('https://premio.io/help/folders/?utm_source=pluginspage'),
43 'footer_menu' => array(
44 'support' => array(
45 'title' => esc_html("Get Support", "folders"),
46 'link' => esc_url("https://premio.io/help/folders/"),
47 'status' => true,
48 ),
49 'upgrade_to_pro' => array(
50 'title' => esc_html("Upgrade to Pro", "folders"),
51 'link' => esc_url($this->getFoldersUpgradeURL()),
52 'status' => true,
53 ),
54 'recommended_plugins' => array(
55 'title' => esc_html("Recommended Plugins", "folders"),
56 'link' => esc_url($this->getFoldersRecommendedPluginsURL()),
57 'status' => get_option("hide_folder_recommended_plugin") || (isset($customize_folders['show_folder_in_settings']) && $customize_folders['show_folder_in_settings'] == "yes") ? false : true,
58 ),
59 ),
60 'support_widget' => array(
61 'upgrade_to_pro' => array(
62 'title' => esc_html("Upgrade to Pro", "folders"),
63 'link' => esc_url($this->getFoldersUpgradeURL()),
64 'icon' => esc_url(WCP_FOLDER_URL."assets/images/help/pro.svg"),
65 ),
66 'get_support' => array(
67 'title' => esc_html("Get Support", "folders"),
68 'link' => esc_url("https://premio.io/help/folders/"),
69 'icon' => esc_url(WCP_FOLDER_URL."assets/images/help/help-circle.svg"),
70 ),
71 'contact' => array(
72 'title' => esc_html("Contact Us", "folders"),
73 'link' => false,
74 'icon' => esc_url(WCP_FOLDER_URL."assets/images/help/headphones.svg"),
75 ),
76 ),
77 ));
78 }
79
80
81
82 // enqueue scripts
83 public function admin_enqueue_scripts(){
84 // enqueue css
85 wp_enqueue_style('folders-help-css', WCP_FOLDER_URL . 'assets/css/help.css', array(), WCP_FOLDER_VERSION);
86
87 }
88
89 // Need Help Footer Content
90 public function admin_footer_need_help_content(){
91 $this->load_help_settings();
92
93 include_once WCP_FOLDERS_PLUGIN_PATH.'/templates/admin/help.php';
94 }
95
96 }
97 new FOLDERS_HELP();