diff --git a/CHANGELOG b/CHANGELOG
new file mode 100644
index 0000000..d62985c
--- /dev/null
+++ b/CHANGELOG
@@ -0,0 +1,12 @@
+2015-03-11 - Pierre Van Glabeke
+* ajout mode hors ligne et codage titre widget (widget)
+* encodage UNIX (LF)
+* modif url de support
+* modifs localisation
+* suppression icône
+
+2013.11.18 - Jean-Christian Denis
+* First hg release
+
+2013.07.22 - Jean-Christian Denis
+* First release
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index 8cdb845..d511905 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,12 +1,12 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
- Preamble
+ Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
@@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
- GNU GENERAL PUBLIC LICENSE
+ GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
- NO WARRANTY
+ NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
- END OF TERMS AND CONDITIONS
+ END OF TERMS AND CONDITIONS
- How to Apply These Terms to Your New Programs
+ How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
@@ -290,8 +290,8 @@ to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
- {description}
- Copyright (C) {year} {fullname}
+
+ Copyright (C)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -329,7 +329,7 @@ necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
- {signature of Ty Coon}, 1 April 1989
+ , 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
@@ -337,4 +337,3 @@ proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
-
diff --git a/README.md b/README.md
index 92b98c9..4fd59d5 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,23 @@
-# dcLatestVersions
-Afficher les dernières versions disponibles de Dotclear
+# README
-Ce plugin ajoute simplement un élément sur le tableau de bord l'administration et un widget coté public indiquant les dernières versions (nightly build) de Dotclear.
+## WHAT IS DCLATESTVERSION ?
+
+"Dotclear's latest versions" is a plugin for the open-source
+web publishing software called Dotclear.
+
+Simply show visitors last versions of nightly build of Dotclear.
+
+## REQUIREMENTS
+
+ dcLatestVersions requires:
+
+ * permissions to manage widgets
+ * Dotclear 2.6
+
+## USAGE
+
+First install dcLatestVersions, manualy from a zip package or from
+Dotaddict repository. (See Dotclear's documentation to know how do this)
+
+Add and configure "Dotclear's latest versions" from widgets manager.
+You can add a dashboard item by enable it from your dashboard preferences.
diff --git a/_admin.php b/_admin.php
new file mode 100644
index 0000000..f0b7590
--- /dev/null
+++ b/_admin.php
@@ -0,0 +1,136 @@
+addBehavior(
+ 'adminDashboardItems',
+ array('dcLatestVersionsAdmin', 'adminDashboardItems')
+);
+$core->addBehavior(
+ 'adminDashboardOptionsForm',
+ array('dcLatestVersionsAdmin', 'adminDashboardOptionsForm')
+);
+$core->addBehavior(
+ 'adminAfterDashboardOptionsUpdate',
+ array('dcLatestVersionsAdmin', 'adminAfterDashboardOptionsUpdate')
+);
+
+/**
+ * @ingroup DC_PLUGIN_DCLATESTVERSIONS
+ * @brief Display latest versions of Dotclear - admin methods.
+ * @since 2.6
+ */
+class dcLatestVersionsAdmin
+{
+ public static function adminDashboardItems(dcCore $core, $__dashboard_items)
+ {
+ if (!$core->auth->user_prefs->dashboard->get('dcLatestVersionsItems')) {
+
+ return null;
+ }
+
+ $builds = (string) $core->blog->settings->dcLatestVersions->builds;
+ $builds = explode(',', $builds);
+ if (empty($builds)) {
+
+ return null;
+ }
+
+ $text = __('