| 1 |
<?php |
| 2 |
/** |
| 3 |
* Constructor Parameters |
| 4 |
* |
| 5 |
* @param string $text_domain your plugin text domain. |
| 6 |
* @param string $parent_menu_slug the menu slug name where the "Recommendations" submenu will appear. |
| 7 |
* @param string $submenu_label To change the submenu name. |
| 8 |
* @param string $submenu_page_name an unique page name for the submenu. |
| 9 |
* @param int $priority Submenu priority adjust. |
| 10 |
* @param string $hook_suffix use it to load this library assets only to the recommedded plugins page. Not into the whol admin area. |
| 11 |
* |
| 12 |
*/ |
| 13 |
|
| 14 |
require( __DIR__ .'/class.recommended-plugins.php' ); |
| 15 |
|
| 16 |
if( class_exists('Hasthemes\HTBuilder\HTRP_Recommended_Plugins') ){ |
| 17 |
$recommendations = new Hasthemes\HTBuilder\HTRP_Recommended_Plugins( |
| 18 |
array( |
| 19 |
'text_domain' => 'ht-builder', |
| 20 |
'parent_menu_slug' => 'htbuilder', |
| 21 |
'menu_capability' => 'manage_options', |
| 22 |
'menu_page_slug' => '', |
| 23 |
'priority' => '999', |
| 24 |
'assets_url' => '', |
| 25 |
'hook_suffix' => 'ht-builder_page_ht-builder_extensions', |
| 26 |
) |
| 27 |
); |
| 28 |
|
| 29 |
$recommendations->add_new_tab(array( |
| 30 |
'title' => esc_html__( 'Recommendations', 'ht-builder' ), |
| 31 |
'active' => true, |
| 32 |
'plugins' => array( |
| 33 |
array( |
| 34 |
'slug' => 'move-addons', |
| 35 |
'location' => 'move-addons.php', |
| 36 |
'name' => esc_html__( 'Move Addons for Elementor', 'ht-builder' ) |
| 37 |
), |
| 38 |
|
| 39 |
array( |
| 40 |
'slug' => 'extensions-for-cf7', |
| 41 |
'location' => 'extensions-for-cf7.php', |
| 42 |
'name' => esc_html__( 'Contact form 7 Extensions', 'ht-builder' ) |
| 43 |
), |
| 44 |
|
| 45 |
array( |
| 46 |
'slug' => 'hashbar-wp-notification-bar', |
| 47 |
'location' => 'init.php', |
| 48 |
'name' => esc_html__( 'Notification Bar for WordPress', 'ht-builder' ) |
| 49 |
), |
| 50 |
) |
| 51 |
)); |
| 52 |
|
| 53 |
$recommendations->add_new_tab(array( |
| 54 |
'title' => esc_html__( 'You May Also Like', 'ht-builder' ), |
| 55 |
'plugins' => array( |
| 56 |
array( |
| 57 |
'slug' => 'ht-mega-for-elementor', |
| 58 |
'location' => 'htmega_addons_elementor.php', |
| 59 |
'name' => esc_html__( 'WooLentor – WooCommerce Elementor Addons + Builder', 'ht-builder' ) |
| 60 |
), |
| 61 |
|
| 62 |
array( |
| 63 |
'slug' => 'woolentor-addons', |
| 64 |
'location' => 'woolentor_addons_elementor.php', |
| 65 |
'name' => esc_html__( 'HT Mega', 'ht-builder' ) |
| 66 |
), |
| 67 |
|
| 68 |
array( |
| 69 |
'slug' => 'ht-instagram', |
| 70 |
'location' => 'ht-instagram.php', |
| 71 |
'name' => esc_html__( 'Instagram Feed for WordPress', 'ht-builder' ) |
| 72 |
), |
| 73 |
|
| 74 |
array( |
| 75 |
'slug' => 'insert-headers-and-footers-script', |
| 76 |
'location' => 'init.php', |
| 77 |
'name' => esc_html__( 'Insert Headers and Footers Code', 'ht-builder' ) |
| 78 |
), |
| 79 |
|
| 80 |
array( |
| 81 |
'slug' => 'wp-plugin-manager', |
| 82 |
'location' => 'plugin-main.php', |
| 83 |
'name' => esc_html__( 'WP Plugin Manager', 'ht-builder' ) |
| 84 |
), |
| 85 |
|
| 86 |
array( |
| 87 |
'slug' => 'ht-easy-google-analytics', |
| 88 |
'location' => 'ht-easy-google-analytics.php', |
| 89 |
'name' => esc_html__( 'HT Easy GA4 ( Google Analytics 4 )', 'ht-builder' ) |
| 90 |
), |
| 91 |
|
| 92 |
array( |
| 93 |
'slug' => 'really-simple-google-tag-manager', |
| 94 |
'location' => 'really-simple-google-tag-manager.php', |
| 95 |
'name' => esc_html__( 'Really Simple Google Tag Manager', 'ht-builder' ) |
| 96 |
), |
| 97 |
|
| 98 |
array( |
| 99 |
'slug' => 'data-captia', |
| 100 |
'location' => 'data-captia.php', |
| 101 |
'name' => esc_html__( 'DataCaptia – Open Graph plugin for WordPress', 'ht-builder' ) |
| 102 |
), |
| 103 |
|
| 104 |
array( |
| 105 |
'slug' => 'docus', |
| 106 |
'location' => 'docus.php', |
| 107 |
'name' => esc_html__( 'Docus – YouTube Video Playlist', 'ht-builder' ) |
| 108 |
), |
| 109 |
|
| 110 |
array( |
| 111 |
'slug' => 'ht-social-share', |
| 112 |
'location' => 'ht-social-share.php', |
| 113 |
'name' => esc_html__( 'HT Social Share', 'ht-builder' ) |
| 114 |
), |
| 115 |
|
| 116 |
array( |
| 117 |
'slug' => 'ht-slider-for-elementor', |
| 118 |
'location' => 'ht-slider-for-elementor.php', |
| 119 |
'name' => esc_html__( 'HT Slider For Elementor', 'ht-builder' ) |
| 120 |
), |
| 121 |
|
| 122 |
array( |
| 123 |
'slug' => 'ht-contactform', |
| 124 |
'location' => 'contact-form-widget-elementor.php', |
| 125 |
'name' => esc_html__( 'HT Contact Form 7', 'ht-builder' ) |
| 126 |
), |
| 127 |
|
| 128 |
array( |
| 129 |
'slug' => 'ht-wpform', |
| 130 |
'location' => 'wpform-widget-elementor.php', |
| 131 |
'name' => esc_html__( 'HT WPForms', 'ht-builder' ) |
| 132 |
), |
| 133 |
|
| 134 |
array( |
| 135 |
'slug' => 'ht-newsletter-for-elementor', |
| 136 |
'location' => 'mailchimp-for-wp-widget-elementor.php', |
| 137 |
'name' => esc_html__( 'HT Newsletter for Elementor', 'ht-builder' ) |
| 138 |
), |
| 139 |
|
| 140 |
array( |
| 141 |
'slug' => 'wp-news-magazine', |
| 142 |
'location' => 'wp-news-magazine.php', |
| 143 |
'name' => esc_html__( 'WP News – WordPress News / Magazine Plugin', 'ht-builder' ) |
| 144 |
), |
| 145 |
|
| 146 |
array( |
| 147 |
'slug' => 'ht-team-member', |
| 148 |
'location' => 'ht-team-member.php', |
| 149 |
'name' => esc_html__( 'WP Team – WordPress Team Member Plugin', 'ht-builder' ) |
| 150 |
), |
| 151 |
|
| 152 |
array( |
| 153 |
'slug' => 'ht-event', |
| 154 |
'location' => 'htevent.php', |
| 155 |
'name' => esc_html__( 'HT Event – WordPress Event Manager Plugin for Elementor', 'ht-builder' ) |
| 156 |
), |
| 157 |
|
| 158 |
array( |
| 159 |
'slug' => 'ht-portfolio', |
| 160 |
'location' => 'htportfolio.php', |
| 161 |
'name' => esc_html__( 'HT Portfolio – WordPress Portfolio Plugin for Elementor', 'ht-builder' ) |
| 162 |
), |
| 163 |
|
| 164 |
array( |
| 165 |
'slug' => 'wp-education', |
| 166 |
'location' => 'wpeducation.php', |
| 167 |
'name' => esc_html__( 'WP Education – Education WordPress Plugin for Elementor', 'ht-builder' ) |
| 168 |
), |
| 169 |
|
| 170 |
array( |
| 171 |
'slug' => 'wptemplata', |
| 172 |
'location' => 'wptemplata.php', |
| 173 |
'name' => esc_html__( 'WP Templata – WordPress Template Library for Elementor', 'ht-builder' ) |
| 174 |
), |
| 175 |
|
| 176 |
array( |
| 177 |
'slug' => 'ht-service', |
| 178 |
'location' => 'htservice.php', |
| 179 |
'name' => esc_html__( 'HT Service – Roofing Service WordPress Plugin', 'ht-builder' ) |
| 180 |
), |
| 181 |
|
| 182 |
array( |
| 183 |
'slug' => 'faster-youtube-embed', |
| 184 |
'location' => 'youtube-embed.php', |
| 185 |
'name' => esc_html__( 'Faster YouTube Embed', 'ht-builder' ) |
| 186 |
), |
| 187 |
) |
| 188 |
)); |
| 189 |
} |
| 190 |
|