/** * Echoes plugin installation form. * * This method is the callback for the admin_menu method function. * This displays the admin page and form area where the user can select to install and activate the plugin. * * @return null Aborts early if we're processing a plugin installation action */ public function install_plugins_page() { /** Store new instance of plugin table in object */ $plugin_table = new ListTable(); /** Return early if processing a plugin installation action */ if (isset($_POST[sanitize_key('action')]) && 'tgmpa-bulk-install' == $_POST[sanitize_key('action')] && $plugin_table->process_bulk_actions() || $this->do_plugin_install()) { return; } ?> <div class="tgmpa wrap"> <?php screen_icon(apply_filters('tgmpa_default_screen_icon', 'themes')); ?> <h2><?php echo esc_html(get_admin_page_title()); ?> </h2> <?php $plugin_table->prepare_items(); ?> <?php if (isset($this->message)) { _e(wp_kses_post($this->message), self::TEXT_DOMAIN); } ?> <form id="tgmpa-plugins" action="" method="post"> <input type="hidden" name="tgmpa-page" value="<?php echo $this->menu; ?> " /> <?php $plugin_table->display(); ?> </form> </div> <?php }