File tree Expand file tree Collapse file tree 4 files changed +128
-20
lines changed
BlogEngine/BlogEngine.NET
Custom/Widgets/CategoryList Expand file tree Collapse file tree 4 files changed +128
-20
lines changed Original file line number Diff line number Diff line change
1
+ @using BlogEngine .NET .Custom .Widgets
2
+ @using BlogEngine .Core
3
+ @{
4
+ var showrssicon = true ;
5
+ var showpostcount = true ;
6
+
7
+ var widgetId = Request .QueryString [" id" ];
8
+ var settings = Common .GetSettings (widgetId );
9
+
10
+ if (IsPost )
11
+ {
12
+ if (Validation .IsValid ())
13
+ {
14
+ settings [" showrssicon" ] = Request .Form [" cbShowRssIcon" ] == " on" ? " true" : " false" ;
15
+ settings [" showpostcount" ] = Request .Form [" cbShowPostCount" ] == " on" ? " true" : " false" ;
16
+ Common .SaveSettings (settings , widgetId );
17
+ @:
18
+ < script type = " text/javascript" > window .parent .toastr .success (" Completed" );< / script >
19
+ }
20
+ }
21
+ if (settings != null && settings .Count > 0 )
22
+ {
23
+ showrssicon = settings [" showrssicon" ] == " true" ? true : false ;
24
+ showpostcount = settings [" showpostcount" ] == " true" ? true : false ;
25
+ }
26
+ }
27
+ <!DOCTYPE html>
28
+ <html >
29
+ <head >
30
+ <link rel =" stylesheet" href =" ~/Content/bootstrap.min.css" >
31
+ <link rel =" stylesheet" href =" ~/admin/themes/standard/css/styles.css" >
32
+ </head >
33
+ <body class =" widget-edit" >
34
+ <form method =" post" >
35
+ <div class =" form-group" >
36
+ <label >
37
+ @Html.CheckBox( "cbShowRssIcon", showrssicon) Show the RSS icon
38
+ </label >
39
+ </div >
40
+ <div class =" form-group" >
41
+ <label >
42
+ @Html.CheckBox( "cbShowPostCount", showpostcount) Show number of posts in category
43
+ </label >
44
+ </div >
45
+ <div >
46
+ <button type =" submit" class =" btn btn-success" >
47
+ @Resources.labels.save
48
+ </button >
49
+ </div >
50
+ </form >
51
+ </body >
52
+ </html >
Original file line number Diff line number Diff line change 4
4
& .administration ,
5
5
& .authorlist ,
6
6
& .bloglist ,
7
- & .categorylist ,
8
7
& .monthlist ,
9
8
& .pagelist ,
10
9
& .search {
11
10
iframe {
12
11
display : none ;
13
12
}
14
13
15
- .modal-header {
16
- border : none ;
17
- }
18
-
19
14
.modal-body {
20
15
display : none ;
21
16
}
22
17
}
23
18
19
+ & .categorylist {
20
+ .modal-body {
21
+ height : 235px ;
22
+ }
23
+ }
24
+
24
25
& .CommentList {
25
26
.modal-body {
26
27
height : 150px ;
98
99
@include list-unstyled ();
99
100
margin-top : 20px ;
100
101
margin-bottom : 20px ;
101
- position : relative ;
102
- z-index : 11 ;
103
102
104
103
li {
105
104
width : 100% ;
108
107
padding-left : 15px ;
109
108
line-height : 40px ;
110
109
border : 1px solid #ddd ;
111
- @include box-shadow (0 1px 0 #eee !important );
112
- @include border-radius (3px );
110
+ -moz-box-shadow : 0 1px 0 #eee !important ;
111
+ -webkit-box-shadow : 0 1px 0 #eee !important ;
112
+ box-shadow : 0 1px 0 #eee !important ;
113
+ -moz-border-radius : 3px ;
114
+ -webkit-border-radius : 3px ;
115
+ border-radius : 3px ;
113
116
font-weight : 400 ;
114
117
font-size : 14px ;
115
118
height : 40px ;
116
119
padding-left : 10px ;
117
120
color : #444 ;
118
121
position : relative ;
119
122
overflow : hidden ;
120
- cursor : move ;
121
123
122
124
& :last-child {
123
125
margin-bottom : 0 ;
127
129
position : absolute ;
128
130
right : 0 ;
129
131
top : 0 ;
130
- z-index : 0 ;
132
+ z-index : 2 ;
131
133
width : 100px ;
132
134
133
135
button {
168
170
.widgets-list-active {
169
171
border : 1px dashed #aaa ;
170
172
padding : 10px ;
171
- z-index : 10 ;
172
173
}
173
174
174
175
.ui-sortable-placeholder {
267
268
268
269
269
270
// widget-edit
270
- // don't forget widget-edit is for body class in the iframe setting of widgets .
271
+ // don't forget widget-edit is for body class.
271
272
.widget-edit {
272
273
padding : 15px ;
273
274
// blogrolll
You can’t perform that action at this time.
0 commit comments