| Babble documentation | Contained in the Babble distribution. |
Babble::Theme::advogato - Advogato inspired theme for Babble
The advogato theme was inspired by the http://advogato.org/ theme, and builds upon that style heavily. It provides quite a few features, but is more suited for smaller collections.
The following variables are used by the template (variables coming from Babble::Document or Babble::Document::Collection sources are not listed here!)
The title of the Babble
Optional extra text in the banner are.
Optional description of the babble.
Optional, but recommended, link to the CSS stylesheet to use. Defaults to advogato.css.
Optional charset.
A few words about the Babble. If not specified, a default text is used.
E-Mail address of the Babble maintainer.
Name of the Babble maintainer.
Optional text in the feed area. If not specified, a default text is used.
Link to the feed the Babble provides.
Turn off generating the Subscriptions area in the sidebar.
Enables the Planetarium, a link collection to related or unrelated sites (Babbles, planets and the like). When enabled, a planetarium paramater must be made available to the template. This should contain an array of hashes. The layout should be as follows:
planetarium => [ { name => 'Example', url => 'http://example.org/' } ]
Disables linking to the entry sources. This is very handy when one wants to generate a front page with news items, or when one is using Babble to generate an original blog, instead of an aggregation.
By default, after each entry, this theme places its submission date. This can be turned off with this knob.
Gergely Nagy, algernon@bonehunter.rulez.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.
Babble::Theme, Babble::Output::TTk
| Babble documentation | Contained in the Babble distribution. |
## Babble/Theme/advogato.pm ## Copyright (C) 2004 Gergely Nagy <algernon@bonehunter.rulez.org> ## ## This file is part of Babble. ## ## Babble is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; version 2 dated June, 1991. ## ## Babble is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## for more details. ## ## You should have received a copy of the GNU General Public License ## along with this program; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package Babble::Theme::advogato; use strict; use Babble::Theme; use Babble::Output::TTk; use vars qw(@ISA); @ISA = qw(Babble::Theme);
sub output { my ($self, $babble, $params) = @_; $params->{-format} = "html" unless $params->{-format}; $self->_merge_params ($babble, $params, { -template => $self->_find_template ('advogato', $params->{-format}), meta_css_link => "advogato.css", } ); return Babble::Output::TTk->output ($babble, $params); }
1; # arch-tag: c52c2c92-e0de-4ad3-a958-8ca6ecc70c69