File tree 3 files changed +7
-13
lines changed
3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,10 @@ private function getCookieDisclosureInformation(): string
94
94
if (!$ this ->hasData ('cookie_disclosure_information ' )) {
95
95
$ block = $ this ->getLayout ()->createBlock (
96
96
Block::class,
97
+ 'opengento.gdpr.cookie.disclosure.information ' ,
97
98
['data ' => ['block_id ' => $ this ->config ->getCookieDisclosureInformationBlockId ()]]
98
99
);
99
- $ this ->setData ('cookie_disclosure_information ' , $ block );
100
+ $ this ->setData ('cookie_disclosure_information ' , $ block-> toHtml () );
100
101
}
101
102
102
103
return (string ) $ this ->_getData ('cookie_disclosure_information ' );
Original file line number Diff line number Diff line change @@ -23,33 +23,26 @@ define([
23
23
return Component . extend ( {
24
24
showPopUp : ko . observable ( null ) ,
25
25
popupText : ko . observable ( null ) ,
26
+ popupLink : ko . observable ( null ) ,
26
27
27
28
defaults : {
28
29
template : 'Opengento_Gdpr/message'
29
30
} ,
30
31
31
32
/**
32
- * Initialize component.
33
+ * Initialize component
33
34
*/
34
35
initialize : function ( ) {
35
36
this . _super ( ) ;
36
37
37
38
this . showPopUp ( ! $ . cookie ( this . cookieName ) ) ;
38
39
this . popupText ( this . notificationText ) ;
40
+ this . popupLink ( this . learnMore ) ;
39
41
40
42
$ ( document ) . on ( 'click' , '#enhanced-privacy-popup-agree' , function ( ) {
41
43
this . showPopUp ( false ) ;
42
44
$ . cookie ( this . cookieName , 1 ) ;
43
45
} . bind ( this ) ) ;
44
- } ,
45
-
46
- /**
47
- * Get URL to information page.
48
- *
49
- * @returns {* }
50
- */
51
- getLearnMoreLink : function ( ) {
52
- return this . learnMore ;
53
46
}
54
47
} ) ;
55
48
} ) ;
Original file line number Diff line number Diff line change 18
18
< div class ="popup content ">
19
19
< strong data-bind ="i18n: 'Cookie Disclosure' "> </ strong >
20
20
< div class ="block-content ">
21
- < p data-bind ="text : notificationText "> </ p >
21
+ < div data-bind ="html : notificationText "> </ div >
22
22
< div class ="actions-toolbar ">
23
23
< div class ="secondary ">
24
- < a class ="action " data-bind ="attr: {href: getLearnMoreLink() }, i18n: 'Read More' "> </ a >
24
+ < a class ="action " data-bind ="attr: {href: learnMore }, i18n: 'Read More' "> </ a >
25
25
</ div >
26
26
< div class ="primary ">
27
27
< button type ="button " class ="action primary " id ="enhanced-privacy-popup-agree " data-bind ="i18n: 'Accept' "> </ button >
You can’t perform that action at this time.
0 commit comments