Making a few corrections to the embed plugin - primarily changing namespace in Core project.
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
using System;
|
||||
using Umbraco.Core.Embed;
|
||||
using System.Text;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
{
|
||||
@@ -21,11 +20,6 @@ namespace Umbraco.Web.Media.EmbedProviders
|
||||
|
||||
public abstract string GetMarkup(string url, int maxWidth, int maxHeight);
|
||||
|
||||
//public virtual string GetPreview(string url, int maxWidth, int maxHeight)
|
||||
//{
|
||||
// return GetMarkup(url, maxWidth, maxHeight);
|
||||
//}
|
||||
|
||||
public virtual string BuildFullUrl(string url, int maxWidth, int maxHeight)
|
||||
{
|
||||
var fullUrl = new StringBuilder();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using Umbraco.Core.Embed;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
{
|
||||
@@ -10,10 +10,5 @@ namespace Umbraco.Web.Media.EmbedProviders
|
||||
}
|
||||
|
||||
public abstract string GetMarkup(string url, int maxWidth, int maxHeight);
|
||||
|
||||
//public virtual string GetPreview(string url, int maxWidth, int maxHeight)
|
||||
//{
|
||||
// return GetMarkup(url, maxWidth, maxHeight);
|
||||
//}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
{
|
||||
|
||||
public class Flickr : AbstractOEmbedProvider
|
||||
{
|
||||
public override string GetMarkup(string url, int maxWidth, int maxHeight)
|
||||
@@ -18,6 +17,5 @@ namespace Umbraco.Web.Media.EmbedProviders
|
||||
return string.Format("<img src=\"{0}\" width\"{1}\" height=\"{2}\" alt=\"{3}\" />",
|
||||
imageUrl, imageWidth, imageHeight, HttpUtility.HtmlEncode(imageTitle));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
{
|
||||
public class OEmbedRich: OEmbedVideo
|
||||
public class OEmbedRich : OEmbedVideo
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ namespace Umbraco.Web.Media.EmbedProviders
|
||||
XmlDocument doc = GetXmlResponse(videoUrl);
|
||||
|
||||
// add xslt transformation to return markup
|
||||
|
||||
return doc.SelectSingleNode("/oembed/html").InnerText;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
using Umbraco.Core.Embed;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders.Settings
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using System.Xml;
|
||||
using Umbraco.Core.Embed;
|
||||
using Umbraco.Core.Media;
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders.Settings
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
|
||||
using HtmlAgilityPack;
|
||||
using HtmlAgilityPack;
|
||||
|
||||
namespace Umbraco.Web.Media.EmbedProviders
|
||||
{
|
||||
@@ -16,6 +11,7 @@ namespace Umbraco.Web.Media.EmbedProviders
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public override string GetMarkup(string url, int maxWidth, int maxHeight)
|
||||
{
|
||||
var web = new HtmlWeb();
|
||||
@@ -26,6 +22,5 @@ namespace Umbraco.Web.Media.EmbedProviders
|
||||
return string.Format("<img src=\"{0}\"/>",
|
||||
img.Value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user