forked from cedaro/shiny-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
40 lines (36 loc) · 835 Bytes
/
functions.php
File metadata and controls
40 lines (36 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Helper functions
*
* @package ShinyCode
* @since 1.0.1
* @copyright Copyright (c) 2018 Cedaro, LLC
* @license GPL-2.0-or-later
*/
declare ( strict_types = 1 );
namespace Cedaro\WP\BlockType\Code;
/**
* Display a notice about missing dependencies.
*
* @since 1.0.1
*/
function display_missing_dependencies_notice() {
$message = sprintf(
/* translators: %s: documentation URL */
__( 'Shiny Code is missing required dependencies. <a href="%s" target="_blank" rel="noopener noreferer">Learn more.</a>', 'shiny-code' ),
'https://github.com/cedaro/shiny-code#installation'
);
printf(
'<div class="shiny-code-compatibility-notice notice notice-error"><p>%s</p></div>',
wp_kses(
$message,
[
'a' => [
'href' => true,
'rel' => true,
'target' => true,
],
]
)
);
}