CSSHelperGetThemeCSSUrl Method (String, String, Boolean) |
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax public static string GetThemeCSSUrl(
string theme,
string fileName,
bool useOnlySpecifiedTheme
)
Parameters
- theme
- Type: SystemString
Stylesheet theme - fileName
- Type: SystemString
Name of the stylesheet file - useOnlySpecifiedTheme
- Type: SystemBoolean
If true, then return the url only for the specified theme, if the file not found return null
Return Value
Type:
StringSee Also