| @@ -45,10 +45,9 @@ | ||
| 45 | 45 | |
| 46 | 46 | if ( $template['is_custom'] ) { |
| 47 | 47 | $template['use_template'] = $template['url']; |
| 48 | 48 | } elseif ( ! $template['plan_required'] ) { |
| 49 | - $link = FrmFormsHelper::get_template_install_link( $template, compact( 'pricing', 'license_type' ) ); | |
| 50 | - | |
| 49 | + $link = FrmFormsHelper::get_template_install_link( $template, compact( 'pricing', 'license_type' ) ); | |
| 51 | 50 | $template['use_template'] = esc_url( $link['url'] ); |
| 52 | 51 | } |
| 53 | 52 | } |
| 54 | 53 | |
| @@ -186,9 +185,9 @@ | ||
| 186 | 185 | if ( $args['expired'] ) { |
| 187 | 186 | FrmTipsHelper::show_admin_cta( |
| 188 | 187 | array( |
| 189 | 188 | 'title' => esc_html__( 'Get Super Powers with Pre-built Forms', 'formidable' ), |
| 190 | - 'description' => esc_html__( 'Unleash the potential of hundreds of form templates and save precious time. Renew today for unparalleled form-building speed.', 'formidable' ), | |
| 189 | + 'description' => esc_html__( 'Unleash the potential of hundreds of form templates and save precious time. Renew today for unparalleled form-building speed.', 'formidable' ), // phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong | |
| 191 | 190 | 'link_text' => esc_html__( 'Renew Now', 'formidable' ), |
| 192 | 191 | 'link_url' => $args['renew_link'], |
| 193 | 192 | 'id' => 'frm-renew-subscription-banner', |
| 194 | 193 | ) |
| @@ -228,13 +227,15 @@ | ||
| 228 | 227 | $args = array( |
| 229 | 228 | 'direction' => 'vertical', |
| 230 | 229 | ); |
| 231 | 230 | |
| 231 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 232 | 232 | ?> |
| 233 | 233 | <div class="frm-card-item frm-px-sm"> |
| 234 | 234 | <?php require FrmAppHelper::plugin_path() . '/classes/views/shared/get-free-templates-banner.php'; ?> |
| 235 | 235 | </div> |
| 236 | 236 | <?php |
| 237 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 237 | 238 | } |
| 238 | 239 | |
| 239 | 240 | /** |
| 240 | 241 | * Checks if the get free templates banner should be displayed. |
| @@ -256,10 +257,12 @@ | ||
| 256 | 257 | * |
| 257 | 258 | * @return bool |
| 258 | 259 | */ |
| 259 | 260 | private static function needs_free_plan( $template ) { |
| 261 | + // phpcs:disable Generic.WhiteSpace.ScopeIndent | |
| 260 | 262 | return self::needs_get_free_templates_banner() |
| 261 | 263 | && ! empty( $template['category_slugs'] ) |
| 262 | 264 | && in_array( 'free', $template['category_slugs'], true ) |
| 263 | 265 | && ! in_array( $template['id'], FrmFormTemplatesController::FREE_TEMPLATES_IDS, true ); |
| 266 | + // phpcs:enable Generic.WhiteSpace.ScopeIndent | |
| 264 | 267 | } |
| 265 | 268 | } |