How to add a relative path to the themes folder?

Permalink
I have used path like this within my html content:
<img src="/themes/mytheme1/images/pic01.jpg" />


I am now going to create a new theme "mytheme2". I will be copying across all the images from mytheme1 to mytheme2. But my content is still pointing to /images folder within "mytheme1". I will have to update the database by running MySQL's update query to replace every instance of the link to the new theme path.

Is there a relative path to the themes folder that I can use so that if I happen to create another theme in the future, I won't have to update the database entries again?

BlueFractals
 
pvernaglia replied on at Permalink Reply
pvernaglia
<img src="<?=$this->getThemePath()?>/images/photo.png">

http://www.weblicating.com/c5/cheat-sheet/...
BlueFractals replied on at Permalink Reply
BlueFractals
I think that only works in the template .php files but I don't think it works within the html content block.

Maybe I didn't explain clearly. What I wanted was to add a relative path to the theme folder in HTML content block that you add from the front-end.