1 <?php
2 /**
3 * LeftSidebarTab.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 with a sidebar on left
13 *
14 * @package Layout
15 */
16 class LeftSidebarTab 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(!isset($data['sidebar']['class'])) {
27 $data['sidebar']['class'] = 'col-md-3 col-lg-2';
28 }
29
30 if(!isset($data['page']['class'])) {
31 $data['page']['class'] = 'col-md-9 col-lg-10';
32 }
33
34 return parent::make(Theme::getSelected()->getView('tabs-layout/tabs-sidebar-left.tpl'), $data);
35 }
36 }