PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 4.2.3
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v4.2.3
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / views / media / image.php
image.php
54 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <figure
2 data-wp-interactive='{ "namespace": "surecart/lightbox" }'
3 <?php echo wp_kses_data( get_block_wrapper_attributes( [ 'class' => 'sc-lightbox-container' ] ) ); ?>
4 <?php
5 echo wp_kses_data(
6 wp_interactivity_data_wp_context(
7 [
8 'imageId' => $media->id, // this is needed for the lightbox to work.
9 ]
10 )
11 );
12 ?>
13 >
14 <?php
15 echo wp_kses(
16 $media->withLightbox( $lightbox )->html(
17 'large',
18 array(
19 'loading' => $loading ?? 'eager',
20 'style' => $style ?? '',
21 )
22 ),
23 sc_allowed_svg_html()
24 );
25 ?>
26
27 <?php if ( $lightbox ) : ?>
28 <button
29 class="lightbox-trigger"
30 type="button"
31 aria-haspopup="dialog"
32 aria-label="<?php esc_attr_e( 'Expand image', 'surecart' ); ?>"
33 data-wp-init="callbacks.initTriggerButton"
34 data-wp-on--click="actions.showLightbox"
35 data-wp-style--right="state.imageButtonRight"
36 data-wp-style--top="state.imageButtonTop"
37 >
38 <?php
39 echo wp_kses(
40 \SureCart::svg()->get(
41 'maximize',
42 [
43 'width' => 16,
44 'height' => 16,
45 'aria-hidden' => 'true',
46 ]
47 ),
48 sc_allowed_svg_html()
49 );
50 ?>
51 </button>
52 <?php endif; ?>
53 </figure>
54