mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
🎨 HubConnectorPage : code formatting
This commit is contained in:
@@ -1,26 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once(APPROOT."/application/user.preferences.class.inc.php");
|
require_once(APPROOT."/application/user.preferences.class.inc.php");
|
||||||
|
|
||||||
class HubConnectorPage extends NiceWebPage
|
class HubConnectorPage extends NiceWebPage
|
||||||
{
|
{
|
||||||
public function __construct($sTitle)
|
public function __construct($sTitle)
|
||||||
{
|
{
|
||||||
parent::__construct($sTitle);
|
parent::__construct($sTitle);
|
||||||
|
|
||||||
$this->no_cache();
|
$this->no_cache();
|
||||||
$this->add_xframe_options();
|
$this->add_xframe_options();
|
||||||
|
|
||||||
$sImagesDir = utils::GetAbsoluteUrlAppRoot().'images';
|
$sImagesDir = utils::GetAbsoluteUrlAppRoot().'images';
|
||||||
$sModuleImagesDir = utils::GetAbsoluteUrlModulesRoot().'itop-hub-connector/images';
|
$sModuleImagesDir = utils::GetAbsoluteUrlModulesRoot().'itop-hub-connector/images';
|
||||||
|
|
||||||
$sUserPrefs = appUserPreferences::GetAsJSON();
|
$sUserPrefs = appUserPreferences::GetAsJSON();
|
||||||
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/utils.js');
|
$this->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/utils.js');
|
||||||
$this->add_script(
|
$this->add_script(<<<JS
|
||||||
<<<EOF
|
|
||||||
var oUserPreferences = $sUserPrefs;
|
var oUserPreferences = $sUserPrefs;
|
||||||
EOF
|
JS
|
||||||
);
|
);
|
||||||
$this->add_style(
|
$this->add_style(<<<CSS
|
||||||
<<<EOF
|
|
||||||
body {
|
body {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
color: rgba(0, 0, 0, 0.87);
|
color: rgba(0, 0, 0, 0.87);
|
||||||
@@ -113,8 +112,7 @@ div#integrity_issues {
|
|||||||
div#integrity_issues .query {
|
div#integrity_issues .query {
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
|
CSS
|
||||||
EOF
|
);
|
||||||
);
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user