function __construct() { if (empty(self::$orderby_reference)) { self::$orderby_reference = array('date' => _x('Order by date', 'backend orderby', LANGUAGE_ZONE), 'ID' => _x('Order by ID', 'backend orderby', LANGUAGE_ZONE), 'name' => _x('Order by name', 'backend orderby', LANGUAGE_ZONE), 'modified' => _x('Order by modified', 'backend orderby', LANGUAGE_ZONE), 'rand' => _x('Order by rand', 'backend orderby', LANGUAGE_ZONE), 'parent menu_order' => _x('Order by parent', 'backend orderby', LANGUAGE_ZONE)); } /* Widget settings. */ $widget_ops = array('description' => __('A widget with photos from your albums', 'dt')); /* Widget control settings. */ $control_ops = array('width' => 250, 'height' => 250, 'id_base' => 'dt-latest-photo-widget'); /* Create the widget. */ parent::__construct('dt-latest-photo-widget', DT_WIDGET_PREFIX . __('Small photos', LANGUAGE_ZONE), $widget_ops, $control_ops); }