| 1 |
<?php |
| 2 |
|
| 3 |
namespace LIBRARY; |
| 4 |
|
| 5 |
$plugin_installer = new PluginInstaller(); |
| 6 |
?> |
| 7 |
|
| 8 |
<div class="library library--install-plugins"> |
| 9 |
|
| 10 |
<?php echo wp_kses_post( ViewHelpers::plugin_header_output() ); ?> |
| 11 |
|
| 12 |
<div class="library__content-container"> |
| 13 |
|
| 14 |
<div class="library__admin-notices js-library-admin-notices-container"></div> |
| 15 |
|
| 16 |
<div class="library__content-container-content"> |
| 17 |
<div class="library__content-container-content--main"> |
| 18 |
<div class="library-install-plugins-content"> |
| 19 |
<div class="library-install-plugins-content-header"> |
| 20 |
<h2><?php esc_html_e( 'Install Recommended Plugins', 'borderless' ); ?></h2> |
| 21 |
<p> |
| 22 |
<?php esc_html_e( 'Want to use the best plugins for the job? Here is the list of awesome plugins that will help you achieve your goals.', 'borderless' ); ?> |
| 23 |
</p> |
| 24 |
</div> |
| 25 |
<div class="library-install-plugins-content-content"> |
| 26 |
<?php foreach ( $plugin_installer->get_partner_plugins() as $plugin ) : ?> |
| 27 |
<?php $is_plugin_active = $plugin_installer->is_plugin_active( $plugin['slug'] ); ?> |
| 28 |
<label class="plugin-item plugin-item-<?php echo esc_attr( $plugin['slug'] ); ?><?php echo $is_plugin_active ? ' plugin-item--active' : ''; ?>" for="library-<?php echo esc_attr( $plugin['slug'] ); ?>-plugin"> |
| 29 |
<div class="plugin-item-content"> |
| 30 |
<div class="plugin-item-content-title"> |
| 31 |
<h3><?php echo esc_html( $plugin['name'] ); ?></h3> |
| 32 |
</div> |
| 33 |
<?php if ( ! empty( $plugin['description'] ) ) : ?> |
| 34 |
<p> |
| 35 |
<?php echo wp_kses_post( $plugin['description'] ); ?> |
| 36 |
</p> |
| 37 |
<?php endif; ?> |
| 38 |
<div class="plugin-item-error js-library-plugin-item-error"></div> |
| 39 |
<div class="plugin-item-info js-library-plugin-item-info"></div> |
| 40 |
</div> |
| 41 |
</label> |
| 42 |
<?php endforeach; ?> |
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
<div class="library__content-container-content--side"> |
| 47 |
<?php echo wp_kses_post( ViewHelpers::small_theme_card() ); ?> |
| 48 |
</div> |
| 49 |
</div> |
| 50 |
|
| 51 |
</div> |
| 52 |
</div> |
| 53 |
|