/
pageuiextension.class.inc.php
53 lines (47 loc) · 1.35 KB
/
pageuiextension.class.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Copyright (c) 2015 - 2019 Molkobain.
*
* This file is part of licensed extension.
*
* Use of this extension is bound by the license you purchased. A license grants you a non-exclusive and non-transferable right to use and incorporate the item in your personal or commercial projects. There are several licenses available (see https://www.molkobain.com/usage-licenses/ for more informations)
*/
namespace Molkobain\iTop\Extension\HandyFramework\Console\Extension;
use iPageUIExtension;
use iTopWebPage;
use utils;
use Molkobain\iTop\Extension\HandyFramework\Common\Helper\ConfigHelper;
/**
* Class PageUIExtension
*
* @package Molkobain\iTop\Extension\HandyFramework\Console\Extension
*/
class PageUIExtension implements iPageUIExtension
{
/**
* @inheritdoc
*/
public function GetNorthPaneHtml(iTopWebPage $oPage)
{
// Check if enabled
if(ConfigHelper::IsEnabled() === false)
{
return;
}
$oPage->add_saas('env-' . utils::GetCurrentEnvironment() . '/' . ConfigHelper::GetModuleCode() . '/common/css/handy-framework.scss');
$oPage->add_linked_script(ConfigHelper::GetAbsoluteModuleUrl() . 'common/js/handy-framework.js');
}
/**
* @inheritdoc
*/
public function GetSouthPaneHtml(iTopWebPage $oPage)
{
// Nothing to do
}
/**
* @inheritdoc
*/
public function GetBannerHtml(iTopWebPage $oPage)
{
// Nothing to do
}}