| @@ 138-144 (lines=7) @@ | ||
| 135 | } |
|
| 136 | ||
| 137 | public static function upgrade_to_pro_button() { |
|
| 138 | if ( ! FrmAppHelper::pro_is_installed() ) { |
|
| 139 | ?> |
|
| 140 | <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'settings-license' ) ); ?>" class="button-secondary frm-button-secondary" target="_blank" rel="nofollow noopener"> |
|
| 141 | <?php esc_html_e( 'Upgrade Now', 'formidable' ); ?> |
|
| 142 | </a> |
|
| 143 | <?php |
|
| 144 | } |
|
| 145 | } |
|
| 146 | ||
| 147 | public static function maybe_show_license_box() { |
|
| @@ 19-27 (lines=9) @@ | ||
| 16 | echo '<div id="frm-publishing">'; |
|
| 17 | call_user_func( $atts['publish'][0], $atts['publish'][1] ); |
|
| 18 | echo '</div>'; |
|
| 19 | } elseif ( ! FrmAppHelper::pro_is_installed() ) { |
|
| 20 | ?> |
|
| 21 | <div id="frm-publishing"> |
|
| 22 | <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'header' ) ); ?>" class="button button-secondary frm-button-secondary"> |
|
| 23 | <?php esc_html_e( 'Upgrade', 'formidable' ); ?> |
|
| 24 | </a> |
|
| 25 | </div> |
|
| 26 | <?php |
|
| 27 | } |
|
| 28 | ?> |
|
| 29 | ||
| 30 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable' ) ); ?>" class="frm-header-logo"> |
|