PluginProbe ʕ •ᴥ•ʔ
Secure Custom Fields / trunk
Secure Custom Fields vtrunk
6.9.1 6.9.0 6.8.9 6.8.7 6.8.8 6.8.6 6.8.4 6.8.5 trunk 6.4.0-beta1 6.4.0-beta2 6.4.1 6.4.1-beta3 6.4.1-beta4 6.4.1-beta5 6.4.1-beta6 6.4.1-beta7 6.4.2 6.5.0 6.5.1 6.5.2 6.5.3 6.5.4 6.5.5 6.5.6 6.5.7 6.6.0 6.7.0 6.7.1 6.8.0 6.8.1 6.8.2 6.8.3
secure-custom-fields / includes / admin / views / browse-fields-modal.php
secure-custom-fields / includes / admin / views Last commit date
acf-field-group 2 months ago acf-post-type 1 week ago acf-taxonomy 1 year ago acf-ui-options-page 1 year ago beta-features 1 year ago global 7 months ago tools 1 year ago upgrade 7 months ago browse-fields-modal.php 1 year ago escaped-html-notice.php 1 year ago html-options-page.php 1 year ago index.php 1 year ago
browse-fields-modal.php
80 lines
1 <?php
2 //phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- included template file.
3
4 $browse_fields_tabs = array( 'popular' => __( 'Popular', 'secure-custom-fields' ) );
5 $browse_fields_tabs = $browse_fields_tabs + acf_get_field_categories_i18n();
6
7 ?>
8 <div class="acf-browse-fields-modal-wrap">
9 <div class="acf-modal acf-browse-fields-modal">
10 <div class="acf-field-picker">
11 <div class="acf-modal-title">
12 <h1><?php esc_html_e( 'Select Field Type', 'secure-custom-fields' ); ?></h1>
13 <span class="acf-search-field-types-wrap">
14 <input class="acf-search-field-types" type="search" placeholder="<?php esc_attr_e( 'Search fields...', 'secure-custom-fields' ); ?>" />
15 </span>
16 </div>
17 <div class="acf-modal-content">
18 <?php
19 foreach ( $browse_fields_tabs as $name => $label ) {
20 acf_render_field_wrap(
21 array(
22 'type' => 'tab',
23 'label' => $label,
24 'key' => 'acf_browse_fields_tabs',
25 )
26 );
27
28 printf(
29 '<div class="acf-field-types-tab" data-category="%s"></div>',
30 esc_attr( $name )
31 );
32 }
33 ?>
34 <div class="acf-field-type-search-results"></div>
35 <div class="acf-field-type-search-no-results">
36 <img src="<?php echo esc_url( acf_get_url( 'assets/images/face-sad.svg' ) ); ?>" />
37 <p class="acf-no-results-text">
38 <?php
39 printf(
40 /* translators: %s: The invalid search term */
41 acf_esc_html( __( "No search results for '%s'", 'secure-custom-fields' ) ),
42 '<span class="acf-invalid-search-term"></span>'
43 );
44 ?>
45 </p>
46 <p>
47 <?php
48 $browse_popular_link = '<a href="#" class="acf-browse-popular-fields">' . esc_html( __( 'Popular fields', 'secure-custom-fields' ) ) . '</a>';
49 printf(
50 /* translators: %s: A link to the popular fields used in ACF */
51 acf_esc_html( __( 'Try a different search term or browse %s', 'secure-custom-fields' ) ),
52 $browse_popular_link //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
53 );
54 ?>
55 </p>
56 </div>
57 </div>
58 <div class="acf-modal-toolbar acf-field-picker-toolbar">
59 <div class="acf-field-picker-label">
60 <input class="acf-insert-field-label" type="text" placeholder="<?php esc_attr_e( 'Field Label', 'secure-custom-fields' ); ?>" />
61 </div>
62 <div class="acf-field-picker-actions">
63 <button class="button acf-cancel acf-modal-close"><?php esc_html_e( 'Cancel', 'secure-custom-fields' ); ?></button>
64 <button class="acf-btn acf-select-field"><?php esc_html_e( 'Select Field', 'secure-custom-fields' ); ?></button>
65 </div>
66 </div>
67 </div>
68 <div class="acf-field-type-preview">
69 <div class="field-type-info">
70 <h2 class="field-type-name"></h2>
71 <p class="field-type-desc"></p>
72 <div class="field-type-preview-container">
73 <img class="field-type-image" />
74 </div>
75 </div>
76 </div>
77 </div>
78 <div class="acf-modal-backdrop acf-modal-close"></div>
79 </div>
80