@@ -823,6 +823,12 @@ public function bootstrap($application)
823
823
'description ' => $ this ->sale_event_1_description ? $ this ->sale_event_1_description : $ this ->sale_event_1_name ,
824
824
'startDate ' => $ startDate ,
825
825
'endDate ' => $ endDate ,
826
+ 'eventAttendanceMode ' => "https://schema.org/MixedEventAttendanceMode " ,
827
+ "eventStatus " => "https://schema.org/EventScheduled " ,
828
+ 'organizer ' => [
829
+ 'name ' => \Yii::$ app ->skeeks ->site ->name ,
830
+ 'url ' => Url::home (true )
831
+ ],
826
832
'location ' => [
827
833
'@context ' => "https://schema.org " ,
828
834
'@type ' => "Place " ,
@@ -833,6 +839,10 @@ public function bootstrap($application)
833
839
],
834
840
],
835
841
];
842
+
843
+ if (\Yii::$ app ->skeeks ->site ->image ) {
844
+ $ eventData ["image " ] = \Yii::$ app ->skeeks ->site ->image ->absoluteSrc ;
845
+ }
836
846
837
847
if ($ this ->sale_event_1_addressLocality ) {
838
848
$ eventData ["location " ]["address " ]["addressLocality " ] = $ this ->sale_event_1_addressLocality ;
@@ -855,6 +865,12 @@ public function bootstrap($application)
855
865
'description ' => $ this ->sale_event_2_description ? $ this ->sale_event_2_description : $ this ->sale_event_2_name ,
856
866
'startDate ' => $ startDate ,
857
867
'endDate ' => $ endDate ,
868
+ 'eventAttendanceMode ' => "https://schema.org/MixedEventAttendanceMode " ,
869
+ "eventStatus " => "https://schema.org/EventScheduled " ,
870
+ 'organizer ' => [
871
+ 'name ' => \Yii::$ app ->skeeks ->site ->name ,
872
+ 'url ' => Url::home (true )
873
+ ],
858
874
'location ' => [
859
875
'@context ' => "https://schema.org " ,
860
876
'@type ' => "Place " ,
@@ -865,6 +881,9 @@ public function bootstrap($application)
865
881
],
866
882
],
867
883
];
884
+ if (\Yii::$ app ->skeeks ->site ->image ) {
885
+ $ eventData ["image " ] = \Yii::$ app ->skeeks ->site ->image ->absoluteSrc ;
886
+ }
868
887
869
888
if ($ this ->sale_event_2_addressLocality ) {
870
889
$ eventData ["location " ]["address " ]["addressLocality " ] = $ this ->sale_event_2_addressLocality ;
@@ -887,6 +906,12 @@ public function bootstrap($application)
887
906
'description ' => $ this ->sale_event_3_description ? $ this ->sale_event_3_description : $ this ->sale_event_3_name ,
888
907
'startDate ' => $ startDate ,
889
908
'endDate ' => $ endDate ,
909
+ 'eventAttendanceMode ' => "https://schema.org/MixedEventAttendanceMode " ,
910
+ "eventStatus " => "https://schema.org/EventScheduled " ,
911
+ 'organizer ' => [
912
+ 'name ' => \Yii::$ app ->skeeks ->site ->name ,
913
+ 'url ' => Url::home (true )
914
+ ],
890
915
'location ' => [
891
916
'@context ' => "https://schema.org " ,
892
917
'@type ' => "Place " ,
@@ -897,6 +922,9 @@ public function bootstrap($application)
897
922
],
898
923
],
899
924
];
925
+ if (\Yii::$ app ->skeeks ->site ->image ) {
926
+ $ eventData ["image " ] = \Yii::$ app ->skeeks ->site ->image ->absoluteSrc ;
927
+ }
900
928
901
929
if ($ this ->sale_event_3_addressLocality ) {
902
930
$ eventData ["location " ]["address " ]["addressLocality " ] = $ this ->sale_event_3_addressLocality ;
0 commit comments