1 <?php
2 /**
3 * RightSidebarTab.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 right
13 *
14 * @package Layout
15 */
16 class RightSidebarTab extends View{
17 /**
18 * Display the tab
19 *
20 * @param array $data The data to inject in the view
21 *
22 * @return string The generated HTML
23 */
24 public static function make($data){
25 if(!isset($data['sidebar']['class'])) {
26 $data['sidebar']['class'] = 'col-md-3 col-lg-2';
27 }
28
29 if(!isset($data['page']['class'])) {
30 $data['page']['class'] = 'col-md-9 col-lg-10';
31 }
32
33 return parent::make(Theme::getSelected()->getView('tabs-layout/tabs-sidebar-right.tpl'), $data);
34 }
35 }
36