So after my toe-dipping exercise into making a plugin to cater for adding text to the publicize functionality, I decide to build a proper admin screen for the plugin, which I have to admit wasn’t as complex as I first thought it would be.
First up was the text to be inserted, I found out that spaces were being striped of the text I’d entered so I added some toggles to handle this. I also wanted to see what the end result would look like without having to create a new post to do so. Here is the latest version.
Since I was on a roll I turned my focus to another hard-coded feature of my site, the “What I’m Playing” widget. This one is a little tricker as I had to make the widget appear in the widget menu (another first for me) and then create an admin panel to populate the information from. I could have build it dynamically to allow an unlimited number of multiple entries, bt as I only tend to have a handful which I update as I go I decided to just go with a limit of 6 but usually it’s only ever 3.
The image dropdown is loaded in from a list of images in a particular folder, again I feel it’s nice to see the changes in the same page so you can spot any problems after saving a little quicker.