N°2847 - Rework iTopWebPage layout (WIP Part VI)

- iTopWebPage: Restore "open search" feature
- iTopWebPage: Change all resources URL to absolute in order to benefit from the "duplicate removal" benefits
- iTopWebPage: Remove obsolete method IsMenuPaneVisible()
- Config: Add new parameters quick_create.enabled / global_search.enabled / breadcrumb.enabled
- utils: Add new GetAppRevisionNumber() method
- Introduce iUIBlock interface for UI layouts, components, ...
- Introduce BlockRenderer to properly render blocks
- Add "render_block" function to TwigHelper to render blocks directly from TWIG
- Refactor layouts and components into proper block classes to fit the new architecture
This commit is contained in:
Molkobain
2020-07-29 18:43:31 +02:00
parent b207ae1bb3
commit 1f0211b45a
43 changed files with 2537 additions and 335 deletions

View File

@@ -165,6 +165,20 @@ class RenderingOutput
return $this;
}
/**
* Set the JS files (absolute URLs) and replace any existing ones.
*
* @param array $aFiles Array of absolute URLs
*
* @return $this
* @since 2.8.0
*/
public function SetJsFiles($aFiles)
{
$this->aJsFiles = $aFiles;
return $this;
}
/**
*
* @param string $sFile
@@ -204,6 +218,20 @@ class RenderingOutput
return $this;
}
/**
* Set the CSS files (absolute URLs) and replace any existing ones.
*
* @param array $aFiles Array of absolute URLs
*
* @return $this
* @since 2.8.0
*/
public function SetCssFiles($aFiles)
{
$this->aCssFiles = $aFiles;
return $this;
}
/**
*
* @param string $sFile