|
7 | 7 | ?> |
8 | 8 | <div class="wu-styling <?php echo esc_attr($className); ?>"> |
9 | 9 |
|
10 | | - <div class="<?php echo wu_env_picker('', 'wu-widget-inset'); ?>"> |
| 10 | + <div class="<?php echo esc_attr(wu_env_picker('', 'wu-widget-inset')); ?>"> |
11 | 11 |
|
12 | 12 | <!-- Title Element --> |
13 | | - <div class="wu-p-4 wu-flex wu-items-center <?php echo wu_env_picker('', 'wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-b wu-border-gray-200'); ?>"> |
| 13 | + <div class="wu-p-4 wu-flex wu-items-center <?php echo esc_attr(wu_env_picker('', 'wu-bg-gray-100 wu-border-solid wu-border-0 wu-border-b wu-border-gray-200')); ?>"> |
14 | 14 |
|
15 | 15 | <?php if ($title) : ?> |
16 | 16 |
|
17 | | - <h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>"> |
| 17 | + <h3 class="wu-m-0 <?php echo esc_attr(wu_env_picker('', 'wu-widget-title')); ?>"> |
18 | 18 |
|
19 | 19 | <?php echo esc_html($title); ?> |
20 | 20 |
|
|
25 | 25 | </div> |
26 | 26 | <!-- Title Element - End --> |
27 | 27 |
|
28 | | - <ul class="wu-list-none wu-m-0 wu-p-4 wu-grid wu-gap-2 wu-row-gap-0 lg:wu-grid-cols-<?php echo esc_attr((int) $columns); ?> <?php echo wu_env_picker('', 'wu-p-4'); ?>"> |
| 28 | + <ul class="wu-list-none wu-m-0 wu-p-4 wu-grid wu-gap-2 wu-row-gap-0 lg:wu-grid-cols-<?php echo esc_attr((int) $columns); ?> <?php echo esc_attr(wu_env_picker('', 'wu-p-4')); ?>"> |
29 | 29 |
|
30 | 30 | <?php if ($post_type_limits->is_enabled()) : ?> |
31 | 31 |
|
|
66 | 66 |
|
67 | 67 | <span class="wu-w-full wu-bg-gray-200 wu-rounded-full wu-h-1 wu-block wu-my-2"> |
68 | 68 |
|
69 | | - <span class="<?php echo esc_attr(wu_get_random_color($index)); ?> wu-rounded-full wu-h-1 wu-block wu-my-1" style="width: <?php echo $width; ?>%;"></span> |
| 69 | + <span class="<?php echo esc_attr(wu_get_random_color($index)); ?> wu-rounded-full wu-h-1 wu-block wu-my-1" style="width: <?php echo esc_attr($width); ?>%;"></span> |
70 | 70 |
|
71 | 71 | </span> |
72 | 72 |
|
|
115 | 115 |
|
116 | 116 | <?php esc_html_e('Unique Visits', 'wp-multisite-waas'); ?> |
117 | 117 |
|
118 | | - <?php echo wu_tooltip(sprintf(__('Next Reset: %s', 'wp-multisite-waas'), date_i18n(get_option('date_format', 'd/m/Y'), strtotime('last day of this month')))); ?> |
| 118 | + <?php echo wu_tooltip(sprintf(esc_html__('Next Reset: %s', 'wp-multisite-waas'), date_i18n(get_option('date_format', 'd/m/Y'), strtotime('last day of this month')))); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
119 | 119 |
|
120 | 120 | </div> |
121 | 121 |
|
122 | 122 | <span class="wu-w-full wu-bg-gray-200 wu-rounded-full wu-h-1 wu-block wu-my-3"> |
123 | 123 |
|
124 | | - <span class="wu-bg-orange-500 wu-rounded-full wu-h-1 wu-block wu-my-1" style="width: <?php echo $visits_width; ?>%;"></span> |
| 124 | + <span class="wu-bg-orange-500 wu-rounded-full wu-h-1 wu-block wu-my-1" style="width: <?php echo esc_attr($visits_width); ?>%;"></span> |
125 | 125 |
|
126 | 126 | </span> |
127 | 127 |
|
128 | 128 | <div class="wu-text-xs wu-text-gray-600 wu-align-middle"> |
129 | 129 |
|
130 | 130 | <?php echo number_format($visits_count); ?> |
131 | 131 | / |
132 | | - <?php echo $visit_limitations->get_limit() == 0 ? __('Unlimited', 'wp-multisite-waas') : number_format((int) $visit_limitations->get_limit()); ?> |
| 132 | + <?php echo $visit_limitations->get_limit() == 0 ? esc_html__('Unlimited', 'wp-multisite-waas') : esc_html(number_format((int) $visit_limitations->get_limit())); ?> |
133 | 133 |
|
134 | 134 | </div> |
135 | 135 |
|
|
0 commit comments