PluginProbe ʕ •ᴥ•ʔ
Hustle – Email Marketing, Lead Generation, Optins, Popups / 7.8.14.1
Hustle – Email Marketing, Lead Generation, Optins, Popups v7.8.14.1
7.8.14 7.8.14.1 7.8.13 7.8.13.1 trunk 3.0 3.1 3.1.1 3.1.2 3.1.3 3.1.4 4.3.2 4.4.4 4.4.5 4.4.5.1 4.4.5.4 4.6 4.6.1.1 4.6.1.4 4.7.0.2 4.7.0.3 4.7.0.7 4.7.0.9 4.7.1.0 4.7.1.1 4.8.0.0 5.0.0 5.0.1 5.0.1.1 5.0.1.2 5.1 5.1.1 5.1.2 5.1.3 5.1.3.1 5.1.3.2 5.1.4 5.1.5 6.0 6.0.1 6.0.2 6.0.3 6.0.4.2 6.0.5 6.0.6.1 6.0.7 6.0.8.1 6.0.9 7.0.0.1 7.0.2 7.0.3 7.0.4 7.1.0 7.1.1 7.2.0 7.2.1 7.3.0 7.3.1 7.3.3 7.3.5 7.3.6 7.3.7 7.4.0 7.4.1 7.4.11 7.4.13 7.4.13.1 7.4.2 7.4.3 7.4.4 7.4.5 7.4.5.1 7.4.5.2 7.4.6 7.4.7 7.5.0 7.6.0 7.6.1 7.6.3 7.6.4 7.6.6 7.7.0 7.7.1 7.8.0 7.8.1 7.8.10 7.8.10.1 7.8.10.2 7.8.11 7.8.12 7.8.12.1 7.8.2 7.8.3 7.8.4 7.8.5 7.8.6 7.8.7 7.8.8 7.8.9 7.8.9.1 7.8.9.2 7.8.9.3
wordpress-popup / views / admin / global / sui-components / sui-settings-row.php
wordpress-popup / views / admin / global / sui-components Last commit date
footer 2 years ago sui-accordion.php 10 months ago sui-box-header.php 3 years ago sui-button.php 4 years ago sui-checkbox.php 3 years ago sui-footer.php 3 years ago sui-header.php 4 years ago sui-icon.php 5 years ago sui-notice.php 3 years ago sui-row.php 3 years ago sui-select.php 3 years ago sui-settings-row.php 5 months ago sui-tabs.php 3 years ago sui-tutorials.php 4 years ago
sui-settings-row.php
80 lines
1 <?php
2 /**
3 * SUI Settings Row
4 *
5 * @package Hustle
6 * @since 4.3.0
7 */
8
9 $vanilla_hide = ( isset( $vanilla_hide ) ) ? $vanilla_hide : false;
10 $label_tag = ( isset( $label_tag ) && ! empty( $label_tag ) ) ? $label_tag : 'h3';
11 $has_label = ( isset( $label ) && ! empty( $label ) ) ? true : false;
12 $has_description = ( isset( $description ) && ! empty( $description ) ) ? true : false;
13 $has_multiline_description = ( isset( $multi_description ) && ! empty( $multi_description ) ) ? true : false;
14 $description_class = ( isset( $label ) ) ? 'hustle-' . sanitize_title( $label ) . '-elements-row' : '';
15 ?>
16
17 <?php
18 printf(
19 '<div class="sui-box-settings-row %s"%s>',
20 esc_attr( $description_class ),
21 $vanilla_hide ? ' data-toggle-content="use-vanilla"' : ''
22 );
23 ?>
24
25 <?php if ( $has_label || $has_multiline_description || $has_description ) { ?>
26
27 <div class="sui-box-settings-col-1">
28
29 <?php
30 if ( $has_label ) {
31
32 switch ( $label_tag ) {
33
34 case 'h3':
35 echo '<h3 class="sui-settings-label">' . esc_html( $label ) . '</h3>';
36 break;
37
38 case 'h4':
39 echo '<h4 class="sui-settings-label">' . esc_html( $label ) . '</h4>';
40 break;
41
42 case 'h5':
43 echo '<h5 class="sui-settings-label">' . esc_html( $label ) . '</h5>';
44 break;
45
46 case 'h6':
47 echo '<h6 class="sui-settings-label">' . esc_html( $label ) . '</h6>';
48 break;
49
50 case 'p':
51 echo '<p class="sui-settings-label">' . esc_html( $label ) . '</p>';
52 break;
53
54 default:
55 echo '<h2 class="sui-settings-label">' . esc_html( $label ) . '</h2>';
56 break;
57 }
58 }
59
60 if ( $has_multiline_description ) {
61 foreach ( $multi_description as $k => $description ) {
62 echo '<p class="sui-description">' . wp_kses_post( $description ) . '</p>';
63 }
64 } elseif ( $has_description ) {
65 echo '<p class="sui-description">' . wp_kses_post( $description ) . '</p>';
66 }
67 ?>
68
69 </div>
70
71 <?php } ?>
72
73 <div class="sui-box-settings-col-2">
74
75 <?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
76
77 </div>
78
79 </div>
80