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 1010}
1111@if (Security .IsAuthenticated )
1212{
13- <div class =" widget administration" >
14- <h4 class =" widget-header " >@title </h4 >
15- <div class =" widget-content " >
13+ <div class =" Widget administration" id = " widget@(Model.Id) " >
14+ <h4 class =" WidgetHeader " >@title </h4 >
15+ <div class =" WidgetContent " >
1616 <ul class =" toprounded" id =" uxMenu_ulMenu" >
1717 @if (Security .IsAuthorizedTo (Rights .ViewDashboard ))
1818 {
Original file line number Diff line number Diff line change 88 IEnumerable <MembershipUser > users = Membership .GetAllUsers ()
99 .Cast <MembershipUser >().ToList ().OrderBy (a => a .UserName );
1010}
11- <div class =" widget authorlist" >
12- <h4 class =" widget-header " >
11+ <div class =" Widget authorlist" id = " widget@(Model.Id) " >
12+ <h4 class =" WidgetHeader " >
1313 @title
1414 </h4 >
15- <div class =" widget-content " >
15+ <div class =" WidgetContent " >
1616 <ul id =" authorlist" class =" authorlist" >
1717 @foreach ( var user in users )
1818 {
Original file line number Diff line number Diff line change 33 var title = Model .Title ;
44 var blogs = Blog .Blogs .Where (b => b .IsActive ).ToList ();
55}
6- <div class =" widget bloglist" >
7- <h4 class =" widget-header " >
6+ <div class =" Widget bloglist id= " widget@(Model.Id) " " >
7+ <h4 class =" WidgetHeader " >
88 @title
99 </h4 >
10- <div class =" widget-content " >
10+ <div class =" WidgetContent " >
1111 <ul >
1212 @foreach ( var blog in blogs )
1313 {
Original file line number Diff line number Diff line change 77 var imgPath = Utils .ApplicationRelativeWebRoot + " Content/images/blog" ;
88 var opmlPath = Utils .ApplicationRelativeWebRoot + " opml.axd" ;
99}
10- <div class =" widget blogroll" >
11- <h4 class =" widget-header " >@title </h4 >
12- <div class =" widget-content " >
10+ <div class =" Widget blogroll" id = " widget@(Model.Id) " >
11+ <h4 class =" WidgetHeader " >@title </h4 >
12+ <div class =" WidgetContent " >
1313 @if (rolls != null )
1414 {
1515 <ul class =" xoxo" >
Original file line number Diff line number Diff line change 44 var title = Model .Title ;
55 var dic = CategoryList .SortCategories ();
66}
7- <div class =" widget categorylist" >
8- <h4 class =" widget-header " >@title </h4 >
9- <div class =" widget-content " >
7+ <div class =" Widget categorylist" id = " widget@(Model.Id) " >
8+ <h4 class =" WidgetHeader " >@title </h4 >
9+ <div class =" WidgetContent " >
1010 <ul id =" categorylist" >
1111 @foreach ( var cat in dic .Values )
1212 {
Original file line number Diff line number Diff line change 2323 display : inline !important ;
2424 }
2525 </style >
26- <div class =" widget recentcomments" >
27- <h4 class =" widget-header " >@Model.Title </h4 >
28- <div class =" widget-content " >
26+ <div class =" Widget recentcomments" id = " widget@(Model.Id) " >
27+ <h4 class =" WidgetHeader " >@Model.Title </h4 >
28+ <div class =" WidgetContent " >
2929 <ul id =" recentComments" class =" recentcomments" >
3030 @if (list .Count > 0 )
3131 {
Original file line number Diff line number Diff line change 33 var linkList = new LinkList (Model .Id );
44 var links = linkList .GetLinks ();
55}
6- <div class =" widget linklist" >
7- <h4 class =" widget-header " >@Model.Title </h4 >
8- <div class =" widget-content " >
6+ <div class =" Widget linklist" id = " widget@(Model.Id) " >
7+ <h4 class =" WidgetHeader " >@Model.Title </h4 >
8+ <div class =" WidgetContent " >
99 <ul id =" linkList" class =" linklist" >
1010 @foreach ( var link in links )
1111 {
Original file line number Diff line number Diff line change 66 var cnt = 0 ;
77 var cls = " open" ;
88}
9- <div class =" widget monthlist" >
10- <h4 class =" widget-header " >@title </h4 >
11- <div class =" widget-content " >
9+ <div class =" Widget monthlist" id = " widget@(Model.Id) " >
10+ <h4 class =" WidgetHeader " >@title </h4 >
11+ <div class =" WidgetContent " >
1212 <ul id =" monthList" >
1313 @foreach ( KeyValuePair < int , List < MonthItem >> y in years )
1414 {
1717 cnt = cnt + 1 ;
1818 cls = cnt > 1 ? " close" : " open" ;
1919 <li onclick =" @tgl" class =" year" >@y.Key
20- <ul id =" @yId" class =" @cls" >
20+ <ul id =" widget @yId" class =" @cls" >
2121 @foreach ( var item in y .Value )
2222 {
2323 <li ><a href =" @item.Url/default" >@item.Title </a > (@item .Count )</li >
Original file line number Diff line number Diff line change 2424 showForm = true ;
2525 }
2626}
27- <div class =" widget newsletter" >
28- <h4 class =" widget-header " >@Model.Title </h4 >
29- <div class =" widget-content " style =" padding : 20px " >
27+ <div class =" Widget newsletter" id = " widget@(Model.Id) " >
28+ <h4 class =" WidgetHeader " >@Model.Title </h4 >
29+ <div class =" WidgetContent " style =" padding : 20px " >
3030 @if (showThanks )
3131 {
3232 <div style =" padding : 20px 40px " id =" newsletterthanks" >
Original file line number Diff line number Diff line change 22@{
33 var title = Model .Title ;
44}
5- <div class =" widget pagelist" >
6- <h4 class =" widget-header " >@title </h4 >
7- <div class =" widget-content " >
5+ <div class =" Widget pagelist" >
6+ <h4 class =" WidgetHeader " >@title </h4 >
7+ <div class =" WidgetContent " id = " widget@(Model.Id) " >
88 <ul >
99 @foreach ( var page in BlogEngine .Core .Page .Pages .Where (page => page .ShowInList && page .IsVisibleToPublic ))
1010 {
You can’t perform that action at this time.
0 commit comments