I need a teeny bit of help here. I expect it will take 2 seconds for someone who knows php to tell me the answer, but I've failed after a good effort to Google it.
I have created a short code to generate a unique sidebar, to be used in various places in my website. I want full control over this bit of html in posts/pages, so putting the code into a template didn't work for me.
Here is the code: http://pastebin.com/aejbVaYA
You'll notice I have used the full path to the background images being used. For example, the first one is written like this:
I would prefer to use the get_stylesheet_directory_uri() function to call the first part of the link, but I don't know how to do this within my code.
I have read the codex, but unfortunately it is written from the perspective of inserting php into html. I'm inserting php, into html, into php (can't believe I just typed that) and I'm not experienced enough to know how to do this :(
I'd really appreciate if someone could give me the write context for this.