shortArchives/_widgets.php
2015-04-25 20:38:55 +02:00

36 lines
1.3 KiB
PHP

<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
# This file is part of shortArchives, a plugin for Dotclear.
#
# Copyright (c) 2009-2015 - annso and contributors
# contact@as-i-am.fr
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# -- END LICENSE BLOCK ------------------------------------
if (!defined('DC_RC_PATH')) { return; }
$core->addBehavior('initWidgets',array('shortArchivesWidgets','initWidgets'));
class shortArchivesWidgets
{
public static function initWidgets($w)
{
$w->create('shortArchives',__('Short Archives'), array('tplShortArchives','shortArchivesWidgets'),
null,
__('Blog Archive List an accordion menu, sorted by year'));
$w->shortArchives->setting('title',__('Title:'),__('Archives'));
$w->shortArchives->setting('postcount',__('With entries counts'),1,'check');
$w->shortArchives->setting('homeonly',__('Display on:'),0,'combo',
array(
__('All pages') => 0,
__('Home page only') => 1,
__('Except on home page') => 2
)
);
$w->shortArchives->setting('content_only',__('Content only'),0,'check');
$w->shortArchives->setting('class',__('CSS class:'),'');
$w->shortArchives->setting('offline',__('Offline'),0,'check');
}
}