wire('input')->get('test_notices')) { $this->message('Message test'); $this->message('Message test debug', Notice::debug); $this->message('Message test markup example', Notice::allowMarkup); $this->warning('Warning test'); $this->warning('Warning test debug', Notice::debug); $this->warning('Warning test markup example', Notice::allowMarkup); $this->error('Error test'); $this->error('Error test debug', Notice::debug); $this->error('Error test markup example', Notice::allowMarkup); } $this->wire('modules')->get('JqueryUI')->use('panel'); } /** * Perform a translation, based on text from shared admin file: /wire/templates-admin/default.php * * @param string $text * @return string * */ public function _($text) { static $translate = null; if(is_null($translate)) $translate = $this->wire('languages') !== null; if($translate === false) return $text; $value = __($text, $this->wire('config')->paths->root . 'wire/templates-admin/default.php'); if($value === $text) $value = parent::_($text); return $value; } /** * Get the headline for the current admin page * * @return string * */ public function getHeadline() { $headline = $this->wire('processHeadline'); if(!$headline) $headline = $this->wire('page')->get('title|name'); $headline = $this->wire('sanitizer')->entities1($this->_($headline)); return $headline; } /** * Render a list of breadcrumbs (list items), excluding the containing