I like the Marinelli theme here:

http://drupal.org/project/marinelli

but I would like to add the calendar icon for teasers like in the Barlow theme here:

http://drupal.org/project/marinelli

and I was wondering if it would be a difficult thing to do?

[edit]
link to Barlow theme above is, of course, supposed to be:

http://drupal.org/project/barlow

Comments

vm’s picture

not 100% tested: but I here's where I'd start ...

I looked in barlows page.tpl.php and didn't see anything that struck a chord however .....

open barlows node.tpl.php file

first thing I see is:

<?php print ($page == 0) ? " teaser" : " "; ?><?php print ' ' . ($node->type); ?><?php print ($submitted && !$page) ? " cal" : ""?>">

at the end of the very first line.

I also notice:

<?php if ($page == 0) { ?>
  <?php if ($submitted) { ?>
  <div class="calendar"><div>
  <span class="month"><?php print format_date($created, 'custom', 'M') ?></span>
  <span class="day"><?php print format_date($created, 'custom', 'd') ?></span>
  <span class="time"><?php print format_date($created, 'custom', 'H:i') ?></span>
  </div></div>
  <?php } ?>

as the next few lines.

the above may be part of the puzzle. The other pieces may be in barlows style.css file and will also need to be found and pasted to marinellis style.css file. ex: calendar, month, day, time. I'd also take the time to read through template.php and see if there is anything that needs to be taken from there.

jfmoore’s picture

Thanks for the info, but it's all a little to php-ish for me. Hard for me to follow the logic. Have to differentiate between the cal shown in the teaser and that shown in the node. Maybe if I look at it long enough, a light bulb will begin to glow. Well, probably not, but I'm going to give it a go anyway. Maybe if I look at it with one eye closed while whistling Hotel California...