Skip to content

Commit

Permalink
Updates for License and Release notes. Added WYSIWYG editor to edit c…
Browse files Browse the repository at this point in the history
…ontrol
  • Loading branch information
ChrisHammond committed Feb 5, 2016
1 parent d464b18 commit 351a096
Show file tree
Hide file tree
Showing 9 changed files with 69 additions and 40 deletions.
Binary file modified .vs/MessageOfTheDay/v14/.suo
Binary file not shown.
14 changes: 13 additions & 1 deletion LICENSE
Expand Up @@ -17,4 +17,16 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



BootSnipp code under MIT License

Copyright (c) 2013 Bootsnipp.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 changes: 1 addition & 21 deletions License.txt
@@ -1,21 +1 @@
?<div class="License">
<h3>License</h3>
<p class="Owner">
Christoc.com <a href=http://www.christoc.com>http://www.christoc.com</a></br>
Copyright (c) 2016</br>
by Christoc.com</br>
</p>
<p>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
to permit persons to whom the Software is furnished to do so, subject to the following conditions:
</p>
<p>
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
</p>
<p>
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</p>
</div>
MIT Licensed, see <a href="https://github.com/ChrisHammond/MessageOfTheDay/blob/master/LICENSE" target="_blank">https://github.com/ChrisHammond/MessageOfTheDay/blob/master/LICENSE</a> for full details of the License.
23 changes: 19 additions & 4 deletions ReleaseNotes.txt
Expand Up @@ -10,16 +10,31 @@
<p class="Owner">
<b>Version V00.00.01</b><br /><br />
</p>
<p>Initial Release of the Message of the Day Module.</p>
<p>The initial Release of the Message of the Day Module allows you to create messages and have those messages randomly loaded on the page.
Check out the Future Features for a better idea of what is coming in the next couple of weeks.</p>


<h4>Requirements</h4>
<ul>
<li>DNN 8 +</li>
<li>A Bootstrap V3.3+ skin (we recommend the Free open source HammerFlex skin <a href="http://cjh.am/hammerflex">http://cjh.am/hammerflex</a></li>
</ul>


<h4>Features</h4>
<ul>
<li>Ability to Create Message of the Day</li>
<li>Ability to Create/Edit/Delete Message of the Day messages</li>
<li>If Nothing scheduled, display random message on page/module load</li>
<li>Uses bootstrap</li>
<li>WYSWIG editor<li>
</ul>

<h4>Future Features</h4>
<ul>
<li>Ability to Schedule MOTD</li>
<li>If Nothing scheduled, display random MOTD</li>
<li>Don't show message randomly more than X times a month, unless no other options available</li>
</ul>


<h4>Bug Fixes</h4>
<ul>
Expand Down
12 changes: 10 additions & 2 deletions Views/Message/Edit.cshtml
Expand Up @@ -2,18 +2,23 @@

@using DotNetNuke.Web.Mvc.Helpers

<!--We really shouldn't do this, but if the skin doesn't have BootStrap loaded we're going to do it anyways. -->
<!--We really shouldn't do this (force load bootstrap), but if the skin doesn't have BootStrap loaded we're going to do it anyways. Most POPUP skins won't do this already. -->

@section Styles
{
<link href="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/css/bootstrap-datepicker.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/css/bootstrap-datepicker.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/summernote/0.7.3/summernote.css")" rel="stylesheet" type="text/css" />

}
@section JavaScript
{
<script type="text/javascript" src="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js")"></script>

<script type="text/javascript" src="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.6.0/js/bootstrap-datepicker.min.js")"></script>

<script type="text/javascript" src="@Url.Content("https://cdnjs.cloudflare.com/ajax/libs/summernote/0.7.3/summernote.js")"></script>

}

@{
Expand Down Expand Up @@ -99,6 +104,9 @@
$(function () {
$(".datepicker").datepicker();
$('#MessageDescription').summernote();
});
Expand Down
33 changes: 21 additions & 12 deletions Views/Message/Index.cshtml
Expand Up @@ -7,8 +7,6 @@
}
else
{


<div class="container">
@foreach (var message in Model)
{
Expand All @@ -31,10 +29,21 @@
<div class="card-action">
<a href="@message.MessageVideoUrl" target="_blank">@Dnn.LocalizeString("VideoUrl")</a>
<a href="@message.MessageUrl" target="new_blank">@Dnn.LocalizeString("ReadMore")</a>

@if (Dnn.ModuleContext.IsEditable)
{
<a href="@Url.Action("Edit", "Message", new {ctl = "Edit", MessageId = message.MessageId})">@Dnn.LocalizeString("EditMessage")</a>
<a href="@Url.Action("Delete", "Message", new {MessageId = message.MessageId})">@Dnn.LocalizeString("DeleteMessage")</a>

}


</div><!-- card actions -->
<div class="card-reveal">
<span class="card-title">@message.MessageTitle</span> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
@message.MessageDescription
<span class="card-details">
@Html.Raw(message.MessageDescription)
</span>
</div><!-- card reveal -->
</div>
</div>
Expand All @@ -46,16 +55,16 @@
}

</div>
<script>
$(function () {
<script>
$(function () {
$('#show').on('click', function () {
$('.card-reveal').slideToggle('slow');
});
$('#show').on('click', function () {
$('.card-reveal').slideToggle('slow');
});
$('.card-reveal .close').on('click', function () {
$('.card-reveal').slideToggle('slow');
$('.card-reveal .close').on('click', function () {
$('.card-reveal').slideToggle('slow');
});
});
});
</script>
</script>
Binary file modified install/MessageOfTheDay_00.00.01_Install.zip
Binary file not shown.
Binary file modified install/MessageOfTheDay_00.00.01_Source.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions module.css
Expand Up @@ -82,6 +82,11 @@
margin:20px ;
}

.card .card-details {
clear: both;
display: block;
}

.btn-custom{
background-color: transparent;
font-size:18px;
Expand Down

0 comments on commit 351a096

Please sign in to comment.