I have a comment embedder plugin that allow my users to upload a photo with their comments. Now I want to give that photo, a special DIV. Here is its main code:
The second options would be simpler to read. Also this is just a php way of doing it, If you wanted to you could have a js library handle the images and wrap them as well.
I have a comment embedder plugin that allow my users to upload a photo with their comments. Now I want to give that photo, a special DIV. Here is its main code:
}
Where to add the DIV? *the image add with a [img][/img] shortcode to the comment.
There's a few easy ways to handle this. You could wrap your $content with a string "
"; Or more simply add another line after $content.
The second options would be simpler to read. Also this is just a php way of doing it, If you wanted to you could have a js library handle the images and wrap them as well.
Oh wow markdown stipped the first examle.