function __construct() { parent::__construct('jolie_widget', 'jolie widget', array('classname' => 'jolie_widget', 'description' => 'simple wordpress widget api testing....')); // register stylesheets add_action('admin_print_styles', array($this, 'register_admin_styles')); add_action('wp_enqueue_scripts', array($this, 'register_widget_styles')); // register scripts add_action('admin_enqueue_scripts', array($this, 'register_admin_scripts')); add_action('wp_enqueue_scripts', array($this, 'register_widget_scripts')); }
/** constructor */ public function __construct() { $widget_ops = array('description' => __('Upcoming Events', 'amr-ical-events-list'), 'classname' => 'widget_calendar'); parent::__construct(false, __('Upcoming Events Calendar', 'amr-ical-events-list'), $widget_ops); }
function moduletrad_widget() { $widget_ops = array('classname' => 'traduction-ipra', 'description' => 'Automatic translation of religious terms'); parent::__construct('widget-moduletrad', 'Widget de traduction IPRA', $widget_ops); }
public function __construct() { //set base values for the widget (override parent) parent::__construct('wp_location_widget', 'WP Location Widget', array('description' => 'A widget that displays your locations')); add_action('widgets_init', array($this, 'register_wp_location_widgets')); }
public function __construct() { // widget actual processes parent::__construct('reedwan_video_widget', $name = __('Corporative: Video Widget', 'corporative'), array('description' => __('Video Widget', 'corporative'))); }