Skip to content

Commit 0eb0265

Browse files
committed
Added widgets info dialog, new images and default xml info.
1 parent 384f04a commit 0eb0265

File tree

30 files changed

+181
-1
lines changed

30 files changed

+181
-1
lines changed

BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,20 @@
585585
<Content Include="Custom\Themes\Standard\theme.png" />
586586
<Content Include="Custom\Themes\Standard\theme.xml" />
587587
<Content Include="Custom\Themes\Standard\WidgetContainer.ascx" />
588+
<Content Include="Custom\Widgets\Administration\widget.xml" />
589+
<Content Include="Custom\Widgets\AuthorList\widget.xml" />
590+
<Content Include="Custom\Widgets\BlogList\widget.xml" />
591+
<Content Include="Custom\Widgets\BlogRoll\widget.xml" />
592+
<Content Include="Custom\Widgets\CategoryList\widget.xml" />
593+
<Content Include="Custom\Widgets\CommentList\widget.xml" />
594+
<Content Include="Custom\Widgets\LinkList\widget.xml" />
595+
<Content Include="Custom\Widgets\MonthList\widget.xml" />
596+
<Content Include="Custom\Widgets\Newsletter\widget.xml" />
597+
<Content Include="Custom\Widgets\PageList\widget.xml" />
598+
<Content Include="Custom\Widgets\PostList\widget.xml" />
599+
<Content Include="Custom\Widgets\Search\widget.xml" />
600+
<Content Include="Custom\Widgets\TagCloud\widget.xml" />
601+
<Content Include="Custom\Widgets\TextBox\widget.xml" />
588602
<Content Include="fonts\fontawesome-webfont.svg" />
589603
<Content Include="fonts\glyphicons-halflings-regular.svg" />
590604
<Content Include="FrontPageExample.aspx" />
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>Administration</id>
4+
<description>BlogEngine.NET Administration Panel</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>AuthorList</id>
4+
<description>List of blog authors</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>BlogList</id>
4+
<description>List of blogs</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>BlogRoll</id>
4+
<description>List of links to other blogs</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>CategoryList</id>
4+
<description>List of post categories</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>CommentList</id>
4+
<description>List of comments</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>LinkList</id>
4+
<description>Editable list of links</description>
5+
<authors>BlogEngine.net</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<iconurl></iconurl>
8+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>MonthList</id>
4+
<description>List of posts arranged by month</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>Newsletter</id>
4+
<description>Allows visitors to subscribe to your blog by mail</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>PageList</id>
4+
<description>List of blog pages</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>PostList</id>
4+
<description>List of blog posts</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>Search</id>
4+
<description>Search widget</description>
5+
<authors>BlogEngine.net</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>1.0.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>TagCloud</id>
4+
<description>List of post tags</description>
5+
<authors>BlogEngine.NET</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>
Loading
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<metadata>
3+
<id>TextBox</id>
4+
<description>Enter and save any HTML text you want to display</description>
5+
<authors>BlogEngine.net</authors>
6+
<website>http://dotnetblogengine.net/</website>
7+
<version>3.3.0.0</version>
8+
<iconurl></iconurl>
9+
</metadata>

BlogEngine/BlogEngine.NET/admin/app/custom/widgets/widgetView.html

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,40 @@ <h4 class="modal-title">{{lbl.edit}} {{lbl.widgets}}</h4>
2020
</div>
2121
</div>
2222
</div>
23+
<div id="modal-info" class="modal fade" role="dialog">
24+
<div class="modal-dialog">
25+
<div class="modal-content">
26+
<div class="modal-header">
27+
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="focusInput=false"><i class="fa fa-times"></i></button>
28+
<h4 class="modal-title">{{package.Title}}</h4>
29+
</div>
30+
<div class="modal-body modal-package">
31+
32+
<div class="modal-widgets-info" style="padding: 40px; border-bottom: 1px solid #eee;">
33+
<p class="item-desc" ng-bind-html="package.Description"></p>
34+
<div class="form-horizontal">
35+
<div class="form-group" ng-if="package.Authors"><span class="col-md-3">{{lbl.author}}</span><div class="col-md-9"><span ng-bind-html="package.Authors"></span></div></div>
36+
<div class="form-group" ng-if="package.Website"><span class="col-md-3">{{lbl.website}}</span> <div class="col-md-9"><a href="{{package.Website}}" title="Author website" target="_blank">{{package.Website}}</a></div></div>
37+
<div class="form-group" ng-if="package.Tags"><span class="col-md-3">{{lbl.tags}}</span> <div class="col-md-9"><span ng-bind-html="package.Tags"></span></div></div>
38+
<div class="form-group" ng-if="package.LastUpdated"><span class="col-md-3">{{lbl.date}}</span> <div class="col-md-9"><span ng-bind-html="package.LastUpdated"></span></div></div>
39+
<div class="form-group" ng-if="package.DownloadCount"><span class="col-md-3">{{lbl.downloads}}</span> <div class="col-md-9">{{package.DownloadCount}}</div> </div>
40+
</div>
41+
</div>
42+
<div ng-if="package.OnlineVersion.length > 0 && package.OnlineVersion > package.LocalVersion" class="item-alert">
43+
<div class="alert alert-warning">
44+
Update available for this theme.
45+
<button ng-click="upgradePackage(package.Id)" class="btn btn-sm btn-warning pull-right">Update</button>
46+
</div>
47+
</div>
48+
<div class="modal-widget-image" style="padding: 40px; border-bottom: 1px solid #eee;">
49+
<img ng-if="!package.PackageUrl" ng-src="{{package.IconUrl}}" alt="Package image" />
50+
<a ng-if="package.PackageUrl" href="{{package.PackageUrl}}" target="_blank"> <img class="pkg-img" ng-src="{{package.IconUrl}}" alt="Package image" /> </a>
51+
</div>
52+
53+
</div>
54+
</div>
55+
</div>
56+
</div>
2357
<div class="main-header clearfix">
2458
<h2 class="page-title pull-left">{{lbl.widgets}}</h2>
2559
<a ng-if="IsPrimary" href="{{SiteVars.RelativeWebRoot}}admin/#/custom/widgets/gallery" class="btn btn-success btn-sm btn-hasicon pull-left"><i class="fa fa-plus"></i>{{lbl.theNew}}</a>
@@ -30,7 +64,14 @@ <h2 class="page-title pull-left">{{lbl.widgets}}</h2>
3064
<div class="col-sm-2">
3165
<h4>Available Widgets</h4>
3266
<ul class="widgets-list">
33-
<li class="draggable" ng-repeat="iw in vm.AvailableWidgets" draggable="iw" draggable-target=".sortable">{{ iw.Title }}</li>
67+
<li class="draggable" ng-repeat="iw in vm.AvailableWidgets" draggable="iw" draggable-target=".sortable">
68+
{{ iw.Title }}
69+
<div class="item-buttons pull-right" style="width: 50px !important">
70+
<button ng-click="loadInfoForm(iw.Id, iw.Name, iw.Title, widgetZones.titles[0])" title="{{lbl.edit}}">
71+
<i class="fa fa-info-circle"></i>
72+
</button>
73+
</div>
74+
</li>
3475
</ul>
3576
</div>
3677
<div class="col-sm-10" id="w-zones">

0 commit comments

Comments
 (0)