| 1 |
<?php |
| 2 |
/** |
| 3 |
* Get free templates banner view. |
| 4 |
* |
| 5 |
* @package Formidable |
| 6 |
*/ |
| 7 |
|
| 8 |
if ( ! defined( 'ABSPATH' ) ) { |
| 9 |
die( 'You are not allowed to call this page directly.' ); |
| 10 |
} |
| 11 |
?> |
| 12 |
<div class="frm-get-free-templates-banner frm-flex frm-gap-sm frm-items-center" data-direction="<?php echo esc_attr( $args['direction'] ?? 'horizontal' ); ?>"> |
| 13 |
<div class="frm-banner-image-wrapper"> |
| 14 |
<img width="100" src="<?php echo esc_url( FrmAppHelper::plugin_url() ); ?>/images/get-free-templates-banner.png" alt="<?php esc_attr_e( 'Get free templates', 'formidable' ); ?>" /> |
| 15 |
</div> |
| 16 |
|
| 17 |
<div class="frm-banner-content frm-flex-col frm-gap-xs frm-items-start"> |
| 18 |
<h3 class="frm-text-sm frm-font-semibold"> |
| 19 |
<?php |
| 20 |
printf( |
| 21 |
// translators: %s: HTML line break |
| 22 |
esc_html__( 'Get Instant Access to %s 30+ Free Form Templates', 'formidable' ), |
| 23 |
'<br>' |
| 24 |
); |
| 25 |
?> |
| 26 |
</h3> |
| 27 |
<a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-form-templates&free-templates=1' ) ); ?>" class="button button-primary frm-button-primary"> |
| 28 |
<?php echo esc_html_x( 'Get Templates', 'get free templates banner button', 'formidable' ); ?> |
| 29 |
</a> |
| 30 |
</div> |
| 31 |
</div> |
| 32 |
|