v2.0.0
parent
5ccb68f6f3
commit
4c5c68528b
|
@ -0,0 +1,7 @@
|
||||||
|
# Countdown
|
||||||
|
|
||||||
|
Le plugin propose un widget qui affiche un compte à rebours vers une date à venir ou un chronomètre vers une date passée.
|
||||||
|
|
||||||
|
Documentation
|
||||||
|
|
||||||
|
L'affichage dynamique utilise le plugin jQuery Countdown (http://keith-wood.name/countdown.html) qui propose une syntaxe riche pour le formatage (http://keith-wood.name/countdownRef.html#format) et l'affichage (http://keith-wood.name/countdownRef.html#layout).
|
27
_define.php
27
_define.php
|
@ -22,16 +22,17 @@
|
||||||
if (!defined('DC_RC_PATH')) {return;}
|
if (!defined('DC_RC_PATH')) {return;}
|
||||||
|
|
||||||
$this->registerModule(
|
$this->registerModule(
|
||||||
/* Name */ "CountDown",
|
'CountDown',
|
||||||
/* Description*/ "Countdown and stopwatch",
|
'Countdown and stopwatch',
|
||||||
/* Author */ "Moe (http://gniark.net/), Pierre Van Glabeke",
|
'Moe (http://gniark.net/), Pierre Van Glabeke',
|
||||||
/* Version */ '1.6',
|
'2.0.0',
|
||||||
/* Properties */
|
[
|
||||||
array(
|
'requires' => [['core', '2.24']],
|
||||||
'permissions' => 'admin',
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
'type' => 'plugin',
|
dcAuth::PERMISSION_ADMIN,
|
||||||
'dc_min' => '2.24',
|
]),
|
||||||
'support' => 'http://lab.dotclear.org/wiki/plugin/countdown',
|
'type' => 'plugin',
|
||||||
'details' => 'http://plugins.dotaddict.org/dc2/details/countdown'
|
'support' => 'https://forum.dotclear.org/viewforum.php?id=16',
|
||||||
)
|
'details' => 'http://plugins.dotaddict.org/dc2/details/countdown'
|
||||||
);
|
]
|
||||||
|
);
|
||||||
|
|
|
@ -223,12 +223,12 @@ class CountDownBehaviors
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
# dynamic display with Countdown for jQuery
|
# dynamic display with Countdown for jQuery
|
||||||
if (!is_numeric($GLOBALS['_ctx']->countdown))
|
if (!is_numeric(dcCore::app()->ctx->countdown))
|
||||||
{
|
{
|
||||||
$GLOBALS['_ctx']->countdown = 0;
|
dcCore::app()->ctx->countdown = 0;
|
||||||
}
|
}
|
||||||
$id = $GLOBALS['_ctx']->countdown;
|
$id = dcCore::app()->ctx->countdown;
|
||||||
$GLOBALS['_ctx']->countdown += 1;
|
dcCore::app()->ctx->countdown += 1;
|
||||||
|
|
||||||
$script = '';
|
$script = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue