@{ ViewBag.Title = "MenuFormula"; Layout = "~/Views/Shared/_LayoutHome.cshtml"; } @using NEducation.NEduService; @using NEducation.Content.Texts; @using NEducation.Code; @using NEducation.Controllers; @using System.Globalization; @using System.Linq; @using System.Threading; @model NEducation.Models.HfModel @**@ @{ List hfDatas = Session["categories"] as List; HfData menu = hfDatas.Find(x => x.PathParent == "/menu"); HfData gym = hfDatas.Find(x => x.PathParent == "/gym"); HfData nutrition = hfDatas.Find(x => x.PathParent == "/nutrition"); } @{ CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; String nameCulture = currentCulture.Name; } @section navMenu{ @Lang.Home @Lang.menu @Lang.nutrition @Lang.gym } @section menu{ @Lang.Home @Lang.menu @Lang.nutrition @Lang.gym }
@{ if (Model.content.ContentType == UtilsController.GetContentType.PICTURE_FILE) {
120
} }
@{ if (Model.content.ContentType == UtilsController.GetContentType.TEXT_TYPE) {
@Model.content.NameGlobal
} }

@{ if (nameCulture == "vi") { @Model.content.NameGlobal } else { @Model.content.NameLocal } }

@{ if (Model.content.ContentType == UtilsController.GetContentType.TEXT_TYPE) { if (nameCulture == "vi") { @Html.Raw(@Model.content.ContentGlobal) } else { @Html.Raw(@Model.content.ContentLocal) } } else { @if (nameCulture == } }
@{ if (Model.content.ContentType == UtilsController.GetContentType.PICTURE_FILE) { } }