NAME
Maplat::Web::LogoCache - date-based logo display
SYNOPSIS
This module generates the logo bar in the default layout and provides the LogoDay functionality
DESCRIPTION
This module generates the logo bar for the default layout, depending on the view selected. It also provides a LogoDay functionality, meaning it can display special logos on configured days (on this days, it also displays an additional menu plus description page).
This module must be configured AFTER the Login module, because it hooks into its "Views" functionality.
Configuration
<module>
<modname>logo</modname>
<pm>LogoCache</pm>
<options>
<imgpath>MaplatWeb/Logo/Images</imgpath>
<layoutpath>MaplatWeb/Logo/layout</layoutpath>
<imgwebpath>/logo/pics/</imgwebpath>
<webpath>/user/special</webpath>
<pagetitle>LogoDay</pagetitle>
<cache_control>max-age=3600, must-revalidate</cache_control>
<expires>+1h</expires>
<!-- The <today> tag forces the module to assume the given date as
the basis for displaying the "Logo of the day" -->
<!--<today>20090918</today>-->
<views>
<view logodisplay="someview" />
<view logodisplay="otherview" />
<view logodisplay="differentview" />
<view logodisplay="admin" />
<view logodisplay="logout" />
</views>
</options>
</module>
get
Get Logo and descriptions.
getDescription
Return the rendered descriptions of LogoDays.
getFile
Internal function - read in a file in binary mode.
reloadSingleTemplate
Internal function - reload a single template file.
reloadTemplates
Internal function - dispatch reloads for all templates.
reloadDescription
Internal function - reload the description template.
Dependencies
This module depends on the Login module beeing already configured, because it hooks into its "views" functionality
Maplat::Web::Login
SEE ALSO
Maplat::Web Maplat::Web::Login
AUTHOR
Rene Schickbauer, <rene.schickbauer@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2008-2010 by Rene Schickbauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.