Skip to content

Commit edd0028

Browse files
committed
More updates to moments theme, couple minor fixes
1 parent 36ec80e commit edd0028

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

plugins/Common/Views/Widgets/Categories/Edit.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
<form method="post" action="~/widgets/api/postlist/edit" asp-antiforgery="true">
1414
<div class="form-group">
15-
<label class="form-group-label">Template ({0} = category)</label>
15+
<label class="form-group-label">Template ({0} = category {1} = post count)</label>
1616
<textarea rows="2" id="txtTemplate" name="txtTemplate" class="form-control">@template</textarea>
1717
</div>
1818
<div class="form-group">

plugins/Common/Views/Widgets/Newsletter/Edit.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
var txtHeader = _db.CustomFields.GetCustomValue(keyHeader);
88
var txtThankyou = _db.CustomFields.GetCustomValue(keyThankyou);
99

10-
if (string.IsNullOrEmpty(txtHeader)) { txtHeader = "<p>Like, really social. With 12 thousands followers and counting, the topics we cover and the ways readers can access our content are constantly growing.</p>"; }
10+
if (string.IsNullOrEmpty(txtHeader)) { txtHeader = "<p>Subscribe to our newsletter to get latest posts delivered directly to your inbox.</p>"; }
1111
if (string.IsNullOrEmpty(txtThankyou)) { txtThankyou = "Thank you!"; }
1212
}
13-
<form method="post" action="~/widgets/api/newsletter/edit" asp-antiforgery="true">
13+
<form method="post" action="~/widgets/newsletter/edit" asp-antiforgery="true">
1414
<div class="form-group">
1515
<label class="form-group-label">Newsletter Header</label>
1616
<textarea id="txtHeader" name="txtHeader" cols="5" class="form-control">@txtHeader</textarea>

plugins/Common/Widgets/Newsletter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public IViewComponentResult Invoke(string theme, string widget)
2424
var header = _db.CustomFields.GetCustomValue(keyHeader);
2525
var thankyou = _db.CustomFields.GetCustomValue(keyThankyou);
2626

27-
if (string.IsNullOrEmpty(header)) { header = "<p>Like, really social. With 12 thousands followers and counting, the topics we cover and the ways readers can access our content are constantly growing.</p>"; }
27+
if (string.IsNullOrEmpty(header)) { header = "<p>Subscribe to our newsletter to get latest posts delivered directly to your inbox.</p>"; }
2828
if (string.IsNullOrEmpty(thankyou)) { thankyou = "Thank you!"; }
2929

3030
var model = new NewsletterModel { Header = header, ThankYou = thankyou };

src/App/Views/Themes/moments/List.cshtml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,28 @@
1717

1818
@if (Model.PostListType == PostListType.Search)
1919
{
20-
<div class="page-cover" style="background-image: url('@Model.Blog.Cover')">
21-
<a href="#"><i class="fa fa-search"></i> @Model.Blog.Title</a>
20+
<div class="row">
21+
<div class="col-sm-8" style="text-align: center; margin: 50px 0 -40px 0">
22+
<h4><i class="fa fa-search"></i> @Model.Blog.Title</h4>
23+
</div>
2224
</div>
2325
}
2426
else if (Model.PostListType == PostListType.Author)
2527
{
26-
<div class="page-cover" style="background-image: url('@Model.Blog.Cover')">
27-
<a href="~/">
28-
<img src="~/@Model.Author.Avatar" class="rounded-circle" style="width: 52px" />
29-
@Model.Author.DisplayName
30-
</a>
28+
<div class="row">
29+
<div class="col-sm-8" style="text-align: center; margin: 50px 0 -40px 0">
30+
<h4>
31+
<img src="~/@Model.Author.Avatar" class="rounded-circle" style="width: 52px" /> @Model.Author.DisplayName
32+
</h4>
33+
</div>
3134
</div>
3235
}
3336
else if (Model.PostListType == PostListType.Category)
3437
{
35-
<div class="page-cover" style="background-image: url('@Model.Blog.Cover')">
36-
<a href="#"><i class="fa fa-tag"></i> @ViewBag.Category</a>
38+
<div class="row">
39+
<div class="col-sm-8" style="text-align: center; margin: 50px 0 -40px 0">
40+
<h4><i class="fa fa-tag"></i> @ViewBag.Category</h4>
41+
</div>
3742
</div>
3843
}
3944
else
@@ -126,7 +131,6 @@
126131
</div>
127132

128133
<aside class="col-sm-4">
129-
130134
<div class="widget widget-social">
131135
<h4 class="widget-title"><span>Follow Us</span></h4>
132136
<div class="widget-body">
@@ -135,7 +139,6 @@
135139
</ul>
136140
</div>
137141
</div>
138-
139142
<div class="widget widget-posts">
140143
<h4 class="widget-title"><span>Recent Posts</span></h4>
141144
<div class="widget-body">
@@ -144,7 +147,6 @@
144147
</ul>
145148
</div>
146149
</div>
147-
148150
<div class="widget widget-categories">
149151
<h4 class="widget-title"><span>Categories</span></h4>
150152
<div class="widget-body">
@@ -153,7 +155,6 @@
153155
</ul>
154156
</div>
155157
</div>
156-
157158
<div class="widget widget-tags">
158159
<h4 class="widget-title"><span>Tags</span></h4>
159160
<div class="widget-body">
@@ -162,7 +163,6 @@
162163
</ul>
163164
</div>
164165
</div>
165-
166166
</aside>
167167

168168
</div>

src/App/Views/Themes/moments/_Shared/_Header.cshtml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<div class="collapse navbar-collapse" id="navbarSupportedContent">
99
<ul class="navbar-nav mr-auto">
1010
<li class="nav-item active">
11-
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
11+
<a class="nav-link" href="~/">Home <span class="sr-only">(current)</span></a>
1212
</li>
13-
<li class="nav-item">
13+
@*<li class="nav-item">
1414
<a class="nav-link" href="#">About</a>
1515
</li>
1616
<li class="nav-item">
@@ -26,7 +26,7 @@
2626
<div class="dropdown-divider"></div>
2727
<a class="dropdown-item" href="#">Something else here</a>
2828
</div>
29-
</li>
29+
</li>*@
3030
<li class="nav-item"><a class="nav-link" href="#" data-toggle="modal" data-target="#blog-search"><i class="fa fa-search"></i></a></li>
3131

3232
</ul>

src/App/app.db

0 Bytes
Binary file not shown.

src/Core/Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.1</TargetFramework>
5-
<Version>2.2.0.1</Version>
5+
<Version>2.2.0.2</Version>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)