Startpunkten

This commit is contained in:
2026-04-02 20:21:22 +02:00
commit edeab146f0
5 changed files with 214 additions and 0 deletions

17
blocks/block.js Normal file
View 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);