PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 / frm-forms / forms-list-settings.php

forms-list-settings.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at classes/views/frm-forms/forms-list-settings.php

100 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template for the forms list settings
4 *
5 * @since 6.32
6 *
7 * @package Formidable
8 *
9 * @var int $per_page
10 * @var array $columns
11 * @var array $hidden
12 * @var array $skip_cols
13 * @var bool $show_screen_options
14 * @var WP_Screen $screen
15 */
16
17 if ( ! defined( 'ABSPATH' ) ) {
18 die( 'You are not allowed to call this page directly.' );
19 }
20 ?>
21 <div id="frm-forms-list-settings" class="frm_hidden frm-p-2xs">
22 <div class="frm-collapsible-box">
23 <a href="#" class="frm-collapsible-box__btn">
24 <?php
25 esc_html_e( 'Columns', 'formidable' );
26 FrmAppHelper::icon_by_class( 'frmfont frm_arrowup6_icon' );
27 ?>
28 </a>
29
30 <?php
31 $attrs = array(
32 'class' => 'frm-collapsible-box__content',
33 );
34
35 if ( ! $show_screen_options ) {
36 $attrs['id'] = 'adv-settings';
37 wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false );
38 }
39 ?>
40 <div <?php FrmAppHelper::array_to_html_params( $attrs, true ); ?>>
41 <div class="frm-forms-list-column-checkboxes">
42 <?php
43 foreach ( $columns as $key => $label ) {
44 if ( in_array( $key, $skip_cols, true ) ) {
45 continue;
46 }
47
48 $is_hidden = in_array( $key, $hidden, true );
49 ?>
50 <label>
51 <input
52 type="checkbox"
53 class="hide-column-tog"
54 value="<?php echo esc_attr( $key ); ?>"
55 data-wp-column-input-id="<?php echo esc_attr( $key ); ?>-hide"
56 <?php checked( ! $is_hidden ); ?>
57 />
58 <?php echo esc_html( $label ); ?>
59 </label>
60 <?php
61 }//end foreach
62 ?>
63 </div>
64 </div>
65 </div>
66
67 <hr />
68
69 <div class="frm-flex frm-items-center frm-justify-between frm-mb-sm frm-pt-2xs">
70 <label for="frm-forms-list-show-desc"><?php esc_html_e( 'Description Excerpt', 'formidable' ); ?></label>
71 <?php
72 FrmHtmlHelper::toggle(
73 'frm-forms-list-show-desc',
74 'frm_forms_show_desc',
75 array(
76 'echo' => true,
77 'checked' => 'excerpt' === FrmAppHelper::simple_get( 'mode', 'sanitize_title' ),
78 )
79 );
80 ?>
81 </div>
82
83 <div class="frm-flex frm-items-center frm-justify-between frm-mb-sm">
84 <label for="frm-forms-list-per-page"><?php esc_html_e( 'Items per page', 'formidable' ); ?></label>
85 <input
86 type="number"
87 id="frm-forms-list-per-page"
88 value="<?php echo intval( $per_page ); ?>"
89 min="1"
90 data-wp-screen-option-id="formidable_page_formidable_per_page"
91 />
92 </div>
93
94 <hr />
95
96 <div style="text-align: right;" class="frm-pt-2xs frm-pb-xs">
97 <button type="button" class="frm-button-primary button-primary" id="frm-save-forms-list-settings-btn"><?php esc_html_e( 'Apply', 'formidable' ); ?></button>
98 </div>
99 </div>
100