# This file is part of Dotclear 2. # # Copyright (c) 2003-2013 Olivier Meunier & Association Dotclear # Licensed under the GPL version 2.0 license. # See LICENSE file or # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html # # -- END LICENSE BLOCK ----------------------------------------- if (!defined('DC_RC_PATH')) { return; } require dirname(__FILE__) . '/class.widgets.php'; # Available widgets global $__widgets; $__widgets = new dcWidgets(); $__widgets->create('search', __('Search engine'), array('defaultWidgets', 'search'), null, 'Search engine form'); $__widgets->search->setting('title', __('Title (optional)') . ' :', __('Search')); $__widgets->search->setting('homeonly', __('Display on:'), 0, 'combo', array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); $__widgets->search->setting('content_only', __('Content only'), 0, 'check'); $__widgets->search->setting('class', __('CSS class:'), ''); $__widgets->search->setting('offline', __('Offline'), 0, 'check'); $__widgets->create('navigation', __('Navigation links'), array('defaultWidgets', 'navigation'), null, 'List of navigation links'); $__widgets->navigation->setting('title', __('Title (optional)') . ' :', ''); $__widgets->navigation->setting('homeonly', __('Display on:'), 0, 'combo', array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2)); $__widgets->navigation->setting('content_only', __('Content only'), 0, 'check'); $__widgets->navigation->setting('class', __('CSS class:'), ''); $__widgets->navigation->setting('offline', __('Offline'), 0, 'check'); $__widgets->create('bestof', __('Selected entries'), array('defaultWidgets', 'bestof'), null, 'List of selected entries'); $__widgets->bestof->setting('title', __('Title (optional)') . ' :', __('Best of me')); $__widgets->bestof->setting('orderby', __('Sort:'), 'asc', 'combo', array(__('Ascending') => 'asc', __('Descending') => 'desc')); $__widgets->bestof->setting('homeonly', __('Display on:'), 1, 'combo', array(__('All pages') => 0, __('Home page only') => 1, __('Except on home page') => 2));
# This file is part of Dotclear 2. # # Copyright (c) 2003-2009 Olivier Meunier and contributors # Licensed under the GPL version 2.0 license. # See LICENSE file or # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html # # -- END LICENSE BLOCK ------------------------------------ if (!defined('DC_RC_PATH')) { return; } require dirname(__FILE__) . '/class.widgets.php'; # Available widgets global $__widgets; $__widgets = new dcWidgets(); $__widgets->create('search', __('Search engine'), array('defaultWidgets', 'search')); $__widgets->search->setting('title', __('Title:'), __('Search')); $__widgets->create('navigation', __('Navigation links'), array('defaultWidgets', 'navigation')); $__widgets->navigation->setting('title', __('Title:'), ''); $__widgets->create('bestof', __('Selected entries'), array('defaultWidgets', 'bestof')); $__widgets->bestof->setting('title', __('Title:'), __('Best of me')); $__widgets->bestof->setting('homeonly', __('Home page only'), 1, 'check'); $__widgets->create('langs', __('Blog languages'), array('defaultWidgets', 'langs')); $__widgets->langs->setting('title', __('Title:'), __('Languages')); $__widgets->langs->setting('homeonly', __('Home page only'), 1, 'check'); $__widgets->create('categories', __('Categories list'), array('defaultWidgets', 'categories')); $__widgets->categories->setting('title', __('Title:'), __('Categories')); $__widgets->categories->setting('postcount', __('With entries counts'), 0, 'check'); $__widgets->create('subscribe', __('Subscribe links'), array('defaultWidgets', 'subscribe')); $__widgets->subscribe->setting('title', __('Title:'), __('Subscribe')); $__widgets->subscribe->setting('type', __('Feeds type:'), 'atom', 'combo', array('Atom' => 'atom', 'RSS' => 'rss2'));