addEventListener( 'DOMContentLoaded', () => { const notices = document.getElementsByClassName( 'jetpack-deprecate-dismissible' ); for ( let i = 0; i < notices.length; ++i ) { if ( ! notices[ i ].hasAttribute( 'id' ) ) { continue; } notices[ i ].addEventListener( 'click', event => { if ( event.target.classList.contains( 'notice-dismiss' ) ) { document.cookie = 'jetpack_deprecate_dismissed[' + notices[ i ].getAttribute( 'id' ) + ']=1; expires=Fri, 31 Dec 9999 23:59:59 GMT; SameSite=None; Secure'; } } ); } var styleSheet = document.createElement( 'style' ); // Define the CSS rules for placing the admin notice. styleSheet.innerHTML = ` /* Clear the default Dashicon content */ .jetpack-deprecate-dismissible .notice-dismiss::before { content: ''; } /* Customize the .notice-dismiss button */ .jetpack-deprecate-dismissible .notice-dismiss { position: absolute; width: 24px; height: 24px; top: 24px; right:12px; } .jetpack-deprecate-dismissible .notice-dismiss::after { background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23555" d="M12 10.586L6.343 4.93 4.93 6.343 10.586 12l-5.657 5.657 1.414 1.414L12 13.414l5.657 5.657 1.414-1.414L13.414 12l5.657-5.657-1.414-1.414L12 10.586z"/></svg>'); /* Inline SVG as background image */ background-repeat: no-repeat; background-size: contain; content: ''; display: block; position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; transform: translate(-50%, -50%); } /* Customize the styling of content within the notice container */ .jetpack-deprecation-notice-container { align-items: flex-start; display: flex; padding-bottom: 24px; padding-left: 12px; padding-top: 14px; } .jetpack-deprecation-notice-svg { margin-right: 10px; padding-top:10px; } .jetpack-deprecation-notice-icon { margin-right: 10px; } .jetpack-deprecation-notice-text { display: block; } .jetpack-deprecation-notice-title { font-weight: 600; } .jetpack-deprecation-notice-link { font-weight: 600; color: #000000; } `; // Append the style element to the document's head document.head.appendChild( styleSheet ); } );
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
blocks | Folder | 0755 |
|
|
build | Folder | 0755 |
|
|
fonts | Folder | 0755 |
|
|
genericons | Folder | 0755 |
|
|
lib | Folder | 0755 |
|
|
social-logos | Folder | 0755 |
|
|
accessible-focus.js | File | 620 B | 0644 |
|
blogging-prompts.php | File | 8.49 KB | 0644 |
|
class.jetpack-provision.php | File | 9.33 KB | 0644 |
|
crowdsignal-shortcode.js | File | 649 B | 0644 |
|
crowdsignal-survey.js | File | 277 B | 0644 |
|
deprecate.js | File | 2.28 KB | 0644 |
|
facebook-embed.js | File | 1 KB | 0644 |
|
gallery-settings.js | File | 1 KB | 0644 |
|
genericons.php | File | 508 B | 0644 |
|
jetpack-admin.js | File | 1.56 KB | 0644 |
|
jetpack-deactivate-dialog.js | File | 2.9 KB | 0644 |
|
jetpack-modules.js | File | 2.37 KB | 0644 |
|
jetpack-modules.models.js | File | 2.07 KB | 0644 |
|
jetpack-modules.views.js | File | 1.69 KB | 0644 |
|
polldaddy-shortcode.js | File | 2.64 KB | 0644 |
|
social-logos.php | File | 956 B | 0644 |
|
twitter-timeline.js | File | 351 B | 0644 |
|