| 1 |
<?php |
| 2 |
/** |
| 3 |
* MainWP Extensions View |
| 4 |
* |
| 5 |
* Renders MainWP Extensions Page. |
| 6 |
* |
| 7 |
* @package MainWP/Dashboard |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace MainWP\Dashboard; |
| 11 |
|
| 12 |
/** |
| 13 |
* Class MainWP_Extensions_View |
| 14 |
* |
| 15 |
* @package MainWP\Dashboard |
| 16 |
*/ |
| 17 |
class MainWP_Extensions_View { // phpcs:ignore Generic.Classes.OpeningBraceSameLine.ContentAfterBrace -- NOSONAR. |
| 18 |
/** |
| 19 |
* Get Class name. |
| 20 |
* |
| 21 |
* @return string __CLASS__. |
| 22 |
*/ |
| 23 |
public static function get_class_name() { |
| 24 |
return __CLASS__; |
| 25 |
} |
| 26 |
|
| 27 |
/** |
| 28 |
* Method init_menu() |
| 29 |
* |
| 30 |
* Add MainWP > Extensions Submenu |
| 31 |
* |
| 32 |
* @return $page |
| 33 |
* |
| 34 |
* @uses \MainWP\Dashboard\MainWP_Extensions::get_class_name() |
| 35 |
*/ |
| 36 |
public static function init_menu() { |
| 37 |
return add_submenu_page( |
| 38 |
'mainwp_tab', |
| 39 |
__( 'Extensions', 'mainwp' ), |
| 40 |
' <span id="mainwp-Extensions">' . esc_html__( 'Extensions', 'mainwp' ) . '</span>', |
| 41 |
'read', |
| 42 |
'Extensions', |
| 43 |
array( |
| 44 |
MainWP_Extensions::get_class_name(), |
| 45 |
'render', |
| 46 |
) |
| 47 |
); |
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* Method render_header() |
| 52 |
* |
| 53 |
* Render page header. |
| 54 |
* |
| 55 |
* @param string $shownPage The page slug shown at this moment. |
| 56 |
* |
| 57 |
* @uses \MainWP\Dashboard\MainWP_UI::render_top_header() |
| 58 |
* @uses \MainWP\Dashboard\MainWP_UI::render_page_navigation() |
| 59 |
* @uses \MainWP\Dashboard\MainWP_Extensions_Handler::get_extensions() |
| 60 |
*/ |
| 61 |
public static function render_header( $shownPage = '' ) { |
| 62 |
$page = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 63 |
if ( ! empty( $page ) && 'Extensions' === $_GET['page'] ) { // phpcs:ignore WordPress.Security.NonceVerification,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 64 |
$params = array( |
| 65 |
'title' => esc_html__( 'Extensions', 'mainwp' ), |
| 66 |
); |
| 67 |
} else { |
| 68 |
$extension_name_raw = $page; |
| 69 |
$extension_name = str_replace( array( '-' ), ' ', $extension_name_raw ); |
| 70 |
$extension_name = MainWP_Extensions_Handler::polish_string_name( $extension_name ); |
| 71 |
$extension_name = apply_filters( 'mainwp_extensions_page_top_header', $extension_name, $extension_name_raw ); |
| 72 |
$params = array( |
| 73 |
'title' => $extension_name, |
| 74 |
); |
| 75 |
} |
| 76 |
|
| 77 |
MainWP_UI::render_top_header( $params ); |
| 78 |
|
| 79 |
$renderItems = array(); |
| 80 |
$renderItems[] = array( |
| 81 |
'title' => esc_html__( 'Manage Extensions', 'mainwp' ), |
| 82 |
'href' => 'admin.php?page=Extensions', |
| 83 |
'active' => ( '' === $shownPage ) ? true : false, |
| 84 |
); |
| 85 |
|
| 86 |
// get extensions to generate manage site page header. |
| 87 |
$extensions = MainWP_Extensions_Handler::get_extensions(); |
| 88 |
foreach ( $extensions as $extension ) { |
| 89 |
if ( $extension['plugin'] === $shownPage ) { |
| 90 |
$renderItems[] = array( |
| 91 |
'title' => $extension['name'], |
| 92 |
'href' => 'admin.php?page=' . $extension['page'], |
| 93 |
'active' => true, |
| 94 |
); |
| 95 |
break; |
| 96 |
} |
| 97 |
} |
| 98 |
MainWP_UI::render_page_navigation( $renderItems ); |
| 99 |
do_action( 'mainwp_extensions_top_header_after_tab', $shownPage ); |
| 100 |
} |
| 101 |
|
| 102 |
/** |
| 103 |
* Method render_footer() |
| 104 |
* |
| 105 |
* Render page footer. |
| 106 |
*/ |
| 107 |
public static function render_footer() { |
| 108 |
echo '</div>'; |
| 109 |
} |
| 110 |
|
| 111 |
/** |
| 112 |
* Method render() |
| 113 |
* |
| 114 |
* Render the extensions page. |
| 115 |
* |
| 116 |
* @uses \MainWP\Dashboard\MainWP_Extensions_Handler::get_extensions() |
| 117 |
* @uses \MainWP\Dashboard\MainWP_Extensions_Handler::added_on_menu() |
| 118 |
* @uses \MainWP\Dashboard\MainWP_Utility::remove_http_prefix() |
| 119 |
*/ |
| 120 |
public static function render() { // phpcs:ignore -- NOSONAR -Current complexity is the only way to achieve desired results, pull request solutions appreciated. |
| 121 |
$mainwp_api_key = false; |
| 122 |
if ( get_option( 'mainwp_extensions_api_save_login' ) ) { |
| 123 |
$mainwp_api_key = MainWP_Api_Manager_Key::instance()->get_decrypt_master_api_key(); |
| 124 |
} |
| 125 |
|
| 126 |
if ( 1 === (int) get_option( 'mainwp_api_sslVerifyCertificate' ) ) { |
| 127 |
update_option( 'mainwp_api_sslVerifyCertificate', 0 ); |
| 128 |
} |
| 129 |
|
| 130 |
$all_available_extensions = static::get_available_extensions( 'all' ); |
| 131 |
|
| 132 |
$extensions_disabled = MainWP_Extensions_Handler::get_extensions_disabled(); |
| 133 |
|
| 134 |
$extensions = MainWP_Extensions_Handler::get_extensions(); |
| 135 |
$extension_update = get_site_transient( 'update_plugins' ); |
| 136 |
$is_demo = MainWP_Demo_Handle::is_demo_mode(); |
| 137 |
?> |
| 138 |
<div id="mainwp-manage-extensions"> |
| 139 |
<div class="mainwp-extensions-api-loading" style="display:none"> |
| 140 |
<div class="ui active inverted page dimmer"> |
| 141 |
<div class="ui medium text loader"></div> |
| 142 |
</div> |
| 143 |
</div> |
| 144 |
<div class="mainwp-main-content"> |
| 145 |
<?php |
| 146 |
static::render_incompatible_notice(); |
| 147 |
if ( $is_demo ) { |
| 148 |
?> |
| 149 |
<div class="ui yellow message"> |
| 150 |
<?php esc_html_e( 'Extensions are disabled in the Demo Mode.', 'mainwp' ); ?> |
| 151 |
<i class="close icon"></i> |
| 152 |
</div> |
| 153 |
<?php |
| 154 |
} |
| 155 |
?> |
| 156 |
<?php if ( empty( $extensions ) && empty( $extensions_disabled ) ) { ?> |
| 157 |
<?php static::render_intro_notice(); ?> |
| 158 |
<?php |
| 159 |
} else { |
| 160 |
?> |
| 161 |
<?php if ( MainWP_Utility::show_mainwp_message( 'notice', 'mainwp-extensions-info-message' ) ) { ?> |
| 162 |
<div class="ui info message"> |
| 163 |
<i class="close icon mainwp-notice-dismiss" notice-id="mainwp-extensions-info-message"></i> |
| 164 |
<?php printf( esc_html__( 'Quickly access, install, and activate your MainWP extensions. If you need additional help with managing your MainWP Extensions, please check this %1$shelp documentation%2$s.', 'mainwp' ), '<a href="https://kb.mainwp.com/docs/category/getting-started/first-steps-with-extensions/" target="_blank">', '</a> <i class="external alternate icon"></i>' ); // NOSONAR - noopener - open safe. ?> |
| 165 |
</div> |
| 166 |
<?php } ?> |
| 167 |
<div class="ui segment" id="mainwp-extensions-search-no-results" style="display:none"> |
| 168 |
<div class="ui info message"><?php esc_html_e( 'Your search returned no results. The extension may need to be installed or does not exist.' ); ?></div> |
| 169 |
</div> |
| 170 |
<div class="ui four stackable cards" id="mainwp-extensions-list"> |
| 171 |
<?php if ( isset( $extensions ) && is_array( $extensions ) ) { ?> |
| 172 |
<?php foreach ( $extensions as $extension ) { ?> |
| 173 |
<?php |
| 174 |
if ( ! mainwp_current_user_have_right( 'extension', dirname( $extension['slug'] ) ) ) { |
| 175 |
continue; |
| 176 |
} |
| 177 |
|
| 178 |
$extensions_data = isset( $all_available_extensions[ dirname( $extension['slug'] ) ] ) ? $all_available_extensions[ dirname( $extension['slug'] ) ] : array(); |
| 179 |
|
| 180 |
if ( isset( $extensions_data['img'] ) && ! empty( $extensions_data['img'] ) ) { |
| 181 |
$img_url = $extensions_data['img']; |
| 182 |
} elseif ( isset( $extension['icon'] ) && ! empty( $extension['icon'] ) ) { |
| 183 |
$img_url = $extension['icon']; |
| 184 |
} elseif ( isset( $extension['iconURI'] ) && '' !== $extension['iconURI'] ) { |
| 185 |
$img_url = MainWP_Utility::remove_http_prefix( $extension['iconURI'] ); |
| 186 |
} else { |
| 187 |
$img_url = MAINWP_PLUGIN_URL . 'assets/images/extensions/placeholder.png'; |
| 188 |
} |
| 189 |
|
| 190 |
static::render_extension_card( $extension, $extension_update, $img_url ); |
| 191 |
?> |
| 192 |
|
| 193 |
<?php } ?> |
| 194 |
<?php } ?> |
| 195 |
|
| 196 |
<?php if ( is_array( $extensions_disabled ) ) { ?> |
| 197 |
<?php foreach ( $extensions_disabled as $extension ) { ?> |
| 198 |
<?php |
| 199 |
$slug = dirname( $extension['slug'] ); |
| 200 |
|
| 201 |
if ( ! isset( $all_available_extensions[ $slug ] ) ) { |
| 202 |
continue; |
| 203 |
} |
| 204 |
|
| 205 |
$extensions_data = $all_available_extensions[ $slug ]; |
| 206 |
|
| 207 |
if ( isset( $extensions_data['img'] ) && ! empty( $extensions_data['img'] ) ) { |
| 208 |
$img_url = $extensions_data['img']; // icon from the available extensions in dashboard. |
| 209 |
} elseif ( isset( $extension['icon'] ) && ! empty( $extension['icon'] ) ) { |
| 210 |
$img_url = $extension['icon']; // icon from the get_this_extension(). |
| 211 |
} elseif ( isset( $extension['iconURI'] ) && '' !== $extension['iconURI'] ) { |
| 212 |
$img_url = MainWP_Utility::remove_http_prefix( $extension['iconURI'] ); // icon from the extension header. |
| 213 |
} else { |
| 214 |
$img_url = MAINWP_PLUGIN_URL . 'assets/images/extensions/placeholder.png'; |
| 215 |
} |
| 216 |
|
| 217 |
static::render_extension_card( $extension, $extension_update, $img_url, true ); |
| 218 |
?> |
| 219 |
|
| 220 |
<?php } ?> |
| 221 |
|
| 222 |
<?php } ?> |
| 223 |
</div> |
| 224 |
<?php } ?> |
| 225 |
<?php static::render_purchase_notice(); ?> |
| 226 |
</div> |
| 227 |
<div class="mainwp-side-content mainwp-no-padding"> |
| 228 |
<?php if ( ! empty( $extensions ) || ! empty( $extensions_disabled ) ) { ?> |
| 229 |
<?php static::render_search_box(); ?> |
| 230 |
<?php } ?> |
| 231 |
<?php static::render_side_box( $mainwp_api_key ); ?> |
| 232 |
</div> |
| 233 |
<div id="mainwp-extensions-privacy-info"> |
| 234 |
<?php $priv_extensions = static::get_available_extensions( 'all' ); ?> |
| 235 |
<?php |
| 236 |
foreach ( $priv_extensions as $priv_extension ) { |
| 237 |
$item_slug = MainWP_Utility::get_dir_slug( $priv_extension['slug'] ); |
| 238 |
?> |
| 239 |
<?php if ( isset( $priv_extension['privacy'] ) && ( 2 === $priv_extension['privacy'] || 1 === (int) $priv_extension['privacy'] ) ) { ?> |
| 240 |
<input |
| 241 |
type="hidden" |
| 242 |
id="<?php esc_attr_e( $priv_extension['slug'] ); ?>" |
| 243 |
name="<?php esc_attr_e( $priv_extension['slug'] ); ?>" |
| 244 |
base-slug="<?php esc_attr_e( $item_slug ); ?>" |
| 245 |
privacy="<?php esc_attr_e( $priv_extension['privacy'] ); ?>" |
| 246 |
integration="<?php esc_attr_e( $priv_extension['integration'] ); ?>" |
| 247 |
integration_url="<?php esc_attr_e( $priv_extension['integration_url'] ); ?>" |
| 248 |
integration_owner="<?php esc_attr_e( $priv_extension['integration_owner'] ); ?>" |
| 249 |
integration_owner_pp="<?php esc_attr_e( $priv_extension['integration_owner_pp'] ); ?>" |
| 250 |
extension_title="<?php esc_attr_e( $priv_extension['title'] ); ?>" |
| 251 |
value="<?php esc_attr_e( $priv_extension['title'] ); ?>" |
| 252 |
/> |
| 253 |
<?php |
| 254 |
} elseif ( isset( $priv_extension['privacy'] ) && 0 === (int) $priv_extension['privacy'] ) { |
| 255 |
?> |
| 256 |
<input |
| 257 |
type="hidden" |
| 258 |
id="<?php esc_attr_e( $priv_extension['slug'] ); ?>" |
| 259 |
name="<?php esc_attr_e( $priv_extension['slug'] ); ?>" |
| 260 |
base-slug="<?php esc_attr_e( $item_slug ); ?>" |
| 261 |
privacy="<?php esc_attr_e( $priv_extension['privacy'] ); ?>" |
| 262 |
extension_title="<?php esc_attr_e( $priv_extension['title'] ); ?>" |
| 263 |
value="<?php esc_attr_e( $priv_extension['title'] ); ?>" |
| 264 |
/> |
| 265 |
<?php |
| 266 |
} else { |
| 267 |
?> |
| 268 |
<input |
| 269 |
type="hidden" |
| 270 |
id="<?php esc_attr_e( $priv_extension['slug'] ); ?>" |
| 271 |
name="<?php esc_attr_e( $priv_extension['slug'] ); ?>" |
| 272 |
base-slug="<?php esc_attr_e( $item_slug ); ?>" |
| 273 |
extension_title="<?php esc_attr_e( $priv_extension['title'] ); ?>" |
| 274 |
value="<?php esc_attr_e( $priv_extension['title'] ); ?>" |
| 275 |
/> |
| 276 |
<?php } ?> |
| 277 |
<?php } ?> |
| 278 |
</div> |
| 279 |
</div> |
| 280 |
|
| 281 |
<div class="ui tiny second coupled modal" id="mainwp-privacy-info-modal"> |
| 282 |
<i class="close icon"></i> |
| 283 |
<div class="header"></div> |
| 284 |
<div class="content"></div> |
| 285 |
</div> |
| 286 |
<?php |
| 287 |
} |
| 288 |
|
| 289 |
/** |
| 290 |
* Method render_incompatible_notice() |
| 291 |
* |
| 292 |
* Render Incompatability Notice. |
| 293 |
*/ |
| 294 |
public static function render_incompatible_notice() { |
| 295 |
$deactivated_exts = get_transient( 'mainwp_transient_deactivated_incomtible_exts' ); |
| 296 |
if ( $deactivated_exts && is_array( $deactivated_exts ) && ! empty( $deactivated_exts ) ) { |
| 297 |
?> |
| 298 |
<?php delete_transient( 'mainwp_transient_deactivated_incomtible_exts' ); ?> |
| 299 |
<div class="ui yellow message"> |
| 300 |
<div class="header"><?php esc_html_e( 'Important Note', 'mainwp' ); ?></div> |
| 301 |
<p><?php esc_html_e( 'MainWP Dashboard 4.0 or newer requires Extensions 4.0 or newer. MainWP will automatically deactivate older versions of MainWP Extensions in order to prevent compatibility problems.', 'mainwp' ); ?></p> |
| 302 |
<div class="header"><?php esc_html_e( 'Steps to Update Extensions', 'mainwp' ); ?></div> |
| 303 |
<div class="ui list"> |
| 304 |
<div class="item">1. <?php esc_html_e( 'Go to the WP Admin > Plugins > Installed Plugins page', 'mainwp' ); ?></div> |
| 305 |
<div class="item">2. <?php esc_html_e( 'Delete Version 3 Extensions (extensions older than version 4) from your MainWP Dashboard', 'mainwp' ); ?></div> |
| 306 |
<div class="item">3. <?php esc_html_e( 'Go back to the MainWP > Extensions page and use the Install Extensions button', 'mainwp' ); ?></div> |
| 307 |
</div> |
| 308 |
<p><?php esc_html_e( 'This process does not affect your extensions settings.', 'mainwp' ); ?></p> |
| 309 |
</div> |
| 310 |
<?php |
| 311 |
} |
| 312 |
} |
| 313 |
|
| 314 |
/** |
| 315 |
* Method render_intro_notice() |
| 316 |
* |
| 317 |
* Render Intro Notice. |
| 318 |
*/ |
| 319 |
public static function render_intro_notice() { |
| 320 |
?> |
| 321 |
<div class="ui secondary segment"> |
| 322 |
<h2 class="header"><?php esc_html_e( 'What are Extensions?', 'mainwp' ); ?></h2> |
| 323 |
<p><?php esc_html_e( 'Extensions are specific features or tools created to expand the basic functionality of MainWP. The core of MainWP is designed to provide the functions most needed for you and minimize code bloat.', 'mainwp' ); ?></p> |
| 324 |
<p><?php esc_html_e( 'Extensions offer custom functions and features so that each user can tailor the MainWP Dashboard to their specific needs.', 'mainwp' ); ?></p> |
| 325 |
<p><?php esc_html_e( 'MainWP Pro offers 40+ Free & Premium Extensions in multiple categories, such as Security, Backup, Performance, Administrative, etc. You can get all of them at a single price.', 'mainwp' ); ?></p> |
| 326 |
<h4><?php esc_html_e( 'MainWP Pro includes:', 'mainwp' ); ?></h4> |
| 327 |
<div class="ui bulleted list"> |
| 328 |
<div class="item"><?php esc_html_e( 'All current MainWP Extensions (free & premium)', 'mainwp' ); ?></div> |
| 329 |
<div class="item"><?php esc_html_e( 'All future MainWP Extensions (free & premium)', 'mainwp' ); ?></div> |
| 330 |
<div class="item"><?php esc_html_e( 'Critical Security & Performance updates for MainWP Extensions', 'mainwp' ); ?></div> |
| 331 |
<div class="item"><?php esc_html_e( 'Priority support via Helpdesk & Community for MainWP products', 'mainwp' ); ?></div> |
| 332 |
</div> |
| 333 |
<a class="ui basic green button" href="https://mainwp.com/mainwp-extensions/" target="_blank"><?php esc_html_e( 'Browse All Extensions', 'mainwp' ); ?></a> <a class="ui green button" href="https://mainwp.com/free-vs-pro/" target="_blank"><?php esc_html_e( 'Free Vs. Pro', 'mainwp' ); ?></a> <a class="ui green button" href="https://mainwp.com/signup/" target="_blank"><?php esc_html_e( 'Get Pro', 'mainwp' ); ?></a> <?php // NOSONAR - noopener - open safe. ?> |
| 334 |
<h2 class="header"><?php esc_html_e( 'How to install your MainWP Extensions?', 'mainwp' ); ?></h2> |
| 335 |
<p><?php printf( esc_html__( 'Once you have ordered MainWP Extensions, you can either use the %1$sautomatic extension installation%2$s option or %3$smanual installation%4$s.', 'mainwp' ), '<a href="https://kb.mainwp.com/docs/install-extensions/" target="_blank">', '</a> <i class="external alternate icon"></i>', '<a href="https://kb.mainwp.com/docs/my-downloads-and-api-keys/" target="_blank">', '</a> <i class="external alternate icon"></i>' ); ?></p> <?php // NOSONAR - noopener - open safe. ?> |
| 336 |
</div> |
| 337 |
<?php |
| 338 |
} |
| 339 |
|
| 340 |
/** |
| 341 |
* Method render_search_box() |
| 342 |
* |
| 343 |
* Render Search Box. |
| 344 |
*/ |
| 345 |
public static function render_search_box() { |
| 346 |
?> |
| 347 |
<div class="mainwp-search-options ui fluid accordion mainwp-sidebar-accordion"> |
| 348 |
<div class="title"> |
| 349 |
<i class="dropdown icon"></i> |
| 350 |
<?php esc_html_e( 'Search Installed Extensions', 'mainwp' ); ?> |
| 351 |
</div> |
| 352 |
<div class="content"> |
| 353 |
<div id="mainwp-search-extensions" class="ui fluid search"> |
| 354 |
<div class="ui icon fluid input"> |
| 355 |
<input class="prompt" id="mainwp-search-extensions-input" autocomplete="one-time-code" type="text" placeholder="<?php esc_attr_e( 'Find extension...', 'mainwp' ); ?>"> |
| 356 |
<i class="search icon"></i> |
| 357 |
</div> |
| 358 |
</div> |
| 359 |
</div> |
| 360 |
</div> |
| 361 |
<div class="ui fitted divider"></div> |
| 362 |
<script type="text/javascript"> |
| 363 |
jQuery( document ).ready( function () { |
| 364 |
jQuery( '#mainwp-search-extensions-input' ).on( 'keyup', function () { |
| 365 |
var searchQuery = jQuery( this ).val().toLowerCase(); |
| 366 |
var extensions = jQuery( '#mainwp-extensions-list' ).find( '.ui.extension.card' ); |
| 367 |
for ( var i = 0; i < extensions.length; i++ ) { |
| 368 |
var currentExtension = jQuery( extensions[i] ); |
| 369 |
var extensionTitle = jQuery( currentExtension ).attr( 'extension-title' ).toLowerCase(); |
| 370 |
if ( extensionTitle.indexOf( searchQuery ) > -1 ) { |
| 371 |
currentExtension.show(); |
| 372 |
currentExtension.addClass( 'mainwp-found' ); |
| 373 |
} else { |
| 374 |
currentExtension.removeClass( 'mainwp-found' ); |
| 375 |
currentExtension.hide(); |
| 376 |
} |
| 377 |
var foundExtensions = jQuery( '#mainwp-extensions-list' ).find( '.ui.extension.card.mainwp-found' ); |
| 378 |
if ( foundExtensions.length < 1 ) { |
| 379 |
jQuery( '#mainwp-extensions-search-no-results' ).show(); |
| 380 |
} else { |
| 381 |
jQuery( '#mainwp-extensions-search-no-results' ).hide(); |
| 382 |
} |
| 383 |
} |
| 384 |
} ); |
| 385 |
} ); |
| 386 |
</script> |
| 387 |
<?php |
| 388 |
} |
| 389 |
|
| 390 |
/** |
| 391 |
* Method render_extension_card() |
| 392 |
* |
| 393 |
* Render the MainWP Extension Cards. |
| 394 |
* |
| 395 |
* @param mixed $extension Extention to render. |
| 396 |
* @param mixed $extension_update Extension update. |
| 397 |
* @param mixed $img_url Extension image. |
| 398 |
* @param mixed $disabled Disabled extension. |
| 399 |
* @param bool $simple Simple info. |
| 400 |
* |
| 401 |
* @uses \MainWP\Dashboard\MainWP_Extensions_Handler::is_extension_activated() |
| 402 |
* @uses \MainWP\Dashboard\MainWP_Extensions_Handler::polish_ext_name() |
| 403 |
*/ |
| 404 |
public static function render_extension_card( $extension, $extension_update, $img_url, $disabled = false, $simple = false ) { // phpcs:ignore -- NOSONAR -Current complexity is the only way to achieve desired results, pull request solutions appreciated. |
| 405 |
|
| 406 |
if ( isset( $extension['href'] ) && ! empty( $extension['href'] ) ) { |
| 407 |
$extension_page_url = $extension['href']; |
| 408 |
} elseif ( isset( $extension['direct_page'] ) && ! empty( $extension['direct_page'] ) ) { |
| 409 |
$extension_page_url = admin_url( 'admin.php?page=' . $extension['direct_page'] ); |
| 410 |
} elseif ( isset( $extension['callback'] ) ) { |
| 411 |
$extension_page_url = admin_url( 'admin.php?page=' . $extension['page'] ); |
| 412 |
} else { |
| 413 |
$extension_page_url = admin_url( 'admin.php?page=Extensions' ); |
| 414 |
} |
| 415 |
|
| 416 |
$active = MainWP_Extensions_Handler::is_extension_activated( $extension['slug'] ); |
| 417 |
if ( empty( $extension['api_key'] ) ) { |
| 418 |
$active = false; |
| 419 |
} |
| 420 |
|
| 421 |
if ( isset( $extension['apiManager'] ) && $extension['apiManager'] && ! isset( $extension['product_item_id'] ) ) { |
| 422 |
$extension['product_item_id'] = 0; |
| 423 |
} |
| 424 |
|
| 425 |
$queue_status = ''; |
| 426 |
if ( ! $disabled && isset( $extension['apiManager'] ) && $extension['apiManager'] ) { |
| 427 |
$queue_status = 'queue'; |
| 428 |
} |
| 429 |
|
| 430 |
$all_available_extensions = static::get_available_extensions( 'all' ); |
| 431 |
$extensions_data = isset( $all_available_extensions[ dirname( $extension['slug'] ) ] ) ? $all_available_extensions[ dirname( $extension['slug'] ) ] : array(); |
| 432 |
|
| 433 |
$privacy_class = ''; |
| 434 |
$license_class = ''; |
| 435 |
|
| 436 |
if ( isset( $extensions_data['privacy'] ) ) { |
| 437 |
if ( empty( $extensions_data['privacy'] ) ) { |
| 438 |
$privacy_class = '<i class="green check icon"></i>'; |
| 439 |
} elseif ( 1 === (int) $extensions_data['privacy'] || 2 === (int) $extensions_data['privacy'] ) { |
| 440 |
$privacy_class = '<i class="yellow info icon"></i>'; |
| 441 |
} |
| 442 |
} |
| 443 |
|
| 444 |
if ( $active ) { |
| 445 |
$license_class = '<i class="green cog icon"></i>'; |
| 446 |
} else { |
| 447 |
$license_class = '<i class="red cog icon"></i>'; |
| 448 |
} |
| 449 |
|
| 450 |
$item_slug = MainWP_Utility::get_dir_slug( $extension['slug'] ); |
| 451 |
|
| 452 |
$new = ''; |
| 453 |
|
| 454 |
if ( isset( $extensions_data['release_date'] ) && ( time() - $extensions_data['release_date'] < MONTH_IN_SECONDS ) ) { |
| 455 |
$new = '<span class="ui floating green mini label">NEW!</span>'; |
| 456 |
} |
| 457 |
|
| 458 |
?> |
| 459 |
<div class="ui card extension <?php echo $disabled ? 'grey mainwp-disabled-extension' : 'green mainwp-enabled-extension'; ?> extension-card-<?php echo esc_attr( $extension['name'] ); ?>" extension-title="<?php echo esc_attr( $extension['name'] ); ?>" base-slug="<?php echo esc_attr( $item_slug ); ?>" extension-slug="<?php echo esc_attr( $extension['slug'] ); ?>" status="<?php echo esc_attr( $queue_status ); ?>" license-status="<?php echo $active ? 'activated' : 'deactivated'; ?>"> |
| 460 |
<?php |
| 461 |
/** |
| 462 |
* Action: mainwp_extension_card_top |
| 463 |
* |
| 464 |
* Fires at the Extension card top |
| 465 |
* |
| 466 |
* @since 4.1.4.1 |
| 467 |
* |
| 468 |
* @param array $extension Array containing the Extension information. |
| 469 |
*/ |
| 470 |
do_action( 'mainwp_extension_card_top', $extension ); |
| 471 |
?> |
| 472 |
<div class="content"> |
| 473 |
<img class="right floated mini ui image" alt="<?php echo esc_attr( MainWP_Extensions_Handler::polish_ext_name( $extension, true ) ); ?>" src="<?php echo esc_html( $img_url ); ?>"> |
| 474 |
<div class="header"> |
| 475 |
|
| 476 |
<?php if ( ! $disabled ) { ?> |
| 477 |
<a href="<?php echo esc_url( $extension_page_url ); ?>"><?php echo esc_html( MainWP_Extensions_Handler::polish_ext_name( $extension, true ) ); ?></a> |
| 478 |
<?php |
| 479 |
} else { |
| 480 |
?> |
| 481 |
<?php echo esc_html( MainWP_Extensions_Handler::polish_ext_name( $extension, true ) ); ?> |
| 482 |
<?php } ?> |
| 483 |
</div> |
| 484 |
|
| 485 |
<div class="meta"> |
| 486 |
<?php echo '<i class="code branch icon"></i>' . esc_html( $extension['version'] ); ?> <?php echo isset( $extension['DocumentationURI'] ) && ! empty( $extension['DocumentationURI'] ) ? ' - <a href="' . esc_url( str_replace( array( 'http:', 'https:' ), '', $extension['DocumentationURI'] ) ) . '" target="_blank">' . esc_html__( 'Documentation', 'mainwp' ) . '</a> <i class="external alternate icon"></i>' : ''; ?> |
| 487 |
</div> |
| 488 |
|
| 489 |
<?php if ( isset( $extension['apiManager'] ) && $extension['apiManager'] ) { ?> |
| 490 |
<?php if ( ! $active && ! $disabled ) { ?> |
| 491 |
<span class="ui red ribbon label"><?php esc_html_e( 'License not activated', 'mainwp' ); ?></span> |
| 492 |
<?php } ?> |
| 493 |
<?php } ?> |
| 494 |
<?php if ( isset( $extension_update->response[ $extension['slug'] ] ) ) { ?> |
| 495 |
<a href="<?php echo esc_url( admin_url( 'plugins.php' ) ); ?>" class="ui yellow ribbon label"><?php esc_html_e( 'Update available', 'mainwp' ); ?></a> |
| 496 |
<?php } ?> |
| 497 |
|
| 498 |
<div class="description"> |
| 499 |
<?php echo esc_html( preg_replace( '/\<cite\>.*\<\/cite\>/', '', $extension['description'] ) ); ?> |
| 500 |
</div> |
| 501 |
</div> |
| 502 |
<?php echo $new; // phpcs:ignore WordPress.Security.EscapeOutput ?> |
| 503 |
<?php if ( ! $simple ) { ?> |
| 504 |
<div class="extra content"> |
| 505 |
<div class="ui mini fluid stackable buttons"> |
| 506 |
<a class="ui basic button extension-the-plugin-action" plugin-action="<?php echo $disabled ? 'active' : 'disable'; ?>"><?php echo $disabled ? '<i class="toggle on icon"></i> ' . esc_html__( 'Enable', 'mainwp' ) : '<i class="toggle off icon"></i> ' . esc_html__( 'Disable', 'mainwp' ); ?></a> |
| 507 |
<a class="ui extension-privacy-info-link icon basic button" base-slug="<?php echo esc_attr( $item_slug ); ?>" data-tooltip="<?php echo esc_html__( 'Click to see more about extension privacy.', 'mainwp' ); ?>" data-position="top left" data-inverted=""><?php echo $privacy_class; ?> <?php echo esc_html__( 'Privacy', 'mainwp' ); ?></a> <?php // phpcs:ignore WordPress.Security.EscapeOutput ?> |
| 508 |
<?php if ( $disabled ) { ?> |
| 509 |
<a class="ui basic button extension-the-plugin-action" plugin-action="remove"><i class="trash icon"></i> <?php echo esc_html__( 'Delete', 'mainwp' ); ?></a> |
| 510 |
<?php } ?> |
| 511 |
<?php if ( isset( $extension['apiManager'] ) && $extension['apiManager'] ) { ?> |
| 512 |
<a class="ui activate-api-status mainwp-manage-extension-license icon basic button" data-tooltip="<?php echo $active ? esc_html__( 'Extension API license is activated properly. Click here to Deactivate it if needed.', 'mainwp' ) : esc_html__( 'Extension API license is not activated. Click here to activate it.', 'mainwp' ); ?>" api-actived="<?php echo $active ? '1' : '0'; ?>" data-position="top left" data-inverted=""><?php echo $license_class; ?> <?php echo esc_html__( 'License', 'mainwp' ); ?></a> <?php // phpcs:ignore WordPress.Security.EscapeOutput ?> |
| 513 |
<?php } ?> |
| 514 |
</div> |
| 515 |
</div> |
| 516 |
<?php } ?> |
| 517 |
<div class="extra content action-feedback" style="display:none;"> |
| 518 |
<div class="ui mini message"></div> |
| 519 |
</div> |
| 520 |
|
| 521 |
<?php if ( isset( $extension['apiManager'] ) && $extension['apiManager'] ) { ?> |
| 522 |
<?php if ( $active ) { ?> |
| 523 |
<div class="extra content" id="mainwp-extensions-api-form" style="display: none;"> |
| 524 |
<div class="ui form"> |
| 525 |
<div class="field"> |
| 526 |
<div class="ui input fluid"> |
| 527 |
<input type="text" class="extension-api-key" placeholder="<?php esc_attr_e( 'API license key', 'mainwp' ); ?>" value="<?php echo esc_attr( $extension['api_key'] ); ?>"/> |
| 528 |
</div> |
| 529 |
</div> |
| 530 |
<div class="field"> |
| 531 |
<div class="ui checkbox"> |
| 532 |
<input type="checkbox" id="extension-deactivate-cb" class="mainwp-extensions-deactivate-chkbox" <?php echo 'on' === $extension['deactivate_checkbox'] ? 'checked' : ''; ?>> |
| 533 |
<label for="extension-deactivate-cb"><?php esc_html_e( 'Deactivate License Key', 'mainwp' ); ?></label> |
| 534 |
</div> |
| 535 |
</div> |
| 536 |
<input type="button" class="ui basic red fluid button mainwp-extensions-deactivate" value="<?php esc_html_e( 'Deactivate License', 'mainwp' ); ?>"> |
| 537 |
|
| 538 |
</div> |
| 539 |
</div> |
| 540 |
<?php } ?> |
| 541 |
|
| 542 |
<?php if ( isset( $extension['apiManager'] ) && $extension['apiManager'] ) { ?> |
| 543 |
<div class="extra content api-feedback" style="display:none;"> |
| 544 |
<div class="ui mini message"></div> |
| 545 |
</div> |
| 546 |
<?php } ?> |
| 547 |
<?php } ?> |
| 548 |
<?php |
| 549 |
/** |
| 550 |
* Action: mainwp_extension_card_bottom |
| 551 |
* |
| 552 |
* Fires at the Extension card bottom |
| 553 |
* |
| 554 |
* @since 4.1.4.1 |
| 555 |
* |
| 556 |
* @param array $extension Array containing the Extension information. |
| 557 |
*/ |
| 558 |
do_action( 'mainwp_extension_card_bottom', $extension ); |
| 559 |
?> |
| 560 |
</div> |
| 561 |
<?php |
| 562 |
} |
| 563 |
|
| 564 |
/** |
| 565 |
* Method render_inactive_extension_card() |
| 566 |
* |
| 567 |
* Render the MainWP Extension Cards. |
| 568 |
* |
| 569 |
* @param mixed $extension Extention to render. |
| 570 |
* @param mixed $img_url Extension image. |
| 571 |
* @param bool $installed Extension installed. |
| 572 |
*/ |
| 573 |
public static function render_inactive_extension_card( $extension, $img_url, $installed = false ) { |
| 574 |
|
| 575 |
if ( ! isset( $extension['link'] ) && isset( $extension['DocumentationURI'] ) ) { |
| 576 |
$extension['link'] = $extension['DocumentationURI']; |
| 577 |
} |
| 578 |
|
| 579 |
if ( ! isset( $extension['version'] ) ) { |
| 580 |
$extension['version'] = ''; |
| 581 |
} |
| 582 |
?> |
| 583 |
<div class="ui card extension grey mainwp-disabled-extension extension-card-<?php echo esc_attr( $extension['name'] ); ?>" extension-title="<?php echo esc_attr( $extension['name'] ); ?>" base-slug="<?php echo esc_attr( $extension['slug'] ); ?>"> |
| 584 |
<div class="content"> |
| 585 |
<img class="right floated mini ui image" alt="<?php echo esc_attr( MainWP_Extensions_Handler::polish_ext_name( $extension, true ) ); ?>" src="<?php echo esc_html( $img_url ); ?>"> |
| 586 |
<div class="header"> |
| 587 |
<?php echo esc_html( MainWP_Extensions_Handler::polish_ext_name( $extension, true ) ); ?> |
| 588 |
</div> |
| 589 |
|
| 590 |
<?php if ( $installed ) : ?> |
| 591 |
<a href="admin.php?page=Extensions" class="ui black ribbon label"><?php echo esc_html__( 'Activate extension', 'mainwp' ); ?></a> |
| 592 |
<?php else : ?> |
| 593 |
<a href="admin.php?page=Extensions&message=install-ext-<?php echo esc_attr( $extension['slug'] ); ?>" class="ui grey ribbon label"><?php echo esc_html__( 'Install extension', 'mainwp' ); ?></a> |
| 594 |
<?php endif; ?> |
| 595 |
<div class="description"> |
| 596 |
<?php echo esc_html( preg_replace( '/\<cite\>.*\<\/cite\>/', '', $extension['description'] ) ); ?> |
| 597 |
</div> |
| 598 |
</div> |
| 599 |
</div> |
| 600 |
<?php |
| 601 |
} |
| 602 |
|
| 603 |
/** |
| 604 |
* Method render_purchase_notice() |
| 605 |
* |
| 606 |
* Render Purchase Notice. |
| 607 |
*/ |
| 608 |
public static function render_purchase_notice() { |
| 609 |
$is_demo = MainWP_Demo_Handle::is_demo_mode(); |
| 610 |
$is_pro = MainWP_Hooks::is_pro_member(); |
| 611 |
?> |
| 612 |
<div id="mainwp-get-purchased-extensions-modal" class="ui first coupled large modal"> |
| 613 |
<i class="close icon"></i> |
| 614 |
<div class="header"><?php esc_html_e( 'Install Extensions', 'mainwp' ); ?></div> |
| 615 |
<div class="scrolling content"></div> |
| 616 |
<div class="actions"> |
| 617 |
<div class="ui two columns stackable grid"> |
| 618 |
<div class="left aligned column"> |
| 619 |
<?php |
| 620 |
if ( $is_demo ) { |
| 621 |
MainWP_Demo_Handle::get_instance()->render_demo_disable_button( '<input type="button" id="mainwp-extensions-installnow-disabled" class="ui green button disabled" disabled="disabled" value="' . esc_attr__( 'Install Selected Extensions', 'mainwp' ) . '">' ); |
| 622 |
} else { |
| 623 |
?> |
| 624 |
<input type="button" class="ui green button" id="mainwp-extensions-installnow" value="<?php esc_attr_e( 'Install Selected Extensions', 'mainwp' ); ?>"> |
| 625 |
<?php } ?> |
| 626 |
</div> |
| 627 |
<div class="right aligned column"> |
| 628 |
<?php if ( ! $is_pro ) : ?> |
| 629 |
<a href="https://mainwp.com/signup/?utm_campaign=Dashboard%20-%20Upgrade%20to%20Pro&utm_source=Dashboard&utm_medium=install%20modal&utm_term=get%20mainwp%20pro" class="ui green basic button" target="_blank"><?php esc_html_e( 'Get MainWP Pro', 'mainwp' ); ?></a> |
| 630 |
<?php endif; ?> |
| 631 |
</div> |
| 632 |
</div> |
| 633 |
</div> |
| 634 |
</div> |
| 635 |
<?php |
| 636 |
} |
| 637 |
|
| 638 |
/** |
| 639 |
* Render the Sidebar. |
| 640 |
* |
| 641 |
* @param string $mainwp_api_key MainWP.com api key. |
| 642 |
*/ |
| 643 |
public static function render_side_box( $mainwp_api_key ) { |
| 644 |
$is_demo = MainWP_Demo_Handle::is_demo_mode(); |
| 645 |
?> |
| 646 |
<div class="mainwp-search-options ui fluid accordion mainwp-sidebar-accordion"> |
| 647 |
<div class="title active"> |
| 648 |
<i class="dropdown icon"></i> |
| 649 |
<?php esc_html_e( 'Install and Activate Extensions', 'mainwp' ); ?> |
| 650 |
</div> |
| 651 |
<div class="content active"> |
| 652 |
<?php if ( empty( $mainwp_api_key ) ) { ?> |
| 653 |
<div class="ui message info"> |
| 654 |
<?php printf( esc_html__( 'Not sure how to find your MainWP Main API Key? %1$sClick here to get it.%2$s', 'mainwp' ), '<a href="https://mainwp.com/my-account/my-api-keys/" target="_blank">', '</a> <i class="external alternate icon"></i>' ); // NOSONAR - noopener - open safe. ?> |
| 655 |
</div> |
| 656 |
<?php } ?> |
| 657 |
<div class="ui form" id="mainwp-extensions-api-fields"> |
| 658 |
<div class="field"> |
| 659 |
<label for="mainwp_com_api_key"><?php esc_html_e( 'Enter your MainWP Main API Key.', 'mainwp' ); ?></label> |
| 660 |
<div class="ui input fluid"> |
| 661 |
<input type="password" id="mainwp_com_api_key" autocomplete="one-time-code" autocorrect="off" autocapitalize="none" spellcheck="false" placeholder="<?php esc_attr_e( '', 'mainwp' ); ?>" value="<?php echo esc_attr( $mainwp_api_key ); ?>"/> |
| 662 |
</div> |
| 663 |
</div> |
| 664 |
<div class="field"> |
| 665 |
<div class="ui checkbox"> |
| 666 |
<input type="checkbox" <?php echo '' !== $mainwp_api_key ? 'checked="checked"' : ''; ?> name="extensions_api_savemylogin_chk" id="extensions_api_savemylogin_chk"> |
| 667 |
<label for="extensions_api_savemylogin_chk"><small><?php esc_html_e( 'Remember MainWP Main API Key', 'mainwp' ); ?></small></label> |
| 668 |
</div> |
| 669 |
</div> |
| 670 |
</div> |
| 671 |
<div class="ui compact hidden divider"></div> |
| 672 |
|
| 673 |
<input type="button" class="ui fluid button" id="mainwp-extensions-savelogin" value="<?php esc_attr_e( 'Validate my MainWP Main API Key', 'mainwp' ); ?>"> |
| 674 |
<?php if ( ! $is_demo ) { ?> |
| 675 |
<div class="ui divider"></div> |
| 676 |
<input type="button" class="ui fluid basic green button" id="mainwp-extensions-bulkinstall" value="<?php esc_attr_e( 'Install Extensions', 'mainwp' ); ?>"> |
| 677 |
<br/> |
| 678 |
<input type="button" class="ui fluid green button" id="mainwp-extensions-grabkeys" value="<?php esc_attr_e( 'Activate Extensions', 'mainwp' ); ?>"> |
| 679 |
<?php } ?> |
| 680 |
</div> |
| 681 |
</div> |
| 682 |
<?php |
| 683 |
$install_ext_slug = ''; |
| 684 |
if ( isset( $_GET['message'] ) && 0 === strpos( wp_unslash( $_GET['message'] ), 'install-ext-' ) ) { //phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 685 |
$install_ext_slug = str_replace( 'install-ext-', '', wp_unslash( $_GET['message'] ) ); //phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized |
| 686 |
?> |
| 687 |
<input type="hidden" id="extension_install_ext_slug" value="<?php echo esc_attr( $install_ext_slug ); ?>"> |
| 688 |
<?php |
| 689 |
} |
| 690 |
?> |
| 691 |
<script type="text/javascript"> |
| 692 |
jQuery( document ).ready( function ($) { |
| 693 |
<?php |
| 694 |
if ( ! empty( $install_ext_slug ) ) { |
| 695 |
?> |
| 696 |
$('#mainwp-extensions-bulkinstall').trigger('click'); |
| 697 |
<?php |
| 698 |
} |
| 699 |
?> |
| 700 |
}); |
| 701 |
</script> |
| 702 |
<?php |
| 703 |
} |
| 704 |
|
| 705 |
/** |
| 706 |
* Metod get_extension_groups() |
| 707 |
* |
| 708 |
* Grab current MainWP Extension Groups. |
| 709 |
* |
| 710 |
* @return array $groups |
| 711 |
*/ |
| 712 |
public static function get_extension_groups() { |
| 713 |
return array( |
| 714 |
'admin' => esc_html__( 'Administrative', 'mainwp' ), |
| 715 |
'agency' => esc_html__( 'Agency', 'mainwp' ), |
| 716 |
'backup' => esc_html__( 'Backups', 'mainwp' ), |
| 717 |
'client' => esc_html__( 'Client', 'mainwp' ), |
| 718 |
'content' => esc_html__( 'Posts/Pages', 'mainwp' ), |
| 719 |
'development' => esc_html__( 'Development', 'mainwp' ), |
| 720 |
'monitoring' => esc_html__( 'Monitoring', 'mainwp' ), |
| 721 |
'performance' => esc_html__( 'Performance', 'mainwp' ), |
| 722 |
'security' => esc_html__( 'Security', 'mainwp' ), |
| 723 |
'visitor' => esc_html__( 'Analytics', 'mainwp' ), |
| 724 |
'updates' => esc_html__( 'Updates', 'mainwp' ), |
| 725 |
); |
| 726 |
} |
| 727 |
|
| 728 |
/** |
| 729 |
* Method get_available_extensions() |
| 730 |
* |
| 731 |
* Static Arrays of all Available Extensions. |
| 732 |
* |
| 733 |
* @param mixed $types Extensions type. Default: array( 'free', 'pro' ). |
| 734 |
* @param array $ext_grouped Extensions grouped. Default: array(). |
| 735 |
* |
| 736 |
* @devtodo Move to MainWP Server via an XML file. |
| 737 |
*/ |
| 738 |
public static function get_available_extensions( $types = array( 'free', 'pro' ), $ext_grouped = array() ) { //phpcs:ignore -- NOSONAR - complex. |
| 739 |
|
| 740 |
$folder_url = MAINWP_PLUGIN_URL . 'assets/images/extensions/'; |
| 741 |
$all_exts = array( |
| 742 |
'advanced-uptime-monitor-extension' => |
| 743 |
array( |
| 744 |
'type' => 'free', |
| 745 |
'slug' => 'advanced-uptime-monitor-extension', |
| 746 |
'title' => 'MainWP Advanced Uptime Monitor', |
| 747 |
'desc' => 'MainWP Extension for real-time up time monitoring.', |
| 748 |
'link' => 'https://mainwp.com/extension/advanced-uptime-monitor/', |
| 749 |
'img' => $folder_url . 'advanced-uptime-monitor.png', |
| 750 |
'product_id' => 'Advanced Uptime Monitor Extension', |
| 751 |
'product_item_id' => 0, |
| 752 |
'catalog_id' => '218', |
| 753 |
'group' => array( 'monitoring' ), |
| 754 |
'privacy' => 1, // 0 -standalone, 1 - API integration, 2 - 3rd party plugin integration |
| 755 |
'integration' => 'Uptime Robot API', |
| 756 |
'integration_url' => 'https://uptimerobot.com/', |
| 757 |
'integration_owner' => 'Uptime Robot Service Provider Ltd.', |
| 758 |
'integration_owner_pp' => 'https://uptimerobot.com/privacy/', |
| 759 |
'integration_1' => 'Better Uptime API', |
| 760 |
'integration_url_1' => 'https://betteruptime.com/', |
| 761 |
'integration_owner_1' => 'Better Stack, Inc.', |
| 762 |
'integration_owner_pp_1' => 'https://betterstack.com/privacy', |
| 763 |
'integration_2' => 'NodePing API', |
| 764 |
'integration_url_2' => 'https://nodeping.com/', |
| 765 |
'integration_owner_2' => 'NodePing LLC', |
| 766 |
'integration_owner_pp_2' => 'https://nodeping.com/privacy.html', |
| 767 |
'integration_3' => 'Site24x7 API', |
| 768 |
'integration_url_3' => 'https://www.site24x7.com/', |
| 769 |
'integration_owner_3' => 'Zoho Corporation Pvt. Ltd.', |
| 770 |
'integration_owner_pp_3' => 'https://www.zoho.com/privacy.html', |
| 771 |
), |
| 772 |
'mainwp-article-uploader-extension' => |
| 773 |
array( |
| 774 |
'type' => 'pro', |
| 775 |
'slug' => 'mainwp-article-uploader-extension', |
| 776 |
'title' => 'MainWP Article Uploader Extension', |
| 777 |
'desc' => 'MainWP Article Uploader Extension allows you to bulk upload articles to your dashboard and publish to child sites.', |
| 778 |
'link' => 'https://mainwp.com/extension/article-uploader/', |
| 779 |
'img' => $folder_url . 'article-uploader.png', |
| 780 |
'product_id' => 'MainWP Article Uploader Extension', |
| 781 |
'product_item_id' => 0, |
| 782 |
'catalog_id' => '15340', |
| 783 |
'group' => array( 'content' ), |
| 784 |
'privacy' => 0, |
| 785 |
'integration' => '', |
| 786 |
'integration_url' => '', |
| 787 |
'integration_owner' => '', |
| 788 |
'integration_owner_pp' => '', |
| 789 |
), |
| 790 |
'mainwp-atarim-extension' => |
| 791 |
array( |
| 792 |
'type' => 'pro', |
| 793 |
'slug' => 'mainwp-atarim-extension', |
| 794 |
'title' => 'MainWP Atarim Extension', |
| 795 |
'desc' => 'MainWP Atarim Extension allows you get your Atarim info about managed sites to your MainWP Dashboard.', |
| 796 |
'link' => 'https://mainwp.com/extension/atarim/', |
| 797 |
'img' => $folder_url . 'atarim.png', |
| 798 |
'product_id' => 'MainWP Atarim Extension', |
| 799 |
'product_item_id' => 0, |
| 800 |
'catalog_id' => '1251161', |
| 801 |
'group' => array( 'development' ), |
| 802 |
'privacy' => 1, |
| 803 |
'integration' => 'Atarim API', |
| 804 |
'integration_url' => 'https://atarim.io/', |
| 805 |
'integration_owner' => 'WP FeedBack LTD', |
| 806 |
'integration_owner_pp' => 'https://atarim.io/privacy-policy/', |
| 807 |
), |
| 808 |
'mainwp-backwpup-extension' => |
| 809 |
array( |
| 810 |
'type' => 'free', |
| 811 |
'slug' => 'mainwp-backwpup-extension', |
| 812 |
'title' => 'MainWP BackWPup Extension', |
| 813 |
'desc' => 'MainWP BackWPup Extension combines the power of your MainWP Dashboard with the popular WordPress BackWPup Plugin. It allows you to schedule backups on your child sites.', |
| 814 |
'link' => 'https://mainwp.com/extension/backwpup/', |
| 815 |
'img' => $folder_url . 'backwpup.png', |
| 816 |
'product_id' => 'MainWP BackWPup Extension', |
| 817 |
'product_item_id' => 0, |
| 818 |
'catalog_id' => '995008', |
| 819 |
'group' => array( 'backup' ), |
| 820 |
'privacy' => 2, |
| 821 |
'integration' => 'BackWPup WordPress Backup Plugin', |
| 822 |
'integration_url' => 'https://backwpup.com/', |
| 823 |
'integration_owner' => 'Inpsyde GmbH', |
| 824 |
'integration_owner_pp' => 'https://backwpup.com/privacy/', |
| 825 |
), |
| 826 |
'boilerplate-extension' => |
| 827 |
array( |
| 828 |
'type' => 'pro', |
| 829 |
'slug' => 'boilerplate-extension', |
| 830 |
'title' => 'MainWP Boilerplate Extension', |
| 831 |
'desc' => 'MainWP Boilerplate extension allows you to create, edit and share repetitive pages across your network of child sites. The available placeholders allow these pages to be customized for each site without needing to be rewritten. The Boilerplate extension is the perfect solution for commonly repeated pages such as your "Privacy Policy", "About Us", "Terms of Use", "Support Policy", or any other page with standard text that needs to be distributed across your network.', |
| 832 |
'link' => 'https://mainwp.com/extension/boilerplate/', |
| 833 |
'img' => $folder_url . 'boilerplate.png', |
| 834 |
'product_id' => 'Boilerplate Extension', |
| 835 |
'product_item_id' => 0, |
| 836 |
'catalog_id' => '1188', |
| 837 |
'group' => array( 'content' ), |
| 838 |
'privacy' => 0, |
| 839 |
'integration' => '', |
| 840 |
'integration_url' => '', |
| 841 |
'integration_owner' => '', |
| 842 |
'integration_owner_pp' => '', |
| 843 |
), |
| 844 |
'mainwp-buddy-extension' => |
| 845 |
array( |
| 846 |
'type' => 'free', |
| 847 |
'slug' => 'mainwp-buddy-extension', |
| 848 |
'title' => 'MainWP Buddy Extension', |
| 849 |
'desc' => 'With the MainWP Buddy Extension, you can control the BackupBuddy Plugin settings for all your child sites directly from your MainWP Dashboard. This includes giving you the ability to create your child site backups and even set Backup schedules directly from your MainWP Dashboard.', |
| 850 |
'link' => 'https://mainwp.com/extension/mainwpbuddy/', |
| 851 |
'img' => $folder_url . 'mainwp-buddy.png', |
| 852 |
'product_id' => 'MainWP Buddy Extension', |
| 853 |
'product_item_id' => 0, |
| 854 |
'catalog_id' => '1006044', |
| 855 |
'group' => array( 'backup' ), |
| 856 |
'privacy' => 2, |
| 857 |
'integration' => 'BackupBuddy Plugin', |
| 858 |
'integration_url' => 'https://ithemes.com/', |
| 859 |
'integration_owner' => 'Liquid Web, LLC', |
| 860 |
'integration_owner_pp' => 'https://www.liquidweb.com/about-us/policies/privacy-policy/', |
| 861 |
), |
| 862 |
'mainwp-bulk-settings-manager' => |
| 863 |
array( |
| 864 |
'type' => 'pro', |
| 865 |
'slug' => 'mainwp-bulk-settings-manager', |
| 866 |
'title' => 'MainWP Bulk Settings Manager', |
| 867 |
'desc' => 'The Bulk Settings Manager Extension unlocks the world of WordPress directly from your MainWP Dashboard. With Bulk Settings Manager you can adjust your Child site settings for the WordPress Core and almost any WordPress Plugin or Theme.', |
| 868 |
'link' => 'https://mainwp.com/extension/bulk-settings-manager/', |
| 869 |
'img' => $folder_url . 'bulk-settings-manager.png', |
| 870 |
'product_id' => 'MainWP Bulk Settings Manager', |
| 871 |
'product_item_id' => 0, |
| 872 |
'catalog_id' => '347704', |
| 873 |
'group' => array( 'development' ), |
| 874 |
'privacy' => 0, |
| 875 |
'integration' => '', |
| 876 |
'integration_url' => '', |
| 877 |
'integration_owner' => '', |
| 878 |
'integration_owner_pp' => '', |
| 879 |
), |
| 880 |
'mainwp-cache-control-extension' => |
| 881 |
array( |
| 882 |
'type' => 'pro', |
| 883 |
'slug' => 'mainwp-cache-control-extension', |
| 884 |
'title' => 'MainWP Cache Control Extension', |
| 885 |
'desc' => 'MainWP Cache Control allows you to automatically purge the Cache on your child sites after performing an update of WP Core, Theme, or a Plugin through the MainWP Dashboard.', |
| 886 |
'link' => 'https://mainwp.com/extension/cache-control/', |
| 887 |
'img' => $folder_url . 'cache-control.png', |
| 888 |
'product_id' => 'MainWP Cache Control Extension', |
| 889 |
'product_item_id' => 0, |
| 890 |
'catalog_id' => '1263050', |
| 891 |
'group' => array( 'performance' ), |
| 892 |
'privacy' => 1, |
| 893 |
'integration' => 'Cloudflare API', |
| 894 |
'integration_url' => 'https://www.cloudflare.com/', |
| 895 |
'integration_owner' => 'Cloudflare, Inc.', |
| 896 |
'integration_owner_pp' => 'https://www.cloudflare.com/privacypolicy/', |
| 897 |
'release_date' => 1676847600, |
| 898 |
), |
| 899 |
'mainwp-clone-extension' => |
| 900 |
array( |
| 901 |
'type' => 'pro', |
| 902 |
'slug' => 'mainwp-clone-extension', |
| 903 |
'title' => 'MainWP Clone Extension', |
| 904 |
'desc' => 'MainWP Clone Extension is an extension for the MainWP plugin that enables you to clone your child sites with no technical knowledge required.', |
| 905 |
'link' => 'https://mainwp.com/extension/clone/', |
| 906 |
'img' => $folder_url . 'clone.png', |
| 907 |
'product_id' => 'MainWP Clone Extension', |
| 908 |
'product_item_id' => 0, |
| 909 |
'catalog_id' => '1555', |
| 910 |
'group' => array( 'development' ), |
| 911 |
'privacy' => 0, |
| 912 |
'integration' => '', |
| 913 |
'integration_url' => '', |
| 914 |
'integration_owner' => '', |
| 915 |
'integration_owner_pp' => '', |
| 916 |
), |
| 917 |
'mainwp-code-snippets-extension' => |
| 918 |
array( |
| 919 |
'type' => 'pro', |
| 920 |
'slug' => 'mainwp-code-snippets-extension', |
| 921 |
'title' => 'MainWP Code Snippets Extension', |
| 922 |
'desc' => 'The MainWP Code Snippets Extension is a powerful PHP platform that enables you to execute php code and scripts on your child sites and view the output on your Dashboard. Requires the MainWP Dashboard plugin.', |
| 923 |
'link' => 'https://mainwp.com/extension/code-snippets/', |
| 924 |
'img' => $folder_url . 'code-snippets.png', |
| 925 |
'product_id' => 'MainWP Code Snippets Extension', |
| 926 |
'product_item_id' => 0, |
| 927 |
'catalog_id' => '11196', |
| 928 |
'group' => array( 'development' ), |
| 929 |
'privacy' => 0, |
| 930 |
'integration' => '', |
| 931 |
'integration_url' => '', |
| 932 |
'integration_owner' => '', |
| 933 |
'integration_owner_pp' => '', |
| 934 |
), |
| 935 |
'mainwp-comments-extension' => |
| 936 |
array( |
| 937 |
'type' => 'pro', |
| 938 |
'slug' => 'mainwp-comments-extension', |
| 939 |
'title' => 'MainWP Comments Extension', |
| 940 |
'desc' => 'MainWP Comments Extension is an extension for the MainWP plugin that enables you to manage comments on your child sites.', |
| 941 |
'link' => 'https://mainwp.com/extension/comments/', |
| 942 |
'img' => $folder_url . 'comments.png', |
| 943 |
'product_id' => 'MainWP Comments Extension', |
| 944 |
'product_item_id' => 0, |
| 945 |
'catalog_id' => '1551', |
| 946 |
'group' => array( 'admin' ), |
| 947 |
'privacy' => 0, |
| 948 |
'integration' => '', |
| 949 |
'integration_url' => '', |
| 950 |
'integration_owner' => '', |
| 951 |
'integration_owner_pp' => '', |
| 952 |
), |
| 953 |
'mainwp-custom-dashboard-extension' => |
| 954 |
array( |
| 955 |
'type' => 'free', |
| 956 |
'slug' => 'mainwp-custom-dashboard-extension', |
| 957 |
'title' => 'MainWP Custom Dashboard Extension', |
| 958 |
'desc' => 'The purpose of this plugin is to contain your customisation snippets for your MainWP Dashboard.', |
| 959 |
'link' => 'https://mainwp.com/extension/mainwp-custom-dashboard-extension/', |
| 960 |
'img' => $folder_url . 'custom-dashboard.png', |
| 961 |
'product_id' => 'MainWP Custom Dashboard Extension', |
| 962 |
'product_item_id' => 0, |
| 963 |
'catalog_id' => '1080528', |
| 964 |
'group' => array( 'development' ), |
| 965 |
'privacy' => 0, |
| 966 |
'integration' => '', |
| 967 |
'integration_url' => '', |
| 968 |
'integration_owner' => '', |
| 969 |
'integration_owner_pp' => '', |
| 970 |
), |
| 971 |
'mainwp-custom-post-types' => |
| 972 |
array( |
| 973 |
'type' => 'pro', |
| 974 |
'slug' => 'mainwp-custom-post-types', |
| 975 |
'title' => 'MainWP Custom Post Type', |
| 976 |
'desc' => 'Custom Post Types Extension is an extension for the MainWP Plugin that allows you to manage almost any custom post type on your child sites and that includes Publishing, Editing, and Deleting custom post type content.', |
| 977 |
'link' => 'https://mainwp.com/extension/custom-post-types/', |
| 978 |
'img' => $folder_url . 'custom-post.png', |
| 979 |
'product_id' => 'MainWP Custom Post Types', |
| 980 |
'product_item_id' => 0, |
| 981 |
'catalog_id' => '1002564', |
| 982 |
'group' => array( 'development' ), |
| 983 |
'privacy' => 0, |
| 984 |
'integration' => '', |
| 985 |
'integration_url' => '', |
| 986 |
'integration_owner' => '', |
| 987 |
'integration_owner_pp' => '', |
| 988 |
), |
| 989 |
'mainwp-clean-and-lock-extension' => |
| 990 |
array( |
| 991 |
'type' => 'free', |
| 992 |
'slug' => 'mainwp-clean-and-lock-extension', |
| 993 |
'title' => 'MainWP Dashboard Lock Extension', |
| 994 |
'desc' => 'MainWP Dashboard Lock Extension allows you to limit access to your wp-admin and even redirect non-wp-admin pages to a different site making your MainWP Dashboard virtually invisible.', |
| 995 |
'link' => 'https://mainwp.com/extension/clean-lock/', |
| 996 |
'img' => $folder_url . 'clean-and-lock.png', |
| 997 |
'product_id' => 'MainWP Clean and Lock Extension', |
| 998 |
'product_item_id' => 0, |
| 999 |
'catalog_id' => '12907', |
| 1000 |
'group' => array( 'security' ), |
| 1001 |
'privacy' => 0, |
| 1002 |
'integration' => '', |
| 1003 |
'integration_url' => '', |
| 1004 |
'integration_owner' => '', |
| 1005 |
'integration_owner_pp' => '', |
| 1006 |
), |
| 1007 |
'mainwp-database-updater-extension' => |
| 1008 |
array( |
| 1009 |
'type' => 'pro', |
| 1010 |
'slug' => 'mainwp-database-updater-extension', |
| 1011 |
'title' => 'MainWP Database Updater Extension', |
| 1012 |
'desc' => 'MainWP Database Updater Extension detects available Database updates for the WooCommerce and Elementor plugins, and allows you to process them.', |
| 1013 |
'link' => 'https://mainwp.com/extension/database-updater/', |
| 1014 |
'img' => $folder_url . 'database-updater.png', |
| 1015 |
'product_id' => 'MainWP Database Updater Extension', |
| 1016 |
'product_item_id' => 0, |
| 1017 |
'catalog_id' => '1263539', |
| 1018 |
'group' => array( 'updates' ), |
| 1019 |
'privacy' => 0, |
| 1020 |
'integration' => '', |
| 1021 |
'integration_url' => '', |
| 1022 |
'integration_owner' => '', |
| 1023 |
'integration_owner_pp' => '', |
| 1024 |
'release_date' => 1677106800, |
| 1025 |
), |
| 1026 |
'mainwp-domain-monitor-extension' => |
| 1027 |
array( |
| 1028 |
'type' => 'pro', |
| 1029 |
'slug' => 'mainwp-domain-monitor-extension', |
| 1030 |
'title' => 'MainWP Domain Monitor Extension', |
| 1031 |
'desc' => 'MainWP Domain Monitor Extension lets you keep a watchful eye on your domains. It alerts you via email when monitored domains are nearing expiration.', |
| 1032 |
'link' => 'https://mainwp.com/extension/domain-monitor/', |
| 1033 |
'img' => $folder_url . 'domain-monitor.png', |
| 1034 |
'product_id' => 'MainWP Domain Monitor Extension', |
| 1035 |
'product_item_id' => 0, |
| 1036 |
'catalog_id' => '1240624', |
| 1037 |
'group' => array( 'monitoring' ), |
| 1038 |
'privacy' => 0, |
| 1039 |
'integration' => '', |
| 1040 |
'integration_url' => '', |
| 1041 |
'integration_owner' => '', |
| 1042 |
'integration_owner_pp' => '', |
| 1043 |
), |
| 1044 |
'mainwp-favorites-extension' => |
| 1045 |
array( |
| 1046 |
'type' => 'pro', |
| 1047 |
'slug' => 'mainwp-favorites-extension', |
| 1048 |
'title' => 'MainWP Favorites Extension', |
| 1049 |
'desc' => 'MainWP Favorites is an extension for the MainWP plugin that allows you to store your favorite plugins and themes, and install them directly to child sites from the dashboard repository.', |
| 1050 |
'link' => 'https://mainwp.com/extension/favorites/', |
| 1051 |
'img' => $folder_url . 'favorites.png', |
| 1052 |
'product_id' => 'MainWP Favorites Extension', |
| 1053 |
'product_item_id' => 0, |
| 1054 |
'catalog_id' => '1379', |
| 1055 |
'group' => array( 'development' ), |
| 1056 |
'privacy' => 0, |
| 1057 |
'integration' => '', |
| 1058 |
'integration_url' => '', |
| 1059 |
'integration_owner' => '', |
| 1060 |
'integration_owner_pp' => '', |
| 1061 |
), |
| 1062 |
'mainwp-fathom-extension' => |
| 1063 |
array( |
| 1064 |
'type' => 'pro', |
| 1065 |
'slug' => 'mainwp-fathom-extension', |
| 1066 |
'title' => 'MainWP Fathom Extension', |
| 1067 |
'desc' => 'MainWP Fathom Extension is an extension for the MainWP plugin that enables you to monitor detailed statistics about your child sites traffic. It integrates seamlessly with your Fathom account.', |
| 1068 |
'link' => 'https://mainwp.com/extension/fathom/', |
| 1069 |
'img' => $folder_url . 'fathom.png', |
| 1070 |
'product_id' => 'MainWP Fathom Extension', |
| 1071 |
'product_item_id' => 0, |
| 1072 |
'catalog_id' => '1274704', |
| 1073 |
'group' => array( 'visitor' ), |
| 1074 |
'privacy' => 1, |
| 1075 |
'integration' => 'Fathom Analytics API', |
| 1076 |
'integration_url' => 'https://usefathom.com/', |
| 1077 |
'integration_owner' => 'Conva Ventures Inc.', |
| 1078 |
'integration_owner_pp' => 'https://usefathom.com/privacy', |
| 1079 |
), |
| 1080 |
'mainwp-file-uploader-extension' => |
| 1081 |
array( |
| 1082 |
'type' => 'pro', |
| 1083 |
'slug' => 'mainwp-file-uploader-extension', |
| 1084 |
'title' => 'MainWP File Uploader Extension', |
| 1085 |
'desc' => 'MainWP File Uploader Extension gives you an simple way to upload files to your child sites! Requires the MainWP Dashboard plugin.', |
| 1086 |
'link' => 'https://mainwp.com/extension/file-uploader/', |
| 1087 |
'img' => $folder_url . 'file-uploader.png', |
| 1088 |
'product_id' => 'MainWP File Uploader Extension', |
| 1089 |
'product_item_id' => 0, |
| 1090 |
'catalog_id' => '11637', |
| 1091 |
'group' => array( 'development' ), |
| 1092 |
'privacy' => 0, |
| 1093 |
'integration' => '', |
| 1094 |
'integration_url' => '', |
| 1095 |
'integration_owner' => '', |
| 1096 |
'integration_owner_pp' => '', |
| 1097 |
), |
| 1098 |
'mainwp-google-analytics-extension' => |
| 1099 |
array( |
| 1100 |
'type' => 'pro', |
| 1101 |
'slug' => 'mainwp-google-analytics-extension', |
| 1102 |
'title' => 'MainWP Google Analytics Extension', |
| 1103 |
'desc' => 'MainWP Google Analytics Extension is an extension for the MainWP plugin that enables you to monitor detailed statistics about your child sites traffic. It integrates seamlessly with your Google Analytics account.', |
| 1104 |
'link' => 'https://mainwp.com/extension/google-analytics/', |
| 1105 |
'img' => $folder_url . 'google-analytics.png', |
| 1106 |
'product_id' => 'MainWP Google Analytics Extension', |
| 1107 |
'product_item_id' => 0, |
| 1108 |
'catalog_id' => '1554', |
| 1109 |
'group' => array( 'visitor' ), |
| 1110 |
'privacy' => 1, |
| 1111 |
'integration' => 'Google Analytics API', |
| 1112 |
'integration_url' => 'https://analytics.google.com', |
| 1113 |
'integration_owner' => 'Google LLC', |
| 1114 |
'integration_owner_pp' => 'https://policies.google.com/privacy', |
| 1115 |
), |
| 1116 |
'mainwp-jetpack-protect-extension' => |
| 1117 |
array( |
| 1118 |
'type' => 'free', |
| 1119 |
'slug' => 'mainwp-jetpack-protect-extension', |
| 1120 |
'title' => 'MainWP Jetpack Protect Extension', |
| 1121 |
'desc' => 'MainWP Jetpack Protect Extension uses the Jetpack Protect plugin to bring you information about vulnerable plugins and themes on your Child Sites so you can act accordingly.', |
| 1122 |
'link' => 'https://mainwp.com/extension/jetpack-protect/', |
| 1123 |
'img' => $folder_url . 'jetpack-protect.png', |
| 1124 |
'product_id' => 'MainWP Jetpack Protect Extension', |
| 1125 |
'product_item_id' => 0, |
| 1126 |
'catalog_id' => '1263547', |
| 1127 |
'group' => array( 'security' ), |
| 1128 |
'privacy' => 2, |
| 1129 |
'integration' => 'Jetpack Protect', |
| 1130 |
'integration_url' => 'https://jetpack.com/', |
| 1131 |
'integration_owner' => 'Automattic Inc.', |
| 1132 |
'integration_owner_pp' => 'https://automattic.com/privacy/', |
| 1133 |
'release_date' => 1677020400, |
| 1134 |
), |
| 1135 |
'mainwp-jetpack-scan-extension' => |
| 1136 |
array( |
| 1137 |
'type' => 'pro', |
| 1138 |
'slug' => 'mainwp-jetpack-scan-extension', |
| 1139 |
'title' => 'MainWP Jetpack Scan Extension', |
| 1140 |
'desc' => 'MainWP Jetpack Scan Extension uses the Jetpack Scan API to bring you information about vulnerable plugins and themes on your Child Sites so you can act accordingly.', |
| 1141 |
'link' => 'https://mainwp.com/extension/jetpack-scan/', |
| 1142 |
'img' => $folder_url . 'jetpack-scan.png', |
| 1143 |
'product_id' => 'MainWP Jetpack Scan Extension', |
| 1144 |
'product_item_id' => 0, |
| 1145 |
'catalog_id' => '1263551', |
| 1146 |
'group' => array( 'security' ), |
| 1147 |
'privacy' => 1, |
| 1148 |
'integration' => 'Jetpack Scan API', |
| 1149 |
'integration_url' => 'https://jetpack.com/', |
| 1150 |
'integration_owner' => 'Automattic Inc.', |
| 1151 |
'integration_owner_pp' => 'https://automattic.com/privacy/', |
| 1152 |
'release_date' => 1677020400, |
| 1153 |
), |
| 1154 |
'mainwp-lighthouse-extension' => |
| 1155 |
array( |
| 1156 |
'type' => 'pro', |
| 1157 |
'slug' => 'mainwp-lighthouse-extension', |
| 1158 |
'title' => 'MainWP Lighthouse Extension', |
| 1159 |
'desc' => 'MainWP Lighthouse Extension is used for measuring the quality of your websites. It uses the Google PageSpeed Insights API to audit performance, accessibility and search engine optimization of your WordPress sites.', |
| 1160 |
'link' => 'https://mainwp.com/extension/lighthouse/', |
| 1161 |
'img' => $folder_url . 'lighthouse.png', |
| 1162 |
'product_id' => 'MainWP Lighthouse Extension', |
| 1163 |
'product_item_id' => 0, |
| 1164 |
'catalog_id' => '1233934', |
| 1165 |
'group' => array( 'monitoring' ), |
| 1166 |
'privacy' => 1, |
| 1167 |
'integration' => 'Google PageSpeed Insights API', |
| 1168 |
'integration_url' => 'https://pagespeed.web.dev/', |
| 1169 |
'integration_owner' => 'Google LLC', |
| 1170 |
'integration_owner_pp' => 'https://policies.google.com/privacy', |
| 1171 |
), |
| 1172 |
'mainwp-maintenance-extension' => |
| 1173 |
array( |
| 1174 |
'type' => 'pro', |
| 1175 |
'slug' => 'mainwp-maintenance-extension', |
| 1176 |
'title' => 'MainWP Maintenance Extension', |
| 1177 |
'desc' => 'MainWP Maintenance Extension is MainWP Dashboard extension that clears unwanted entries from child sites in your network. You can delete post revisions, delete auto draft pots, delete trash posts, delete spam, pending and trash comments, delete unused tags and categories and optimize database tables on selected child sites.', |
| 1178 |
'link' => 'https://mainwp.com/extension/maintenance/', |
| 1179 |
'img' => $folder_url . 'maintenance.png', |
| 1180 |
'product_id' => 'MainWP Maintenance Extension', |
| 1181 |
'product_item_id' => 0, |
| 1182 |
'catalog_id' => '1141', |
| 1183 |
'group' => array( 'performance' ), |
| 1184 |
'privacy' => 0, |
| 1185 |
'integration' => '', |
| 1186 |
'integration_url' => '', |
| 1187 |
'integration_owner' => '', |
| 1188 |
'integration_owner_pp' => '', |
| 1189 |
), |
| 1190 |
'mainwp-piwik-extension' => |
| 1191 |
array( |
| 1192 |
'type' => 'pro', |
| 1193 |
'slug' => 'mainwp-piwik-extension', |
| 1194 |
'title' => 'MainWP Piwik Extension', |
| 1195 |
'desc' => 'MainWP Piwik Extension is an extension for the MainWP plugin that enables you to monitor detailed statistics about your child sites traffic. It integrates seamlessly with your Piwik account.', |
| 1196 |
'link' => 'https://mainwp.com/extension/piwik/', |
| 1197 |
'img' => $folder_url . 'piwik.png', |
| 1198 |
'product_id' => 'MainWP Piwik Extension', |
| 1199 |
'product_item_id' => 0, |
| 1200 |
'catalog_id' => '10523', |
| 1201 |
'group' => array( 'visitor' ), |
| 1202 |
'privacy' => 1, |
| 1203 |
'integration' => 'Matomo API', |
| 1204 |
'integration_url' => 'https://matomo.org/', |
| 1205 |
'integration_owner' => 'InnoCraft', |
| 1206 |
'integration_owner_pp' => 'https://matomo.org/privacy-policy/', |
| 1207 |
), |
| 1208 |
'mainwp-post-dripper-extension' => |
| 1209 |
array( |
| 1210 |
'type' => 'pro', |
| 1211 |
'slug' => 'mainwp-post-dripper-extension', |
| 1212 |
'title' => 'MainWP Post Dripper Extension', |
| 1213 |
'desc' => 'MainWP Post Dripper Extension allows you to deliver posts or pages to your network of sites over a pre-scheduled period of time. Requires MainWP Dashboard plugin.', |
| 1214 |
'link' => 'https://mainwp.com/extension/post-dripper/', |
| 1215 |
'img' => $folder_url . 'post-dripper.png', |
| 1216 |
'product_id' => 'MainWP Post Dripper Extension', |
| 1217 |
'product_item_id' => 0, |
| 1218 |
'catalog_id' => '11756', |
| 1219 |
'group' => array( 'content' ), |
| 1220 |
'privacy' => 0, |
| 1221 |
'integration' => '', |
| 1222 |
'integration_url' => '', |
| 1223 |
'integration_owner' => '', |
| 1224 |
'integration_owner_pp' => '', |
| 1225 |
), |
| 1226 |
'mainwp-post-plus-extension' => |
| 1227 |
array( |
| 1228 |
'type' => 'pro', |
| 1229 |
'slug' => 'mainwp-post-plus-extension', |
| 1230 |
'title' => 'MainWP Post Plus Extension', |
| 1231 |
'desc' => 'Enhance your MainWP publishing experience. The MainWP Post Plus Extension allows you to save work in progress as Post and Page drafts. That is not all, it allows you to use random authors, dates and categories for your posts and pages. Requires the MainWP Dashboard plugin.', |
| 1232 |
'link' => 'https://mainwp.com/extension/post-plus/', |
| 1233 |
'img' => $folder_url . 'post-plus.png', |
| 1234 |
'product_id' => 'MainWP Post Plus Extension', |
| 1235 |
'product_item_id' => 0, |
| 1236 |
'catalog_id' => '12458', |
| 1237 |
'group' => array( 'content' ), |
| 1238 |
'privacy' => 0, |
| 1239 |
'integration' => '', |
| 1240 |
'integration_url' => '', |
| 1241 |
'integration_owner' => '', |
| 1242 |
'integration_owner_pp' => '', |
| 1243 |
), |
| 1244 |
'mainwp-pressable-extension' => |
| 1245 |
array( |
| 1246 |
'type' => 'pro', |
| 1247 |
'slug' => 'mainwp-pressable-extension', |
| 1248 |
'title' => 'MainWP Pressable Extension', |
| 1249 |
'desc' => 'MainWP Pressable Extension simplifies your Pressable hosting management experience, such as creating, disabling, and deleting websites, enabling/disabling CDN, managing backups, and more without the need to log in to your Pressable account.', |
| 1250 |
'link' => 'https://mainwp.com/extension/pressable/', |
| 1251 |
'img' => $folder_url . 'pressable.png', |
| 1252 |
'product_id' => 'MainWP Pressable Extension', |
| 1253 |
'product_item_id' => 0, |
| 1254 |
'catalog_id' => '1271427', |
| 1255 |
'group' => array( 'development' ), |
| 1256 |
'privacy' => 1, |
| 1257 |
'integration' => 'Pressable API', |
| 1258 |
'integration_url' => 'https://pressable.com/', |
| 1259 |
'integration_owner' => 'Pressable, Inc.', |
| 1260 |
'integration_owner_pp' => 'https://automattic.com/privacy/', |
| 1261 |
), |
| 1262 |
'mainwp-pro-reports-extension' => |
| 1263 |
array( |
| 1264 |
'type' => 'pro', |
| 1265 |
'slug' => 'mainwp-pro-reports-extension', |
| 1266 |
'title' => 'MainWP Pro Reports Extension', |
| 1267 |
'desc' => 'The MainWP Pro Reports extension is a fully customizable reporting engine that allows you to create the type of report you are proud to send to your clients.', |
| 1268 |
'link' => 'https://mainwp.com/extension/pro-reports/', |
| 1269 |
'img' => $folder_url . 'pro-reports.png', |
| 1270 |
'product_id' => 'MainWP Pro Reports Extension', |
| 1271 |
'product_item_id' => 0, |
| 1272 |
'catalog_id' => '1133708', |
| 1273 |
'group' => array( 'client' ), |
| 1274 |
'privacy' => 0, |
| 1275 |
'integration' => '', |
| 1276 |
'integration_url' => '', |
| 1277 |
'integration_owner' => '', |
| 1278 |
'integration_owner_pp' => '', |
| 1279 |
), |
| 1280 |
'mainwp-rocket-extension' => |
| 1281 |
array( |
| 1282 |
'type' => 'pro', |
| 1283 |
'slug' => 'mainwp-rocket-extension', |
| 1284 |
'title' => 'MainWP Rocket Extension', |
| 1285 |
'desc' => 'MainWP Rocket Extension combines the power of your MainWP Dashboard with the popular WP Rocket Plugin. It allows you to mange WP Rocket settings and quickly Clear and Preload cache on your child sites.', |
| 1286 |
'link' => 'https://mainwp.com/extension/rocket/', |
| 1287 |
'img' => $folder_url . 'rocket.png', |
| 1288 |
'product_id' => 'MainWP Rocket Extension', |
| 1289 |
'product_item_id' => 0, |
| 1290 |
'catalog_id' => '335257', |
| 1291 |
'group' => array( 'performance' ), |
| 1292 |
'privacy' => 2, |
| 1293 |
'integration' => 'WP Rocket Plugin', |
| 1294 |
'integration_url' => 'https://wp-rocket.me/', |
| 1295 |
'integration_owner' => 'WP Media, Inc.', |
| 1296 |
'integration_owner_pp' => 'https://wp-rocket.me/privacy-policy/', |
| 1297 |
), |
| 1298 |
'mainwp-sucuri-extension' => |
| 1299 |
array( |
| 1300 |
'type' => 'free', |
| 1301 |
'slug' => 'mainwp-sucuri-extension', |
| 1302 |
'title' => 'MainWP Sucuri Extension', |
| 1303 |
'desc' => 'MainWP Sucuri Extension enables you to scan your child sites for various types of malware, spam injections, website errors, and much more. Requires the MainWP Dashboard.', |
| 1304 |
'link' => 'https://mainwp.com/extension/sucuri/', |
| 1305 |
'img' => $folder_url . 'sucuri.png', |
| 1306 |
'product_id' => 'MainWP Sucuri Extension', |
| 1307 |
'product_item_id' => 0, |
| 1308 |
'catalog_id' => '10777', |
| 1309 |
'group' => array( 'security' ), |
| 1310 |
'privacy' => 1, |
| 1311 |
'integration' => 'Sucuri API', |
| 1312 |
'integration_url' => 'https://sucuri.net/', |
| 1313 |
'integration_owner' => 'GoDaddy Mediatemple, Inc., d/b/a Sucuri.', |
| 1314 |
'integration_owner_pp' => 'https://sucuri.net/privacy/', |
| 1315 |
), |
| 1316 |
'mainwp-ithemes-security-extension' => |
| 1317 |
array( |
| 1318 |
'type' => 'pro', |
| 1319 |
'slug' => 'mainwp-ithemes-security-extension', |
| 1320 |
'title' => 'MainWP iThemes Security Extension', |
| 1321 |
'desc' => 'The iThemes Security Extension combines the power of your MainWP Dashboard with the popular iThemes Security Plugin. It allows you to manage iThemes Security plugin settings directly from your dashboard. Requires MainWP Dashboard plugin.', |
| 1322 |
'link' => 'https://mainwp.com/extension/ithemes-security/', |
| 1323 |
'img' => $folder_url . 'ithemes.png', |
| 1324 |
'product_id' => 'MainWP Security Extension', |
| 1325 |
'product_item_id' => 0, |
| 1326 |
'catalog_id' => '113355', |
| 1327 |
'group' => array( 'security' ), |
| 1328 |
'privacy' => 2, |
| 1329 |
'integration' => 'iThemes Security Plugin', |
| 1330 |
'integration_url' => 'https://ithemes.com/', |
| 1331 |
'integration_owner' => 'Liquid Web, LLC', |
| 1332 |
'integration_owner_pp' => 'https://www.liquidweb.com/about-us/policies/privacy-policy/', |
| 1333 |
), |
| 1334 |
'mainwp-ssl-monitor-extension' => |
| 1335 |
array( |
| 1336 |
'type' => 'pro', |
| 1337 |
'slug' => 'mainwp-ssl-monitor-extension', |
| 1338 |
'title' => 'MainWP SSL Monitor Extension', |
| 1339 |
'desc' => 'MainWP SSL Monitor Extension lets you keep a watchful eye on your SSL Certificates. It alerts you via email when monitored certificates are nearing expiration.', |
| 1340 |
'link' => 'https://mainwp.com/extension/ssl-monitor/', |
| 1341 |
'img' => $folder_url . 'ssl-monitor.png', |
| 1342 |
'product_id' => 'MainWP SSL Monitor Extension', |
| 1343 |
'product_item_id' => 0, |
| 1344 |
'catalog_id' => '1263543', |
| 1345 |
'group' => array( 'monitoring' ), |
| 1346 |
'privacy' => 0, |
| 1347 |
'integration' => '', |
| 1348 |
'integration_url' => '', |
| 1349 |
'integration_owner' => '', |
| 1350 |
'integration_owner_pp' => '', |
| 1351 |
'release_date' => 1676934000, |
| 1352 |
), |
| 1353 |
'mainwp-staging-extension' => |
| 1354 |
array( |
| 1355 |
'type' => 'pro', |
| 1356 |
'slug' => 'mainwp-staging-extension', |
| 1357 |
'title' => 'MainWP Staging Extension', |
| 1358 |
'desc' => 'MainWP Staging Extension along with the WP Staging plugin, allows you to create and manage staging sites for your child sites.', |
| 1359 |
'link' => 'https://mainwp.com/extension/staging/', |
| 1360 |
'img' => $folder_url . 'staging.png', |
| 1361 |
'product_id' => 'MainWP Staging Extension', |
| 1362 |
'product_item_id' => 0, |
| 1363 |
'catalog_id' => '1034878', |
| 1364 |
'group' => array( 'development' ), |
| 1365 |
'privacy' => 2, |
| 1366 |
'integration' => 'WP STAGING Backup Duplicator & Migration Plugin', |
| 1367 |
'integration_url' => 'https://wp-staging.com/', |
| 1368 |
'integration_owner' => 'WP STAGING', |
| 1369 |
'integration_owner_pp' => 'https://wp-staging.com/privacy-policy/', |
| 1370 |
), |
| 1371 |
'mainwp-team-control' => |
| 1372 |
array( |
| 1373 |
'type' => 'pro', |
| 1374 |
'slug' => 'mainwp-team-control', |
| 1375 |
'title' => 'MainWP Team Control', |
| 1376 |
'desc' => 'MainWP Team Control extension allows you to create a custom roles for your dashboard site users and limiting their access to MainWP features. Requires MainWP Dashboard plugin.', |
| 1377 |
'link' => 'https://mainwp.com/extension/team-control/', |
| 1378 |
'img' => $folder_url . 'team-control.png', |
| 1379 |
'product_id' => 'MainWP Team Control', |
| 1380 |
'product_item_id' => 0, |
| 1381 |
'catalog_id' => '23936', |
| 1382 |
'group' => array( 'agency' ), |
| 1383 |
'privacy' => 0, |
| 1384 |
'integration' => '', |
| 1385 |
'integration_url' => '', |
| 1386 |
'integration_owner' => '', |
| 1387 |
'integration_owner_pp' => '', |
| 1388 |
), |
| 1389 |
'termageddon-for-mainwp' => |
| 1390 |
array( |
| 1391 |
'type' => 'free', |
| 1392 |
'slug' => 'termageddon-for-mainwp', |
| 1393 |
'title' => 'Termageddon for MainWP', |
| 1394 |
'desc' => 'This extension is used for creating Privacy Policy, ToS, Disclaimer and Cookie Policy & Consent Tool pages automatically on your websites.', |
| 1395 |
'link' => 'https://mainwp.com/extension/termageddon-for-mainwp/', |
| 1396 |
'img' => $folder_url . 'termageddon.png', |
| 1397 |
'product_id' => 'Termageddon for MainWP', |
| 1398 |
'product_item_id' => 0, |
| 1399 |
'catalog_id' => '1200201', |
| 1400 |
'group' => array( 'content' ), |
| 1401 |
'privacy' => 1, |
| 1402 |
'integration' => 'Termageddon API', |
| 1403 |
'integration_url' => 'https://termageddon.com/', |
| 1404 |
'integration_owner' => 'Termageddon, LLC', |
| 1405 |
'integration_owner_pp' => 'https://termageddon.com/privacy-policy/', |
| 1406 |
'release_date' => 1678921200, |
| 1407 |
), |
| 1408 |
'mainwp-timecapsule-extension' => |
| 1409 |
array( |
| 1410 |
'type' => 'free', |
| 1411 |
'slug' => 'mainwp-timecapsule-extension', |
| 1412 |
'title' => 'MainWP Time Capsule Extension', |
| 1413 |
'desc' => 'With the MainWP Time Capsule Extension, you can control the WP Time Capsule Plugin on all your child sites directly from your MainWP Dashboard. This includes the ability to create your child site backups and even restore your child sites to a point back in time directly from your dashboard.', |
| 1414 |
'link' => 'https://mainwp.com/extension/time-capsule/', |
| 1415 |
'img' => $folder_url . 'time-capsule.png', |
| 1416 |
'product_id' => 'MainWP Time Capsule Extension', |
| 1417 |
'product_item_id' => 0, |
| 1418 |
'catalog_id' => '1049003', |
| 1419 |
'group' => array( 'backup' ), |
| 1420 |
'privacy' => 2, |
| 1421 |
'integration' => 'Backup and Staging by WP Time Capsule', |
| 1422 |
'integration_url' => 'https://wptimecapsule.com/', |
| 1423 |
'integration_owner' => 'Revmakx, LLC.', |
| 1424 |
'integration_owner_pp' => 'https://wptimecapsule.com/privacy-policy/', |
| 1425 |
), |
| 1426 |
'mainwp-time-tracker-extension' => |
| 1427 |
array( |
| 1428 |
'type' => 'pro', |
| 1429 |
'slug' => 'mainwp-time-tracker-extension', |
| 1430 |
'title' => 'MainWP Time Tracker Extension', |
| 1431 |
'desc' => 'Simplify client billing with precise project hour logging and detailed reporting. This tool integrates directly into your Dashboard for streamlined billing, ensuring accuracy and transparency in client charges.', |
| 1432 |
'link' => 'https://mainwp.com/extension/time-tracker/', |
| 1433 |
'img' => $folder_url . 'time-tracker.png', |
| 1434 |
'product_id' => 'MainWP Time Tracker Extension', |
| 1435 |
'product_item_id' => 0, |
| 1436 |
'catalog_id' => '1284683', |
| 1437 |
'group' => array( 'client' ), |
| 1438 |
'privacy' => 0, |
| 1439 |
'integration' => '', |
| 1440 |
'integration_url' => '', |
| 1441 |
'integration_owner' => '', |
| 1442 |
'integration_owner_pp' => '', |
| 1443 |
), |
| 1444 |
'mainwp-cost-tracker-assistant-extension' => |
| 1445 |
array( |
| 1446 |
'type' => 'pro', |
| 1447 |
'slug' => 'mainwp-cost-tracker-assistant-extension', |
| 1448 |
'title' => 'MainWP Cost Tracker Assistant Extension', |
| 1449 |
'desc' => 'Enhance your MainWP Dashboard by adding timely notifications for upcoming subscription renewals and automates cost tracking for newly installed plugins and themes through zip uploads, streamlining cost management tasks.', |
| 1450 |
'link' => 'https://mainwp.com/extension/cost-tracker-assistant/', |
| 1451 |
'img' => $folder_url . 'cost-tracker-assistant.png', |
| 1452 |
'product_id' => 'MainWP Cost Tracker Assistant Extension', |
| 1453 |
'product_item_id' => 0, |
| 1454 |
'catalog_id' => '1284687', |
| 1455 |
'group' => array( 'admin' ), |
| 1456 |
'privacy' => 0, |
| 1457 |
'integration' => '', |
| 1458 |
'integration_url' => '', |
| 1459 |
'integration_owner' => '', |
| 1460 |
'integration_owner_pp' => '', |
| 1461 |
), |
| 1462 |
'mainwp-updraftplus-extension' => |
| 1463 |
array( |
| 1464 |
'type' => 'free', |
| 1465 |
'slug' => 'mainwp-updraftplus-extension', |
| 1466 |
'title' => 'MainWP UpdraftPlus Extension', |
| 1467 |
'desc' => 'MainWP UpdraftPlus Extension combines the power of your MainWP Dashboard with the popular WordPress UpdraftPlus Plugin. It allows you to quickly back up your child sites.', |
| 1468 |
'link' => 'https://mainwp.com/extension/updraftplus/', |
| 1469 |
'img' => $folder_url . 'updraftplus.png', |
| 1470 |
'product_id' => 'MainWP UpdraftPlus Extension', |
| 1471 |
'product_item_id' => 0, |
| 1472 |
'catalog_id' => '165843', |
| 1473 |
'group' => array( 'backup' ), |
| 1474 |
'privacy' => 2, |
| 1475 |
'integration' => 'UpdraftPlus WordPress Backup Plugin', |
| 1476 |
'integration_url' => 'https://updraftplus.com/', |
| 1477 |
'integration_owner' => 'Updraft WP Software Ltd.', |
| 1478 |
'integration_owner_pp' => 'https://updraftplus.com/data-protection-and-privacy-centre/', |
| 1479 |
), |
| 1480 |
'mainwp-url-extractor-extension' => |
| 1481 |
array( |
| 1482 |
'type' => 'pro', |
| 1483 |
'slug' => 'mainwp-url-extractor-extension', |
| 1484 |
'title' => 'MainWP URL Extractor Extension', |
| 1485 |
'desc' => 'MainWP URL Extractor allows you to search your child sites post and pages and export URLs in customized format. Requires MainWP Dashboard plugin.', |
| 1486 |
'link' => 'https://mainwp.com/extension/url-extractor/', |
| 1487 |
'img' => $folder_url . 'url-extractor.png', |
| 1488 |
'product_id' => 'MainWP Url Extractor Extension', |
| 1489 |
'product_item_id' => 0, |
| 1490 |
'catalog_id' => '11965', |
| 1491 |
'group' => array( 'development' ), |
| 1492 |
'privacy' => 0, |
| 1493 |
'integration' => '', |
| 1494 |
'integration_url' => '', |
| 1495 |
'integration_owner' => '', |
| 1496 |
'integration_owner_pp' => '', |
| 1497 |
), |
| 1498 |
'mainwp-virusdie-extension' => |
| 1499 |
array( |
| 1500 |
'type' => 'pro', |
| 1501 |
'slug' => 'mainwp-virusdie-extension', |
| 1502 |
'title' => 'MainWP Virusdie Extension', |
| 1503 |
'desc' => 'MainWP Virusdie Extension enables you to scan your child sites for various types of malware, spam injections, website errors, and much more. Requires the MainWP Dashboard.', |
| 1504 |
'link' => 'https://mainwp.com/extension/virusdie/', |
| 1505 |
'img' => $folder_url . 'virusdie.png', |
| 1506 |
'product_id' => 'MainWP Virusdie Extension', |
| 1507 |
'product_item_id' => 0, |
| 1508 |
'catalog_id' => '1213235', |
| 1509 |
'group' => array( 'security' ), |
| 1510 |
'privacy' => 1, |
| 1511 |
'integration' => 'Virusdie API', |
| 1512 |
'integration_url' => 'https://virusdie.com/', |
| 1513 |
'integration_owner' => 'Virusdie OU', |
| 1514 |
'integration_owner_pp' => 'https://virusdie.com/rules/privacypolicy/', |
| 1515 |
), |
| 1516 |
'mainwp-vulnerability-checker-extension' => |
| 1517 |
array( |
| 1518 |
'type' => 'pro', |
| 1519 |
'slug' => 'mainwp-vulnerability-checker-extension', |
| 1520 |
'title' => 'MainWP Vulnerability Checker Extension', |
| 1521 |
'desc' => 'MainWP Vulnerability Checker extension uses WPScan Vulnerability Database API to bring you information about vulnerable plugins on your Child Sites so you can act accordingly.', |
| 1522 |
'link' => 'https://mainwp.com/extension/vulnerability-checker/', |
| 1523 |
'img' => $folder_url . 'vulnerability-checker.png', |
| 1524 |
'product_id' => 'MainWP Vulnerability Checker Extension', |
| 1525 |
'product_item_id' => 0, |
| 1526 |
'catalog_id' => '12458', |
| 1527 |
'group' => array( 'security' ), |
| 1528 |
'privacy' => 1, |
| 1529 |
'integration' => 'WPScan API', |
| 1530 |
'integration_url' => 'https://wpscan.com/', |
| 1531 |
'integration_owner' => 'Automattic Inc.', |
| 1532 |
'integration_owner_pp' => 'https://automattic.com/privacy/', |
| 1533 |
'integration_1' => 'NVD NIST API', |
| 1534 |
'integration_url_1' => 'https://nvd.nist.gov/', |
| 1535 |
'integration_owner_1' => 'National Institute of Standards and Technology', |
| 1536 |
'integration_owner_pp_1' => 'https://www.nist.gov/privacy-policy', |
| 1537 |
), |
| 1538 |
'mainwp-branding-extension' => |
| 1539 |
array( |
| 1540 |
'type' => 'pro', |
| 1541 |
'slug' => 'mainwp-branding-extension', |
| 1542 |
'title' => 'MainWP White Label Extension', |
| 1543 |
'desc' => 'The MainWP White Label extension allows you to alter the details of the MianWP Child Plugin to reflect your companies brand or completely hide the plugin from the installed plugins list.', |
| 1544 |
'link' => 'https://mainwp.com/extension/child-plugin-branding/', |
| 1545 |
'img' => $folder_url . 'branding.png', |
| 1546 |
'product_id' => 'MainWP Branding Extension', |
| 1547 |
'product_item_id' => 0, |
| 1548 |
'catalog_id' => '10679', |
| 1549 |
'group' => array( 'agency' ), |
| 1550 |
'privacy' => 0, |
| 1551 |
'integration' => '', |
| 1552 |
'integration_url' => '', |
| 1553 |
'integration_owner' => '', |
| 1554 |
'integration_owner_pp' => '', |
| 1555 |
), |
| 1556 |
'mainwp-woocommerce-shortcuts-extension' => |
| 1557 |
array( |
| 1558 |
'type' => 'free', |
| 1559 |
'slug' => 'mainwp-woocommerce-shortcuts-extension', |
| 1560 |
'title' => 'MainWP WooCommerce Shortcuts Extension', |
| 1561 |
'desc' => 'MainWP WooCommerce Shortcuts provides you a quick access WooCommerce pages in your network. Requires MainWP Dashboard plugin.', |
| 1562 |
'link' => 'https://mainwp.com/extension/woocommerce-shortcuts/', |
| 1563 |
'img' => $folder_url . 'woo-shortcuts.png', |
| 1564 |
'product_id' => 'MainWP WooCommerce Shortcuts Extension', |
| 1565 |
'product_item_id' => 0, |
| 1566 |
'catalog_id' => '12706', |
| 1567 |
'group' => array( 'admin' ), |
| 1568 |
'privacy' => 2, |
| 1569 |
'integration' => 'WooCommerce Plugin', |
| 1570 |
'integration_url' => 'https://woocommerce.com', |
| 1571 |
'integration_owner' => 'Automattic Inc.', |
| 1572 |
'integration_owner_pp' => 'https://automattic.com/privacy/', |
| 1573 |
), |
| 1574 |
'mainwp-woocommerce-status-extension' => |
| 1575 |
array( |
| 1576 |
'type' => 'pro', |
| 1577 |
'slug' => 'mainwp-woocommerce-status-extension', |
| 1578 |
'title' => 'MainWP WooCommerce Status Extension', |
| 1579 |
'desc' => 'MainWP WooCommerce Status provides you a quick overview of your WooCommerce stores in your network. Requires MainWP Dashboard plugin.', |
| 1580 |
'link' => 'https://mainwp.com/extension/woocommerce-status/', |
| 1581 |
'img' => $folder_url . 'woo-status.png', |
| 1582 |
'product_id' => 'MainWP WooCommerce Status Extension', |
| 1583 |
'product_item_id' => 0, |
| 1584 |
'catalog_id' => '12671', |
| 1585 |
'group' => array( 'admin' ), |
| 1586 |
'privacy' => 2, |
| 1587 |
'integration' => 'WooCommerce Plugin', |
| 1588 |
'integration_url' => 'https://woocommerce.com', |
| 1589 |
'integration_owner' => 'Automattic Inc.', |
| 1590 |
'integration_owner_pp' => 'https://automattic.com/privacy/', |
| 1591 |
), |
| 1592 |
'mainwp-wordfence-extension' => |
| 1593 |
array( |
| 1594 |
'type' => 'pro', |
| 1595 |
'slug' => 'mainwp-wordfence-extension', |
| 1596 |
'title' => 'MainWP WordFence Extension', |
| 1597 |
'desc' => 'The WordFence Extension combines the power of your MainWP Dashboard with the popular WordPress Wordfence Plugin. It allows you to manage WordFence settings, Monitor Live Traffic and Scan your child sites directly from your dashboard. Requires MainWP Dashboard plugin.', |
| 1598 |
'link' => 'https://mainwp.com/extension/wordfence/', |
| 1599 |
'img' => $folder_url . 'wordfence.png', |
| 1600 |
'product_id' => 'MainWP Wordfence Extension', |
| 1601 |
'product_item_id' => 0, |
| 1602 |
'catalog_id' => '19678', |
| 1603 |
'group' => array( 'security' ), |
| 1604 |
'privacy' => 2, |
| 1605 |
'integration' => 'Wordfence Security � Firewall & Malware Scan Plugin', |
| 1606 |
'integration_url' => 'https://www.wordfence.com/', |
| 1607 |
'integration_owner' => 'Defiant, Inc.', |
| 1608 |
'integration_owner_pp' => 'https://www.wordfence.com/privacy-policy/', |
| 1609 |
), |
| 1610 |
'wordpress-seo-extension' => |
| 1611 |
array( |
| 1612 |
'type' => 'pro', |
| 1613 |
'slug' => 'wordpress-seo-extension', |
| 1614 |
'title' => 'MainWP WordPress SEO Extension', |
| 1615 |
'desc' => 'MainWP WordPress SEO extension by MainWP enables you to manage all your WordPress SEO by Yoast plugins across your network. Create and quickly set settings templates from one central dashboard. Requires MainWP Dashboard plugin.', |
| 1616 |
'link' => 'https://mainwp.com/extension/wordpress-seo/', |
| 1617 |
'img' => $folder_url . 'wordpress-seo.png', |
| 1618 |
'product_id' => 'MainWP Wordpress SEO Extension', |
| 1619 |
'product_item_id' => 0, |
| 1620 |
'catalog_id' => '12080', |
| 1621 |
'group' => array( 'content' ), |
| 1622 |
'privacy' => 2, |
| 1623 |
'integration' => 'Yoast SEO Plugin', |
| 1624 |
'integration_url' => 'https://yoast.com/', |
| 1625 |
'integration_owner' => 'Newfold Capital Inc.', |
| 1626 |
'integration_owner_pp' => 'https://yoast.com/privacy-policy/', |
| 1627 |
), |
| 1628 |
'activity-log-mainwp' => array( |
| 1629 |
'type' => 'org', |
| 1630 |
'product_id' => 'activity-log-mainwp', |
| 1631 |
'slug' => 'activity-log-mainwp/activity-log-mainwp.php', |
| 1632 |
'title' => 'Activity Log For MainWP', |
| 1633 |
'link' => 'https://wordpress.org/plugins/activity-log-mainwp/', |
| 1634 |
'url' => 'https://wordpress.org/plugins/activity-log-mainwp/', |
| 1635 |
'group' => array( 'security' ), |
| 1636 |
'privacy' => 2, |
| 1637 |
'integration' => 'WP Activity Log', |
| 1638 |
'integration_url' => 'https://wpactivitylog.com/', |
| 1639 |
'integration_owner' => 'WP White Security', |
| 1640 |
'integration_owner_pp' => 'https://www.wpwhitesecurity.com/privacy-policy/', |
| 1641 |
'desc' => 'Add the Activity Logs for MainWP extension to also keep a log of all the user activity and other changes that happen both on the MainWP dashboard, collate child site activity logs', |
| 1642 |
), |
| 1643 |
'security-ninja-for-mainwp' => array( |
| 1644 |
'type' => 'org', |
| 1645 |
'product_id' => 'security-ninja-for-mainwp', |
| 1646 |
'slug' => 'security-ninja-for-mainwp/security-ninja-mainwp.php', |
| 1647 |
'title' => 'Security Ninja For MainWP', |
| 1648 |
'link' => 'https://wordpress.org/plugins/security-ninja-for-mainwp/', |
| 1649 |
'url' => 'https://wordpress.org/plugins/security-ninja-for-mainwp/', |
| 1650 |
'group' => array( 'security' ), |
| 1651 |
'privacy' => 2, |
| 1652 |
'integration' => 'Security Ninja', |
| 1653 |
'integration_url' => 'https://wpsecurityninja.com/', |
| 1654 |
'integration_owner' => 'Larsik Corp', |
| 1655 |
'integration_owner_pp' => 'https://larsik.com/privacy/', |
| 1656 |
'desc' => 'Security Ninja is a strong plugin that helps you find vulnerabilites and improve the security on your website.', |
| 1657 |
), |
| 1658 |
'wp-compress-mainwp' => array( |
| 1659 |
'type' => 'org', |
| 1660 |
'product_id' => 'wp-compress-mainwp', |
| 1661 |
'slug' => 'wp-compress-mainwp/wp-compress-main-wp.php', |
| 1662 |
'title' => 'WP Compress for MainWP', |
| 1663 |
'link' => 'https://wordpress.org/plugins/wp-compress-mainwp/', |
| 1664 |
'url' => 'https://wordpress.org/plugins/wp-compress-mainwp/', |
| 1665 |
'group' => array( 'performance' ), |
| 1666 |
'privacy' => 2, |
| 1667 |
'integration' => 'WP Compress', |
| 1668 |
'integration_url' => 'https://wpcompress.com/', |
| 1669 |
'integration_owner' => 'WP Compress', |
| 1670 |
'integration_owner_pp' => 'https://wpcompress.com/privacy-policy/', |
| 1671 |
), |
| 1672 |
'seopress-for-mainwp' => array( |
| 1673 |
'type' => 'org', |
| 1674 |
'product_id' => 'seopress-for-mainwp', |
| 1675 |
'slug' => 'seopress-for-mainwp/seopress-for-mainwp.php', |
| 1676 |
'title' => 'SEOPress for MainWP', |
| 1677 |
'link' => 'https://wordpress.org/plugins/seopress-for-mainwp/', |
| 1678 |
'url' => 'https://wordpress.org/plugins/seopress-for-mainwp/', |
| 1679 |
'group' => array( 'content' ), |
| 1680 |
'privacy' => 2, |
| 1681 |
'integration' => 'SEOPress', |
| 1682 |
'integration_url' => 'https://www.seopress.org/', |
| 1683 |
'integration_owner' => 'SEOPRESS', |
| 1684 |
'integration_owner_pp' => 'https://www.seopress.org/privacy-policy/', |
| 1685 |
), |
| 1686 |
'wpvivid-backup-mainwp' => array( |
| 1687 |
'type' => 'org', |
| 1688 |
'product_id' => 'wpvivid-backup-mainwp', |
| 1689 |
'slug' => 'wpvivid-backup-mainwp/wpvivid-backup-mainwp.php', |
| 1690 |
'title' => 'WPvivid Backup for MainWP', |
| 1691 |
'link' => 'https://wordpress.org/plugins/wpvivid-backup-mainwp/', |
| 1692 |
'url' => 'https://wordpress.org/plugins/wpvivid-backup-mainwp/', |
| 1693 |
'group' => array( 'backup' ), |
| 1694 |
'privacy' => 2, |
| 1695 |
'integration' => 'WPvivid Backup', |
| 1696 |
'integration_url' => 'https://wpvivid.com/', |
| 1697 |
'integration_owner' => 'VPSrobots Inc.', |
| 1698 |
'integration_owner_pp' => 'https://wpvivid.com/privacy-policy', |
| 1699 |
'desc' => 'WPvivid Backup for MainWP enables you to create and download backups of a specific child site, set backup schedules, set WPvivid Backup Plugin settings for all of your child sites directly from your MainWP Dashboard.', |
| 1700 |
), |
| 1701 |
); |
| 1702 |
|
| 1703 |
$list = array(); |
| 1704 |
|
| 1705 |
if ( is_string( $types ) ) { |
| 1706 |
if ( 'all' === $types ) { |
| 1707 |
return $all_exts; |
| 1708 |
} elseif ( in_array( $types, array( 'free', 'pro', 'org' ) ) ) { |
| 1709 |
$list = array(); |
| 1710 |
foreach ( $all_exts as $slug => $ext ) { |
| 1711 |
if ( $ext['type'] === $types ) { |
| 1712 |
|
| 1713 |
$list[ $slug ] = $ext; |
| 1714 |
|
| 1715 |
} |
| 1716 |
} |
| 1717 |
return $list; |
| 1718 |
|
| 1719 |
} |
| 1720 |
} |
| 1721 |
|
| 1722 |
if ( is_array( $types ) ) { |
| 1723 |
$list = array(); |
| 1724 |
foreach ( $all_exts as $slug => $ext ) { |
| 1725 |
if ( in_array( $ext['type'], $types ) ) { |
| 1726 |
$list[ $slug ] = $ext; |
| 1727 |
} |
| 1728 |
} |
| 1729 |
} |
| 1730 |
|
| 1731 |
if ( is_array( $ext_grouped ) && ! empty( $ext_grouped ) ) { |
| 1732 |
$list = array(); |
| 1733 |
foreach ( $all_exts as $slug => $ext ) { |
| 1734 |
foreach ( $ext_grouped as $group ) { |
| 1735 |
if ( in_array( $group, $ext['group'] ) ) { |
| 1736 |
$list[ $slug ] = $ext; |
| 1737 |
} |
| 1738 |
} |
| 1739 |
} |
| 1740 |
} |
| 1741 |
|
| 1742 |
return $list; |
| 1743 |
} |
| 1744 |
} |
| 1745 |
|