mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 06:28:46 +02:00
N°7397 - Update welcome popup content for iTop 3.2 (#648)
* N°7397 - Update welcome popup content for iTop 3.2 * N°7397 - Display illustrations as restylable SVG, add extension to twig to support absolute url in source function * N°7397 - Update 3.2 welcome messages dictionaries, add French translations and set up other languages files --------- Co-authored-by: Stephen Abello <stephen.abello@combodo.com>
This commit is contained in:
@@ -65,6 +65,32 @@ class MessageFactory {
|
||||
);
|
||||
}
|
||||
|
||||
public static function MakeForLeftIllustrationAsSVGMarkupRightTexts(string $sId, string $sTitle, string $sDescription, null|string $sIllustrationAbsURI = null, int $iImportance = iWelcomePopupExtension::DEFAULT_IMPORTANCE): Message
|
||||
{
|
||||
return new Message(
|
||||
$sId,
|
||||
$sTitle,
|
||||
$sDescription,
|
||||
$sIllustrationAbsURI,
|
||||
[],
|
||||
$iImportance,
|
||||
"templates/application/welcome_popup/templates/left-illustration-as-svg-markup-right-title-description.html.twig"
|
||||
);
|
||||
}
|
||||
|
||||
public static function MakeForLeftTextsRightIllustrationAsSVGMarkup(string $sId, string $sTitle, string $sDescription, null|string $sIllustrationAbsURI = null, int $iImportance = iWelcomePopupExtension::DEFAULT_IMPORTANCE): Message
|
||||
{
|
||||
return new Message(
|
||||
$sId,
|
||||
$sTitle,
|
||||
$sDescription,
|
||||
$sIllustrationAbsURI,
|
||||
[],
|
||||
$iImportance,
|
||||
"templates/application/welcome_popup/templates/left-title-description-right-illustration-as-svg-markup.html.twig"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sId Unique ID of the message within its provider
|
||||
* @param string $sTitle Title of the message in plain text
|
||||
|
||||
Reference in New Issue
Block a user