File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,13 @@ public function get_config() {
131131 */
132132 $ config ['container ' ] = apply_filters ( 'cloudinary_gallery_html_container ' , '' );
133133
134+ $ credentials = $ this ->plugin ->components ['connect ' ]->get_credentials ();
135+
136+ if ( ! empty ( $ credentials ['cname ' ] ) ) {
137+ $ config ['secureDistribution ' ] = $ credentials ['cname ' ];
138+ $ config ['privateCdn ' ] = true ;
139+ }
140+
134141 /**
135142 * Filter the gallery configuration.
136143 *
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public function setup_hooks() {
9595 add_filter (
9696 'cloudinary_gallery_html_container ' ,
9797 static function () {
98- return '.woocommerce-product-gallery ' ;
98+ return '.woocommerce-product-gallery__wrapper ' ;
9999 }
100100 );
101101
You can’t perform that action at this time.
0 commit comments