File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change 22jQuery ( document ) . ready ( function ( $ ) {
33 var grid = $ ( '#sgdg-gallery' ) . masonry ( {
44 itemSelector : '.sgdg-grid-item' ,
5- columnWidth : parseInt ( sgdg_shortcode_localize . thumbnail_size , 10 ) ,
5+ columnWidth : '.sgdg-grid-item' ,
66 gutter : parseInt ( sgdg_shortcode_localize . thumbnail_spacing , 10 ) ,
77 fitWidth : true
88 } ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ function render( $atts = [] ) {
2828
2929 wp_enqueue_script ( 'sgdg_gallery_init ' );
3030 wp_localize_script ( 'sgdg_gallery_init ' , 'sgdg_shortcode_localize ' , [
31- 'thumbnail_size ' => \Sgdg \Options::$ thumbnail_size ->get (),
3231 'thumbnail_spacing ' => \Sgdg \Options::$ thumbnail_spacing ->get (),
3332 'preview_speed ' => \Sgdg \Options::$ preview_speed ->get (),
3433 'preview_arrows ' => \Sgdg \Options::$ preview_arrows ->get (),
You can’t perform that action at this time.
0 commit comments