Skip to content

Commit e32c767

Browse files
committed
Recent post settings and control removed, should be handled by widget
1 parent 83ba5f0 commit e32c767

12 files changed

Lines changed: 4 additions & 304 deletions

File tree

BlogEngine/BlogEngine.Core/BlogSettings.cs

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ public class BlogSettings
3838
/// </summary>
3939
private string configuredTheme = String.Empty;
4040

41-
/// <summary>
42-
/// The number of recent posts.
43-
/// </summary>
44-
private int numberOfRecentPosts = 10;
45-
4641
/// <summary>
4742
/// The number of comments per page.
4843
/// </summary>
@@ -275,27 +270,6 @@ public bool EnableHttpCompression
275270

276271
#endregion
277272

278-
#region NumberOfRecentPosts
279-
280-
/// <summary>
281-
/// Gets or sets the default number of recent posts to display.
282-
/// </summary>
283-
/// <value>The number of recent posts to display.</value>
284-
public int NumberOfRecentPosts
285-
{
286-
get
287-
{
288-
return this.numberOfRecentPosts;
289-
}
290-
291-
set
292-
{
293-
this.numberOfRecentPosts = value;
294-
}
295-
}
296-
297-
#endregion
298-
299273
#region NumberOfRecentComments
300274

301275
/// <summary>
@@ -555,26 +529,6 @@ public string Theme
555529

556530
#endregion
557531

558-
#region DisplayCommentsOnRecentPosts
559-
560-
/// <summary>
561-
/// Gets or sets a value indicating if whitespace in stylesheets should be removed
562-
/// </summary>
563-
/// <value><b>true</b> if whitespace is removed, otherwise returns <b>false</b>.</value>
564-
public bool DisplayCommentsOnRecentPosts { get; set; }
565-
566-
#endregion
567-
568-
#region DisplayRatingsOnRecentPosts
569-
570-
/// <summary>
571-
/// Gets or sets a value indicating if whitespace in stylesheets should be removed
572-
/// </summary>
573-
/// <value><b>true</b> if whitespace is removed, otherwise returns <b>false</b>.</value>
574-
public bool DisplayRatingsOnRecentPosts { get; set; }
575-
576-
#endregion
577-
578532
#region ShowPostNavigation
579533

580534
/// <summary>

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

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

149149
// controls
150-
public int NumberOfRecentPosts { get; set; }
151-
public bool DisplayCommentsOnRecentPosts { get; set; }
152-
public bool DisplayRatingsOnRecentPosts { get; set; }
153150
public int NumberOfRecentComments { get; set; }
154151
public string SearchButtonText { get; set; }
155152
public string SearchCommentLabelText { get; set; }

BlogEngine/BlogEngine.Core/Data/SettingsRepository.cs

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

8282
// controls
83-
ns.NumberOfRecentPosts = bs.NumberOfRecentPosts;
84-
ns.DisplayCommentsOnRecentPosts = bs.DisplayCommentsOnRecentPosts;
85-
ns.DisplayRatingsOnRecentPosts = bs.DisplayRatingsOnRecentPosts;
8683
ns.NumberOfRecentComments = bs.NumberOfRecentComments;
8784
ns.SearchButtonText = bs.SearchButtonText;
8885
ns.SearchCommentLabelText = bs.SearchCommentLabelText;
@@ -205,9 +202,6 @@ public bool Update(Settings ns)
205202
bs.SendMailOnComment = ns.SendMailOnComment;
206203

207204
// controls
208-
bs.NumberOfRecentPosts = ns.NumberOfRecentPosts;
209-
bs.DisplayCommentsOnRecentPosts = ns.DisplayCommentsOnRecentPosts;
210-
bs.DisplayRatingsOnRecentPosts = ns.DisplayRatingsOnRecentPosts;
211205
bs.NumberOfRecentComments = ns.NumberOfRecentComments;
212206
bs.SearchButtonText = ns.SearchButtonText;
213207
bs.SearchCommentLabelText = ns.SearchCommentLabelText;

BlogEngine/BlogEngine.NET/AppCode/Controls/RecentPosts.cs

Lines changed: 0 additions & 193 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
@@ -98,7 +98,6 @@
9898
<enablewebsiteincomments>False</enablewebsiteincomments>
9999
<descriptioncharactersforpostsbytagorcategory>0</descriptioncharactersforpostsbytagorcategory>
100100
<commentreportmistakes>False</commentreportmistakes>
101-
<numberofrecentposts>10</numberofrecentposts>
102101
<selfregistrationinitialrole>Select</selfregistrationinitialrole>
103102
<enableselfregistration>False</enableselfregistration>
104103
<blogrollupdateminutes>60</blogrollupdateminutes>

BlogEngine/BlogEngine.NET/App_Data/settings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999
<enablewebsiteincomments>False</enablewebsiteincomments>
100100
<descriptioncharactersforpostsbytagorcategory>0</descriptioncharactersforpostsbytagorcategory>
101101
<commentreportmistakes>False</commentreportmistakes>
102-
<numberofrecentposts>10</numberofrecentposts>
103102
<selfregistrationinitialrole>Editors</selfregistrationinitialrole>
104103
<enableselfregistration>False</enableselfregistration>
105104
<blogrollupdateminutes>60</blogrollupdateminutes>

BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@
232232
<Content Include="admin\Extensions\admin.master" />
233233
<Content Include="admin\index.cshtml" />
234234
<Content Include="admin\star-rating.css" />
235+
<Content Include="admin\views\content\blogs.html" />
235236
<Content Include="admin\views\content\files.html" />
236237
<Content Include="admin\views\custom\packages.html" />
237238
<Content Include="admin\views\about\index.html" />
@@ -240,7 +241,6 @@
240241
<Content Include="admin\views\settings\comments\index.html" />
241242
<Content Include="admin\views\settings\controls\error.html" />
242243
<Content Include="admin\views\settings\controls\recentcomments.html" />
243-
<Content Include="admin\views\settings\controls\recentposts.html" />
244244
<Content Include="admin\views\settings\controls\pings.html" />
245245
<Content Include="admin\views\settings\controls\search.html" />
246246
<Content Include="admin\views\settings\tools\check.html" />
@@ -276,9 +276,9 @@
276276
<None Include="App_Data\PublishProfiles\bespa - Web Deploy.pubxml" />
277277
<Content Include="AppCode\Wlw\TagMiniView.aspx" />
278278
<Content Include="AppCode\Wlw\wlw.css" />
279-
<Content Include="App_Data\posts\ec263a41-af90-4bdc-be2e-3b3ade12f6e5.xml" />
280279
<Content Include="App_Data\labels.txt" />
281280
<Content Include="bin\BlogEngine.NET.dll.config" />
281+
<Content Include="Content\admin.css" />
282282
<Content Include="Content\bootstrap-theme.css" />
283283
<Content Include="Content\bootstrap-theme.min.css" />
284284
<Content Include="Content\bootstrap.css" />
@@ -626,6 +626,7 @@
626626
<Content Include="Custom\Themes\Standard\fonts\fontello.ttf" />
627627
<Content Include="Custom\Themes\Standard\fonts\fontello.woff" />
628628
<Content Include="Custom\Themes\Standard\fonts\Yekan.woff" />
629+
<None Include="Properties\PublishProfiles\Local IIS.pubxml" />
629630
<None Include="Scripts\jquery-2.1.1.intellisense.js" />
630631
<Content Include="Scripts\i18n\angular-locale_aa-dj.js" />
631632
<Content Include="Scripts\i18n\angular-locale_aa-er.js" />
@@ -1509,7 +1510,6 @@
15091510
<Content Include="admin\Extensions\Settings.aspx" />
15101511
<Content Include="admin\menu.ascx" />
15111512
<Content Include="admin\services.js" />
1512-
<Content Include="admin\views\blogs.html" />
15131513
<Content Include="admin\views\content\categories.html" />
15141514
<Content Include="admin\views\content\comments.html" />
15151515
<Content Include="admin\views\content\pages.html" />
@@ -1708,7 +1708,6 @@
17081708
<Content Include="setup\SQLServer\MSSQLUpgradeTo1.4.5.0From1.4.0.0.sql" />
17091709
<Content Include="setup\SQLServer\MSSQLUpgradeTo1.5.0.0From1.4.5.0.sql" />
17101710
<Content Include="setup\SQLServer\ReadMe.txt" />
1711-
<Content Include="setup\SQL_CE\BlogEngine.sdf" />
17121711
<Content Include="setup\SQL_CE\ReadMe.txt" />
17131712
<Content Include="setup\SQL_CE\SQL_CE_Setup_2.0.sql" />
17141713
<Content Include="setup\SQL_CE\SQL_CE_Setup_2.5.sql" />
@@ -1983,7 +1982,6 @@
19831982
<Compile Include="AppCode\Controls\PostCalendar.cs" />
19841983
<Compile Include="AppCode\Controls\PostPager.cs" />
19851984
<Compile Include="AppCode\Controls\RecentComments.cs" />
1986-
<Compile Include="AppCode\Controls\RecentPosts.cs" />
19871985
<Compile Include="AppCode\Controls\RelatedPosts.cs" />
19881986
<Compile Include="AppCode\Controls\SearchBox.cs" />
19891987
<Compile Include="AppCode\Controls\SearchOnSearch.cs" />
@@ -2736,7 +2734,7 @@
27362734
<Folder Include="App_Data\datastore\extensions\" />
27372735
<Folder Include="App_Data\files\avatars\" />
27382736
<Folder Include="App_Data\packages\SimpleBlog.1.1.0\" />
2739-
<Folder Include="Properties\PublishProfiles\" />
2737+
<Folder Include="App_Data\posts\" />
27402738
</ItemGroup>
27412739
<PropertyGroup>
27422740
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>

BlogEngine/BlogEngine.NET/admin/app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
.when("/settings/controls", { templateUrl: "views/settings/controls/contactform.html" })
3131
.when("/settings/controls/search", { templateUrl: "views/settings/controls/search.html" })
32-
.when("/settings/controls/recentposts", { templateUrl: "views/settings/controls/recentposts.html" })
3332
.when("/settings/controls/recentcomments", { templateUrl: "views/settings/controls/recentcomments.html" })
3433
.when("/settings/controls/blogroll", { templateUrl: "views/settings/controls/blogroll.html" })
3534
.when("/settings/controls/pings", { templateUrl: "views/settings/controls/pings.html" })

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-
txtNumberOfRecentPosts: { number: true },
165164
txtNumberOfRecentComments: { number: true },
166165
txtThemeCookieName: { required: true }
167166
}

0 commit comments

Comments
 (0)