| XAO-Web documentation | Contained in the XAO-Web distribution. |
XAO::DO::Web::Footer - simple HTML footer
Currently is only useful in XAO::Web site context.
Displays "/bits/page-footer" template (can be overriden with "path" argument) giving it the following arguments:
Copyright information for XAO::Web.
Copyright information for XAO::Web suitable for HTML, with '©' for (C).
Content of the 'title' argument if there is any or empty string otherwise.
Current XAO::Web package version.
In most cases you would want to extend or override this object or at least its default template with something site specific.
No publicly available methods except overriden display().
Nothing.
Copyright (c) 2005 Andrew Maltsev
Copyright (c) 2001-2004 Andrew Maltsev, XAO Inc.
<am@ejelta.com> -- http://ejelta.com/xao/
Recommended reading: XAO::Web, XAO::DO::Web::Page.
| XAO-Web documentation | Contained in the XAO-Web distribution. |
############################################################################### package XAO::DO::Web::Footer; use strict; use XAO::Web; use XAO::Utils; use XAO::Objects; use base XAO::Objects->load(objname => 'Web::Page'); use vars qw($VERSION); $VERSION=(0+sprintf('%u.%03u',(q$Id: Footer.pm,v 2.1 2005/01/14 01:39:57 am Exp $ =~ /\s(\d+)\.(\d+)\s/))) || die "Bad VERSION"; sub display ($;%) { my $self=shift; my $args=get_args(\@_); my %a=( path => '/bits/page-footer', VERSION => $XAO::Web::VERSION, COPYRIGHT => 'Copyright (C) 2000-2002 XAO, Inc.', 'COPYRIGHT.HTML'=> 'Copyright © 2000-2002 XAO, Inc.', TITLE => $args->{title} || '', ); $self->SUPER::display(merge_refs(\%a,$args)); } ############################################################################### 1;