Dotclear

source: plugins/dcSiteMap/_widgets.php @ 3169

Revision 3169, 749 bytes checked in by gaetan13, 10 years ago (diff)

Add a simple sitemap on your blog

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# This file is part of Dotclear 2.
5#
6# Copyright (c) 2010 Gaetan Guillard and contributors
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK ------------------------------------
12if (!defined('DC_RC_PATH')) { return; }
13
14$core->addBehavior('initWidgets',array('dcSiteMapWidgets','initWidgets'));
15
16class dcSiteMapWidgets
17{
18     public static function initWidgets($w)
19     {
20          $w->create('dcSiteMap',__('Site map'),array('tplSiteMap','dcSiteMapWidget'));
21          $w->dcSiteMap->setting('title',__('Title:'),__('Site map'));
22          $w->dcSiteMap->setting('homeonly',__('Home page only'),0,'check');
23     }
24}
25?>
Note: See TracBrowser for help on using the repository browser.

Sites map