/**
  * Specifies the classname and description, instantiates the widget. No
  * stylesheets or JavaScript needed, localization loaded in public class.
  */
 public function __construct()
 {
     $this->widget_name = __('WPMovieLibrary Taxonomies', 'wpmovielibrary');
     $this->widget_description = __('Display a list of terms from a specific taxonomy: collections, genres or actors.', 'wpmovielibrary');
     $this->widget_css = 'wpmoly taxonomies';
     $this->widget_id = 'wpmovielibrary-taxonomies-widget';
     $this->widget_form = 'taxonomies-widget/taxonomies-admin.php';
     $this->widget_params = array('title' => array('type' => 'text', 'std' => __('Movie Taxonomies', 'wpmovielibrary')), 'description' => array('type' => 'text', 'std' => ''), 'taxonomy' => array('type' => 'select', 'std' => ''), 'list' => array('type' => 'checkbox', 'std' => 0), 'count' => array('type' => 'checkbox', 'std' => 0), 'orderby' => array('type' => 'select', 'std' => 'count'), 'order' => array('type' => 'select', 'std' => 'DESC'), 'css' => array('type' => 'checkbox', 'std' => 0), 'limit' => array('type' => 'number', 'std' => WPMOLY_MAX_TAXONOMY_LIST));
     $this->taxonomies = array('collection' => array('default' => __('Select a collection', 'wpmovielibrary'), 'view_all' => __('View all collections', 'wpmovielibrary'), 'empty' => __('Nothing to display for "Collection" taxonomy.', 'wpmovielibrary')), 'genre' => array('default' => __('Select a genre', 'wpmovielibrary'), 'view_all' => __('View all genres', 'wpmovielibrary'), 'empty' => __('Nothing to display for "Genre" taxonomy.', 'wpmovielibrary')), 'actor' => array('default' => __('Select an actor', 'wpmovielibrary'), 'view_all' => __('View all actors', 'wpmovielibrary'), 'empty' => __('Nothing to display for "Actor" taxonomy.', 'wpmovielibrary')));
     parent::__construct();
 }
 /**
  * Specifies the classname and description, instantiates the widget. No
  * stylesheets or JavaScript needed, localization loaded in public class.
  */
 public function __construct()
 {
     $this->widget_name = __('WPMovieLibrary Details', 'wpmovielibrary');
     $this->widget_description = __('Display a list of the available details: status, media and rating.', 'wpmovielibrary');
     $this->widget_css = 'wpmoly details';
     $this->widget_id = 'wpmovielibrary-details-widget';
     $this->widget_form = 'details-widget/details-admin.php';
     $this->widget_params = array('title' => array('type' => 'text', 'std' => __('Movie Details', 'wpmovielibrary')), 'description' => array('type' => 'text', 'std' => ''), 'detail' => array('type' => 'select', 'std' => ''), 'list' => array('type' => 'checkbox', 'std' => 0), 'css' => array('type' => 'checkbox', 'std' => 0));
     $this->details = array();
     $supported = WPMOLY_Settings::get_supported_movie_details();
     foreach ($supported as $slug => $detail) {
         $this->details[$slug] = array('default' => sprintf(__('Select a %s', 'wpmovielibrary'), $slug), 'empty' => sprintf(__('No %s to display.', 'wpmovielibrary'), $slug));
     }
     parent::__construct();
 }
 /**
  * Specifies the classname and description, instantiates the widget. No
  * stylesheets or JavaScript needed, localization loaded in public class.
  */
 public function __construct()
 {
     $this->widget_name = __('WPMovieLibrary Movies', 'wpmovielibrary');
     $this->widget_description = __('Display a list of movies from a specific taxonomy, media, status, rating…', 'wpmovielibrary');
     $this->widget_css = 'wpmoly movies';
     $this->widget_id = 'wpmovielibrary-movies-widget';
     $this->widget_form = 'movies-widget/movies-admin.php';
     $this->widget_params = array('title' => array('type' => 'text', 'std' => __('Movies', 'wpmovielibrary')), 'description' => array('type' => 'text', 'std' => ''), 'select' => array('type' => 'select', 'std' => 'date'), 'select_status' => array('type' => 'select', 'std' => 'all'), 'select_media' => array('type' => 'select', 'std' => 'all'), 'select_rating' => array('type' => 'select', 'std' => 'all'), 'select_meta' => array('type' => 'select', 'std' => 'all'), 'release_date' => array('type' => 'text', 'std' => ''), 'spoken_languages' => array('type' => 'text', 'std' => ''), 'production_companies' => array('type' => 'text', 'std' => ''), 'production_countries' => array('type' => 'text', 'std' => ''), 'certification' => array('type' => 'text', 'std' => ''), 'sort' => array('type' => 'select', 'std' => 'DESC'), 'limit' => array('type' => 'number', 'std' => 4), 'show_poster' => array('type' => 'select', 'std' => 'normal'), 'show_title' => array('type' => 'select', 'std' => 'no'), 'show_rating' => array('type' => 'select', 'std' => 'starsntext'), 'exclude_current' => array('type' => 'select', 'std' => 'no'));
     $this->movies_by = array('status' => __('Status', 'wpmovielibrary'), 'media' => __('Media', 'wpmovielibrary'), 'rating' => __('Rating', 'wpmovielibrary'), 'title' => __('Title', 'wpmovielibrary'), 'date' => __('Date', 'wpmovielibrary'), 'meta' => __('Metadata', 'wpmovielibrary'), 'random' => __('Random', 'wpmovielibrary'));
     $this->status = WPMOLY_Settings::get_available_movie_status();
     $this->media = WPMOLY_Settings::get_available_movie_media();
     $this->rating = WPMOLY_Settings::get_available_movie_rating();
     $this->meta = array('release_date' => __('Release Date', 'wpmovielibrary'), 'production_companies' => __('Production', 'wpmovielibrary'), 'production_countries' => __('Country', 'wpmovielibrary'), 'spoken_languages' => __('Languages', 'wpmovielibrary'), 'certification' => __('Certification', 'wpmovielibrary'));
     $this->years = WPMOLY_Utils::get_used_years($count = true);
     $this->languages = WPMOLY_Utils::get_used_languages($count = true);
     $this->companies = WPMOLY_Utils::get_used_companies($count = true);
     $this->countries = WPMOLY_Utils::get_used_countries($count = true);
     $this->certifications = WPMOLY_Utils::get_used_certifications($count = true);
     parent::__construct();
 }