Added configuration items for winamp block to set the windows' displaying order.
The Wordpress blocks can be placed into post/page, as well as sidebar widget. I've set rules separately. If you have any suggestions about these rules, just feel free to leave comments.
Main window is forcedly displayed.
All windows are NOT able to be dragged arbitrarily.
The windows are displayed by the order of configuration only for general viewing mode (not for post/page editing mode)
winamp block in post/page
winamp block in sidebar widget
How to test the Change
Install the plugin
Add a winamp block in post/page/sidebar widget
Load media file so that the player can display
The winamp's windows cannot be dragged arbitrarily
In block setting tab, configure EQUALIZER/PLAYLIST/MILKDROP 's position as you wish
The position's change won't happen right now in editor mode
Click "Publish"/"Update" to save the post/page, or save the sidebar widget
Preview the post/page, the winamp windows should align according to the configuration.
[!NOTE]
Known issue before this PR: If two or more blocks appear in the same webpage, only one winamp instance will be created.
Changelog Entry
Added - New feature: added configuration items for winamp block to set the windows' displaying order.
Fixed - Bug fix: added javascript code to prevent winamp windows from unwanted moving.
Description of the Change
Closes #10 (https://github.com/10up/retro-winamp-block/issues/10#issuecomment-1982053604) Closes #83
Added configuration items for winamp block to set the windows' displaying order.
The Wordpress blocks can be placed into post/page, as well as sidebar widget. I've set rules separately. If you have any suggestions about these rules, just feel free to leave comments.
winamp block in post/page
winamp block in sidebar widget
How to test the Change
Changelog Entry
Credits
Props @dejalavidavolar
Checklist: