PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22
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
formidable / classes / views / form-templates / index.php

index.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.22, at classes/views/form-templates/index.php

84 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Form Templates Page.
4 *
5 * @package Formidable
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 die( 'You are not allowed to call this page directly.' );
10 }
11 ?>
12 <div id="frm-form-templates-page" class="frm_wrap frm-page-skeleton">
13 <div class="frm_page_container">
14 <?php
15 FrmAppHelper::get_admin_header(
16 array(
17 'label' => __( 'Form Templates', 'formidable' ),
18 'publish' => array( 'FrmFormTemplatesController::get_header_cancel_button', array() ),
19 )
20 );
21 ?>
22
23 <div class="columns-2">
24 <div id="frm-page-skeleton-sidebar" class="frm-right-panel frm-flex-col frm-hide-js">
25 <div class="frm-scrollbar-wrapper frm-flex-col frm-gap-sm">
26 <?php
27 // Search box.
28 FrmAppHelper::show_search_box(
29 array(
30 'input_id' => 'template',
31 'placeholder' => __( 'Search Templates', 'formidable' ),
32 'tosearch' => 'frm-searchable-template',
33 )
34 );
35
36 // Categories list.
37 require $view_path . 'categories.php';
38 ?>
39 </div>
40 </div>
41
42 <div id="post-body-content" class="frm-flex-col frm-gap-sm frm-p-md frm-hide-js">
43 <div class="frm-list-grid-layout">
44 <button id="frm-form-templates-create-form" class="frm-flex-box frm-items-center frm-form-templates-create-button">
45 <?php FrmAppHelper::icon_by_class( 'frmfont frm_plus_icon', array( 'aria-label' => _x( 'Create', 'form templates: create a blank form', 'formidable' ) ) ); ?>
46 <span><?php esc_html_e( 'Create a blank form', 'formidable' ); ?></span>
47 </button>
48 <?php
49 /**
50 * Trigger an action so the AI add-on can include a "Create with AI" button.
51 *
52 * @since 6.10
53 */
54 do_action( 'frm_after_create_blank_form_button' );
55 ?>
56 </div>
57 <span id="frm-form-templates-create-form-divider" class="frm-page-skeleton-divider frm-mt-xs frm-mb-xs"></span>
58
59 <?php
60 // Templates list.
61 require $view_path . 'list.php';
62 ?>
63 </div>
64 </div>
65 </div>
66
67 <?php
68 /**
69 * Hidden form used for creating or using a form template.
70 *
71 * This form works in the background and is not shown to the user. It gets submitted by JavaScript
72 * when the user clicks on either the 'Create a blank form' or 'Use template' buttons, sending the user's choices.
73 *
74 * @see formidable_admin::installNewForm() This method handles the form submission.
75 */
76 ?>
77 <form class="frm_hidden" id="frm-new-template" name="frm-new-template" method="post">
78 <input type="hidden" name="template_name" id="frm_template_name" value="" />
79 <input type="hidden" name="template_desc" id="frm_template_desc" />
80 <input type="hidden" name="link" id="frm_link" value="" />
81 <input type="hidden" name="type" id="frm_action_type" value="frm_install_template" />
82 </form>
83 </div>
84