| 1 |
<div class="wrap"> |
| 2 |
<h1><?php esc_html_e( 'Formidable AddOns', 'formidable' ) ?></h1> |
| 3 |
|
| 4 |
<div id="the-list" class="frm-addons"> |
| 5 |
<?php foreach ( $addons as $slug => $addon ) { ?> |
| 6 |
<div class="plugin-card plugin-card-<?php echo esc_attr( $slug ) ?> frm-no-thumb"> |
| 7 |
<div class="plugin-card-top"> |
| 8 |
<div class="name column-name"> |
| 9 |
<h3> |
| 10 |
<a href="<?php echo esc_url( $site_url . $addon['link'] ) ?>"> |
| 11 |
<?php echo esc_html( $addon['title'] ) ?> |
| 12 |
</a> |
| 13 |
</h3> |
| 14 |
</div> |
| 15 |
<div class="action-links"> |
| 16 |
<ul class="plugin-action-buttons"> |
| 17 |
<?php if ( $addon['installed'] ) { ?> |
| 18 |
<?php if ( empty( $addon['activate_url'] ) ) { ?> |
| 19 |
<li><span class="button button-disabled" title="<?php esc_attr_e( 'This plugin is already installed', 'formidable' ) ?>"><?php esc_html_e( 'Installed', 'formidable' ) ?></span></li> |
| 20 |
<?php } else { ?> |
| 21 |
<li><a href="<?php echo esc_url( $addon['activate_url'] ) ?>" class="button activate-now"><?php esc_html_e( 'Activate', 'formidable' ); ?></a></li> |
| 22 |
<?php } ?> |
| 23 |
<?php } else { ?> |
| 24 |
<li><a class="install-now button" href="<?php echo esc_url( $site_url . $addon['link'] ) ?>" target="_blank" aria-label="<?php esc_attr_e( 'Get Started', 'formidable' ) ?>"><?php esc_html_e( 'Get Started', 'formidable' ) ?></a></li> |
| 25 |
<?php } ?> |
| 26 |
<li><a href="<?php echo esc_url( $site_url . 'knowledgebase/' . $addon['docs'] ) ?>" target="_blank" aria-label="<?php esc_attr_e( 'View Docs', 'formidable' ) ?>"><?php esc_html_e( 'View Docs', 'formidable' ) ?></a></li> |
| 27 |
</ul> |
| 28 |
</div> |
| 29 |
<div class="desc column-description"> |
| 30 |
<p><?php echo wp_kses_post( $addon['excerpt'] ) ?></p> |
| 31 |
</div> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
<?php } ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
|