mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 14:38:47 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user