Dynamic calendar icons for Drupal Themes
I liked the idea of Sotak's calendar icons, but the colours didn't fit in with my theme, and I wanted the text to be a little easier to read, and to include the year.
So I made my own:
Rather than an icon for each month, this technique uses just 1 background image (.png and psd attached) and a slightly modified template.php. Everything else can be styled with CSS.
With a bit of imagination, and a couple of tweaks to the function, and a few lines of CSS these icons can be very flexible. Different colour for articles over a year old? No problem. Colour coded by taxonomy? Sorted.
Triggering Lightbox2 from the node image body.
On my site, I use Lightbox 2 to display a high-res version of the original image when image thumbnails are clicked, rather than linking to the node.
However, I also wanted this behaviour for the images displayed in the Node body. You can see this in action here:
To do this, the image must be wrapped in an <a> tag - so you need to override the theme_image_body hook in your template.php file:
