🎨 HubConnectorPage : code formatting

This commit is contained in:
Pierre Goiffon
2021-03-10 17:17:01 +01:00
parent 979e73e376
commit 3ef307fada

View File

@@ -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 );
); }
}
} }