PluginProbe
Filter Everything — WordPress & WooCommerce Filters / trunk
Filter Everything — WordPress & WooCommerce Filters vtrunk
1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 1.6.3 All 51 releases
filter-everything / views / admin / filter-field-label.php

filter-field-label.php in Filter Everything — WordPress & WooCommerce Filters trunk, at views/admin/filter-field-label.php

29 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined('ABSPATH') ) {
4 exit;
5 }
6 $pro_class = '';
7 if( isset( $attributes['pro_label'] ) && $attributes['pro_label'] ){
8 $pro_class = ' wpc-pro-badge-text';
9 }
10 ?><td class="wpc-filter-label-td<?php echo $pro_class; ?>"><?php
11 $label = esc_html( $attributes['label'] );
12 $pro_class = '';
13 if( isset( $attributes['pro_label'] ) && $attributes['pro_label'] ){
14 $pro_class = ' wpc-filter-label-in-pro';
15 }
16 if( $label ) :
17 ?><label <?php if( isset( $attributes['id'] ) && $attributes['type'] !== 'Radio' ){ echo 'for="'. esc_attr( $attributes['id'] ).'"'; } ?> class="wpc-filter-label<?php echo $pro_class; ?>"><?php
18 echo '<span class="wpc-label-text">'.$label.'</span>';
19 if( isset( $attributes['required'] ) && $attributes['required'] ){
20 echo '<span class="wpc-field-required">*</span>'."\n";
21 }
22 if( isset( $attributes['pro_label'] ) && $attributes['pro_label'] ){
23 echo '<span>' . $attributes['pro_label'] . '</span>';
24 }
25 ?></label>
26 <?php echo flrt_field_instructions($attributes); // Already escaped in function ?>
27 <?php echo flrt_tooltip($attributes); ?>
28 <?php endif; ?>
29 </td>