From d7bb8602fee678ae4b8124281c50168efeaf578d Mon Sep 17 00:00:00 2001 From: Nicholas Mayne Date: Mon, 11 Aug 2014 22:56:22 +0100 Subject: [PATCH] Adding directional class name --- src/Orchard.Web/Core/Shapes/Views/Document.cshtml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Core/Shapes/Views/Document.cshtml b/src/Orchard.Web/Core/Shapes/Views/Document.cshtml index 43ea91b09..2ab534907 100644 --- a/src/Orchard.Web/Core/Shapes/Views/Document.cshtml +++ b/src/Orchard.Web/Core/Shapes/Views/Document.cshtml @@ -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"); + } }