From 7bc8a8853ece188baef573d1163a8ece0f79a07b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vicen=C3=A7=20Masanas?= <vmasanas@disgrafic.com>
Date: Wed, 1 Sep 2021 10:58:57 +0200
Subject: [PATCH 1/2] Lastest new template does not support "TITLE" tag for
 IMAGE Issue #69

---
 Components/Layout/LayoutController.vb | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/Components/Layout/LayoutController.vb b/Components/Layout/LayoutController.vb
index 26164c1..53cf948 100755
--- a/Components/Layout/LayoutController.vb
+++ b/Components/Layout/LayoutController.vb
@@ -1706,6 +1706,18 @@ Namespace Ventrian.NewsArticles
                                 End If
                             End If
 
+                        Case "IMAGETITLE"
+                            If (objArticle.ImageCount > 0) Then
+                                Dim objImageController As New ImageController
+                                Dim objImages As List(Of ImageInfo) = objImageController.GetImageList(objArticle.ArticleID, Null.NullString())
+
+                                If (objImages.Count > 0) Then
+                                    Dim objLiteral As New Literal
+                                    objLiteral.Text = objImages(0).Title
+                                    objPlaceHolder.Add(objLiteral)
+                                End If
+                            End If
+
                         Case "IMAGECOUNT"
                             Dim objLiteral As New Literal
                             objLiteral.Text = objArticle.ImageCount.ToString()

From da6bd91052f4f30025fda8aeb9514c9dfa13e9b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vicen=C3=A7=20Masanas?= <vmasanas@disgrafic.com>
Date: Wed, 1 Sep 2021 11:06:55 +0200
Subject: [PATCH 2/2] Add help for new IMAGETITLE tag

---
 App_LocalResources/LatestArticlesOptions.ascx.resx | 7 +++++--
 LatestArticlesOptions.ascx                         | 8 ++++++++
 LatestArticlesOptions.ascx.designer.vb             | 9 +++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/App_LocalResources/LatestArticlesOptions.ascx.resx b/App_LocalResources/LatestArticlesOptions.ascx.resx
index 4a8eba8..7e87c05 100755
--- a/App_LocalResources/LatestArticlesOptions.ascx.resx
+++ b/App_LocalResources/LatestArticlesOptions.ascx.resx
@@ -112,10 +112,10 @@
     <value>2.0</value>
   </resheader>
   <resheader name="reader">
-    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <resheader name="writer">
-    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
   <data name="LatestArticlesHelp.Text" xml:space="preserve">
     <value>In this section, you can adjust the settings for the "Latest Articles" module.</value>
@@ -675,4 +675,7 @@
   <data name="TemplateSaves.Text" xml:space="preserve">
     <value>Template Saves</value>
   </data>
+  <data name="ImageTitle.Text" xml:space="preserve">
+    <value>The tile for the image of the article, displays nothing if no image selected.</value>
+  </data>
 </root>
\ No newline at end of file
diff --git a/LatestArticlesOptions.ascx b/LatestArticlesOptions.ascx
index de26251..a44224f 100755
--- a/LatestArticlesOptions.ascx
+++ b/LatestArticlesOptions.ascx
@@ -535,6 +535,14 @@
 			                        <asp:label id="lblImage" resourcekey="Image" cssclass="Normal" runat="server" enableviewstate="False"></asp:label>
 		                        </td>
 	                        </tr>
+
+	                        <tr valign="top">
+		                        <TD class="SubHead" width="150">[IMAGETITLE]</TD>
+		                        <td class="Normal" align="left" width="325">
+			                        <asp:label id="lblImageTitle" resourcekey="ImageTitle" cssclass="Normal" runat="server" enableviewstate="False"></asp:label>
+		                        </td>
+	                        </tr>
+
 	                        <tr valign="top">
 		                        <TD class="SubHead" width="150">[IMAGELINK]</TD>
 		                        <td class="Normal" align="left">
diff --git a/LatestArticlesOptions.ascx.designer.vb b/LatestArticlesOptions.ascx.designer.vb
index 548c617..43bcd76 100755
--- a/LatestArticlesOptions.ascx.designer.vb
+++ b/LatestArticlesOptions.ascx.designer.vb
@@ -1427,6 +1427,15 @@ Namespace Ventrian.NewsArticles
         '''</remarks>
         Protected WithEvents lblImage As Global.System.Web.UI.WebControls.Label
 
+        '''<summary>
+        '''lblImageTitle control.
+        '''</summary>
+        '''<remarks>
+        '''Auto-generated field.
+        '''To modify move field declaration from designer file to code-behind file.
+        '''</remarks>
+        Protected WithEvents lblImageTitle As Global.System.Web.UI.WebControls.Label
+
         '''<summary>
         '''lblImageLink control.
         '''</summary>