PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.07.01
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.07.01
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/list.php +31 -21 6.3.2 → 4.07.01 View file →
@@ -42,23 +42,19 @@
42 42 <div id="the-list" class="frm-addons">
43 43 <?php foreach ( $addons as $slug => $addon ) { ?>
44 44 <div class="frm-card plugin-card-<?php echo esc_attr( $slug ); ?> frm-no-thumb frm-addon-<?php echo esc_attr( $addon['status']['type'] ); ?>">
45 45 <div class="plugin-card-top">
46 + <?php if ( strtotime( $addon['released'] ) > strtotime( '-90 days' ) ) { ?>
47 + <div class="frm_ribbon">
48 + <span>New</span>
49 + </div>
50 + <?php } ?>
46 51 <h2>
47 - <?php
48 - echo esc_html( $addon['title'] );
49 -
50 - if ( ! empty( $addon['is_new'] ) ) {
51 - FrmAppHelper::show_pill_text();
52 - }
53 - ?>
52 + <?php echo esc_html( $addon['title'] ); ?>
54 53 </h2>
55 54 <p>
56 - <?php
57 - echo FrmAppHelper::kses( $addon['excerpt'], array( 'a' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
58 -
59 - $show_docs = isset( $addon['docs'] ) && ! empty( $addon['docs'] ) && $addon['installed'];
60 - ?>
55 + <?php echo esc_html( $addon['excerpt'] ); ?>
56 + <?php $show_docs = isset( $addon['docs'] ) && ! empty( $addon['docs'] ) && $addon['installed']; ?>
61 57 <?php if ( $show_docs ) { ?>
62 58 <br/><a href="<?php echo esc_url( $addon['docs'] ); ?>" target="_blank" aria-label="<?php esc_attr_e( 'View Docs', 'formidable' ); ?>">
63 59 <?php esc_html_e( 'View Docs', 'formidable' ); ?>
64 60 </a>
@@ -80,17 +76,31 @@
80 76 '<span class="addon-status-label">' . esc_html( $addon['status']['label'] ) . '</span>'
81 77 );
82 78 ?>
83 79 </span>
84 - <?php
85 - $passing = array(
86 - 'addon' => $addon,
87 - 'license_type' => ! empty( $license_type ) ? $license_type : false,
88 - 'plan_required' => 'plan_required',
89 - 'upgrade_link' => $pricing,
90 - );
91 - FrmAddonsController::show_conditional_action_button( $passing );
92 - ?>
80 + <?php if ( $addon['status']['type'] === 'installed' ) { ?>
81 + <a rel="<?php echo esc_attr( $addon['plugin'] ); ?>" class="button button-primary frm-button-primary frm-activate-addon <?php echo esc_attr( empty( $addon['activate_url'] ) ? 'frm_hidden' : '' ); ?>">
82 + <?php esc_html_e( 'Activate', 'formidable' ); ?>
83 + </a>
84 + <?php } elseif ( isset( $addon['url'] ) && ! empty( $addon['url'] ) ) { ?>
85 + <a class="frm-install-addon button button-primary frm-button-primary" rel="<?php echo esc_attr( $addon['url'] ); ?>" aria-label="<?php esc_attr_e( 'Install', 'formidable' ); ?>">
86 + <?php esc_html_e( 'Install', 'formidable' ); ?>
87 + </a>
88 + <?php } elseif ( ! empty( $license_type ) && $license_type === strtolower( $plan_required ) ) { ?>
89 + <a class="install-now button button-secondary frm-button-secondary" href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'addons', 'account/downloads/' ) . '&utm_content=' . $addon['slug'] ); ?>" target="_blank" aria-label="<?php esc_attr_e( 'Upgrade Now', 'formidable' ); ?>">
90 + <?php esc_html_e( 'Renew Now', 'formidable' ); ?>
91 + </a>
92 + <?php } else { ?>
93 + <?php
94 + if ( isset( $addon['categories'] ) && in_array( 'Solution', $addon['categories'] ) ) {
95 + // Solutions will go to a separate page.
96 + $pricing = FrmAppHelper::admin_upgrade_link( 'addons', $addon['link'] );
97 + }
98 + ?>
99 + <a class="install-now button button-secondary frm-button-secondary" href="<?php echo esc_url( $pricing . '&utm_content=' . $addon['slug'] ); ?>" target="_blank" rel="noopener" aria-label="<?php esc_attr_e( 'Upgrade Now', 'formidable' ); ?>">
100 + <?php esc_html_e( 'Upgrade Now', 'formidable' ); ?>
101 + </a>
102 + <?php } ?>
93 103 </div>
94 104 </div>
95 105 <?php } ?>
96 106 </div>