Permalink
Browse files

Implementando jQuery.countdownTimer como dependencia

  • Loading branch information...
rogertm committed Sep 27, 2018
1 parent a1e7aad commit c6cc5c24d16a25f6a8c5793099326afc26bad97e
Showing with 17,014 additions and 10,372 deletions.
  1. +2 −2 changelog.txt
  2. +2 −0 engine/constants.php
  3. +3 −3 inc/enqueue.php
  4. +1 −0 js/app.utils.js
  5. +0 −10,364 js/jquery.js
  6. +0 −2 js/jquery.min.js
  7. +0 −1 js/jquery.min.map
  8. +3 −0 node_modules/countdowntimer/.bowerrc
  9. +2 −0 node_modules/countdowntimer/.eslintignore
  10. +16 −0 node_modules/countdowntimer/.eslintrc
  11. +2 −0 node_modules/countdowntimer/.jshintignore
  12. +26 −0 node_modules/countdowntimer/.jshintrc
  13. +10 −0 node_modules/countdowntimer/.travis.yml
  14. +171 −0 node_modules/countdowntimer/Gruntfile.js
  15. +674 −0 node_modules/countdowntimer/LICENSE-GPL.md
  16. +21 −0 node_modules/countdowntimer/LICENSE.md
  17. +636 −0 node_modules/countdowntimer/README.md
  18. +51 −0 node_modules/countdowntimer/bower.json
  19. +47 −0 node_modules/countdowntimer/countdownTimer.jquery.json
  20. +116 −0 node_modules/countdowntimer/dist/css/jQuery.countdownTimer.css
  21. +81 −0 node_modules/countdowntimer/dist/index.html
  22. 0 { → node_modules/countdowntimer/dist}/js/jQuery.countdownTimer.js
  23. 0 { → node_modules/countdowntimer/dist}/js/jQuery.countdownTimer.min.js
  24. 0 { → node_modules/countdowntimer/dist}/js/jQuery.countdownTimer.min.js.map
  25. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ar.js
  26. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-bg.js
  27. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-bn.js
  28. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-bs.js
  29. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ca.js
  30. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-cs.js
  31. +2 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-cy.js
  32. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-da.js
  33. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-de.js
  34. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-el.js
  35. 0 {js → node_modules/countdowntimer/dist/js/localisation}/jQuery.countdownTimer-es.js
  36. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-et.js
  37. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-fa.js
  38. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-fi.js
  39. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-fo.js
  40. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-fr.js
  41. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-gl.js
  42. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-gu.js
  43. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-he.js
  44. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-hr.js
  45. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-hu.js
  46. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-id.js
  47. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-is.js
  48. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-it.js
  49. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ja.js
  50. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-kn.js
  51. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ko.js
  52. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-lt.js
  53. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-lv.js
  54. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-mk.js
  55. +13 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ml.js
  56. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ms.js
  57. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-my.js
  58. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-nb.js
  59. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-nl.js
  60. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-pl.js
  61. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-pt-BR.js
  62. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ro.js
  63. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ru.js
  64. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-sk.js
  65. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-sl.js
  66. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-sr-SR.js
  67. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-sr.js
  68. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-sv.js
  69. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-th.js
  70. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-tr.js
  71. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-uk.js
  72. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-ur.js
  73. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-uz.js
  74. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-vi.js
  75. +12 −0 node_modules/countdowntimer/dist/js/localisation/jQuery.countdownTimer-zh-TW.js
  76. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Bold-webfont.eot
  77. +1,830 −0 node_modules/countdowntimer/doc/fonts/OpenSans-Bold-webfont.svg
  78. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Bold-webfont.woff
  79. BIN node_modules/countdowntimer/doc/fonts/OpenSans-BoldItalic-webfont.eot
  80. +1,830 −0 node_modules/countdowntimer/doc/fonts/OpenSans-BoldItalic-webfont.svg
  81. BIN node_modules/countdowntimer/doc/fonts/OpenSans-BoldItalic-webfont.woff
  82. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Italic-webfont.eot
  83. +1,830 −0 node_modules/countdowntimer/doc/fonts/OpenSans-Italic-webfont.svg
  84. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Italic-webfont.woff
  85. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Light-webfont.eot
  86. +1,831 −0 node_modules/countdowntimer/doc/fonts/OpenSans-Light-webfont.svg
  87. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Light-webfont.woff
  88. BIN node_modules/countdowntimer/doc/fonts/OpenSans-LightItalic-webfont.eot
  89. +1,835 −0 node_modules/countdowntimer/doc/fonts/OpenSans-LightItalic-webfont.svg
  90. BIN node_modules/countdowntimer/doc/fonts/OpenSans-LightItalic-webfont.woff
  91. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Regular-webfont.eot
  92. +1,831 −0 node_modules/countdowntimer/doc/fonts/OpenSans-Regular-webfont.svg
  93. BIN node_modules/countdowntimer/doc/fonts/OpenSans-Regular-webfont.woff
  94. +545 −0 node_modules/countdowntimer/doc/index.html
  95. +25 −0 node_modules/countdowntimer/doc/scripts/linenumber.js
  96. +202 −0 node_modules/countdowntimer/doc/scripts/prettify/Apache-License-2.0.txt
  97. +2 −0 node_modules/countdowntimer/doc/scripts/prettify/lang-css.js
  98. +28 −0 node_modules/countdowntimer/doc/scripts/prettify/prettify.js
  99. +358 −0 node_modules/countdowntimer/doc/styles/jsdoc-default.css
  100. +111 −0 node_modules/countdowntimer/doc/styles/prettify-jsdoc.css
  101. +132 −0 node_modules/countdowntimer/doc/styles/prettify-tomorrow.css
  102. +82 −0 node_modules/countdowntimer/package.json
  103. +116 −0 node_modules/countdowntimer/src/css/jQuery.countdownTimer.css
  104. +81 −0 node_modules/countdowntimer/src/index.html
  105. +728 −0 node_modules/countdowntimer/src/js/jQuery.countdownTimer.js
  106. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ar.js
  107. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-bg.js
  108. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-bn.js
  109. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-bs.js
  110. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ca.js
  111. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-cs.js
  112. +2 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-cy.js
  113. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-da.js
  114. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-de.js
  115. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-el.js
  116. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-es.js
  117. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-et.js
  118. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-fa.js
  119. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-fi.js
  120. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-fo.js
  121. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-fr.js
  122. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-gl.js
  123. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-gu.js
  124. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-he.js
  125. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-hr.js
  126. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-hu.js
  127. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-id.js
  128. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-is.js
  129. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-it.js
  130. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ja.js
  131. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-kn.js
  132. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ko.js
  133. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-lt.js
  134. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-lv.js
  135. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-mk.js
  136. +13 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ml.js
  137. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ms.js
  138. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-my.js
  139. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-nb.js
  140. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-nl.js
  141. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-pl.js
  142. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-pt-BR.js
  143. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ro.js
  144. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ru.js
  145. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-sk.js
  146. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-sl.js
  147. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-sr-SR.js
  148. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-sr.js
  149. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-sv.js
  150. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-th.js
  151. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-tr.js
  152. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-uk.js
  153. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-ur.js
  154. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-uz.js
  155. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-vi.js
  156. +12 −0 node_modules/countdowntimer/src/js/localisation/jQuery.countdownTimer-zh-TW.js
  157. +26 −0 node_modules/countdowntimer/test/countdownTimer.min.tests.html
  158. +26 −0 node_modules/countdowntimer/test/countdownTimer.tests.html
  159. +499 −0 node_modules/countdowntimer/test/js/jQuery.countdownTimer.tests.js
  160. +8 −0 package-lock.json
