PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 3.1.7
Adminify – White Label, Admin Menu Editor, Login Customizer v3.1.7
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Classes / Recommended_Plugins.php

Recommended_Plugins.php in Adminify – White Label, Admin Menu Editor, Login Customizer 3.1.7, at Inc/Classes/Recommended_Plugins.php

113 lines 4.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace WPAdminify\Inc\Classes;
3
4 use WPAdminify\Libs\Recommended;
5
6 if ( ! class_exists( 'Recommended_Plugins' ) ) {
7 /**
8 * Recommended Plugins class
9 *
10 * Jewel Theme <support@jeweltheme.com>
11 */
12 class Recommended_Plugins extends Recommended {
13
14 /**
15 * Constructor method
16 */
17 public function __construct() {
18 $this->menu_order = 62; // for submenu order value should be more than 10 .
19 parent::__construct( $this->menu_order );
20 }
21
22 /**
23 * Menu list
24 */
25 public function menu_items() {
26 return array(
27 array(
28 'key' => 'all',
29 'label' => 'All',
30 ),
31 array(
32 'key' => 'featured', // key should be used as category to the plugin list.
33 'label' => 'Featured Item',
34 ),
35 array(
36 'key' => 'popular',
37 'label' => 'Popular',
38 ),
39 array(
40 'key' => 'favorites',
41 'label' => 'Favorites',
42 ),
43 );
44 }
45
46 /**
47 * Plugins List
48 *
49 * @author Jewel Theme <support@jeweltheme.com>
50 */
51 public function plugins_list() {
52 return array(
53 'ultimate-blocks-for-gutenberg' => array(
54 'slug' => 'ultimate-blocks-for-gutenberg',
55 'name' => 'Master Blocks – Gutenberg Blocks Page Builder',
56 'short_description' => 'Gutenberg is now a reality. Easy Blocks is a growing Gutenberg Block Plugin. It’s easy to create multiple columns variations within a single row. Drag and Drop columns size variations gives you more controls over your website. We’re calling it as a Gutenberg Page Builder. If you are using Gutenberg Editor, then you can try this plugin to get maximum customization possibilities.',
57 'icon' => 'https://ps.w.org/ultimate-blocks-for-gutenberg/assets/icon-256x256.png',
58 'download_link' => 'https://downloads.wordpress.org/plugin/ultimate-blocks-for-gutenberg.zip',
59 'type' => array( 'all', 'featured', 'favorites' ),
60 ),
61 'master-addons' => array(
62 'slug' => 'master-addons',
63 'name' => 'Master Addons for Elementor',
64 'short_description' => 'Master Addons for Elementor provides the most comprehensive Elements & Extensions with a user-friendly interface. It is packed with 50+ Elementor Elements & 20+ Extension.',
65 'icon' => 'https://ps.w.org/master-addons/assets/icon.svg',
66 'download_link' => 'https://downloads.wordpress.org/plugin/master-addons.zip',
67 'type' => array( 'all', 'featured', 'popular', 'favorites' ),
68 ),
69 'prettyphoto' => array(
70 'slug' => 'prettyphoto',
71 'name' => 'WordPress prettyPhoto',
72 '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.',
73 'icon' => 'https://ps.w.org/prettyphoto/assets/icon-256x256.png',
74 'download_link' => 'https://downloads.wordpress.org/plugin/prettyphoto.zip',
75 'type' => array( 'all', 'featured', 'popular', 'favorites' ),
76 ),
77 'admin-bar' => array(
78 'slug' => 'admin-bar',
79 'name' => 'Admin Bar Remover',
80 'short_description' => 'This plugin turns on or off Admin Bar in front end, for all users',
81 'icon' => 'https://s.w.org/plugins/geopattern-icon/admin-bar.svg',
82 'download_link' => 'https://downloads.wordpress.org/plugin/admin-bar.zip',
83 'type' => array( 'featured', 'popular' ),
84 ),
85 'copy-to-clipboard' => array(
86 'slug' => 'copy-to-clipboard',
87 'name' => 'Copy to Clipboard',
88 '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. It’s an efficient way to save effort and time while navigating through your WordPress site content',
89 'icon' => 'https://ps.w.org/copy-to-clipboard/assets/icon.svg?rev=2840276',
90 'download_link' => 'https://downloads.wordpress.org/plugin/copy-to-clipboard.zip',
91 'type' => array( 'featured', 'popular' ),
92 ),
93
94 );
95 }
96
97 /**
98 * Admin submenu
99 */
100 public function admin_menu() {
101 // For submenu .
102 $this->sub_menu = add_submenu_page(
103 'wp-adminify-settings', // Ex. wp-adminify-settings / edit.php?post_type=page .
104 __( 'Recommended Plugins', 'adminify' ),
105 __( 'Recommended Plugins', 'adminify' ),
106 'manage_options',
107 'wp-adminify-recommended-plugins',
108 array( $this, 'render_recommended_plugins' )
109 );
110 }
111 }
112 }
113