This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
/**
* Widget class for users lists.
* Always shows the same output format and control.
* Must define the methods startUp() and widget()
*
* @package AOC
* @subpackage Library
* @since 0.8
*/
final class chameleonPalettes extends WP_Widget
{
/**
* Plugin ID and translation textDomain.
* @var string
*/
private $pid;
/**
* Class constructor.
* @see WP_Widget::__construct()
*/
public function __construct()
{
global $SidePosts;
$this->pid = ak_theme()->ID; // Translation textdomain.
$options = array('classname' => 'widget_palettes', 'description' => __('Select Chameleon theme palettes.', $this->pid) );
parent::__construct($this->pid, __('Chameleon Palettes', $this->pid), $options );
}
/**
* Widget Output
* @see WP_Widget::widget()
*/
public function widget( $args, $instance )
{
$palettes = ak_chameleon_palettes();
extract( $args, EXTR_SKIP );
echo $before_widget;
if ( !empty($instance['title']) ) {
echo $before_title. $instance['title'] . $after_title;
}
echo '