- 18
@using Nop.Web.Framework;
@using Nop.Core.Infrastructure;
@using Nop.Web.Framework.UI;
@using Nop.Core;
@{
var supportRtl = EngineContext.Current.Resolve<IWorkContext>().WorkingLanguage.Rtl;
var browser = Request.Browser;
var isIeEightOrLess = false;
if (browser.Browser == "IE" && browser.MajorVersion <= 8){
isIeEightOrLess = true;
}
if (isIeEightOrLess)
{
if (supportRtl)
{
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/ie8-fix.rtl.css");
}
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/ie8-fix.css");
}
if (supportRtl)
{
Html.AppendCssFileParts("~/Themes/Alfresco/Content/CSS/480.rtl.css");
Html.AppendCssFileParts("~/Themes/Alfresco/Content/CSS/768.rtl.css");
Html.AppendCssFileParts("~/Themes/Alfresco/Content/CSS/980.rtl.css");
}
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/tables.css");
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/480.css");
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/768.css");
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/980.css");
if (supportRtl)
{
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/styles.rtl.css");
}
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/styles.css");
Html.AppendCssFileParts("~/Themes/Alfresco/Content/css/custom-user-styles.css");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.js");
if (isIeEightOrLess)
{
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/selectivizr.min.js");
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/respond.min.js");
}
Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/footable.js");
Html.AddScriptParts("~/Themes/Alfresco/Content/scripts/Alfresco.js");
}
Any suggestion?
PS: I have already cleared the cache, tried including the custom css file in the Head.cshtml file, then changing it to the _Root.Head.cshtml and it doesn't work.
When I change anything via the Alfresco plugin settings directly in the nopcommerce Admin section, it works perfect, so the problem is definitely the order in which the css files are being loaded (I could send you a captured screen if needed)
Thanks!