diff --git a/App_LocalResources/ucViewOptions.ascx.resx b/App_LocalResources/ucViewOptions.ascx.resx
index f3e54ac..5873c8c 100755
--- a/App_LocalResources/ucViewOptions.ascx.resx
+++ b/App_LocalResources/ucViewOptions.ascx.resx
@@ -1221,4 +1221,10 @@
Google reCaptcha Site Key, only needed when CaptchaType is set to reCaptcha.
+
+ Allow Portal files?
+
+
+ Check to allow portal files to be associated with articles.
+
\ No newline at end of file
diff --git a/Components/ArticleSettings.vb b/Components/ArticleSettings.vb
index 86f90ce..e0ee676 100755
--- a/Components/ArticleSettings.vb
+++ b/Components/ArticleSettings.vb
@@ -355,6 +355,16 @@ Namespace Ventrian.NewsArticles
End If
End Get
End Property
+
+ Public ReadOnly Property EnablePortalFiles() As Boolean
+ Get
+ If (Settings.Contains(ArticleConstants.ENABLE_PORTAL_FILES_SETTING)) Then
+ Return Convert.ToBoolean(Settings(ArticleConstants.ENABLE_PORTAL_FILES_SETTING).ToString())
+ Else
+ Return True
+ End If
+ End Get
+ End Property
Public ReadOnly Property EnableActiveSocialFeed() As Boolean
Get
diff --git a/Components/Common/ArticleConstants.vb b/Components/Common/ArticleConstants.vb
index 4fca1a6..14f3048 100755
--- a/Components/Common/ArticleConstants.vb
+++ b/Components/Common/ArticleConstants.vb
@@ -69,6 +69,7 @@ Namespace Ventrian.NewsArticles
Public Const ENABLE_PORTAL_IMAGES_SETTING As String = "EnableImages"
Public Const DEFAULT_IMAGES_FOLDER_SETTING As String = "DefaultImagesFolder"
Public Const DEFAULT_FILES_FOLDER_SETTING As String = "DefaultFilesFolder"
+ Public Const ENABLE_PORTAL_FILES_SETTING As String = "EnablePortalFiles"
Public Const IMAGE_RESIZE_SETTING As String = "ResizeImages"
Public Const IMAGE_THUMBNAIL_SETTING As String = "ImageThumbnailType"
Public Const IMAGE_MAX_WIDTH_SETTING As String = "ImageMaxWidth"
diff --git a/Controls/Honeypot.ascx b/Controls/Honeypot.ascx
deleted file mode 100644
index ac7a100..0000000
--- a/Controls/Honeypot.ascx
+++ /dev/null
@@ -1,7 +0,0 @@
-<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Honeypot.ascx.vb" Inherits="Ventrian.NewsArticles.Controls.Honeypot" %>
-<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
-
diff --git a/Controls/Honeypot.ascx.designer.vb b/Controls/Honeypot.ascx.designer.vb
deleted file mode 100644
index 0f455fa..0000000
--- a/Controls/Honeypot.ascx.designer.vb
+++ /dev/null
@@ -1,44 +0,0 @@
-'------------------------------------------------------------------------------
-'
-' This code was generated by a tool.
-'
-' Changes to this file may cause incorrect behavior and will be lost if
-' the code is regenerated.
-'
-'------------------------------------------------------------------------------
-
-Option Strict On
-Option Explicit On
-
-Namespace Ventrian.NewsArticles.Controls
-
- Partial Public Class Honeypot
-
- '''
- '''ConfirmEmailLabel control.
- '''
- '''
- '''Auto-generated field.
- '''To modify move field declaration from designer file to code-behind file.
- '''
- Protected WithEvents ConfirmEmailLabel As Global.System.Web.UI.UserControl
-
- '''
- '''txtConfirmEmail control.
- '''
- '''
- '''Auto-generated field.
- '''To modify move field declaration from designer file to code-behind file.
- '''
- Protected WithEvents txtConfirmEmail As Global.System.Web.UI.WebControls.TextBox
-
- '''
- '''RecaptchaValidator control.
- '''
- '''
- '''Auto-generated field.
- '''To modify move field declaration from designer file to code-behind file.
- '''
- Protected WithEvents RecaptchaValidator As Global.System.Web.UI.WebControls.CustomValidator
- End Class
-End Namespace
diff --git a/Controls/Honeypot.ascx.vb b/Controls/Honeypot.ascx.vb
deleted file mode 100644
index 67002f6..0000000
--- a/Controls/Honeypot.ascx.vb
+++ /dev/null
@@ -1,23 +0,0 @@
-Imports System.IO
-Imports System.Net
-Imports System.Web.Script.Serialization
-Imports DotNetNuke.Common.Utilities
-
-Namespace Ventrian.NewsArticles.Controls
- Public Class Honeypot
- Inherits System.Web.UI.UserControl
-
- Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
-
- End Sub
-
- Protected Sub HoneypotValidator_OnServerValidate(source As Object, args As ServerValidateEventArgs)
- args.IsValid = IsValid()
- End Sub
-
- Public Function IsValid() As Boolean
- Return txtConfirmEmail.Text = ""
- End Function
- End Class
-
-End Namespace
\ No newline at end of file
diff --git a/Controls/PostComment.ascx b/Controls/PostComment.ascx
index d32cd9e..e107871 100755
--- a/Controls/PostComment.ascx
+++ b/Controls/PostComment.ascx
@@ -1,7 +1,5 @@
-<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="PostComment.ascx.vb" Inherits="Ventrian.NewsArticles.Controls.PostComment" %>
+<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="PostComment.ascx.vb" Inherits="Ventrian.NewsArticles.Controls.PostComment" ClassName="NewsArticlesPostCommentControl" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls"%>
-<%@ Register TagPrefix="article" TagName="ReCaptcha" Src="ReCaptcha.ascx" %>
-<%@ Register TagPrefix="article" TagName="Honeypot" Src="Honeypot.ascx" %>