| @@ -27,69 +27,80 @@ | ||
| 27 | 27 | $css_generator->add_class_styles( |
| 28 | 28 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail img', |
| 29 | 29 | $this->get_avatar_css( $attributes, '' ), |
| 30 | 30 | $this->get_avatar_css( $attributes, 'Tablet' ), |
| 31 | - $this->get_avatar_css( $attributes, 'Mobile' ) | |
| 31 | + $this->get_avatar_css( $attributes, 'Mobile' ), | |
| 32 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_avatar_css( $attributes, $device ); } ) | |
| 32 | 33 | ); |
| 33 | 34 | $css_generator->add_class_styles( |
| 34 | 35 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author', |
| 35 | 36 | $this->get_author_css( $attributes, '' ), |
| 36 | 37 | $this->get_author_css( $attributes, 'Tablet' ), |
| 37 | - $this->get_author_css( $attributes, 'Mobile' ) | |
| 38 | + $this->get_author_css( $attributes, 'Mobile' ), | |
| 39 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_author_css( $attributes, $device ); } ) | |
| 38 | 40 | ); |
| 39 | 41 | $css_generator->add_class_styles( |
| 40 | 42 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__author:hover', |
| 41 | 43 | $this->get_author_hover_css( $attributes, '' ), |
| 42 | 44 | $this->get_author_hover_css( $attributes, 'Tablet' ), |
| 43 | - $this->get_author_hover_css( $attributes, 'Mobile' ) | |
| 45 | + $this->get_author_hover_css( $attributes, 'Mobile' ), | |
| 46 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_author_hover_css( $attributes, $device ); } ) | |
| 44 | 47 | ); |
| 45 | 48 | $css_generator->add_class_styles( |
| 46 | 49 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date', |
| 47 | 50 | $this->get_date_time_css( $attributes, '' ), |
| 48 | 51 | $this->get_date_time_css( $attributes, 'Tablet' ), |
| 49 | - $this->get_date_time_css( $attributes, 'Mobile' ) | |
| 52 | + $this->get_date_time_css( $attributes, 'Mobile' ), | |
| 53 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_date_time_css( $attributes, $device ); } ) | |
| 50 | 54 | ); |
| 51 | 55 | $css_generator->add_class_styles( |
| 52 | 56 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-meta__published-date:hover', |
| 53 | 57 | $this->get_date_time_hover_css( $attributes, '' ), |
| 54 | 58 | $this->get_date_time_hover_css( $attributes, 'Tablet' ), |
| 55 | - $this->get_date_time_hover_css( $attributes, 'Mobile' ) | |
| 59 | + $this->get_date_time_hover_css( $attributes, 'Mobile' ), | |
| 60 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_date_time_hover_css( $attributes, $device ); } ) | |
| 56 | 61 | ); |
| 57 | 62 | $css_generator->add_class_styles( |
| 58 | 63 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p', |
| 59 | 64 | $this->get_description_css( $attributes, '' ), |
| 60 | 65 | $this->get_description_css( $attributes, 'Tablet' ), |
| 61 | - $this->get_description_css( $attributes, 'Mobile' ) | |
| 66 | + $this->get_description_css( $attributes, 'Mobile' ), | |
| 67 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_description_css( $attributes, $device ); } ) | |
| 62 | 68 | ); |
| 63 | 69 | $css_generator->add_class_styles( |
| 64 | 70 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-content .academy-review-description p:hover', |
| 65 | 71 | $this->get_description_hover_css( $attributes, '' ), |
| 66 | 72 | $this->get_description_hover_css( $attributes, 'Tablet' ), |
| 67 | - $this->get_description_hover_css( $attributes, 'Mobile' ) | |
| 73 | + $this->get_description_hover_css( $attributes, 'Mobile' ), | |
| 74 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_description_hover_css( $attributes, $device ); } ) | |
| 68 | 75 | ); |
| 69 | 76 | $css_generator->add_class_styles( |
| 70 | 77 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review__rating', |
| 71 | 78 | $this->get_summary_css( $attributes, '' ), |
| 72 | 79 | $this->get_summary_css( $attributes, 'Tablet' ), |
| 73 | - $this->get_summary_css( $attributes, 'Mobile' ) | |
| 80 | + $this->get_summary_css( $attributes, 'Mobile' ), | |
| 81 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_summary_css( $attributes, $device ); } ) | |
| 74 | 82 | ); |
| 75 | 83 | $css_generator->add_class_styles( |
| 76 | 84 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-review__rating:hover', |
| 77 | 85 | $this->get_summary_hover_css( $attributes, '' ), |
| 78 | 86 | $this->get_summary_hover_css( $attributes, 'Tablet' ), |
| 79 | - $this->get_summary_hover_css( $attributes, 'Mobile' ) | |
| 87 | + $this->get_summary_hover_css( $attributes, 'Mobile' ), | |
| 88 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_summary_hover_css( $attributes, $device ); } ) | |
| 80 | 89 | ); |
| 81 | 90 | $css_generator->add_class_styles( |
| 82 | 91 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i', |
| 83 | 92 | $this->get_summary_icon_css( $attributes, '' ), |
| 84 | 93 | $this->get_summary_icon_css( $attributes, 'Tablet' ), |
| 85 | - $this->get_summary_icon_css( $attributes, 'Mobile' ) | |
| 94 | + $this->get_summary_icon_css( $attributes, 'Mobile' ), | |
| 95 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_summary_icon_css( $attributes, $device ); } ) | |
| 86 | 96 | ); |
| 87 | 97 | $css_generator->add_class_styles( |
| 88 | 98 | '{{WRAPPER}} .academy-review-list li .academy-review_container .academy-review-thumnail .academy-group-star i:hover', |
| 89 | 99 | $this->get_summary_icon_hover_css( $attributes, '' ), |
| 90 | 100 | $this->get_summary_icon_hover_css( $attributes, 'Tablet' ), |
| 91 | - $this->get_summary_icon_hover_css( $attributes, 'Mobile' ) | |
| 101 | + $this->get_summary_icon_hover_css( $attributes, 'Mobile' ), | |
| 102 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_summary_icon_hover_css( $attributes, $device ); } ) | |
| 92 | 103 | ); |
| 93 | 104 | |
| 94 | 105 | return $css_generator->generate_css(); |
| 95 | 106 | } |