1 <?php
2 /**
3 * NoSidebarTab.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 whole tab without sidebar
13 *
14 * @package Layout
15 */
16 class NoSidebarTab extends View{
17
18 /**
19 * Display the tab
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(is_array($data['page']) && isset($data['page']['content']))
27 $data['page'] = $data['page']['content'];
28
29 return parent::make(Theme::getSelected()->getView('tabs-layout/tabs-no-sidebar.tpl'), $data);
30 }
31 }
32