shortArchives/_widgets.php
brol 074cd6cd16 1.8
ajout lien toutes les archives
2015-06-08 13:09:21 +02:00

37 lines
No EOL
1.4 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('allarchivesslinktitle',__('Link to all archives:'),__('All archives'));
$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');
}
}