ThemeConfiguration.js revision ad920a5855b8eda16e20b7299c1f8b5f6771166d
1967N/A/**
2362N/A * The contents of this file are subject to the terms of the Common Development and
1967N/A * Distribution License (the License). You may not use this file except in compliance with the
1967N/A * License.
1967N/A *
1967N/A * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
1967N/A * specific language governing permission and limitations under the License.
1967N/A *
1967N/A * When distributing Covered Software, include this CDDL Header Notice in each file and include
1967N/A * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
1967N/A * Header, with the fields enclosed by brackets [] replaced by your own identifying
1967N/A * information: "Portions copyright [year] [name of copyright owner]".
1967N/A *
1967N/A * Copyright 2015 ForgeRock AS.
1967N/A */
1967N/A
1967N/Adefine("config/ThemeConfiguration", {
1967N/A themes: {
2362N/A // There must be a theme named "default".
2362N/A "default": {
2362N/A // An ordered list of URLs to stylesheets that will be applied to every page.
1967N/A stylesheets: ["css/bootstrap-3.3.5-custom.css", "css/structure.css", "css/theme.css"],
1967N/A // A path that is prepended to every relative URL when fetching resources (including images, stylesheets and
1967N/A // HTML template files).
1967N/A path: "",
1967N/A // A URL to a favicon icon
1967N/A icon: "favicon.ico",
1967N/A settings: {
1967N/A // This logo is displayed on user profile pages.
1967N/A logo: {
1967N/A // The URL of the image.
1967N/A src: "images/logo-horizontal.png",
1967N/A // The title attribute used on <img> tags.
1967N/A title: "ForgeRock",
1967N/A // The alt attribute used on <img> tags.
1967N/A alt: "ForgeRock"
1967N/A },
1967N/A // This logo is displayed on login pages.
1967N/A loginLogo: {
1967N/A // The URL of the image.
1967N/A src: "images/login-logo.png",
1967N/A // The title attribute used on <img> tags.
1967N/A title: "ForgeRock",
// The alt attribute used on <img> tags.
alt: "ForgeRock",
// The height of the logo as a CSS length.
height: "104px",
// The width of the logo as a CSS length.
width: "210px"
},
// The footer is displayed on every page.
footer: {
// A contact email address.
mailto: "info@forgerock.com",
// A contact phone number. If empty, it will not be displayed.
phone: ""
}
}
},
"fr-dark-theme": {
// An ordered list of URLs to stylesheets that will be applied to every page.
stylesheets: [
"themes/dark/css/bootstrap-3.3.5-custom.css",
"css/structure.css",
"themes/dark/css/theme-dark.css"
],
settings: {
loginLogo: {
src: "themes/dark/images/login-logo-white.png",
title: "ForgeRock",
alt: "ForgeRock",
height: "228px",
width: "220px"
}
}
}
},
// Each mapping will be tested in order. The theme from the first matching mapping will be used. If no mapping
// matches then the theme "default" will be used.
mappings: [
// Use the theme with the key "my-theme" if the realm is either /my-realm or /my/sub-realm.
//{ theme: "my-theme", realms: ["/my-realm", "/my/sub-realm"] }
// Use the theme "my-second-theme" if the realm starts with /a. e.g. /ab or /a/c.
//{ theme: "my-second-theme", realms: [/^\/a/] }
// Use the theme "my-third-theme" if the realm is /a and the authentication chain is auth-chain-1.
//{ theme: "my-third-theme", realms: ["/a"], authenticationChains: ["auth-chain-1"] }
// Use the theme "my-fourth-theme" if the default authentication chain is in use.
//{ theme: "my-fourth-theme", authenticationChains: [""] }
]
});