mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Adding directional class name
This commit is contained in:
@@ -7,7 +7,10 @@
|
||||
|
||||
string title = Convert.ToString(Model.Title);
|
||||
string siteName = Convert.ToString(WorkContext.CurrentSite.SiteName);
|
||||
bool isRtl = WorkContext.CurrentCultureInfo().TextInfo.IsRightToLeft;
|
||||
bool isRtl = WorkContext.CurrentCultureInfo().TextInfo.IsRightToLeft;
|
||||
if (isRtl) {
|
||||
Html.AddPageClassNames("dir-rtl");
|
||||
}
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html lang="@WorkContext.CurrentCulture" class="static @Html.ClassForPage()" dir="@(isRtl?"rtl":"ltr")">
|
||||
|
||||
Reference in New Issue
Block a user