Skip to content

Commit ebe7bf4

Browse files
committed
Recent comments control removed, widget should be used
1 parent e32c767 commit ebe7bf4

12 files changed

Lines changed: 0 additions & 292 deletions

File tree

BlogEngine/BlogEngine.Core/BlogSettings.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,6 @@ public bool EnableHttpCompression
270270

271271
#endregion
272272

273-
#region NumberOfRecentComments
274-
275-
/// <summary>
276-
/// Gets or sets the default number of recent posts to display.
277-
/// </summary>
278-
/// <value>The number of recent posts to display.</value>
279-
public int NumberOfRecentComments { get; set; }
280-
281-
#endregion
282-
283273
#region PostsPerPage
284274

285275
/// <summary>

BlogEngine/BlogEngine.Core/Data/Models/Settings.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ public Settings() { }
147147
public bool SendMailOnComment { get; set; }
148148

149149
// controls
150-
public int NumberOfRecentComments { get; set; }
151150
public string SearchButtonText { get; set; }
152151
public string SearchCommentLabelText { get; set; }
153152
public string SearchDefaultText { get; set; }

BlogEngine/BlogEngine.Core/Data/SettingsRepository.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ public Settings Get()
8080
ns.SendMailOnComment = bs.SendMailOnComment;
8181

8282
// controls
83-
ns.NumberOfRecentComments = bs.NumberOfRecentComments;
8483
ns.SearchButtonText = bs.SearchButtonText;
8584
ns.SearchCommentLabelText = bs.SearchCommentLabelText;
8685
ns.SearchDefaultText = bs.SearchDefaultText;
@@ -202,7 +201,6 @@ public bool Update(Settings ns)
202201
bs.SendMailOnComment = ns.SendMailOnComment;
203202

204203
// controls
205-
bs.NumberOfRecentComments = ns.NumberOfRecentComments;
206204
bs.SearchButtonText = ns.SearchButtonText;
207205
bs.SearchCommentLabelText = ns.SearchCommentLabelText;
208206
bs.SearchDefaultText = ns.SearchDefaultText;

BlogEngine/BlogEngine.NET/AppCode/Controls/RecentComments.cs

Lines changed: 0 additions & 240 deletions
This file was deleted.

BlogEngine/BlogEngine.NET/App_Data/blogs/_new/settings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<searchbuttontext>Search</searchbuttontext>
3434
<showincludecommentsoption>False</showincludecommentsoption>
3535
<israzortheme>False</israzortheme>
36-
<numberofrecentcomments>5</numberofrecentcomments>
3736
<endorsement>http://www.dotnetblogengine.net/syndication.axd</endorsement>
3837
<blogrollmaxlength>23</blogrollmaxlength>
3938
<language>en-US</language>

BlogEngine/BlogEngine.NET/App_Data/settings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
<searchbuttontext>Search</searchbuttontext>
2929
<showincludecommentsoption>False</showincludecommentsoption>
3030
<createblogonselfregistration>False</createblogonselfregistration>
31-
<numberofrecentcomments>10</numberofrecentcomments>
3231
<endorsement>http://www.dotnetblogengine.net/syndication.axd</endorsement>
3332
<blogrollmaxlength>23</blogrollmaxlength>
3433
<language>en-US</language>

BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@
240240
<Content Include="admin\views\settings\comments\filters.html" />
241241
<Content Include="admin\views\settings\comments\index.html" />
242242
<Content Include="admin\views\settings\controls\error.html" />
243-
<Content Include="admin\views\settings\controls\recentcomments.html" />
244243
<Content Include="admin\views\settings\controls\pings.html" />
245244
<Content Include="admin\views\settings\controls\search.html" />
246245
<Content Include="admin\views\settings\tools\check.html" />
@@ -1981,7 +1980,6 @@
19811980
<Compile Include="AppCode\Controls\PageMenu.cs" />
19821981
<Compile Include="AppCode\Controls\PostCalendar.cs" />
19831982
<Compile Include="AppCode\Controls\PostPager.cs" />
1984-
<Compile Include="AppCode\Controls\RecentComments.cs" />
19851983
<Compile Include="AppCode\Controls\RelatedPosts.cs" />
19861984
<Compile Include="AppCode\Controls\SearchBox.cs" />
19871985
<Compile Include="AppCode\Controls\SearchOnSearch.cs" />

BlogEngine/BlogEngine.NET/admin/controllers/settings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@
161161
txtpostsPerFeed: { number: true },
162162
txtEmail: { email: true },
163163
txtSmtpServerPort: { number: true },
164-
txtNumberOfRecentComments: { number: true },
165164
txtThemeCookieName: { required: true }
166165
}
167166
});

BlogEngine/BlogEngine.NET/admin/views/settings/controls/recentcomments.html

Lines changed: 0 additions & 30 deletions
This file was deleted.

BlogEngine/BlogEngine.NET/admin/views/shared/_controls.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<div data-ng-controller="SubNavController" class="btn-toolbar pull-right">
22
<div class="btn-group">
33
<button onclick="location.href = '#/settings/controls'" data-ng-class="{ active: isActive('/settings/controls')}" class="btn btn-default btn-sm ng-binding">{{lbl.contactForm}}</button>
4-
<button onclick="location.href = '#/settings/controls/recentcomments'" data-ng-class="{ active: isActive('/settings/controls/recentcomments')}" class="btn btn-default btn-sm ng-binding">{{lbl.recentComments}}</button>
54
<button onclick="location.href = '#/settings/controls/search'" data-ng-class="{ active: isActive('/settings/controls/search')}" class="btn btn-default btn-sm ng-binding">{{lbl.searchField}}</button>
65
<button onclick="location.href = '#/settings/controls/blogroll'" data-ng-class="{ active: isActive('/settings/controls/blogroll')}" class="btn btn-default btn-sm ng-binding">{{lbl.blogroll}}</button>
76
<button onclick="location.href = '#/settings/controls/pings'" data-ng-class="{ active: isActive('/settings/controls/pings')}" class="btn btn-default btn-sm ng-binding">{{lbl.pingService}}</button>

0 commit comments

Comments
 (0)