← All changes
|
includes/blocks/academy-course-instructor/block.php
+18
-9
2.8.1
→
2.14.0
View file →
| @@ -28,9 +28,10 @@ | ||
| 28 | 28 | $css_generator->add_class_styles( |
| 29 | 29 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__thumbnail img', |
| 30 | 30 | $this->get_avatar_image_css( $attributes, '' ), |
| 31 | 31 | $this->get_avatar_image_css( $attributes, 'Tablet' ), |
| 32 | - $this->get_avatar_image_css( $attributes, 'Mobile' ) | |
| 32 | + $this->get_avatar_image_css( $attributes, 'Mobile' ), | |
| 33 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_avatar_image_css( $attributes, $device ); } ) | |
| 33 | 34 | ); |
| 34 | 35 | |
| 35 | 36 | $css_generator->add_class_styles( |
| 36 | 37 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title, |
| @@ -36,9 +37,10 @@ | ||
| 36 | 37 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title, |
| 37 | 38 | {{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-title', |
| 38 | 39 | $this->get_title_css( $attributes, '' ), |
| 39 | 40 | $this->get_title_css( $attributes, 'Tablet' ), |
| 40 | - $this->get_title_css( $attributes, 'Mobile' ) | |
| 41 | + $this->get_title_css( $attributes, 'Mobile' ), | |
| 42 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_title_css( $attributes, $device ); } ) | |
| 41 | 43 | ); |
| 42 | 44 | |
| 43 | 45 | $css_generator->add_class_styles( |
| 44 | 46 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title:hover, |
| @@ -44,9 +46,10 @@ | ||
| 44 | 46 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__title:hover, |
| 45 | 47 | {{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-title:hover', |
| 46 | 48 | $this->get_title_hover_css( $attributes, '' ), |
| 47 | 49 | $this->get_title_hover_css( $attributes, 'Tablet' ), |
| 48 | - $this->get_title_hover_css( $attributes, 'Mobile' ) | |
| 50 | + $this->get_title_hover_css( $attributes, 'Mobile' ), | |
| 51 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_title_hover_css( $attributes, $device ); } ) | |
| 49 | 52 | ); |
| 50 | 53 | |
| 51 | 54 | $css_generator->add_class_styles( |
| 52 | 55 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span', |
| @@ -51,9 +54,10 @@ | ||
| 51 | 54 | $css_generator->add_class_styles( |
| 52 | 55 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span', |
| 53 | 56 | $this->get_review_text_css( $attributes, '' ), |
| 54 | 57 | $this->get_review_text_css( $attributes, 'Tablet' ), |
| 55 | - $this->get_review_text_css( $attributes, 'Mobile' ) | |
| 58 | + $this->get_review_text_css( $attributes, 'Mobile' ), | |
| 59 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_text_css( $attributes, $device ); } ) | |
| 56 | 60 | ); |
| 57 | 61 | |
| 58 | 62 | $css_generator->add_class_styles( |
| 59 | 63 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span:hover', |
| @@ -58,33 +62,38 @@ | ||
| 58 | 62 | $css_generator->add_class_styles( |
| 59 | 63 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating span:hover', |
| 60 | 64 | $this->get_review_text_hover_css( $attributes, '' ), |
| 61 | 65 | $this->get_review_text_hover_css( $attributes, 'Tablet' ), |
| 62 | - $this->get_review_text_hover_css( $attributes, 'Mobile' ) | |
| 66 | + $this->get_review_text_hover_css( $attributes, 'Mobile' ), | |
| 67 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_text_hover_css( $attributes, $device ); } ) | |
| 63 | 68 | ); |
| 64 | 69 | $css_generator->add_class_styles( |
| 65 | 70 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating .academy-group-star .academy-icon:before', |
| 66 | 71 | $this->get_review_icon_css( $attributes, '' ), |
| 67 | 72 | $this->get_review_icon_css( $attributes, 'Tablet' ), |
| 68 | - $this->get_review_icon_css( $attributes, 'Mobile' ) | |
| 73 | + $this->get_review_icon_css( $attributes, 'Mobile' ), | |
| 74 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_icon_css( $attributes, $device ); } ) | |
| 69 | 75 | ); |
| 70 | 76 | $css_generator->add_class_styles( |
| 71 | 77 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-review__rating .academy-group-star .academy-icon:hover:before', |
| 72 | 78 | $this->get_review_icon_hover_css( $attributes, '' ), |
| 73 | 79 | $this->get_review_icon_hover_css( $attributes, 'Tablet' ), |
| 74 | - $this->get_review_icon_hover_css( $attributes, 'Mobile' ) | |
| 80 | + $this->get_review_icon_hover_css( $attributes, 'Mobile' ), | |
| 81 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_review_icon_hover_css( $attributes, $device ); } ) | |
| 75 | 82 | ); |
| 76 | 83 | $css_generator->add_class_styles( |
| 77 | 84 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-name a', |
| 78 | 85 | $this->get_instructor_css( $attributes, '' ), |
| 79 | 86 | $this->get_instructor_css( $attributes, 'Tablet' ), |
| 80 | - $this->get_instructor_css( $attributes, 'Mobile' ) | |
| 87 | + $this->get_instructor_css( $attributes, 'Mobile' ), | |
| 88 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_instructor_css( $attributes, $device ); } ) | |
| 81 | 89 | ); |
| 82 | 90 | $css_generator->add_class_styles( |
| 83 | 91 | '{{WRAPPER}} .academy-single-course__content-item--instructors .course-single-instructor .instructor-info__content .instructor-name a:hover', |
| 84 | 92 | $this->get_instructor_hover_css( $attributes, '' ), |
| 85 | 93 | $this->get_instructor_hover_css( $attributes, 'Tablet' ), |
| 86 | - $this->get_instructor_hover_css( $attributes, 'Mobile' ) | |
| 94 | + $this->get_instructor_hover_css( $attributes, 'Mobile' ), | |
| 95 | + $css_generator->custom_device_map( function ( $device ) use ( $attributes ) { return $this->get_instructor_hover_css( $attributes, $device ); } ) | |
| 87 | 96 | ); |
| 88 | 97 | |
| 89 | 98 | return $css_generator->generate_css(); |
| 90 | 99 | } |