Random Header Image

jjh - February 29, 2008 - 19:01
Project:K2
Version:5.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Issue tags:Random Header
Description

One nice feature of the Wordpress K2 Theme is the option to display randomly changing header images. In order to have this feature in drupal, too, I ported the Wordpress code into the Drupal version of K2. It would be nice, if the developers could merge my patch into the CVS version! To use the patch: (1) patch < template.php.patch (2) include the line

<?php
print randomheaderimage()
?>
into the html header in the page.tpl.php file to actually use the new functionality (3) create a folder k2/images/headers and place some 780x200px jpg/png/gif images into this folder.

AttachmentSize
template.php_.patch1.59 KB
page.tpl_.php_.patch536 bytes

#1

geshan - February 26, 2009 - 16:48

Try this for a change.

 
 

Drupal is a registered trademark of Dries Buytaert.