1 <?php
2 /**
3 * Panem.php
4 *
5 * @author Elvyrra SAS
6 * @license http://rem.mit-license.org/ MIT
7 */
8
9 namespace Hawk;
10
11 /**
12 * This class is used to display a panel
13 *
14 * @package Layout
15 */
16 class Panel extends View{
17
18 /**
19 * Display the panem
20 *
21 * @param array $data The data to inject in the view
22 *
23 * @return string The generated HTML
24 */
25 public static function make($data){
26 if(empty($data['id'])) {
27 $data['id'] = uniqid();
28 }
29 if(empty($data['type'])) {
30 $data['type'] = 'info';
31 }
32 return parent::make(Theme::getSelected()->getView('panel.tpl'), $data);
33 }
34 }