← All changes
|
includes/blocks/storeengine-shipping-info/block.php
+8
-4
2.13.0
→
2.14.0
View file →
| @@ -32,9 +32,10 @@ | ||
| 32 | 32 | $css_generator->add_class_styles( |
| 33 | 33 | '{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-heading', |
| 34 | 34 | $this->get_shipping_heading_css( $attributes, '' ), |
| 35 | 35 | $this->get_shipping_heading_css( $attributes, 'Tablet' ), |
| 36 | - $this->get_shipping_heading_css( $attributes, 'Mobile' ) | |
| 36 | + $this->get_shipping_heading_css( $attributes, 'Mobile' ), | |
| 37 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_shipping_heading_css( $attributes, $device ); } ) | |
| 37 | 38 | ); |
| 38 | 39 | |
| 39 | 40 | $css_generator->add_class_styles( |
| 40 | 41 | '{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-heading:hover', |
| @@ -39,15 +40,17 @@ | ||
| 39 | 40 | $css_generator->add_class_styles( |
| 40 | 41 | '{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-heading:hover', |
| 41 | 42 | $this->get_shipping_heading_hover_css( $attributes, '' ), |
| 42 | 43 | $this->get_shipping_heading_hover_css( $attributes, 'Tablet' ), |
| 43 | - $this->get_shipping_heading_hover_css( $attributes, 'Mobile' ) | |
| 44 | + $this->get_shipping_heading_hover_css( $attributes, 'Mobile' ), | |
| 45 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_shipping_heading_hover_css( $attributes, $device ); } ) | |
| 44 | 46 | ); |
| 45 | 47 | $css_generator->add_class_styles( |
| 46 | 48 | '{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p', |
| 47 | 49 | $this->get_shipping_address_css( $attributes, '' ), |
| 48 | 50 | $this->get_shipping_address_css( $attributes, 'Tablet' ), |
| 49 | - $this->get_shipping_address_css( $attributes, 'Mobile' ) | |
| 51 | + $this->get_shipping_address_css( $attributes, 'Mobile' ), | |
| 52 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_shipping_address_css( $attributes, $device ); } ) | |
| 50 | 53 | ); |
| 51 | 54 | |
| 52 | 55 | $css_generator->add_class_styles( |
| 53 | 56 | '{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p:hover', |
| @@ -52,9 +55,10 @@ | ||
| 52 | 55 | $css_generator->add_class_styles( |
| 53 | 56 | '{{WRAPPER}} .storeengine-order-shipping-shortcode .storeengine-order-shipping-address p:hover', |
| 54 | 57 | $this->get_shipping_address_hover_css( $attributes, '' ), |
| 55 | 58 | $this->get_shipping_address_hover_css( $attributes, 'Tablet' ), |
| 56 | - $this->get_shipping_address_hover_css( $attributes, 'Mobile' ) | |
| 59 | + $this->get_shipping_address_hover_css( $attributes, 'Mobile' ), | |
| 60 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_shipping_address_hover_css( $attributes, $device ); } ) | |
| 57 | 61 | ); |
| 58 | 62 | |
| 59 | 63 | return $css_generator->generate_css(); |
| 60 | 64 | } |