# Blosxom Plugin: category_title # Author(s): cu39 (http://cu39.s57.xrea.com/) # Version: 2006-04-02 # Blosxom Home/Docs/Licensing: http://www.blosxom.com/ package category_title; use strict; use vars qw($title); # --- Configurable variables ----------- # separator my $category_sep = ' - '; # set 1, and display categorie(s) string on an individual entry. my $individual_flag = 0; # --- Plug-in package variables -------- # -------------------------------------- sub start { return ($blosxom::path_info_yr) ? 0 : (!$individual_flag && $blosxom::path_info =~ /\.$blosxom::flavour$/) ? 0 : 1; } sub head { my($pkg, $path) = @_; return 0 if ($path eq ''); $path =~ s|/.*\.$blosxom::flavour$|| if ($individual_flag); $path =~ s|/|$category_sep|g; $title = $category_sep . $path; return 1; } 1; __END__ =head1 NAME Blosxom Plug-in: category_title =head1 SYNOPSIS Enables to display categories in head.I. ... $blog_title $category_title ... =head1 VERSION 2006-04-02 =head1 AUTHOR cu39 , http://cu39.s57.xrea.com/ =head1 LICENSE Blosxom Home/Docs/Licensing: http://www.blosxom.com/