Source for file _colls_list_public.widget.php
Documentation is available at _colls_list_public.widget.php
* This file implements the colls_list_public Widget class.
* This file is part of the evoCore framework - {@link http://evocore.net/}
* See also {@link http://sourceforge.net/projects/evocms/}.
* @copyright (c)2003-2010 by Francois PLANQUE - {@link http://fplanque.net/}
* {@internal License choice
* - If you have received this file as part of a package, please find the license.txt file in
* the same folder or the closest folder above for complete license terms.
* - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
* then you must choose one of the following licenses before using the file:
* - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
* - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
* {@internal Below is a list of authors who have contributed to design/coding of this file: }}
* @author fplanque: Francois PLANQUE.
* @version $Id: _colls_list_public.widget.php,v 1.12 2010/02/08 17:54:48 efy-yury Exp $
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
load_class( 'widgets/model/_widget.class.php', 'ComponentWidget' );
* A ComponentWidget is a displayable entity that can be placed into a Container on a web page.
// Call parent constructor:
return T_('Public blog list');
* Get a very short desc. Used in the widget list.
return T_('Display list of all blogs marked as public.');
* Get definitions for editable params
* @see Plugin::GetDefaultSettings()
* @param local params like 'for_editing' => true
'label' =>
T_( 'Title' ),
'note' =>
T_( 'This is the title to display, $icon$ will be replaced by the feed icon' ),
'defaultvalue' =>
T_('All blogs'),
'label' => T_( 'Display type' ),
'defaultvalue' => 'list',
'options' => array( 'list' => T_('List'), 'form' => T_('Select menu') ),
'note' => T_( 'How do you want to display blogs?' ),
* @param array MUST contain at least the basic display params
* Maybe be overriden by some widgets, depending on what THEY depend on..
* @return array of keys this widget depends on
'wi_ID' =>
$this->ID, // Have the widget settings changed ?
'set_coll_ID' =>
'any', // Have the settings of ANY blog changed ? (ex: new skin here, new name on another)
* $Log: _colls_list_public.widget.php,v $
* Revision 1.12 2010/02/08 17:54:48 efy-yury
* Revision 1.11 2009/12/22 03:30:24 blueyed
* Revision 1.10 2009/12/01 04:19:25 fplanque
* even more invalidation dimensions
* Revision 1.9 2009/09/14 13:54:13 efy-arrin
* Included the ClassName in load_class() call with proper UpperCase
* Revision 1.8 2009/09/12 11:03:13 efy-arrin
* Included the ClassName in the loadclass() with proper UpperCase
* Revision 1.7 2009/07/02 21:50:13 fplanque
* commented out unfinished code
* Revision 1.6 2009/06/18 07:35:53 yabs
* bugfix : $type is already a param ;)
* Revision 1.5 2009/05/28 06:49:06 sam2kb
* Blog list widget can be either a "regular list" or a "select menu"
* See http://forums.b2evolution.net/viewtopic.php?t=18794
* Revision 1.4 2009/03/13 02:32:07 fplanque
* Removed stupid widget_name param.
* Revision 1.3 2009/03/08 23:57:46 fplanque
* Revision 1.2 2008/01/21 09:35:37 fplanque
* Revision 1.1 2007/06/25 11:02:24 fplanque
* MODULES (refactored MVC)
* Revision 1.3 2007/06/20 21:42:13 fplanque
* implemented working widget/plugin params
* Revision 1.2 2007/06/20 14:25:00 fplanque
* Revision 1.1 2007/06/18 21:25:47 fplanque
* one class per core widget