From: Gavin Carr Date: Tue, 9 Oct 2007 23:49:02 +0000 (+0000) Subject: Add gavinc/plugin_list plugin. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=48a66ed8a47e6f69eb64f7ab933a6e7f2ceae6ef;p=matthijs%2Fupstream%2Fblosxom-plugins.git Add gavinc/plugin_list plugin. --- diff --git a/MANIFEST.medium b/MANIFEST.medium index dbebbde..39c071c 100644 --- a/MANIFEST.medium +++ b/MANIFEST.medium @@ -47,6 +47,7 @@ modiftime noslashredir pagetype permalink +plugin_list prefs prevnextstory rating diff --git a/gavinc/plugin_list b/gavinc/plugin_list new file mode 100644 index 0000000..59fb9d5 --- /dev/null +++ b/gavinc/plugin_list @@ -0,0 +1,85 @@ +# Blosxom Plugin: plugin_list +# Author(s): Gavin Carr +# Version: 0.001000 +# Documentation: See the bottom of this file or type: perldoc plugin_list + +package plugin_list; + +use strict; + +# --- Configuration variables ----- + +# None + +# --------------------------------- + +# Package variables +use vars qw( $list ); +$list = ''; + +sub start { 1 } + +sub head { + return unless @blosxom::plugins; + $list = sprintf "\n", join('', map { "
  • $_
  • \n" } @blosxom::plugins); +} + +1; + +__END__ + +=head1 NAME + +plugin_list - blosxom plugin to produce an html list ($plugin_list::list) +of loaded plugins + + +=head1 DESCRIPTION + +plugin_list is a blosxom plugin to produce an html list ($plugin_list::list) +of loaded plugins. + + +=head1 USAGE + +plugin_list has no particular ordering requirements. + + +=head1 SEE ALSO + +Blosxom: http://blosxom.sourceforge.net/ + + +=head1 AUTHOR + +Gavin Carr , http://www.openfusion.net/ + + +=head1 LICENSE + +Copyright 2007, Gavin Carr. + +This plugin is licensed under the same terms as blosxom itself i.e. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +=cut + +# vim:ft=perl:sw=4 +