| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
// Determine the support link based on lite vs pro. |
| 7 |
$support_link = ! FrmAppHelper::pro_is_installed() ? 'https://wordpress.org/support/plugin/formidable/' : 'https://formidableforms.com/new-topic/'; |
| 8 |
|
| 9 |
$upgrade_link = FrmSalesApi::get_best_sale_value( 'footer_cta_link' ); |
| 10 |
$utm = array( |
| 11 |
'campaign' => 'admin-footer-link', |
| 12 |
'content' => 'footer-link-upgrade', |
| 13 |
); |
| 14 |
|
| 15 |
if ( $upgrade_link ) { |
| 16 |
$upgrade_link = FrmAppHelper::maybe_add_missing_utm( $upgrade_link, $utm ); |
| 17 |
} elseif ( FrmAppHelper::pro_is_installed() ) { |
| 18 |
$upgrade_link = 'https://formidableforms.com/account/downloads/'; |
| 19 |
} else { |
| 20 |
$upgrade_link = FrmAppHelper::maybe_add_missing_utm( 'https://formidableforms.com/lite-upgrade/', $utm ); |
| 21 |
} |
| 22 |
?> |
| 23 |
|
| 24 |
<div class="frm-admin-footer-links frm_hidden"> |
| 25 |
<span class="frm-admin-footer-links-text"> |
| 26 |
<?php |
| 27 |
printf( |
| 28 |
/* translators: %1$s: Heart icon */ |
| 29 |
esc_html__( 'Made with %1$s by the Formidable Team', 'formidable' ), |
| 30 |
'<span class="dashicons dashicons-heart"></span>' |
| 31 |
); |
| 32 |
?> |
| 33 |
</span><!-- .frm-admin-footer-links-text --> |
| 34 |
|
| 35 |
<div class="frm-admin-footer-links-nav"> |
| 36 |
<a href="<?php echo esc_url( $support_link ); ?>" target="_blank"><?php esc_html_e( 'Support', 'formidable' ); ?></a> |
| 37 |
<span>/</span> |
| 38 |
<?php |
| 39 |
$docs_utm = array( |
| 40 |
'campaign' => 'admin-footer-link', |
| 41 |
'content' => 'footer-link-docs', |
| 42 |
); |
| 43 |
?> |
| 44 |
<a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( $docs_utm, 'knowledgebase/' ) ); ?>" target="_blank"><?php esc_html_e( 'Docs', 'formidable' ); ?></a> |
| 45 |
<?php if ( 'elite' !== FrmAddonsController::license_type() ) : ?> |
| 46 |
<?php |
| 47 |
$cta_text = FrmSalesApi::get_best_sale_value( 'footer_cta_text' ); |
| 48 |
|
| 49 |
if ( ! $cta_text ) { |
| 50 |
$cta_text = __( 'Upgrade', 'formidable' ); |
| 51 |
} |
| 52 |
?> |
| 53 |
<span>/</span> |
| 54 |
<a href="<?php echo esc_url( $upgrade_link ); ?>" target="_blank"><?php echo esc_html( $cta_text ); ?></a> |
| 55 |
<?php endif; ?> |
| 56 |
</div><!-- .frm-admin-footer-links-nav --> |
| 57 |
|
| 58 |
<div class="frm-admin-footer-links-socials"> |
| 59 |
<!-- Facebook link --> |
| 60 |
<a href="https://www.facebook.com/formidableforms/" target="_blank"><span class="dashicons dashicons-facebook"></span></a> |
| 61 |
<!-- Instagram link --> |
| 62 |
<a href="https://www.instagram.com/formidableforms/" target="_blank"><span class="dashicons dashicons-instagram"></span></a> |
| 63 |
<!-- Twitter link --> |
| 64 |
<a href="https://twitter.com/formidableforms/" target="_blank"><span class="dashicons dashicons-twitter"></span></a> |
| 65 |
<!-- Youtube link --> |
| 66 |
<a href="https://www.youtube.com/c/FormidableFormsPlugin/" target="_blank"><span class="dashicons dashicons-youtube"></span></a> |
| 67 |
</div><!-- .frm-admin-footer-links-socials --> |
| 68 |
</div><!-- .frm-admin-footer-links --> |
| 69 |
|