Startpunkten
This commit is contained in:
17
blocks/block.js
Normal file
17
blocks/block.js
Normal file
@@ -0,0 +1,17 @@
|
||||
(function (blocks, element) {
|
||||
var el = element.createElement;
|
||||
|
||||
blocks.registerBlockType("sro/recent-track", {
|
||||
title: "Spotify Recent Track",
|
||||
icon: "format-audio",
|
||||
category: "widgets",
|
||||
|
||||
edit: function () {
|
||||
return el("p", {}, "Spotify Recent Track – visas i frontend.");
|
||||
},
|
||||
|
||||
save: function () {
|
||||
return null; // Server-side render
|
||||
},
|
||||
});
|
||||
})(window.wp.blocks, window.wp.element);
|
||||
Reference in New Issue
Block a user