Fixed theme Blogger
[vanilla-miry.git] / library / Vanilla / Vanilla.Control.CategoryList.php
blob39b9cd5d24e263af636e228e375f81143654023c
1 <?php
2 /**
3 * The CategoryList control displays a summary of all categories in Vanilla.
5 * Copyright 2003 Mark O'Sullivan
6 * This file is part of Lussumo's Software Library.
7 * Lussumo's Software Library 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; either version 2 of the License, or (at your option) any later version.
8 * Lussumo's Software Library 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.
9 * You should have received a copy of the GNU General Public License along with Vanilla; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
10 * The latest source code is available at www.lussumo.com
11 * Contact Mark O'Sullivan at mark [at] lussumo [dot] com
13 * @author Mark O'Sullivan
14 * @copyright 2003 Mark O'Sullivan
15 * @license http://lussumo.com/community/gpl.txt GPL 2
16 * @package Vanilla
17 * @version 1.1.10
21 /**
22 * Displays a category list.
23 * @package Vanilla
25 class CategoryList extends Control {
26 var $Data;
28 function CategoryList(&$Context) {
29 $this->Name = 'CategoryList';
30 $this->Control($Context);
31 $CategoryManager = $this->Context->ObjectFactory->NewContextObject($this->Context, 'CategoryManager');
32 $this->Data = $CategoryManager->GetCategories(1);
33 $this->CallDelegate('Constructor');
36 function Render() {
37 $this->CallDelegate('PreRender');
38 include(ThemeFilePath($this->Context->Configuration, 'categories.php'));
39 $this->CallDelegate('PostRender');