mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-16 22:44:13 +01:00
Rename test-red variables
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
* * You should have received a copy of the GNU Affero General Public License
|
||||
*
|
||||
*/
|
||||
$ibo-page-banner-background-color: $ibo-color-red-600 !default;
|
||||
$ibo-page-banner-text-color: $ibo-color-red-100 !default;
|
||||
$ibo-page-banner-text-content: "THIS IS NOT PRODUCTION INSTANCE" !default;
|
||||
$ibo-page-banner--background-color: $ibo-color-red-600 !default;
|
||||
$ibo-page-banner--text-color: $ibo-color-red-100 !default;
|
||||
$ibo-page-banner--text-content: "THIS IS NOT PRODUCTION INSTANCE" !default;
|
||||
|
||||
|
||||
#ibo-page-banner::before {
|
||||
@@ -28,7 +28,7 @@ $ibo-page-banner-text-content: "THIS IS NOT PRODUCTION INSTANCE" !default;
|
||||
padding: 0.2rem;
|
||||
text-align: center;
|
||||
font-size: 1rem;
|
||||
background: $ibo-page-banner-background-color;
|
||||
color: $ibo-page-banner-text-color;
|
||||
content: $ibo-page-banner-text-content;
|
||||
background: $ibo-page-banner--background-color;
|
||||
color: $ibo-page-banner--text-color;
|
||||
content: $ibo-page-banner--text-content;
|
||||
}
|
||||
@@ -1859,9 +1859,9 @@
|
||||
</theme>
|
||||
<theme id="test-red" _delta="define">
|
||||
<variables>
|
||||
<variable id="ibo-page-banner-background-color">$ibo-color-red-600</variable>
|
||||
<variable id="ibo-page-banner-text-color">$ibo-color-red-100</variable>
|
||||
<variable id="ibo-page-banner-text-content">"THIS IS A TEST INSTANCE"</variable>
|
||||
<variable id="ibo-page-banner--background-color">$ibo-color-red-600</variable>
|
||||
<variable id="ibo-page-banner--text-color">$ibo-color-red-100</variable>
|
||||
<variable id="ibo-page-banner--text-content">"THIS IS A TEST INSTANCE"</variable>
|
||||
</variables>
|
||||
<imports>
|
||||
</imports>
|
||||
|
||||
@@ -827,17 +827,17 @@ class iTopDesignFormat
|
||||
|
||||
$oNodeList = $oXPath->query('/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="backoffice-environment-banner-background-color"]');
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oNode->setAttribute('id', 'ibo-page-banner-background-color');
|
||||
$oNode->setAttribute('id', 'ibo-page-banner--background-color');
|
||||
}
|
||||
|
||||
$oNodeList = $oXPath->query( '/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="backoffice-environment-banner-text-color"]');
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oNode->setAttribute('id', 'ibo-page-banner-text-color');
|
||||
$oNode->setAttribute('id', 'ibo-page-banner--text-color');
|
||||
}
|
||||
|
||||
$oNodeList = $oXPath->query( '/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="backoffice-environment-banner-text-content"]');
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oNode->setAttribute('id', 'ibo-page-banner-text-content');
|
||||
$oNode->setAttribute('id', 'ibo-page-banner--text-content');
|
||||
}
|
||||
|
||||
// Add new attribute to theme import nodes
|
||||
@@ -935,17 +935,17 @@ class iTopDesignFormat
|
||||
// N°3516 Bring back legacy themes
|
||||
// Update test-red theme
|
||||
|
||||
$oNodeList = $oXPath->query('/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="ibo-page-banner-background-color"]');
|
||||
$oNodeList = $oXPath->query('/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="ibo-page-banner--background-color"]');
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oNode->setAttribute('id', 'backoffice-environment-banner-background-color');
|
||||
}
|
||||
|
||||
$oNodeList = $oXPath->query('/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="ibo-page-banner-text-color"]');
|
||||
$oNodeList = $oXPath->query('/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="ibo-page-banner--text-color"]');
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oNode->setAttribute('id', 'backoffice-environment-banner-text-color');
|
||||
}
|
||||
|
||||
$oNodeList = $oXPath->query( '/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="ibo-page-banner-text-content"]');
|
||||
$oNodeList = $oXPath->query( '/itop_design/branding/themes/theme[@id="test-red"]/variables/variable[@id="ibo-page-banner--text-content"]');
|
||||
foreach ($oNodeList as $oNode) {
|
||||
$oNode->setAttribute('id', 'backoffice-environment-banner-text-content');
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<themes>
|
||||
<theme id="test-red" _delta="define">
|
||||
<variables>
|
||||
<variable id="ibo-page-banner-background-color">#C53030</variable>
|
||||
<variable id="ibo-page-banner--background-color">#C53030</variable>
|
||||
<variable id="var1">#C53030</variable>
|
||||
</variables>
|
||||
<imports>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<themes>
|
||||
<theme id="test-red" _delta="define">
|
||||
<variables>
|
||||
<variable id="ibo-page-banner-background-color">#C53030</variable>
|
||||
<variable id="ibo-page-banner--background-color">#C53030</variable>
|
||||
<variable id="var1">#C53030</variable>
|
||||
</variables>
|
||||
<imports>
|
||||
|
||||
Reference in New Issue
Block a user