Lade till stöd för stilmall
This commit is contained in:
3
css/style.css
Normal file
3
css/style.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.sro-block img {
|
||||
width: 300px;
|
||||
}
|
||||
@@ -26,6 +26,7 @@ function sro_register_block() {
|
||||
'editor_script' => 'sro-block-js',
|
||||
'render_callback' => 'sro_render_block'
|
||||
));
|
||||
wp_register_style('sro-style',plugins_url('css/style.css',__FILE__));
|
||||
}
|
||||
add_action('init', 'sro_register_block');
|
||||
|
||||
@@ -97,7 +98,7 @@ function sro_render_block() {
|
||||
|
||||
return "
|
||||
<div class='sro-block'>
|
||||
<img src='$img' width='300'>
|
||||
<img src='$img' />
|
||||
<div><strong>$artist – $track</strong></div>
|
||||
<div>Spelades för $mins minuter sedan</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user