| 1 |
<?php |
| 2 |
/** |
| 3 |
* Add-Ons list. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
* |
| 7 |
* @var array<string, array> $addons Available add-ons keyed by slug. |
| 8 |
* @var string $view_path Absolute path to the views/addons/ directory, with trailing slash. |
| 9 |
* @var string $request_addon_url URL for requesting a new add-on. |
| 10 |
* @var string $license_type Current license type or empty string. |
| 11 |
* @var string $pricing Upgrade URL used for CTAs. |
| 12 |
*/ |
| 13 |
|
| 14 |
if ( ! defined( 'ABSPATH' ) ) { |
| 15 |
die( 'You are not allowed to call this page directly.' ); |
| 16 |
} |
| 17 |
|
| 18 |
FrmAddonsHelper::show_upgrade_renew_cta(); |
| 19 |
FrmAddonsHelper::get_reconnect_link(); |
| 20 |
?> |
| 21 |
|
| 22 |
<ul id="frm-addons-list" class="frm-list-grid-layout frm-mb-xs"> |
| 23 |
<?php |
| 24 |
foreach ( $addons as $slug => $addon ) { |
| 25 |
require $view_path . 'addon.php'; |
| 26 |
} |
| 27 |
?> |
| 28 |
</ul> |
| 29 |
|
| 30 |
<div class="frm-addons-request-addon frm-py-2xs frm-mt-xs"> |
| 31 |
<span><?php esc_html_e( 'Not finding what you need?', 'formidable' ); ?></span> |
| 32 |
<a class="frm-font-semibold" href="<?php echo esc_url( $request_addon_url ); ?>" target="_blank"><?php esc_html_e( 'Request Add-On', 'formidable' ); ?></a> |
| 33 |
</div> |
| 34 |
|