| @@ -104,10 +104,10 @@ | ||
| 104 | 104 | } ?> |
| 105 | 105 | <?php if (isset($settings['show_wishlist']) ? $settings['show_wishlist'] : true): ?> |
| 106 | 106 | <a href="<?php echo esc_url($redirect_url); ?>" |
| 107 | 107 | class="usk-action-btn ajax_add_to_wishlist usk-shoping-icon-wishlist usk-btn usk-wishlist<?php echo esc_attr($selected); ?>" |
| 108 | - data-product_id="<?php echo absint($product_id); ?>" aria-label="<?php echo esc_html($tooltip); ?>" | |
| 109 | - data-aria_label="<?php echo esc_html__('View Wishlist', 'ultimate-store-kit'); ?>" | |
| 108 | + data-product_id="<?php echo absint($product_id); ?>" aria-label="<?php echo esc_attr($tooltip); ?>" | |
| 109 | + data-aria_label="<?php echo esc_attr__('View Wishlist', 'ultimate-store-kit'); ?>" | |
| 110 | 110 | data-redirect_url="<?php echo esc_url(wc_get_account_endpoint_url('wishlist')); ?>" |
| 111 | 111 | data-microtip-position="<?php echo esc_attr($tooltip_position); ?>" role="tooltip"> |
| 112 | 112 | <i class="icon usk-icon-heart-full"></i> |
| 113 | 113 | </a> |
| @@ -119,9 +119,9 @@ | ||
| 119 | 119 | { |
| 120 | 120 | global $product; |
| 121 | 121 | $user_id = get_current_user_id(); |
| 122 | 122 | $product_id = $product->get_ID(); |
| 123 | - $compare_products = usk_get_compare_products($user_id); | |
| 123 | + $compare_products = ultimate_store_kit_get_compare_products($user_id); | |
| 124 | 124 | $is_compared = in_array($product_id, $compare_products); |
| 125 | 125 | |
| 126 | 126 | $compare_page_id = ''; |
| 127 | 127 | if (function_exists('ultimate_store_kit_compare_product_page') && $comparePage = ultimate_store_kit_compare_product_page()) { |
| @@ -148,10 +148,10 @@ | ||
| 148 | 148 | <?php if (isset($settings['show_compare']) && $settings['show_compare'] == 'yes'): ?> |
| 149 | 149 | <a href="<?php echo esc_url($compare_page_link); ?>" |
| 150 | 150 | class="usk-action-btn ajax_add_to_compare usk-compare <?php echo esc_attr($selected); ?>" |
| 151 | 151 | data-product_id="<?php echo esc_attr($product_id); ?>" |
| 152 | - data-redirect_url="<?php echo esc_url($compare_redirect_link); ?>" aria-label="<?php echo esc_html($tooltip); ?>" | |
| 153 | - data-aria_label="<?php echo esc_html__('View Compare', 'ultimate-store-kit'); ?>" | |
| 152 | + data-redirect_url="<?php echo esc_url($compare_redirect_link); ?>" aria-label="<?php echo esc_attr($tooltip); ?>" | |
| 153 | + data-aria_label="<?php echo esc_attr__('View Compare', 'ultimate-store-kit'); ?>" | |
| 154 | 154 | data-microtip-position="<?php echo esc_attr($tooltip_position); ?>" role="tooltip"> |
| 155 | 155 | <i class="icon usk-icon-compare"></i> |
| 156 | 156 | </a> |
| 157 | 157 | <?php |
| @@ -168,9 +168,9 @@ | ||
| 168 | 168 | <?php wp_nonce_field('ajax-usk-quick-view-nonce', 'usk-quick-view-modal-sc'); |
| 169 | 169 | ?> |
| 170 | 170 | <a class="usk-action-btn usk-shoping-icon-quickview quick_view usk-view usk-btn" href="javascript:void(0)" |
| 171 | 171 | data-id="<?php echo absint($product_id); ?>" |
| 172 | - aria-label="<?php echo esc_html__('Quick View', 'ultimate-store-kit'); ?>" | |
| 172 | + aria-label="<?php echo esc_attr__('Quick View', 'ultimate-store-kit'); ?>" | |
| 173 | 173 | data-microtip-position="<?php echo esc_attr($tooltip_position); ?>" role="tooltip"> |
| 174 | 174 | <i class="icon usk-icon-preview"></i> |
| 175 | 175 | </a> |
| 176 | 176 | <?php endif; |
| @@ -260,15 +260,15 @@ | ||
| 260 | 260 | $hide_arrow_on_mobile = $settings['hide_arrow_on_mobile'] ? ' usk-visible@m' : ''; |
| 261 | 261 | |
| 262 | 262 | if ('arrows' == $settings['navigation']): ?> |
| 263 | 263 | <div style="direction: ltr;" |
| 264 | - class="usk-position-z-index usk-position-<?php echo esc_html($settings['arrows_position'] . $hide_arrow_on_mobile); ?>"> | |
| 264 | + class="usk-position-z-index usk-position-<?php echo esc_attr($settings['arrows_position'] . $hide_arrow_on_mobile); ?>"> | |
| 265 | 265 | <div class="usk-arrows-container usk-slidenav-container"> |
| 266 | 266 | <a href="" class="usk-navigation-prev usk-slidenav-previous usk-icon usk-slidenav"> |
| 267 | - <i class="usk-icon-arrow-left-<?php echo esc_html($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i> | |
| 267 | + <i class="usk-icon-arrow-left-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" aria-hidden="true"></i> | |
| 268 | 268 | </a> |
| 269 | 269 | <a href="" class="usk-navigation-next usk-slidenav-next usk-icon usk-slidenav"> |
| 270 | - <i class="usk-icon-arrow-right-<?php echo esc_html($settings['nav_arrows_icon']); ?>" | |
| 270 | + <i class="usk-icon-arrow-right-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" | |
| 271 | 271 | aria-hidden="true"></i> |
| 272 | 272 | </a> |
| 273 | 273 | </div> |
| 274 | 274 | </div> |
| @@ -278,9 +278,9 @@ | ||
| 278 | 278 | { |
| 279 | 279 | $settings = $this->get_settings_for_display(); |
| 280 | 280 | |
| 281 | 281 | if ('dots' == $settings['navigation'] or 'arrows-fraction' == $settings['navigation']): ?> |
| 282 | - <div class="usk-position-z-index usk-position-<?php echo esc_html($settings['dots_position']); ?>"> | |
| 282 | + <div class="usk-position-z-index usk-position-<?php echo esc_attr($settings['dots_position']); ?>"> | |
| 283 | 283 | <div class="usk-dots-container"> |
| 284 | 284 | <div class="swiper-pagination"></div> |
| 285 | 285 | </div> |
| 286 | 286 | </div> |
| @@ -286,9 +286,9 @@ | ||
| 286 | 286 | </div> |
| 287 | 287 | |
| 288 | 288 | <?php elseif ('progressbar' == $settings['navigation']): ?> |
| 289 | 289 | <div |
| 290 | - class="swiper-pagination usk-position-z-index usk-position-<?php echo esc_html($settings['progress_position']); ?>"> | |
| 290 | + class="swiper-pagination usk-position-z-index usk-position-<?php echo esc_attr($settings['progress_position']); ?>"> | |
| 291 | 291 | </div> |
| 292 | 292 | <?php endif; |
| 293 | 293 | } |
| 294 | 294 | protected function register_global_template_both_navigation() |
| @@ -296,15 +296,15 @@ | ||
| 296 | 296 | $settings = $this->get_settings_for_display(); |
| 297 | 297 | $hide_arrow_on_mobile = $settings['hide_arrow_on_mobile'] ? 'usk-visible@m usk-flex' : 'usk-flex'; |
| 298 | 298 | |
| 299 | 299 | ?> |
| 300 | - <div class="usk-position-z-index usk-position-<?php echo esc_html($settings['both_position']); ?>"> | |
| 300 | + <div class="usk-position-z-index usk-position-<?php echo esc_attr($settings['both_position']); ?>"> | |
| 301 | 301 | <div class="usk-arrows-dots-container usk-slidenav-container "> |
| 302 | 302 | |
| 303 | 303 | <div class="usk-flex usk-flex-middle"> |
| 304 | - <div class="<?php echo esc_html($hide_arrow_on_mobile); ?>"> | |
| 304 | + <div class="<?php echo esc_attr($hide_arrow_on_mobile); ?>"> | |
| 305 | 305 | <a href="" class="usk-navigation-prev usk-slidenav-previous usk-icon usk-slidenav"> |
| 306 | - <i class="usk-icon-arrow-left-<?php echo esc_html($settings['nav_arrows_icon']); ?>" | |
| 306 | + <i class="usk-icon-arrow-left-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" | |
| 307 | 307 | aria-hidden="true"></i> |
| 308 | 308 | </a> |
| 309 | 309 | </div> |
| 310 | 310 | |
| @@ -311,11 +311,11 @@ | ||
| 311 | 311 | <?php if ('center' !== $settings['both_position']): ?> |
| 312 | 312 | <div class="swiper-pagination"></div> |
| 313 | 313 | <?php endif; ?> |
| 314 | 314 | |
| 315 | - <div class="<?php echo esc_html($hide_arrow_on_mobile); ?>"> | |
| 315 | + <div class="<?php echo esc_attr($hide_arrow_on_mobile); ?>"> | |
| 316 | 316 | <a href="" class="usk-navigation-next usk-slidenav-next usk-icon usk-slidenav"> |
| 317 | - <i class="usk-icon-arrow-right-<?php echo esc_html($settings['nav_arrows_icon']); ?>" | |
| 317 | + <i class="usk-icon-arrow-right-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" | |
| 318 | 318 | aria-hidden="true"></i> |
| 319 | 319 | </a> |
| 320 | 320 | </div> |
| 321 | 321 | |
| @@ -327,15 +327,15 @@ | ||
| 327 | 327 | protected function register_global_template_arrows_fraction() |
| 328 | 328 | { |
| 329 | 329 | $settings = $this->get_settings_for_display(); |
| 330 | 330 | $hide_arrow_on_mobile = $settings['hide_arrow_on_mobile'] ? 'usk-visible@m' : ''; ?> |
| 331 | - <div class="usk-position-z-index usk-position-<?php echo esc_html($settings['arrows_fraction_position']); ?>"> | |
| 331 | + <div class="usk-position-z-index usk-position-<?php echo esc_attr($settings['arrows_fraction_position']); ?>"> | |
| 332 | 332 | <div class="usk-arrows-fraction-container usk-slidenav-container "> |
| 333 | 333 | |
| 334 | 334 | <div class="usk-flex usk-flex-middle"> |
| 335 | - <div class="<?php echo esc_html($hide_arrow_on_mobile); ?>"> | |
| 335 | + <div class="<?php echo esc_attr($hide_arrow_on_mobile); ?>"> | |
| 336 | 336 | <a href="" class="usk-navigation-prev usk-slidenav-previous usk-icon usk-slidenav"> |
| 337 | - <i class="usk-icon-arrow-left-<?php echo esc_html($settings['nav_arrows_icon']); ?>" | |
| 337 | + <i class="usk-icon-arrow-left-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" | |
| 338 | 338 | aria-hidden="true"></i> |
| 339 | 339 | </a> |
| 340 | 340 | </div> |
| 341 | 341 | |
| @@ -342,11 +342,11 @@ | ||
| 342 | 342 | <?php if ('center' !== $settings['arrows_fraction_position']): ?> |
| 343 | 343 | <div class="swiper-pagination"></div> |
| 344 | 344 | <?php endif; ?> |
| 345 | 345 | |
| 346 | - <div class="<?php echo esc_html($hide_arrow_on_mobile); ?>"> | |
| 346 | + <div class="<?php echo esc_attr($hide_arrow_on_mobile); ?>"> | |
| 347 | 347 | <a href="" class="usk-navigation-next usk-slidenav-next usk-icon usk-slidenav"> |
| 348 | - <i class="usk-icon-arrow-right-<?php echo esc_html($settings['nav_arrows_icon']); ?>" | |
| 348 | + <i class="usk-icon-arrow-right-<?php echo esc_attr($settings['nav_arrows_icon']); ?>" | |
| 349 | 349 | aria-hidden="true"></i> |
| 350 | 350 | </a> |
| 351 | 351 | </div> |
| 352 | 352 | |
| @@ -486,9 +486,9 @@ | ||
| 486 | 486 | |
| 487 | 487 | <div class="ultimate-store-kit"> |
| 488 | 488 | <div <?php $this->print_render_attribute_string('usk-carousel-wrapper'); ?>> |
| 489 | 489 | <div <?php $this->print_render_attribute_string('carousel'); ?>> |
| 490 | - <div <?php echo wp_kses_post($this->get_render_attribute_string('swiper')); ?>> | |
| 490 | + <div <?php $this->print_render_attribute_string('swiper'); ?>> | |
| 491 | 491 | <div class="swiper-wrapper"> |
| 492 | 492 | <?php |
| 493 | 493 | } |
| 494 | 494 | protected function usk_get_badge_label_percentage() |