From 1bd781a927f72a945d3a9432eaff70c4fce45dff Mon Sep 17 00:00:00 2001 From: Dmitry Pushnitsa Date: Wed, 2 Dec 2020 12:51:11 +0200 Subject: [PATCH] Rework powered by filter --- .../Filters/CommonFilters.cs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/VirtoCommerce.LiquidThemeEngine/Filters/CommonFilters.cs b/VirtoCommerce.LiquidThemeEngine/Filters/CommonFilters.cs index 00357801..c33f42d5 100644 --- a/VirtoCommerce.LiquidThemeEngine/Filters/CommonFilters.cs +++ b/VirtoCommerce.LiquidThemeEngine/Filters/CommonFilters.cs @@ -24,17 +24,7 @@ namespace VirtoCommerce.LiquidThemeEngine.Filters public static partial class CommonFilters { private static readonly string[] _poweredLinks = { - ".NET ecommerce platform by Virto", - "Shopping Cart by Virto", - ".NET Shopping Cart by Virto", - "ASP.NET Shopping Cart by Virto", - ".NET ecommerce by Virto", - ".NET ecommerce framework by Virto", - "ASP.NET ecommerce by Virto Commerce", - "ASP.NET ecommerce platform by Virto", - "ASP.NET ecommerce framework by Virto", - "Enterprise ecommerce by Virto", - "Enterprise ecommerce platform by Virto", + "B2B ecommerce platform by Virto Commerce", }; private static readonly JsonSerializerSettings _jsonSerializerSettings = new JsonSerializerSettings @@ -67,10 +57,9 @@ public static object ParseJson(string input) return result; } - public static string PoweredBy(string signature) + public static string PoweredBy() { - var hashCode = (uint)signature.GetHashCode(); - return _poweredLinks[hashCode % _poweredLinks.Length]; + return _poweredLinks.FirstOrDefault(); } public static string Render(TemplateContext context, string input)