PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 5.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v5.0
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 +83 -10 6.305.0 View file →
@@ -1,21 +1,94 @@
1 1 <?php
2 2 if ( ! defined( 'ABSPATH' ) ) {
3 3 die( 'You are not allowed to call this page directly.' );
4 4 }
5 -
6 -FrmAddonsHelper::show_upgrade_renew_cta();
7 -FrmAddonsHelper::get_reconnect_link();
8 5 ?>
6 +<div class="frm_wrap" id="frm-addons-page">
7 + <?php
8 + FrmAppHelper::get_admin_header(
9 + array(
10 + 'label' => __( 'Formidable Add-Ons', 'formidable' ),
11 + )
12 + );
13 + ?>
14 + <div class="wrap">
9 15
10 -<ul id="frm-addons-list" class="frm-list-grid-layout frm-mb-xs">
11 16 <?php
12 - foreach ( $addons as $slug => $addon ) {
13 - require $view_path . 'addon.php';
17 + include( FrmAppHelper::plugin_path() . '/classes/views/shared/errors.php' );
18 +
19 + FrmAppHelper::show_search_box(
20 + array(
21 + 'input_id' => 'addon',
22 + 'placeholder' => __( 'Search Add-ons', 'formidable' ),
23 + 'tosearch' => 'frm-card',
24 + )
25 + );
26 +
27 + if ( FrmAppHelper::pro_is_connected() ) {
28 + ?>
29 + <p class="alignleft">
30 + <?php esc_html_e( 'Missing add-ons?', 'formidable' ); ?>
31 + <a href="#" id="frm_reconnect_link" class="frm-show-authorized" data-refresh="1">
32 + <?php esc_html_e( 'Check now for a recent upgrade or renewal', 'formidable' ); ?>
33 + </a>
34 + </p>
35 + <?php
36 + } else {
37 + FrmSettingsController::license_box();
14 38 }
15 39 ?>
16 -</ul>
40 + <div class="clear"></div>
17 41
18 -<div class="frm-addons-request-addon frm-py-2xs frm-mt-xs">
19 - <span><?php esc_html_e( 'Not finding what you need?', 'formidable' ); ?></span>
20 - <a class="frm-font-semibold" href="<?php echo esc_url( $request_addon_url ); ?>" target="_blank"><?php esc_html_e( 'Request Add-On', 'formidable' ); ?></a>
42 + <div id="the-list" class="frm-addons">
43 + <?php foreach ( $addons as $slug => $addon ) { ?>
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 + <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 } ?>
51 + <h2>
52 + <?php echo esc_html( $addon['title'] ); ?>
53 + </h2>
54 + <p>
55 + <?php echo esc_html( $addon['excerpt'] ); ?>
56 + <?php $show_docs = isset( $addon['docs'] ) && ! empty( $addon['docs'] ) && $addon['installed']; ?>
57 + <?php if ( $show_docs ) { ?>
58 + <br/><a href="<?php echo esc_url( $addon['docs'] ); ?>" target="_blank" aria-label="<?php esc_attr_e( 'View Docs', 'formidable' ); ?>">
59 + <?php esc_html_e( 'View Docs', 'formidable' ); ?>
60 + </a>
61 + <?php } ?>
62 + </p>
63 + <?php
64 + $plan_required = FrmFormsHelper::get_plan_required( $addon );
65 + if ( ! $show_docs ) {
66 + FrmFormsHelper::show_plan_required( $plan_required, $pricing . '&utm_content=' . $addon['slug'] );
67 + }
68 + ?>
69 + </div>
70 + <div class="plugin-card-bottom">
71 + <span class="addon-status">
72 + <?php
73 + printf(
74 + /* translators: %s: Status name */
75 + esc_html__( 'Status: %s', 'formidable' ),
76 + '<span class="addon-status-label">' . esc_html( $addon['status']['label'] ) . '</span>'
77 + );
78 + ?>
79 + </span>
80 + <?php
81 + $passing = array(
82 + 'addon' => $addon,
83 + 'license_type' => ! empty( $license_type ) ? $license_type : false,
84 + 'plan_required' => 'plan_required',
85 + 'upgrade_link' => $pricing,
86 + );
87 + FrmAddonsController::show_conditional_action_button( $passing );
88 + ?>
89 + </div>
90 + </div>
91 + <?php } ?>
92 + </div>
93 +</div>
21 94 </div>