File tree Expand file tree Collapse file tree 14 files changed +43
-43
lines changed
BlogEngine/BlogEngine.NET/Custom/Widgets Expand file tree Collapse file tree 14 files changed +43
-43
lines changed Original file line number Diff line number Diff line change 10
10
}
11
11
@if (Security .IsAuthenticated )
12
12
{
13
- <div class =" Widget administration" id = " widget@(Model.Id) " >
14
- <h4 class =" WidgetHeader " >@title </h4 >
15
- <div class =" WidgetContent " >
13
+ <div class =" widget administration" >
14
+ <h4 class =" widget-header " >@title </h4 >
15
+ <div class =" widget-content " >
16
16
<ul class =" toprounded" id =" uxMenu_ulMenu" >
17
17
@if (Security .IsAuthorizedTo (Rights .ViewDashboard ))
18
18
{
Original file line number Diff line number Diff line change 8
8
IEnumerable <MembershipUser > users = Membership .GetAllUsers ()
9
9
.Cast <MembershipUser >().ToList ().OrderBy (a => a .UserName );
10
10
}
11
- <div class =" Widget authorlist" id = " widget@(Model.Id) " >
12
- <h4 class =" WidgetHeader " >
11
+ <div class =" widget authorlist" >
12
+ <h4 class =" widget-header " >
13
13
@title
14
14
</h4 >
15
- <div class =" WidgetContent " >
15
+ <div class =" widget-content " >
16
16
<ul id =" authorlist" class =" authorlist" >
17
17
@foreach ( var user in users )
18
18
{
Original file line number Diff line number Diff line change 3
3
var title = Model .Title ;
4
4
var blogs = Blog .Blogs .Where (b => b .IsActive ).ToList ();
5
5
}
6
- <div class =" Widget bloglist id= " widget@(Model.Id) " " >
7
- <h4 class =" WidgetHeader " >
6
+ <div class =" widget bloglist" >
7
+ <h4 class =" widget-header " >
8
8
@title
9
9
</h4 >
10
- <div class =" WidgetContent " >
10
+ <div class =" widget-content " >
11
11
<ul >
12
12
@foreach ( var blog in blogs )
13
13
{
Original file line number Diff line number Diff line change 7
7
var imgPath = Utils .ApplicationRelativeWebRoot + " Content/images/blog" ;
8
8
var opmlPath = Utils .ApplicationRelativeWebRoot + " opml.axd" ;
9
9
}
10
- <div class =" Widget blogroll" id = " widget@(Model.Id) " >
11
- <h4 class =" WidgetHeader " >@title </h4 >
12
- <div class =" WidgetContent " >
10
+ <div class =" widget blogroll" >
11
+ <h4 class =" widget-header " >@title </h4 >
12
+ <div class =" widget-content " >
13
13
@if (rolls != null )
14
14
{
15
15
<ul class =" xoxo" >
Original file line number Diff line number Diff line change 4
4
var title = Model .Title ;
5
5
var dic = CategoryList .SortCategories ();
6
6
}
7
- <div class =" Widget categorylist" id = " widget@(Model.Id) " >
8
- <h4 class =" WidgetHeader " >@title </h4 >
9
- <div class =" WidgetContent " >
7
+ <div class =" widget categorylist" >
8
+ <h4 class =" widget-header " >@title </h4 >
9
+ <div class =" widget-content " >
10
10
<ul id =" categorylist" >
11
11
@foreach ( var cat in dic .Values )
12
12
{
Original file line number Diff line number Diff line change 23
23
display : inline !important ;
24
24
}
25
25
</style >
26
- <div class =" Widget recentcomments" id = " widget@(Model.Id) " >
27
- <h4 class =" WidgetHeader " >@Model.Title </h4 >
28
- <div class =" WidgetContent " >
26
+ <div class =" widget recentcomments" >
27
+ <h4 class =" widget-header " >@Model.Title </h4 >
28
+ <div class =" widget-content " >
29
29
<ul id =" recentComments" class =" recentcomments" >
30
30
@if (list .Count > 0 )
31
31
{
Original file line number Diff line number Diff line change 3
3
var linkList = new LinkList (Model .Id );
4
4
var links = linkList .GetLinks ();
5
5
}
6
- <div class =" Widget linklist" id = " widget@(Model.Id) " >
7
- <h4 class =" WidgetHeader " >@Model.Title </h4 >
8
- <div class =" WidgetContent " >
6
+ <div class =" widget linklist" >
7
+ <h4 class =" widget-header " >@Model.Title </h4 >
8
+ <div class =" widget-content " >
9
9
<ul id =" linkList" class =" linklist" >
10
10
@foreach ( var link in links )
11
11
{
Original file line number Diff line number Diff line change 6
6
var cnt = 0 ;
7
7
var cls = " open" ;
8
8
}
9
- <div class =" Widget monthlist" id = " widget@(Model.Id) " >
10
- <h4 class =" WidgetHeader " >@title </h4 >
11
- <div class =" WidgetContent " >
9
+ <div class =" widget monthlist" >
10
+ <h4 class =" widget-header " >@title </h4 >
11
+ <div class =" widget-content " >
12
12
<ul id =" monthList" >
13
13
@foreach ( KeyValuePair < int , List < MonthItem >> y in years )
14
14
{
17
17
cnt = cnt + 1 ;
18
18
cls = cnt > 1 ? " close" : " open" ;
19
19
<li onclick =" @tgl" class =" year" >@y.Key
20
- <ul id =" widget @yId" class =" @cls" >
20
+ <ul id =" @yId" class =" @cls" >
21
21
@foreach ( var item in y .Value )
22
22
{
23
23
<li ><a href =" @item.Url/default" >@item.Title </a > (@item .Count )</li >
Original file line number Diff line number Diff line change 24
24
showForm = true ;
25
25
}
26
26
}
27
- <div class =" Widget newsletter" id = " widget@(Model.Id) " >
28
- <h4 class =" WidgetHeader " >@Model.Title </h4 >
29
- <div class =" WidgetContent " style =" padding : 20px " >
27
+ <div class =" widget newsletter" >
28
+ <h4 class =" widget-header " >@Model.Title </h4 >
29
+ <div class =" widget-content " style =" padding : 20px " >
30
30
@if (showThanks )
31
31
{
32
32
<div style =" padding : 20px 40px " id =" newsletterthanks" >
Original file line number Diff line number Diff line change 2
2
@{
3
3
var title = Model .Title ;
4
4
}
5
- <div class =" Widget pagelist" >
6
- <h4 class =" WidgetHeader " >@title </h4 >
7
- <div class =" WidgetContent " id = " widget@(Model.Id) " >
5
+ <div class =" widget pagelist" >
6
+ <h4 class =" widget-header " >@title </h4 >
7
+ <div class =" widget-content " >
8
8
<ul >
9
9
@foreach ( var page in BlogEngine .Core .Page .Pages .Where (page => page .ShowInList && page .IsVisibleToPublic ))
10
10
{
You can’t perform that action at this time.
0 commit comments