| @@ -13,11 +13,9 @@ | ||
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Register all of the hooks related to the welcome screen functionality |
| 16 | 16 | * |
| 17 | - * @access public | |
| 18 | - * | |
| 19 | - * @return void | |
| 17 | + * @access public | |
| 20 | 18 | */ |
| 21 | 19 | public static function load_hooks() { |
| 22 | 20 | add_action( 'admin_init', __CLASS__ . '::redirect' ); |
| 23 | 21 | |
| @@ -66,10 +64,8 @@ | ||
| 66 | 64 | } |
| 67 | 65 | |
| 68 | 66 | /** |
| 69 | 67 | * Don't redirect every time the plugin is activated. |
| 70 | - * | |
| 71 | - * @return bool | |
| 72 | 68 | */ |
| 73 | 69 | private static function already_redirected() { |
| 74 | 70 | $last_redirect = get_option( self::$last_redirect ); |
| 75 | 71 | if ( $last_redirect ) { |
| @@ -137,15 +133,12 @@ | ||
| 137 | 133 | public static function settings_link() { |
| 138 | 134 | return admin_url( 'admin.php?page=' . self::$menu_slug ); |
| 139 | 135 | } |
| 140 | 136 | |
| 141 | - /** | |
| 142 | - * @return void | |
| 143 | - */ | |
| 144 | 137 | public static function upgrade_to_pro_button() { |
| 145 | 138 | if ( ! FrmAppHelper::pro_is_installed() ) { |
| 146 | 139 | ?> |
| 147 | - <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'welcome' ) ); ?>" class="button-secondary frm-button-secondary frm-button-sm" target="_blank" rel="nofollow noopener"> | |
| 140 | + <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'settings-license' ) ); ?>" class="button-secondary frm-button-secondary" target="_blank" rel="nofollow noopener"> | |
| 148 | 141 | <?php esc_html_e( 'Upgrade Now', 'formidable' ); ?> |
| 149 | 142 | </a> |
| 150 | 143 | <?php |
| 151 | 144 | } |
| @@ -150,11 +143,8 @@ | ||
| 150 | 143 | <?php |
| 151 | 144 | } |
| 152 | 145 | } |
| 153 | 146 | |
| 154 | - /** | |
| 155 | - * @return void | |
| 156 | - */ | |
| 157 | 147 | public static function maybe_show_license_box() { |
| 158 | 148 | if ( ! FrmAppHelper::pro_is_installed() ) { |
| 159 | 149 | FrmSettingsController::license_box(); |
| 160 | 150 | } |
| @@ -159,14 +149,8 @@ | ||
| 159 | 149 | FrmSettingsController::license_box(); |
| 160 | 150 | } |
| 161 | 151 | } |
| 162 | 152 | |
| 163 | - /** | |
| 164 | - * @param string $plugin | |
| 165 | - * @param string $upgrade_link_args | |
| 166 | - * | |
| 167 | - * @return void | |
| 168 | - */ | |
| 169 | 153 | public static function maybe_show_conditional_action_button( $plugin, $upgrade_link_args ) { |
| 170 | 154 | $is_installed = is_callable( 'FrmProAppHelper::views_is_installed' ) && FrmProAppHelper::views_is_installed(); |
| 171 | 155 | if ( ! $is_installed ) { |
| 172 | 156 | FrmAddonsController::conditional_action_button( $plugin, $upgrade_link_args ); |