| 1 |
<?php |
| 2 |
|
| 3 |
namespace MasterAddons\Inc\Classes; |
| 4 |
|
| 5 |
use MasterAddons\Lib\Recommended; |
| 6 |
|
| 7 |
if (!defined('ABSPATH')) { |
| 8 |
exit; |
| 9 |
} |
| 10 |
|
| 11 |
/** |
| 12 |
* Recommended Plugins class |
| 13 |
* |
| 14 |
* Jewel Theme <support@jeweltheme.com> |
| 15 |
*/ |
| 16 |
class Recommended_Plugins extends Recommended |
| 17 |
{ |
| 18 |
/** |
| 19 |
* Instance |
| 20 |
* |
| 21 |
* @var Recommended_Plugins |
| 22 |
*/ |
| 23 |
private static $instance = null; |
| 24 |
|
| 25 |
/** |
| 26 |
* Get Instance |
| 27 |
* |
| 28 |
* @return Recommended_Plugins |
| 29 |
*/ |
| 30 |
public static function get_instance() |
| 31 |
{ |
| 32 |
if (is_null(self::$instance)) { |
| 33 |
self::$instance = new self(); |
| 34 |
} |
| 35 |
return self::$instance; |
| 36 |
} |
| 37 |
|
| 38 |
/** |
| 39 |
* Constructor method |
| 40 |
*/ |
| 41 |
public function __construct() |
| 42 |
{ |
| 43 |
$this->menu_order = 57; // after Popup Builder (55) |
| 44 |
parent::__construct($this->menu_order); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Menu list |
| 49 |
*/ |
| 50 |
public function menu_items() |
| 51 |
{ |
| 52 |
return array( |
| 53 |
array( |
| 54 |
'key' => 'all', |
| 55 |
'label' => 'All', |
| 56 |
), |
| 57 |
array( |
| 58 |
'key' => 'featured', // key should be used as category to the plugin list. |
| 59 |
'label' => 'Featured', |
| 60 |
), |
| 61 |
array( |
| 62 |
'key' => 'popular', |
| 63 |
'label' => 'Popular', |
| 64 |
), |
| 65 |
array( |
| 66 |
'key' => 'favorites', |
| 67 |
'label' => 'Favorites', |
| 68 |
), |
| 69 |
); |
| 70 |
} |
| 71 |
|
| 72 |
/** |
| 73 |
* Plugins List |
| 74 |
* |
| 75 |
* @author Jewel Theme <support@jeweltheme.com> |
| 76 |
*/ |
| 77 |
public function plugins_list() |
| 78 |
{ |
| 79 |
return array( |
| 80 |
'adminify' => array( |
| 81 |
'slug' => 'adminify', |
| 82 |
'name' => 'WP Adminify – Custom Login, Admin Dashboard, Admin Columns | White Label | Media Library Folders', |
| 83 |
'short_description' => 'WP Adminify enhances the WordPress Dashboard Customization journey. It comes with 20+ modules, such as Media Folder, Login Customizer, Menu Editor, Admin Columns, Activity Logs, Disable Admin Notice, WordPress White Label, Admin Page, Google Pagespeed Insights, Custom CSS/JS, and many more. It can be your best choice because of its Multiple Dashboard UI Templates and lightweight size (4MB).', |
| 84 |
'icon' => 'https://ps.w.org/adminify/assets/icon.svg', |
| 85 |
'download_link' => 'https://downloads.wordpress.org/plugin/adminify.zip', |
| 86 |
'type' => array('all', 'featured', 'popular', 'favorites'), |
| 87 |
), |
| 88 |
'ultimate-blocks-for-gutenberg' => array( |
| 89 |
'slug' => 'ultimate-blocks-for-gutenberg', |
| 90 |
'name' => 'Master Blocks – Gutenberg Blocks Page Builder', |
| 91 |
'short_description' => 'Gutenberg is now a reality. Easy Blocks is a growing Gutenberg Block Plugin. It is easy to create multiple columns variations within a single row. Drag and Drop columns size variations gives you more controls over your website. We are calling it as a Gutenberg Page Builder. If you are using Gutenberg Editor, then you can try this plugin to get maximum customization possibilities.', |
| 92 |
'icon' => 'https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-256x256.png', |
| 93 |
'download_link' => 'https://downloads.wordpress.org/plugin/ultimate-blocks-for-gutenberg.zip', |
| 94 |
'type' => array('all', 'featured', 'favorites'), |
| 95 |
), |
| 96 |
'darken' => array( |
| 97 |
'slug' => 'darken', |
| 98 |
'name' => 'Darken - WordPress Dark Mode', |
| 99 |
'short_description' => 'Darken WordPress plugin allows users to easily configure and switch between dark and light modes in their WordPress dashboard.', |
| 100 |
'icon' => 'https://ps.w.org/darken/assets/icon-256x256.png', |
| 101 |
'download_link' => 'https://downloads.wordpress.org/plugin/darken.zip', |
| 102 |
'type' => array('all', 'featured', 'popular', 'favorites'), |
| 103 |
), |
| 104 |
'image-comparison-elementor-addon' => array( |
| 105 |
'slug' => 'image-comparison-elementor-addon', |
| 106 |
'name' => 'Image Comparison Elementor Addon', |
| 107 |
'short_description' => 'Image Comparison Elementor Addon is a Plugin that gives you the control to add before and after image. You will get the full control to customize everything you need for image or photo comparison.', |
| 108 |
'icon' => 'https://ps.w.org/image-comparison-elementor-addon/assets/icon-256x256.png', |
| 109 |
'download_link' => 'https://downloads.wordpress.org/plugin/image-comparison-elementor-addon.zip', |
| 110 |
'type' => array('all'), |
| 111 |
), |
| 112 |
'wp-awesome-faq' => array( |
| 113 |
'slug' => 'wp-awesome-faq', |
| 114 |
'name' => 'Master Accordion ( Former WP Awesome FAQ Plugin )', |
| 115 |
'short_description' => 'No need extra configurations for WP Awesome FAQ Plugin. WP Awesome FAQ Plugin allows to create unlimited FAQ Items with Title, Description. With the plugin installation a Custom Post Type named "FAQ" will be created automatically. To show all FAQ items a shortcode [faq] needed.', |
| 116 |
'icon' => 'https://ps.w.org/wp-awesome-faq/assets/icon-128x128.png', |
| 117 |
'download_link' => 'https://downloads.wordpress.org/plugin/wp-awesome-faq.zip', |
| 118 |
'type' => array('all', 'featured', 'popular'), |
| 119 |
), |
| 120 |
'prettyphoto' => array( |
| 121 |
'slug' => 'prettyphoto', |
| 122 |
'name' => 'WordPress prettyPhoto', |
| 123 |
'short_description' => 'Master Addons is Collection of Exclusive & Unique Addons for Elementor Page Builder. This Plugin that gives you full control over Images to show in your website.', |
| 124 |
'icon' => 'https://ps.w.org/prettyphoto/assets/icon-256x256.png', |
| 125 |
'download_link' => 'https://downloads.wordpress.org/plugin/prettyphoto.zip', |
| 126 |
'type' => array('all', 'featured', 'popular', 'favorites'), |
| 127 |
), |
| 128 |
'copy-to-clipboard' => array( |
| 129 |
'slug' => 'copy-to-clipboard', |
| 130 |
'name' => 'Copy To Clipboard', |
| 131 |
'short_description' => 'Copy To Clipboard is a WordPress plugin that makes it simple to copy & paste text, paragraphs, blockquotes, coupons codes and source codes from your WP website with a single click. An efficient way to save effort and time while navigating through your WordPress site content', |
| 132 |
'icon' => 'https://ps.w.org/copy-to-clipboard/assets/icon.svg', |
| 133 |
'download_link' => 'https://downloads.wordpress.org/plugin/copy-to-clipboard.zip', |
| 134 |
'type' => array('all', 'featured', 'popular', 'favorites'), |
| 135 |
), |
| 136 |
'admin-bar' => array( |
| 137 |
'slug' => 'admin-bar', |
| 138 |
'name' => 'Admin Bar Editor', |
| 139 |
'short_description' => 'WordPress Admin Bar editor for backend and frontend.', |
| 140 |
'icon' => 'https://ps.w.org/admin-bar/assets/icon.svg', |
| 141 |
'download_link' => 'https://downloads.wordpress.org/plugin/admin-bar.zip', |
| 142 |
'type' => array('all', 'featured', 'popular', 'favorites'), |
| 143 |
), |
| 144 |
); |
| 145 |
} |
| 146 |
|
| 147 |
/** |
| 148 |
* Admin submenu |
| 149 |
*/ |
| 150 |
public function admin_menu() |
| 151 |
{ |
| 152 |
// For submenu . |
| 153 |
$this->sub_menu = add_submenu_page( |
| 154 |
'master-addons-settings', // Ex. master-addons-settings / edit.php?post_type=page . |
| 155 |
__('Recommended', 'master-addons'), |
| 156 |
__('Recommended', 'master-addons'), |
| 157 |
'manage_options', |
| 158 |
'master-addons-recommended-plugins', |
| 159 |
array($this, 'render_recommended_plugins'), |
| 160 |
99 |
| 161 |
); |
| 162 |
} |
| 163 |
} |
| 164 |
|