Click or drag to resize
CssLinkHelperGetThemeCssUrl Method (String, String, Boolean)
Gets the URL for the Theme CSS file. Based in ~/App_Themes/[Theme] or ~/App_Themes/Default.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
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: String
See Also