Skip to content

Commit

Permalink
Revert "Fix styles and attributes in all widgets to be identical to t…
Browse files Browse the repository at this point in the history
…he ones …"
  • Loading branch information
rxtur committed May 13, 2016
1 parent 0f92d71 commit e34a059
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
}
@if (Security.IsAuthenticated)
{
<div class="Widget administration" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent">
<div class="widget administration">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
<ul class="toprounded" id="uxMenu_ulMenu">
@if (Security.IsAuthorizedTo(Rights.ViewDashboard))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
IEnumerable<MembershipUser> users = Membership.GetAllUsers()
.Cast<MembershipUser>().ToList().OrderBy(a => a.UserName);
}
<div class="Widget authorlist" id="widget@(Model.Id)">
<h4 class="WidgetHeader">
<div class="widget authorlist">
<h4 class="widget-header">
@title
</h4>
<div class="WidgetContent">
<div class="widget-content">
<ul id="authorlist" class="authorlist">
@foreach (var user in users)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
var title = Model.Title;
var blogs = Blog.Blogs.Where(b => b.IsActive).ToList();
}
<div class="Widget bloglist id="widget@(Model.Id)"">
<h4 class="WidgetHeader">
<div class="widget bloglist">
<h4 class="widget-header">
@title
</h4>
<div class="WidgetContent">
<div class="widget-content">
<ul>
@foreach (var blog in blogs)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
var imgPath = Utils.ApplicationRelativeWebRoot + "Content/images/blog";
var opmlPath = Utils.ApplicationRelativeWebRoot + "opml.axd";
}
<div class="Widget blogroll" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent">
<div class="widget blogroll">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
@if (rolls != null)
{
<ul class="xoxo">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
var title = Model.Title;
var dic = CategoryList.SortCategories();
}
<div class="Widget categorylist" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent">
<div class="widget categorylist">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
<ul id="categorylist">
@foreach (var cat in dic.Values)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
display: inline !important;
}
</style>
<div class="Widget recentcomments" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@Model.Title</h4>
<div class="WidgetContent">
<div class="widget recentcomments">
<h4 class="widget-header">@Model.Title</h4>
<div class="widget-content">
<ul id="recentComments" class="recentcomments">
@if (list.Count > 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
var linkList = new LinkList(Model.Id);
var links = linkList.GetLinks();
}
<div class="Widget linklist" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@Model.Title</h4>
<div class="WidgetContent">
<div class="widget linklist">
<h4 class="widget-header">@Model.Title</h4>
<div class="widget-content">
<ul id="linkList" class="linklist">
@foreach (var link in links)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
var cnt = 0;
var cls = "open";
}
<div class="Widget monthlist" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent">
<div class="widget monthlist">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
<ul id="monthList">
@foreach (KeyValuePair<int, List<MonthItem>> y in years)
{
Expand All @@ -17,7 +17,7 @@
cnt = cnt + 1;
cls = cnt > 1 ? "close" : "open";
<li onclick="@tgl" class="year">@y.Key
<ul id="widget@yId" class="@cls">
<ul id="@yId" class="@cls">
@foreach (var item in y.Value)
{
<li><a href="@item.Url/default">@item.Title</a> (@item.Count)</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
showForm = true;
}
}
<div class="Widget newsletter" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@Model.Title</h4>
<div class="WidgetContent" style="padding: 20px">
<div class="widget newsletter">
<h4 class="widget-header">@Model.Title</h4>
<div class="widget-content" style="padding: 20px">
@if (showThanks)
{
<div style="padding: 20px 40px" id="newsletterthanks">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
@{
var title = Model.Title;
}
<div class="Widget pagelist">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent" id="widget@(Model.Id)">
<div class="widget pagelist">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
<ul>
@foreach (var page in BlogEngine.Core.Page.Pages.Where(page => page.ShowInList && page.IsVisibleToPublic))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
bool.TryParse(settings["showdate"], out showDate);
}
}
<div class="Widget postlist" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent">
<div class="widget postlist">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
<ul>
@if (list.Count == 0)
{
Expand Down
10 changes: 5 additions & 5 deletions BlogEngine/BlogEngine.NET/Custom/Widgets/Search/widget.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
var text = Context.Request.QueryString["q"] != null
? HttpUtility.HtmlEncode(Context.Request.QueryString["q"])
: BlogSettings.Instance.SearchDefaultText;
var WidgetId = Model.Id;
var widgetId = Model.Id;
}
<div class="Widget search" id="widget@(Model.Id)">
<div class="WidgetContent">
<div class="widget search">
<div class="widget-content">
<div id="searchbox">
<input type="text" style="width: 72% !important" onblur="BlogEngine.searchClear('@text','txt-@WidgetId')" onfocus="BlogEngine.searchClear('@text','txt-@WidgetId')" onkeypress="if(event.keyCode==13) return BlogEngine.search('@Utils.RelativeWebRoot','txt-@WidgetId')" id="txt-@WidgetId" value="@text" />
<input type="button" onkeypress="BlogEngine.search('@Utils.RelativeWebRoot', 'txt-@WidgetId');" onclick="BlogEngine.search('@Utils.RelativeWebRoot', 'txt-@WidgetId');" id="searchbutton" value="Search" />
<input type="text" style="width: 72% !important" onblur="BlogEngine.searchClear('@text','txt-@widgetId')" onfocus="BlogEngine.searchClear('@text','txt-@widgetId')" onkeypress="if(event.keyCode==13) return BlogEngine.search('@Utils.RelativeWebRoot','txt-@widgetId')" id="txt-@widgetId" value="@text" />
<input type="button" onkeypress="BlogEngine.search('@Utils.RelativeWebRoot', 'txt-@widgetId');" onclick="BlogEngine.search('@Utils.RelativeWebRoot', 'txt-@widgetId');" id="searchbutton" value="Search" />
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
var cloud = new BlogEngine.Core.Data.Services.TagCloud();
var tags = cloud.Links();
}
<div class="Widget tagcloud" id="widget@(Model.Id)">
<h4 class="WidgetHeader">@title</h4>
<div class="WidgetContent">
<div class="widget tagcloud">
<h4 class="widget-header">@title</h4>
<div class="widget-content">
<ul>
@foreach (var tag in tags)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
txt = HttpUtility.HtmlDecode(settings["content"]);
}
}
<div class="Widget textbox" id="widget@(Model.Id)">
<div class="widget textbox">
@Html.Raw(txt)
</div>

0 comments on commit e34a059

Please sign in to comment.