I have been using a simple content management system for the last several years and a new feature I am hoping to add to my website is problematic.
Simply put, I am hoping to style the date with a CSS sprites display.
The trouble is the CMS does not really allow the styling of dates because the date in a template is displayed using a single {date} tag which is only configurable by changing the PHP date string.
Rather than change CMS systems and try to convert 1400 posts, I am hoping I can add some HTML into the config file and consequently the date string.
Assuming this was no problem as is, the code would look something like this.
Code:
<div class="postdate">
<div class="month F">F</div>
<div class="day d">d</div>
<div class="year Y">Y</div>
</div>
I have found that you can escape each character of literal text but that doesn't seem to work for code. I am not particularly familiar with PHP so if anyone knows how this could be done I would be very appreciative.
|