PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.18
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.18
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/addons/addon.php +11 -16 6.336.18 View file →
@@ -2,12 +2,8 @@
2 2 /**
3 3 * Add-Ons addon view.
4 4 *
5 5 * @package Formidable
6 - *
7 - * @var array $addon Single add-on data (slug, title, display_name, excerpt, status, docs, docs_label, is_new, etc.).
8 - * @var string $license_type Current license type or empty string.
9 - * @var string $pricing Upgrade URL used for CTAs.
10 6 */
11 7
12 8 if ( ! defined( 'ABSPATH' ) ) {
13 9 die( 'You are not allowed to call this page directly.' );
@@ -33,15 +29,9 @@
33 29 ?>
34 30 </h3>
35 31
36 32 <?php
37 - if ( FrmAddonsHelper::is_locked() ) {
38 - ?>
39 - <span class="frm-card-lock-icon frm-ml-auto">
40 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_lock_icon', array( 'aria-label' => __( 'Lock icon', 'formidable' ) ) ); ?>
41 - </span>
42 - <?php
43 - } else {
33 + if ( ! FrmAddonsHelper::is_locked() ) {
44 34 FrmAddonsController::show_conditional_action_button(
45 35 array(
46 36 'addon' => $addon,
47 37 'license_type' => ! empty( $license_type ) ? $license_type : false,
@@ -59,14 +49,20 @@
59 49 'echo' => true,
60 50 'aria-label-attr' => $addon['title'],
61 51 )
62 52 );
53 + } else {
54 + ?>
55 + <span class="frm-card-lock-icon frm-ml-auto">
56 + <?php FrmAppHelper::icon_by_class( 'frmfont frm_lock_icon', array( 'aria-label' => __( 'Lock icon', 'formidable' ) ) ); ?>
57 + </span>
58 + <?php
63 59 }//end if
64 60 ?>
65 61 </div>
66 62
67 63 <p class="frm-line-clamp-2">
68 - <?php FrmAppHelper::kses_echo( $addon['excerpt'], array( 'a' ) ); ?>
64 + <?php echo FrmAppHelper::kses( $addon['excerpt'], array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
69 65 </p>
70 66
71 67 <span class="frm-page-skeleton-divider frm-mt-auto"></span>
72 68
@@ -72,17 +68,16 @@
72 68
73 69 <div class="frm-flex frm-items-center frm-justify-between">
74 70 <?php
75 71 if ( ! empty( $addon['docs'] ) && ! FrmAddonsHelper::get_plan() ) {
76 - $docs_label = ! empty( $addon['docs_label'] ) ? $addon['docs_label'] : __( 'View Docs', 'formidable' );
77 72 ?>
78 - <a class="frm-link-with-external-icon" href="<?php echo esc_url( $addon['docs'] ); ?>" target="_blank" aria-label="<?php echo esc_attr( $docs_label ); ?>">
79 - <?php echo esc_html( $docs_label ); ?>
73 + <a class="frm-link-with-external-icon" href="<?php echo esc_url( $addon['docs'] ); ?>" target="_blank" aria-label="<?php esc_attr_e( 'View Docs', 'formidable' ); ?>">
74 + <?php esc_html_e( 'View Docs', 'formidable' ); ?>
80 75 <?php FrmAppHelper::icon_by_class( 'frmfont frm_arrowup8_icon' ); ?>
81 76 </a>
82 77 <?php
83 78 } else {
84 - FrmFormsHelper::show_plan_required( FrmAddonsHelper::get_plan(), $pricing . '&utm_content=' . $addon['slug'] );
79 + FrmFormsHelper::show_plan_required( FrmAddonsHelper::get_plan(), $pricing . ' & utm_content = ' . $addon['slug'] );
85 80 ?>
86 81 <div>
87 82 <?php FrmAddonsController::addon_upgrade_link( $addon, $pricing ); ?>
88 83 </div>