This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Security; | |
using EPiServer.Web.Routing; | |
using Gosso.Mvc.Business.Initialization; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> | |
<metadata> | |
<id>FotoWare.PlugIns.Episerver</id> | |
<version>$version$</version> | |
<title>Episerver Addon integrates Fotoware DAM with Episerver CMS and Commerce</title> | |
<authors>FotoWare</authors> | |
<owners>FotoWare</owners> | |
<iconUrl>https://www.fotoware.com/hubfs/FotoWare_January2018/image/favicon.ico</iconUrl> | |
<projectUrl>https://learn.fotoware.com/02_FotoWeb_8.0/Integrating_FotoWeb_with_third-party_systems/Episerver_plugin_documentation</projectUrl> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function epiGat(settings) { | |
if (settings.downloads || settings.external || settings.mailto) { | |
var isinternal = new RegExp('^' + window.location.protocol + '\/\/' + window.location.host, 'i'); | |
function addEvent(obj, type, fn) { | |
if (obj.addEventListener) | |
obj.addEventListener(type, fn, false); | |
else if (obj.attachEvent) { | |
obj['e' + type + fn] = fn; | |
obj[type + fn] = function () { obj['e' + type + fn](window.event); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<module> | |
<!--clientResources> | |
<add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/> | |
</clientResources--> | |
<dojo> | |
<!-- Add a mapping from site to ~/ClientResources/Scripts to the dojo loader configuration --> | |
<paths> | |
<add name="clientscripts" path="Scripts" /> | |
</paths> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AlloyTemplates.Business; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.Personalization.VisitorGroups; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Web; | |
using System; | |
using System.Configuration; | |
using System.Reflection; | |
using System.Web; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.DataAbstraction; | |
using EPiServer.Framework.Web; | |
using EPiServer.Globalization; | |
using EPiServer.Logging; | |
using EPiServer.ServiceLocation; | |
using EPiServer.Web; | |
using EPiServer.Web.Mvc; | |
using System.Collections.Generic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Iterates the prices from ERP into Episerver Commerce | |
/// </summary> | |
/// <param name="variant"></param> | |
/// <param name="item">Custom Entity from ERP system</param> | |
private static void AddUpdatePrice(VariationContent variant, PriceMessage item) | |
{ | |
//no need to delete any prices, IPriceService optimizes the prices from the new prices | |
var priceService = ServiceLocator.Current.GetInstance<IPriceService>(); | |
List<IPriceValue> priceValues = new List<IPriceValue>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Mvc.ApplicationModels; | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
namespace Foundation.Infrastructure.Display | |
{ | |
public class FeatureConvention : IControllerModelConvention | |
{ | |
public void Apply(ControllerModel controller) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.RegularExpressions; | |
namespace Gosso.Mvc.Helpers | |
{ | |
public class MailToHelper | |
{ | |
private static readonly string replaceTemplate = @"#"" onclick=""window.location = 'mailto:' + ['{0}'].join(''); return false;"; | |
public static string TransformMailToLinks(string text) |