View
@@ -2,8 +2,8 @@
= 1.4.0 =
Release Date: September 21, 2018
* Enhancement: Use jQuery, Bootstrap and Icon Pack as dependencies from npmjs.com
* Added: T_EM_THEME_DIR_NODE_PATH, T_EM_THEME_DIR_JQUERY_PATH, T_EM_THEME_DIR_ICON_PACK_PATH, T_EM_THEME_DIR_NODE_URL, T_EM_THEME_DIR_JQUERY_URL and T_EM_THEME_DIR_ICON_PACK_URL
* Enhancement: Use jQuery, Bootstrap, CountdownTimer and Icon Pack as dependencies from npmjs.com
* Added: T_EM_THEME_DIR_NODE_PATH, T_EM_THEME_DIR_JQUERY_PATH, T_EM_THEME_DIR_ICON_PACK_PATH, T_EM_THEME_DIR_NODE_URL, T_EM_THEME_DIR_JQUERY_URL, T_EM_THEME_DIR_ICON_PACK_URL, T_EM_THEME_DIR_COUNTDOWN_TIMER_PATH, T_EM_THEME_DIR_COUNTDOWN_TIMER_URL
* Deleted: T_EM_THEME_DIR_FONTS_PATH and T_EM_THEME_DIR_FONTS_URL
Release Date: August 29, 2018
View
@@ -65,6 +65,7 @@
define ( 'T_EM_THEME_DIR_BOOTSTRAP_PATH', T_EM_THEME_DIR_NODE_PATH . '/bootstrap' );
define ( 'T_EM_THEME_DIR_JQUERY_PATH', T_EM_THEME_DIR_NODE_PATH . '/jquery' );
define ( 'T_EM_THEME_DIR_ICON_PACK_PATH', T_EM_THEME_DIR_NODE_PATH . '/@themingisprose/icon-pack' );
define ( 'T_EM_THEME_DIR_COUNTDOWN_TIMER_PATH', T_EM_THEME_DIR_NODE_PATH . '/countdowntimer' );
// Theme Directory URL
define ( 'T_EM_THEME_DIR_URL', get_template_directory_uri() );
@@ -79,6 +80,7 @@
define ( 'T_EM_THEME_DIR_BOOTSTRAP_URL', T_EM_THEME_DIR_NODE_URL . '/bootstrap' );
define ( 'T_EM_THEME_DIR_JQUERY_URL', T_EM_THEME_DIR_NODE_URL . '/jquery' );
define ( 'T_EM_THEME_DIR_ICON_PACK_URL', T_EM_THEME_DIR_NODE_URL . '/@themingisprose/icon-pack' );
define ( 'T_EM_THEME_DIR_COUNTDOWN_TIMER_URL', T_EM_THEME_DIR_NODE_URL . '/countdowntimer' );
/**
* Register default values through constants
View
@@ -65,10 +65,10 @@ function t_em_enqueue_styles_and_scripts(){
( isset( $_GET['maintenance-mode'] ) && wp_verify_nonce( $nonce, 'maintenance_mode' ) )
) ) :
if ( t_em( 'maintenance_mode_timer' ) ) :
wp_register_script( 'countdown', t_em_get_js( 'jQuery.countdownTimer' ), array( 'jquery' ), t_em_theme( 'Version' ), true );
wp_register_script( 'countdown', t_em_get_js( 'jQuery.countdownTimer', T_EM_THEME_DIR_COUNTDOWN_TIMER_PATH .'/dist/js', T_EM_THEME_DIR_COUNTDOWN_TIMER_URL .'/dist/js' ), array( 'jquery' ), t_em_theme( 'Version' ), true );
wp_enqueue_script( 'countdown' );
if ( get_option( 'WPLANG' ) == 'es_ES' ) :
wp_register_script( 'countdown-es', t_em_get_js( 'jQuery.countdownTimer-es' ), array( 'jquery' ), t_em_theme( 'Version' ), true );
wp_register_script( 'countdown-es', t_em_get_js( 'jQuery.countdownTimer-es', T_EM_THEME_DIR_COUNTDOWN_TIMER_PATH .'/dist/js/localisation', T_EM_THEME_DIR_COUNTDOWN_TIMER_URL .'/dist/js/localisation' ), array( 'jquery' ), t_em_theme( 'Version' ), true );
wp_enqueue_script( 'countdown-es' );
endif;
endif;
@@ -77,7 +77,7 @@ function t_em_enqueue_styles_and_scripts(){
wp_register_script( 'app-utils', t_em_get_js( 'app.utils' ), array( 'jquery' ), t_em_theme( 'Version' ), true );
// l10n for app.utils.js
$translation = array(
'maintenanceMode' => t_em( 'maintenance_mode' ) && $nonce ? true : null,
'maintenanceMode' => t_em( 'maintenance_mode' ) /*&& $nonce*/ ? true : null,
'countdownTimer' => t_em( 'maintenance_mode_timer' ),
);
wp_localize_script( 'app-utils', 't_em_l10n', $translation );
View
@@ -37,6 +37,7 @@ jQuery(document).ready(function($){
// Countdown timer in Maintenance Mode
$(function(){
if ( ! t_em_l10n.maintenanceMode ) return;
// @TODO: This send a warning!
$("#countdowntimer").countdowntimer({
dateAndTime : t_em_l10n.countdownTimer + " 00:00:00",
displayFormat : "DHMS",
Oops, something went wrong.

0 comments on commit c6cc5c2

Please sign in to comment.