diff --git a/src/wp-content/plugins/hello.php b/src/wp-content/plugins/hello.php
index 34e3b68..645b2a7 100644
a
|
b
|
Dolly'll never go away again"; |
52 | 52 | // This just echoes the chosen line, we'll position it later |
53 | 53 | function hello_dolly() { |
54 | 54 | $chosen = hello_dolly_get_lyric(); |
55 | | echo "<p id='dolly'>$chosen</p>"; |
| 55 | echo "<p id='dolly'><span class='screen-reader-text'>Quote from Hello Dolly song</span><span aria-hidden='true'>♫</span> $chosen</p>"; |
56 | 56 | } |
57 | 57 | |
58 | 58 | // Now we set that function up to execute when the admin_notices action is called |
… |
… |
add_action( 'admin_notices', 'hello_dolly' ); |
60 | 60 | |
61 | 61 | // We need some CSS to position the paragraph |
62 | 62 | function dolly_css() { |
63 | | // This makes sure that the positioning is also good for right-to-left languages |
64 | | $x = is_rtl() ? 'left' : 'right'; |
65 | | |
66 | 63 | echo " |
67 | 64 | <style type='text/css'> |
68 | 65 | #dolly { |
69 | | float: $x; |
70 | | padding-$x: 15px; |
71 | | padding-top: 5px; |
| 66 | float: right; |
| 67 | padding: 6px 10px 4px 0; |
72 | 68 | margin: 0; |
| 69 | line-height: 1.7; |
73 | 70 | font-size: 11px; |
74 | 71 | } |
| 72 | body.rtl #dolly { |
| 73 | float: left; |
| 74 | padding: 6px 0 4px 10px; |
| 75 | } |
| 76 | @media screen and (max-width: 782px) { |
| 77 | #dolly { |
| 78 | float: none; |
| 79 | } |
| 80 | } |
75 | 81 | </style> |
76 | 82 | "; |
77 | 83 | } |