Skip to content

Commit 42bab35

Browse files
committed
Separate placeholder and load button
1 parent 1370b63 commit 42bab35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/amp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ function get_pym_ampiframe( $src, $atts = array() ) {
112112
frameborder='0'
113113
resizable
114114
>
115+
<div placeholder><?php esc_html_e( 'Interactive graphic', 'pym-embeds' ); ?></div>
115116
<div
116117
overflow
117118
tabindex=0
118119
aria-label='<?php esc_attr_e( 'Load interactive graphic', 'pym-embeds' ); ?>'
119-
placeholder
120-
style='width:100%; text-align:center; padding-top:50%; background:rgba(0,0,0,.7); color:#FFF; font-weight:bold'
120+
style='padding: .5em; background:rgba(0,0,0,.7); color:#FFF; font-weight:bold;'
121121
>
122122
<?php esc_html_e( 'Load interactive graphic', 'pym-embeds' ); ?>
123123
</div>

0 commit comments

Comments
 (0)