Modern Events Calendar Lite - Version 6.4.9

Version Description

30 March 2022 = - Fixed: Some minor issue. - Removed: PUC folder

Download this release

Release Info

Developer webnus
Plugin Icon 128x128 Modern Events Calendar Lite
Version 6.4.9
Comparing to
See all releases

Code changes from version 6.4.8 to 6.4.9

Files changed (170) hide show
  1. app/core/puc/.editorconfig +0 -15
  2. app/core/puc/.gitignore +0 -40
  3. app/core/puc/Puc/v4/Factory.php +0 -6
  4. app/core/puc/Puc/v4p11/Autoloader.php +0 -63
  5. app/core/puc/Puc/v4p11/DebugBar/Extension.php +0 -190
  6. app/core/puc/Puc/v4p11/DebugBar/Panel.php +0 -165
  7. app/core/puc/Puc/v4p11/DebugBar/PluginExtension.php +0 -33
  8. app/core/puc/Puc/v4p11/DebugBar/PluginPanel.php +0 -38
  9. app/core/puc/Puc/v4p11/DebugBar/ThemePanel.php +0 -21
  10. app/core/puc/Puc/v4p11/Factory.php +0 -365
  11. app/core/puc/Puc/v4p11/InstalledPackage.php +0 -103
  12. app/core/puc/Puc/v4p11/Metadata.php +0 -132
  13. app/core/puc/Puc/v4p11/OAuthSignature.php +0 -100
  14. app/core/puc/Puc/v4p11/Plugin/Info.php +0 -132
  15. app/core/puc/Puc/v4p11/Plugin/Package.php +0 -184
  16. app/core/puc/Puc/v4p11/Plugin/Ui.php +0 -278
  17. app/core/puc/Puc/v4p11/Plugin/Update.php +0 -112
  18. app/core/puc/Puc/v4p11/Plugin/UpdateChecker.php +0 -414
  19. app/core/puc/Puc/v4p11/Scheduler.php +0 -266
  20. app/core/puc/Puc/v4p11/StateStore.php +0 -207
  21. app/core/puc/Puc/v4p11/Theme/Package.php +0 -65
  22. app/core/puc/Puc/v4p11/Theme/Update.php +0 -84
  23. app/core/puc/Puc/v4p11/Theme/UpdateChecker.php +0 -152
  24. app/core/puc/Puc/v4p11/Update.php +0 -34
  25. app/core/puc/Puc/v4p11/UpdateChecker.php +0 -999
  26. app/core/puc/Puc/v4p11/UpgraderStatus.php +0 -199
  27. app/core/puc/Puc/v4p11/Utils.php +0 -69
  28. app/core/puc/Puc/v4p11/Vcs/Api.php +0 -302
  29. app/core/puc/Puc/v4p11/Vcs/BaseChecker.php +0 -27
  30. app/core/puc/Puc/v4p11/Vcs/BitBucketApi.php +0 -273
  31. app/core/puc/Puc/v4p11/Vcs/GitHubApi.php +0 -441
  32. app/core/puc/Puc/v4p11/Vcs/GitLabApi.php +0 -399
  33. app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php +0 -293
  34. app/core/puc/Puc/v4p11/Vcs/Reference.php +0 -49
  35. app/core/puc/Puc/v4p11/Vcs/ThemeUpdateChecker.php +0 -118
  36. app/core/puc/README.md +0 -326
  37. app/core/puc/composer.json +0 -23
  38. app/core/puc/css/puc-debug-bar.css +0 -70
  39. app/core/puc/examples/plugin.json +0 -52
  40. app/core/puc/examples/theme.json +0 -5
  41. app/core/puc/js/debug-bar.js +0 -52
  42. app/core/puc/languages/plugin-update-checker-ca.mo +0 -0
  43. app/core/puc/languages/plugin-update-checker-ca.po +0 -48
  44. app/core/puc/languages/plugin-update-checker-cs_CZ.mo +0 -0
  45. app/core/puc/languages/plugin-update-checker-cs_CZ.po +0 -45
  46. app/core/puc/languages/plugin-update-checker-da_DK.mo +0 -0
  47. app/core/puc/languages/plugin-update-checker-da_DK.po +0 -42
  48. app/core/puc/languages/plugin-update-checker-de_DE.mo +0 -0
  49. app/core/puc/languages/plugin-update-checker-de_DE.po +0 -38
  50. app/core/puc/languages/plugin-update-checker-es_AR.mo +0 -0
  51. app/core/puc/languages/plugin-update-checker-es_AR.po +0 -48
  52. app/core/puc/languages/plugin-update-checker-es_CL.mo +0 -0
  53. app/core/puc/languages/plugin-update-checker-es_CL.po +0 -48
  54. app/core/puc/languages/plugin-update-checker-es_CO.mo +0 -0
  55. app/core/puc/languages/plugin-update-checker-es_CO.po +0 -48
  56. app/core/puc/languages/plugin-update-checker-es_CR.mo +0 -0
  57. app/core/puc/languages/plugin-update-checker-es_CR.po +0 -48
  58. app/core/puc/languages/plugin-update-checker-es_DO.mo +0 -0
  59. app/core/puc/languages/plugin-update-checker-es_DO.po +0 -48
  60. app/core/puc/languages/plugin-update-checker-es_ES.mo +0 -0
  61. app/core/puc/languages/plugin-update-checker-es_ES.po +0 -48
  62. app/core/puc/languages/plugin-update-checker-es_GT.mo +0 -0
  63. app/core/puc/languages/plugin-update-checker-es_GT.po +0 -48
  64. app/core/puc/languages/plugin-update-checker-es_HN.mo +0 -0
  65. app/core/puc/languages/plugin-update-checker-es_HN.po +0 -48
  66. app/core/puc/languages/plugin-update-checker-es_MX.mo +0 -0
  67. app/core/puc/languages/plugin-update-checker-es_MX.po +0 -48
  68. app/core/puc/languages/plugin-update-checker-es_PE.mo +0 -0
  69. app/core/puc/languages/plugin-update-checker-es_PE.po +0 -48
  70. app/core/puc/languages/plugin-update-checker-es_PR.mo +0 -0
  71. app/core/puc/languages/plugin-update-checker-es_PR.po +0 -48
  72. app/core/puc/languages/plugin-update-checker-es_UY.mo +0 -0
  73. app/core/puc/languages/plugin-update-checker-es_UY.po +0 -48
  74. app/core/puc/languages/plugin-update-checker-es_VE.mo +0 -0
  75. app/core/puc/languages/plugin-update-checker-es_VE.po +0 -48
  76. app/core/puc/languages/plugin-update-checker-fa_IR.mo +0 -0
  77. app/core/puc/languages/plugin-update-checker-fa_IR.po +0 -38
  78. app/core/puc/languages/plugin-update-checker-fr_CA.mo +0 -0
  79. app/core/puc/languages/plugin-update-checker-fr_CA.po +0 -48
  80. app/core/puc/languages/plugin-update-checker-fr_FR.mo +0 -0
  81. app/core/puc/languages/plugin-update-checker-fr_FR.po +0 -42
  82. app/core/puc/languages/plugin-update-checker-hu_HU.mo +0 -0
  83. app/core/puc/languages/plugin-update-checker-hu_HU.po +0 -41
  84. app/core/puc/languages/plugin-update-checker-it_IT.mo +0 -0
  85. app/core/puc/languages/plugin-update-checker-it_IT.po +0 -38
  86. app/core/puc/languages/plugin-update-checker-ja.mo +0 -0
  87. app/core/puc/languages/plugin-update-checker-ja.po +0 -57
  88. app/core/puc/languages/plugin-update-checker-nl_BE.mo +0 -0
  89. app/core/puc/languages/plugin-update-checker-nl_BE.po +0 -48
  90. app/core/puc/languages/plugin-update-checker-nl_NL.mo +0 -0
  91. app/core/puc/languages/plugin-update-checker-nl_NL.po +0 -48
  92. app/core/puc/languages/plugin-update-checker-pt_BR.mo +0 -0
  93. app/core/puc/languages/plugin-update-checker-pt_BR.po +0 -48
  94. app/core/puc/languages/plugin-update-checker-ru_RU.mo +0 -0
  95. app/core/puc/languages/plugin-update-checker-ru_RU.po +0 -48
  96. app/core/puc/languages/plugin-update-checker-sl_SI.mo +0 -0
  97. app/core/puc/languages/plugin-update-checker-sl_SI.po +0 -48
  98. app/core/puc/languages/plugin-update-checker-sv_SE.mo +0 -0
  99. app/core/puc/languages/plugin-update-checker-sv_SE.po +0 -42
  100. app/core/puc/languages/plugin-update-checker-tr_TR.mo +0 -0
  101. app/core/puc/languages/plugin-update-checker-tr_TR.po +0 -48
  102. app/core/puc/languages/plugin-update-checker-uk_UA.mo +0 -0
  103. app/core/puc/languages/plugin-update-checker-uk_UA.po +0 -48
  104. app/core/puc/languages/plugin-update-checker-zh_CN.mo +0 -0
  105. app/core/puc/languages/plugin-update-checker-zh_CN.po +0 -48
  106. app/core/puc/languages/plugin-update-checker.pot +0 -49
  107. app/core/puc/license.txt +0 -7
  108. app/core/puc/load-v4p11.php +0 -28
  109. app/core/puc/plugin-update-checker.php +0 -10
  110. app/core/puc/vendor/Parsedown.php +0 -9
  111. app/core/puc/vendor/ParsedownLegacy.php +0 -1535
  112. app/core/puc/vendor/ParsedownModern.php +0 -1538
  113. app/core/puc/vendor/PucReadmeParser.php +0 -348
  114. app/core/src/Forms/DisplayFields.php +13 -13
  115. app/core/src/Forms/FormFields.php +1 -1
  116. app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php +1 -1
  117. app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php +1 -1
  118. app/features/events.php +18 -18
  119. app/features/fes.php +35 -35
  120. app/features/locations.php +4 -4
  121. app/features/mec.php +4 -4
  122. app/features/mec/dashboard.php +1 -1
  123. app/features/mec/support-page.php +2 -2
  124. app/features/organizers.php +4 -4
  125. app/features/popup.php +6 -6
  126. app/features/schema.php +1 -1
  127. app/libraries/main.php +8 -8
  128. app/libraries/skins.php +3 -3
  129. app/libraries/walker.php +1 -1
  130. app/skins/single.php +2 -2
  131. app/skins/single/default.php +2 -2
  132. app/skins/single/m1.php +2 -2
  133. app/skins/single/m2.php +2 -2
  134. app/widgets/single/default.php +2 -2
  135. app/widgets/single/modern.php +2 -2
  136. changelog.txt +5 -1
  137. languages/modern-events-calendar-lite-cs_CZ.mo +0 -0
  138. languages/modern-events-calendar-lite-cs_CZ.po +57 -60
  139. languages/modern-events-calendar-lite-de_DE.mo +0 -0
  140. languages/modern-events-calendar-lite-de_DE.po +54 -59
  141. languages/modern-events-calendar-lite-en_US.mo +0 -0
  142. languages/modern-events-calendar-lite-en_US.po +13 -46
  143. languages/modern-events-calendar-lite-es_ES.mo +0 -0
  144. languages/modern-events-calendar-lite-es_ES.po +54 -59
  145. languages/modern-events-calendar-lite-fi_FI.mo +0 -0
  146. languages/modern-events-calendar-lite-fi_FI.po +13 -46
  147. languages/modern-events-calendar-lite-fr_FR.mo +0 -0
  148. languages/modern-events-calendar-lite-fr_FR.po +57 -60
  149. languages/modern-events-calendar-lite-hu_HU.mo +0 -0
  150. languages/modern-events-calendar-lite-hu_HU.po +71 -65
  151. languages/modern-events-calendar-lite-it_IT.mo +0 -0
  152. languages/modern-events-calendar-lite-it_IT.po +60 -61
  153. languages/modern-events-calendar-lite-nb_NO.mo +0 -0
  154. languages/modern-events-calendar-lite-nb_NO.po +54 -59
  155. languages/modern-events-calendar-lite-nl_NL.mo +0 -0
  156. languages/modern-events-calendar-lite-nl_NL.po +62 -61
  157. languages/modern-events-calendar-lite-pl_PL.mo +0 -0
  158. languages/modern-events-calendar-lite-pl_PL.po +57 -60
  159. languages/modern-events-calendar-lite-pt_BR.mo +0 -0
  160. languages/modern-events-calendar-lite-pt_BR.po +60 -61
  161. languages/modern-events-calendar-lite-ru_RU.mo +0 -0
  162. languages/modern-events-calendar-lite-ru_RU.po +60 -61
  163. languages/modern-events-calendar-lite-sv_SE.mo +0 -0
  164. languages/modern-events-calendar-lite-sv_SE.po +57 -60
  165. languages/modern-events-calendar-lite-tr_TR.mo +0 -0
  166. languages/modern-events-calendar-lite-tr_TR.po +63 -62
  167. languages/modern-events-calendar-lite.pot +12 -45
  168. mec-init.php +4 -1
  169. modern-events-calendar-lite.php +2 -4
  170. readme.txt +5 -1
app/core/puc/.editorconfig DELETED
@@ -1,15 +0,0 @@
1
- [*]
2
- charset=utf-8
3
- end_of_line=lf
4
- insert_final_newline=false
5
- indent_style=tab
6
- tab_width=4
7
-
8
- [{phpunit.xml.dist,*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}]
9
- indent_style=space
10
- indent_size=4
11
-
12
- [*.svg]
13
- indent_style=space
14
- indent_size=4
15
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/.gitignore DELETED
@@ -1,40 +0,0 @@
1
- # Created by .ignore support plugin (hsz.mobi)
2
- ### JetBrains template
3
- # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
4
- # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
5
-
6
- # The entire IDEA/PhpStorm directory
7
- .idea/
8
-
9
- # CMake
10
- cmake-build-*/
11
-
12
- # Mongo Explorer plugin
13
- .idea/**/mongoSettings.xml
14
-
15
- # File-based project format
16
- *.iws
17
-
18
- # IntelliJ
19
- out/
20
-
21
- # mpeltonen/sbt-idea plugin
22
- .idea_modules/
23
-
24
- # JIRA plugin
25
- atlassian-ide-plugin.xml
26
-
27
- # Cursive Clojure plugin
28
- .idea/replstate.xml
29
-
30
- # Crashlytics plugin (for Android Studio and IntelliJ)
31
- com_crashlytics_export_strings.xml
32
- crashlytics.properties
33
- crashlytics-build.properties
34
- fabric.properties
35
-
36
- # Editor-based Rest Client
37
- .idea/httpRequests
38
-
39
- # Android studio 3.1+ serialized cache file
40
- .idea/caches/build_file_checksums.ser
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4/Factory.php DELETED
@@ -1,6 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4_Factory', false) ):
3
-
4
- class Puc_v4_Factory extends Puc_v4p11_Factory { }
5
-
6
- endif;
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Autoloader.php DELETED
@@ -1,63 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Autoloader', false) ):
4
-
5
- class Puc_v4p11_Autoloader {
6
- private $prefix = '';
7
- private $rootDir = '';
8
- private $libraryDir = '';
9
-
10
- private $staticMap;
11
-
12
- public function __construct() {
13
- $this->rootDir = dirname(__FILE__) . '/';
14
- $nameParts = explode('_', __CLASS__, 3);
15
- $this->prefix = $nameParts[0] . '_' . $nameParts[1] . '_';
16
-
17
- $this->libraryDir = $this->rootDir . '../..';
18
- if ( !self::isPhar() ) {
19
- $this->libraryDir = realpath($this->libraryDir);
20
- }
21
- $this->libraryDir = $this->libraryDir . '/';
22
-
23
- $this->staticMap = array(
24
- 'PucReadmeParser' => 'vendor/PucReadmeParser.php',
25
- 'Parsedown' => 'vendor/Parsedown.php',
26
- 'Puc_v4_Factory' => 'Puc/v4/Factory.php',
27
- );
28
-
29
- spl_autoload_register(array($this, 'autoload'));
30
- }
31
-
32
- /**
33
- * Determine if this file is running as part of a Phar archive.
34
- *
35
- * @return bool
36
- */
37
- private static function isPhar() {
38
- //Check if the current file path starts with "phar://".
39
- static $pharProtocol = 'phar://';
40
- return (substr(__FILE__, 0, strlen($pharProtocol)) === $pharProtocol);
41
- }
42
-
43
- public function autoload($className) {
44
- if ( isset($this->staticMap[$className]) && file_exists($this->libraryDir . $this->staticMap[$className]) ) {
45
- /** @noinspection PhpIncludeInspection */
46
- include ($this->libraryDir . $this->staticMap[$className]);
47
- return;
48
- }
49
-
50
- if (strpos($className, $this->prefix) === 0) {
51
- $path = substr($className, strlen($this->prefix));
52
- $path = str_replace('_', '/', $path);
53
- $path = $this->rootDir . $path . '.php';
54
-
55
- if (file_exists($path)) {
56
- /** @noinspection PhpIncludeInspection */
57
- include $path;
58
- }
59
- }
60
- }
61
- }
62
-
63
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/DebugBar/Extension.php DELETED
@@ -1,190 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_DebugBar_Extension', false) ):
3
-
4
- class Puc_v4p11_DebugBar_Extension {
5
- const RESPONSE_BODY_LENGTH_LIMIT = 4000;
6
-
7
- /** @var Puc_v4p11_UpdateChecker */
8
- protected $updateChecker;
9
- protected $panelClass = 'Puc_v4p11_DebugBar_Panel';
10
-
11
- public function __construct($updateChecker, $panelClass = null) {
12
- $this->updateChecker = $updateChecker;
13
- if ( isset($panelClass) ) {
14
- $this->panelClass = $panelClass;
15
- }
16
-
17
- if ( version_compare(PHP_VERSION, '5.3', '>=') && (strpos($this->panelClass, '\\') === false) ) {
18
- $this->panelClass = __NAMESPACE__ . '\\' . $this->panelClass;
19
- }
20
-
21
- add_filter('debug_bar_panels', array($this, 'addDebugBarPanel'));
22
- add_action('debug_bar_enqueue_scripts', array($this, 'enqueuePanelDependencies'));
23
-
24
- add_action('wp_ajax_puc_v4_debug_check_now', array($this, 'ajaxCheckNow'));
25
- }
26
-
27
- /**
28
- * Register the PUC Debug Bar panel.
29
- *
30
- * @param array $panels
31
- * @return array
32
- */
33
- public function addDebugBarPanel($panels) {
34
- if ( $this->updateChecker->userCanInstallUpdates() ) {
35
- $panels[] = new $this->panelClass($this->updateChecker);
36
- }
37
- return $panels;
38
- }
39
-
40
- /**
41
- * Enqueue our Debug Bar scripts and styles.
42
- */
43
- public function enqueuePanelDependencies() {
44
- wp_enqueue_style(
45
- 'puc-debug-bar-style-v4',
46
- $this->getLibraryUrl("/css/puc-debug-bar.css"),
47
- array('debug-bar'),
48
- '20171124'
49
- );
50
-
51
- wp_enqueue_script(
52
- 'puc-debug-bar-js-v4',
53
- $this->getLibraryUrl("/js/debug-bar.js"),
54
- array('jquery'),
55
- '20201209'
56
- );
57
- }
58
-
59
- /**
60
- * Run an update check and output the result. Useful for making sure that
61
- * the update checking process works as expected.
62
- */
63
- public function ajaxCheckNow() {
64
- if ( $_POST['uid'] !== $this->updateChecker->getUniqueName('uid') ) {
65
- return;
66
- }
67
- $this->preAjaxRequest();
68
- $update = $this->updateChecker->checkForUpdates();
69
- if ( $update !== null ) {
70
- echo "An update is available:";
71
- echo '<pre>', htmlentities(print_r($update, true)), '</pre>';
72
- } else {
73
- echo 'No updates found.';
74
- }
75
-
76
- $errors = $this->updateChecker->getLastRequestApiErrors();
77
- if ( !empty($errors) ) {
78
- printf('<p>The update checker encountered %d API error%s.</p>', count($errors), (count($errors) > 1) ? 's' : '');
79
-
80
- foreach (array_values($errors) as $num => $item) {
81
- $wpError = $item['error'];
82
- /** @var WP_Error $wpError */
83
- printf('<h4>%d) %s</h4>', $num + 1, esc_html($wpError->get_error_message()));
84
-
85
- echo '<dl>';
86
- printf('<dt>Error code:</dt><dd><code>%s</code></dd>', esc_html($wpError->get_error_code()));
87
-
88
- if ( isset($item['url']) ) {
89
- printf('<dt>Requested URL:</dt><dd><code>%s</code></dd>', esc_html($item['url']));
90
- }
91
-
92
- if ( isset($item['httpResponse']) ) {
93
- if ( is_wp_error($item['httpResponse']) ) {
94
- $httpError = $item['httpResponse'];
95
- /** @var WP_Error $httpError */
96
- printf(
97
- '<dt>WordPress HTTP API error:</dt><dd>%s (<code>%s</code>)</dd>',
98
- esc_html($httpError->get_error_message()),
99
- esc_html($httpError->get_error_code())
100
- );
101
- } else {
102
- //Status code.
103
- printf(
104
- '<dt>HTTP status:</dt><dd><code>%d %s</code></dd>',
105
- wp_remote_retrieve_response_code($item['httpResponse']),
106
- wp_remote_retrieve_response_message($item['httpResponse'])
107
- );
108
-
109
- //Headers.
110
- echo '<dt>Response headers:</dt><dd><pre>';
111
- foreach (wp_remote_retrieve_headers($item['httpResponse']) as $name => $value) {
112
- printf("%s: %s\n", esc_html($name), esc_html($value));
113
- }
114
- echo '</pre></dd>';
115
-
116
- //Body.
117
- $body = wp_remote_retrieve_body($item['httpResponse']);
118
- if ( $body === '' ) {
119
- $body = '(Empty response.)';
120
- } else if ( strlen($body) > self::RESPONSE_BODY_LENGTH_LIMIT ) {
121
- $length = strlen($body);
122
- $body = substr($body, 0, self::RESPONSE_BODY_LENGTH_LIMIT)
123
- . sprintf("\n(Long string truncated. Total length: %d bytes.)", $length);
124
- }
125
-
126
- printf('<dt>Response body:</dt><dd><pre>%s</pre></dd>', esc_html($body));
127
- }
128
- }
129
- echo '<dl>';
130
- }
131
- }
132
-
133
- exit;
134
- }
135
-
136
- /**
137
- * Check access permissions and enable error display (for debugging).
138
- */
139
- protected function preAjaxRequest() {
140
- if ( !$this->updateChecker->userCanInstallUpdates() ) {
141
- die('Access denied');
142
- }
143
- check_ajax_referer('puc-ajax');
144
-
145
- error_reporting(E_ALL);
146
- @ini_set('display_errors', 'On');
147
- }
148
-
149
- /**
150
- * Remove hooks that were added by this extension.
151
- */
152
- public function removeHooks() {
153
- remove_filter('debug_bar_panels', array($this, 'addDebugBarPanel'));
154
- remove_action('debug_bar_enqueue_scripts', array($this, 'enqueuePanelDependencies'));
155
- remove_action('wp_ajax_puc_v4_debug_check_now', array($this, 'ajaxCheckNow'));
156
- }
157
-
158
- /**
159
- * @param string $filePath
160
- * @return string
161
- */
162
- private function getLibraryUrl($filePath) {
163
- $absolutePath = realpath(dirname(__FILE__) . '/../../../' . ltrim($filePath, '/'));
164
-
165
- //Where is the library located inside the WordPress directory structure?
166
- $absolutePath = Puc_v4p11_Factory::normalizePath($absolutePath);
167
-
168
- $pluginDir = Puc_v4p11_Factory::normalizePath(WP_PLUGIN_DIR);
169
- $muPluginDir = Puc_v4p11_Factory::normalizePath(WPMU_PLUGIN_DIR);
170
- $themeDir = Puc_v4p11_Factory::normalizePath(get_theme_root());
171
-
172
- if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) {
173
- //It's part of a plugin.
174
- return plugins_url(basename($absolutePath), $absolutePath);
175
- } else if ( strpos($absolutePath, $themeDir) === 0 ) {
176
- //It's part of a theme.
177
- $relativePath = substr($absolutePath, strlen($themeDir) + 1);
178
- $template = substr($relativePath, 0, strpos($relativePath, '/'));
179
- $baseUrl = get_theme_root_uri($template);
180
-
181
- if ( !empty($baseUrl) && $relativePath ) {
182
- return $baseUrl . '/' . $relativePath;
183
- }
184
- }
185
-
186
- return '';
187
- }
188
- }
189
-
190
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/DebugBar/Panel.php DELETED
@@ -1,165 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_DebugBar_Panel', false) && class_exists('Debug_Bar_Panel', false) ):
4
-
5
- class Puc_v4p11_DebugBar_Panel extends Debug_Bar_Panel {
6
- /** @var Puc_v4p11_UpdateChecker */
7
- protected $updateChecker;
8
-
9
- private $responseBox = '<div class="puc-ajax-response" style="display: none;"></div>';
10
-
11
- public function __construct($updateChecker) {
12
- $this->updateChecker = $updateChecker;
13
- $title = sprintf(
14
- '<span class="puc-debug-menu-link-%s">PUC (%s)</span>',
15
- esc_attr($this->updateChecker->getUniqueName('uid')),
16
- $this->updateChecker->slug
17
- );
18
- parent::__construct($title);
19
- }
20
-
21
- public function render() {
22
- printf(
23
- '<div class="puc-debug-bar-panel-v4" id="%1$s" data-slug="%2$s" data-uid="%3$s" data-nonce="%4$s">',
24
- esc_attr($this->updateChecker->getUniqueName('debug-bar-panel')),
25
- esc_attr($this->updateChecker->slug),
26
- esc_attr($this->updateChecker->getUniqueName('uid')),
27
- esc_attr(wp_create_nonce('puc-ajax'))
28
- );
29
-
30
- $this->displayConfiguration();
31
- $this->displayStatus();
32
- $this->displayCurrentUpdate();
33
-
34
- echo '</div>';
35
- }
36
-
37
- private function displayConfiguration() {
38
- echo '<h3>Configuration</h3>';
39
- echo '<table class="puc-debug-data">';
40
- $this->displayConfigHeader();
41
- $this->row('Slug', htmlentities($this->updateChecker->slug));
42
- $this->row('DB option', htmlentities($this->updateChecker->optionName));
43
-
44
- $requestInfoButton = $this->getMetadataButton();
45
- $this->row('Metadata URL', htmlentities($this->updateChecker->metadataUrl) . ' ' . $requestInfoButton . $this->responseBox);
46
-
47
- $scheduler = $this->updateChecker->scheduler;
48
- if ( $scheduler->checkPeriod > 0 ) {
49
- $this->row('Automatic checks', 'Every ' . $scheduler->checkPeriod . ' hours');
50
- } else {
51
- $this->row('Automatic checks', 'Disabled');
52
- }
53
-
54
- if ( isset($scheduler->throttleRedundantChecks) ) {
55
- if ( $scheduler->throttleRedundantChecks && ($scheduler->checkPeriod > 0) ) {
56
- $this->row(
57
- 'Throttling',
58
- sprintf(
59
- 'Enabled. If an update is already available, check for updates every %1$d hours instead of every %2$d hours.',
60
- $scheduler->throttledCheckPeriod,
61
- $scheduler->checkPeriod
62
- )
63
- );
64
- } else {
65
- $this->row('Throttling', 'Disabled');
66
- }
67
- }
68
-
69
- $this->updateChecker->onDisplayConfiguration($this);
70
-
71
- echo '</table>';
72
- }
73
-
74
- protected function displayConfigHeader() {
75
- //Do nothing. This should be implemented in subclasses.
76
- }
77
-
78
- protected function getMetadataButton() {
79
- return '';
80
- }
81
-
82
- private function displayStatus() {
83
- echo '<h3>Status</h3>';
84
- echo '<table class="puc-debug-data">';
85
- $state = $this->updateChecker->getUpdateState();
86
- $checkNowButton = '';
87
- if ( function_exists('get_submit_button') ) {
88
- $checkNowButton = get_submit_button(
89
- 'Check Now',
90
- 'secondary',
91
- 'puc-check-now-button',
92
- false,
93
- array('id' => $this->updateChecker->getUniqueName('check-now-button'))
94
- );
95
- }
96
-
97
- if ( $state->getLastCheck() > 0 ) {
98
- $this->row('Last check', $this->formatTimeWithDelta($state->getLastCheck()) . ' ' . $checkNowButton . $this->responseBox);
99
- } else {
100
- $this->row('Last check', 'Never');
101
- }
102
-
103
- $nextCheck = wp_next_scheduled($this->updateChecker->scheduler->getCronHookName());
104
- $this->row('Next automatic check', $this->formatTimeWithDelta($nextCheck));
105
-
106
- if ( $state->getCheckedVersion() !== '' ) {
107
- $this->row('Checked version', htmlentities($state->getCheckedVersion()));
108
- $this->row('Cached update', $state->getUpdate());
109
- }
110
- $this->row('Update checker class', htmlentities(get_class($this->updateChecker)));
111
- echo '</table>';
112
- }
113
-
114
- private function displayCurrentUpdate() {
115
- $update = $this->updateChecker->getUpdate();
116
- if ( $update !== null ) {
117
- echo '<h3>An Update Is Available</h3>';
118
- echo '<table class="puc-debug-data">';
119
- $fields = $this->getUpdateFields();
120
- foreach($fields as $field) {
121
- if ( property_exists($update, $field) ) {
122
- $this->row(ucwords(str_replace('_', ' ', $field)), htmlentities($update->$field));
123
- }
124
- }
125
- echo '</table>';
126
- } else {
127
- echo '<h3>No updates currently available</h3>';
128
- }
129
- }
130
-
131
- protected function getUpdateFields() {
132
- return array('version', 'download_url', 'slug',);
133
- }
134
-
135
- private function formatTimeWithDelta($unixTime) {
136
- if ( empty($unixTime) ) {
137
- return 'Never';
138
- }
139
-
140
- $delta = time() - $unixTime;
141
- $result = human_time_diff(time(), $unixTime);
142
- if ( $delta < 0 ) {
143
- $result = 'after ' . $result;
144
- } else {
145
- $result = $result . ' ago';
146
- }
147
- $result .= ' (' . $this->formatTimestamp($unixTime) . ')';
148
- return $result;
149
- }
150
-
151
- private function formatTimestamp($unixTime) {
152
- return gmdate('Y-m-d H:i:s', $unixTime + (get_option('gmt_offset') * 3600));
153
- }
154
-
155
- public function row($name, $value) {
156
- if ( is_object($value) || is_array($value) ) {
157
- $value = '<pre>' . htmlentities(print_r($value, true)) . '</pre>';
158
- } else if ($value === null) {
159
- $value = '<code>null</code>';
160
- }
161
- printf('<tr><th scope="row">%1$s</th> <td>%2$s</td></tr>', $name, $value);
162
- }
163
- }
164
-
165
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/DebugBar/PluginExtension.php DELETED
@@ -1,33 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_DebugBar_PluginExtension', false) ):
3
-
4
- class Puc_v4p11_DebugBar_PluginExtension extends Puc_v4p11_DebugBar_Extension {
5
- /** @var Puc_v4p11_Plugin_UpdateChecker */
6
- protected $updateChecker;
7
-
8
- public function __construct($updateChecker) {
9
- parent::__construct($updateChecker, 'Puc_v4p11_DebugBar_PluginPanel');
10
-
11
- add_action('wp_ajax_puc_v4_debug_request_info', array($this, 'ajaxRequestInfo'));
12
- }
13
-
14
- /**
15
- * Request plugin info and output it.
16
- */
17
- public function ajaxRequestInfo() {
18
- if ( $_POST['uid'] !== $this->updateChecker->getUniqueName('uid') ) {
19
- return;
20
- }
21
- $this->preAjaxRequest();
22
- $info = $this->updateChecker->requestInfo();
23
- if ( $info !== null ) {
24
- echo 'Successfully retrieved plugin info from the metadata URL:';
25
- echo '<pre>', htmlentities(print_r($info, true)), '</pre>';
26
- } else {
27
- echo 'Failed to retrieve plugin info from the metadata URL.';
28
- }
29
- exit;
30
- }
31
- }
32
-
33
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/DebugBar/PluginPanel.php DELETED
@@ -1,38 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_DebugBar_PluginPanel', false) ):
4
-
5
- class Puc_v4p11_DebugBar_PluginPanel extends Puc_v4p11_DebugBar_Panel {
6
- /**
7
- * @var Puc_v4p11_Plugin_UpdateChecker
8
- */
9
- protected $updateChecker;
10
-
11
- protected function displayConfigHeader() {
12
- $this->row('Plugin file', htmlentities($this->updateChecker->pluginFile));
13
- parent::displayConfigHeader();
14
- }
15
-
16
- protected function getMetadataButton() {
17
- $requestInfoButton = '';
18
- if ( function_exists('get_submit_button') ) {
19
- $requestInfoButton = get_submit_button(
20
- 'Request Info',
21
- 'secondary',
22
- 'puc-request-info-button',
23
- false,
24
- array('id' => $this->updateChecker->getUniqueName('request-info-button'))
25
- );
26
- }
27
- return $requestInfoButton;
28
- }
29
-
30
- protected function getUpdateFields() {
31
- return array_merge(
32
- parent::getUpdateFields(),
33
- array('homepage', 'upgrade_notice', 'tested',)
34
- );
35
- }
36
- }
37
-
38
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/DebugBar/ThemePanel.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_DebugBar_ThemePanel', false) ):
4
-
5
- class Puc_v4p11_DebugBar_ThemePanel extends Puc_v4p11_DebugBar_Panel {
6
- /**
7
- * @var Puc_v4p11_Theme_UpdateChecker
8
- */
9
- protected $updateChecker;
10
-
11
- protected function displayConfigHeader() {
12
- $this->row('Theme directory', htmlentities($this->updateChecker->directoryName));
13
- parent::displayConfigHeader();
14
- }
15
-
16
- protected function getUpdateFields() {
17
- return array_merge(parent::getUpdateFields(), array('details_url'));
18
- }
19
- }
20
-
21
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Factory.php DELETED
@@ -1,365 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Factory', false) ):
3
-
4
- /**
5
- * A factory that builds update checker instances.
6
- *
7
- * When multiple versions of the same class have been loaded (e.g. PluginUpdateChecker 4.0
8
- * and 4.1), this factory will always use the latest available minor version. Register class
9
- * versions by calling {@link PucFactory::addVersion()}.
10
- *
11
- * At the moment it can only build instances of the UpdateChecker class. Other classes are
12
- * intended mainly for internal use and refer directly to specific implementations.
13
- */
14
- class Puc_v4p11_Factory {
15
- protected static $classVersions = array();
16
- protected static $sorted = false;
17
-
18
- protected static $myMajorVersion = '';
19
- protected static $latestCompatibleVersion = '';
20
-
21
- /**
22
- * A wrapper method for buildUpdateChecker() that reads the metadata URL from the plugin or theme header.
23
- *
24
- * @param string $fullPath Full path to the main plugin file or the theme's style.css.
25
- * @param array $args Optional arguments. Keys should match the argument names of the buildUpdateChecker() method.
26
- * @return Puc_v4p11_Plugin_UpdateChecker|Puc_v4p11_Theme_UpdateChecker|Puc_v4p11_Vcs_BaseChecker
27
- */
28
- public static function buildFromHeader($fullPath, $args = array()) {
29
- $fullPath = self::normalizePath($fullPath);
30
-
31
- //Set up defaults.
32
- $defaults = array(
33
- 'metadataUrl' => '',
34
- 'slug' => '',
35
- 'checkPeriod' => 12,
36
- 'optionName' => '',
37
- 'muPluginFile' => '',
38
- );
39
- $args = array_merge($defaults, array_intersect_key($args, $defaults));
40
- extract($args, EXTR_SKIP);
41
-
42
- //Check for the service URI
43
- if ( empty($metadataUrl) ) {
44
- $metadataUrl = self::getServiceURI($fullPath);
45
- }
46
-
47
- /** @noinspection PhpUndefinedVariableInspection These variables are created by extract(), above. */
48
- return self::buildUpdateChecker($metadataUrl, $fullPath, $slug, $checkPeriod, $optionName, $muPluginFile);
49
- }
50
-
51
- /**
52
- * Create a new instance of the update checker.
53
- *
54
- * This method automatically detects if you're using it for a plugin or a theme and chooses
55
- * the appropriate implementation for your update source (JSON file, GitHub, BitBucket, etc).
56
- *
57
- * @see Puc_v4p11_UpdateChecker::__construct
58
- *
59
- * @param string $metadataUrl The URL of the metadata file, a GitHub repository, or another supported update source.
60
- * @param string $fullPath Full path to the main plugin file or to the theme directory.
61
- * @param string $slug Custom slug. Defaults to the name of the main plugin file or the theme directory.
62
- * @param int $checkPeriod How often to check for updates (in hours).
63
- * @param string $optionName Where to store book-keeping info about update checks.
64
- * @param string $muPluginFile The plugin filename relative to the mu-plugins directory.
65
- * @return Puc_v4p11_Plugin_UpdateChecker|Puc_v4p11_Theme_UpdateChecker|Puc_v4p11_Vcs_BaseChecker
66
- */
67
- public static function buildUpdateChecker($metadataUrl, $fullPath, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = '') {
68
- $fullPath = self::normalizePath($fullPath);
69
- $id = null;
70
-
71
- //Plugin or theme?
72
- $themeDirectory = self::getThemeDirectoryName($fullPath);
73
- if ( self::isPluginFile($fullPath) ) {
74
- $type = 'Plugin';
75
- $id = $fullPath;
76
- } else if ( $themeDirectory !== null ) {
77
- $type = 'Theme';
78
- $id = $themeDirectory;
79
- } else {
80
- throw new RuntimeException(sprintf(
81
- 'The update checker cannot determine if "%s" is a plugin or a theme. ' .
82
- 'This is a bug. Please contact the PUC developer.',
83
- htmlentities($fullPath)
84
- ));
85
- }
86
-
87
- //Which hosting service does the URL point to?
88
- $service = self::getVcsService($metadataUrl);
89
-
90
- $apiClass = null;
91
- if ( empty($service) ) {
92
- //The default is to get update information from a remote JSON file.
93
- $checkerClass = $type . '_UpdateChecker';
94
- } else {
95
- //You can also use a VCS repository like GitHub.
96
- $checkerClass = 'Vcs_' . $type . 'UpdateChecker';
97
- $apiClass = $service . 'Api';
98
- }
99
-
100
- $checkerClass = self::getCompatibleClassVersion($checkerClass);
101
- if ( $checkerClass === null ) {
102
- trigger_error(
103
- sprintf(
104
- 'PUC %s does not support updates for %ss %s',
105
- htmlentities(self::$latestCompatibleVersion),
106
- strtolower($type),
107
- $service ? ('hosted on ' . htmlentities($service)) : 'using JSON metadata'
108
- ),
109
- E_USER_ERROR
110
- );
111
- return null;
112
- }
113
-
114
- //Add the current namespace to the class name(s).
115
- if ( version_compare(PHP_VERSION, '5.3', '>=') ) {
116
- $checkerClass = __NAMESPACE__ . '\\' . $checkerClass;
117
- }
118
-
119
- if ( !isset($apiClass) ) {
120
- //Plain old update checker.
121
- return new $checkerClass($metadataUrl, $id, $slug, $checkPeriod, $optionName, $muPluginFile);
122
- } else {
123
- //VCS checker + an API client.
124
- $apiClass = self::getCompatibleClassVersion($apiClass);
125
- if ( $apiClass === null ) {
126
- trigger_error(sprintf(
127
- 'PUC %s does not support %s',
128
- htmlentities(self::$latestCompatibleVersion),
129
- htmlentities($service)
130
- ), E_USER_ERROR);
131
- return null;
132
- }
133
-
134
- if ( version_compare(PHP_VERSION, '5.3', '>=') && (strpos($apiClass, '\\') === false) ) {
135
- $apiClass = __NAMESPACE__ . '\\' . $apiClass;
136
- }
137
-
138
- return new $checkerClass(
139
- new $apiClass($metadataUrl),
140
- $id,
141
- $slug,
142
- $checkPeriod,
143
- $optionName,
144
- $muPluginFile
145
- );
146
- }
147
- }
148
-
149
- /**
150
- *
151
- * Normalize a filesystem path. Introduced in WP 3.9.
152
- * Copying here allows use of the class on earlier versions.
153
- * This version adapted from WP 4.8.2 (unchanged since 4.5.0)
154
- *
155
- * @param string $path Path to normalize.
156
- * @return string Normalized path.
157
- */
158
- public static function normalizePath($path) {
159
- if ( function_exists('wp_normalize_path') ) {
160
- return wp_normalize_path($path);
161
- }
162
- $path = str_replace('\\', '/', $path);
163
- $path = preg_replace('|(?<=.)/+|', '/', $path);
164
- if ( substr($path, 1, 1) === ':' ) {
165
- $path = ucfirst($path);
166
- }
167
- return $path;
168
- }
169
-
170
- /**
171
- * Check if the path points to a plugin file.
172
- *
173
- * @param string $absolutePath Normalized path.
174
- * @return bool
175
- */
176
- protected static function isPluginFile($absolutePath) {
177
- //Is the file inside the "plugins" or "mu-plugins" directory?
178
- $pluginDir = self::normalizePath(WP_PLUGIN_DIR);
179
- $muPluginDir = self::normalizePath(WPMU_PLUGIN_DIR);
180
- if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) {
181
- return true;
182
- }
183
-
184
- //Is it a file at all? Caution: is_file() can fail if the parent dir. doesn't have the +x permission set.
185
- if ( !is_file($absolutePath) ) {
186
- return false;
187
- }
188
-
189
- //Does it have a valid plugin header?
190
- //This is a last-ditch check for plugins symlinked from outside the WP root.
191
- if ( function_exists('get_file_data') ) {
192
- $headers = get_file_data($absolutePath, array('Name' => 'Plugin Name'), 'plugin');
193
- return !empty($headers['Name']);
194
- }
195
-
196
- return false;
197
- }
198
-
199
- /**
200
- * Get the name of the theme's directory from a full path to a file inside that directory.
201
- * E.g. "/abc/public_html/wp-content/themes/foo/whatever.php" => "foo".
202
- *
203
- * Note that subdirectories are currently not supported. For example,
204
- * "/xyz/wp-content/themes/my-theme/includes/whatever.php" => NULL.
205
- *
206
- * @param string $absolutePath Normalized path.
207
- * @return string|null Directory name, or NULL if the path doesn't point to a theme.
208
- */
209
- protected static function getThemeDirectoryName($absolutePath) {
210
- if ( is_file($absolutePath) ) {
211
- $absolutePath = dirname($absolutePath);
212
- }
213
-
214
- if ( file_exists($absolutePath . '/style.css') ) {
215
- return basename($absolutePath);
216
- }
217
- return null;
218
- }
219
-
220
- /**
221
- * Get the service URI from the file header.
222
- *
223
- * @param string $fullPath
224
- * @return string
225
- */
226
- private static function getServiceURI($fullPath) {
227
- //Look for the URI
228
- if ( is_readable($fullPath) ) {
229
- $seek = array(
230
- 'github' => 'GitHub URI',
231
- 'gitlab' => 'GitLab URI',
232
- 'bucket' => 'BitBucket URI',
233
- );
234
- $seek = apply_filters('puc_get_source_uri', $seek);
235
- $data = get_file_data($fullPath, $seek);
236
- foreach ($data as $key => $uri) {
237
- if ( $uri ) {
238
- return $uri;
239
- }
240
- }
241
- }
242
-
243
- //URI was not found so throw an error.
244
- throw new RuntimeException(
245
- sprintf('Unable to locate URI in header of "%s"', htmlentities($fullPath))
246
- );
247
- }
248
-
249
- /**
250
- * Get the name of the hosting service that the URL points to.
251
- *
252
- * @param string $metadataUrl
253
- * @return string|null
254
- */
255
- private static function getVcsService($metadataUrl) {
256
- $service = null;
257
-
258
- //Which hosting service does the URL point to?
259
- $host = parse_url($metadataUrl, PHP_URL_HOST);
260
- $path = parse_url($metadataUrl, PHP_URL_PATH);
261
-
262
- //Check if the path looks like "/user-name/repository".
263
- //For GitLab.com it can also be "/user/group1/group2/.../repository".
264
- $repoRegex = '@^/?([^/]+?)/([^/#?&]+?)/?$@';
265
- if ( $host === 'gitlab.com' ) {
266
- $repoRegex = '@^/?(?:[^/#?&]++/){1,20}(?:[^/#?&]++)/?$@';
267
- }
268
- if ( preg_match($repoRegex, $path) ) {
269
- $knownServices = array(
270
- 'github.com' => 'GitHub',
271
- 'bitbucket.org' => 'BitBucket',
272
- 'gitlab.com' => 'GitLab',
273
- );
274
- if ( isset($knownServices[$host]) ) {
275
- $service = $knownServices[$host];
276
- }
277
- }
278
-
279
- return apply_filters('puc_get_vcs_service', $service, $host, $path, $metadataUrl);
280
- }
281
-
282
- /**
283
- * Get the latest version of the specified class that has the same major version number
284
- * as this factory class.
285
- *
286
- * @param string $class Partial class name.
287
- * @return string|null Full class name.
288
- */
289
- protected static function getCompatibleClassVersion($class) {
290
- if ( isset(self::$classVersions[$class][self::$latestCompatibleVersion]) ) {
291
- return self::$classVersions[$class][self::$latestCompatibleVersion];
292
- }
293
- return null;
294
- }
295
-
296
- /**
297
- * Get the specific class name for the latest available version of a class.
298
- *
299
- * @param string $class
300
- * @return null|string
301
- */
302
- public static function getLatestClassVersion($class) {
303
- if ( !self::$sorted ) {
304
- self::sortVersions();
305
- }
306
-
307
- if ( isset(self::$classVersions[$class]) ) {
308
- return reset(self::$classVersions[$class]);
309
- } else {
310
- return null;
311
- }
312
- }
313
-
314
- /**
315
- * Sort available class versions in descending order (i.e. newest first).
316
- */
317
- protected static function sortVersions() {
318
- foreach ( self::$classVersions as $class => $versions ) {
319
- uksort($versions, array(__CLASS__, 'compareVersions'));
320
- self::$classVersions[$class] = $versions;
321
- }
322
- self::$sorted = true;
323
- }
324
-
325
- protected static function compareVersions($a, $b) {
326
- return -version_compare($a, $b);
327
- }
328
-
329
- /**
330
- * Register a version of a class.
331
- *
332
- * @access private This method is only for internal use by the library.
333
- *
334
- * @param string $generalClass Class name without version numbers, e.g. 'PluginUpdateChecker'.
335
- * @param string $versionedClass Actual class name, e.g. 'PluginUpdateChecker_1_2'.
336
- * @param string $version Version number, e.g. '1.2'.
337
- */
338
- public static function addVersion($generalClass, $versionedClass, $version) {
339
- if ( empty(self::$myMajorVersion) ) {
340
- $nameParts = explode('_', __CLASS__, 3);
341
- self::$myMajorVersion = substr(ltrim($nameParts[1], 'v'), 0, 1);
342
- }
343
-
344
- //Store the greatest version number that matches our major version.
345
- $components = explode('.', $version);
346
- if ( $components[0] === self::$myMajorVersion ) {
347
-
348
- if (
349
- empty(self::$latestCompatibleVersion)
350
- || version_compare($version, self::$latestCompatibleVersion, '>')
351
- ) {
352
- self::$latestCompatibleVersion = $version;
353
- }
354
-
355
- }
356
-
357
- if ( !isset(self::$classVersions[$generalClass]) ) {
358
- self::$classVersions[$generalClass] = array();
359
- }
360
- self::$classVersions[$generalClass][$version] = $versionedClass;
361
- self::$sorted = false;
362
- }
363
- }
364
-
365
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/InstalledPackage.php DELETED
@@ -1,103 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_InstalledPackage', false) ):
3
-
4
- /**
5
- * This class represents a currently installed plugin or theme.
6
- *
7
- * Not to be confused with the "package" field in WP update API responses that contains
8
- * the download URL of a the new version.
9
- */
10
- abstract class Puc_v4p11_InstalledPackage {
11
- /**
12
- * @var Puc_v4p11_UpdateChecker
13
- */
14
- protected $updateChecker;
15
-
16
- public function __construct($updateChecker) {
17
- $this->updateChecker = $updateChecker;
18
- }
19
-
20
- /**
21
- * Get the currently installed version of the plugin or theme.
22
- *
23
- * @return string|null Version number.
24
- */
25
- abstract public function getInstalledVersion();
26
-
27
- /**
28
- * Get the full path of the plugin or theme directory (without a trailing slash).
29
- *
30
- * @return string
31
- */
32
- abstract public function getAbsoluteDirectoryPath();
33
-
34
- /**
35
- * Check whether a regular file exists in the package's directory.
36
- *
37
- * @param string $relativeFileName File name relative to the package directory.
38
- * @return bool
39
- */
40
- public function fileExists($relativeFileName) {
41
- return is_file(
42
- $this->getAbsoluteDirectoryPath()
43
- . DIRECTORY_SEPARATOR
44
- . ltrim($relativeFileName, '/\\')
45
- );
46
- }
47
-
48
- /* -------------------------------------------------------------------
49
- * File header parsing
50
- * -------------------------------------------------------------------
51
- */
52
-
53
- /**
54
- * Parse plugin or theme metadata from the header comment.
55
- *
56
- * This is basically a simplified version of the get_file_data() function from /wp-includes/functions.php.
57
- * It's intended as a utility for subclasses that detect updates by parsing files in a VCS.
58
- *
59
- * @param string|null $content File contents.
60
- * @return string[]
61
- */
62
- public function getFileHeader($content) {
63
- $content = (string)$content;
64
-
65
- //WordPress only looks at the first 8 KiB of the file, so we do the same.
66
- $content = substr($content, 0, 8192);
67
- //Normalize line endings.
68
- $content = str_replace("\r", "\n", $content);
69
-
70
- $headers = $this->getHeaderNames();
71
- $results = array();
72
- foreach ($headers as $field => $name) {
73
- $success = preg_match('/^[ \t\/*#@]*' . preg_quote($name, '/') . ':(.*)$/mi', $content, $matches);
74
-
75
- if ( ($success === 1) && $matches[1] ) {
76
- $value = $matches[1];
77
- if ( function_exists('_cleanup_header_comment') ) {
78
- $value = _cleanup_header_comment($value);
79
- }
80
- $results[$field] = $value;
81
- } else {
82
- $results[$field] = '';
83
- }
84
- }
85
-
86
- return $results;
87
- }
88
-
89
- /**
90
- * @return array Format: ['HeaderKey' => 'Header Name']
91
- */
92
- abstract protected function getHeaderNames();
93
-
94
- /**
95
- * Get the value of a specific plugin or theme header.
96
- *
97
- * @param string $headerName
98
- * @return string Either the value of the header, or an empty string if the header doesn't exist.
99
- */
100
- abstract public function getHeaderValue($headerName);
101
-
102
- }
103
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Metadata.php DELETED
@@ -1,132 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Metadata', false) ):
3
-
4
- /**
5
- * A base container for holding information about updates and plugin metadata.
6
- *
7
- * @author Janis Elsts
8
- * @copyright 2016
9
- * @access public
10
- */
11
- abstract class Puc_v4p11_Metadata {
12
-
13
- /**
14
- * Create an instance of this class from a JSON document.
15
- *
16
- * @abstract
17
- * @param string $json
18
- * @return self
19
- */
20
- public static function fromJson(/** @noinspection PhpUnusedParameterInspection */ $json) {
21
- throw new LogicException('The ' . __METHOD__ . ' method must be implemented by subclasses');
22
- }
23
-
24
- /**
25
- * @param string $json
26
- * @param self $target
27
- * @return bool
28
- */
29
- protected static function createFromJson($json, $target) {
30
- /** @var StdClass $apiResponse */
31
- $apiResponse = json_decode($json);
32
- if ( empty($apiResponse) || !is_object($apiResponse) ){
33
- $errorMessage = "Failed to parse update metadata. Try validating your .json file with http://jsonlint.com/";
34
- do_action('puc_api_error', new WP_Error('puc-invalid-json', $errorMessage));
35
- trigger_error($errorMessage, E_USER_NOTICE);
36
- return false;
37
- }
38
-
39
- $valid = $target->validateMetadata($apiResponse);
40
- if ( is_wp_error($valid) ){
41
- do_action('puc_api_error', $valid);
42
- trigger_error($valid->get_error_message(), E_USER_NOTICE);
43
- return false;
44
- }
45
-
46
- foreach(get_object_vars($apiResponse) as $key => $value){
47
- $target->$key = $value;
48
- }
49
-
50
- return true;
51
- }
52
-
53
- /**
54
- * No validation by default! Subclasses should check that the required fields are present.
55
- *
56
- * @param StdClass $apiResponse
57
- * @return bool|WP_Error
58
- */
59
- protected function validateMetadata(/** @noinspection PhpUnusedParameterInspection */ $apiResponse) {
60
- return true;
61
- }
62
-
63
- /**
64
- * Create a new instance by copying the necessary fields from another object.
65
- *
66
- * @abstract
67
- * @param StdClass|self $object The source object.
68
- * @return self The new copy.
69
- */
70
- public static function fromObject(/** @noinspection PhpUnusedParameterInspection */ $object) {
71
- throw new LogicException('The ' . __METHOD__ . ' method must be implemented by subclasses');
72
- }
73
-
74
- /**
75
- * Create an instance of StdClass that can later be converted back to an
76
- * update or info container. Useful for serialization and caching, as it
77
- * avoids the "incomplete object" problem if the cached value is loaded
78
- * before this class.
79
- *
80
- * @return StdClass
81
- */
82
- public function toStdClass() {
83
- $object = new stdClass();
84
- $this->copyFields($this, $object);
85
- return $object;
86
- }
87
-
88
- /**
89
- * Transform the metadata into the format used by WordPress core.
90
- *
91
- * @return object
92
- */
93
- abstract public function toWpFormat();
94
-
95
- /**
96
- * Copy known fields from one object to another.
97
- *
98
- * @param StdClass|self $from
99
- * @param StdClass|self $to
100
- */
101
- protected function copyFields($from, $to) {
102
- $fields = $this->getFieldNames();
103
-
104
- if ( property_exists($from, 'slug') && !empty($from->slug) ) {
105
- //Let plugins add extra fields without having to create subclasses.
106
- $fields = apply_filters($this->getPrefixedFilter('retain_fields') . '-' . $from->slug, $fields);
107
- }
108
-
109
- foreach ($fields as $field) {
110
- if ( property_exists($from, $field) ) {
111
- $to->$field = $from->$field;
112
- }
113
- }
114
- }
115
-
116
- /**
117
- * @return string[]
118
- */
119
- protected function getFieldNames() {
120
- return array();
121
- }
122
-
123
- /**
124
- * @param string $tag
125
- * @return string
126
- */
127
- protected function getPrefixedFilter($tag) {
128
- return 'puc_' . $tag;
129
- }
130
- }
131
-
132
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/OAuthSignature.php DELETED
@@ -1,100 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_OAuthSignature', false) ):
4
-
5
- /**
6
- * A basic signature generator for zero-legged OAuth 1.0.
7
- */
8
- class Puc_v4p11_OAuthSignature {
9
- private $consumerKey = '';
10
- private $consumerSecret = '';
11
-
12
- public function __construct($consumerKey, $consumerSecret) {
13
- $this->consumerKey = $consumerKey;
14
- $this->consumerSecret = $consumerSecret;
15
- }
16
-
17
- /**
18
- * Sign a URL using OAuth 1.0.
19
- *
20
- * @param string $url The URL to be signed. It may contain query parameters.
21
- * @param string $method HTTP method such as "GET", "POST" and so on.
22
- * @return string The signed URL.
23
- */
24
- public function sign($url, $method = 'GET') {
25
- $parameters = array();
26
-
27
- //Parse query parameters.
28
- $query = parse_url($url, PHP_URL_QUERY);
29
- if ( !empty($query) ) {
30
- parse_str($query, $parsedParams);
31
- if ( is_array($parameters) ) {
32
- $parameters = $parsedParams;
33
- }
34
- //Remove the query string from the URL. We'll replace it later.
35
- $url = substr($url, 0, strpos($url, '?'));
36
- }
37
-
38
- $parameters = array_merge(
39
- $parameters,
40
- array(
41
- 'oauth_consumer_key' => $this->consumerKey,
42
- 'oauth_nonce' => $this->nonce(),
43
- 'oauth_signature_method' => 'HMAC-SHA1',
44
- 'oauth_timestamp' => time(),
45
- 'oauth_version' => '1.0',
46
- )
47
- );
48
- unset($parameters['oauth_signature']);
49
-
50
- //Parameters must be sorted alphabetically before signing.
51
- ksort($parameters);
52
-
53
- //The most complicated part of the request - generating the signature.
54
- //The string to sign contains the HTTP method, the URL path, and all of
55
- //our query parameters. Everything is URL encoded. Then we concatenate
56
- //them with ampersands into a single string to hash.
57
- $encodedVerb = urlencode($method);
58
- $encodedUrl = urlencode($url);
59
- $encodedParams = urlencode(http_build_query($parameters, '', '&'));
60
-
61
- $stringToSign = $encodedVerb . '&' . $encodedUrl . '&' . $encodedParams;
62
-
63
- //Since we only have one OAuth token (the consumer secret) we only have
64
- //to use it as our HMAC key. However, we still have to append an & to it
65
- //as if we were using it with additional tokens.
66
- $secret = urlencode($this->consumerSecret) . '&';
67
-
68
- //The signature is a hash of the consumer key and the base string. Note
69
- //that we have to get the raw output from hash_hmac and base64 encode
70
- //the binary data result.
71
- $parameters['oauth_signature'] = base64_encode(hash_hmac('sha1', $stringToSign, $secret, true));
72
-
73
- return ($url . '?' . http_build_query($parameters));
74
- }
75
-
76
- /**
77
- * Generate a random nonce.
78
- *
79
- * @return string
80
- */
81
- private function nonce() {
82
- $mt = microtime();
83
-
84
- $rand = null;
85
- if ( is_callable('random_bytes') ) {
86
- try {
87
- $rand = random_bytes(16);
88
- } catch (Exception $ex) {
89
- //Fall back to mt_rand (below).
90
- }
91
- }
92
- if ( $rand === null ) {
93
- $rand = mt_rand();
94
- }
95
-
96
- return md5($mt . '_' . $rand);
97
- }
98
- }
99
-
100
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Plugin/Info.php DELETED
@@ -1,132 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Plugin_Info', false) ):
3
-
4
- /**
5
- * A container class for holding and transforming various plugin metadata.
6
- *
7
- * @author Janis Elsts
8
- * @copyright 2016
9
- * @access public
10
- */
11
- class Puc_v4p11_Plugin_Info extends Puc_v4p11_Metadata {
12
- //Most fields map directly to the contents of the plugin's info.json file.
13
- //See the relevant docs for a description of their meaning.
14
- public $name;
15
- public $slug;
16
- public $version;
17
- public $homepage;
18
- public $sections = array();
19
- public $download_url;
20
-
21
- public $banners;
22
- public $icons = array();
23
- public $translations = array();
24
-
25
- public $author;
26
- public $author_homepage;
27
-
28
- public $requires;
29
- public $tested;
30
- public $requires_php;
31
- public $upgrade_notice;
32
-
33
- public $rating;
34
- public $num_ratings;
35
- public $downloaded;
36
- public $active_installs;
37
- public $last_updated;
38
-
39
- public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything.
40
-
41
- public $filename; //Plugin filename relative to the plugins directory.
42
-
43
- /**
44
- * Create a new instance of Plugin Info from JSON-encoded plugin info
45
- * returned by an external update API.
46
- *
47
- * @param string $json Valid JSON string representing plugin info.
48
- * @return self|null New instance of Plugin Info, or NULL on error.
49
- */
50
- public static function fromJson($json){
51
- $instance = new self();
52
-
53
- if ( !parent::createFromJson($json, $instance) ) {
54
- return null;
55
- }
56
-
57
- //json_decode decodes assoc. arrays as objects. We want them as arrays.
58
- $instance->sections = (array)$instance->sections;
59
- $instance->icons = (array)$instance->icons;
60
-
61
- return $instance;
62
- }
63
-
64
- /**
65
- * Very, very basic validation.
66
- *
67
- * @param StdClass $apiResponse
68
- * @return bool|WP_Error
69
- */
70
- protected function validateMetadata($apiResponse) {
71
- if (
72
- !isset($apiResponse->name, $apiResponse->version)
73
- || empty($apiResponse->name)
74
- || empty($apiResponse->version)
75
- ) {
76
- return new WP_Error(
77
- 'puc-invalid-metadata',
78
- "The plugin metadata file does not contain the required 'name' and/or 'version' keys."
79
- );
80
- }
81
- return true;
82
- }
83
-
84
-
85
- /**
86
- * Transform plugin info into the format used by the native WordPress.org API
87
- *
88
- * @return object
89
- */
90
- public function toWpFormat(){
91
- $info = new stdClass;
92
-
93
- //The custom update API is built so that many fields have the same name and format
94
- //as those returned by the native WordPress.org API. These can be assigned directly.
95
- $sameFormat = array(
96
- 'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
97
- 'num_ratings', 'downloaded', 'active_installs', 'homepage', 'last_updated',
98
- 'requires_php',
99
- );
100
- foreach($sameFormat as $field){
101
- if ( isset($this->$field) ) {
102
- $info->$field = $this->$field;
103
- } else {
104
- $info->$field = null;
105
- }
106
- }
107
-
108
- //Other fields need to be renamed and/or transformed.
109
- $info->download_link = $this->download_url;
110
- $info->author = $this->getFormattedAuthor();
111
- $info->sections = array_merge(array('description' => ''), $this->sections);
112
-
113
- if ( !empty($this->banners) ) {
114
- //WP expects an array with two keys: "high" and "low". Both are optional.
115
- //Docs: https://wordpress.org/plugins/about/faq/#banners
116
- $info->banners = is_object($this->banners) ? get_object_vars($this->banners) : $this->banners;
117
- $info->banners = array_intersect_key($info->banners, array('high' => true, 'low' => true));
118
- }
119
-
120
- return $info;
121
- }
122
-
123
- protected function getFormattedAuthor() {
124
- if ( !empty($this->author_homepage) ){
125
- /** @noinspection HtmlUnknownTarget */
126
- return sprintf('<a href="%s">%s</a>', $this->author_homepage, $this->author);
127
- }
128
- return $this->author;
129
- }
130
- }
131
-
132
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Plugin/Package.php DELETED
@@ -1,184 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Plugin_Package', false) ):
3
-
4
- class Puc_v4p11_Plugin_Package extends Puc_v4p11_InstalledPackage {
5
- /**
6
- * @var Puc_v4p11_Plugin_UpdateChecker
7
- */
8
- protected $updateChecker;
9
-
10
- /**
11
- * @var string Full path of the main plugin file.
12
- */
13
- protected $pluginAbsolutePath = '';
14
-
15
- /**
16
- * @var string Plugin basename.
17
- */
18
- private $pluginFile;
19
-
20
- /**
21
- * @var string|null
22
- */
23
- private $cachedInstalledVersion = null;
24
-
25
- public function __construct($pluginAbsolutePath, $updateChecker) {
26
- $this->pluginAbsolutePath = $pluginAbsolutePath;
27
- $this->pluginFile = plugin_basename($this->pluginAbsolutePath);
28
-
29
- parent::__construct($updateChecker);
30
-
31
- //Clear the version number cache when something - anything - is upgraded or WP clears the update cache.
32
- add_filter('upgrader_post_install', array($this, 'clearCachedVersion'));
33
- add_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion'));
34
- }
35
-
36
- public function getInstalledVersion() {
37
- if ( isset($this->cachedInstalledVersion) ) {
38
- return $this->cachedInstalledVersion;
39
- }
40
-
41
- $pluginHeader = $this->getPluginHeader();
42
- if ( isset($pluginHeader['Version']) ) {
43
- $this->cachedInstalledVersion = $pluginHeader['Version'];
44
- return $pluginHeader['Version'];
45
- } else {
46
- //This can happen if the filename points to something that is not a plugin.
47
- $this->updateChecker->triggerError(
48
- sprintf(
49
- "Can't to read the Version header for '%s'. The filename is incorrect or is not a plugin.",
50
- $this->updateChecker->pluginFile
51
- ),
52
- E_USER_WARNING
53
- );
54
- return null;
55
- }
56
- }
57
-
58
- /**
59
- * Clear the cached plugin version. This method can be set up as a filter (hook) and will
60
- * return the filter argument unmodified.
61
- *
62
- * @param mixed $filterArgument
63
- * @return mixed
64
- */
65
- public function clearCachedVersion($filterArgument = null) {
66
- $this->cachedInstalledVersion = null;
67
- return $filterArgument;
68
- }
69
-
70
- public function getAbsoluteDirectoryPath() {
71
- return dirname($this->pluginAbsolutePath);
72
- }
73
-
74
- /**
75
- * Get the value of a specific plugin or theme header.
76
- *
77
- * @param string $headerName
78
- * @param string $defaultValue
79
- * @return string Either the value of the header, or $defaultValue if the header doesn't exist or is empty.
80
- */
81
- public function getHeaderValue($headerName, $defaultValue = '') {
82
- $headers = $this->getPluginHeader();
83
- if ( isset($headers[$headerName]) && ($headers[$headerName] !== '') ) {
84
- return $headers[$headerName];
85
- }
86
- return $defaultValue;
87
- }
88
-
89
- protected function getHeaderNames() {
90
- return array(
91
- 'Name' => 'Plugin Name',
92
- 'PluginURI' => 'Plugin URI',
93
- 'Version' => 'Version',
94
- 'Description' => 'Description',
95
- 'Author' => 'Author',
96
- 'AuthorURI' => 'Author URI',
97
- 'TextDomain' => 'Text Domain',
98
- 'DomainPath' => 'Domain Path',
99
- 'Network' => 'Network',
100
-
101
- //The newest WordPress version that this plugin requires or has been tested with.
102
- //We support several different formats for compatibility with other libraries.
103
- 'Tested WP' => 'Tested WP',
104
- 'Requires WP' => 'Requires WP',
105
- 'Tested up to' => 'Tested up to',
106
- 'Requires at least' => 'Requires at least',
107
- );
108
- }
109
-
110
- /**
111
- * Get the translated plugin title.
112
- *
113
- * @return string
114
- */
115
- public function getPluginTitle() {
116
- $title = '';
117
- $header = $this->getPluginHeader();
118
- if ( $header && !empty($header['Name']) && isset($header['TextDomain']) ) {
119
- $title = translate($header['Name'], $header['TextDomain']);
120
- }
121
- return $title;
122
- }
123
-
124
- /**
125
- * Get plugin's metadata from its file header.
126
- *
127
- * @return array
128
- */
129
- public function getPluginHeader() {
130
- if ( !is_file($this->pluginAbsolutePath) ) {
131
- //This can happen if the plugin filename is wrong.
132
- $this->updateChecker->triggerError(
133
- sprintf(
134
- "Can't to read the plugin header for '%s'. The file does not exist.",
135
- $this->updateChecker->pluginFile
136
- ),
137
- E_USER_WARNING
138
- );
139
- return array();
140
- }
141
-
142
- if ( !function_exists('get_plugin_data') ) {
143
- /** @noinspection PhpIncludeInspection */
144
- require_once(ABSPATH . '/wp-admin/includes/plugin.php');
145
- }
146
- return get_plugin_data($this->pluginAbsolutePath, false, false);
147
- }
148
-
149
- public function removeHooks() {
150
- remove_filter('upgrader_post_install', array($this, 'clearCachedVersion'));
151
- remove_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion'));
152
- }
153
-
154
- /**
155
- * Check if the plugin file is inside the mu-plugins directory.
156
- *
157
- * @return bool
158
- */
159
- public function isMuPlugin() {
160
- static $cachedResult = null;
161
-
162
- if ( $cachedResult === null ) {
163
- if ( !defined('WPMU_PLUGIN_DIR') || !is_string(WPMU_PLUGIN_DIR) ) {
164
- $cachedResult = false;
165
- return $cachedResult;
166
- }
167
-
168
- //Convert both paths to the canonical form before comparison.
169
- $muPluginDir = realpath(WPMU_PLUGIN_DIR);
170
- $pluginPath = realpath($this->pluginAbsolutePath);
171
- //If realpath() fails, just normalize the syntax instead.
172
- if (($muPluginDir === false) || ($pluginPath === false)) {
173
- $muPluginDir = Puc_v4p11_Factory::normalizePath(WPMU_PLUGIN_DIR);
174
- $pluginPath = Puc_v4p11_Factory::normalizePath($this->pluginAbsolutePath);
175
- }
176
-
177
- $cachedResult = (strpos($pluginPath, $muPluginDir) === 0);
178
- }
179
-
180
- return $cachedResult;
181
- }
182
- }
183
-
184
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Plugin/Ui.php DELETED
@@ -1,278 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Plugin_Ui', false) ):
3
- /**
4
- * Additional UI elements for plugins.
5
- */
6
- class Puc_v4p11_Plugin_Ui {
7
- private $updateChecker;
8
- private $manualCheckErrorTransient = '';
9
-
10
- /**
11
- * @param Puc_v4p11_Plugin_UpdateChecker $updateChecker
12
- */
13
- public function __construct($updateChecker) {
14
- $this->updateChecker = $updateChecker;
15
- $this->manualCheckErrorTransient = $this->updateChecker->getUniqueName('manual_check_errors');
16
-
17
- add_action('admin_init', array($this, 'onAdminInit'));
18
- }
19
-
20
- public function onAdminInit() {
21
- if ( $this->updateChecker->userCanInstallUpdates() ) {
22
- $this->handleManualCheck();
23
-
24
- add_filter('plugin_row_meta', array($this, 'addViewDetailsLink'), 10, 3);
25
- add_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10, 2);
26
- add_action('all_admin_notices', array($this, 'displayManualCheckResult'));
27
- }
28
- }
29
-
30
- /**
31
- * Add a "View Details" link to the plugin row in the "Plugins" page. By default,
32
- * the new link will appear before the "Visit plugin site" link (if present).
33
- *
34
- * You can change the link text by using the "puc_view_details_link-$slug" filter.
35
- * Returning an empty string from the filter will disable the link.
36
- *
37
- * You can change the position of the link using the
38
- * "puc_view_details_link_position-$slug" filter.
39
- * Returning 'before' or 'after' will place the link immediately before/after
40
- * the "Visit plugin site" link.
41
- * Returning 'append' places the link after any existing links at the time of the hook.
42
- * Returning 'replace' replaces the "Visit plugin site" link.
43
- * Returning anything else disables the link when there is a "Visit plugin site" link.
44
- *
45
- * If there is no "Visit plugin site" link 'append' is always used!
46
- *
47
- * @param array $pluginMeta Array of meta links.
48
- * @param string $pluginFile
49
- * @param array $pluginData Array of plugin header data.
50
- * @return array
51
- */
52
- public function addViewDetailsLink($pluginMeta, $pluginFile, $pluginData = array()) {
53
- if ( $this->isMyPluginFile($pluginFile) && !isset($pluginData['slug']) ) {
54
- $linkText = apply_filters($this->updateChecker->getUniqueName('view_details_link'), esc_html__('View details'));
55
- if ( !empty($linkText) ) {
56
- $viewDetailsLinkPosition = 'append';
57
-
58
- //Find the "Visit plugin site" link (if present).
59
- $visitPluginSiteLinkIndex = count($pluginMeta) - 1;
60
- if ( $pluginData['PluginURI'] ) {
61
- $escapedPluginUri = esc_url($pluginData['PluginURI']);
62
- foreach ($pluginMeta as $linkIndex => $existingLink) {
63
- if ( strpos($existingLink, $escapedPluginUri) !== false ) {
64
- $visitPluginSiteLinkIndex = $linkIndex;
65
- $viewDetailsLinkPosition = apply_filters(
66
- $this->updateChecker->getUniqueName('view_details_link_position'),
67
- 'before'
68
- );
69
- break;
70
- }
71
- }
72
- }
73
-
74
- $viewDetailsLink = sprintf('<a href="%s" class="thickbox open-plugin-details-modal" aria-label="%s" data-title="%s">%s</a>',
75
- esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin=' . urlencode($this->updateChecker->slug) .
76
- '&TB_iframe=true&width=600&height=550')),
77
- esc_attr(sprintf(__('More information about %s'), $pluginData['Name'])),
78
- esc_attr($pluginData['Name']),
79
- $linkText
80
- );
81
- switch ($viewDetailsLinkPosition) {
82
- case 'before':
83
- array_splice($pluginMeta, $visitPluginSiteLinkIndex, 0, $viewDetailsLink);
84
- break;
85
- case 'after':
86
- array_splice($pluginMeta, $visitPluginSiteLinkIndex + 1, 0, $viewDetailsLink);
87
- break;
88
- case 'replace':
89
- $pluginMeta[$visitPluginSiteLinkIndex] = $viewDetailsLink;
90
- break;
91
- case 'append':
92
- default:
93
- $pluginMeta[] = $viewDetailsLink;
94
- break;
95
- }
96
- }
97
- }
98
- return $pluginMeta;
99
- }
100
-
101
- /**
102
- * Add a "Check for updates" link to the plugin row in the "Plugins" page. By default,
103
- * the new link will appear after the "Visit plugin site" link if present, otherwise
104
- * after the "View plugin details" link.
105
- *
106
- * You can change the link text by using the "puc_manual_check_link-$slug" filter.
107
- * Returning an empty string from the filter will disable the link.
108
- *
109
- * @param array $pluginMeta Array of meta links.
110
- * @param string $pluginFile
111
- * @return array
112
- */
113
- public function addCheckForUpdatesLink($pluginMeta, $pluginFile) {
114
- if ( $this->isMyPluginFile($pluginFile) ) {
115
- $linkUrl = wp_nonce_url(
116
- add_query_arg(
117
- array(
118
- 'puc_check_for_updates' => 1,
119
- 'puc_slug' => $this->updateChecker->slug,
120
- ),
121
- self_admin_url('plugins.php')
122
- ),
123
- 'puc_check_for_updates'
124
- );
125
-
126
- $linkText = apply_filters(
127
- $this->updateChecker->getUniqueName('manual_check_link'),
128
- __('Check for updates', 'plugin-update-checker')
129
- );
130
- if ( !empty($linkText) ) {
131
- /** @noinspection HtmlUnknownTarget */
132
- $pluginMeta[] = sprintf('<a href="%s">%s</a>', esc_attr($linkUrl), $linkText);
133
- }
134
- }
135
- return $pluginMeta;
136
- }
137
-
138
- protected function isMyPluginFile($pluginFile) {
139
- return ($pluginFile == $this->updateChecker->pluginFile)
140
- || (!empty($this->updateChecker->muPluginFile) && ($pluginFile == $this->updateChecker->muPluginFile));
141
- }
142
-
143
- /**
144
- * Check for updates when the user clicks the "Check for updates" link.
145
- *
146
- * @see self::addCheckForUpdatesLink()
147
- *
148
- * @return void
149
- */
150
- public function handleManualCheck() {
151
- $shouldCheck =
152
- isset($_GET['puc_check_for_updates'], $_GET['puc_slug'])
153
- && $_GET['puc_slug'] == $this->updateChecker->slug
154
- && check_admin_referer('puc_check_for_updates');
155
-
156
- if ( $shouldCheck ) {
157
- $update = $this->updateChecker->checkForUpdates();
158
- $status = ($update === null) ? 'no_update' : 'update_available';
159
- $lastRequestApiErrors = $this->updateChecker->getLastRequestApiErrors();
160
-
161
- if ( ($update === null) && !empty($lastRequestApiErrors) ) {
162
- //Some errors are not critical. For example, if PUC tries to retrieve the readme.txt
163
- //file from GitHub and gets a 404, that's an API error, but it doesn't prevent updates
164
- //from working. Maybe the plugin simply doesn't have a readme.
165
- //Let's only show important errors.
166
- $foundCriticalErrors = false;
167
- $questionableErrorCodes = array(
168
- 'puc-github-http-error',
169
- 'puc-gitlab-http-error',
170
- 'puc-bitbucket-http-error',
171
- );
172
-
173
- foreach ($lastRequestApiErrors as $item) {
174
- $wpError = $item['error'];
175
- /** @var WP_Error $wpError */
176
- if ( !in_array($wpError->get_error_code(), $questionableErrorCodes) ) {
177
- $foundCriticalErrors = true;
178
- break;
179
- }
180
- }
181
-
182
- if ( $foundCriticalErrors ) {
183
- $status = 'error';
184
- set_site_transient($this->manualCheckErrorTransient, $lastRequestApiErrors, 60);
185
- }
186
- }
187
-
188
- wp_redirect(add_query_arg(
189
- array(
190
- 'puc_update_check_result' => $status,
191
- 'puc_slug' => $this->updateChecker->slug,
192
- ),
193
- self_admin_url('plugins.php')
194
- ));
195
- exit;
196
- }
197
- }
198
-
199
- /**
200
- * Display the results of a manual update check.
201
- *
202
- * @see self::handleManualCheck()
203
- *
204
- * You can change the result message by using the "puc_manual_check_message-$slug" filter.
205
- */
206
- public function displayManualCheckResult() {
207
- if ( isset($_GET['puc_update_check_result'], $_GET['puc_slug']) && ($_GET['puc_slug'] == $this->updateChecker->slug) ) {
208
- $status = strval($_GET['puc_update_check_result']);
209
- $title = $this->updateChecker->getInstalledPackage()->getPluginTitle();
210
- $noticeClass = 'updated notice-success';
211
- $details = '';
212
-
213
- if ( $status == 'no_update' ) {
214
- $message = sprintf(_x('The %s plugin is up to date.', 'the plugin title', 'plugin-update-checker'), $title);
215
- } else if ( $status == 'update_available' ) {
216
- $message = sprintf(_x('A new version of the %s plugin is available.', 'the plugin title', 'plugin-update-checker'), $title);
217
- } else if ( $status === 'error' ) {
218
- $message = sprintf(_x('Could not determine if updates are available for %s.', 'the plugin title', 'plugin-update-checker'), $title);
219
- $noticeClass = 'error notice-error';
220
-
221
- $details = $this->formatManualCheckErrors(get_site_transient($this->manualCheckErrorTransient));
222
- delete_site_transient($this->manualCheckErrorTransient);
223
- } else {
224
- $message = sprintf(__('Unknown update checker status "%s"', 'plugin-update-checker'), htmlentities($status));
225
- $noticeClass = 'error notice-error';
226
- }
227
- printf(
228
- '<div class="notice %s is-dismissible"><p>%s</p>%s</div>',
229
- $noticeClass,
230
- apply_filters($this->updateChecker->getUniqueName('manual_check_message'), $message, $status),
231
- $details
232
- );
233
- }
234
- }
235
-
236
- /**
237
- * Format the list of errors that were thrown during an update check.
238
- *
239
- * @param array $errors
240
- * @return string
241
- */
242
- protected function formatManualCheckErrors($errors) {
243
- if ( empty($errors) ) {
244
- return '';
245
- }
246
- $output = '';
247
-
248
- $showAsList = count($errors) > 1;
249
- if ( $showAsList ) {
250
- $output .= '<ol>';
251
- $formatString = '<li>%1$s <code>%2$s</code></li>';
252
- } else {
253
- $formatString = '<p>%1$s <code>%2$s</code></p>';
254
- }
255
- foreach ($errors as $item) {
256
- $wpError = $item['error'];
257
- /** @var WP_Error $wpError */
258
- $output .= sprintf(
259
- $formatString,
260
- $wpError->get_error_message(),
261
- $wpError->get_error_code()
262
- );
263
- }
264
- if ( $showAsList ) {
265
- $output .= '</ol>';
266
- }
267
-
268
- return $output;
269
- }
270
-
271
- public function removeHooks() {
272
- remove_action('admin_init', array($this, 'onAdminInit'));
273
- remove_filter('plugin_row_meta', array($this, 'addViewDetailsLink'), 10);
274
- remove_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10);
275
- remove_action('all_admin_notices', array($this, 'displayManualCheckResult'));
276
- }
277
- }
278
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Plugin/Update.php DELETED
@@ -1,112 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Plugin_Update', false) ):
3
-
4
- /**
5
- * A simple container class for holding information about an available update.
6
- *
7
- * @author Janis Elsts
8
- * @copyright 2016
9
- * @access public
10
- */
11
- class Puc_v4p11_Plugin_Update extends Puc_v4p11_Update {
12
- public $id = 0;
13
- public $homepage;
14
- public $upgrade_notice;
15
- public $tested;
16
- public $requires_php = false;
17
- public $icons = array();
18
- public $filename; //Plugin filename relative to the plugins directory.
19
-
20
- protected static $extraFields = array(
21
- 'id', 'homepage', 'tested', 'requires_php', 'upgrade_notice', 'icons', 'filename',
22
- );
23
-
24
- /**
25
- * Create a new instance of PluginUpdate from its JSON-encoded representation.
26
- *
27
- * @param string $json
28
- * @return Puc_v4p11_Plugin_Update|null
29
- */
30
- public static function fromJson($json){
31
- //Since update-related information is simply a subset of the full plugin info,
32
- //we can parse the update JSON as if it was a plugin info string, then copy over
33
- //the parts that we care about.
34
- $pluginInfo = Puc_v4p11_Plugin_Info::fromJson($json);
35
- if ( $pluginInfo !== null ) {
36
- return self::fromPluginInfo($pluginInfo);
37
- } else {
38
- return null;
39
- }
40
- }
41
-
42
- /**
43
- * Create a new instance of PluginUpdate based on an instance of PluginInfo.
44
- * Basically, this just copies a subset of fields from one object to another.
45
- *
46
- * @param Puc_v4p11_Plugin_Info $info
47
- * @return Puc_v4p11_Plugin_Update
48
- */
49
- public static function fromPluginInfo($info){
50
- return self::fromObject($info);
51
- }
52
-
53
- /**
54
- * Create a new instance by copying the necessary fields from another object.
55
- *
56
- * @param StdClass|Puc_v4p11_Plugin_Info|Puc_v4p11_Plugin_Update $object The source object.
57
- * @return Puc_v4p11_Plugin_Update The new copy.
58
- */
59
- public static function fromObject($object) {
60
- $update = new self();
61
- $update->copyFields($object, $update);
62
- return $update;
63
- }
64
-
65
- /**
66
- * @return string[]
67
- */
68
- protected function getFieldNames() {
69
- return array_merge(parent::getFieldNames(), self::$extraFields);
70
- }
71
-
72
- /**
73
- * Transform the update into the format used by WordPress native plugin API.
74
- *
75
- * @return object
76
- */
77
- public function toWpFormat() {
78
- $update = parent::toWpFormat();
79
-
80
- $update->id = $this->id;
81
- $update->url = $this->homepage;
82
- $update->tested = $this->tested;
83
- $update->requires_php = $this->requires_php;
84
- $update->plugin = $this->filename;
85
-
86
- if ( !empty($this->upgrade_notice) ) {
87
- $update->upgrade_notice = $this->upgrade_notice;
88
- }
89
-
90
- if ( !empty($this->icons) && is_array($this->icons) ) {
91
- //This should be an array with up to 4 keys: 'svg', '1x', '2x' and 'default'.
92
- //Docs: https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-icons
93
- $icons = array_intersect_key(
94
- $this->icons,
95
- array('svg' => true, '1x' => true, '2x' => true, 'default' => true)
96
- );
97
- if ( !empty($icons) ) {
98
- $update->icons = $icons;
99
-
100
- //It appears that the 'default' icon isn't used anywhere in WordPress 4.9,
101
- //but lets set it just in case a future release needs it.
102
- if ( !isset($update->icons['default']) ) {
103
- $update->icons['default'] = current($update->icons);
104
- }
105
- }
106
- }
107
-
108
- return $update;
109
- }
110
- }
111
-
112
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Plugin/UpdateChecker.php DELETED
@@ -1,414 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Plugin_UpdateChecker', false) ):
3
-
4
- /**
5
- * A custom plugin update checker.
6
- *
7
- * @author Janis Elsts
8
- * @copyright 2018
9
- * @access public
10
- */
11
- class Puc_v4p11_Plugin_UpdateChecker extends Puc_v4p11_UpdateChecker {
12
- protected $updateTransient = 'update_plugins';
13
- protected $translationType = 'plugin';
14
-
15
- public $pluginAbsolutePath = ''; //Full path of the main plugin file.
16
- public $pluginFile = ''; //Plugin filename relative to the plugins directory. Many WP APIs use this to identify plugins.
17
- public $muPluginFile = ''; //For MU plugins, the plugin filename relative to the mu-plugins directory.
18
-
19
- /**
20
- * @var Puc_v4p11_Plugin_Package
21
- */
22
- protected $package;
23
-
24
- private $extraUi = null;
25
-
26
- /**
27
- * Class constructor.
28
- *
29
- * @param string $metadataUrl The URL of the plugin's metadata file.
30
- * @param string $pluginFile Fully qualified path to the main plugin file.
31
- * @param string $slug The plugin's 'slug'. If not specified, the filename part of $pluginFile sans '.php' will be used as the slug.
32
- * @param integer $checkPeriod How often to check for updates (in hours). Defaults to checking every 12 hours. Set to 0 to disable automatic update checks.
33
- * @param string $optionName Where to store book-keeping info about update checks. Defaults to 'external_updates-$slug'.
34
- * @param string $muPluginFile Optional. The plugin filename relative to the mu-plugins directory.
35
- */
36
- public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = ''){
37
- $this->pluginAbsolutePath = $pluginFile;
38
- $this->pluginFile = plugin_basename($this->pluginAbsolutePath);
39
- $this->muPluginFile = $muPluginFile;
40
-
41
- //If no slug is specified, use the name of the main plugin file as the slug.
42
- //For example, 'my-cool-plugin/cool-plugin.php' becomes 'cool-plugin'.
43
- if ( empty($slug) ){
44
- $slug = basename($this->pluginFile, '.php');
45
- }
46
-
47
- //Plugin slugs must be unique.
48
- $slugCheckFilter = 'puc_is_slug_in_use-' . $slug;
49
- $slugUsedBy = apply_filters($slugCheckFilter, false);
50
- if ( $slugUsedBy ) {
51
- $this->triggerError(sprintf(
52
- 'Plugin slug "%s" is already in use by %s. Slugs must be unique.',
53
- htmlentities($slug),
54
- htmlentities($slugUsedBy)
55
- ), E_USER_ERROR);
56
- }
57
- add_filter($slugCheckFilter, array($this, 'getAbsolutePath'));
58
-
59
- parent::__construct($metadataUrl, dirname($this->pluginFile), $slug, $checkPeriod, $optionName);
60
-
61
- //Backwards compatibility: If the plugin is a mu-plugin but no $muPluginFile is specified, assume
62
- //it's the same as $pluginFile given that it's not in a subdirectory (WP only looks in the base dir).
63
- if ( (strpbrk($this->pluginFile, '/\\') === false) && $this->isUnknownMuPlugin() ) {
64
- $this->muPluginFile = $this->pluginFile;
65
- }
66
-
67
- //To prevent a crash during plugin uninstallation, remove updater hooks when the user removes the plugin.
68
- //Details: https://github.com/YahnisElsts/plugin-update-checker/issues/138#issuecomment-335590964
69
- add_action('uninstall_' . $this->pluginFile, array($this, 'removeHooks'));
70
-
71
- $this->extraUi = new Puc_v4p11_Plugin_Ui($this);
72
- }
73
-
74
- /**
75
- * Create an instance of the scheduler.
76
- *
77
- * @param int $checkPeriod
78
- * @return Puc_v4p11_Scheduler
79
- */
80
- protected function createScheduler($checkPeriod) {
81
- $scheduler = new Puc_v4p11_Scheduler($this, $checkPeriod, array('load-plugins.php'));
82
- register_deactivation_hook($this->pluginFile, array($scheduler, 'removeUpdaterCron'));
83
- return $scheduler;
84
- }
85
-
86
- /**
87
- * Install the hooks required to run periodic update checks and inject update info
88
- * into WP data structures.
89
- *
90
- * @return void
91
- */
92
- protected function installHooks(){
93
- //Override requests for plugin information
94
- add_filter('plugins_api', array($this, 'injectInfo'), 20, 3);
95
-
96
- parent::installHooks();
97
- }
98
-
99
- /**
100
- * Remove update checker hooks.
101
- *
102
- * The intent is to prevent a fatal error that can happen if the plugin has an uninstall
103
- * hook. During uninstallation, WP includes the main plugin file (which creates a PUC instance),
104
- * the uninstall hook runs, WP deletes the plugin files and then updates some transients.
105
- * If PUC hooks are still around at this time, they could throw an error while trying to
106
- * autoload classes from files that no longer exist.
107
- *
108
- * The "site_transient_{$transient}" filter is the main problem here, but let's also remove
109
- * most other PUC hooks to be safe.
110
- *
111
- * @internal
112
- */
113
- public function removeHooks() {
114
- parent::removeHooks();
115
- $this->extraUi->removeHooks();
116
- $this->package->removeHooks();
117
-
118
- remove_filter('plugins_api', array($this, 'injectInfo'), 20);
119
- }
120
-
121
- /**
122
- * Retrieve plugin info from the configured API endpoint.
123
- *
124
- * @uses wp_remote_get()
125
- *
126
- * @param array $queryArgs Additional query arguments to append to the request. Optional.
127
- * @return Puc_v4p11_Plugin_Info
128
- */
129
- public function requestInfo($queryArgs = array()) {
130
- list($pluginInfo, $result) = $this->requestMetadata('Puc_v4p11_Plugin_Info', 'request_info', $queryArgs);
131
-
132
- if ( $pluginInfo !== null ) {
133
- /** @var Puc_v4p11_Plugin_Info $pluginInfo */
134
- $pluginInfo->filename = $this->pluginFile;
135
- $pluginInfo->slug = $this->slug;
136
- }
137
-
138
- $pluginInfo = apply_filters($this->getUniqueName('request_info_result'), $pluginInfo, $result);
139
- return $pluginInfo;
140
- }
141
-
142
- /**
143
- * Retrieve the latest update (if any) from the configured API endpoint.
144
- *
145
- * @uses PluginUpdateChecker::requestInfo()
146
- *
147
- * @return Puc_v4p11_Update|null An instance of Plugin_Update, or NULL when no updates are available.
148
- */
149
- public function requestUpdate() {
150
- //For the sake of simplicity, this function just calls requestInfo()
151
- //and transforms the result accordingly.
152
- $pluginInfo = $this->requestInfo(array('checking_for_updates' => '1'));
153
- if ( $pluginInfo === null ){
154
- return null;
155
- }
156
- $update = Puc_v4p11_Plugin_Update::fromPluginInfo($pluginInfo);
157
-
158
- $update = $this->filterUpdateResult($update);
159
-
160
- return $update;
161
- }
162
-
163
- /**
164
- * Intercept plugins_api() calls that request information about our plugin and
165
- * use the configured API endpoint to satisfy them.
166
- *
167
- * @see plugins_api()
168
- *
169
- * @param mixed $result
170
- * @param string $action
171
- * @param array|object $args
172
- * @return mixed
173
- */
174
- public function injectInfo($result, $action = null, $args = null){
175
- $relevant = ($action == 'plugin_information') && isset($args->slug) && (
176
- ($args->slug == $this->slug) || ($args->slug == dirname($this->pluginFile))
177
- );
178
- if ( !$relevant ) {
179
- return $result;
180
- }
181
-
182
- $pluginInfo = $this->requestInfo();
183
- $this->fixSupportedWordpressVersion($pluginInfo);
184
-
185
- $pluginInfo = apply_filters($this->getUniqueName('pre_inject_info'), $pluginInfo);
186
- if ( $pluginInfo ) {
187
- return $pluginInfo->toWpFormat();
188
- }
189
-
190
- return $result;
191
- }
192
-
193
- protected function shouldShowUpdates() {
194
- //No update notifications for mu-plugins unless explicitly enabled. The MU plugin file
195
- //is usually different from the main plugin file so the update wouldn't show up properly anyway.
196
- return !$this->isUnknownMuPlugin();
197
- }
198
-
199
- /**
200
- * @param stdClass|null $updates
201
- * @param stdClass $updateToAdd
202
- * @return stdClass
203
- */
204
- protected function addUpdateToList($updates, $updateToAdd) {
205
- if ( $this->package->isMuPlugin() ) {
206
- //WP does not support automatic update installation for mu-plugins, but we can
207
- //still display a notice.
208
- $updateToAdd->package = null;
209
- }
210
- return parent::addUpdateToList($updates, $updateToAdd);
211
- }
212
-
213
- /**
214
- * @param stdClass|null $updates
215
- * @return stdClass|null
216
- */
217
- protected function removeUpdateFromList($updates) {
218
- $updates = parent::removeUpdateFromList($updates);
219
- if ( !empty($this->muPluginFile) && isset($updates, $updates->response) ) {
220
- unset($updates->response[$this->muPluginFile]);
221
- }
222
- return $updates;
223
- }
224
-
225
- /**
226
- * For plugins, the update array is indexed by the plugin filename relative to the "plugins"
227
- * directory. Example: "plugin-name/plugin.php".
228
- *
229
- * @return string
230
- */
231
- protected function getUpdateListKey() {
232
- if ( $this->package->isMuPlugin() ) {
233
- return $this->muPluginFile;
234
- }
235
- return $this->pluginFile;
236
- }
237
-
238
- protected function getNoUpdateItemFields() {
239
- return array_merge(
240
- parent::getNoUpdateItemFields(),
241
- array(
242
- 'id' => $this->pluginFile,
243
- 'slug' => $this->slug,
244
- 'plugin' => $this->pluginFile,
245
- 'icons' => array(),
246
- 'banners' => array(),
247
- 'banners_rtl' => array(),
248
- 'tested' => '',
249
- 'compatibility' => new stdClass(),
250
- )
251
- );
252
- }
253
-
254
- /**
255
- * Alias for isBeingUpgraded().
256
- *
257
- * @deprecated
258
- * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
259
- * @return bool
260
- */
261
- public function isPluginBeingUpgraded($upgrader = null) {
262
- return $this->isBeingUpgraded($upgrader);
263
- }
264
-
265
- /**
266
- * Is there an update being installed for this plugin, right now?
267
- *
268
- * @param WP_Upgrader|null $upgrader
269
- * @return bool
270
- */
271
- public function isBeingUpgraded($upgrader = null) {
272
- return $this->upgraderStatus->isPluginBeingUpgraded($this->pluginFile, $upgrader);
273
- }
274
-
275
- /**
276
- * Get the details of the currently available update, if any.
277
- *
278
- * If no updates are available, or if the last known update version is below or equal
279
- * to the currently installed version, this method will return NULL.
280
- *
281
- * Uses cached update data. To retrieve update information straight from
282
- * the metadata URL, call requestUpdate() instead.
283
- *
284
- * @return Puc_v4p11_Plugin_Update|null
285
- */
286
- public function getUpdate() {
287
- $update = parent::getUpdate();
288
- if ( isset($update) ) {
289
- /** @var Puc_v4p11_Plugin_Update $update */
290
- $update->filename = $this->pluginFile;
291
- }
292
- return $update;
293
- }
294
-
295
- /**
296
- * Get the translated plugin title.
297
- *
298
- * @deprecated
299
- * @return string
300
- */
301
- public function getPluginTitle() {
302
- return $this->package->getPluginTitle();
303
- }
304
-
305
- /**
306
- * Check if the current user has the required permissions to install updates.
307
- *
308
- * @return bool
309
- */
310
- public function userCanInstallUpdates() {
311
- return current_user_can('update_plugins');
312
- }
313
-
314
- /**
315
- * Check if the plugin file is inside the mu-plugins directory.
316
- *
317
- * @deprecated
318
- * @return bool
319
- */
320
- protected function isMuPlugin() {
321
- return $this->package->isMuPlugin();
322
- }
323
-
324
- /**
325
- * MU plugins are partially supported, but only when we know which file in mu-plugins
326
- * corresponds to this plugin.
327
- *
328
- * @return bool
329
- */
330
- protected function isUnknownMuPlugin() {
331
- return empty($this->muPluginFile) && $this->package->isMuPlugin();
332
- }
333
-
334
- /**
335
- * Get absolute path to the main plugin file.
336
- *
337
- * @return string
338
- */
339
- public function getAbsolutePath() {
340
- return $this->pluginAbsolutePath;
341
- }
342
-
343
- /**
344
- * Register a callback for filtering query arguments.
345
- *
346
- * The callback function should take one argument - an associative array of query arguments.
347
- * It should return a modified array of query arguments.
348
- *
349
- * @uses add_filter() This method is a convenience wrapper for add_filter().
350
- *
351
- * @param callable $callback
352
- * @return void
353
- */
354
- public function addQueryArgFilter($callback){
355
- $this->addFilter('request_info_query_args', $callback);
356
- }
357
-
358
- /**
359
- * Register a callback for filtering arguments passed to wp_remote_get().
360
- *
361
- * The callback function should take one argument - an associative array of arguments -
362
- * and return a modified array or arguments. See the WP documentation on wp_remote_get()
363
- * for details on what arguments are available and how they work.
364
- *
365
- * @uses add_filter() This method is a convenience wrapper for add_filter().
366
- *
367
- * @param callable $callback
368
- * @return void
369
- */
370
- public function addHttpRequestArgFilter($callback) {
371
- $this->addFilter('request_info_options', $callback);
372
- }
373
-
374
- /**
375
- * Register a callback for filtering the plugin info retrieved from the external API.
376
- *
377
- * The callback function should take two arguments. If the plugin info was retrieved
378
- * successfully, the first argument passed will be an instance of PluginInfo. Otherwise,
379
- * it will be NULL. The second argument will be the corresponding return value of
380
- * wp_remote_get (see WP docs for details).
381
- *
382
- * The callback function should return a new or modified instance of PluginInfo or NULL.
383
- *
384
- * @uses add_filter() This method is a convenience wrapper for add_filter().
385
- *
386
- * @param callable $callback
387
- * @return void
388
- */
389
- public function addResultFilter($callback) {
390
- $this->addFilter('request_info_result', $callback, 10, 2);
391
- }
392
-
393
- protected function createDebugBarExtension() {
394
- return new Puc_v4p11_DebugBar_PluginExtension($this);
395
- }
396
-
397
- /**
398
- * Create a package instance that represents this plugin or theme.
399
- *
400
- * @return Puc_v4p11_InstalledPackage
401
- */
402
- protected function createInstalledPackage() {
403
- return new Puc_v4p11_Plugin_Package($this->pluginAbsolutePath, $this);
404
- }
405
-
406
- /**
407
- * @return Puc_v4p11_Plugin_Package
408
- */
409
- public function getInstalledPackage() {
410
- return $this->package;
411
- }
412
- }
413
-
414
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Scheduler.php DELETED
@@ -1,266 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Scheduler', false) ):
3
-
4
- /**
5
- * The scheduler decides when and how often to check for updates.
6
- * It calls @see Puc_v4p11_UpdateChecker::checkForUpdates() to perform the actual checks.
7
- */
8
- class Puc_v4p11_Scheduler {
9
- public $checkPeriod = 12; //How often to check for updates (in hours).
10
- public $throttleRedundantChecks = false; //Check less often if we already know that an update is available.
11
- public $throttledCheckPeriod = 72;
12
-
13
- protected $hourlyCheckHooks = array('load-update.php');
14
-
15
- /**
16
- * @var Puc_v4p11_UpdateChecker
17
- */
18
- protected $updateChecker;
19
-
20
- private $cronHook = null;
21
-
22
- /**
23
- * Scheduler constructor.
24
- *
25
- * @param Puc_v4p11_UpdateChecker $updateChecker
26
- * @param int $checkPeriod How often to check for updates (in hours).
27
- * @param array $hourlyHooks
28
- */
29
- public function __construct($updateChecker, $checkPeriod, $hourlyHooks = array('load-plugins.php')) {
30
- $this->updateChecker = $updateChecker;
31
- $this->checkPeriod = $checkPeriod;
32
-
33
- //Set up the periodic update checks
34
- $this->cronHook = $this->updateChecker->getUniqueName('cron_check_updates');
35
- if ( $this->checkPeriod > 0 ){
36
-
37
- //Trigger the check via Cron.
38
- //Try to use one of the default schedules if possible as it's less likely to conflict
39
- //with other plugins and their custom schedules.
40
- $defaultSchedules = array(
41
- 1 => 'hourly',
42
- 12 => 'twicedaily',
43
- 24 => 'daily',
44
- );
45
- if ( array_key_exists($this->checkPeriod, $defaultSchedules) ) {
46
- $scheduleName = $defaultSchedules[$this->checkPeriod];
47
- } else {
48
- //Use a custom cron schedule.
49
- $scheduleName = 'every' . $this->checkPeriod . 'hours';
50
- add_filter('cron_schedules', array($this, '_addCustomSchedule'));
51
- }
52
-
53
- if ( !wp_next_scheduled($this->cronHook) && !defined('WP_INSTALLING') ) {
54
- //Randomly offset the schedule to help prevent update server traffic spikes. Without this
55
- //most checks may happen during times of day when people are most likely to install new plugins.
56
- $firstCheckTime = time() - rand(0, max($this->checkPeriod * 3600 - 15 * 60, 1));
57
- $firstCheckTime = apply_filters(
58
- $this->updateChecker->getUniqueName('first_check_time'),
59
- $firstCheckTime
60
- );
61
- wp_schedule_event($firstCheckTime, $scheduleName, $this->cronHook);
62
- }
63
- add_action($this->cronHook, array($this, 'maybeCheckForUpdates'));
64
-
65
- //In case Cron is disabled or unreliable, we also manually trigger
66
- //the periodic checks while the user is browsing the Dashboard.
67
- add_action( 'admin_init', array($this, 'maybeCheckForUpdates') );
68
-
69
- //Like WordPress itself, we check more often on certain pages.
70
- /** @see wp_update_plugins */
71
- add_action('load-update-core.php', array($this, 'maybeCheckForUpdates'));
72
- //"load-update.php" and "load-plugins.php" or "load-themes.php".
73
- $this->hourlyCheckHooks = array_merge($this->hourlyCheckHooks, $hourlyHooks);
74
- foreach($this->hourlyCheckHooks as $hook) {
75
- add_action($hook, array($this, 'maybeCheckForUpdates'));
76
- }
77
- //This hook fires after a bulk update is complete.
78
- add_action('upgrader_process_complete', array($this, 'upgraderProcessComplete'), 11, 2);
79
-
80
- } else {
81
- //Periodic checks are disabled.
82
- wp_clear_scheduled_hook($this->cronHook);
83
- }
84
- }
85
-
86
- /**
87
- * Runs upon the WP action upgrader_process_complete.
88
- *
89
- * We look at the parameters to decide whether to call maybeCheckForUpdates() or not.
90
- * We also check if the update checker has been removed by the update.
91
- *
92
- * @param WP_Upgrader $upgrader WP_Upgrader instance
93
- * @param array $upgradeInfo extra information about the upgrade
94
- */
95
- public function upgraderProcessComplete(
96
- /** @noinspection PhpUnusedParameterInspection */
97
- $upgrader, $upgradeInfo
98
- ) {
99
- //Cancel all further actions if the current version of PUC has been deleted or overwritten
100
- //by a different version during the upgrade. If we try to do anything more in that situation,
101
- //we could trigger a fatal error by trying to autoload a deleted class.
102
- clearstatcache();
103
- if ( !file_exists(__FILE__) ) {
104
- $this->removeHooks();
105
- $this->updateChecker->removeHooks();
106
- return;
107
- }
108
-
109
- //Sanity check and limitation to relevant types.
110
- if (
111
- !is_array($upgradeInfo) || !isset($upgradeInfo['type'], $upgradeInfo['action'])
112
- || 'update' !== $upgradeInfo['action'] || !in_array($upgradeInfo['type'], array('plugin', 'theme'))
113
- ) {
114
- return;
115
- }
116
-
117
- //Filter out notifications of upgrades that should have no bearing upon whether or not our
118
- //current info is up-to-date.
119
- if ( is_a($this->updateChecker, 'Puc_v4p11_Theme_UpdateChecker') ) {
120
- if ( 'theme' !== $upgradeInfo['type'] || !isset($upgradeInfo['themes']) ) {
121
- return;
122
- }
123
-
124
- //Letting too many things going through for checks is not a real problem, so we compare widely.
125
- if ( !in_array(
126
- strtolower($this->updateChecker->directoryName),
127
- array_map('strtolower', $upgradeInfo['themes'])
128
- ) ) {
129
- return;
130
- }
131
- }
132
-
133
- if ( is_a($this->updateChecker, 'Puc_v4p11_Plugin_UpdateChecker') ) {
134
- if ( 'plugin' !== $upgradeInfo['type'] || !isset($upgradeInfo['plugins']) ) {
135
- return;
136
- }
137
-
138
- //Themes pass in directory names in the information array, but plugins use the relative plugin path.
139
- if ( !in_array(
140
- strtolower($this->updateChecker->directoryName),
141
- array_map('dirname', array_map('strtolower', $upgradeInfo['plugins']))
142
- ) ) {
143
- return;
144
- }
145
- }
146
-
147
- $this->maybeCheckForUpdates();
148
- }
149
-
150
- /**
151
- * Check for updates if the configured check interval has already elapsed.
152
- * Will use a shorter check interval on certain admin pages like "Dashboard -> Updates" or when doing cron.
153
- *
154
- * You can override the default behaviour by using the "puc_check_now-$slug" filter.
155
- * The filter callback will be passed three parameters:
156
- * - Current decision. TRUE = check updates now, FALSE = don't check now.
157
- * - Last check time as a Unix timestamp.
158
- * - Configured check period in hours.
159
- * Return TRUE to check for updates immediately, or FALSE to cancel.
160
- *
161
- * This method is declared public because it's a hook callback. Calling it directly is not recommended.
162
- */
163
- public function maybeCheckForUpdates() {
164
- if ( empty($this->checkPeriod) ){
165
- return;
166
- }
167
-
168
- $state = $this->updateChecker->getUpdateState();
169
- $shouldCheck = ($state->timeSinceLastCheck() >= $this->getEffectiveCheckPeriod());
170
-
171
- //Let plugin authors substitute their own algorithm.
172
- $shouldCheck = apply_filters(
173
- $this->updateChecker->getUniqueName('check_now'),
174
- $shouldCheck,
175
- $state->getLastCheck(),
176
- $this->checkPeriod
177
- );
178
-
179
- if ( $shouldCheck ) {
180
- $this->updateChecker->checkForUpdates();
181
- }
182
- }
183
-
184
- /**
185
- * Calculate the actual check period based on the current status and environment.
186
- *
187
- * @return int Check period in seconds.
188
- */
189
- protected function getEffectiveCheckPeriod() {
190
- $currentFilter = current_filter();
191
- if ( in_array($currentFilter, array('load-update-core.php', 'upgrader_process_complete')) ) {
192
- //Check more often when the user visits "Dashboard -> Updates" or does a bulk update.
193
- $period = 60;
194
- } else if ( in_array($currentFilter, $this->hourlyCheckHooks) ) {
195
- //Also check more often on /wp-admin/update.php and the "Plugins" or "Themes" page.
196
- $period = 3600;
197
- } else if ( $this->throttleRedundantChecks && ($this->updateChecker->getUpdate() !== null) ) {
198
- //Check less frequently if it's already known that an update is available.
199
- $period = $this->throttledCheckPeriod * 3600;
200
- } else if ( defined('DOING_CRON') && constant('DOING_CRON') ) {
201
- //WordPress cron schedules are not exact, so lets do an update check even
202
- //if slightly less than $checkPeriod hours have elapsed since the last check.
203
- $cronFuzziness = 20 * 60;
204
- $period = $this->checkPeriod * 3600 - $cronFuzziness;
205
- } else {
206
- $period = $this->checkPeriod * 3600;
207
- }
208
-
209
- return $period;
210
- }
211
-
212
- /**
213
- * Add our custom schedule to the array of Cron schedules used by WP.
214
- *
215
- * @param array $schedules
216
- * @return array
217
- */
218
- public function _addCustomSchedule($schedules) {
219
- if ( $this->checkPeriod && ($this->checkPeriod > 0) ){
220
- $scheduleName = 'every' . $this->checkPeriod . 'hours';
221
- $schedules[$scheduleName] = array(
222
- 'interval' => $this->checkPeriod * 3600,
223
- 'display' => sprintf('Every %d hours', $this->checkPeriod),
224
- );
225
- }
226
- return $schedules;
227
- }
228
-
229
- /**
230
- * Remove the scheduled cron event that the library uses to check for updates.
231
- *
232
- * @return void
233
- */
234
- public function removeUpdaterCron() {
235
- wp_clear_scheduled_hook($this->cronHook);
236
- }
237
-
238
- /**
239
- * Get the name of the update checker's WP-cron hook. Mostly useful for debugging.
240
- *
241
- * @return string
242
- */
243
- public function getCronHookName() {
244
- return $this->cronHook;
245
- }
246
-
247
- /**
248
- * Remove most hooks added by the scheduler.
249
- */
250
- public function removeHooks() {
251
- remove_filter('cron_schedules', array($this, '_addCustomSchedule'));
252
- remove_action('admin_init', array($this, 'maybeCheckForUpdates'));
253
- remove_action('load-update-core.php', array($this, 'maybeCheckForUpdates'));
254
-
255
- if ( $this->cronHook !== null ) {
256
- remove_action($this->cronHook, array($this, 'maybeCheckForUpdates'));
257
- }
258
- if ( !empty($this->hourlyCheckHooks) ) {
259
- foreach ($this->hourlyCheckHooks as $hook) {
260
- remove_action($hook, array($this, 'maybeCheckForUpdates'));
261
- }
262
- }
263
- }
264
- }
265
-
266
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/StateStore.php DELETED
@@ -1,207 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_StateStore', false) ):
4
-
5
- class Puc_v4p11_StateStore {
6
- /**
7
- * @var int Last update check timestamp.
8
- */
9
- protected $lastCheck = 0;
10
-
11
- /**
12
- * @var string Version number.
13
- */
14
- protected $checkedVersion = '';
15
-
16
- /**
17
- * @var Puc_v4p11_Update|null Cached update.
18
- */
19
- protected $update = null;
20
-
21
- /**
22
- * @var string Site option name.
23
- */
24
- private $optionName = '';
25
-
26
- /**
27
- * @var bool Whether we've already tried to load the state from the database.
28
- */
29
- private $isLoaded = false;
30
-
31
- public function __construct($optionName) {
32
- $this->optionName = $optionName;
33
- }
34
-
35
- /**
36
- * Get time elapsed since the last update check.
37
- *
38
- * If there are no recorded update checks, this method returns a large arbitrary number
39
- * (i.e. time since the Unix epoch).
40
- *
41
- * @return int Elapsed time in seconds.
42
- */
43
- public function timeSinceLastCheck() {
44
- $this->lazyLoad();
45
- return time() - $this->lastCheck;
46
- }
47
-
48
- /**
49
- * @return int
50
- */
51
- public function getLastCheck() {
52
- $this->lazyLoad();
53
- return $this->lastCheck;
54
- }
55
-
56
- /**
57
- * Set the time of the last update check to the current timestamp.
58
- *
59
- * @return $this
60
- */
61
- public function setLastCheckToNow() {
62
- $this->lazyLoad();
63
- $this->lastCheck = time();
64
- return $this;
65
- }
66
-
67
- /**
68
- * @return null|Puc_v4p11_Update
69
- */
70
- public function getUpdate() {
71
- $this->lazyLoad();
72
- return $this->update;
73
- }
74
-
75
- /**
76
- * @param Puc_v4p11_Update|null $update
77
- * @return $this
78
- */
79
- public function setUpdate(Puc_v4p11_Update $update = null) {
80
- $this->lazyLoad();
81
- $this->update = $update;
82
- return $this;
83
- }
84
-
85
- /**
86
- * @return string
87
- */
88
- public function getCheckedVersion() {
89
- $this->lazyLoad();
90
- return $this->checkedVersion;
91
- }
92
-
93
- /**
94
- * @param string $version
95
- * @return $this
96
- */
97
- public function setCheckedVersion($version) {
98
- $this->lazyLoad();
99
- $this->checkedVersion = strval($version);
100
- return $this;
101
- }
102
-
103
- /**
104
- * Get translation updates.
105
- *
106
- * @return array
107
- */
108
- public function getTranslations() {
109
- $this->lazyLoad();
110
- if ( isset($this->update, $this->update->translations) ) {
111
- return $this->update->translations;
112
- }
113
- return array();
114
- }
115
-
116
- /**
117
- * Set translation updates.
118
- *
119
- * @param array $translationUpdates
120
- */
121
- public function setTranslations($translationUpdates) {
122
- $this->lazyLoad();
123
- if ( isset($this->update) ) {
124
- $this->update->translations = $translationUpdates;
125
- $this->save();
126
- }
127
- }
128
-
129
- public function save() {
130
- $state = new stdClass();
131
-
132
- $state->lastCheck = $this->lastCheck;
133
- $state->checkedVersion = $this->checkedVersion;
134
-
135
- if ( isset($this->update)) {
136
- $state->update = $this->update->toStdClass();
137
-
138
- $updateClass = get_class($this->update);
139
- $state->updateClass = $updateClass;
140
- $prefix = $this->getLibPrefix();
141
- if ( Puc_v4p11_Utils::startsWith($updateClass, $prefix) ) {
142
- $state->updateBaseClass = substr($updateClass, strlen($prefix));
143
- }
144
- }
145
-
146
- update_site_option($this->optionName, $state);
147
- $this->isLoaded = true;
148
- }
149
-
150
- /**
151
- * @return $this
152
- */
153
- public function lazyLoad() {
154
- if ( !$this->isLoaded ) {
155
- $this->load();
156
- }
157
- return $this;
158
- }
159
-
160
- protected function load() {
161
- $this->isLoaded = true;
162
-
163
- $state = get_site_option($this->optionName, null);
164
-
165
- if ( !is_object($state) ) {
166
- $this->lastCheck = 0;
167
- $this->checkedVersion = '';
168
- $this->update = null;
169
- return;
170
- }
171
-
172
- $this->lastCheck = intval(Puc_v4p11_Utils::get($state, 'lastCheck', 0));
173
- $this->checkedVersion = Puc_v4p11_Utils::get($state, 'checkedVersion', '');
174
- $this->update = null;
175
-
176
- if ( isset($state->update) ) {
177
- //This mess is due to the fact that the want the update class from this version
178
- //of the library, not the version that saved the update.
179
-
180
- $updateClass = null;
181
- if ( isset($state->updateBaseClass) ) {
182
- $updateClass = $this->getLibPrefix() . $state->updateBaseClass;
183
- } else if ( isset($state->updateClass) && class_exists($state->updateClass) ) {
184
- $updateClass = $state->updateClass;
185
- }
186
-
187
- if ( $updateClass !== null ) {
188
- $this->update = call_user_func(array($updateClass, 'fromObject'), $state->update);
189
- }
190
- }
191
- }
192
-
193
- public function delete() {
194
- delete_site_option($this->optionName);
195
-
196
- $this->lastCheck = 0;
197
- $this->checkedVersion = '';
198
- $this->update = null;
199
- }
200
-
201
- private function getLibPrefix() {
202
- $parts = explode('_', __CLASS__, 3);
203
- return $parts[0] . '_' . $parts[1] . '_';
204
- }
205
- }
206
-
207
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Theme/Package.php DELETED
@@ -1,65 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Theme_Package', false) ):
3
-
4
- class Puc_v4p11_Theme_Package extends Puc_v4p11_InstalledPackage {
5
- /**
6
- * @var string Theme directory name.
7
- */
8
- protected $stylesheet;
9
-
10
- /**
11
- * @var WP_Theme Theme object.
12
- */
13
- protected $theme;
14
-
15
- public function __construct($stylesheet, $updateChecker) {
16
- $this->stylesheet = $stylesheet;
17
- $this->theme = wp_get_theme($this->stylesheet);
18
-
19
- parent::__construct($updateChecker);
20
- }
21
-
22
- public function getInstalledVersion() {
23
- return $this->theme->get('Version');
24
- }
25
-
26
- public function getAbsoluteDirectoryPath() {
27
- if ( method_exists($this->theme, 'get_stylesheet_directory') ) {
28
- return $this->theme->get_stylesheet_directory(); //Available since WP 3.4.
29
- }
30
- return get_theme_root($this->stylesheet) . '/' . $this->stylesheet;
31
- }
32
-
33
- /**
34
- * Get the value of a specific plugin or theme header.
35
- *
36
- * @param string $headerName
37
- * @param string $defaultValue
38
- * @return string Either the value of the header, or $defaultValue if the header doesn't exist or is empty.
39
- */
40
- public function getHeaderValue($headerName, $defaultValue = '') {
41
- $value = $this->theme->get($headerName);
42
- if ( ($headerName === false) || ($headerName === '') ) {
43
- return $defaultValue;
44
- }
45
- return $value;
46
- }
47
-
48
- protected function getHeaderNames() {
49
- return array(
50
- 'Name' => 'Theme Name',
51
- 'ThemeURI' => 'Theme URI',
52
- 'Description' => 'Description',
53
- 'Author' => 'Author',
54
- 'AuthorURI' => 'Author URI',
55
- 'Version' => 'Version',
56
- 'Template' => 'Template',
57
- 'Status' => 'Status',
58
- 'Tags' => 'Tags',
59
- 'TextDomain' => 'Text Domain',
60
- 'DomainPath' => 'Domain Path',
61
- );
62
- }
63
- }
64
-
65
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Theme/Update.php DELETED
@@ -1,84 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Theme_Update', false) ):
4
-
5
- class Puc_v4p11_Theme_Update extends Puc_v4p11_Update {
6
- public $details_url = '';
7
-
8
- protected static $extraFields = array('details_url');
9
-
10
- /**
11
- * Transform the metadata into the format used by WordPress core.
12
- * Note the inconsistency: WP stores plugin updates as objects and theme updates as arrays.
13
- *
14
- * @return array
15
- */
16
- public function toWpFormat() {
17
- $update = array(
18
- 'theme' => $this->slug,
19
- 'new_version' => $this->version,
20
- 'url' => $this->details_url,
21
- );
22
-
23
- if ( !empty($this->download_url) ) {
24
- $update['package'] = $this->download_url;
25
- }
26
-
27
- return $update;
28
- }
29
-
30
- /**
31
- * Create a new instance of Theme_Update from its JSON-encoded representation.
32
- *
33
- * @param string $json Valid JSON string representing a theme information object.
34
- * @return self New instance of ThemeUpdate, or NULL on error.
35
- */
36
- public static function fromJson($json) {
37
- $instance = new self();
38
- if ( !parent::createFromJson($json, $instance) ) {
39
- return null;
40
- }
41
- return $instance;
42
- }
43
-
44
- /**
45
- * Create a new instance by copying the necessary fields from another object.
46
- *
47
- * @param StdClass|Puc_v4p11_Theme_Update $object The source object.
48
- * @return Puc_v4p11_Theme_Update The new copy.
49
- */
50
- public static function fromObject($object) {
51
- $update = new self();
52
- $update->copyFields($object, $update);
53
- return $update;
54
- }
55
-
56
- /**
57
- * Basic validation.
58
- *
59
- * @param StdClass $apiResponse
60
- * @return bool|WP_Error
61
- */
62
- protected function validateMetadata($apiResponse) {
63
- $required = array('version', 'details_url');
64
- foreach($required as $key) {
65
- if ( !isset($apiResponse->$key) || empty($apiResponse->$key) ) {
66
- return new WP_Error(
67
- 'tuc-invalid-metadata',
68
- sprintf('The theme metadata is missing the required "%s" key.', $key)
69
- );
70
- }
71
- }
72
- return true;
73
- }
74
-
75
- protected function getFieldNames() {
76
- return array_merge(parent::getFieldNames(), self::$extraFields);
77
- }
78
-
79
- protected function getPrefixedFilter($tag) {
80
- return parent::getPrefixedFilter($tag) . '_theme';
81
- }
82
- }
83
-
84
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Theme/UpdateChecker.php DELETED
@@ -1,152 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Theme_UpdateChecker', false) ):
4
-
5
- class Puc_v4p11_Theme_UpdateChecker extends Puc_v4p11_UpdateChecker {
6
- protected $filterSuffix = 'theme';
7
- protected $updateTransient = 'update_themes';
8
- protected $translationType = 'theme';
9
-
10
- /**
11
- * @var string Theme directory name.
12
- */
13
- protected $stylesheet;
14
-
15
- public function __construct($metadataUrl, $stylesheet = null, $customSlug = null, $checkPeriod = 12, $optionName = '') {
16
- if ( $stylesheet === null ) {
17
- $stylesheet = get_stylesheet();
18
- }
19
- $this->stylesheet = $stylesheet;
20
-
21
- parent::__construct(
22
- $metadataUrl,
23
- $stylesheet,
24
- $customSlug ? $customSlug : $stylesheet,
25
- $checkPeriod,
26
- $optionName
27
- );
28
- }
29
-
30
- /**
31
- * For themes, the update array is indexed by theme directory name.
32
- *
33
- * @return string
34
- */
35
- protected function getUpdateListKey() {
36
- return $this->directoryName;
37
- }
38
-
39
- /**
40
- * Retrieve the latest update (if any) from the configured API endpoint.
41
- *
42
- * @return Puc_v4p11_Update|null An instance of Update, or NULL when no updates are available.
43
- */
44
- public function requestUpdate() {
45
- list($themeUpdate, $result) = $this->requestMetadata('Puc_v4p11_Theme_Update', 'request_update');
46
-
47
- if ( $themeUpdate !== null ) {
48
- /** @var Puc_v4p11_Theme_Update $themeUpdate */
49
- $themeUpdate->slug = $this->slug;
50
- }
51
-
52
- $themeUpdate = $this->filterUpdateResult($themeUpdate, $result);
53
- return $themeUpdate;
54
- }
55
-
56
- protected function getNoUpdateItemFields() {
57
- return array_merge(
58
- parent::getNoUpdateItemFields(),
59
- array(
60
- 'theme' => $this->directoryName,
61
- 'requires' => '',
62
- )
63
- );
64
- }
65
-
66
- public function userCanInstallUpdates() {
67
- return current_user_can('update_themes');
68
- }
69
-
70
- /**
71
- * Create an instance of the scheduler.
72
- *
73
- * @param int $checkPeriod
74
- * @return Puc_v4p11_Scheduler
75
- */
76
- protected function createScheduler($checkPeriod) {
77
- return new Puc_v4p11_Scheduler($this, $checkPeriod, array('load-themes.php'));
78
- }
79
-
80
- /**
81
- * Is there an update being installed right now for this theme?
82
- *
83
- * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
84
- * @return bool
85
- */
86
- public function isBeingUpgraded($upgrader = null) {
87
- return $this->upgraderStatus->isThemeBeingUpgraded($this->stylesheet, $upgrader);
88
- }
89
-
90
- protected function createDebugBarExtension() {
91
- return new Puc_v4p11_DebugBar_Extension($this, 'Puc_v4p11_DebugBar_ThemePanel');
92
- }
93
-
94
- /**
95
- * Register a callback for filtering query arguments.
96
- *
97
- * The callback function should take one argument - an associative array of query arguments.
98
- * It should return a modified array of query arguments.
99
- *
100
- * @param callable $callback
101
- * @return void
102
- */
103
- public function addQueryArgFilter($callback){
104
- $this->addFilter('request_update_query_args', $callback);
105
- }
106
-
107
- /**
108
- * Register a callback for filtering arguments passed to wp_remote_get().
109
- *
110
- * The callback function should take one argument - an associative array of arguments -
111
- * and return a modified array or arguments. See the WP documentation on wp_remote_get()
112
- * for details on what arguments are available and how they work.
113
- *
114
- * @uses add_filter() This method is a convenience wrapper for add_filter().
115
- *
116
- * @param callable $callback
117
- * @return void
118
- */
119
- public function addHttpRequestArgFilter($callback) {
120
- $this->addFilter('request_update_options', $callback);
121
- }
122
-
123
- /**
124
- * Register a callback for filtering theme updates retrieved from the external API.
125
- *
126
- * The callback function should take two arguments. If the theme update was retrieved
127
- * successfully, the first argument passed will be an instance of Theme_Update. Otherwise,
128
- * it will be NULL. The second argument will be the corresponding return value of
129
- * wp_remote_get (see WP docs for details).
130
- *
131
- * The callback function should return a new or modified instance of Theme_Update or NULL.
132
- *
133
- * @uses add_filter() This method is a convenience wrapper for add_filter().
134
- *
135
- * @param callable $callback
136
- * @return void
137
- */
138
- public function addResultFilter($callback) {
139
- $this->addFilter('request_update_result', $callback, 10, 2);
140
- }
141
-
142
- /**
143
- * Create a package instance that represents this plugin or theme.
144
- *
145
- * @return Puc_v4p11_InstalledPackage
146
- */
147
- protected function createInstalledPackage() {
148
- return new Puc_v4p11_Theme_Package($this->stylesheet, $this);
149
- }
150
- }
151
-
152
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Update.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Update', false) ):
3
-
4
- /**
5
- * A simple container class for holding information about an available update.
6
- *
7
- * @author Janis Elsts
8
- * @access public
9
- */
10
- abstract class Puc_v4p11_Update extends Puc_v4p11_Metadata {
11
- public $slug;
12
- public $version;
13
- public $download_url;
14
- public $translations = array();
15
-
16
- /**
17
- * @return string[]
18
- */
19
- protected function getFieldNames() {
20
- return array('slug', 'version', 'download_url', 'translations');
21
- }
22
-
23
- public function toWpFormat() {
24
- $update = new stdClass();
25
-
26
- $update->slug = $this->slug;
27
- $update->new_version = $this->version;
28
- $update->package = $this->download_url;
29
-
30
- return $update;
31
- }
32
- }
33
-
34
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/UpdateChecker.php DELETED
@@ -1,999 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_UpdateChecker', false) ):
4
-
5
- abstract class Puc_v4p11_UpdateChecker {
6
- protected $filterSuffix = '';
7
- protected $updateTransient = '';
8
- protected $translationType = ''; //"plugin" or "theme".
9
-
10
- /**
11
- * Set to TRUE to enable error reporting. Errors are raised using trigger_error()
12
- * and should be logged to the standard PHP error log.
13
- * @var bool
14
- */
15
- public $debugMode = null;
16
-
17
- /**
18
- * @var string Where to store the update info.
19
- */
20
- public $optionName = '';
21
-
22
- /**
23
- * @var string The URL of the metadata file.
24
- */
25
- public $metadataUrl = '';
26
-
27
- /**
28
- * @var string Plugin or theme directory name.
29
- */
30
- public $directoryName = '';
31
-
32
- /**
33
- * @var string The slug that will be used in update checker hooks and remote API requests.
34
- * Usually matches the directory name unless the plugin/theme directory has been renamed.
35
- */
36
- public $slug = '';
37
-
38
- /**
39
- * @var Puc_v4p11_InstalledPackage
40
- */
41
- protected $package;
42
-
43
- /**
44
- * @var Puc_v4p11_Scheduler
45
- */
46
- public $scheduler;
47
-
48
- /**
49
- * @var Puc_v4p11_UpgraderStatus
50
- */
51
- protected $upgraderStatus;
52
-
53
- /**
54
- * @var Puc_v4p11_StateStore
55
- */
56
- protected $updateState;
57
-
58
- /**
59
- * @var array List of API errors triggered during the last checkForUpdates() call.
60
- */
61
- protected $lastRequestApiErrors = array();
62
-
63
- /**
64
- * @var string|mixed The default is 0 because parse_url() can return NULL or FALSE.
65
- */
66
- protected $cachedMetadataHost = 0;
67
-
68
- /**
69
- * @var Puc_v4p11_DebugBar_Extension|null
70
- */
71
- protected $debugBarExtension = null;
72
-
73
- public function __construct($metadataUrl, $directoryName, $slug = null, $checkPeriod = 12, $optionName = '') {
74
- $this->debugMode = (bool)(constant('WP_DEBUG'));
75
- $this->metadataUrl = $metadataUrl;
76
- $this->directoryName = $directoryName;
77
- $this->slug = !empty($slug) ? $slug : $this->directoryName;
78
-
79
- $this->optionName = $optionName;
80
- if ( empty($this->optionName) ) {
81
- //BC: Initially the library only supported plugin updates and didn't use type prefixes
82
- //in the option name. Lets use the same prefix-less name when possible.
83
- if ( $this->filterSuffix === '' ) {
84
- $this->optionName = 'external_updates-' . $this->slug;
85
- } else {
86
- $this->optionName = $this->getUniqueName('external_updates');
87
- }
88
- }
89
-
90
- $this->package = $this->createInstalledPackage();
91
- $this->scheduler = $this->createScheduler($checkPeriod);
92
- $this->upgraderStatus = new Puc_v4p11_UpgraderStatus();
93
- $this->updateState = new Puc_v4p11_StateStore($this->optionName);
94
-
95
- if ( did_action('init') ) {
96
- $this->loadTextDomain();
97
- } else {
98
- add_action('init', array($this, 'loadTextDomain'));
99
- }
100
-
101
- $this->installHooks();
102
- }
103
-
104
- /**
105
- * @internal
106
- */
107
- public function loadTextDomain() {
108
- //We're not using load_plugin_textdomain() or its siblings because figuring out where
109
- //the library is located (plugin, mu-plugin, theme, custom wp-content paths) is messy.
110
- $domain = 'plugin-update-checker';
111
- $locale = apply_filters(
112
- 'plugin_locale',
113
- (is_admin() && function_exists('get_user_locale')) ? get_user_locale() : get_locale(),
114
- $domain
115
- );
116
-
117
- $moFile = $domain . '-' . $locale . '.mo';
118
- $path = realpath(dirname(__FILE__) . '/../../languages');
119
-
120
- if ($path && file_exists($path)) {
121
- load_textdomain($domain, $path . '/' . $moFile);
122
- }
123
- }
124
-
125
- protected function installHooks() {
126
- //Insert our update info into the update array maintained by WP.
127
- add_filter('site_transient_' . $this->updateTransient, array($this,'injectUpdate'));
128
-
129
- //Insert translation updates into the update list.
130
- add_filter('site_transient_' . $this->updateTransient, array($this, 'injectTranslationUpdates'));
131
-
132
- //Clear translation updates when WP clears the update cache.
133
- //This needs to be done directly because the library doesn't actually remove obsolete plugin updates,
134
- //it just hides them (see getUpdate()). We can't do that with translations - too much disk I/O.
135
- add_action(
136
- 'delete_site_transient_' . $this->updateTransient,
137
- array($this, 'clearCachedTranslationUpdates')
138
- );
139
-
140
- //Rename the update directory to be the same as the existing directory.
141
- if ( $this->directoryName !== '.' ) {
142
- add_filter('upgrader_source_selection', array($this, 'fixDirectoryName'), 10, 3);
143
- }
144
-
145
- //Allow HTTP requests to the metadata URL even if it's on a local host.
146
- add_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10, 2);
147
-
148
- //DebugBar integration.
149
- if ( did_action('plugins_loaded') ) {
150
- $this->maybeInitDebugBar();
151
- } else {
152
- add_action('plugins_loaded', array($this, 'maybeInitDebugBar'));
153
- }
154
- }
155
-
156
- /**
157
- * Remove hooks that were added by this update checker instance.
158
- */
159
- public function removeHooks() {
160
- remove_filter('site_transient_' . $this->updateTransient, array($this,'injectUpdate'));
161
- remove_filter('site_transient_' . $this->updateTransient, array($this, 'injectTranslationUpdates'));
162
- remove_action(
163
- 'delete_site_transient_' . $this->updateTransient,
164
- array($this, 'clearCachedTranslationUpdates')
165
- );
166
-
167
- remove_filter('upgrader_source_selection', array($this, 'fixDirectoryName'), 10);
168
- remove_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10);
169
- remove_action('plugins_loaded', array($this, 'maybeInitDebugBar'));
170
-
171
- remove_action('init', array($this, 'loadTextDomain'));
172
-
173
- if ( $this->scheduler ) {
174
- $this->scheduler->removeHooks();
175
- }
176
-
177
- if ( $this->debugBarExtension ) {
178
- $this->debugBarExtension->removeHooks();
179
- }
180
- }
181
-
182
- /**
183
- * Check if the current user has the required permissions to install updates.
184
- *
185
- * @return bool
186
- */
187
- abstract public function userCanInstallUpdates();
188
-
189
- /**
190
- * Explicitly allow HTTP requests to the metadata URL.
191
- *
192
- * WordPress has a security feature where the HTTP API will reject all requests that are sent to
193
- * another site hosted on the same server as the current site (IP match), a local host, or a local
194
- * IP, unless the host exactly matches the current site.
195
- *
196
- * This feature is opt-in (at least in WP 4.4). Apparently some people enable it.
197
- *
198
- * That can be a problem when you're developing your plugin and you decide to host the update information
199
- * on the same server as your test site. Update requests will mysteriously fail.
200
- *
201
- * We fix that by adding an exception for the metadata host.
202
- *
203
- * @param bool $allow
204
- * @param string $host
205
- * @return bool
206
- */
207
- public function allowMetadataHost($allow, $host) {
208
- if ( $this->cachedMetadataHost === 0 ) {
209
- $this->cachedMetadataHost = parse_url($this->metadataUrl, PHP_URL_HOST);
210
- }
211
-
212
- if ( is_string($this->cachedMetadataHost) && (strtolower($host) === strtolower($this->cachedMetadataHost)) ) {
213
- return true;
214
- }
215
- return $allow;
216
- }
217
-
218
- /**
219
- * Create a package instance that represents this plugin or theme.
220
- *
221
- * @return Puc_v4p11_InstalledPackage
222
- */
223
- abstract protected function createInstalledPackage();
224
-
225
- /**
226
- * @return Puc_v4p11_InstalledPackage
227
- */
228
- public function getInstalledPackage() {
229
- return $this->package;
230
- }
231
-
232
- /**
233
- * Create an instance of the scheduler.
234
- *
235
- * This is implemented as a method to make it possible for plugins to subclass the update checker
236
- * and substitute their own scheduler.
237
- *
238
- * @param int $checkPeriod
239
- * @return Puc_v4p11_Scheduler
240
- */
241
- abstract protected function createScheduler($checkPeriod);
242
-
243
- /**
244
- * Check for updates. The results are stored in the DB option specified in $optionName.
245
- *
246
- * @return Puc_v4p11_Update|null
247
- */
248
- public function checkForUpdates() {
249
- $installedVersion = $this->getInstalledVersion();
250
- //Fail silently if we can't find the plugin/theme or read its header.
251
- if ( $installedVersion === null ) {
252
- $this->triggerError(
253
- sprintf('Skipping update check for %s - installed version unknown.', $this->slug),
254
- E_USER_WARNING
255
- );
256
- return null;
257
- }
258
-
259
- //Start collecting API errors.
260
- $this->lastRequestApiErrors = array();
261
- add_action('puc_api_error', array($this, 'collectApiErrors'), 10, 4);
262
-
263
- $state = $this->updateState;
264
- $state->setLastCheckToNow()
265
- ->setCheckedVersion($installedVersion)
266
- ->save(); //Save before checking in case something goes wrong
267
-
268
- $state->setUpdate($this->requestUpdate());
269
- $state->save();
270
-
271
- //Stop collecting API errors.
272
- remove_action('puc_api_error', array($this, 'collectApiErrors'), 10);
273
-
274
- return $this->getUpdate();
275
- }
276
-
277
- /**
278
- * Load the update checker state from the DB.
279
- *
280
- * @return Puc_v4p11_StateStore
281
- */
282
- public function getUpdateState() {
283
- return $this->updateState->lazyLoad();
284
- }
285
-
286
- /**
287
- * Reset update checker state - i.e. last check time, cached update data and so on.
288
- *
289
- * Call this when your plugin is being uninstalled, or if you want to
290
- * clear the update cache.
291
- */
292
- public function resetUpdateState() {
293
- $this->updateState->delete();
294
- }
295
-
296
- /**
297
- * Get the details of the currently available update, if any.
298
- *
299
- * If no updates are available, or if the last known update version is below or equal
300
- * to the currently installed version, this method will return NULL.
301
- *
302
- * Uses cached update data. To retrieve update information straight from
303
- * the metadata URL, call requestUpdate() instead.
304
- *
305
- * @return Puc_v4p11_Update|null
306
- */
307
- public function getUpdate() {
308
- $update = $this->updateState->getUpdate();
309
-
310
- //Is there an update available?
311
- if ( isset($update) ) {
312
- //Check if the update is actually newer than the currently installed version.
313
- $installedVersion = $this->getInstalledVersion();
314
- if ( ($installedVersion !== null) && version_compare($update->version, $installedVersion, '>') ){
315
- return $update;
316
- }
317
- }
318
- return null;
319
- }
320
-
321
- /**
322
- * Retrieve the latest update (if any) from the configured API endpoint.
323
- *
324
- * Subclasses should run the update through filterUpdateResult before returning it.
325
- *
326
- * @return Puc_v4p11_Update An instance of Update, or NULL when no updates are available.
327
- */
328
- abstract public function requestUpdate();
329
-
330
- /**
331
- * Filter the result of a requestUpdate() call.
332
- *
333
- * @param Puc_v4p11_Update|null $update
334
- * @param array|WP_Error|null $httpResult The value returned by wp_remote_get(), if any.
335
- * @return Puc_v4p11_Update
336
- */
337
- protected function filterUpdateResult($update, $httpResult = null) {
338
- //Let plugins/themes modify the update.
339
- $update = apply_filters($this->getUniqueName('request_update_result'), $update, $httpResult);
340
-
341
- $this->fixSupportedWordpressVersion($update);
342
-
343
- if ( isset($update, $update->translations) ) {
344
- //Keep only those translation updates that apply to this site.
345
- $update->translations = $this->filterApplicableTranslations($update->translations);
346
- }
347
-
348
- return $update;
349
- }
350
-
351
- /**
352
- * The "Tested up to" field in the plugin metadata is supposed to be in the form of "major.minor",
353
- * while WordPress core's list_plugin_updates() expects the $update->tested field to be an exact
354
- * version, e.g. "major.minor.patch", to say it's compatible. In other case it shows
355
- * "Compatibility: Unknown".
356
- * The function mimics how wordpress.org API crafts the "tested" field out of "Tested up to".
357
- *
358
- * @param Puc_v4p11_Metadata|null $update
359
- */
360
- protected function fixSupportedWordpressVersion(Puc_v4p11_Metadata $update = null) {
361
- if ( !isset($update->tested) || !preg_match('/^\d++\.\d++$/', $update->tested) ) {
362
- return;
363
- }
364
-
365
- $actualWpVersions = array();
366
-
367
- $wpVersion = $GLOBALS['wp_version'];
368
-
369
- if ( function_exists('get_core_updates') ) {
370
- $coreUpdates = get_core_updates();
371
- if ( is_array($coreUpdates) ) {
372
- foreach ($coreUpdates as $coreUpdate) {
373
- if ( isset($coreUpdate->current) ) {
374
- $actualWpVersions[] = $coreUpdate->current;
375
- }
376
- }
377
- }
378
- }
379
-
380
- $actualWpVersions[] = $wpVersion;
381
-
382
- $actualWpPatchNumber = null;
383
- foreach ($actualWpVersions as $version) {
384
- if ( preg_match('/^(?P<majorMinor>\d++\.\d++)(?:\.(?P<patch>\d++))?/', $version, $versionParts) ) {
385
- if ( $versionParts['majorMinor'] === $update->tested ) {
386
- $patch = isset($versionParts['patch']) ? intval($versionParts['patch']) : 0;
387
- if ( $actualWpPatchNumber === null ) {
388
- $actualWpPatchNumber = $patch;
389
- } else {
390
- $actualWpPatchNumber = max($actualWpPatchNumber, $patch);
391
- }
392
- }
393
- }
394
- }
395
- if ( $actualWpPatchNumber === null ) {
396
- $actualWpPatchNumber = 999;
397
- }
398
-
399
- if ( $actualWpPatchNumber > 0 ) {
400
- $update->tested .= '.' . $actualWpPatchNumber;
401
- }
402
- }
403
-
404
- /**
405
- * Get the currently installed version of the plugin or theme.
406
- *
407
- * @return string|null Version number.
408
- */
409
- public function getInstalledVersion() {
410
- return $this->package->getInstalledVersion();
411
- }
412
-
413
- /**
414
- * Get the full path of the plugin or theme directory.
415
- *
416
- * @return string
417
- */
418
- public function getAbsoluteDirectoryPath() {
419
- return $this->package->getAbsoluteDirectoryPath();
420
- }
421
-
422
- /**
423
- * Trigger a PHP error, but only when $debugMode is enabled.
424
- *
425
- * @param string $message
426
- * @param int $errorType
427
- */
428
- public function triggerError($message, $errorType) {
429
- if ( $this->isDebugModeEnabled() ) {
430
- trigger_error($message, $errorType);
431
- }
432
- }
433
-
434
- /**
435
- * @return bool
436
- */
437
- protected function isDebugModeEnabled() {
438
- if ( $this->debugMode === null ) {
439
- $this->debugMode = (bool)(constant('WP_DEBUG'));
440
- }
441
- return $this->debugMode;
442
- }
443
-
444
- /**
445
- * Get the full name of an update checker filter, action or DB entry.
446
- *
447
- * This method adds the "puc_" prefix and the "-$slug" suffix to the filter name.
448
- * For example, "pre_inject_update" becomes "puc_pre_inject_update-plugin-slug".
449
- *
450
- * @param string $baseTag
451
- * @return string
452
- */
453
- public function getUniqueName($baseTag) {
454
- $name = 'puc_' . $baseTag;
455
- if ( $this->filterSuffix !== '' ) {
456
- $name .= '_' . $this->filterSuffix;
457
- }
458
- return $name . '-' . $this->slug;
459
- }
460
-
461
- /**
462
- * Store API errors that are generated when checking for updates.
463
- *
464
- * @internal
465
- * @param WP_Error $error
466
- * @param array|null $httpResponse
467
- * @param string|null $url
468
- * @param string|null $slug
469
- */
470
- public function collectApiErrors($error, $httpResponse = null, $url = null, $slug = null) {
471
- if ( isset($slug) && ($slug !== $this->slug) ) {
472
- return;
473
- }
474
-
475
- $this->lastRequestApiErrors[] = array(
476
- 'error' => $error,
477
- 'httpResponse' => $httpResponse,
478
- 'url' => $url,
479
- );
480
- }
481
-
482
- /**
483
- * @return array
484
- */
485
- public function getLastRequestApiErrors() {
486
- return $this->lastRequestApiErrors;
487
- }
488
-
489
- /* -------------------------------------------------------------------
490
- * PUC filters and filter utilities
491
- * -------------------------------------------------------------------
492
- */
493
-
494
- /**
495
- * Register a callback for one of the update checker filters.
496
- *
497
- * Identical to add_filter(), except it automatically adds the "puc_" prefix
498
- * and the "-$slug" suffix to the filter name. For example, "request_info_result"
499
- * becomes "puc_request_info_result-your_plugin_slug".
500
- *
501
- * @param string $tag
502
- * @param callable $callback
503
- * @param int $priority
504
- * @param int $acceptedArgs
505
- */
506
- public function addFilter($tag, $callback, $priority = 10, $acceptedArgs = 1) {
507
- add_filter($this->getUniqueName($tag), $callback, $priority, $acceptedArgs);
508
- }
509
-
510
- /* -------------------------------------------------------------------
511
- * Inject updates
512
- * -------------------------------------------------------------------
513
- */
514
-
515
- /**
516
- * Insert the latest update (if any) into the update list maintained by WP.
517
- *
518
- * @param stdClass $updates Update list.
519
- * @return stdClass Modified update list.
520
- */
521
- public function injectUpdate($updates) {
522
- //Is there an update to insert?
523
- $update = $this->getUpdate();
524
-
525
- if ( !$this->shouldShowUpdates() ) {
526
- $update = null;
527
- }
528
-
529
- if ( !empty($update) ) {
530
- //Let plugins filter the update info before it's passed on to WordPress.
531
- $update = apply_filters($this->getUniqueName('pre_inject_update'), $update);
532
- $updates = $this->addUpdateToList($updates, $update->toWpFormat());
533
- } else {
534
- //Clean up any stale update info.
535
- $updates = $this->removeUpdateFromList($updates);
536
- //Add a placeholder item to the "no_update" list to enable auto-update support.
537
- //If we don't do this, the option to enable automatic updates will only show up
538
- //when an update is available.
539
- $updates = $this->addNoUpdateItem($updates);
540
- }
541
-
542
- return $updates;
543
- }
544
-
545
- /**
546
- * @param stdClass|null $updates
547
- * @param stdClass|array $updateToAdd
548
- * @return stdClass
549
- */
550
- protected function addUpdateToList($updates, $updateToAdd) {
551
- if ( !is_object($updates) ) {
552
- $updates = new stdClass();
553
- $updates->response = array();
554
- }
555
-
556
- $updates->response[$this->getUpdateListKey()] = $updateToAdd;
557
- return $updates;
558
- }
559
-
560
- /**
561
- * @param stdClass|null $updates
562
- * @return stdClass|null
563
- */
564
- protected function removeUpdateFromList($updates) {
565
- if ( isset($updates, $updates->response) ) {
566
- unset($updates->response[$this->getUpdateListKey()]);
567
- }
568
- return $updates;
569
- }
570
-
571
- /**
572
- * See this post for more information:
573
- * @link https://make.wordpress.org/core/2020/07/30/recommended-usage-of-the-updates-api-to-support-the-auto-updates-ui-for-plugins-and-themes-in-wordpress-5-5/
574
- *
575
- * @param stdClass|null $updates
576
- * @return stdClass
577
- */
578
- protected function addNoUpdateItem($updates) {
579
- if ( !is_object($updates) ) {
580
- $updates = new stdClass();
581
- $updates->response = array();
582
- $updates->no_update = array();
583
- } else if ( !isset($updates->no_update) ) {
584
- $updates->no_update = array();
585
- }
586
-
587
- $updates->no_update[$this->getUpdateListKey()] = (object) $this->getNoUpdateItemFields();
588
-
589
- return $updates;
590
- }
591
-
592
- /**
593
- * Subclasses should override this method to add fields that are specific to plugins or themes.
594
- * @return array
595
- */
596
- protected function getNoUpdateItemFields() {
597
- return array(
598
- 'new_version' => $this->getInstalledVersion(),
599
- 'url' => '',
600
- 'package' => '',
601
- 'requires_php' => '',
602
- );
603
- }
604
-
605
- /**
606
- * Get the key that will be used when adding updates to the update list that's maintained
607
- * by the WordPress core. The list is always an associative array, but the key is different
608
- * for plugins and themes.
609
- *
610
- * @return string
611
- */
612
- abstract protected function getUpdateListKey();
613
-
614
- /**
615
- * Should we show available updates?
616
- *
617
- * Usually the answer is "yes", but there are exceptions. For example, WordPress doesn't
618
- * support automatic updates installation for mu-plugins, so PUC usually won't show update
619
- * notifications in that case. See the plugin-specific subclass for details.
620
- *
621
- * Note: This method only applies to updates that are displayed (or not) in the WordPress
622
- * admin. It doesn't affect APIs like requestUpdate and getUpdate.
623
- *
624
- * @return bool
625
- */
626
- protected function shouldShowUpdates() {
627
- return true;
628
- }
629
-
630
- /* -------------------------------------------------------------------
631
- * JSON-based update API
632
- * -------------------------------------------------------------------
633
- */
634
-
635
- /**
636
- * Retrieve plugin or theme metadata from the JSON document at $this->metadataUrl.
637
- *
638
- * @param string $metaClass Parse the JSON as an instance of this class. It must have a static fromJson method.
639
- * @param string $filterRoot
640
- * @param array $queryArgs Additional query arguments.
641
- * @return array [Puc_v4p11_Metadata|null, array|WP_Error] A metadata instance and the value returned by wp_remote_get().
642
- */
643
- protected function requestMetadata($metaClass, $filterRoot, $queryArgs = array()) {
644
- //Query args to append to the URL. Plugins can add their own by using a filter callback (see addQueryArgFilter()).
645
- $queryArgs = array_merge(
646
- array(
647
- 'installed_version' => strval($this->getInstalledVersion()),
648
- 'php' => phpversion(),
649
- 'locale' => get_locale(),
650
- ),
651
- $queryArgs
652
- );
653
- $queryArgs = apply_filters($this->getUniqueName($filterRoot . '_query_args'), $queryArgs);
654
-
655
- //Various options for the wp_remote_get() call. Plugins can filter these, too.
656
- $options = array(
657
- 'timeout' => 10, //seconds
658
- 'headers' => array(
659
- 'Accept' => 'application/json',
660
- ),
661
- 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',
662
-
663
- );
664
- $options = apply_filters($this->getUniqueName($filterRoot . '_options'), $options);
665
-
666
- //The metadata file should be at 'http://your-api.com/url/here/$slug/info.json'
667
- $url = $this->metadataUrl;
668
- if ( !empty($queryArgs) ){
669
- $url = add_query_arg($queryArgs, $url);
670
- }
671
-
672
- $result = wp_remote_get($url, $options);
673
-
674
- $result = apply_filters($this->getUniqueName('request_metadata_http_result'), $result, $url, $options);
675
-
676
- //Try to parse the response
677
- $status = $this->validateApiResponse($result);
678
- $metadata = null;
679
- if ( !is_wp_error($status) ){
680
- if ( version_compare(PHP_VERSION, '5.3', '>=') && (strpos($metaClass, '\\') === false) ) {
681
- $metaClass = __NAMESPACE__ . '\\' . $metaClass;
682
- }
683
- $metadata = call_user_func(array($metaClass, 'fromJson'), $result['body']);
684
- } else {
685
- do_action('puc_api_error', $status, $result, $url, $this->slug);
686
- $this->triggerError(
687
- sprintf('The URL %s does not point to a valid metadata file. ', $url)
688
- . $status->get_error_message(),
689
- E_USER_WARNING
690
- );
691
- }
692
-
693
- return array($metadata, $result);
694
- }
695
-
696
- /**
697
- * Check if $result is a successful update API response.
698
- *
699
- * @param array|WP_Error $result
700
- * @return true|WP_Error
701
- */
702
- protected function validateApiResponse($result) {
703
- if ( is_wp_error($result) ) { /** @var WP_Error $result */
704
- return new WP_Error($result->get_error_code(), 'WP HTTP Error: ' . $result->get_error_message());
705
- }
706
-
707
- if ( !isset($result['response']['code']) ) {
708
- return new WP_Error(
709
- 'puc_no_response_code',
710
- 'wp_remote_get() returned an unexpected result.'
711
- );
712
- }
713
-
714
- if ( $result['response']['code'] !== 200 ) {
715
- return new WP_Error(
716
- 'puc_unexpected_response_code',
717
- 'HTTP response code is ' . $result['response']['code'] . ' (expected: 200)'
718
- );
719
- }
720
-
721
- if ( empty($result['body']) ) {
722
- return new WP_Error('puc_empty_response', 'The metadata file appears to be empty.');
723
- }
724
-
725
- return true;
726
- }
727
-
728
- /* -------------------------------------------------------------------
729
- * Language packs / Translation updates
730
- * -------------------------------------------------------------------
731
- */
732
-
733
- /**
734
- * Filter a list of translation updates and return a new list that contains only updates
735
- * that apply to the current site.
736
- *
737
- * @param array $translations
738
- * @return array
739
- */
740
- protected function filterApplicableTranslations($translations) {
741
- $languages = array_flip(array_values(get_available_languages()));
742
- $installedTranslations = $this->getInstalledTranslations();
743
-
744
- $applicableTranslations = array();
745
- foreach ($translations as $translation) {
746
- //Does it match one of the available core languages?
747
- $isApplicable = array_key_exists($translation->language, $languages);
748
- //Is it more recent than an already-installed translation?
749
- if ( isset($installedTranslations[$translation->language]) ) {
750
- $updateTimestamp = strtotime($translation->updated);
751
- $installedTimestamp = strtotime($installedTranslations[$translation->language]['PO-Revision-Date']);
752
- $isApplicable = $updateTimestamp > $installedTimestamp;
753
- }
754
-
755
- if ( $isApplicable ) {
756
- $applicableTranslations[] = $translation;
757
- }
758
- }
759
-
760
- return $applicableTranslations;
761
- }
762
-
763
- /**
764
- * Get a list of installed translations for this plugin or theme.
765
- *
766
- * @return array
767
- */
768
- protected function getInstalledTranslations() {
769
- if ( !function_exists('wp_get_installed_translations') ) {
770
- return array();
771
- }
772
- $installedTranslations = wp_get_installed_translations($this->translationType . 's');
773
- if ( isset($installedTranslations[$this->directoryName]) ) {
774
- $installedTranslations = $installedTranslations[$this->directoryName];
775
- } else {
776
- $installedTranslations = array();
777
- }
778
- return $installedTranslations;
779
- }
780
-
781
- /**
782
- * Insert translation updates into the list maintained by WordPress.
783
- *
784
- * @param stdClass $updates
785
- * @return stdClass
786
- */
787
- public function injectTranslationUpdates($updates) {
788
- $translationUpdates = $this->getTranslationUpdates();
789
- if ( empty($translationUpdates) ) {
790
- return $updates;
791
- }
792
-
793
- //Being defensive.
794
- if ( !is_object($updates) ) {
795
- $updates = new stdClass();
796
- }
797
- if ( !isset($updates->translations) ) {
798
- $updates->translations = array();
799
- }
800
-
801
- //In case there's a name collision with a plugin or theme hosted on wordpress.org,
802
- //remove any preexisting updates that match our thing.
803
- $updates->translations = array_values(array_filter(
804
- $updates->translations,
805
- array($this, 'isNotMyTranslation')
806
- ));
807
-
808
- //Add our updates to the list.
809
- foreach($translationUpdates as $update) {
810
- $convertedUpdate = array_merge(
811
- array(
812
- 'type' => $this->translationType,
813
- 'slug' => $this->directoryName,
814
- 'autoupdate' => 0,
815
- //AFAICT, WordPress doesn't actually use the "version" field for anything.
816
- //But lets make sure it's there, just in case.
817
- 'version' => isset($update->version) ? $update->version : ('1.' . strtotime($update->updated)),
818
- ),
819
- (array)$update
820
- );
821
-
822
- $updates->translations[] = $convertedUpdate;
823
- }
824
-
825
- return $updates;
826
- }
827
-
828
- /**
829
- * Get a list of available translation updates.
830
- *
831
- * This method will return an empty array if there are no updates.
832
- * Uses cached update data.
833
- *
834
- * @return array
835
- */
836
- public function getTranslationUpdates() {
837
- return $this->updateState->getTranslations();
838
- }
839
-
840
- /**
841
- * Remove all cached translation updates.
842
- *
843
- * @see wp_clean_update_cache
844
- */
845
- public function clearCachedTranslationUpdates() {
846
- $this->updateState->setTranslations(array());
847
- }
848
-
849
- /**
850
- * Filter callback. Keeps only translations that *don't* match this plugin or theme.
851
- *
852
- * @param array $translation
853
- * @return bool
854
- */
855
- protected function isNotMyTranslation($translation) {
856
- $isMatch = isset($translation['type'], $translation['slug'])
857
- && ($translation['type'] === $this->translationType)
858
- && ($translation['slug'] === $this->directoryName);
859
-
860
- return !$isMatch;
861
- }
862
-
863
- /* -------------------------------------------------------------------
864
- * Fix directory name when installing updates
865
- * -------------------------------------------------------------------
866
- */
867
-
868
- /**
869
- * Rename the update directory to match the existing plugin/theme directory.
870
- *
871
- * When WordPress installs a plugin or theme update, it assumes that the ZIP file will contain
872
- * exactly one directory, and that the directory name will be the same as the directory where
873
- * the plugin or theme is currently installed.
874
- *
875
- * GitHub and other repositories provide ZIP downloads, but they often use directory names like
876
- * "project-branch" or "project-tag-hash". We need to change the name to the actual plugin folder.
877
- *
878
- * This is a hook callback. Don't call it from a plugin.
879
- *
880
- * @access protected
881
- *
882
- * @param string $source The directory to copy to /wp-content/plugins or /wp-content/themes. Usually a subdirectory of $remoteSource.
883
- * @param string $remoteSource WordPress has extracted the update to this directory.
884
- * @param WP_Upgrader $upgrader
885
- * @return string|WP_Error
886
- */
887
- public function fixDirectoryName($source, $remoteSource, $upgrader) {
888
- global $wp_filesystem;
889
- /** @var WP_Filesystem_Base $wp_filesystem */
890
-
891
- //Basic sanity checks.
892
- if ( !isset($source, $remoteSource, $upgrader, $upgrader->skin, $wp_filesystem) ) {
893
- return $source;
894
- }
895
-
896
- //If WordPress is upgrading anything other than our plugin/theme, leave the directory name unchanged.
897
- if ( !$this->isBeingUpgraded($upgrader) ) {
898
- return $source;
899
- }
900
-
901
- //Rename the source to match the existing directory.
902
- $correctedSource = trailingslashit($remoteSource) . $this->directoryName . '/';
903
- if ( $source !== $correctedSource ) {
904
- //The update archive should contain a single directory that contains the rest of plugin/theme files.
905
- //Otherwise, WordPress will try to copy the entire working directory ($source == $remoteSource).
906
- //We can't rename $remoteSource because that would break WordPress code that cleans up temporary files
907
- //after update.
908
- if ( $this->isBadDirectoryStructure($remoteSource) ) {
909
- return new WP_Error(
910
- 'puc-incorrect-directory-structure',
911
- sprintf(
912
- 'The directory structure of the update is incorrect. All files should be inside ' .
913
- 'a directory named <span class="code">%s</span>, not at the root of the ZIP archive.',
914
- htmlentities($this->slug)
915
- )
916
- );
917
- }
918
-
919
- /** @var WP_Upgrader_Skin $upgrader ->skin */
920
- $upgrader->skin->feedback(sprintf(
921
- 'Renaming %s to %s&#8230;',
922
- '<span class="code">' . basename($source) . '</span>',
923
- '<span class="code">' . $this->directoryName . '</span>'
924
- ));
925
-
926
- if ( $wp_filesystem->move($source, $correctedSource, true) ) {
927
- $upgrader->skin->feedback('Directory successfully renamed.');
928
- return $correctedSource;
929
- } else {
930
- return new WP_Error(
931
- 'puc-rename-failed',
932
- 'Unable to rename the update to match the existing directory.'
933
- );
934
- }
935
- }
936
-
937
- return $source;
938
- }
939
-
940
- /**
941
- * Is there an update being installed right now, for this plugin or theme?
942
- *
943
- * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
944
- * @return bool
945
- */
946
- abstract public function isBeingUpgraded($upgrader = null);
947
-
948
- /**
949
- * Check for incorrect update directory structure. An update must contain a single directory,
950
- * all other files should be inside that directory.
951
- *
952
- * @param string $remoteSource Directory path.
953
- * @return bool
954
- */
955
- protected function isBadDirectoryStructure($remoteSource) {
956
- global $wp_filesystem;
957
- /** @var WP_Filesystem_Base $wp_filesystem */
958
-
959
- $sourceFiles = $wp_filesystem->dirlist($remoteSource);
960
- if ( is_array($sourceFiles) ) {
961
- $sourceFiles = array_keys($sourceFiles);
962
- $firstFilePath = trailingslashit($remoteSource) . $sourceFiles[0];
963
- return (count($sourceFiles) > 1) || (!$wp_filesystem->is_dir($firstFilePath));
964
- }
965
-
966
- //Assume it's fine.
967
- return false;
968
- }
969
-
970
- /* -------------------------------------------------------------------
971
- * DebugBar integration
972
- * -------------------------------------------------------------------
973
- */
974
-
975
- /**
976
- * Initialize the update checker Debug Bar plugin/add-on thingy.
977
- */
978
- public function maybeInitDebugBar() {
979
- if ( class_exists('Debug_Bar', false) && file_exists(dirname(__FILE__) . '/DebugBar') ) {
980
- $this->debugBarExtension = $this->createDebugBarExtension();
981
- }
982
- }
983
-
984
- protected function createDebugBarExtension() {
985
- return new Puc_v4p11_DebugBar_Extension($this);
986
- }
987
-
988
- /**
989
- * Display additional configuration details in the Debug Bar panel.
990
- *
991
- * @param Puc_v4p11_DebugBar_Panel $panel
992
- */
993
- public function onDisplayConfiguration($panel) {
994
- //Do nothing. Subclasses can use this to add additional info to the panel.
995
- }
996
-
997
- }
998
-
999
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/UpgraderStatus.php DELETED
@@ -1,199 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_UpgraderStatus', false) ):
3
-
4
- /**
5
- * A utility class that helps figure out which plugin or theme WordPress is upgrading.
6
- *
7
- * It may seem strange to have a separate class just for that, but the task is surprisingly complicated.
8
- * Core classes like Plugin_Upgrader don't expose the plugin file name during an in-progress update (AFAICT).
9
- * This class uses a few workarounds and heuristics to get the file name.
10
- */
11
- class Puc_v4p11_UpgraderStatus {
12
- private $currentType = null; //"plugin" or "theme".
13
- private $currentId = null; //Plugin basename or theme directory name.
14
-
15
- public function __construct() {
16
- //Keep track of which plugin/theme WordPress is currently upgrading.
17
- add_filter('upgrader_pre_install', array($this, 'setUpgradedThing'), 10, 2);
18
- add_filter('upgrader_package_options', array($this, 'setUpgradedPluginFromOptions'), 10, 1);
19
- add_filter('upgrader_post_install', array($this, 'clearUpgradedThing'), 10, 1);
20
- add_action('upgrader_process_complete', array($this, 'clearUpgradedThing'), 10, 1);
21
- }
22
-
23
- /**
24
- * Is there and update being installed RIGHT NOW, for a specific plugin?
25
- *
26
- * Caution: This method is unreliable. WordPress doesn't make it easy to figure out what it is upgrading,
27
- * and upgrader implementations are liable to change without notice.
28
- *
29
- * @param string $pluginFile The plugin to check.
30
- * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
31
- * @return bool True if the plugin identified by $pluginFile is being upgraded.
32
- */
33
- public function isPluginBeingUpgraded($pluginFile, $upgrader = null) {
34
- return $this->isBeingUpgraded('plugin', $pluginFile, $upgrader);
35
- }
36
-
37
- /**
38
- * Is there an update being installed for a specific theme?
39
- *
40
- * @param string $stylesheet Theme directory name.
41
- * @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
42
- * @return bool
43
- */
44
- public function isThemeBeingUpgraded($stylesheet, $upgrader = null) {
45
- return $this->isBeingUpgraded('theme', $stylesheet, $upgrader);
46
- }
47
-
48
- /**
49
- * Check if a specific theme or plugin is being upgraded.
50
- *
51
- * @param string $type
52
- * @param string $id
53
- * @param Plugin_Upgrader|WP_Upgrader|null $upgrader
54
- * @return bool
55
- */
56
- protected function isBeingUpgraded($type, $id, $upgrader = null) {
57
- if ( isset($upgrader) ) {
58
- list($currentType, $currentId) = $this->getThingBeingUpgradedBy($upgrader);
59
- if ( $currentType !== null ) {
60
- $this->currentType = $currentType;
61
- $this->currentId = $currentId;
62
- }
63
- }
64
- return ($this->currentType === $type) && ($this->currentId === $id);
65
- }
66
-
67
- /**
68
- * Figure out which theme or plugin is being upgraded by a WP_Upgrader instance.
69
- *
70
- * Returns an array with two items. The first item is the type of the thing that's being
71
- * upgraded: "plugin" or "theme". The second item is either the plugin basename or
72
- * the theme directory name. If we can't determine what the upgrader is doing, both items
73
- * will be NULL.
74
- *
75
- * Examples:
76
- * ['plugin', 'plugin-dir-name/plugin.php']
77
- * ['theme', 'theme-dir-name']
78
- *
79
- * @param Plugin_Upgrader|WP_Upgrader $upgrader
80
- * @return array
81
- */
82
- private function getThingBeingUpgradedBy($upgrader) {
83
- if ( !isset($upgrader, $upgrader->skin) ) {
84
- return array(null, null);
85
- }
86
-
87
- //Figure out which plugin or theme is being upgraded.
88
- $pluginFile = null;
89
- $themeDirectoryName = null;
90
-
91
- $skin = $upgrader->skin;
92
- if ( isset($skin->theme_info) && ($skin->theme_info instanceof WP_Theme) ) {
93
- $themeDirectoryName = $skin->theme_info->get_stylesheet();
94
- } elseif ( $skin instanceof Plugin_Upgrader_Skin ) {
95
- if ( isset($skin->plugin) && is_string($skin->plugin) && ($skin->plugin !== '') ) {
96
- $pluginFile = $skin->plugin;
97
- }
98
- } elseif ( $skin instanceof Theme_Upgrader_Skin ) {
99
- if ( isset($skin->theme) && is_string($skin->theme) && ($skin->theme !== '') ) {
100
- $themeDirectoryName = $skin->theme;
101
- }
102
- } elseif ( isset($skin->plugin_info) && is_array($skin->plugin_info) ) {
103
- //This case is tricky because Bulk_Plugin_Upgrader_Skin (etc) doesn't actually store the plugin
104
- //filename anywhere. Instead, it has the plugin headers in $plugin_info. So the best we can
105
- //do is compare those headers to the headers of installed plugins.
106
- $pluginFile = $this->identifyPluginByHeaders($skin->plugin_info);
107
- }
108
-
109
- if ( $pluginFile !== null ) {
110
- return array('plugin', $pluginFile);
111
- } elseif ( $themeDirectoryName !== null ) {
112
- return array('theme', $themeDirectoryName);
113
- }
114
- return array(null, null);
115
- }
116
-
117
- /**
118
- * Identify an installed plugin based on its headers.
119
- *
120
- * @param array $searchHeaders The plugin file header to look for.
121
- * @return string|null Plugin basename ("foo/bar.php"), or NULL if we can't identify the plugin.
122
- */
123
- private function identifyPluginByHeaders($searchHeaders) {
124
- if ( !function_exists('get_plugins') ){
125
- /** @noinspection PhpIncludeInspection */
126
- require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
127
- }
128
-
129
- $installedPlugins = get_plugins();
130
- $matches = array();
131
- foreach($installedPlugins as $pluginBasename => $headers) {
132
- $diff1 = array_diff_assoc($headers, $searchHeaders);
133
- $diff2 = array_diff_assoc($searchHeaders, $headers);
134
- if ( empty($diff1) && empty($diff2) ) {
135
- $matches[] = $pluginBasename;
136
- }
137
- }
138
-
139
- //It's possible (though very unlikely) that there could be two plugins with identical
140
- //headers. In that case, we can't unambiguously identify the plugin that's being upgraded.
141
- if ( count($matches) !== 1 ) {
142
- return null;
143
- }
144
-
145
- return reset($matches);
146
- }
147
-
148
- /**
149
- * @access private
150
- *
151
- * @param mixed $input
152
- * @param array $hookExtra
153
- * @return mixed Returns $input unaltered.
154
- */
155
- public function setUpgradedThing($input, $hookExtra) {
156
- if ( !empty($hookExtra['plugin']) && is_string($hookExtra['plugin']) ) {
157
- $this->currentId = $hookExtra['plugin'];
158
- $this->currentType = 'plugin';
159
- } elseif ( !empty($hookExtra['theme']) && is_string($hookExtra['theme']) ) {
160
- $this->currentId = $hookExtra['theme'];
161
- $this->currentType = 'theme';
162
- } else {
163
- $this->currentType = null;
164
- $this->currentId = null;
165
- }
166
- return $input;
167
- }
168
-
169
- /**
170
- * @access private
171
- *
172
- * @param array $options
173
- * @return array
174
- */
175
- public function setUpgradedPluginFromOptions($options) {
176
- if ( isset($options['hook_extra']['plugin']) && is_string($options['hook_extra']['plugin']) ) {
177
- $this->currentType = 'plugin';
178
- $this->currentId = $options['hook_extra']['plugin'];
179
- } else {
180
- $this->currentType = null;
181
- $this->currentId = null;
182
- }
183
- return $options;
184
- }
185
-
186
- /**
187
- * @access private
188
- *
189
- * @param mixed $input
190
- * @return mixed Returns $input unaltered.
191
- */
192
- public function clearUpgradedThing($input = null) {
193
- $this->currentId = null;
194
- $this->currentType = null;
195
- return $input;
196
- }
197
- }
198
-
199
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Utils.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Utils', false) ):
4
-
5
- class Puc_v4p11_Utils {
6
- /**
7
- * Get a value from a nested array or object based on a path.
8
- *
9
- * @param array|object|null $collection Get an entry from this array.
10
- * @param array|string $path A list of array keys in hierarchy order, or a string path like "foo.bar.baz".
11
- * @param mixed $default The value to return if the specified path is not found.
12
- * @param string $separator Path element separator. Only applies to string paths.
13
- * @return mixed
14
- */
15
- public static function get($collection, $path, $default = null, $separator = '.') {
16
- if ( is_string($path) ) {
17
- $path = explode($separator, $path);
18
- }
19
-
20
- //Follow the $path into $input as far as possible.
21
- $currentValue = $collection;
22
- foreach ($path as $node) {
23
- if ( is_array($currentValue) && isset($currentValue[$node]) ) {
24
- $currentValue = $currentValue[$node];
25
- } else if ( is_object($currentValue) && isset($currentValue->$node) ) {
26
- $currentValue = $currentValue->$node;
27
- } else {
28
- return $default;
29
- }
30
- }
31
-
32
- return $currentValue;
33
- }
34
-
35
- /**
36
- * Get the first array element that is not empty.
37
- *
38
- * @param array $values
39
- * @param mixed|null $default Returns this value if there are no non-empty elements.
40
- * @return mixed|null
41
- */
42
- public static function findNotEmpty($values, $default = null) {
43
- if ( empty($values) ) {
44
- return $default;
45
- }
46
-
47
- foreach ($values as $value) {
48
- if ( !empty($value) ) {
49
- return $value;
50
- }
51
- }
52
-
53
- return $default;
54
- }
55
-
56
- /**
57
- * Check if the input string starts with the specified prefix.
58
- *
59
- * @param string $input
60
- * @param string $prefix
61
- * @return bool
62
- */
63
- public static function startsWith($input, $prefix) {
64
- $length = strlen($prefix);
65
- return (substr($input, 0, $length) === $prefix);
66
- }
67
- }
68
-
69
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/Api.php DELETED
@@ -1,302 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Vcs_Api') ):
3
-
4
- abstract class Puc_v4p11_Vcs_Api {
5
- protected $tagNameProperty = 'name';
6
- protected $slug = '';
7
-
8
- /**
9
- * @var string
10
- */
11
- protected $repositoryUrl = '';
12
-
13
- /**
14
- * @var mixed Authentication details for private repositories. Format depends on service.
15
- */
16
- protected $credentials = null;
17
-
18
- /**
19
- * @var string The filter tag that's used to filter options passed to wp_remote_get.
20
- * For example, "puc_request_info_options-slug" or "puc_request_update_options_theme-slug".
21
- */
22
- protected $httpFilterName = '';
23
-
24
- /**
25
- * @var string|null
26
- */
27
- protected $localDirectory = null;
28
-
29
- /**
30
- * Puc_v4p11_Vcs_Api constructor.
31
- *
32
- * @param string $repositoryUrl
33
- * @param array|string|null $credentials
34
- */
35
- public function __construct($repositoryUrl, $credentials = null) {
36
- $this->repositoryUrl = $repositoryUrl;
37
- $this->setAuthentication($credentials);
38
- }
39
-
40
- /**
41
- * @return string
42
- */
43
- public function getRepositoryUrl() {
44
- return $this->repositoryUrl;
45
- }
46
-
47
- /**
48
- * Figure out which reference (i.e tag or branch) contains the latest version.
49
- *
50
- * @param string $configBranch Start looking in this branch.
51
- * @return null|Puc_v4p11_Vcs_Reference
52
- */
53
- abstract public function chooseReference($configBranch);
54
-
55
- /**
56
- * Get the readme.txt file from the remote repository and parse it
57
- * according to the plugin readme standard.
58
- *
59
- * @param string $ref Tag or branch name.
60
- * @return array Parsed readme.
61
- */
62
- public function getRemoteReadme($ref = 'master') {
63
- $fileContents = $this->getRemoteFile($this->getLocalReadmeName(), $ref);
64
- if ( empty($fileContents) ) {
65
- return array();
66
- }
67
-
68
- $parser = new PucReadmeParser();
69
- return $parser->parse_readme_contents($fileContents);
70
- }
71
-
72
- /**
73
- * Get the case-sensitive name of the local readme.txt file.
74
- *
75
- * In most cases it should just be called "readme.txt", but some plugins call it "README.txt",
76
- * "README.TXT", or even "Readme.txt". Most VCS are case-sensitive so we need to know the correct
77
- * capitalization.
78
- *
79
- * Defaults to "readme.txt" (all lowercase).
80
- *
81
- * @return string
82
- */
83
- public function getLocalReadmeName() {
84
- static $fileName = null;
85
- if ( $fileName !== null ) {
86
- return $fileName;
87
- }
88
-
89
- $fileName = 'readme.txt';
90
- if ( isset($this->localDirectory) ) {
91
- $files = scandir($this->localDirectory);
92
- if ( !empty($files) ) {
93
- foreach ($files as $possibleFileName) {
94
- if ( strcasecmp($possibleFileName, 'readme.txt') === 0 ) {
95
- $fileName = $possibleFileName;
96
- break;
97
- }
98
- }
99
- }
100
- }
101
- return $fileName;
102
- }
103
-
104
- /**
105
- * Get a branch.
106
- *
107
- * @param string $branchName
108
- * @return Puc_v4p11_Vcs_Reference|null
109
- */
110
- abstract public function getBranch($branchName);
111
-
112
- /**
113
- * Get a specific tag.
114
- *
115
- * @param string $tagName
116
- * @return Puc_v4p11_Vcs_Reference|null
117
- */
118
- abstract public function getTag($tagName);
119
-
120
- /**
121
- * Get the tag that looks like the highest version number.
122
- * (Implementations should skip pre-release versions if possible.)
123
- *
124
- * @return Puc_v4p11_Vcs_Reference|null
125
- */
126
- abstract public function getLatestTag();
127
-
128
- /**
129
- * Check if a tag name string looks like a version number.
130
- *
131
- * @param string $name
132
- * @return bool
133
- */
134
- protected function looksLikeVersion($name) {
135
- //Tag names may be prefixed with "v", e.g. "v1.2.3".
136
- $name = ltrim($name, 'v');
137
-
138
- //The version string must start with a number.
139
- if ( !is_numeric(substr($name, 0, 1)) ) {
140
- return false;
141
- }
142
-
143
- //The goal is to accept any SemVer-compatible or "PHP-standardized" version number.
144
- return (preg_match('@^(\d{1,5}?)(\.\d{1,10}?){0,4}?($|[abrdp+_\-]|\s)@i', $name) === 1);
145
- }
146
-
147
- /**
148
- * Check if a tag appears to be named like a version number.
149
- *
150
- * @param stdClass $tag
151
- * @return bool
152
- */
153
- protected function isVersionTag($tag) {
154
- $property = $this->tagNameProperty;
155
- return isset($tag->$property) && $this->looksLikeVersion($tag->$property);
156
- }
157
-
158
- /**
159
- * Sort a list of tags as if they were version numbers.
160
- * Tags that don't look like version number will be removed.
161
- *
162
- * @param stdClass[] $tags Array of tag objects.
163
- * @return stdClass[] Filtered array of tags sorted in descending order.
164
- */
165
- protected function sortTagsByVersion($tags) {
166
- //Keep only those tags that look like version numbers.
167
- $versionTags = array_filter($tags, array($this, 'isVersionTag'));
168
- //Sort them in descending order.
169
- usort($versionTags, array($this, 'compareTagNames'));
170
-
171
- return $versionTags;
172
- }
173
-
174
- /**
175
- * Compare two tags as if they were version number.
176
- *
177
- * @param stdClass $tag1 Tag object.
178
- * @param stdClass $tag2 Another tag object.
179
- * @return int
180
- */
181
- protected function compareTagNames($tag1, $tag2) {
182
- $property = $this->tagNameProperty;
183
- if ( !isset($tag1->$property) ) {
184
- return 1;
185
- }
186
- if ( !isset($tag2->$property) ) {
187
- return -1;
188
- }
189
- return -version_compare(ltrim($tag1->$property, 'v'), ltrim($tag2->$property, 'v'));
190
- }
191
-
192
- /**
193
- * Get the contents of a file from a specific branch or tag.
194
- *
195
- * @param string $path File name.
196
- * @param string $ref
197
- * @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
198
- */
199
- abstract public function getRemoteFile($path, $ref = 'master');
200
-
201
- /**
202
- * Get the timestamp of the latest commit that changed the specified branch or tag.
203
- *
204
- * @param string $ref Reference name (e.g. branch or tag).
205
- * @return string|null
206
- */
207
- abstract public function getLatestCommitTime($ref);
208
-
209
- /**
210
- * Get the contents of the changelog file from the repository.
211
- *
212
- * @param string $ref
213
- * @param string $localDirectory Full path to the local plugin or theme directory.
214
- * @return null|string The HTML contents of the changelog.
215
- */
216
- public function getRemoteChangelog($ref, $localDirectory) {
217
- $filename = $this->findChangelogName($localDirectory);
218
- if ( empty($filename) ) {
219
- return null;
220
- }
221
-
222
- $changelog = $this->getRemoteFile($filename, $ref);
223
- if ( $changelog === null ) {
224
- return null;
225
- }
226
-
227
- /** @noinspection PhpUndefinedClassInspection */
228
- return Parsedown::instance()->text($changelog);
229
- }
230
-
231
- /**
232
- * Guess the name of the changelog file.
233
- *
234
- * @param string $directory
235
- * @return string|null
236
- */
237
- protected function findChangelogName($directory = null) {
238
- if ( !isset($directory) ) {
239
- $directory = $this->localDirectory;
240
- }
241
- if ( empty($directory) || !is_dir($directory) || ($directory === '.') ) {
242
- return null;
243
- }
244
-
245
- $possibleNames = array('CHANGES.md', 'CHANGELOG.md', 'changes.md', 'changelog.md');
246
- $files = scandir($directory);
247
- $foundNames = array_intersect($possibleNames, $files);
248
-
249
- if ( !empty($foundNames) ) {
250
- return reset($foundNames);
251
- }
252
- return null;
253
- }
254
-
255
- /**
256
- * Set authentication credentials.
257
- *
258
- * @param $credentials
259
- */
260
- public function setAuthentication($credentials) {
261
- $this->credentials = $credentials;
262
- }
263
-
264
- public function isAuthenticationEnabled() {
265
- return !empty($this->credentials);
266
- }
267
-
268
- /**
269
- * @param string $url
270
- * @return string
271
- */
272
- public function signDownloadUrl($url) {
273
- return $url;
274
- }
275
-
276
- /**
277
- * @param string $filterName
278
- */
279
- public function setHttpFilterName($filterName) {
280
- $this->httpFilterName = $filterName;
281
- }
282
-
283
- /**
284
- * @param string $directory
285
- */
286
- public function setLocalDirectory($directory) {
287
- if ( empty($directory) || !is_dir($directory) || ($directory === '.') ) {
288
- $this->localDirectory = null;
289
- } else {
290
- $this->localDirectory = $directory;
291
- }
292
- }
293
-
294
- /**
295
- * @param string $slug
296
- */
297
- public function setSlug($slug) {
298
- $this->slug = $slug;
299
- }
300
- }
301
-
302
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/BaseChecker.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- if ( !interface_exists('Puc_v4p11_Vcs_BaseChecker', false) ):
3
-
4
- interface Puc_v4p11_Vcs_BaseChecker {
5
- /**
6
- * Set the repository branch to use for updates. Defaults to 'master'.
7
- *
8
- * @param string $branch
9
- * @return $this
10
- */
11
- public function setBranch($branch);
12
-
13
- /**
14
- * Set authentication credentials.
15
- *
16
- * @param array|string $credentials
17
- * @return $this
18
- */
19
- public function setAuthentication($credentials);
20
-
21
- /**
22
- * @return Puc_v4p11_Vcs_Api
23
- */
24
- public function getVcsApi();
25
- }
26
-
27
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/BitBucketApi.php DELETED
@@ -1,273 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Vcs_BitBucketApi', false) ):
3
-
4
- class Puc_v4p11_Vcs_BitBucketApi extends Puc_v4p11_Vcs_Api {
5
- /**
6
- * @var Puc_v4p11_OAuthSignature
7
- */
8
- private $oauth = null;
9
-
10
- /**
11
- * @var string
12
- */
13
- private $username;
14
-
15
- /**
16
- * @var string
17
- */
18
- private $repository;
19
-
20
- public function __construct($repositoryUrl, $credentials = array()) {
21
- $path = parse_url($repositoryUrl, PHP_URL_PATH);
22
- if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) {
23
- $this->username = $matches['username'];
24
- $this->repository = $matches['repository'];
25
- } else {
26
- throw new InvalidArgumentException('Invalid BitBucket repository URL: "' . $repositoryUrl . '"');
27
- }
28
-
29
- parent::__construct($repositoryUrl, $credentials);
30
- }
31
-
32
- /**
33
- * Figure out which reference (i.e tag or branch) contains the latest version.
34
- *
35
- * @param string $configBranch Start looking in this branch.
36
- * @return null|Puc_v4p11_Vcs_Reference
37
- */
38
- public function chooseReference($configBranch) {
39
- $updateSource = null;
40
-
41
- //Check if there's a "Stable tag: 1.2.3" header that points to a valid tag.
42
- $updateSource = $this->getStableTag($configBranch);
43
-
44
- //Look for version-like tags.
45
- if ( !$updateSource && ($configBranch === 'master' || $configBranch === 'main') ) {
46
- $updateSource = $this->getLatestTag();
47
- }
48
- //If all else fails, use the specified branch itself.
49
- if ( !$updateSource ) {
50
- $updateSource = $this->getBranch($configBranch);
51
- }
52
-
53
- return $updateSource;
54
- }
55
-
56
- public function getBranch($branchName) {
57
- $branch = $this->api('/refs/branches/' . $branchName);
58
- if ( is_wp_error($branch) || empty($branch) ) {
59
- return null;
60
- }
61
-
62
- //The "/src/{stuff}/{path}" endpoint doesn't seem to handle branch names that contain slashes.
63
- //If we don't encode the slash, we get a 404. If we encode it as "%2F", we get a 401.
64
- //To avoid issues, if the branch name is not URL-safe, let's use the commit hash instead.
65
- $ref = $branch->name;
66
- if ((urlencode($ref) !== $ref) && isset($branch->target->hash)) {
67
- $ref = $branch->target->hash;
68
- }
69
-
70
- return new Puc_v4p11_Vcs_Reference(array(
71
- 'name' => $ref,
72
- 'updated' => $branch->target->date,
73
- 'downloadUrl' => $this->getDownloadUrl($branch->name),
74
- ));
75
- }
76
-
77
- /**
78
- * Get a specific tag.
79
- *
80
- * @param string $tagName
81
- * @return Puc_v4p11_Vcs_Reference|null
82
- */
83
- public function getTag($tagName) {
84
- $tag = $this->api('/refs/tags/' . $tagName);
85
- if ( is_wp_error($tag) || empty($tag) ) {
86
- return null;
87
- }
88
-
89
- return new Puc_v4p11_Vcs_Reference(array(
90
- 'name' => $tag->name,
91
- 'version' => ltrim($tag->name, 'v'),
92
- 'updated' => $tag->target->date,
93
- 'downloadUrl' => $this->getDownloadUrl($tag->name),
94
- ));
95
- }
96
-
97
- /**
98
- * Get the tag that looks like the highest version number.
99
- *
100
- * @return Puc_v4p11_Vcs_Reference|null
101
- */
102
- public function getLatestTag() {
103
- $tags = $this->api('/refs/tags?sort=-target.date');
104
- if ( !isset($tags, $tags->values) || !is_array($tags->values) ) {
105
- return null;
106
- }
107
-
108
- //Filter and sort the list of tags.
109
- $versionTags = $this->sortTagsByVersion($tags->values);
110
-
111
- //Return the first result.
112
- if ( !empty($versionTags) ) {
113
- $tag = $versionTags[0];
114
- return new Puc_v4p11_Vcs_Reference(array(
115
- 'name' => $tag->name,
116
- 'version' => ltrim($tag->name, 'v'),
117
- 'updated' => $tag->target->date,
118
- 'downloadUrl' => $this->getDownloadUrl($tag->name),
119
- ));
120
- }
121
- return null;
122
- }
123
-
124
- /**
125
- * Get the tag/ref specified by the "Stable tag" header in the readme.txt of a given branch.
126
- *
127
- * @param string $branch
128
- * @return null|Puc_v4p11_Vcs_Reference
129
- */
130
- protected function getStableTag($branch) {
131
- $remoteReadme = $this->getRemoteReadme($branch);
132
- if ( !empty($remoteReadme['stable_tag']) ) {
133
- $tag = $remoteReadme['stable_tag'];
134
-
135
- //You can explicitly opt out of using tags by setting "Stable tag" to
136
- //"trunk" or the name of the current branch.
137
- if ( ($tag === $branch) || ($tag === 'trunk') ) {
138
- return $this->getBranch($branch);
139
- }
140
-
141
- return $this->getTag($tag);
142
- }
143
-
144
- return null;
145
- }
146
-
147
- /**
148
- * @param string $ref
149
- * @return string
150
- */
151
- protected function getDownloadUrl($ref) {
152
- return sprintf(
153
- 'https://bitbucket.org/%s/%s/get/%s.zip',
154
- $this->username,
155
- $this->repository,
156
- $ref
157
- );
158
- }
159
-
160
- /**
161
- * Get the contents of a file from a specific branch or tag.
162
- *
163
- * @param string $path File name.
164
- * @param string $ref
165
- * @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
166
- */
167
- public function getRemoteFile($path, $ref = 'master') {
168
- $response = $this->api('src/' . $ref . '/' . ltrim($path));
169
- if ( is_wp_error($response) || !is_string($response) ) {
170
- return null;
171
- }
172
- return $response;
173
- }
174
-
175
- /**
176
- * Get the timestamp of the latest commit that changed the specified branch or tag.
177
- *
178
- * @param string $ref Reference name (e.g. branch or tag).
179
- * @return string|null
180
- */
181
- public function getLatestCommitTime($ref) {
182
- $response = $this->api('commits/' . $ref);
183
- if ( isset($response->values, $response->values[0], $response->values[0]->date) ) {
184
- return $response->values[0]->date;
185
- }
186
- return null;
187
- }
188
-
189
- /**
190
- * Perform a BitBucket API 2.0 request.
191
- *
192
- * @param string $url
193
- * @param string $version
194
- * @return mixed|WP_Error
195
- */
196
- public function api($url, $version = '2.0') {
197
- $url = ltrim($url, '/');
198
- $isSrcResource = Puc_v4p11_Utils::startsWith($url, 'src/');
199
-
200
- $url = implode('/', array(
201
- 'https://api.bitbucket.org',
202
- $version,
203
- 'repositories',
204
- $this->username,
205
- $this->repository,
206
- $url
207
- ));
208
- $baseUrl = $url;
209
-
210
- if ( $this->oauth ) {
211
- $url = $this->oauth->sign($url,'GET');
212
- }
213
-
214
- $options = array('timeout' => 10);
215
- if ( !empty($this->httpFilterName) ) {
216
- $options = apply_filters($this->httpFilterName, $options);
217
- }
218
- $response = wp_remote_get($url, $options);
219
- if ( is_wp_error($response) ) {
220
- do_action('puc_api_error', $response, null, $url, $this->slug);
221
- return $response;
222
- }
223
-
224
- $code = wp_remote_retrieve_response_code($response);
225
- $body = wp_remote_retrieve_body($response);
226
- if ( $code === 200 ) {
227
- if ( $isSrcResource ) {
228
- //Most responses are JSON-encoded, but src resources just
229
- //return raw file contents.
230
- $document = $body;
231
- } else {
232
- $document = json_decode($body);
233
- }
234
- return $document;
235
- }
236
-
237
- $error = new WP_Error(
238
- 'puc-bitbucket-http-error',
239
- sprintf('BitBucket API error. Base URL: "%s", HTTP status code: %d.', $baseUrl, $code)
240
- );
241
- do_action('puc_api_error', $error, $response, $url, $this->slug);
242
-
243
- return $error;
244
- }
245
-
246
- /**
247
- * @param array $credentials
248
- */
249
- public function setAuthentication($credentials) {
250
- parent::setAuthentication($credentials);
251
-
252
- if ( !empty($credentials) && !empty($credentials['consumer_key']) ) {
253
- $this->oauth = new Puc_v4p11_OAuthSignature(
254
- $credentials['consumer_key'],
255
- $credentials['consumer_secret']
256
- );
257
- } else {
258
- $this->oauth = null;
259
- }
260
- }
261
-
262
- public function signDownloadUrl($url) {
263
- //Add authentication data to download URLs. Since OAuth signatures incorporate
264
- //timestamps, we have to do this immediately before inserting the update. Otherwise
265
- //authentication could fail due to a stale timestamp.
266
- if ( $this->oauth ) {
267
- $url = $this->oauth->sign($url);
268
- }
269
- return $url;
270
- }
271
- }
272
-
273
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/GitHubApi.php DELETED
@@ -1,441 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Vcs_GitHubApi', false) ):
4
-
5
- class Puc_v4p11_Vcs_GitHubApi extends Puc_v4p11_Vcs_Api {
6
- /**
7
- * @var string GitHub username.
8
- */
9
- protected $userName;
10
- /**
11
- * @var string GitHub repository name.
12
- */
13
- protected $repositoryName;
14
-
15
- /**
16
- * @var string Either a fully qualified repository URL, or just "user/repo-name".
17
- */
18
- protected $repositoryUrl;
19
-
20
- /**
21
- * @var string GitHub authentication token. Optional.
22
- */
23
- protected $accessToken;
24
-
25
- /**
26
- * @var bool Whether to download release assets instead of the auto-generated source code archives.
27
- */
28
- protected $releaseAssetsEnabled = false;
29
-
30
- /**
31
- * @var string|null Regular expression that's used to filter release assets by name. Optional.
32
- */
33
- protected $assetFilterRegex = null;
34
-
35
- /**
36
- * @var string|null The unchanging part of a release asset URL. Used to identify download attempts.
37
- */
38
- protected $assetApiBaseUrl = null;
39
-
40
- /**
41
- * @var bool
42
- */
43
- private $downloadFilterAdded = false;
44
-
45
- public function __construct($repositoryUrl, $accessToken = null) {
46
- $path = parse_url($repositoryUrl, PHP_URL_PATH);
47
- if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) {
48
- $this->userName = $matches['username'];
49
- $this->repositoryName = $matches['repository'];
50
- } else {
51
- throw new InvalidArgumentException('Invalid GitHub repository URL: "' . $repositoryUrl . '"');
52
- }
53
-
54
- parent::__construct($repositoryUrl, $accessToken);
55
- }
56
-
57
- /**
58
- * Get the latest release from GitHub.
59
- *
60
- * @return Puc_v4p11_Vcs_Reference|null
61
- */
62
- public function getLatestRelease() {
63
- $release = $this->api('/repos/:user/:repo/releases/latest');
64
- if ( is_wp_error($release) || !is_object($release) || !isset($release->tag_name) ) {
65
- return null;
66
- }
67
-
68
- $reference = new Puc_v4p11_Vcs_Reference(array(
69
- 'name' => $release->tag_name,
70
- 'version' => ltrim($release->tag_name, 'v'), //Remove the "v" prefix from "v1.2.3".
71
- 'downloadUrl' => $release->zipball_url,
72
- 'updated' => $release->created_at,
73
- 'apiResponse' => $release,
74
- ));
75
-
76
- if ( isset($release->assets[0]) ) {
77
- $reference->downloadCount = $release->assets[0]->download_count;
78
- }
79
-
80
- if ( $this->releaseAssetsEnabled && isset($release->assets, $release->assets[0]) ) {
81
- //Use the first release asset that matches the specified regular expression.
82
- $matchingAssets = array_filter($release->assets, array($this, 'matchesAssetFilter'));
83
- if ( !empty($matchingAssets) ) {
84
- if ( $this->isAuthenticationEnabled() ) {
85
- /**
86
- * Keep in mind that we'll need to add an "Accept" header to download this asset.
87
- *
88
- * @see setUpdateDownloadHeaders()
89
- */
90
- $reference->downloadUrl = $matchingAssets[0]->url;
91
- } else {
92
- //It seems that browser_download_url only works for public repositories.
93
- //Using an access_token doesn't help. Maybe OAuth would work?
94
- $reference->downloadUrl = $matchingAssets[0]->browser_download_url;
95
- }
96
-
97
- $reference->downloadCount = $matchingAssets[0]->download_count;
98
- }
99
- }
100
-
101
- if ( !empty($release->body) ) {
102
- /** @noinspection PhpUndefinedClassInspection */
103
- $reference->changelog = Parsedown::instance()->text($release->body);
104
- }
105
-
106
- return $reference;
107
- }
108
-
109
- /**
110
- * Get the tag that looks like the highest version number.
111
- *
112
- * @return Puc_v4p11_Vcs_Reference|null
113
- */
114
- public function getLatestTag() {
115
- $tags = $this->api('/repos/:user/:repo/tags');
116
-
117
- if ( is_wp_error($tags) || !is_array($tags) ) {
118
- return null;
119
- }
120
-
121
- $versionTags = $this->sortTagsByVersion($tags);
122
- if ( empty($versionTags) ) {
123
- return null;
124
- }
125
-
126
- $tag = $versionTags[0];
127
- return new Puc_v4p11_Vcs_Reference(array(
128
- 'name' => $tag->name,
129
- 'version' => ltrim($tag->name, 'v'),
130
- 'downloadUrl' => $tag->zipball_url,
131
- 'apiResponse' => $tag,
132
- ));
133
- }
134
-
135
- /**
136
- * Get a branch by name.
137
- *
138
- * @param string $branchName
139
- * @return null|Puc_v4p11_Vcs_Reference
140
- */
141
- public function getBranch($branchName) {
142
- $branch = $this->api('/repos/:user/:repo/branches/' . $branchName);
143
- if ( is_wp_error($branch) || empty($branch) ) {
144
- return null;
145
- }
146
-
147
- $reference = new Puc_v4p11_Vcs_Reference(array(
148
- 'name' => $branch->name,
149
- 'downloadUrl' => $this->buildArchiveDownloadUrl($branch->name),
150
- 'apiResponse' => $branch,
151
- ));
152
-
153
- if ( isset($branch->commit, $branch->commit->commit, $branch->commit->commit->author->date) ) {
154
- $reference->updated = $branch->commit->commit->author->date;
155
- }
156
-
157
- return $reference;
158
- }
159
-
160
- /**
161
- * Get the latest commit that changed the specified file.
162
- *
163
- * @param string $filename
164
- * @param string $ref Reference name (e.g. branch or tag).
165
- * @return StdClass|null
166
- */
167
- public function getLatestCommit($filename, $ref = 'master') {
168
- $commits = $this->api(
169
- '/repos/:user/:repo/commits',
170
- array(
171
- 'path' => $filename,
172
- 'sha' => $ref,
173
- )
174
- );
175
- if ( !is_wp_error($commits) && isset($commits[0]) ) {
176
- return $commits[0];
177
- }
178
- return null;
179
- }
180
-
181
- /**
182
- * Get the timestamp of the latest commit that changed the specified branch or tag.
183
- *
184
- * @param string $ref Reference name (e.g. branch or tag).
185
- * @return string|null
186
- */
187
- public function getLatestCommitTime($ref) {
188
- $commits = $this->api('/repos/:user/:repo/commits', array('sha' => $ref));
189
- if ( !is_wp_error($commits) && isset($commits[0]) ) {
190
- return $commits[0]->commit->author->date;
191
- }
192
- return null;
193
- }
194
-
195
- /**
196
- * Perform a GitHub API request.
197
- *
198
- * @param string $url
199
- * @param array $queryParams
200
- * @return mixed|WP_Error
201
- */
202
- protected function api($url, $queryParams = array()) {
203
- $baseUrl = $url;
204
- $url = $this->buildApiUrl($url, $queryParams);
205
-
206
- $options = array('timeout' => 10);
207
- if ( $this->isAuthenticationEnabled() ) {
208
- $options['headers'] = array('Authorization' => $this->getAuthorizationHeader());
209
- }
210
-
211
- if ( !empty($this->httpFilterName) ) {
212
- $options = apply_filters($this->httpFilterName, $options);
213
- }
214
- $response = wp_remote_get($url, $options);
215
- if ( is_wp_error($response) ) {
216
- do_action('puc_api_error', $response, null, $url, $this->slug);
217
- return $response;
218
- }
219
-
220
- $code = wp_remote_retrieve_response_code($response);
221
- $body = wp_remote_retrieve_body($response);
222
- if ( $code === 200 ) {
223
- $document = json_decode($body);
224
- return $document;
225
- }
226
-
227
- $error = new WP_Error(
228
- 'puc-github-http-error',
229
- sprintf('GitHub API error. Base URL: "%s", HTTP status code: %d.', $baseUrl, $code)
230
- );
231
- do_action('puc_api_error', $error, $response, $url, $this->slug);
232
-
233
- return $error;
234
- }
235
-
236
- /**
237
- * Build a fully qualified URL for an API request.
238
- *
239
- * @param string $url
240
- * @param array $queryParams
241
- * @return string
242
- */
243
- protected function buildApiUrl($url, $queryParams) {
244
- $variables = array(
245
- 'user' => $this->userName,
246
- 'repo' => $this->repositoryName,
247
- );
248
- foreach ($variables as $name => $value) {
249
- $url = str_replace('/:' . $name, '/' . urlencode($value), $url);
250
- }
251
- $url = 'https://api.github.com' . $url;
252
-
253
- if ( !empty($queryParams) ) {
254
- $url = add_query_arg($queryParams, $url);
255
- }
256
-
257
- return $url;
258
- }
259
-
260
- /**
261
- * Get the contents of a file from a specific branch or tag.
262
- *
263
- * @param string $path File name.
264
- * @param string $ref
265
- * @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
266
- */
267
- public function getRemoteFile($path, $ref = 'master') {
268
- $apiUrl = '/repos/:user/:repo/contents/' . $path;
269
- $response = $this->api($apiUrl, array('ref' => $ref));
270
-
271
- if ( is_wp_error($response) || !isset($response->content) || ($response->encoding !== 'base64') ) {
272
- return null;
273
- }
274
- return base64_decode($response->content);
275
- }
276
-
277
- /**
278
- * Generate a URL to download a ZIP archive of the specified branch/tag/etc.
279
- *
280
- * @param string $ref
281
- * @return string
282
- */
283
- public function buildArchiveDownloadUrl($ref = 'master') {
284
- $url = sprintf(
285
- 'https://api.github.com/repos/%1$s/%2$s/zipball/%3$s',
286
- urlencode($this->userName),
287
- urlencode($this->repositoryName),
288
- urlencode($ref)
289
- );
290
- return $url;
291
- }
292
-
293
- /**
294
- * Get a specific tag.
295
- *
296
- * @param string $tagName
297
- * @return void
298
- */
299
- public function getTag($tagName) {
300
- //The current GitHub update checker doesn't use getTag, so I didn't bother to implement it.
301
- throw new LogicException('The ' . __METHOD__ . ' method is not implemented and should not be used.');
302
- }
303
-
304
- public function setAuthentication($credentials) {
305
- parent::setAuthentication($credentials);
306
- $this->accessToken = is_string($credentials) ? $credentials : null;
307
-
308
- //Optimization: Instead of filtering all HTTP requests, let's do it only when
309
- //WordPress is about to download an update.
310
- add_filter('upgrader_pre_download', array($this, 'addHttpRequestFilter'), 10, 1); //WP 3.7+
311
- }
312
-
313
- /**
314
- * Figure out which reference (i.e tag or branch) contains the latest version.
315
- *
316
- * @param string $configBranch Start looking in this branch.
317
- * @return null|Puc_v4p11_Vcs_Reference
318
- */
319
- public function chooseReference($configBranch) {
320
- $updateSource = null;
321
-
322
- if ( $configBranch === 'master' ) {
323
- //Use the latest release.
324
- $updateSource = $this->getLatestRelease();
325
- if ( $updateSource === null ) {
326
- //Failing that, use the tag with the highest version number.
327
- $updateSource = $this->getLatestTag();
328
- }
329
- }
330
- //Alternatively, just use the branch itself.
331
- if ( empty($updateSource) ) {
332
- $updateSource = $this->getBranch($configBranch);
333
- }
334
-
335
- return $updateSource;
336
- }
337
-
338
- /**
339
- * Enable updating via release assets.
340
- *
341
- * If the latest release contains no usable assets, the update checker
342
- * will fall back to using the automatically generated ZIP archive.
343
- *
344
- * Private repositories will only work with WordPress 3.7 or later.
345
- *
346
- * @param string|null $fileNameRegex Optional. Use only those assets where the file name matches this regex.
347
- */
348
- public function enableReleaseAssets($fileNameRegex = null) {
349
- $this->releaseAssetsEnabled = true;
350
- $this->assetFilterRegex = $fileNameRegex;
351
- $this->assetApiBaseUrl = sprintf(
352
- '//api.github.com/repos/%1$s/%2$s/releases/assets/',
353
- $this->userName,
354
- $this->repositoryName
355
- );
356
- }
357
-
358
- /**
359
- * Does this asset match the file name regex?
360
- *
361
- * @param stdClass $releaseAsset
362
- * @return bool
363
- */
364
- protected function matchesAssetFilter($releaseAsset) {
365
- if ( $this->assetFilterRegex === null ) {
366
- //The default is to accept all assets.
367
- return true;
368
- }
369
- return isset($releaseAsset->name) && preg_match($this->assetFilterRegex, $releaseAsset->name);
370
- }
371
-
372
- /**
373
- * @internal
374
- * @param bool $result
375
- * @return bool
376
- */
377
- public function addHttpRequestFilter($result) {
378
- if ( !$this->downloadFilterAdded && $this->isAuthenticationEnabled() ) {
379
- add_filter('http_request_args', array($this, 'setUpdateDownloadHeaders'), 10, 2);
380
- add_action('requests-requests.before_redirect', array($this, 'removeAuthHeaderFromRedirects'), 10, 4);
381
- $this->downloadFilterAdded = true;
382
- }
383
- return $result;
384
- }
385
-
386
- /**
387
- * Set the HTTP headers that are necessary to download updates from private repositories.
388
- *
389
- * See GitHub docs:
390
- * @link https://developer.github.com/v3/repos/releases/#get-a-single-release-asset
391
- * @link https://developer.github.com/v3/auth/#basic-authentication
392
- *
393
- * @internal
394
- * @param array $requestArgs
395
- * @param string $url
396
- * @return array
397
- */
398
- public function setUpdateDownloadHeaders($requestArgs, $url = '') {
399
- //Is WordPress trying to download one of our release assets?
400
- if ( $this->releaseAssetsEnabled && (strpos($url, $this->assetApiBaseUrl) !== false) ) {
401
- $requestArgs['headers']['Accept'] = 'application/octet-stream';
402
- }
403
- //Use Basic authentication, but only if the download is from our repository.
404
- $repoApiBaseUrl = $this->buildApiUrl('/repos/:user/:repo/', array());
405
- if ( $this->isAuthenticationEnabled() && (strpos($url, $repoApiBaseUrl)) === 0 ) {
406
- $requestArgs['headers']['Authorization'] = $this->getAuthorizationHeader();
407
- }
408
- return $requestArgs;
409
- }
410
-
411
- /**
412
- * When following a redirect, the Requests library will automatically forward
413
- * the authorization header to other hosts. We don't want that because it breaks
414
- * AWS downloads and can leak authorization information.
415
- *
416
- * @internal
417
- * @param string $location
418
- * @param array $headers
419
- */
420
- public function removeAuthHeaderFromRedirects(&$location, &$headers) {
421
- $repoApiBaseUrl = $this->buildApiUrl('/repos/:user/:repo/', array());
422
- if ( strpos($location, $repoApiBaseUrl) === 0 ) {
423
- return; //This request is going to GitHub, so it's fine.
424
- }
425
- //Remove the header.
426
- if ( isset($headers['Authorization']) ) {
427
- unset($headers['Authorization']);
428
- }
429
- }
430
-
431
- /**
432
- * Generate the value of the "Authorization" header.
433
- *
434
- * @return string
435
- */
436
- protected function getAuthorizationHeader() {
437
- return 'Basic ' . base64_encode($this->userName . ':' . $this->accessToken);
438
- }
439
- }
440
-
441
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/GitLabApi.php DELETED
@@ -1,399 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Vcs_GitLabApi', false) ):
4
-
5
- class Puc_v4p11_Vcs_GitLabApi extends Puc_v4p11_Vcs_Api {
6
- /**
7
- * @var string GitLab username.
8
- */
9
- protected $userName;
10
-
11
- /**
12
- * @var string GitLab server host.
13
- */
14
- protected $repositoryHost;
15
-
16
- /**
17
- * @var string Protocol used by this GitLab server: "http" or "https".
18
- */
19
- protected $repositoryProtocol = 'https';
20
-
21
- /**
22
- * @var string GitLab repository name.
23
- */
24
- protected $repositoryName;
25
-
26
- /**
27
- * @var string GitLab authentication token. Optional.
28
- */
29
- protected $accessToken;
30
-
31
- /**
32
- * @var bool Whether to download release assets instead of the auto-generated source code archives.
33
- */
34
- protected $releaseAssetsEnabled = false;
35
-
36
- /**
37
- * @var bool Whether to download release asset package rather than release asset source.
38
- */
39
- protected $releasePackageEnabled = false;
40
-
41
- public function __construct($repositoryUrl, $accessToken = null, $subgroup = null) {
42
- //Parse the repository host to support custom hosts.
43
- $port = parse_url($repositoryUrl, PHP_URL_PORT);
44
- if ( !empty($port) ) {
45
- $port = ':' . $port;
46
- }
47
- $this->repositoryHost = parse_url($repositoryUrl, PHP_URL_HOST) . $port;
48
-
49
- if ( $this->repositoryHost !== 'gitlab.com' ) {
50
- $this->repositoryProtocol = parse_url($repositoryUrl, PHP_URL_SCHEME);
51
- }
52
-
53
- //Find the repository information
54
- $path = parse_url($repositoryUrl, PHP_URL_PATH);
55
- if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) {
56
- $this->userName = $matches['username'];
57
- $this->repositoryName = $matches['repository'];
58
- } elseif ( ($this->repositoryHost === 'gitlab.com') ) {
59
- //This is probably a repository in a subgroup, e.g. "/organization/category/repo".
60
- $parts = explode('/', trim($path, '/'));
61
- if ( count($parts) < 3 ) {
62
- throw new InvalidArgumentException('Invalid GitLab.com repository URL: "' . $repositoryUrl . '"');
63
- }
64
- $lastPart = array_pop($parts);
65
- $this->userName = implode('/', $parts);
66
- $this->repositoryName = $lastPart;
67
- } else {
68
- //There could be subgroups in the URL: gitlab.domain.com/group/subgroup/subgroup2/repository
69
- if ( $subgroup !== null ) {
70
- $path = str_replace(trailingslashit($subgroup), '', $path);
71
- }
72
-
73
- //This is not a traditional url, it could be gitlab is in a deeper subdirectory.
74
- //Get the path segments.
75
- $segments = explode('/', untrailingslashit(ltrim($path, '/')));
76
-
77
- //We need at least /user-name/repository-name/
78
- if ( count($segments) < 2 ) {
79
- throw new InvalidArgumentException('Invalid GitLab repository URL: "' . $repositoryUrl . '"');
80
- }
81
-
82
- //Get the username and repository name.
83
- $usernameRepo = array_splice($segments, -2, 2);
84
- $this->userName = $usernameRepo[0];
85
- $this->repositoryName = $usernameRepo[1];
86
-
87
- //Append the remaining segments to the host if there are segments left.
88
- if ( count($segments) > 0 ) {
89
- $this->repositoryHost = trailingslashit($this->repositoryHost) . implode('/', $segments);
90
- }
91
-
92
- //Add subgroups to username.
93
- if ( $subgroup !== null ) {
94
- $this->userName = $usernameRepo[0] . '/' . untrailingslashit($subgroup);
95
- }
96
- }
97
-
98
- parent::__construct($repositoryUrl, $accessToken);
99
- }
100
-
101
- /**
102
- * Get the latest release from GitLab.
103
- *
104
- * @return Puc_v4p11_Vcs_Reference|null
105
- */
106
- public function getLatestRelease() {
107
- $releases = $this->api('/:id/releases');
108
- if ( is_wp_error($releases) || empty($releases) || !is_array($releases) ) {
109
- return null;
110
- }
111
-
112
- foreach ($releases as $release) {
113
- if ( true !== $release->upcoming_release ) {
114
- break 1; //Break the loop on the first release we find that isn't an upcoming release
115
- }
116
- }
117
- if ( is_wp_error($release) || !is_object($release) || !isset($release->tag_name) ) {
118
- return null;
119
- }
120
-
121
- $reference = new Puc_v4p11_Vcs_Reference(array(
122
- 'name' => $release->tag_name,
123
- 'version' => ltrim($release->tag_name, 'v'), //Remove the "v" prefix from "v1.2.3".
124
- 'downloadUrl' => '',
125
- 'updated' => $release->released_at,
126
- 'apiResponse' => $release,
127
- ));
128
- $download_url = false;
129
-
130
- if ( $this->releasePackageEnabled && isset($release->assets, $release->assets->links) ) {
131
- /**
132
- * Use the first asset LINK that is a zip format file generated by a Gitlab Release Pipeline
133
- *
134
- * @link https://gist.github.com/timwiel/9dfd3526c768efad4973254085e065ce
135
- */
136
- foreach ($release->assets->links as $link) {
137
- if ( 'zip' === substr($link->url, -3) ) {
138
- $download_url = $link->url;
139
- break 1;
140
- }
141
- }
142
- if ( empty( $download_url ) ) {
143
- return null;
144
- }
145
- if ( ! empty( $this->accessToken ) ) {
146
- $download_url = add_query_arg('private_token', $this->accessToken, $download_url);
147
- }
148
- $reference->downloadUrl = $download_url;
149
- return $reference;
150
-
151
- } elseif ( isset($release->assets) ) {
152
- /**
153
- * Use the first asset SOURCE file that is a zip format from a Gitlab Release which should be a zip file
154
- */
155
- foreach ($release->assets->sources as $source) {
156
- if ( 'zip' === $source->format ) {
157
- $download_url = $source->url;
158
- break 1;
159
- }
160
- }
161
- if ( empty( $download_url ) ) {
162
- return null;
163
- }
164
- if ( ! empty( $this->accessToken ) ) {
165
- $download_url = add_query_arg('private_token', $this->accessToken, $download_url);
166
- }
167
- $reference->downloadUrl = $download_url;
168
- return $reference;
169
-
170
- }
171
-
172
- //If we get this far without a return then obviosuly noi release download urls were found
173
- return null;
174
- }
175
-
176
- /**
177
- * Get the tag that looks like the highest version number.
178
- *
179
- * @return Puc_v4p11_Vcs_Reference|null
180
- */
181
- public function getLatestTag() {
182
- $tags = $this->api('/:id/repository/tags');
183
- if ( is_wp_error($tags) || empty($tags) || !is_array($tags) ) {
184
- return null;
185
- }
186
-
187
- $versionTags = $this->sortTagsByVersion($tags);
188
- if ( empty($versionTags) ) {
189
- return null;
190
- }
191
-
192
- $tag = $versionTags[0];
193
- return new Puc_v4p11_Vcs_Reference(array(
194
- 'name' => $tag->name,
195
- 'version' => ltrim($tag->name, 'v'),
196
- 'downloadUrl' => $this->buildArchiveDownloadUrl($tag->name),
197
- 'apiResponse' => $tag,
198
- ));
199
- }
200
-
201
- /**
202
- * Get a branch by name.
203
- *
204
- * @param string $branchName
205
- * @return null|Puc_v4p11_Vcs_Reference
206
- */
207
- public function getBranch($branchName) {
208
- $branch = $this->api('/:id/repository/branches/' . $branchName);
209
- if ( is_wp_error($branch) || empty($branch) ) {
210
- return null;
211
- }
212
-
213
- $reference = new Puc_v4p11_Vcs_Reference(array(
214
- 'name' => $branch->name,
215
- 'downloadUrl' => $this->buildArchiveDownloadUrl($branch->name),
216
- 'apiResponse' => $branch,
217
- ));
218
-
219
- if ( isset($branch->commit, $branch->commit->committed_date) ) {
220
- $reference->updated = $branch->commit->committed_date;
221
- }
222
-
223
- return $reference;
224
- }
225
-
226
- /**
227
- * Get the timestamp of the latest commit that changed the specified branch or tag.
228
- *
229
- * @param string $ref Reference name (e.g. branch or tag).
230
- * @return string|null
231
- */
232
- public function getLatestCommitTime($ref) {
233
- $commits = $this->api('/:id/repository/commits/', array('ref_name' => $ref));
234
- if ( is_wp_error($commits) || !is_array($commits) || !isset($commits[0]) ) {
235
- return null;
236
- }
237
-
238
- return $commits[0]->committed_date;
239
- }
240
-
241
- /**
242
- * Perform a GitLab API request.
243
- *
244
- * @param string $url
245
- * @param array $queryParams
246
- * @return mixed|WP_Error
247
- */
248
- protected function api($url, $queryParams = array()) {
249
- $baseUrl = $url;
250
- $url = $this->buildApiUrl($url, $queryParams);
251
-
252
- $options = array('timeout' => 10);
253
- if ( !empty($this->httpFilterName) ) {
254
- $options = apply_filters($this->httpFilterName, $options);
255
- }
256
-
257
- $response = wp_remote_get($url, $options);
258
- if ( is_wp_error($response) ) {
259
- do_action('puc_api_error', $response, null, $url, $this->slug);
260
- return $response;
261
- }
262
-
263
- $code = wp_remote_retrieve_response_code($response);
264
- $body = wp_remote_retrieve_body($response);
265
- if ( $code === 200 ) {
266
- return json_decode($body);
267
- }
268
-
269
- $error = new WP_Error(
270
- 'puc-gitlab-http-error',
271
- sprintf('GitLab API error. URL: "%s", HTTP status code: %d.', $baseUrl, $code)
272
- );
273
- do_action('puc_api_error', $error, $response, $url, $this->slug);
274
-
275
- return $error;
276
- }
277
-
278
- /**
279
- * Build a fully qualified URL for an API request.
280
- *
281
- * @param string $url
282
- * @param array $queryParams
283
- * @return string
284
- */
285
- protected function buildApiUrl($url, $queryParams) {
286
- $variables = array(
287
- 'user' => $this->userName,
288
- 'repo' => $this->repositoryName,
289
- 'id' => $this->userName . '/' . $this->repositoryName,
290
- );
291
-
292
- foreach ($variables as $name => $value) {
293
- $url = str_replace("/:{$name}", '/' . urlencode($value), $url);
294
- }
295
-
296
- $url = substr($url, 1);
297
- $url = sprintf('%1$s://%2$s/api/v4/projects/%3$s', $this->repositoryProtocol, $this->repositoryHost, $url);
298
-
299
- if ( !empty($this->accessToken) ) {
300
- $queryParams['private_token'] = $this->accessToken;
301
- }
302
-
303
- if ( !empty($queryParams) ) {
304
- $url = add_query_arg($queryParams, $url);
305
- }
306
-
307
- return $url;
308
- }
309
-
310
- /**
311
- * Get the contents of a file from a specific branch or tag.
312
- *
313
- * @param string $path File name.
314
- * @param string $ref
315
- * @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
316
- */
317
- public function getRemoteFile($path, $ref = 'master') {
318
- $response = $this->api('/:id/repository/files/' . $path, array('ref' => $ref));
319
- if ( is_wp_error($response) || !isset($response->content) || $response->encoding !== 'base64' ) {
320
- return null;
321
- }
322
-
323
- return base64_decode($response->content);
324
- }
325
-
326
- /**
327
- * Generate a URL to download a ZIP archive of the specified branch/tag/etc.
328
- *
329
- * @param string $ref
330
- * @return string
331
- */
332
- public function buildArchiveDownloadUrl($ref = 'master') {
333
- $url = sprintf(
334
- '%1$s://%2$s/api/v4/projects/%3$s/repository/archive.zip',
335
- $this->repositoryProtocol,
336
- $this->repositoryHost,
337
- urlencode($this->userName . '/' . $this->repositoryName)
338
- );
339
- $url = add_query_arg('sha', urlencode($ref), $url);
340
-
341
- if ( !empty($this->accessToken) ) {
342
- $url = add_query_arg('private_token', $this->accessToken, $url);
343
- }
344
-
345
- return $url;
346
- }
347
-
348
- /**
349
- * Get a specific tag.
350
- *
351
- * @param string $tagName
352
- * @return void
353
- */
354
- public function getTag($tagName) {
355
- throw new LogicException('The ' . __METHOD__ . ' method is not implemented and should not be used.');
356
- }
357
-
358
- /**
359
- * Figure out which reference (i.e tag or branch) contains the latest version.
360
- *
361
- * @param string $configBranch Start looking in this branch.
362
- * @return null|Puc_v4p11_Vcs_Reference
363
- */
364
- public function chooseReference($configBranch) {
365
-
366
- if ( $configBranch === 'main' || $configBranch === 'master' ) {
367
- //Use the latest release.
368
- $updateSource = $this->getLatestRelease();
369
- if ( $updateSource === null ) {
370
- //Failing that, use the tag with the highest version number.
371
- $updateSource = $this->getLatestTag();
372
- }
373
- }
374
- //Alternatively, just use the branch itself.
375
- if ( empty($updateSource) ) {
376
- $updateSource = $this->getBranch($configBranch);
377
- }
378
-
379
- return $updateSource;
380
- }
381
-
382
- public function setAuthentication($credentials) {
383
- parent::setAuthentication($credentials);
384
- $this->accessToken = is_string($credentials) ? $credentials : null;
385
- }
386
-
387
- public function enableReleaseAssets() {
388
- $this->releaseAssetsEnabled = true;
389
- $this->releasePackageEnabled = false;
390
- }
391
-
392
- public function enableReleasePackages() {
393
- $this->releaseAssetsEnabled = false;
394
- $this->releasePackageEnabled = true;
395
- }
396
-
397
- }
398
-
399
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php DELETED
@@ -1,293 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Vcs_PluginUpdateChecker') ):
3
-
4
- class Puc_v4p11_Vcs_PluginUpdateChecker extends Puc_v4p11_Plugin_UpdateChecker implements Puc_v4p11_Vcs_BaseChecker {
5
- /**
6
- * @var string The branch where to look for updates. Defaults to "master".
7
- */
8
- protected $branch = 'master';
9
-
10
- /**
11
- * @var Puc_v4p11_Vcs_Api Repository API client.
12
- */
13
- protected $api = null;
14
-
15
- /**
16
- * Puc_v4p11_Vcs_PluginUpdateChecker constructor.
17
- *
18
- * @param Puc_v4p11_Vcs_Api $api
19
- * @param string $pluginFile
20
- * @param string $slug
21
- * @param int $checkPeriod
22
- * @param string $optionName
23
- * @param string $muPluginFile
24
- */
25
- public function __construct($api, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = '') {
26
- $this->api = $api;
27
- $this->api->setHttpFilterName($this->getUniqueName('request_info_options'));
28
-
29
- parent::__construct($api->getRepositoryUrl(), $pluginFile, $slug, $checkPeriod, $optionName, $muPluginFile);
30
-
31
- $this->api->setSlug($this->slug);
32
- }
33
-
34
- public function requestInfo($unusedParameter = null) {
35
- //We have to make several remote API requests to gather all the necessary info
36
- //which can take a while on slow networks.
37
- if ( function_exists('set_time_limit') ) {
38
- @set_time_limit(60);
39
- }
40
-
41
- $api = $this->api;
42
- $api->setLocalDirectory($this->package->getAbsoluteDirectoryPath());
43
-
44
- $info = new Puc_v4p11_Plugin_Info();
45
- $info->filename = $this->pluginFile;
46
- $info->slug = $this->slug;
47
-
48
- $this->setInfoFromHeader($this->package->getPluginHeader(), $info);
49
- $this->setIconsFromLocalAssets($info);
50
- $this->setBannersFromLocalAssets($info);
51
-
52
- //Pick a branch or tag.
53
- $updateSource = $api->chooseReference($this->branch);
54
- if ( $updateSource ) {
55
- $ref = $updateSource->name;
56
- $info->version = $updateSource->version;
57
- $info->last_updated = $updateSource->updated;
58
- $info->download_url = $updateSource->downloadUrl;
59
-
60
- if ( !empty($updateSource->changelog) ) {
61
- $info->sections['changelog'] = $updateSource->changelog;
62
- }
63
- if ( isset($updateSource->downloadCount) ) {
64
- $info->downloaded = $updateSource->downloadCount;
65
- }
66
- } else {
67
- //There's probably a network problem or an authentication error.
68
- do_action(
69
- 'puc_api_error',
70
- new WP_Error(
71
- 'puc-no-update-source',
72
- 'Could not retrieve version information from the repository. '
73
- . 'This usually means that the update checker either can\'t connect '
74
- . 'to the repository or it\'s configured incorrectly.'
75
- ),
76
- null, null, $this->slug
77
- );
78
- return null;
79
- }
80
-
81
- //Get headers from the main plugin file in this branch/tag. Its "Version" header and other metadata
82
- //are what the WordPress install will actually see after upgrading, so they take precedence over releases/tags.
83
- $mainPluginFile = basename($this->pluginFile);
84
- $remotePlugin = $api->getRemoteFile($mainPluginFile, $ref);
85
- if ( !empty($remotePlugin) ) {
86
- $remoteHeader = $this->package->getFileHeader($remotePlugin);
87
- $this->setInfoFromHeader($remoteHeader, $info);
88
- }
89
-
90
- //Try parsing readme.txt. If it's formatted according to WordPress.org standards, it will contain
91
- //a lot of useful information like the required/tested WP version, changelog, and so on.
92
- if ( $this->readmeTxtExistsLocally() ) {
93
- $this->setInfoFromRemoteReadme($ref, $info);
94
- }
95
-
96
- //The changelog might be in a separate file.
97
- if ( empty($info->sections['changelog']) ) {
98
- $info->sections['changelog'] = $api->getRemoteChangelog($ref, $this->package->getAbsoluteDirectoryPath());
99
- if ( empty($info->sections['changelog']) ) {
100
- $info->sections['changelog'] = esc_html__('There is no changelog available.', 'plugin-update-checker');
101
- }
102
- }
103
-
104
- if ( empty($info->last_updated) ) {
105
- //Fetch the latest commit that changed the tag or branch and use it as the "last_updated" date.
106
- $latestCommitTime = $api->getLatestCommitTime($ref);
107
- if ( $latestCommitTime !== null ) {
108
- $info->last_updated = $latestCommitTime;
109
- }
110
- }
111
-
112
- $info = apply_filters($this->getUniqueName('request_info_result'), $info, null);
113
- return $info;
114
- }
115
-
116
- /**
117
- * Check if the currently installed version has a readme.txt file.
118
- *
119
- * @return bool
120
- */
121
- protected function readmeTxtExistsLocally() {
122
- return $this->package->fileExists($this->api->getLocalReadmeName());
123
- }
124
-
125
- /**
126
- * Copy plugin metadata from a file header to a Plugin Info object.
127
- *
128
- * @param array $fileHeader
129
- * @param Puc_v4p11_Plugin_Info $pluginInfo
130
- */
131
- protected function setInfoFromHeader($fileHeader, $pluginInfo) {
132
- $headerToPropertyMap = array(
133
- 'Version' => 'version',
134
- 'Name' => 'name',
135
- 'PluginURI' => 'homepage',
136
- 'Author' => 'author',
137
- 'AuthorName' => 'author',
138
- 'AuthorURI' => 'author_homepage',
139
-
140
- 'Requires WP' => 'requires',
141
- 'Tested WP' => 'tested',
142
- 'Requires at least' => 'requires',
143
- 'Tested up to' => 'tested',
144
-
145
- 'Requires PHP' => 'requires_php',
146
- );
147
- foreach ($headerToPropertyMap as $headerName => $property) {
148
- if ( isset($fileHeader[$headerName]) && !empty($fileHeader[$headerName]) ) {
149
- $pluginInfo->$property = $fileHeader[$headerName];
150
- }
151
- }
152
-
153
- if ( !empty($fileHeader['Description']) ) {
154
- $pluginInfo->sections['description'] = $fileHeader['Description'];
155
- }
156
- }
157
-
158
- /**
159
- * Copy plugin metadata from the remote readme.txt file.
160
- *
161
- * @param string $ref GitHub tag or branch where to look for the readme.
162
- * @param Puc_v4p11_Plugin_Info $pluginInfo
163
- */
164
- protected function setInfoFromRemoteReadme($ref, $pluginInfo) {
165
- $readme = $this->api->getRemoteReadme($ref);
166
- if ( empty($readme) ) {
167
- return;
168
- }
169
-
170
- if ( isset($readme['sections']) ) {
171
- $pluginInfo->sections = array_merge($pluginInfo->sections, $readme['sections']);
172
- }
173
- if ( !empty($readme['tested_up_to']) ) {
174
- $pluginInfo->tested = $readme['tested_up_to'];
175
- }
176
- if ( !empty($readme['requires_at_least']) ) {
177
- $pluginInfo->requires = $readme['requires_at_least'];
178
- }
179
- if ( !empty($readme['requires_php']) ) {
180
- $pluginInfo->requires_php = $readme['requires_php'];
181
- }
182
-
183
- if ( isset($readme['upgrade_notice'], $readme['upgrade_notice'][$pluginInfo->version]) ) {
184
- $pluginInfo->upgrade_notice = $readme['upgrade_notice'][$pluginInfo->version];
185
- }
186
- }
187
-
188
- /**
189
- * Add icons from the currently installed version to a Plugin Info object.
190
- *
191
- * The icons should be in a subdirectory named "assets". Supported image formats
192
- * and file names are described here:
193
- * @link https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-icons
194
- *
195
- * @param Puc_v4p11_Plugin_Info $pluginInfo
196
- */
197
- protected function setIconsFromLocalAssets($pluginInfo) {
198
- $icons = $this->getLocalAssetUrls(array(
199
- 'icon.svg' => 'svg',
200
- 'icon-256x256.png' => '2x',
201
- 'icon-256x256.jpg' => '2x',
202
- 'icon-128x128.png' => '1x',
203
- 'icon-128x128.jpg' => '1x',
204
- ));
205
-
206
- if ( !empty($icons) ) {
207
- //The "default" key seems to be used only as last-resort fallback in WP core (5.8/5.9),
208
- //but we'll set it anyway in case some code somewhere needs it.
209
- reset($icons);
210
- $firstKey = key($icons);
211
- $icons['default'] = $icons[$firstKey];
212
-
213
- $pluginInfo->icons = $icons;
214
- }
215
- }
216
-
217
- /**
218
- * Add banners from the currently installed version to a Plugin Info object.
219
- *
220
- * The banners should be in a subdirectory named "assets". Supported image formats
221
- * and file names are described here:
222
- * @link https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-headers
223
- *
224
- * @param Puc_v4p11_Plugin_Info $pluginInfo
225
- */
226
- protected function setBannersFromLocalAssets($pluginInfo) {
227
- $banners = $this->getLocalAssetUrls(array(
228
- 'banner-772x250.png' => 'high',
229
- 'banner-772x250.jpg' => 'high',
230
- 'banner-1544x500.png' => 'low',
231
- 'banner-1544x500.jpg' => 'low',
232
- ));
233
-
234
- if ( !empty($banners) ) {
235
- $pluginInfo->banners = $banners;
236
- }
237
- }
238
-
239
- /**
240
- * @param array<string, string> $filesToKeys
241
- * @return array<string, string>
242
- */
243
- protected function getLocalAssetUrls($filesToKeys) {
244
- $assetDirectory = $this->package->getAbsoluteDirectoryPath() . DIRECTORY_SEPARATOR . 'assets';
245
- if ( !is_dir($assetDirectory) ) {
246
- return array();
247
- }
248
- $assetBaseUrl = trailingslashit(plugins_url('', $assetDirectory . '/imaginary.file'));
249
-
250
- $foundAssets = array();
251
- foreach ($filesToKeys as $fileName => $key) {
252
- $fullBannerPath = $assetDirectory . DIRECTORY_SEPARATOR . $fileName;
253
- if ( !isset($icons[$key]) && is_file($fullBannerPath) ) {
254
- $foundAssets[$key] = $assetBaseUrl . $fileName;
255
- }
256
- }
257
-
258
- return $foundAssets;
259
- }
260
-
261
- public function setBranch($branch) {
262
- $this->branch = $branch;
263
- return $this;
264
- }
265
-
266
- public function setAuthentication($credentials) {
267
- $this->api->setAuthentication($credentials);
268
- return $this;
269
- }
270
-
271
- public function getVcsApi() {
272
- return $this->api;
273
- }
274
-
275
- public function getUpdate() {
276
- $update = parent::getUpdate();
277
-
278
- if ( isset($update) && !empty($update->download_url) ) {
279
- $update->download_url = $this->api->signDownloadUrl($update->download_url);
280
- }
281
-
282
- return $update;
283
- }
284
-
285
- public function onDisplayConfiguration($panel) {
286
- parent::onDisplayConfiguration($panel);
287
- $panel->row('Branch', $this->branch);
288
- $panel->row('Authentication enabled', $this->api->isAuthenticationEnabled() ? 'Yes' : 'No');
289
- $panel->row('API client', get_class($this->api));
290
- }
291
- }
292
-
293
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/Reference.php DELETED
@@ -1,49 +0,0 @@
1
- <?php
2
- if ( !class_exists('Puc_v4p11_Vcs_Reference', false) ):
3
-
4
- /**
5
- * This class represents a VCS branch or tag. It's intended as a read only, short-lived container
6
- * that only exists to provide a limited degree of type checking.
7
- *
8
- * @property string $name
9
- * @property string|null version
10
- * @property string $downloadUrl
11
- * @property string $updated
12
- *
13
- * @property string|null $changelog
14
- * @property int|null $downloadCount
15
- */
16
- class Puc_v4p11_Vcs_Reference {
17
- private $properties = array();
18
-
19
- public function __construct($properties = array()) {
20
- $this->properties = $properties;
21
- }
22
-
23
- /**
24
- * @param string $name
25
- * @return mixed|null
26
- */
27
- public function __get($name) {
28
- return array_key_exists($name, $this->properties) ? $this->properties[$name] : null;
29
- }
30
-
31
- /**
32
- * @param string $name
33
- * @param mixed $value
34
- */
35
- public function __set($name, $value) {
36
- $this->properties[$name] = $value;
37
- }
38
-
39
- /**
40
- * @param string $name
41
- * @return bool
42
- */
43
- public function __isset($name) {
44
- return isset($this->properties[$name]);
45
- }
46
-
47
- }
48
-
49
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/Puc/v4p11/Vcs/ThemeUpdateChecker.php DELETED
@@ -1,118 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('Puc_v4p11_Vcs_ThemeUpdateChecker', false) ):
4
-
5
- class Puc_v4p11_Vcs_ThemeUpdateChecker extends Puc_v4p11_Theme_UpdateChecker implements Puc_v4p11_Vcs_BaseChecker {
6
- /**
7
- * @var string The branch where to look for updates. Defaults to "master".
8
- */
9
- protected $branch = 'master';
10
-
11
- /**
12
- * @var Puc_v4p11_Vcs_Api Repository API client.
13
- */
14
- protected $api = null;
15
-
16
- /**
17
- * Puc_v4p11_Vcs_ThemeUpdateChecker constructor.
18
- *
19
- * @param Puc_v4p11_Vcs_Api $api
20
- * @param null $stylesheet
21
- * @param null $customSlug
22
- * @param int $checkPeriod
23
- * @param string $optionName
24
- */
25
- public function __construct($api, $stylesheet = null, $customSlug = null, $checkPeriod = 12, $optionName = '') {
26
- $this->api = $api;
27
- $this->api->setHttpFilterName($this->getUniqueName('request_update_options'));
28
-
29
- parent::__construct($api->getRepositoryUrl(), $stylesheet, $customSlug, $checkPeriod, $optionName);
30
-
31
- $this->api->setSlug($this->slug);
32
- }
33
-
34
- public function requestUpdate() {
35
- $api = $this->api;
36
- $api->setLocalDirectory($this->package->getAbsoluteDirectoryPath());
37
-
38
- $update = new Puc_v4p11_Theme_Update();
39
- $update->slug = $this->slug;
40
-
41
- //Figure out which reference (tag or branch) we'll use to get the latest version of the theme.
42
- $updateSource = $api->chooseReference($this->branch);
43
- if ( $updateSource ) {
44
- $ref = $updateSource->name;
45
- $update->download_url = $updateSource->downloadUrl;
46
- } else {
47
- do_action(
48
- 'puc_api_error',
49
- new WP_Error(
50
- 'puc-no-update-source',
51
- 'Could not retrieve version information from the repository. '
52
- . 'This usually means that the update checker either can\'t connect '
53
- . 'to the repository or it\'s configured incorrectly.'
54
- ),
55
- null, null, $this->slug
56
- );
57
- $ref = $this->branch;
58
- }
59
-
60
- //Get headers from the main stylesheet in this branch/tag. Its "Version" header and other metadata
61
- //are what the WordPress install will actually see after upgrading, so they take precedence over releases/tags.
62
- $remoteHeader = $this->package->getFileHeader($api->getRemoteFile('style.css', $ref));
63
- $update->version = Puc_v4p11_Utils::findNotEmpty(array(
64
- $remoteHeader['Version'],
65
- Puc_v4p11_Utils::get($updateSource, 'version'),
66
- ));
67
-
68
- //The details URL defaults to the Theme URI header or the repository URL.
69
- $update->details_url = Puc_v4p11_Utils::findNotEmpty(array(
70
- $remoteHeader['ThemeURI'],
71
- $this->package->getHeaderValue('ThemeURI'),
72
- $this->metadataUrl,
73
- ));
74
-
75
- if ( empty($update->version) ) {
76
- //It looks like we didn't find a valid update after all.
77
- $update = null;
78
- }
79
-
80
- $update = $this->filterUpdateResult($update);
81
- return $update;
82
- }
83
-
84
- //FIXME: This is duplicated code. Both theme and plugin subclasses that use VCS share these methods.
85
-
86
- public function setBranch($branch) {
87
- $this->branch = $branch;
88
- return $this;
89
- }
90
-
91
- public function setAuthentication($credentials) {
92
- $this->api->setAuthentication($credentials);
93
- return $this;
94
- }
95
-
96
- public function getVcsApi() {
97
- return $this->api;
98
- }
99
-
100
- public function getUpdate() {
101
- $update = parent::getUpdate();
102
-
103
- if ( isset($update) && !empty($update->download_url) ) {
104
- $update->download_url = $this->api->signDownloadUrl($update->download_url);
105
- }
106
-
107
- return $update;
108
- }
109
-
110
- public function onDisplayConfiguration($panel) {
111
- parent::onDisplayConfiguration($panel);
112
- $panel->row('Branch', $this->branch);
113
- $panel->row('Authentication enabled', $this->api->isAuthenticationEnabled() ? 'Yes' : 'No');
114
- $panel->row('API client', get_class($this->api));
115
- }
116
- }
117
-
118
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/README.md DELETED
@@ -1,326 +0,0 @@
1
- Plugin Update Checker
2
- =====================
3
-
4
- This is a custom update checker library for WordPress plugins and themes. It lets you add automatic update notifications and one-click upgrades to your commercial plugins, private themes, and so on. All you need to do is put your plugin/theme details in a JSON file, place the file on your server, and pass the URL to the library. The library periodically checks the URL to see if there's a new version available and displays an update notification to the user if necessary.
5
-
6
- From the users' perspective, it works just like with plugins and themes hosted on WordPress.org. The update checker uses the default upgrade UI that is familiar to most WordPress users.
7
-
8
- <!-- START doctoc generated TOC please keep comment here to allow auto update -->
9
- <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
10
- **Table of Contents**
11
-
12
- - [Getting Started](#getting-started)
13
- - [Self-hosted Plugins and Themes](#self-hosted-plugins-and-themes)
14
- - [How to Release an Update](#how-to-release-an-update)
15
- - [Notes](#notes)
16
- - [GitHub Integration](#github-integration)
17
- - [How to Release an Update](#how-to-release-an-update-1)
18
- - [Notes](#notes-1)
19
- - [BitBucket Integration](#bitbucket-integration)
20
- - [How to Release an Update](#how-to-release-an-update-2)
21
- - [GitLab Integration](#gitlab-integration)
22
- - [How to Release a GitLab Update](#how-to-release-a-gitlab-update)
23
- - [License Management](#license-management)
24
- - [Resources](#resources)
25
-
26
- <!-- END doctoc generated TOC please keep comment here to allow auto update -->
27
-
28
- Getting Started
29
- ---------------
30
-
31
- *Note:* In each of the below examples, part of the instructions are to create an instance of the update checker class. It's recommended to do this either during the `plugins_loaded` action or outside of any hooks. If you do it only during an `admin_*` action, then updates will not be visible to a wide variety of WordPress maanagement tools; they will only be visible to logged-in users on dashboard pages.
32
-
33
- ### Self-hosted Plugins and Themes
34
-
35
- 1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
36
- 2. Go to the `examples` subdirectory and open the .json file that fits your project type. Replace the placeholder data with your plugin/theme details.
37
- - Plugin example:
38
-
39
- ```json
40
- {
41
- "name" : "Plugin Name",
42
- "version" : "2.0",
43
- "download_url" : "http://example.com/plugin-name-2.0.zip",
44
- "sections" : {
45
- "description" : "Plugin description here. You can use HTML."
46
- }
47
- }
48
- ```
49
-
50
- This is a minimal example that leaves out optional fields. See [this table](https://docs.google.com/spreadsheets/d/1eOBbW7Go2qEQXReOOCdidMTf_tDYRq4JfegcO1CBPIs/edit?usp=sharing) for a full list of supported fields and their descriptions.
51
- - Theme example:
52
-
53
- ```json
54
- {
55
- "version": "2.0",
56
- "details_url": "http://example.com/version-2.0-details.html",
57
- "download_url": "http://example.com/example-theme-2.0.zip"
58
- }
59
- ```
60
-
61
- This is actually a complete example that shows all theme-related fields. `version` and `download_url` should be self-explanatory. The `details_url` key specifies the page that the user will see if they click the "View version 1.2.3 details" link in an update notification.
62
- 3. Upload the JSON file to a publicly accessible location.
63
- 4. Add the following code to the main plugin file or to the `functions.php` file:
64
-
65
- ```php
66
- require 'path/to/plugin-update-checker/plugin-update-checker.php';
67
- $myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
68
- 'http://example.com/path/to/details.json',
69
- __FILE__, //Full path to the main plugin file or functions.php.
70
- 'unique-plugin-or-theme-slug'
71
- );
72
- ```
73
- Note: If you're using the Composer autoloader, you don't need to explicitly `require` the library.
74
-
75
- #### How to Release an Update
76
-
77
- Change the `version` number in the JSON file and make sure that `download_url` points to the latest version. Update the other fields if necessary. Tip: You can use [wp-update-server](https://github.com/YahnisElsts/wp-update-server) to automate this process.
78
-
79
- By default, the library will check the specified URL for changes every 12 hours. You can force it to check immediately by clicking the "Check for updates" link on the "Plugins" page (it's next to the "Visit plugin site" link). Themes don't have that link, but you can also trigger an update check like this:
80
-
81
- 1. Install [Debug Bar](https://srd.wordpress.org/plugins/debug-bar/).
82
- 2. Click the "Debug" menu in the Admin Bar (a.k.a Toolbar).
83
- 3. Open the "PUC (your-slug)" panel.
84
- 4. Click the "Check Now" button.
85
-
86
- #### Notes
87
- - The second argument passed to `buildUpdateChecker` must be the absolute path to the main plugin file or any file in the theme directory. If you followed the "getting started" instructions, you can just use the `__FILE__` constant.
88
- - The third argument - i.e. the slug - is optional but recommended. In most cases, the slug should be the same as the name of your plugin directory. For example, if your plugin lives in `/wp-content/plugins/my-plugin`, set the slug to `my-plugin`. If the slug is omitted, the update checker will use the name of the main plugin file as the slug (e.g. `my-cool-plugin.php` &rarr; `my-cool-plugin`). This can lead to conflicts if your plugin has a generic file name like `plugin.php`.
89
-
90
- This doesn't affect themes because PUC uses the theme directory name as the default slug. Still, if you're planning to use the slug in your own code - e.g. to filter updates or override update checker behaviour - it can be a good idea to set it explicitly.
91
-
92
- ### GitHub Integration
93
-
94
- 1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
95
- 2. Add the following code to the main plugin file or `functions.php`:
96
-
97
- ```php
98
- require 'plugin-update-checker/plugin-update-checker.php';
99
- $myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
100
- 'https://github.com/user-name/repo-name/',
101
- __FILE__,
102
- 'unique-plugin-or-theme-slug'
103
- );
104
-
105
- //Set the branch that contains the stable release.
106
- $myUpdateChecker->setBranch('stable-branch-name');
107
-
108
- //Optional: If you're using a private repository, specify the access token like this:
109
- $myUpdateChecker->setAuthentication('your-token-here');
110
- ```
111
- 3. Plugins only: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/readme.txt) to your repository. The contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
112
-
113
- #### How to Release an Update
114
-
115
- This library supports a couple of different ways to release updates on GitHub. Pick the one that best fits your workflow.
116
-
117
- - **GitHub releases**
118
-
119
- Create a new release using the "Releases" feature on GitHub. The tag name and release title don't matter. The description is optional, but if you do provide one, it will be displayed when the user clicks the "View version x.y.z details" link on the "Plugins" page. Note that PUC ignores releases marked as "This is a pre-release".
120
-
121
- If you want to use release assets, call the `enableReleaseAssets()` method after creating the update checker instance:
122
- ```php
123
- $myUpdateChecker->getVcsApi()->enableReleaseAssets();
124
- ```
125
-
126
- - **Tags**
127
-
128
- To release version 1.2.3, create a new Git tag named `v1.2.3` or `1.2.3`. That's it.
129
-
130
- PUC doesn't require strict adherence to [SemVer](http://semver.org/). These are all valid tag names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5`. However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitHub releases or branches instead.
131
-
132
- - **Stable branch**
133
-
134
- Point the update checker at a stable, production-ready branch:
135
- ```php
136
- $updateChecker->setBranch('branch-name');
137
- ```
138
- PUC will periodically check the `Version` header in the main plugin file or `style.css` and display a notification if it's greater than the installed version.
139
-
140
- Caveat: If you set the branch to `master` (the default), the update checker will look for recent releases and tags first. It'll only use the `master` branch if it doesn't find anything else suitable.
141
-
142
- #### Notes
143
-
144
- The library will pull update details from the following parts of a release/tag/branch:
145
-
146
- - Version number
147
- - The "Version" plugin header.
148
- - The latest GitHub release or tag name.
149
- - Changelog
150
- - The "Changelog" section of `readme.txt`.
151
- - One of the following files:
152
- CHANGES.md, CHANGELOG.md, changes.md, changelog.md
153
- - GitHub release notes.
154
- - Required and tested WordPress versions
155
- - The "Requires at least" and "Tested up to" fields in `readme.txt`.
156
- - The following plugin headers:
157
- `Required WP`, `Tested WP`, `Requires at least`, `Tested up to`
158
- - "Last updated" timestamp
159
- - The creation timestamp of the latest GitHub release.
160
- - The latest commit in the selected tag or branch.
161
- - Number of downloads
162
- - The `download_count` statistic of the latest release.
163
- - If you're not using GitHub releases, there will be no download stats.
164
- - Other plugin details - author, homepage URL, description
165
- - The "Description" section of `readme.txt`.
166
- - Remote plugin headers (i.e. the latest version on GitHub).
167
- - Local plugin headers (i.e. the currently installed version).
168
- - Ratings, banners, screenshots
169
- - Not supported.
170
-
171
- ### BitBucket Integration
172
-
173
- 1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
174
- 2. Add the following code to the main plugin file or `functions.php`:
175
-
176
- ```php
177
- require 'plugin-update-checker/plugin-update-checker.php';
178
- $myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
179
- 'https://bitbucket.org/user-name/repo-name',
180
- __FILE__,
181
- 'unique-plugin-or-theme-slug'
182
- );
183
-
184
- //Optional: If you're using a private repository, create an OAuth consumer
185
- //and set the authentication credentials like this:
186
- //Note: For now you need to check "This is a private consumer" when
187
- //creating the consumer to work around #134:
188
- // https://github.com/YahnisElsts/plugin-update-checker/issues/134
189
- $myUpdateChecker->setAuthentication(array(
190
- 'consumer_key' => '...',
191
- 'consumer_secret' => '...',
192
- ));
193
-
194
- //Optional: Set the branch that contains the stable release.
195
- $myUpdateChecker->setBranch('stable-branch-name');
196
- ```
197
- 3. Optional: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/readme.txt) to your repository. For plugins, the contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
198
-
199
- #### How to Release an Update
200
-
201
- BitBucket doesn't have an equivalent to GitHub's releases, so the process is slightly different. You can use any of the following approaches:
202
-
203
- - **`Stable tag` header**
204
-
205
- This is the recommended approach if you're using tags to mark each version. Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/readme.txt) to your repository. Set the "stable tag" header to the tag that represents the latest release. Example:
206
- ```text
207
- Stable tag: v1.2.3
208
- ```
209
- The tag doesn't have to start with a "v" or follow any particular format. You can use any name you like as long as it's a valid Git tag.
210
-
211
- Tip: If you explicitly set a stable branch, the update checker will look for a `readme.txt` in that branch. Otherwise it will only look at the `master` branch.
212
-
213
- - **Tags**
214
-
215
- You can skip the "stable tag" bit and just create a new Git tag named `v1.2.3` or `1.2.3`. The update checker will look at the most recent tags and pick the one that looks like the highest version number.
216
-
217
- PUC doesn't require strict adherence to [SemVer](http://semver.org/). These are all valid tag names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5`. However, be warned that it's not smart enough to filter out alpha/beta/RC versions.
218
-
219
- - **Stable branch**
220
-
221
- Point the update checker at a stable, production-ready branch:
222
- ```php
223
- $updateChecker->setBranch('branch-name');
224
- ```
225
- PUC will periodically check the `Version` header in the main plugin file or `style.css` and display a notification if it's greater than the installed version. Caveat: If you set the branch to `master`, the update checker will still look for tags first.
226
-
227
- ### GitLab Integration
228
-
229
- 1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
230
- 2. Add the following code to the main plugin file or `functions.php` and define how you want to check for updates from Gitlab (refer to: [Gitlab: How to Release an Update](#how-to-release-a-gitlab-update)):
231
-
232
- ```php
233
- require 'plugin-update-checker/plugin-update-checker.php';
234
- $myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
235
- 'https://gitlab.com/user-name/repo-name/',
236
- __FILE__,
237
- 'unique-plugin-or-theme-slug'
238
- );
239
-
240
- //Optional: If you're using a private repository, specify the access token like this:
241
- $myUpdateChecker->setAuthentication('your-token-here');
242
- ```
243
-
244
- Alternatively, if you're using a self-hosted GitLab instance, initialize the update checker like this:
245
- ```php
246
- $myUpdateChecker = new Puc_v4p11_Vcs_PluginUpdateChecker(
247
- new Puc_v4p11_Vcs_GitLabApi('https://myserver.com/user-name/repo-name/'),
248
- __FILE__,
249
- 'unique-plugin-or-theme-slug'
250
- );
251
- //Optional: Add setAuthentication(...) and setBranch(...) as shown above.
252
- ```
253
- If you're using a self-hosted GitLab instance and [subgroups or nested groups](https://docs.gitlab.com/ce/user/group/subgroups/index.html), you have to tell the update checker which parts of the URL are subgroups:
254
- ```php
255
- $myUpdateChecker = new Puc_v4p11_Vcs_PluginUpdateChecker(
256
- new Puc_v4p11_Vcs_GitLabApi('https://myserver.com/group-name/subgroup-level1/subgroup-level2/subgroup-level3/repo-name/', null, 'subgroup-level1/subgroup-level2/subgroup-level3'),
257
- __FILE__,
258
- 'unique-plugin-or-theme-slug'
259
- );
260
-
261
- ```
262
-
263
- 3. Plugins only: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/readme.txt) to your repository. The contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
264
-
265
- #### How to Release a GitLab Update
266
- A Gitlab repository can be checked for updates in 4 different ways.
267
-
268
- 1. **Stable branch** (other than `master` or `main`):
269
- - Point the update checker at any stable, production-ready branch and PUC will periodically check the `Version` header in the main plugin file or `style.css` and display a notification if it's greater than the installed version.
270
- - Add the following code:
271
- ```php
272
- //Add the following code to your main plugin file or `functions.php` file to check for updates from a custom branch
273
- $myUpdateChecker->setBranch('stable-branch-name');
274
- ```
275
- - Caveats:
276
- - If you set the branch to `main` (the default) or `master` (the historical default), the update checker will look for recent releases and tags first. It'll only use the `main` or `master` branch if it doesn't find anything else suitable.
277
-
278
- 2. **GitLab Releases using Generic Packages**:
279
- - Use a Gitlab CI/CD Pipeline to automatically generate your update on release using a Generic Package. The benefit of using Generic Package assets over the Source Code assets is that the code can already be built and production ready.
280
- - Add the following code:
281
- ```php
282
- //Add the following code to your main plugin file or `functions.php` file to check for a new update from releases using generic packages
283
- $myUpdateChecker->getVcsApi()->enableReleasePackages();
284
- ```
285
- - PUC will periodically check the release version (i.e. the tag name of the release) and will display a notification if the release is a greater version than the installed version.
286
- - The release tag name should loosely follow [SemVer](http://semver.org/) but these are all valid release names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5` However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitLab branches instead.
287
- - For more information about *Gitlab Release Generic Packages* refer to the following links:
288
- - [Gitlab CI/CD Release Documentation](https://docs.gitlab.com/ee/user/project/releases/#create-release-from-gitlab-ci)
289
- - [Gitlab Release Assets as Generic Package Documentation](https://gitlab.com/gitlab-org/release-cli/-/tree/master/docs/examples/release-assets-as-generic-package/)
290
- - [Example .gitlab-ci.yml file using Release Generic Packages for generating a update package from the Sensei-LMS wordpress plugin](https://gist.github.com/timwiel/9dfd3526c768efad4973254085e065ce)
291
-
292
-
293
- 3. **GitLab Releases using Source Code Assets**:
294
- - Create a new release using the "Releases" feature on Gitlab.
295
- - Add the following code:
296
- ```php
297
- //Add the following code to your main plugin file or `functions.php` file to check for a new update from releases using release assets
298
- $myUpdateChecker->getVcsApi()->enableReleaseAssets();
299
- ```
300
- - PUC will periodically check the release version (based on release tag name) and display a notification if the release version is greater than the installed version.
301
- - The release name should loosely follow [SemVer](http://semver.org/) but these are all valid release names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5` However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitLab branches instead.
302
-
303
-
304
- 4. **Tags** (this is the default option):
305
- - To release version 1.2.3, create a new Git tag named `v1.2.3` or `1.2.3`.
306
- - Optionally, add the following code:
307
- ```php
308
- //Add the following code to your main plugin file or `functions.php` file to check for updates from the default branch
309
- $myUpdateChecker->setBranch('master'); //or 'main'
310
- ```
311
- - PUC doesn't require strict adherence to [SemVer](http://semver.org/). These are all valid tag names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5`. However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitLab branches instead.
312
-
313
- License Management
314
- ------------------
315
-
316
- Currently, the update checker doesn't have any built-in license management features. It only provides some hooks that you can use to, for example, append license keys to update requests (`$updateChecker->addQueryArgFilter()`). If you're looking for ways to manage and verify licenses, please post your feedback in [this issue](https://github.com/YahnisElsts/plugin-update-checker/issues/222).
317
-
318
- Resources
319
- ---------
320
-
321
- - [This blog post](http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/) has more information about the update checker API. *Slightly out of date.*
322
- - [Debug Bar](https://wordpress.org/plugins/debug-bar/) - useful for testing and debugging the update checker.
323
- - [Update format reference](https://docs.google.com/spreadsheets/d/1eOBbW7Go2qEQXReOOCdidMTf_tDYRq4JfegcO1CBPIs/edit?usp=sharing) - describes all fields supported by the JSON-based update information format used by the update checker. Only covers plugins. Themes use a similar but more limited format.
324
- - [Securing download links](http://w-shadow.com/blog/2013/03/19/plugin-updates-securing-download-links/) - a general overview.
325
- - [A GUI for entering download credentials](http://open-tools.net/documentation/tutorial-automatic-updates.html#wordpress)
326
- - [Theme Update Checker](http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/) - an older, theme-only variant of this update checker.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/composer.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "name": "yahnis-elsts/plugin-update-checker",
3
- "type": "library",
4
- "description": "A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.",
5
- "keywords": ["wordpress", "plugin updates", "automatic updates", "theme updates"],
6
- "homepage": "https://github.com/YahnisElsts/plugin-update-checker/",
7
- "license": "MIT",
8
- "authors": [
9
- {
10
- "name": "Yahnis Elsts",
11
- "email": "whiteshadow@w-shadow.com",
12
- "homepage": "http://w-shadow.com/",
13
- "role": "Developer"
14
- }
15
- ],
16
- "require": {
17
- "php": ">=5.2.0",
18
- "ext-json": "*"
19
- },
20
- "autoload": {
21
- "files": ["load-v4p11.php"]
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/css/puc-debug-bar.css DELETED
@@ -1,70 +0,0 @@
1
- .puc-debug-bar-panel-v4 pre {
2
- margin-top: 0;
3
- }
4
-
5
- /* Style the debug data table to match "widefat" table style used by WordPress. */
6
- table.puc-debug-data {
7
- width: 100%;
8
- clear: both;
9
- margin: 0;
10
-
11
- border-spacing: 0;
12
- background-color: #f9f9f9;
13
-
14
- border-radius: 3px;
15
- border: 1px solid #dfdfdf;
16
- border-collapse: separate;
17
- }
18
-
19
- table.puc-debug-data * {
20
- word-wrap: break-word;
21
- }
22
-
23
- table.puc-debug-data th {
24
- width: 11em;
25
- padding: 7px 7px 8px;
26
- text-align: left;
27
-
28
- font-family: "Georgia", "Times New Roman", "Bitstream Charter", "Times", serif;
29
- font-weight: 400;
30
- font-size: 14px;
31
- line-height: 1.3em;
32
- text-shadow: rgba(255, 255, 255, 0.804) 0 1px 0;
33
- }
34
-
35
- table.puc-debug-data td, table.puc-debug-data th {
36
- border-width: 1px 0;
37
- border-style: solid;
38
-
39
- border-top-color: #fff;
40
- border-bottom-color: #dfdfdf;
41
-
42
- text-transform: none;
43
- }
44
-
45
- table.puc-debug-data td {
46
- color: #555;
47
- font-size: 12px;
48
- padding: 4px 7px 2px;
49
- vertical-align: top;
50
- }
51
-
52
- .puc-ajax-response {
53
- border: 1px solid #dfdfdf;
54
- border-radius: 3px;
55
- padding: 0.5em;
56
- margin: 5px 0;
57
- background-color: white;
58
- }
59
-
60
- .puc-ajax-nonce {
61
- display: none;
62
- }
63
-
64
- .puc-ajax-response dt {
65
- margin: 0;
66
- }
67
-
68
- .puc-ajax-response dd {
69
- margin: 0 0 1em;
70
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/examples/plugin.json DELETED
@@ -1,52 +0,0 @@
1
- {
2
- "name": "My Example Plugin",
3
- "version": "2.0",
4
- "download_url": "http://example.com/updates/example-plugin.zip",
5
-
6
- "homepage": "http://example.com/",
7
- "requires": "4.5",
8
- "tested": "4.8",
9
- "last_updated": "2017-01-01 16:17:00",
10
- "upgrade_notice": "Here's why you should upgrade...",
11
-
12
- "author": "Janis Elsts",
13
- "author_homepage": "http://example.com/",
14
-
15
- "sections": {
16
- "description": "(Required) Plugin description. Basic HTML can be used in all sections.",
17
- "installation": "(Recommended) Installation instructions.",
18
- "changelog": "(Recommended) Changelog. <p>This section will be displayed by default when the user clicks 'View version x.y.z details'.</p>",
19
- "custom_section": "This is a custom section labeled 'Custom Section'."
20
- },
21
-
22
- "icons" : {
23
- "1x" : "http://w-shadow.com/files/external-update-example/assets/icon-128x128.png",
24
- "2x" : "http://w-shadow.com/files/external-update-example/assets/icon-256x256.png"
25
- },
26
-
27
- "banners": {
28
- "low": "http://w-shadow.com/files/external-update-example/assets/banner-772x250.png",
29
- "high": "http://w-shadow.com/files/external-update-example/assets/banner-1544x500.png"
30
- },
31
-
32
- "translations": [
33
- {
34
- "language": "fr_FR",
35
- "version": "4.0",
36
- "updated": "2016-04-22 23:22:42",
37
- "package": "http://example.com/updates/translations/french-language-pack.zip"
38
- },
39
- {
40
- "language": "de_DE",
41
- "version": "5.0",
42
- "updated": "2016-04-22 23:22:42",
43
- "package": "http://example.com/updates/translations/german-language-pack.zip"
44
- }
45
- ],
46
-
47
- "rating": 90,
48
- "num_ratings": 123,
49
-
50
- "downloaded": 1234,
51
- "active_installs": 12345
52
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/examples/theme.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "version": "2.0",
3
- "details_url": "http://example.com/version-2.0-details.html",
4
- "download_url": "http://example.com/example-theme-2.0.zip"
5
- }
 
 
 
 
 
app/core/puc/js/debug-bar.js DELETED
@@ -1,52 +0,0 @@
1
- jQuery(function($) {
2
-
3
- function runAjaxAction(button, action) {
4
- button = $(button);
5
- var panel = button.closest('.puc-debug-bar-panel-v4');
6
- var responseBox = button.closest('td').find('.puc-ajax-response');
7
-
8
- responseBox.text('Processing...').show();
9
- $.post(
10
- ajaxurl,
11
- {
12
- action : action,
13
- uid : panel.data('uid'),
14
- _wpnonce: panel.data('nonce')
15
- },
16
- function(data) {
17
- responseBox.html(data);
18
- },
19
- 'html'
20
- );
21
- }
22
-
23
- $('.puc-debug-bar-panel-v4 input[name="puc-check-now-button"]').on('click', function() {
24
- runAjaxAction(this, 'puc_v4_debug_check_now');
25
- return false;
26
- });
27
-
28
- $('.puc-debug-bar-panel-v4 input[name="puc-request-info-button"]').on('click', function() {
29
- runAjaxAction(this, 'puc_v4_debug_request_info');
30
- return false;
31
- });
32
-
33
-
34
- // Debug Bar uses the panel class name as part of its link and container IDs. This means we can
35
- // end up with multiple identical IDs if more than one plugin uses the update checker library.
36
- // Fix it by replacing the class name with the plugin slug.
37
- var panels = $('#debug-menu-targets').find('.puc-debug-bar-panel-v4');
38
- panels.each(function() {
39
- var panel = $(this);
40
- var uid = panel.data('uid');
41
- var target = panel.closest('.debug-menu-target');
42
-
43
- //Change the panel wrapper ID.
44
- target.attr('id', 'debug-menu-target-puc-' + uid);
45
-
46
- //Change the menu link ID as well and point it at the new target ID.
47
- $('#debug-bar-menu').find('.puc-debug-menu-link-' + uid)
48
- .closest('.debug-menu-link')
49
- .attr('id', 'debug-menu-link-puc-' + uid)
50
- .attr('href', '#' + target.attr('id'));
51
- });
52
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-ca.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-ca.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2019-09-25 18:15+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: ca\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprova si hi ha actualitzacions"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "L’extensió %s està actualitzada."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nova versió de l’extensió %s està disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No s’ha pogut determinar si hi ha actualitzacions per a %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estat del comprovador d’actualitzacions desconegut \"%s\""
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hi ha cap registre de canvis disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-cs_CZ.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-cs_CZ.po DELETED
@@ -1,45 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-05-20 10:53+0300\n"
6
- "PO-Revision-Date: 2017-07-05 15:39+0000\n"
7
- "Last-Translator: Vojtěch Sajdl <vojtech@sajdl.com>\n"
8
- "Language-Team: Czech (Czech Republic)\n"
9
- "Language: cs-CZ\n"
10
- "Plural-Forms: nplurals=2; plural=(n != 1)\n"
11
- "MIME-Version: 1.0\n"
12
- "Content-Type: text/plain; charset=UTF-8\n"
13
- "Content-Transfer-Encoding: 8bit\n"
14
- "X-Loco-Source-Locale: cs_CZ\n"
15
- "X-Generator: Loco - https://localise.biz/\n"
16
- "X-Poedit-Basepath: ..\n"
17
- "X-Poedit-SourceCharset: UTF-8\n"
18
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
19
- "X-Poedit-SearchPath-0: .\n"
20
- "X-Loco-Parser: loco_parse_po"
21
-
22
- #: Puc/v4p1/Plugin/UpdateChecker.php:358
23
- msgid "Check for updates"
24
- msgstr "Zkontrolovat aktualizace"
25
-
26
- #: Puc/v4p1/Plugin/UpdateChecker.php:405
27
- #, php-format
28
- msgctxt "the plugin title"
29
- msgid "The %s plugin is up to date."
30
- msgstr "Plugin %s je aktuální."
31
-
32
- #: Puc/v4p1/Plugin/UpdateChecker.php:407
33
- #, php-format
34
- msgctxt "the plugin title"
35
- msgid "A new version of the %s plugin is available."
36
- msgstr "Nová verze pluginu %s je dostupná."
37
-
38
- #: Puc/v4p1/Plugin/UpdateChecker.php:409
39
- #, php-format
40
- msgid "Unknown update checker status \"%s\""
41
- msgstr "Neznámý status kontroly aktualizací \"%s\""
42
-
43
- #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
44
- msgid "There is no changelog available."
45
- msgstr "Changelog není dostupný."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-da_DK.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-da_DK.po DELETED
@@ -1,42 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-05-20 10:53+0300\n"
5
- "PO-Revision-Date: 2017-10-17 11:07+0200\n"
6
- "Last-Translator: Mikk3lRo\n"
7
- "Language-Team: Mikk3lRo\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 2.0.4\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
16
- "Language: da_DK\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p1/Plugin/UpdateChecker.php:358
20
- msgid "Check for updates"
21
- msgstr "Undersøg for opdateringer"
22
-
23
- #: Puc/v4p1/Plugin/UpdateChecker.php:405
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "Plugin'et %s er allerede opdateret."
28
-
29
- #: Puc/v4p1/Plugin/UpdateChecker.php:407
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "En ny version af plugin'et %s er tilgængelig."
34
-
35
- #: Puc/v4p1/Plugin/UpdateChecker.php:409
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Ukendt opdateringsstatus: \"%s\""
39
-
40
- #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
41
- msgid "There is no changelog available."
42
- msgstr "Der er ingen ændringslog tilgængelig."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-de_DE.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-de_DE.po DELETED
@@ -1,38 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2016-06-29 20:21+0100\n"
5
- "PO-Revision-Date: 2016-06-29 20:23+0100\n"
6
- "Last-Translator: Igor Lückel <info@igorlueckel.de>\n"
7
- "Language-Team: \n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.8.1\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e\n"
16
- "Language: de_DE\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: github-checker.php:137
20
- msgid "There is no changelog available."
21
- msgstr "Es ist keine Liste von Programmänderungen verfügbar."
22
-
23
- #: plugin-update-checker.php:852
24
- msgid "Check for updates"
25
- msgstr "Nach Update suchen"
26
-
27
- #: plugin-update-checker.php:896
28
- msgid "This plugin is up to date."
29
- msgstr "Das Plugin ist aktuell."
30
-
31
- #: plugin-update-checker.php:898
32
- msgid "A new version of this plugin is available."
33
- msgstr "Es ist eine neue Version für das Plugin verfügbar."
34
-
35
- #: plugin-update-checker.php:900
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Unbekannter Update Status \"%s\""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_AR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_AR.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:13-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_CL.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_CL.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_CO.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_CO.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_CR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_CR.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_DO.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_DO.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_ES.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_ES.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 14:56-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_GT.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_GT.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_HN.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_HN.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:14-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_MX.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_MX.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 14:57-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_PE.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_PE.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:15-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_PR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_PR.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:15-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_UY.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_UY.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 15:15-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-es_VE.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-es_VE.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-03-21 14:57-0400\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.3\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: es_ES\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Comprobar si hay actualizaciones"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "El plugin %s está actualizado."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Una nueva versión del %s plugin está disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "No se pudo determinar si hay actualizaciones disponibles para %s."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Estado del comprobador de actualización desconocido «%s»"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "No hay un registro de cambios disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-fa_IR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-fa_IR.po DELETED
@@ -1,38 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2016-02-17 14:21+0100\n"
5
- "PO-Revision-Date: 2016-10-28 14:30+0330\n"
6
- "Last-Translator: studio RVOLA <hello@rvola.com>\n"
7
- "Language-Team: Pro Style <info@prostyle.ir>\n"
8
- "Language: fa_IR\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.8\n"
13
- "X-Poedit-Basepath: ..\n"
14
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: github-checker.php:120
20
- msgid "There is no changelog available."
21
- msgstr "شرحی برای تغییرات یافت نشد"
22
-
23
- #: plugin-update-checker.php:637
24
- msgid "Check for updates"
25
- msgstr "بررسی برای بروزرسانی "
26
-
27
- #: plugin-update-checker.php:681
28
- msgid "This plugin is up to date."
29
- msgstr "شما از آخرین نسخه استفاده میکنید . به‌روز باشید"
30
-
31
- #: plugin-update-checker.php:683
32
- msgid "A new version of this plugin is available."
33
- msgstr "نسخه جدیدی برای افزونه ارائه شده است ."
34
-
35
- #: plugin-update-checker.php:685
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "وضعیت ناشناخته برای بروزرسانی \"%s\""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-fr_CA.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-fr_CA.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2018-02-12 10:32-0500\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.0.4\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: Eric Gagnon <eric.gagnon@banq.qc.ca>\n"
16
- "Language: fr_CA\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Vérifier les mises à jour"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "L’extension %s est à jour."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Une nouvelle version de l’extension %s est disponible."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "Impossible de déterminer si une mise à jour est disponible pour \"%s\""
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Un problème inconnu est survenu \"%s\""
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "Il n’y a aucun journal de mise à jour disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-fr_FR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-fr_FR.po DELETED
@@ -1,42 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-07-07 14:53+0200\n"
5
- "PO-Revision-Date: 2017-07-07 14:54+0200\n"
6
- "Language-Team: studio RVOLA <http://www.rvola.com>\n"
7
- "Language: fr_FR\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 2.0.2\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
16
- "Last-Translator: Nicolas GEHIN\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p1/Plugin/UpdateChecker.php:358
20
- msgid "Check for updates"
21
- msgstr "Vérifier les mises à jour"
22
-
23
- #: Puc/v4p1/Plugin/UpdateChecker.php:405
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "L’extension %s est à jour."
28
-
29
- #: Puc/v4p1/Plugin/UpdateChecker.php:407
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Une nouvelle version de l’extension %s est disponible."
34
-
35
- #: Puc/v4p1/Plugin/UpdateChecker.php:409
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Un problème inconnu est survenu \"%s\""
39
-
40
- #: Puc/v4p1/Vcs/PluginUpdateChecker.php:85
41
- msgid "There is no changelog available."
42
- msgstr "Il n’y a aucun journal de mise à jour disponible."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-hu_HU.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-hu_HU.po DELETED
@@ -1,41 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2016-01-11 21:23+0100\n"
5
- "PO-Revision-Date: 2016-01-11 21:25+0100\n"
6
- "Last-Translator: Tamás András Horváth <htomy92@gmail.com>\n"
7
- "Language-Team: \n"
8
- "Language: hu_HU\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.6\n"
13
- "X-Poedit-Basepath: ..\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: github-checker.php:137
20
- msgid "There is no changelog available."
21
- msgstr "Nem érhető el a changelog."
22
-
23
- #: plugin-update-checker.php:852
24
- msgid "Check for updates"
25
- msgstr "Frissítés ellenőrzése"
26
-
27
- #: plugin-update-checker.php:896
28
- msgid "This plugin is up to date."
29
- msgstr "Ez a plugin naprakész."
30
-
31
- #: plugin-update-checker.php:898
32
- msgid "A new version of this plugin is available."
33
- msgstr "Új verzió érhető el a kiegészítőhöz"
34
-
35
- #: plugin-update-checker.php:900
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Ismeretlen a frissítés ellenőrző státusza \"%s\""
39
-
40
- #~ msgid "Every %d hours"
41
- #~ msgstr "Minden %d órában"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-it_IT.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-it_IT.po DELETED
@@ -1,38 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2016-06-29 20:21+0100\n"
5
- "PO-Revision-Date: 2017-01-15 12:24+0100\n"
6
- "Last-Translator: Igor Lückel <info@igorlueckel.de>\n"
7
- "Language-Team: \n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.5.5\n"
12
- "X-Poedit-Basepath: ..\n"
13
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Poedit-KeywordsList: __;_e\n"
16
- "Language: de_DE\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: github-checker.php:137
20
- msgid "There is no changelog available."
21
- msgstr "Non c'è alcuna sezione di aggiornamento disponibile"
22
-
23
- #: plugin-update-checker.php:852
24
- msgid "Check for updates"
25
- msgstr "Verifica aggiornamenti"
26
-
27
- #: plugin-update-checker.php:896
28
- msgid "This plugin is up to date."
29
- msgstr "Il plugin è aggiornato"
30
-
31
- #: plugin-update-checker.php:898
32
- msgid "A new version of this plugin is available."
33
- msgstr "Una nuova versione del plugin è disponibile"
34
-
35
- #: plugin-update-checker.php:900
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Si è verificato un problema sconosciuto \"%s\""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-ja.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-ja.po DELETED
@@ -1,57 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: \n"
4
- "POT-Creation-Date: 2019-07-15 17:07+0900\n"
5
- "PO-Revision-Date: 2019-07-15 17:12+0900\n"
6
- "Last-Translator: tak <tak7725@gmail.com>\n"
7
- "Language-Team: \n"
8
- "Language: ja_JP\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 2.2.3\n"
13
- "X-Poedit-Basepath: ../../../../../../Applications/XAMPP/xamppfiles/htdocs/"
14
- "kisagai/wordpress/wp-content/plugins/simple-stripe-gateway/Puc\n"
15
- "Plural-Forms: nplurals=1; plural=0;\n"
16
- "X-Poedit-KeywordsList: __;_x:1,2c\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: v4p7/Plugin/Ui.php:54
20
- msgid "View details"
21
- msgstr "詳細を表示"
22
-
23
- #: v4p7/Plugin/Ui.php:77
24
- #, php-format
25
- msgid "More information about %s"
26
- msgstr "%sについての詳細"
27
-
28
- #: v4p7/Plugin/Ui.php:128
29
- msgid "Check for updates"
30
- msgstr "アップデートを確認"
31
-
32
- #: v4p7/Plugin/Ui.php:213
33
- #, php-format
34
- msgctxt "the plugin title"
35
- msgid "The %s plugin is up to date."
36
- msgstr "%s プラグインは、最新バージョンです。"
37
-
38
- #: v4p7/Plugin/Ui.php:215
39
- #, php-format
40
- msgctxt "the plugin title"
41
- msgid "A new version of the %s plugin is available."
42
- msgstr "%s プラグインの最新バージョンがあります。"
43
-
44
- #: v4p7/Plugin/Ui.php:217
45
- #, php-format
46
- msgctxt "the plugin title"
47
- msgid "Could not determine if updates are available for %s."
48
- msgstr "%s のアップデートがあるかどうかを判断できませんでした。"
49
-
50
- #: v4p7/Plugin/Ui.php:223
51
- #, php-format
52
- msgid "Unknown update checker status \"%s\""
53
- msgstr "バージョンアップの確認で想定外の状態になりました。ステータス:”%s”"
54
-
55
- #: v4p7/Vcs/PluginUpdateChecker.php:98
56
- msgid "There is no changelog available."
57
- msgstr "更新履歴はありません。"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-nl_BE.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-nl_BE.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2018-03-25 18:15+0200\n"
5
- "PO-Revision-Date: 2018-03-25 18:32+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 1.8.7.1\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: Frank Goossens <frank@optimizingmatters.com>\n"
16
- "Language: nl_BE\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Controleer op nieuwe versies"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "De meest recente %s versie is geïnstalleerd."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Er is een nieuwe versie van %s beschikbaar."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "Kon niet bepalen of er nieuwe versie van %s beschikbaar is."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Ongekende status bij controle op nieuwe versie: \"%s\""
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "Er is geen changelog beschikbaar."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-nl_NL.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-nl_NL.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2018-03-25 18:15+0200\n"
5
- "PO-Revision-Date: 2018-03-25 18:32+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 1.8.7.1\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: Frank Goossens <frank@optimizingmatters.com>\n"
16
- "Language: nl_NL\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Controleer op nieuwe versies"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "De meest recente %s versie is geïnstalleerd."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Er is een nieuwe versie van %s beschikbaar."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "Kon niet bepalen of er nieuwe versie van %s beschikbaar is."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Ongekende status bij controle op nieuwe versie: \"%s\""
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "Er is geen changelog beschikbaar."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-pt_BR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-pt_BR.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-05-19 15:41-0300\n"
5
- "PO-Revision-Date: 2017-05-19 15:42-0300\n"
6
- "Last-Translator: \n"
7
- "Language-Team: \n"
8
- "Language: pt_BR\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.8.8\n"
13
- "X-Poedit-Basepath: ..\n"
14
- "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-KeywordsList: __;_e;_x;_x:1,2c\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p1/Plugin/UpdateChecker.php:358
20
- msgid "Check for updates"
21
- msgstr "Verificar Atualizações"
22
-
23
- #: Puc/v4p1/Plugin/UpdateChecker.php:401 Puc/v4p1/Plugin/UpdateChecker.php:406
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "O plugin %s já está na sua versão mais recente."
28
-
29
- #: Puc/v4p1/Plugin/UpdateChecker.php:408
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Há uma nova versão para o plugin %s disponível para download."
34
-
35
- #: Puc/v4p1/Plugin/UpdateChecker.php:410
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Status \"%s\" desconhecido."
39
-
40
- #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
41
- msgid "There is no changelog available."
42
- msgstr "Não há um changelog disponível."
43
-
44
- #~ msgid "The %s plugin is up to date."
45
- #~ msgstr "O plugin %s já está na sua versão mais recente."
46
-
47
- #~ msgid "A new version of the %s plugin is available."
48
- #~ msgstr "Há uma nova versão para o plugin %s disponível para download."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-ru_RU.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-ru_RU.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2020-08-08 14:36+0300\n"
5
- "PO-Revision-Date: 2021-12-20 17:59+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.2\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: ru_RU\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p11/Plugin/Ui.php:128
20
- msgid "Check for updates"
21
- msgstr "Проверить обновления"
22
-
23
- #: Puc/v4p11/Plugin/Ui.php:213
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "Плагин %s обновлён."
28
-
29
- #: Puc/v4p11/Plugin/Ui.php:215
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Новая версия %s доступна."
34
-
35
- #: Puc/v4p11/Plugin/Ui.php:217
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "Не удалось определить, доступны ли обновления для %s."
40
-
41
- #: Puc/v4p11/Plugin/Ui.php:223
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Неизвестный статус средства проверки обновлений \"%s\""
45
-
46
- #: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
47
- msgid "There is no changelog available."
48
- msgstr "Журнал изменений отсутствует."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-sl_SI.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-sl_SI.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2018-10-27 20:36+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.2\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100>=3 && n%100<=4 ? 2 : 3);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: Igor Funa\n"
16
- "Language: sl_SI\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Preveri posodobitve"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "Vtičnik %s je že posodobljen."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Nova različica vtičnika %s je na razpolago."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "Ne morem ugotoviti če se za vtičnik %s na razpolago posodobitve."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Neznan status preverjanja posodobitev za \"%s\""
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "Dnevnik sprememb ni na razpolago."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-sv_SE.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-sv_SE.po DELETED
@@ -1,42 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-05-20 10:53+0300\n"
5
- "PO-Revision-Date: 2017-10-16 15:02+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.0.4\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: sv_SE\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p1/Plugin/UpdateChecker.php:358
20
- msgid "Check for updates"
21
- msgstr "Sök efter uppdateringar"
22
-
23
- #: Puc/v4p1/Plugin/UpdateChecker.php:405
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "Tillägget %s är uppdaterat."
28
-
29
- #: Puc/v4p1/Plugin/UpdateChecker.php:407
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Det finns en ny version av tillägget %s."
34
-
35
- #: Puc/v4p1/Plugin/UpdateChecker.php:409
36
- #, php-format
37
- msgid "Unknown update checker status \"%s\""
38
- msgstr "Okänd status för kontroll av uppdatering “%s”"
39
-
40
- #: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
41
- msgid "There is no changelog available."
42
- msgstr "Det finns ingen ändringslogg tillgänglig."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-tr_TR.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-tr_TR.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2021-11-15 19:07+0300\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 3.0\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: Emre Erkan <kara@karalamalar.net>\n"
16
- "Language: tr\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "Güncellemeleri kontrol et"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "%s eklentisi güncel."
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "%s eklentisinin yeni bir sürümü mevcut."
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "%s için güncelleme olup olmadığı belirlenemedi."
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Bilinmeyen güncelleme denetleyicisi durumu \"%s\""
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "Kullanılabilir bir değişiklik yok."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-uk_UA.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-uk_UA.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2020-08-08 14:36+0300\n"
5
- "PO-Revision-Date: 2021-12-20 17:55+0200\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.2\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : 2);\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: \n"
16
- "Language: uk_UA\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p11/Plugin/Ui.php:128
20
- msgid "Check for updates"
21
- msgstr "Перевірити оновлення"
22
-
23
- #: Puc/v4p11/Plugin/Ui.php:213
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "Плагін %s оновлено."
28
-
29
- #: Puc/v4p11/Plugin/Ui.php:215
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "Нова версія %s доступна."
34
-
35
- #: Puc/v4p11/Plugin/Ui.php:217
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "Не вдалося визначити, чи доступні оновлення для %s."
40
-
41
- #: Puc/v4p11/Plugin/Ui.php:223
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "Невідомий статус перевірки оновлень \"%s\""
45
-
46
- #: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
47
- msgid "There is no changelog available."
48
- msgstr "Немає доступного журналу змін."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker-zh_CN.mo DELETED
Binary file
app/core/puc/languages/plugin-update-checker-zh_CN.po DELETED
@@ -1,48 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: plugin-update-checker\n"
4
- "POT-Creation-Date: 2017-11-24 17:02+0200\n"
5
- "PO-Revision-Date: 2020-08-04 08:10+0800\n"
6
- "Language-Team: \n"
7
- "MIME-Version: 1.0\n"
8
- "Content-Type: text/plain; charset=UTF-8\n"
9
- "Content-Transfer-Encoding: 8bit\n"
10
- "X-Generator: Poedit 2.4\n"
11
- "X-Poedit-Basepath: ..\n"
12
- "Plural-Forms: nplurals=1; plural=0;\n"
13
- "X-Poedit-SourceCharset: UTF-8\n"
14
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
15
- "Last-Translator: Seaton Jiang <seaton@vtrois.com>\n"
16
- "Language: zh_CN\n"
17
- "X-Poedit-SearchPath-0: .\n"
18
-
19
- #: Puc/v4p3/Plugin/UpdateChecker.php:395
20
- msgid "Check for updates"
21
- msgstr "检查更新"
22
-
23
- #: Puc/v4p3/Plugin/UpdateChecker.php:548
24
- #, php-format
25
- msgctxt "the plugin title"
26
- msgid "The %s plugin is up to date."
27
- msgstr "%s 目前是最新版本。"
28
-
29
- #: Puc/v4p3/Plugin/UpdateChecker.php:550
30
- #, php-format
31
- msgctxt "the plugin title"
32
- msgid "A new version of the %s plugin is available."
33
- msgstr "%s 当前有可用的更新。"
34
-
35
- #: Puc/v4p3/Plugin/UpdateChecker.php:552
36
- #, php-format
37
- msgctxt "the plugin title"
38
- msgid "Could not determine if updates are available for %s."
39
- msgstr "%s 无法确定是否有可用的更新。"
40
-
41
- #: Puc/v4p3/Plugin/UpdateChecker.php:558
42
- #, php-format
43
- msgid "Unknown update checker status \"%s\""
44
- msgstr "未知的更新检查状态:%s"
45
-
46
- #: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
47
- msgid "There is no changelog available."
48
- msgstr "没有可用的更新日志。"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/languages/plugin-update-checker.pot DELETED
@@ -1,49 +0,0 @@
1
- #, fuzzy
2
- msgid ""
3
- msgstr ""
4
- "Project-Id-Version: plugin-update-checker\n"
5
- "POT-Creation-Date: 2020-08-08 14:36+0300\n"
6
- "PO-Revision-Date: 2016-01-10 20:59+0100\n"
7
- "Last-Translator: Tamás András Horváth <htomy92@gmail.com>\n"
8
- "Language-Team: \n"
9
- "Language: en_US\n"
10
- "MIME-Version: 1.0\n"
11
- "Content-Type: text/plain; charset=UTF-8\n"
12
- "Content-Transfer-Encoding: 8bit\n"
13
- "X-Generator: Poedit 2.4\n"
14
- "X-Poedit-Basepath: ..\n"
15
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
- "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
18
- "X-Poedit-SearchPath-0: .\n"
19
-
20
- #: Puc/v4p11/Plugin/Ui.php:128
21
- msgid "Check for updates"
22
- msgstr ""
23
-
24
- #: Puc/v4p11/Plugin/Ui.php:213
25
- #, php-format
26
- msgctxt "the plugin title"
27
- msgid "The %s plugin is up to date."
28
- msgstr ""
29
-
30
- #: Puc/v4p11/Plugin/Ui.php:215
31
- #, php-format
32
- msgctxt "the plugin title"
33
- msgid "A new version of the %s plugin is available."
34
- msgstr ""
35
-
36
- #: Puc/v4p11/Plugin/Ui.php:217
37
- #, php-format
38
- msgctxt "the plugin title"
39
- msgid "Could not determine if updates are available for %s."
40
- msgstr ""
41
-
42
- #: Puc/v4p11/Plugin/Ui.php:223
43
- #, php-format
44
- msgid "Unknown update checker status \"%s\""
45
- msgstr ""
46
-
47
- #: Puc/v4p11/Vcs/PluginUpdateChecker.php:98
48
- msgid "There is no changelog available."
49
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/license.txt DELETED
@@ -1,7 +0,0 @@
1
- Copyright (c) 2017 Jānis Elsts
2
-
3
- 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:
4
-
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
-
7
- 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.
 
 
 
 
 
 
 
app/core/puc/load-v4p11.php DELETED
@@ -1,28 +0,0 @@
1
- <?php
2
- require dirname(__FILE__) . '/Puc/v4p11/Autoloader.php';
3
- new Puc_v4p11_Autoloader();
4
-
5
- require dirname(__FILE__) . '/Puc/v4p11/Factory.php';
6
- require dirname(__FILE__) . '/Puc/v4/Factory.php';
7
-
8
- //Register classes defined in this version with the factory.
9
- foreach (
10
- array(
11
- 'Plugin_UpdateChecker' => 'Puc_v4p11_Plugin_UpdateChecker',
12
- 'Theme_UpdateChecker' => 'Puc_v4p11_Theme_UpdateChecker',
13
-
14
- 'Vcs_PluginUpdateChecker' => 'Puc_v4p11_Vcs_PluginUpdateChecker',
15
- 'Vcs_ThemeUpdateChecker' => 'Puc_v4p11_Vcs_ThemeUpdateChecker',
16
-
17
- 'GitHubApi' => 'Puc_v4p11_Vcs_GitHubApi',
18
- 'BitBucketApi' => 'Puc_v4p11_Vcs_BitBucketApi',
19
- 'GitLabApi' => 'Puc_v4p11_Vcs_GitLabApi',
20
- )
21
- as $pucGeneralClass => $pucVersionedClass
22
- ) {
23
- Puc_v4_Factory::addVersion($pucGeneralClass, $pucVersionedClass, '4.11');
24
- //Also add it to the minor-version factory in case the major-version factory
25
- //was already defined by another, older version of the update checker.
26
- Puc_v4p11_Factory::addVersion($pucGeneralClass, $pucVersionedClass, '4.11');
27
- }
28
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/plugin-update-checker.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- /**
3
- * Plugin Update Checker Library 4.11
4
- * http://w-shadow.com/
5
- *
6
- * Copyright 2021 Janis Elsts
7
- * Released under the MIT license. See license.txt for details.
8
- */
9
-
10
- require dirname(__FILE__) . '/load-v4p11.php';
 
 
 
 
 
 
 
 
 
 
app/core/puc/vendor/Parsedown.php DELETED
@@ -1,9 +0,0 @@
1
- <?php
2
- if ( !class_exists('Parsedown', false) ) {
3
- //Load the Parsedown version that's compatible with the current PHP version.
4
- if ( version_compare(PHP_VERSION, '5.3.0', '>=') ) {
5
- require __DIR__ . '/ParsedownModern.php';
6
- } else {
7
- require __DIR__ . '/ParsedownLegacy.php';
8
- }
9
- }
 
 
 
 
 
 
 
 
 
app/core/puc/vendor/ParsedownLegacy.php DELETED
@@ -1,1535 +0,0 @@
1
- <?php
2
-
3
- #
4
- #
5
- # Parsedown
6
- # http://parsedown.org
7
- #
8
- # (c) Emanuil Rusev
9
- # http://erusev.com
10
- #
11
- # For the full license information, view the LICENSE file that was distributed
12
- # with this source code.
13
- #
14
- #
15
-
16
- class Parsedown
17
- {
18
- # ~
19
-
20
- const version = '1.5.0';
21
-
22
- # ~
23
-
24
- function text($text)
25
- {
26
- # make sure no definitions are set
27
- $this->DefinitionData = array();
28
-
29
- # standardize line breaks
30
- $text = str_replace(array("\r\n", "\r"), "\n", $text);
31
-
32
- # remove surrounding line breaks
33
- $text = trim($text, "\n");
34
-
35
- # split text into lines
36
- $lines = explode("\n", $text);
37
-
38
- # iterate through lines to identify blocks
39
- $markup = $this->lines($lines);
40
-
41
- # trim line breaks
42
- $markup = trim($markup, "\n");
43
-
44
- return $markup;
45
- }
46
-
47
- #
48
- # Setters
49
- #
50
-
51
- function setBreaksEnabled($breaksEnabled)
52
- {
53
- $this->breaksEnabled = $breaksEnabled;
54
-
55
- return $this;
56
- }
57
-
58
- protected $breaksEnabled;
59
-
60
- function setMarkupEscaped($markupEscaped)
61
- {
62
- $this->markupEscaped = $markupEscaped;
63
-
64
- return $this;
65
- }
66
-
67
- protected $markupEscaped;
68
-
69
- function setUrlsLinked($urlsLinked)
70
- {
71
- $this->urlsLinked = $urlsLinked;
72
-
73
- return $this;
74
- }
75
-
76
- protected $urlsLinked = true;
77
-
78
- #
79
- # Lines
80
- #
81
-
82
- protected $BlockTypes = array(
83
- '#' => array('Header'),
84
- '*' => array('Rule', 'List'),
85
- '+' => array('List'),
86
- '-' => array('SetextHeader', 'Table', 'Rule', 'List'),
87
- '0' => array('List'),
88
- '1' => array('List'),
89
- '2' => array('List'),
90
- '3' => array('List'),
91
- '4' => array('List'),
92
- '5' => array('List'),
93
- '6' => array('List'),
94
- '7' => array('List'),
95
- '8' => array('List'),
96
- '9' => array('List'),
97
- ':' => array('Table'),
98
- '<' => array('Comment', 'Markup'),
99
- '=' => array('SetextHeader'),
100
- '>' => array('Quote'),
101
- '[' => array('Reference'),
102
- '_' => array('Rule'),
103
- '`' => array('FencedCode'),
104
- '|' => array('Table'),
105
- '~' => array('FencedCode'),
106
- );
107
-
108
- # ~
109
-
110
- protected $DefinitionTypes = array(
111
- '[' => array('Reference'),
112
- );
113
-
114
- # ~
115
-
116
- protected $unmarkedBlockTypes = array(
117
- 'Code',
118
- );
119
-
120
- #
121
- # Blocks
122
- #
123
-
124
- private function lines(array $lines)
125
- {
126
- $CurrentBlock = null;
127
-
128
- foreach ($lines as $line)
129
- {
130
- if (chop($line) === '')
131
- {
132
- if (isset($CurrentBlock))
133
- {
134
- $CurrentBlock['interrupted'] = true;
135
- }
136
-
137
- continue;
138
- }
139
-
140
- if (strpos($line, "\t") !== false)
141
- {
142
- $parts = explode("\t", $line);
143
-
144
- $line = $parts[0];
145
-
146
- unset($parts[0]);
147
-
148
- foreach ($parts as $part)
149
- {
150
- $shortage = 4 - mb_strlen($line, 'utf-8') % 4;
151
-
152
- $line .= str_repeat(' ', $shortage);
153
- $line .= $part;
154
- }
155
- }
156
-
157
- $indent = 0;
158
-
159
- while (isset($line[$indent]) and $line[$indent] === ' ')
160
- {
161
- $indent ++;
162
- }
163
-
164
- $text = $indent > 0 ? substr($line, $indent) : $line;
165
-
166
- # ~
167
-
168
- $Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
169
-
170
- # ~
171
-
172
- if (isset($CurrentBlock['incomplete']))
173
- {
174
- $Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock);
175
-
176
- if (isset($Block))
177
- {
178
- $CurrentBlock = $Block;
179
-
180
- continue;
181
- }
182
- else
183
- {
184
- if (method_exists($this, 'block'.$CurrentBlock['type'].'Complete'))
185
- {
186
- $CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
187
- }
188
-
189
- unset($CurrentBlock['incomplete']);
190
- }
191
- }
192
-
193
- # ~
194
-
195
- $marker = $text[0];
196
-
197
- # ~
198
-
199
- $blockTypes = $this->unmarkedBlockTypes;
200
-
201
- if (isset($this->BlockTypes[$marker]))
202
- {
203
- foreach ($this->BlockTypes[$marker] as $blockType)
204
- {
205
- $blockTypes []= $blockType;
206
- }
207
- }
208
-
209
- #
210
- # ~
211
-
212
- foreach ($blockTypes as $blockType)
213
- {
214
- $Block = $this->{'block'.$blockType}($Line, $CurrentBlock);
215
-
216
- if (isset($Block))
217
- {
218
- $Block['type'] = $blockType;
219
-
220
- if ( ! isset($Block['identified']))
221
- {
222
- $Blocks []= $CurrentBlock;
223
-
224
- $Block['identified'] = true;
225
- }
226
-
227
- if (method_exists($this, 'block'.$blockType.'Continue'))
228
- {
229
- $Block['incomplete'] = true;
230
- }
231
-
232
- $CurrentBlock = $Block;
233
-
234
- continue 2;
235
- }
236
- }
237
-
238
- # ~
239
-
240
- if (isset($CurrentBlock) and ! isset($CurrentBlock['type']) and ! isset($CurrentBlock['interrupted']))
241
- {
242
- $CurrentBlock['element']['text'] .= "\n".$text;
243
- }
244
- else
245
- {
246
- $Blocks []= $CurrentBlock;
247
-
248
- $CurrentBlock = $this->paragraph($Line);
249
-
250
- $CurrentBlock['identified'] = true;
251
- }
252
- }
253
-
254
- # ~
255
-
256
- if (isset($CurrentBlock['incomplete']) and method_exists($this, 'block'.$CurrentBlock['type'].'Complete'))
257
- {
258
- $CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
259
- }
260
-
261
- # ~
262
-
263
- $Blocks []= $CurrentBlock;
264
-
265
- unset($Blocks[0]);
266
-
267
- # ~
268
-
269
- $markup = '';
270
-
271
- foreach ($Blocks as $Block)
272
- {
273
- if (isset($Block['hidden']))
274
- {
275
- continue;
276
- }
277
-
278
- $markup .= "\n";
279
- $markup .= isset($Block['markup']) ? $Block['markup'] : $this->element($Block['element']);
280
- }
281
-
282
- $markup .= "\n";
283
-
284
- # ~
285
-
286
- return $markup;
287
- }
288
-
289
- #
290
- # Code
291
-
292
- protected function blockCode($Line, $Block = null)
293
- {
294
- if (isset($Block) and ! isset($Block['type']) and ! isset($Block['interrupted']))
295
- {
296
- return;
297
- }
298
-
299
- if ($Line['indent'] >= 4)
300
- {
301
- $text = substr($Line['body'], 4);
302
-
303
- $Block = array(
304
- 'element' => array(
305
- 'name' => 'pre',
306
- 'handler' => 'element',
307
- 'text' => array(
308
- 'name' => 'code',
309
- 'text' => $text,
310
- ),
311
- ),
312
- );
313
-
314
- return $Block;
315
- }
316
- }
317
-
318
- protected function blockCodeContinue($Line, $Block)
319
- {
320
- if ($Line['indent'] >= 4)
321
- {
322
- if (isset($Block['interrupted']))
323
- {
324
- $Block['element']['text']['text'] .= "\n";
325
-
326
- unset($Block['interrupted']);
327
- }
328
-
329
- $Block['element']['text']['text'] .= "\n";
330
-
331
- $text = substr($Line['body'], 4);
332
-
333
- $Block['element']['text']['text'] .= $text;
334
-
335
- return $Block;
336
- }
337
- }
338
-
339
- protected function blockCodeComplete($Block)
340
- {
341
- $text = $Block['element']['text']['text'];
342
-
343
- $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
344
-
345
- $Block['element']['text']['text'] = $text;
346
-
347
- return $Block;
348
- }
349
-
350
- #
351
- # Comment
352
-
353
- protected function blockComment($Line)
354
- {
355
- if ($this->markupEscaped)
356
- {
357
- return;
358
- }
359
-
360
- if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
361
- {
362
- $Block = array(
363
- 'markup' => $Line['body'],
364
- );
365
-
366
- if (preg_match('/-->$/', $Line['text']))
367
- {
368
- $Block['closed'] = true;
369
- }
370
-
371
- return $Block;
372
- }
373
- }
374
-
375
- protected function blockCommentContinue($Line, array $Block)
376
- {
377
- if (isset($Block['closed']))
378
- {
379
- return;
380
- }
381
-
382
- $Block['markup'] .= "\n" . $Line['body'];
383
-
384
- if (preg_match('/-->$/', $Line['text']))
385
- {
386
- $Block['closed'] = true;
387
- }
388
-
389
- return $Block;
390
- }
391
-
392
- #
393
- # Fenced Code
394
-
395
- protected function blockFencedCode($Line)
396
- {
397
- if (preg_match('/^(['.$Line['text'][0].']{3,})[ ]*([\w-]+)?[ ]*$/', $Line['text'], $matches))
398
- {
399
- $Element = array(
400
- 'name' => 'code',
401
- 'text' => '',
402
- );
403
-
404
- if (isset($matches[2]))
405
- {
406
- $class = 'language-'.$matches[2];
407
-
408
- $Element['attributes'] = array(
409
- 'class' => $class,
410
- );
411
- }
412
-
413
- $Block = array(
414
- 'char' => $Line['text'][0],
415
- 'element' => array(
416
- 'name' => 'pre',
417
- 'handler' => 'element',
418
- 'text' => $Element,
419
- ),
420
- );
421
-
422
- return $Block;
423
- }
424
- }
425
-
426
- protected function blockFencedCodeContinue($Line, $Block)
427
- {
428
- if (isset($Block['complete']))
429
- {
430
- return;
431
- }
432
-
433
- if (isset($Block['interrupted']))
434
- {
435
- $Block['element']['text']['text'] .= "\n";
436
-
437
- unset($Block['interrupted']);
438
- }
439
-
440
- if (preg_match('/^'.$Block['char'].'{3,}[ ]*$/', $Line['text']))
441
- {
442
- $Block['element']['text']['text'] = substr($Block['element']['text']['text'], 1);
443
-
444
- $Block['complete'] = true;
445
-
446
- return $Block;
447
- }
448
-
449
- $Block['element']['text']['text'] .= "\n".$Line['body'];;
450
-
451
- return $Block;
452
- }
453
-
454
- protected function blockFencedCodeComplete($Block)
455
- {
456
- $text = $Block['element']['text']['text'];
457
-
458
- $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
459
-
460
- $Block['element']['text']['text'] = $text;
461
-
462
- return $Block;
463
- }
464
-
465
- #
466
- # Header
467
-
468
- protected function blockHeader($Line)
469
- {
470
- if (isset($Line['text'][1]))
471
- {
472
- $level = 1;
473
-
474
- while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
475
- {
476
- $level ++;
477
- }
478
-
479
- if ($level > 6)
480
- {
481
- return;
482
- }
483
-
484
- $text = trim($Line['text'], '# ');
485
-
486
- $Block = array(
487
- 'element' => array(
488
- 'name' => 'h' . min(6, $level),
489
- 'text' => $text,
490
- 'handler' => 'line',
491
- ),
492
- );
493
-
494
- return $Block;
495
- }
496
- }
497
-
498
- #
499
- # List
500
-
501
- protected function blockList($Line)
502
- {
503
- list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]+[.]');
504
-
505
- if (preg_match('/^('.$pattern.'[ ]+)(.*)/', $Line['text'], $matches))
506
- {
507
- $Block = array(
508
- 'indent' => $Line['indent'],
509
- 'pattern' => $pattern,
510
- 'element' => array(
511
- 'name' => $name,
512
- 'handler' => 'elements',
513
- ),
514
- );
515
-
516
- $Block['li'] = array(
517
- 'name' => 'li',
518
- 'handler' => 'li',
519
- 'text' => array(
520
- $matches[2],
521
- ),
522
- );
523
-
524
- $Block['element']['text'] []= & $Block['li'];
525
-
526
- return $Block;
527
- }
528
- }
529
-
530
- protected function blockListContinue($Line, array $Block)
531
- {
532
- if ($Block['indent'] === $Line['indent'] and preg_match('/^'.$Block['pattern'].'(?:[ ]+(.*)|$)/', $Line['text'], $matches))
533
- {
534
- if (isset($Block['interrupted']))
535
- {
536
- $Block['li']['text'] []= '';
537
-
538
- unset($Block['interrupted']);
539
- }
540
-
541
- unset($Block['li']);
542
-
543
- $text = isset($matches[1]) ? $matches[1] : '';
544
-
545
- $Block['li'] = array(
546
- 'name' => 'li',
547
- 'handler' => 'li',
548
- 'text' => array(
549
- $text,
550
- ),
551
- );
552
-
553
- $Block['element']['text'] []= & $Block['li'];
554
-
555
- return $Block;
556
- }
557
-
558
- if ($Line['text'][0] === '[' and $this->blockReference($Line))
559
- {
560
- return $Block;
561
- }
562
-
563
- if ( ! isset($Block['interrupted']))
564
- {
565
- $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
566
-
567
- $Block['li']['text'] []= $text;
568
-
569
- return $Block;
570
- }
571
-
572
- if ($Line['indent'] > 0)
573
- {
574
- $Block['li']['text'] []= '';
575
-
576
- $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
577
-
578
- $Block['li']['text'] []= $text;
579
-
580
- unset($Block['interrupted']);
581
-
582
- return $Block;
583
- }
584
- }
585
-
586
- #
587
- # Quote
588
-
589
- protected function blockQuote($Line)
590
- {
591
- if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
592
- {
593
- $Block = array(
594
- 'element' => array(
595
- 'name' => 'blockquote',
596
- 'handler' => 'lines',
597
- 'text' => (array) $matches[1],
598
- ),
599
- );
600
-
601
- return $Block;
602
- }
603
- }
604
-
605
- protected function blockQuoteContinue($Line, array $Block)
606
- {
607
- if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
608
- {
609
- if (isset($Block['interrupted']))
610
- {
611
- $Block['element']['text'] []= '';
612
-
613
- unset($Block['interrupted']);
614
- }
615
-
616
- $Block['element']['text'] []= $matches[1];
617
-
618
- return $Block;
619
- }
620
-
621
- if ( ! isset($Block['interrupted']))
622
- {
623
- $Block['element']['text'] []= $Line['text'];
624
-
625
- return $Block;
626
- }
627
- }
628
-
629
- #
630
- # Rule
631
-
632
- protected function blockRule($Line)
633
- {
634
- if (preg_match('/^(['.$Line['text'][0].'])([ ]*\1){2,}[ ]*$/', $Line['text']))
635
- {
636
- $Block = array(
637
- 'element' => array(
638
- 'name' => 'hr'
639
- ),
640
- );
641
-
642
- return $Block;
643
- }
644
- }
645
-
646
- #
647
- # Setext
648
-
649
- protected function blockSetextHeader($Line, array $Block = null)
650
- {
651
- if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
652
- {
653
- return;
654
- }
655
-
656
- if (chop($Line['text'], $Line['text'][0]) === '')
657
- {
658
- $Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
659
-
660
- return $Block;
661
- }
662
- }
663
-
664
- #
665
- # Markup
666
-
667
- protected function blockMarkup($Line)
668
- {
669
- if ($this->markupEscaped)
670
- {
671
- return;
672
- }
673
-
674
- if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches))
675
- {
676
- if (in_array($matches[1], $this->textLevelElements))
677
- {
678
- return;
679
- }
680
-
681
- $Block = array(
682
- 'name' => $matches[1],
683
- 'depth' => 0,
684
- 'markup' => $Line['text'],
685
- );
686
-
687
- $length = strlen($matches[0]);
688
-
689
- $remainder = substr($Line['text'], $length);
690
-
691
- if (trim($remainder) === '')
692
- {
693
- if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
694
- {
695
- $Block['closed'] = true;
696
-
697
- $Block['void'] = true;
698
- }
699
- }
700
- else
701
- {
702
- if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
703
- {
704
- return;
705
- }
706
-
707
- if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder))
708
- {
709
- $Block['closed'] = true;
710
- }
711
- }
712
-
713
- return $Block;
714
- }
715
- }
716
-
717
- protected function blockMarkupContinue($Line, array $Block)
718
- {
719
- if (isset($Block['closed']))
720
- {
721
- return;
722
- }
723
-
724
- if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open
725
- {
726
- $Block['depth'] ++;
727
- }
728
-
729
- if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close
730
- {
731
- if ($Block['depth'] > 0)
732
- {
733
- $Block['depth'] --;
734
- }
735
- else
736
- {
737
- $Block['closed'] = true;
738
- }
739
-
740
- $Block['markup'] .= $matches[1];
741
- }
742
-
743
- if (isset($Block['interrupted']))
744
- {
745
- $Block['markup'] .= "\n";
746
-
747
- unset($Block['interrupted']);
748
- }
749
-
750
- $Block['markup'] .= "\n".$Line['body'];
751
-
752
- return $Block;
753
- }
754
-
755
- #
756
- # Reference
757
-
758
- protected function blockReference($Line)
759
- {
760
- if (preg_match('/^\[(.+?)\]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches))
761
- {
762
- $id = strtolower($matches[1]);
763
-
764
- $Data = array(
765
- 'url' => $matches[2],
766
- 'title' => null,
767
- );
768
-
769
- if (isset($matches[3]))
770
- {
771
- $Data['title'] = $matches[3];
772
- }
773
-
774
- $this->DefinitionData['Reference'][$id] = $Data;
775
-
776
- $Block = array(
777
- 'hidden' => true,
778
- );
779
-
780
- return $Block;
781
- }
782
- }
783
-
784
- #
785
- # Table
786
-
787
- protected function blockTable($Line, array $Block = null)
788
- {
789
- if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
790
- {
791
- return;
792
- }
793
-
794
- if (strpos($Block['element']['text'], '|') !== false and chop($Line['text'], ' -:|') === '')
795
- {
796
- $alignments = array();
797
-
798
- $divider = $Line['text'];
799
-
800
- $divider = trim($divider);
801
- $divider = trim($divider, '|');
802
-
803
- $dividerCells = explode('|', $divider);
804
-
805
- foreach ($dividerCells as $dividerCell)
806
- {
807
- $dividerCell = trim($dividerCell);
808
-
809
- if ($dividerCell === '')
810
- {
811
- continue;
812
- }
813
-
814
- $alignment = null;
815
-
816
- if ($dividerCell[0] === ':')
817
- {
818
- $alignment = 'left';
819
- }
820
-
821
- if (substr($dividerCell, - 1) === ':')
822
- {
823
- $alignment = $alignment === 'left' ? 'center' : 'right';
824
- }
825
-
826
- $alignments []= $alignment;
827
- }
828
-
829
- # ~
830
-
831
- $HeaderElements = array();
832
-
833
- $header = $Block['element']['text'];
834
-
835
- $header = trim($header);
836
- $header = trim($header, '|');
837
-
838
- $headerCells = explode('|', $header);
839
-
840
- foreach ($headerCells as $index => $headerCell)
841
- {
842
- $headerCell = trim($headerCell);
843
-
844
- $HeaderElement = array(
845
- 'name' => 'th',
846
- 'text' => $headerCell,
847
- 'handler' => 'line',
848
- );
849
-
850
- if (isset($alignments[$index]))
851
- {
852
- $alignment = $alignments[$index];
853
-
854
- $HeaderElement['attributes'] = array(
855
- 'style' => 'text-align: '.$alignment.';',
856
- );
857
- }
858
-
859
- $HeaderElements []= $HeaderElement;
860
- }
861
-
862
- # ~
863
-
864
- $Block = array(
865
- 'alignments' => $alignments,
866
- 'identified' => true,
867
- 'element' => array(
868
- 'name' => 'table',
869
- 'handler' => 'elements',
870
- ),
871
- );
872
-
873
- $Block['element']['text'] []= array(
874
- 'name' => 'thead',
875
- 'handler' => 'elements',
876
- );
877
-
878
- $Block['element']['text'] []= array(
879
- 'name' => 'tbody',
880
- 'handler' => 'elements',
881
- 'text' => array(),
882
- );
883
-
884
- $Block['element']['text'][0]['text'] []= array(
885
- 'name' => 'tr',
886
- 'handler' => 'elements',
887
- 'text' => $HeaderElements,
888
- );
889
-
890
- return $Block;
891
- }
892
- }
893
-
894
- protected function blockTableContinue($Line, array $Block)
895
- {
896
- if (isset($Block['interrupted']))
897
- {
898
- return;
899
- }
900
-
901
- if ($Line['text'][0] === '|' or strpos($Line['text'], '|'))
902
- {
903
- $Elements = array();
904
-
905
- $row = $Line['text'];
906
-
907
- $row = trim($row);
908
- $row = trim($row, '|');
909
-
910
- preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]+`|`)+/', $row, $matches);
911
-
912
- foreach ($matches[0] as $index => $cell)
913
- {
914
- $cell = trim($cell);
915
-
916
- $Element = array(
917
- 'name' => 'td',
918
- 'handler' => 'line',
919
- 'text' => $cell,
920
- );
921
-
922
- if (isset($Block['alignments'][$index]))
923
- {
924
- $Element['attributes'] = array(
925
- 'style' => 'text-align: '.$Block['alignments'][$index].';',
926
- );
927
- }
928
-
929
- $Elements []= $Element;
930
- }
931
-
932
- $Element = array(
933
- 'name' => 'tr',
934
- 'handler' => 'elements',
935
- 'text' => $Elements,
936
- );
937
-
938
- $Block['element']['text'][1]['text'] []= $Element;
939
-
940
- return $Block;
941
- }
942
- }
943
-
944
- #
945
- # ~
946
- #
947
-
948
- protected function paragraph($Line)
949
- {
950
- $Block = array(
951
- 'element' => array(
952
- 'name' => 'p',
953
- 'text' => $Line['text'],
954
- 'handler' => 'line',
955
- ),
956
- );
957
-
958
- return $Block;
959
- }
960
-
961
- #
962
- # Inline Elements
963
- #
964
-
965
- protected $InlineTypes = array(
966
- '"' => array('SpecialCharacter'),
967
- '!' => array('Image'),
968
- '&' => array('SpecialCharacter'),
969
- '*' => array('Emphasis'),
970
- ':' => array('Url'),
971
- '<' => array('UrlTag', 'EmailTag', 'Markup', 'SpecialCharacter'),
972
- '>' => array('SpecialCharacter'),
973
- '[' => array('Link'),
974
- '_' => array('Emphasis'),
975
- '`' => array('Code'),
976
- '~' => array('Strikethrough'),
977
- '\\' => array('EscapeSequence'),
978
- );
979
-
980
- # ~
981
-
982
- protected $inlineMarkerList = '!"*_&[:<>`~\\';
983
-
984
- #
985
- # ~
986
- #
987
-
988
- public function line($text)
989
- {
990
- $markup = '';
991
-
992
- $unexaminedText = $text;
993
-
994
- $markerPosition = 0;
995
-
996
- while ($excerpt = strpbrk($unexaminedText, $this->inlineMarkerList))
997
- {
998
- $marker = $excerpt[0];
999
-
1000
- $markerPosition += strpos($unexaminedText, $marker);
1001
-
1002
- $Excerpt = array('text' => $excerpt, 'context' => $text);
1003
-
1004
- foreach ($this->InlineTypes[$marker] as $inlineType)
1005
- {
1006
- $Inline = $this->{'inline'.$inlineType}($Excerpt);
1007
-
1008
- if ( ! isset($Inline))
1009
- {
1010
- continue;
1011
- }
1012
-
1013
- if (isset($Inline['position']) and $Inline['position'] > $markerPosition) # position is ahead of marker
1014
- {
1015
- continue;
1016
- }
1017
-
1018
- if ( ! isset($Inline['position']))
1019
- {
1020
- $Inline['position'] = $markerPosition;
1021
- }
1022
-
1023
- $unmarkedText = substr($text, 0, $Inline['position']);
1024
-
1025
- $markup .= $this->unmarkedText($unmarkedText);
1026
-
1027
- $markup .= isset($Inline['markup']) ? $Inline['markup'] : $this->element($Inline['element']);
1028
-
1029
- $text = substr($text, $Inline['position'] + $Inline['extent']);
1030
-
1031
- $unexaminedText = $text;
1032
-
1033
- $markerPosition = 0;
1034
-
1035
- continue 2;
1036
- }
1037
-
1038
- $unexaminedText = substr($excerpt, 1);
1039
-
1040
- $markerPosition ++;
1041
- }
1042
-
1043
- $markup .= $this->unmarkedText($text);
1044
-
1045
- return $markup;
1046
- }
1047
-
1048
- #
1049
- # ~
1050
- #
1051
-
1052
- protected function inlineCode($Excerpt)
1053
- {
1054
- $marker = $Excerpt['text'][0];
1055
-
1056
- if (preg_match('/^('.$marker.'+)[ ]*(.+?)[ ]*(?<!'.$marker.')\1(?!'.$marker.')/s', $Excerpt['text'], $matches))
1057
- {
1058
- $text = $matches[2];
1059
- $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
1060
- $text = preg_replace("/[ ]*\n/", ' ', $text);
1061
-
1062
- return array(
1063
- 'extent' => strlen($matches[0]),
1064
- 'element' => array(
1065
- 'name' => 'code',
1066
- 'text' => $text,
1067
- ),
1068
- );
1069
- }
1070
- }
1071
-
1072
- protected function inlineEmailTag($Excerpt)
1073
- {
1074
- if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<((mailto:)?\S+?@\S+?)>/i', $Excerpt['text'], $matches))
1075
- {
1076
- $url = $matches[1];
1077
-
1078
- if ( ! isset($matches[2]))
1079
- {
1080
- $url = 'mailto:' . $url;
1081
- }
1082
-
1083
- return array(
1084
- 'extent' => strlen($matches[0]),
1085
- 'element' => array(
1086
- 'name' => 'a',
1087
- 'text' => $matches[1],
1088
- 'attributes' => array(
1089
- 'href' => $url,
1090
- ),
1091
- ),
1092
- );
1093
- }
1094
- }
1095
-
1096
- protected function inlineEmphasis($Excerpt)
1097
- {
1098
- if ( ! isset($Excerpt['text'][1]))
1099
- {
1100
- return;
1101
- }
1102
-
1103
- $marker = $Excerpt['text'][0];
1104
-
1105
- if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches))
1106
- {
1107
- $emphasis = 'strong';
1108
- }
1109
- elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches))
1110
- {
1111
- $emphasis = 'em';
1112
- }
1113
- else
1114
- {
1115
- return;
1116
- }
1117
-
1118
- return array(
1119
- 'extent' => strlen($matches[0]),
1120
- 'element' => array(
1121
- 'name' => $emphasis,
1122
- 'handler' => 'line',
1123
- 'text' => $matches[1],
1124
- ),
1125
- );
1126
- }
1127
-
1128
- protected function inlineEscapeSequence($Excerpt)
1129
- {
1130
- if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters))
1131
- {
1132
- return array(
1133
- 'markup' => $Excerpt['text'][1],
1134
- 'extent' => 2,
1135
- );
1136
- }
1137
- }
1138
-
1139
- protected function inlineImage($Excerpt)
1140
- {
1141
- if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[')
1142
- {
1143
- return;
1144
- }
1145
-
1146
- $Excerpt['text']= substr($Excerpt['text'], 1);
1147
-
1148
- $Link = $this->inlineLink($Excerpt);
1149
-
1150
- if ($Link === null)
1151
- {
1152
- return;
1153
- }
1154
-
1155
- $Inline = array(
1156
- 'extent' => $Link['extent'] + 1,
1157
- 'element' => array(
1158
- 'name' => 'img',
1159
- 'attributes' => array(
1160
- 'src' => $Link['element']['attributes']['href'],
1161
- 'alt' => $Link['element']['text'],
1162
- ),
1163
- ),
1164
- );
1165
-
1166
- $Inline['element']['attributes'] += $Link['element']['attributes'];
1167
-
1168
- unset($Inline['element']['attributes']['href']);
1169
-
1170
- return $Inline;
1171
- }
1172
-
1173
- protected function inlineLink($Excerpt)
1174
- {
1175
- $Element = array(
1176
- 'name' => 'a',
1177
- 'handler' => 'line',
1178
- 'text' => null,
1179
- 'attributes' => array(
1180
- 'href' => null,
1181
- 'title' => null,
1182
- ),
1183
- );
1184
-
1185
- $extent = 0;
1186
-
1187
- $remainder = $Excerpt['text'];
1188
-
1189
- if (preg_match('/\[((?:[^][]|(?R))*)\]/', $remainder, $matches))
1190
- {
1191
- $Element['text'] = $matches[1];
1192
-
1193
- $extent += strlen($matches[0]);
1194
-
1195
- $remainder = substr($remainder, $extent);
1196
- }
1197
- else
1198
- {
1199
- return;
1200
- }
1201
-
1202
- if (preg_match('/^[(]((?:[^ (]|[(][^ )]+[)])+)(?:[ ]+("[^"]+"|\'[^\']+\'))?[)]/', $remainder, $matches))
1203
- {
1204
- $Element['attributes']['href'] = $matches[1];
1205
-
1206
- if (isset($matches[2]))
1207
- {
1208
- $Element['attributes']['title'] = substr($matches[2], 1, - 1);
1209
- }
1210
-
1211
- $extent += strlen($matches[0]);
1212
- }
1213
- else
1214
- {
1215
- if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches))
1216
- {
1217
- $definition = $matches[1] ? $matches[1] : $Element['text'];
1218
- $definition = strtolower($definition);
1219
-
1220
- $extent += strlen($matches[0]);
1221
- }
1222
- else
1223
- {
1224
- $definition = strtolower($Element['text']);
1225
- }
1226
-
1227
- if ( ! isset($this->DefinitionData['Reference'][$definition]))
1228
- {
1229
- return;
1230
- }
1231
-
1232
- $Definition = $this->DefinitionData['Reference'][$definition];
1233
-
1234
- $Element['attributes']['href'] = $Definition['url'];
1235
- $Element['attributes']['title'] = $Definition['title'];
1236
- }
1237
-
1238
- $Element['attributes']['href'] = str_replace(array('&', '<'), array('&amp;', '&lt;'), $Element['attributes']['href']);
1239
-
1240
- return array(
1241
- 'extent' => $extent,
1242
- 'element' => $Element,
1243
- );
1244
- }
1245
-
1246
- protected function inlineMarkup($Excerpt)
1247
- {
1248
- if ($this->markupEscaped or strpos($Excerpt['text'], '>') === false)
1249
- {
1250
- return;
1251
- }
1252
-
1253
- if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches))
1254
- {
1255
- return array(
1256
- 'markup' => $matches[0],
1257
- 'extent' => strlen($matches[0]),
1258
- );
1259
- }
1260
-
1261
- if ($Excerpt['text'][1] === '!' and preg_match('/^<!---?[^>-](?:-?[^-])*-->/s', $Excerpt['text'], $matches))
1262
- {
1263
- return array(
1264
- 'markup' => $matches[0],
1265
- 'extent' => strlen($matches[0]),
1266
- );
1267
- }
1268
-
1269
- if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches))
1270
- {
1271
- return array(
1272
- 'markup' => $matches[0],
1273
- 'extent' => strlen($matches[0]),
1274
- );
1275
- }
1276
- }
1277
-
1278
- protected function inlineSpecialCharacter($Excerpt)
1279
- {
1280
- if ($Excerpt['text'][0] === '&' and ! preg_match('/^&#?\w+;/', $Excerpt['text']))
1281
- {
1282
- return array(
1283
- 'markup' => '&amp;',
1284
- 'extent' => 1,
1285
- );
1286
- }
1287
-
1288
- $SpecialCharacter = array('>' => 'gt', '<' => 'lt', '"' => 'quot');
1289
-
1290
- if (isset($SpecialCharacter[$Excerpt['text'][0]]))
1291
- {
1292
- return array(
1293
- 'markup' => '&'.$SpecialCharacter[$Excerpt['text'][0]].';',
1294
- 'extent' => 1,
1295
- );
1296
- }
1297
- }
1298
-
1299
- protected function inlineStrikethrough($Excerpt)
1300
- {
1301
- if ( ! isset($Excerpt['text'][1]))
1302
- {
1303
- return;
1304
- }
1305
-
1306
- if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches))
1307
- {
1308
- return array(
1309
- 'extent' => strlen($matches[0]),
1310
- 'element' => array(
1311
- 'name' => 'del',
1312
- 'text' => $matches[1],
1313
- 'handler' => 'line',
1314
- ),
1315
- );
1316
- }
1317
- }
1318
-
1319
- protected function inlineUrl($Excerpt)
1320
- {
1321
- if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/')
1322
- {
1323
- return;
1324
- }
1325
-
1326
- if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE))
1327
- {
1328
- $Inline = array(
1329
- 'extent' => strlen($matches[0][0]),
1330
- 'position' => $matches[0][1],
1331
- 'element' => array(
1332
- 'name' => 'a',
1333
- 'text' => $matches[0][0],
1334
- 'attributes' => array(
1335
- 'href' => $matches[0][0],
1336
- ),
1337
- ),
1338
- );
1339
-
1340
- return $Inline;
1341
- }
1342
- }
1343
-
1344
- protected function inlineUrlTag($Excerpt)
1345
- {
1346
- if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches))
1347
- {
1348
- $url = str_replace(array('&', '<'), array('&amp;', '&lt;'), $matches[1]);
1349
-
1350
- return array(
1351
- 'extent' => strlen($matches[0]),
1352
- 'element' => array(
1353
- 'name' => 'a',
1354
- 'text' => $url,
1355
- 'attributes' => array(
1356
- 'href' => $url,
1357
- ),
1358
- ),
1359
- );
1360
- }
1361
- }
1362
-
1363
- #
1364
- # ~
1365
-
1366
- protected $unmarkedInlineTypes = array("\n" => 'Break', '://' => 'Url');
1367
-
1368
- # ~
1369
-
1370
- protected function unmarkedText($text)
1371
- {
1372
- if ($this->breaksEnabled)
1373
- {
1374
- $text = preg_replace('/[ ]*\n/', "<br />\n", $text);
1375
- }
1376
- else
1377
- {
1378
- $text = preg_replace('/(?:[ ][ ]+|[ ]*\\\\)\n/', "<br />\n", $text);
1379
- $text = str_replace(" \n", "\n", $text);
1380
- }
1381
-
1382
- return $text;
1383
- }
1384
-
1385
- #
1386
- # Handlers
1387
- #
1388
-
1389
- protected function element(array $Element)
1390
- {
1391
- $markup = '<'.$Element['name'];
1392
-
1393
- if (isset($Element['attributes']))
1394
- {
1395
- foreach ($Element['attributes'] as $name => $value)
1396
- {
1397
- if ($value === null)
1398
- {
1399
- continue;
1400
- }
1401
-
1402
- $markup .= ' '.$name.'="'.$value.'"';
1403
- }
1404
- }
1405
-
1406
- if (isset($Element['text']))
1407
- {
1408
- $markup .= '>';
1409
-
1410
- if (isset($Element['handler']))
1411
- {
1412
- $markup .= $this->{$Element['handler']}($Element['text']);
1413
- }
1414
- else
1415
- {
1416
- $markup .= $Element['text'];
1417
- }
1418
-
1419
- $markup .= '</'.$Element['name'].'>';
1420
- }
1421
- else
1422
- {
1423
- $markup .= ' />';
1424
- }
1425
-
1426
- return $markup;
1427
- }
1428
-
1429
- protected function elements(array $Elements)
1430
- {
1431
- $markup = '';
1432
-
1433
- foreach ($Elements as $Element)
1434
- {
1435
- $markup .= "\n" . $this->element($Element);
1436
- }
1437
-
1438
- $markup .= "\n";
1439
-
1440
- return $markup;
1441
- }
1442
-
1443
- # ~
1444
-
1445
- protected function li($lines)
1446
- {
1447
- $markup = $this->lines($lines);
1448
-
1449
- $trimmedMarkup = trim($markup);
1450
-
1451
- if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '<p>')
1452
- {
1453
- $markup = $trimmedMarkup;
1454
- $markup = substr($markup, 3);
1455
-
1456
- $position = strpos($markup, "</p>");
1457
-
1458
- $markup = substr_replace($markup, '', $position, 4);
1459
- }
1460
-
1461
- return $markup;
1462
- }
1463
-
1464
- #
1465
- # Deprecated Methods
1466
- #
1467
-
1468
- function parse($text)
1469
- {
1470
- $markup = $this->text($text);
1471
-
1472
- return $markup;
1473
- }
1474
-
1475
- #
1476
- # Static Methods
1477
- #
1478
-
1479
- static function instance($name = 'default')
1480
- {
1481
- if (isset(self::$instances[$name]))
1482
- {
1483
- return self::$instances[$name];
1484
- }
1485
-
1486
- $instance = new self();
1487
-
1488
- self::$instances[$name] = $instance;
1489
-
1490
- return $instance;
1491
- }
1492
-
1493
- private static $instances = array();
1494
-
1495
- #
1496
- # Fields
1497
- #
1498
-
1499
- protected $DefinitionData;
1500
-
1501
- #
1502
- # Read-Only
1503
-
1504
- protected $specialCharacters = array(
1505
- '\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|',
1506
- );
1507
-
1508
- protected $StrongRegex = array(
1509
- '*' => '/^[*]{2}((?:\\\\\*|[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s',
1510
- '_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us',
1511
- );
1512
-
1513
- protected $EmRegex = array(
1514
- '*' => '/^[*]((?:\\\\\*|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s',
1515
- '_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us',
1516
- );
1517
-
1518
- protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?';
1519
-
1520
- protected $voidElements = array(
1521
- 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source',
1522
- );
1523
-
1524
- protected $textLevelElements = array(
1525
- 'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont',
1526
- 'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing',
1527
- 'i', 'rp', 'del', 'code', 'strike', 'marquee',
1528
- 'q', 'rt', 'ins', 'font', 'strong',
1529
- 's', 'tt', 'sub', 'mark',
1530
- 'u', 'xm', 'sup', 'nobr',
1531
- 'var', 'ruby',
1532
- 'wbr', 'span',
1533
- 'time',
1534
- );
1535
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/vendor/ParsedownModern.php DELETED
@@ -1,1538 +0,0 @@
1
- <?php
2
-
3
- #
4
- #
5
- # Parsedown
6
- # http://parsedown.org
7
- #
8
- # (c) Emanuil Rusev
9
- # http://erusev.com
10
- #
11
- # For the full license information, view the LICENSE file that was distributed
12
- # with this source code.
13
- #
14
- #
15
-
16
- class Parsedown
17
- {
18
- # ~
19
-
20
- const version = '1.6.0';
21
-
22
- # ~
23
-
24
- function text($text)
25
- {
26
- # make sure no definitions are set
27
- $this->DefinitionData = array();
28
-
29
- # standardize line breaks
30
- $text = str_replace(array("\r\n", "\r"), "\n", $text);
31
-
32
- # remove surrounding line breaks
33
- $text = trim($text, "\n");
34
-
35
- # split text into lines
36
- $lines = explode("\n", $text);
37
-
38
- # iterate through lines to identify blocks
39
- $markup = $this->lines($lines);
40
-
41
- # trim line breaks
42
- $markup = trim($markup, "\n");
43
-
44
- return $markup;
45
- }
46
-
47
- #
48
- # Setters
49
- #
50
-
51
- function setBreaksEnabled($breaksEnabled)
52
- {
53
- $this->breaksEnabled = $breaksEnabled;
54
-
55
- return $this;
56
- }
57
-
58
- protected $breaksEnabled;
59
-
60
- function setMarkupEscaped($markupEscaped)
61
- {
62
- $this->markupEscaped = $markupEscaped;
63
-
64
- return $this;
65
- }
66
-
67
- protected $markupEscaped;
68
-
69
- function setUrlsLinked($urlsLinked)
70
- {
71
- $this->urlsLinked = $urlsLinked;
72
-
73
- return $this;
74
- }
75
-
76
- protected $urlsLinked = true;
77
-
78
- #
79
- # Lines
80
- #
81
-
82
- protected $BlockTypes = array(
83
- '#' => array('Header'),
84
- '*' => array('Rule', 'List'),
85
- '+' => array('List'),
86
- '-' => array('SetextHeader', 'Table', 'Rule', 'List'),
87
- '0' => array('List'),
88
- '1' => array('List'),
89
- '2' => array('List'),
90
- '3' => array('List'),
91
- '4' => array('List'),
92
- '5' => array('List'),
93
- '6' => array('List'),
94
- '7' => array('List'),
95
- '8' => array('List'),
96
- '9' => array('List'),
97
- ':' => array('Table'),
98
- '<' => array('Comment', 'Markup'),
99
- '=' => array('SetextHeader'),
100
- '>' => array('Quote'),
101
- '[' => array('Reference'),
102
- '_' => array('Rule'),
103
- '`' => array('FencedCode'),
104
- '|' => array('Table'),
105
- '~' => array('FencedCode'),
106
- );
107
-
108
- # ~
109
-
110
- protected $unmarkedBlockTypes = array(
111
- 'Code',
112
- );
113
-
114
- #
115
- # Blocks
116
- #
117
-
118
- protected function lines(array $lines)
119
- {
120
- $CurrentBlock = null;
121
-
122
- foreach ($lines as $line)
123
- {
124
- if (chop($line) === '')
125
- {
126
- if (isset($CurrentBlock))
127
- {
128
- $CurrentBlock['interrupted'] = true;
129
- }
130
-
131
- continue;
132
- }
133
-
134
- if (strpos($line, "\t") !== false)
135
- {
136
- $parts = explode("\t", $line);
137
-
138
- $line = $parts[0];
139
-
140
- unset($parts[0]);
141
-
142
- foreach ($parts as $part)
143
- {
144
- $shortage = 4 - mb_strlen($line, 'utf-8') % 4;
145
-
146
- $line .= str_repeat(' ', $shortage);
147
- $line .= $part;
148
- }
149
- }
150
-
151
- $indent = 0;
152
-
153
- while (isset($line[$indent]) and $line[$indent] === ' ')
154
- {
155
- $indent ++;
156
- }
157
-
158
- $text = $indent > 0 ? substr($line, $indent) : $line;
159
-
160
- # ~
161
-
162
- $Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
163
-
164
- # ~
165
-
166
- if (isset($CurrentBlock['continuable']))
167
- {
168
- $Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock);
169
-
170
- if (isset($Block))
171
- {
172
- $CurrentBlock = $Block;
173
-
174
- continue;
175
- }
176
- else
177
- {
178
- if ($this->isBlockCompletable($CurrentBlock['type']))
179
- {
180
- $CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
181
- }
182
- }
183
- }
184
-
185
- # ~
186
-
187
- $marker = $text[0];
188
-
189
- # ~
190
-
191
- $blockTypes = $this->unmarkedBlockTypes;
192
-
193
- if (isset($this->BlockTypes[$marker]))
194
- {
195
- foreach ($this->BlockTypes[$marker] as $blockType)
196
- {
197
- $blockTypes []= $blockType;
198
- }
199
- }
200
-
201
- #
202
- # ~
203
-
204
- foreach ($blockTypes as $blockType)
205
- {
206
- $Block = $this->{'block'.$blockType}($Line, $CurrentBlock);
207
-
208
- if (isset($Block))
209
- {
210
- $Block['type'] = $blockType;
211
-
212
- if ( ! isset($Block['identified']))
213
- {
214
- $Blocks []= $CurrentBlock;
215
-
216
- $Block['identified'] = true;
217
- }
218
-
219
- if ($this->isBlockContinuable($blockType))
220
- {
221
- $Block['continuable'] = true;
222
- }
223
-
224
- $CurrentBlock = $Block;
225
-
226
- continue 2;
227
- }
228
- }
229
-
230
- # ~
231
-
232
- if (isset($CurrentBlock) and ! isset($CurrentBlock['type']) and ! isset($CurrentBlock['interrupted']))
233
- {
234
- $CurrentBlock['element']['text'] .= "\n".$text;
235
- }
236
- else
237
- {
238
- $Blocks []= $CurrentBlock;
239
-
240
- $CurrentBlock = $this->paragraph($Line);
241
-
242
- $CurrentBlock['identified'] = true;
243
- }
244
- }
245
-
246
- # ~
247
-
248
- if (isset($CurrentBlock['continuable']) and $this->isBlockCompletable($CurrentBlock['type']))
249
- {
250
- $CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
251
- }
252
-
253
- # ~
254
-
255
- $Blocks []= $CurrentBlock;
256
-
257
- unset($Blocks[0]);
258
-
259
- # ~
260
-
261
- $markup = '';
262
-
263
- foreach ($Blocks as $Block)
264
- {
265
- if (isset($Block['hidden']))
266
- {
267
- continue;
268
- }
269
-
270
- $markup .= "\n";
271
- $markup .= isset($Block['markup']) ? $Block['markup'] : $this->element($Block['element']);
272
- }
273
-
274
- $markup .= "\n";
275
-
276
- # ~
277
-
278
- return $markup;
279
- }
280
-
281
- protected function isBlockContinuable($Type)
282
- {
283
- return method_exists($this, 'block'.$Type.'Continue');
284
- }
285
-
286
- protected function isBlockCompletable($Type)
287
- {
288
- return method_exists($this, 'block'.$Type.'Complete');
289
- }
290
-
291
- #
292
- # Code
293
-
294
- protected function blockCode($Line, $Block = null)
295
- {
296
- if (isset($Block) and ! isset($Block['type']) and ! isset($Block['interrupted']))
297
- {
298
- return;
299
- }
300
-
301
- if ($Line['indent'] >= 4)
302
- {
303
- $text = substr($Line['body'], 4);
304
-
305
- $Block = array(
306
- 'element' => array(
307
- 'name' => 'pre',
308
- 'handler' => 'element',
309
- 'text' => array(
310
- 'name' => 'code',
311
- 'text' => $text,
312
- ),
313
- ),
314
- );
315
-
316
- return $Block;
317
- }
318
- }
319
-
320
- protected function blockCodeContinue($Line, $Block)
321
- {
322
- if ($Line['indent'] >= 4)
323
- {
324
- if (isset($Block['interrupted']))
325
- {
326
- $Block['element']['text']['text'] .= "\n";
327
-
328
- unset($Block['interrupted']);
329
- }
330
-
331
- $Block['element']['text']['text'] .= "\n";
332
-
333
- $text = substr($Line['body'], 4);
334
-
335
- $Block['element']['text']['text'] .= $text;
336
-
337
- return $Block;
338
- }
339
- }
340
-
341
- protected function blockCodeComplete($Block)
342
- {
343
- $text = $Block['element']['text']['text'];
344
-
345
- $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
346
-
347
- $Block['element']['text']['text'] = $text;
348
-
349
- return $Block;
350
- }
351
-
352
- #
353
- # Comment
354
-
355
- protected function blockComment($Line)
356
- {
357
- if ($this->markupEscaped)
358
- {
359
- return;
360
- }
361
-
362
- if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
363
- {
364
- $Block = array(
365
- 'markup' => $Line['body'],
366
- );
367
-
368
- if (preg_match('/-->$/', $Line['text']))
369
- {
370
- $Block['closed'] = true;
371
- }
372
-
373
- return $Block;
374
- }
375
- }
376
-
377
- protected function blockCommentContinue($Line, array $Block)
378
- {
379
- if (isset($Block['closed']))
380
- {
381
- return;
382
- }
383
-
384
- $Block['markup'] .= "\n" . $Line['body'];
385
-
386
- if (preg_match('/-->$/', $Line['text']))
387
- {
388
- $Block['closed'] = true;
389
- }
390
-
391
- return $Block;
392
- }
393
-
394
- #
395
- # Fenced Code
396
-
397
- protected function blockFencedCode($Line)
398
- {
399
- if (preg_match('/^['.$Line['text'][0].']{3,}[ ]*([\w-]+)?[ ]*$/', $Line['text'], $matches))
400
- {
401
- $Element = array(
402
- 'name' => 'code',
403
- 'text' => '',
404
- );
405
-
406
- if (isset($matches[1]))
407
- {
408
- $class = 'language-'.$matches[1];
409
-
410
- $Element['attributes'] = array(
411
- 'class' => $class,
412
- );
413
- }
414
-
415
- $Block = array(
416
- 'char' => $Line['text'][0],
417
- 'element' => array(
418
- 'name' => 'pre',
419
- 'handler' => 'element',
420
- 'text' => $Element,
421
- ),
422
- );
423
-
424
- return $Block;
425
- }
426
- }
427
-
428
- protected function blockFencedCodeContinue($Line, $Block)
429
- {
430
- if (isset($Block['complete']))
431
- {
432
- return;
433
- }
434
-
435
- if (isset($Block['interrupted']))
436
- {
437
- $Block['element']['text']['text'] .= "\n";
438
-
439
- unset($Block['interrupted']);
440
- }
441
-
442
- if (preg_match('/^'.$Block['char'].'{3,}[ ]*$/', $Line['text']))
443
- {
444
- $Block['element']['text']['text'] = substr($Block['element']['text']['text'], 1);
445
-
446
- $Block['complete'] = true;
447
-
448
- return $Block;
449
- }
450
-
451
- $Block['element']['text']['text'] .= "\n".$Line['body'];;
452
-
453
- return $Block;
454
- }
455
-
456
- protected function blockFencedCodeComplete($Block)
457
- {
458
- $text = $Block['element']['text']['text'];
459
-
460
- $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
461
-
462
- $Block['element']['text']['text'] = $text;
463
-
464
- return $Block;
465
- }
466
-
467
- #
468
- # Header
469
-
470
- protected function blockHeader($Line)
471
- {
472
- if (isset($Line['text'][1]))
473
- {
474
- $level = 1;
475
-
476
- while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
477
- {
478
- $level ++;
479
- }
480
-
481
- if ($level > 6)
482
- {
483
- return;
484
- }
485
-
486
- $text = trim($Line['text'], '# ');
487
-
488
- $Block = array(
489
- 'element' => array(
490
- 'name' => 'h' . min(6, $level),
491
- 'text' => $text,
492
- 'handler' => 'line',
493
- ),
494
- );
495
-
496
- return $Block;
497
- }
498
- }
499
-
500
- #
501
- # List
502
-
503
- protected function blockList($Line)
504
- {
505
- list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]+[.]');
506
-
507
- if (preg_match('/^('.$pattern.'[ ]+)(.*)/', $Line['text'], $matches))
508
- {
509
- $Block = array(
510
- 'indent' => $Line['indent'],
511
- 'pattern' => $pattern,
512
- 'element' => array(
513
- 'name' => $name,
514
- 'handler' => 'elements',
515
- ),
516
- );
517
-
518
- $Block['li'] = array(
519
- 'name' => 'li',
520
- 'handler' => 'li',
521
- 'text' => array(
522
- $matches[2],
523
- ),
524
- );
525
-
526
- $Block['element']['text'] []= & $Block['li'];
527
-
528
- return $Block;
529
- }
530
- }
531
-
532
- protected function blockListContinue($Line, array $Block)
533
- {
534
- if ($Block['indent'] === $Line['indent'] and preg_match('/^'.$Block['pattern'].'(?:[ ]+(.*)|$)/', $Line['text'], $matches))
535
- {
536
- if (isset($Block['interrupted']))
537
- {
538
- $Block['li']['text'] []= '';
539
-
540
- unset($Block['interrupted']);
541
- }
542
-
543
- unset($Block['li']);
544
-
545
- $text = isset($matches[1]) ? $matches[1] : '';
546
-
547
- $Block['li'] = array(
548
- 'name' => 'li',
549
- 'handler' => 'li',
550
- 'text' => array(
551
- $text,
552
- ),
553
- );
554
-
555
- $Block['element']['text'] []= & $Block['li'];
556
-
557
- return $Block;
558
- }
559
-
560
- if ($Line['text'][0] === '[' and $this->blockReference($Line))
561
- {
562
- return $Block;
563
- }
564
-
565
- if ( ! isset($Block['interrupted']))
566
- {
567
- $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
568
-
569
- $Block['li']['text'] []= $text;
570
-
571
- return $Block;
572
- }
573
-
574
- if ($Line['indent'] > 0)
575
- {
576
- $Block['li']['text'] []= '';
577
-
578
- $text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
579
-
580
- $Block['li']['text'] []= $text;
581
-
582
- unset($Block['interrupted']);
583
-
584
- return $Block;
585
- }
586
- }
587
-
588
- #
589
- # Quote
590
-
591
- protected function blockQuote($Line)
592
- {
593
- if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
594
- {
595
- $Block = array(
596
- 'element' => array(
597
- 'name' => 'blockquote',
598
- 'handler' => 'lines',
599
- 'text' => (array) $matches[1],
600
- ),
601
- );
602
-
603
- return $Block;
604
- }
605
- }
606
-
607
- protected function blockQuoteContinue($Line, array $Block)
608
- {
609
- if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
610
- {
611
- if (isset($Block['interrupted']))
612
- {
613
- $Block['element']['text'] []= '';
614
-
615
- unset($Block['interrupted']);
616
- }
617
-
618
- $Block['element']['text'] []= $matches[1];
619
-
620
- return $Block;
621
- }
622
-
623
- if ( ! isset($Block['interrupted']))
624
- {
625
- $Block['element']['text'] []= $Line['text'];
626
-
627
- return $Block;
628
- }
629
- }
630
-
631
- #
632
- # Rule
633
-
634
- protected function blockRule($Line)
635
- {
636
- if (preg_match('/^(['.$Line['text'][0].'])([ ]*\1){2,}[ ]*$/', $Line['text']))
637
- {
638
- $Block = array(
639
- 'element' => array(
640
- 'name' => 'hr'
641
- ),
642
- );
643
-
644
- return $Block;
645
- }
646
- }
647
-
648
- #
649
- # Setext
650
-
651
- protected function blockSetextHeader($Line, array $Block = null)
652
- {
653
- if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
654
- {
655
- return;
656
- }
657
-
658
- if (chop($Line['text'], $Line['text'][0]) === '')
659
- {
660
- $Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
661
-
662
- return $Block;
663
- }
664
- }
665
-
666
- #
667
- # Markup
668
-
669
- protected function blockMarkup($Line)
670
- {
671
- if ($this->markupEscaped)
672
- {
673
- return;
674
- }
675
-
676
- if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches))
677
- {
678
- $element = strtolower($matches[1]);
679
-
680
- if (in_array($element, $this->textLevelElements))
681
- {
682
- return;
683
- }
684
-
685
- $Block = array(
686
- 'name' => $matches[1],
687
- 'depth' => 0,
688
- 'markup' => $Line['text'],
689
- );
690
-
691
- $length = strlen($matches[0]);
692
-
693
- $remainder = substr($Line['text'], $length);
694
-
695
- if (trim($remainder) === '')
696
- {
697
- if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
698
- {
699
- $Block['closed'] = true;
700
-
701
- $Block['void'] = true;
702
- }
703
- }
704
- else
705
- {
706
- if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
707
- {
708
- return;
709
- }
710
-
711
- if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder))
712
- {
713
- $Block['closed'] = true;
714
- }
715
- }
716
-
717
- return $Block;
718
- }
719
- }
720
-
721
- protected function blockMarkupContinue($Line, array $Block)
722
- {
723
- if (isset($Block['closed']))
724
- {
725
- return;
726
- }
727
-
728
- if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open
729
- {
730
- $Block['depth'] ++;
731
- }
732
-
733
- if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close
734
- {
735
- if ($Block['depth'] > 0)
736
- {
737
- $Block['depth'] --;
738
- }
739
- else
740
- {
741
- $Block['closed'] = true;
742
- }
743
- }
744
-
745
- if (isset($Block['interrupted']))
746
- {
747
- $Block['markup'] .= "\n";
748
-
749
- unset($Block['interrupted']);
750
- }
751
-
752
- $Block['markup'] .= "\n".$Line['body'];
753
-
754
- return $Block;
755
- }
756
-
757
- #
758
- # Reference
759
-
760
- protected function blockReference($Line)
761
- {
762
- if (preg_match('/^\[(.+?)\]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches))
763
- {
764
- $id = strtolower($matches[1]);
765
-
766
- $Data = array(
767
- 'url' => $matches[2],
768
- 'title' => null,
769
- );
770
-
771
- if (isset($matches[3]))
772
- {
773
- $Data['title'] = $matches[3];
774
- }
775
-
776
- $this->DefinitionData['Reference'][$id] = $Data;
777
-
778
- $Block = array(
779
- 'hidden' => true,
780
- );
781
-
782
- return $Block;
783
- }
784
- }
785
-
786
- #
787
- # Table
788
-
789
- protected function blockTable($Line, array $Block = null)
790
- {
791
- if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
792
- {
793
- return;
794
- }
795
-
796
- if (strpos($Block['element']['text'], '|') !== false and chop($Line['text'], ' -:|') === '')
797
- {
798
- $alignments = array();
799
-
800
- $divider = $Line['text'];
801
-
802
- $divider = trim($divider);
803
- $divider = trim($divider, '|');
804
-
805
- $dividerCells = explode('|', $divider);
806
-
807
- foreach ($dividerCells as $dividerCell)
808
- {
809
- $dividerCell = trim($dividerCell);
810
-
811
- if ($dividerCell === '')
812
- {
813
- continue;
814
- }
815
-
816
- $alignment = null;
817
-
818
- if ($dividerCell[0] === ':')
819
- {
820
- $alignment = 'left';
821
- }
822
-
823
- if (substr($dividerCell, - 1) === ':')
824
- {
825
- $alignment = $alignment === 'left' ? 'center' : 'right';
826
- }
827
-
828
- $alignments []= $alignment;
829
- }
830
-
831
- # ~
832
-
833
- $HeaderElements = array();
834
-
835
- $header = $Block['element']['text'];
836
-
837
- $header = trim($header);
838
- $header = trim($header, '|');
839
-
840
- $headerCells = explode('|', $header);
841
-
842
- foreach ($headerCells as $index => $headerCell)
843
- {
844
- $headerCell = trim($headerCell);
845
-
846
- $HeaderElement = array(
847
- 'name' => 'th',
848
- 'text' => $headerCell,
849
- 'handler' => 'line',
850
- );
851
-
852
- if (isset($alignments[$index]))
853
- {
854
- $alignment = $alignments[$index];
855
-
856
- $HeaderElement['attributes'] = array(
857
- 'style' => 'text-align: '.$alignment.';',
858
- );
859
- }
860
-
861
- $HeaderElements []= $HeaderElement;
862
- }
863
-
864
- # ~
865
-
866
- $Block = array(
867
- 'alignments' => $alignments,
868
- 'identified' => true,
869
- 'element' => array(
870
- 'name' => 'table',
871
- 'handler' => 'elements',
872
- ),
873
- );
874
-
875
- $Block['element']['text'] []= array(
876
- 'name' => 'thead',
877
- 'handler' => 'elements',
878
- );
879
-
880
- $Block['element']['text'] []= array(
881
- 'name' => 'tbody',
882
- 'handler' => 'elements',
883
- 'text' => array(),
884
- );
885
-
886
- $Block['element']['text'][0]['text'] []= array(
887
- 'name' => 'tr',
888
- 'handler' => 'elements',
889
- 'text' => $HeaderElements,
890
- );
891
-
892
- return $Block;
893
- }
894
- }
895
-
896
- protected function blockTableContinue($Line, array $Block)
897
- {
898
- if (isset($Block['interrupted']))
899
- {
900
- return;
901
- }
902
-
903
- if ($Line['text'][0] === '|' or strpos($Line['text'], '|'))
904
- {
905
- $Elements = array();
906
-
907
- $row = $Line['text'];
908
-
909
- $row = trim($row);
910
- $row = trim($row, '|');
911
-
912
- preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]+`|`)+/', $row, $matches);
913
-
914
- foreach ($matches[0] as $index => $cell)
915
- {
916
- $cell = trim($cell);
917
-
918
- $Element = array(
919
- 'name' => 'td',
920
- 'handler' => 'line',
921
- 'text' => $cell,
922
- );
923
-
924
- if (isset($Block['alignments'][$index]))
925
- {
926
- $Element['attributes'] = array(
927
- 'style' => 'text-align: '.$Block['alignments'][$index].';',
928
- );
929
- }
930
-
931
- $Elements []= $Element;
932
- }
933
-
934
- $Element = array(
935
- 'name' => 'tr',
936
- 'handler' => 'elements',
937
- 'text' => $Elements,
938
- );
939
-
940
- $Block['element']['text'][1]['text'] []= $Element;
941
-
942
- return $Block;
943
- }
944
- }
945
-
946
- #
947
- # ~
948
- #
949
-
950
- protected function paragraph($Line)
951
- {
952
- $Block = array(
953
- 'element' => array(
954
- 'name' => 'p',
955
- 'text' => $Line['text'],
956
- 'handler' => 'line',
957
- ),
958
- );
959
-
960
- return $Block;
961
- }
962
-
963
- #
964
- # Inline Elements
965
- #
966
-
967
- protected $InlineTypes = array(
968
- '"' => array('SpecialCharacter'),
969
- '!' => array('Image'),
970
- '&' => array('SpecialCharacter'),
971
- '*' => array('Emphasis'),
972
- ':' => array('Url'),
973
- '<' => array('UrlTag', 'EmailTag', 'Markup', 'SpecialCharacter'),
974
- '>' => array('SpecialCharacter'),
975
- '[' => array('Link'),
976
- '_' => array('Emphasis'),
977
- '`' => array('Code'),
978
- '~' => array('Strikethrough'),
979
- '\\' => array('EscapeSequence'),
980
- );
981
-
982
- # ~
983
-
984
- protected $inlineMarkerList = '!"*_&[:<>`~\\';
985
-
986
- #
987
- # ~
988
- #
989
-
990
- public function line($text)
991
- {
992
- $markup = '';
993
-
994
- # $excerpt is based on the first occurrence of a marker
995
-
996
- while ($excerpt = strpbrk($text, $this->inlineMarkerList))
997
- {
998
- $marker = $excerpt[0];
999
-
1000
- $markerPosition = strpos($text, $marker);
1001
-
1002
- $Excerpt = array('text' => $excerpt, 'context' => $text);
1003
-
1004
- foreach ($this->InlineTypes[$marker] as $inlineType)
1005
- {
1006
- $Inline = $this->{'inline'.$inlineType}($Excerpt);
1007
-
1008
- if ( ! isset($Inline))
1009
- {
1010
- continue;
1011
- }
1012
-
1013
- # makes sure that the inline belongs to "our" marker
1014
-
1015
- if (isset($Inline['position']) and $Inline['position'] > $markerPosition)
1016
- {
1017
- continue;
1018
- }
1019
-
1020
- # sets a default inline position
1021
-
1022
- if ( ! isset($Inline['position']))
1023
- {
1024
- $Inline['position'] = $markerPosition;
1025
- }
1026
-
1027
- # the text that comes before the inline
1028
- $unmarkedText = substr($text, 0, $Inline['position']);
1029
-
1030
- # compile the unmarked text
1031
- $markup .= $this->unmarkedText($unmarkedText);
1032
-
1033
- # compile the inline
1034
- $markup .= isset($Inline['markup']) ? $Inline['markup'] : $this->element($Inline['element']);
1035
-
1036
- # remove the examined text
1037
- $text = substr($text, $Inline['position'] + $Inline['extent']);
1038
-
1039
- continue 2;
1040
- }
1041
-
1042
- # the marker does not belong to an inline
1043
-
1044
- $unmarkedText = substr($text, 0, $markerPosition + 1);
1045
-
1046
- $markup .= $this->unmarkedText($unmarkedText);
1047
-
1048
- $text = substr($text, $markerPosition + 1);
1049
- }
1050
-
1051
- $markup .= $this->unmarkedText($text);
1052
-
1053
- return $markup;
1054
- }
1055
-
1056
- #
1057
- # ~
1058
- #
1059
-
1060
- protected function inlineCode($Excerpt)
1061
- {
1062
- $marker = $Excerpt['text'][0];
1063
-
1064
- if (preg_match('/^('.$marker.'+)[ ]*(.+?)[ ]*(?<!'.$marker.')\1(?!'.$marker.')/s', $Excerpt['text'], $matches))
1065
- {
1066
- $text = $matches[2];
1067
- $text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
1068
- $text = preg_replace("/[ ]*\n/", ' ', $text);
1069
-
1070
- return array(
1071
- 'extent' => strlen($matches[0]),
1072
- 'element' => array(
1073
- 'name' => 'code',
1074
- 'text' => $text,
1075
- ),
1076
- );
1077
- }
1078
- }
1079
-
1080
- protected function inlineEmailTag($Excerpt)
1081
- {
1082
- if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<((mailto:)?\S+?@\S+?)>/i', $Excerpt['text'], $matches))
1083
- {
1084
- $url = $matches[1];
1085
-
1086
- if ( ! isset($matches[2]))
1087
- {
1088
- $url = 'mailto:' . $url;
1089
- }
1090
-
1091
- return array(
1092
- 'extent' => strlen($matches[0]),
1093
- 'element' => array(
1094
- 'name' => 'a',
1095
- 'text' => $matches[1],
1096
- 'attributes' => array(
1097
- 'href' => $url,
1098
- ),
1099
- ),
1100
- );
1101
- }
1102
- }
1103
-
1104
- protected function inlineEmphasis($Excerpt)
1105
- {
1106
- if ( ! isset($Excerpt['text'][1]))
1107
- {
1108
- return;
1109
- }
1110
-
1111
- $marker = $Excerpt['text'][0];
1112
-
1113
- if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches))
1114
- {
1115
- $emphasis = 'strong';
1116
- }
1117
- elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches))
1118
- {
1119
- $emphasis = 'em';
1120
- }
1121
- else
1122
- {
1123
- return;
1124
- }
1125
-
1126
- return array(
1127
- 'extent' => strlen($matches[0]),
1128
- 'element' => array(
1129
- 'name' => $emphasis,
1130
- 'handler' => 'line',
1131
- 'text' => $matches[1],
1132
- ),
1133
- );
1134
- }
1135
-
1136
- protected function inlineEscapeSequence($Excerpt)
1137
- {
1138
- if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters))
1139
- {
1140
- return array(
1141
- 'markup' => $Excerpt['text'][1],
1142
- 'extent' => 2,
1143
- );
1144
- }
1145
- }
1146
-
1147
- protected function inlineImage($Excerpt)
1148
- {
1149
- if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[')
1150
- {
1151
- return;
1152
- }
1153
-
1154
- $Excerpt['text']= substr($Excerpt['text'], 1);
1155
-
1156
- $Link = $this->inlineLink($Excerpt);
1157
-
1158
- if ($Link === null)
1159
- {
1160
- return;
1161
- }
1162
-
1163
- $Inline = array(
1164
- 'extent' => $Link['extent'] + 1,
1165
- 'element' => array(
1166
- 'name' => 'img',
1167
- 'attributes' => array(
1168
- 'src' => $Link['element']['attributes']['href'],
1169
- 'alt' => $Link['element']['text'],
1170
- ),
1171
- ),
1172
- );
1173
-
1174
- $Inline['element']['attributes'] += $Link['element']['attributes'];
1175
-
1176
- unset($Inline['element']['attributes']['href']);
1177
-
1178
- return $Inline;
1179
- }
1180
-
1181
- protected function inlineLink($Excerpt)
1182
- {
1183
- $Element = array(
1184
- 'name' => 'a',
1185
- 'handler' => 'line',
1186
- 'text' => null,
1187
- 'attributes' => array(
1188
- 'href' => null,
1189
- 'title' => null,
1190
- ),
1191
- );
1192
-
1193
- $extent = 0;
1194
-
1195
- $remainder = $Excerpt['text'];
1196
-
1197
- if (preg_match('/\[((?:[^][]|(?R))*)\]/', $remainder, $matches))
1198
- {
1199
- $Element['text'] = $matches[1];
1200
-
1201
- $extent += strlen($matches[0]);
1202
-
1203
- $remainder = substr($remainder, $extent);
1204
- }
1205
- else
1206
- {
1207
- return;
1208
- }
1209
-
1210
- if (preg_match('/^[(]((?:[^ ()]|[(][^ )]+[)])+)(?:[ ]+("[^"]*"|\'[^\']*\'))?[)]/', $remainder, $matches))
1211
- {
1212
- $Element['attributes']['href'] = $matches[1];
1213
-
1214
- if (isset($matches[2]))
1215
- {
1216
- $Element['attributes']['title'] = substr($matches[2], 1, - 1);
1217
- }
1218
-
1219
- $extent += strlen($matches[0]);
1220
- }
1221
- else
1222
- {
1223
- if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches))
1224
- {
1225
- $definition = strlen($matches[1]) ? $matches[1] : $Element['text'];
1226
- $definition = strtolower($definition);
1227
-
1228
- $extent += strlen($matches[0]);
1229
- }
1230
- else
1231
- {
1232
- $definition = strtolower($Element['text']);
1233
- }
1234
-
1235
- if ( ! isset($this->DefinitionData['Reference'][$definition]))
1236
- {
1237
- return;
1238
- }
1239
-
1240
- $Definition = $this->DefinitionData['Reference'][$definition];
1241
-
1242
- $Element['attributes']['href'] = $Definition['url'];
1243
- $Element['attributes']['title'] = $Definition['title'];
1244
- }
1245
-
1246
- $Element['attributes']['href'] = str_replace(array('&', '<'), array('&amp;', '&lt;'), $Element['attributes']['href']);
1247
-
1248
- return array(
1249
- 'extent' => $extent,
1250
- 'element' => $Element,
1251
- );
1252
- }
1253
-
1254
- protected function inlineMarkup($Excerpt)
1255
- {
1256
- if ($this->markupEscaped or strpos($Excerpt['text'], '>') === false)
1257
- {
1258
- return;
1259
- }
1260
-
1261
- if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches))
1262
- {
1263
- return array(
1264
- 'markup' => $matches[0],
1265
- 'extent' => strlen($matches[0]),
1266
- );
1267
- }
1268
-
1269
- if ($Excerpt['text'][1] === '!' and preg_match('/^<!---?[^>-](?:-?[^-])*-->/s', $Excerpt['text'], $matches))
1270
- {
1271
- return array(
1272
- 'markup' => $matches[0],
1273
- 'extent' => strlen($matches[0]),
1274
- );
1275
- }
1276
-
1277
- if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches))
1278
- {
1279
- return array(
1280
- 'markup' => $matches[0],
1281
- 'extent' => strlen($matches[0]),
1282
- );
1283
- }
1284
- }
1285
-
1286
- protected function inlineSpecialCharacter($Excerpt)
1287
- {
1288
- if ($Excerpt['text'][0] === '&' and ! preg_match('/^&#?\w+;/', $Excerpt['text']))
1289
- {
1290
- return array(
1291
- 'markup' => '&amp;',
1292
- 'extent' => 1,
1293
- );
1294
- }
1295
-
1296
- $SpecialCharacter = array('>' => 'gt', '<' => 'lt', '"' => 'quot');
1297
-
1298
- if (isset($SpecialCharacter[$Excerpt['text'][0]]))
1299
- {
1300
- return array(
1301
- 'markup' => '&'.$SpecialCharacter[$Excerpt['text'][0]].';',
1302
- 'extent' => 1,
1303
- );
1304
- }
1305
- }
1306
-
1307
- protected function inlineStrikethrough($Excerpt)
1308
- {
1309
- if ( ! isset($Excerpt['text'][1]))
1310
- {
1311
- return;
1312
- }
1313
-
1314
- if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches))
1315
- {
1316
- return array(
1317
- 'extent' => strlen($matches[0]),
1318
- 'element' => array(
1319
- 'name' => 'del',
1320
- 'text' => $matches[1],
1321
- 'handler' => 'line',
1322
- ),
1323
- );
1324
- }
1325
- }
1326
-
1327
- protected function inlineUrl($Excerpt)
1328
- {
1329
- if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/')
1330
- {
1331
- return;
1332
- }
1333
-
1334
- if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE))
1335
- {
1336
- $Inline = array(
1337
- 'extent' => strlen($matches[0][0]),
1338
- 'position' => $matches[0][1],
1339
- 'element' => array(
1340
- 'name' => 'a',
1341
- 'text' => $matches[0][0],
1342
- 'attributes' => array(
1343
- 'href' => $matches[0][0],
1344
- ),
1345
- ),
1346
- );
1347
-
1348
- return $Inline;
1349
- }
1350
- }
1351
-
1352
- protected function inlineUrlTag($Excerpt)
1353
- {
1354
- if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches))
1355
- {
1356
- $url = str_replace(array('&', '<'), array('&amp;', '&lt;'), $matches[1]);
1357
-
1358
- return array(
1359
- 'extent' => strlen($matches[0]),
1360
- 'element' => array(
1361
- 'name' => 'a',
1362
- 'text' => $url,
1363
- 'attributes' => array(
1364
- 'href' => $url,
1365
- ),
1366
- ),
1367
- );
1368
- }
1369
- }
1370
-
1371
- # ~
1372
-
1373
- protected function unmarkedText($text)
1374
- {
1375
- if ($this->breaksEnabled)
1376
- {
1377
- $text = preg_replace('/[ ]*\n/', "<br />\n", $text);
1378
- }
1379
- else
1380
- {
1381
- $text = preg_replace('/(?:[ ][ ]+|[ ]*\\\\)\n/', "<br />\n", $text);
1382
- $text = str_replace(" \n", "\n", $text);
1383
- }
1384
-
1385
- return $text;
1386
- }
1387
-
1388
- #
1389
- # Handlers
1390
- #
1391
-
1392
- protected function element(array $Element)
1393
- {
1394
- $markup = '<'.$Element['name'];
1395
-
1396
- if (isset($Element['attributes']))
1397
- {
1398
- foreach ($Element['attributes'] as $name => $value)
1399
- {
1400
- if ($value === null)
1401
- {
1402
- continue;
1403
- }
1404
-
1405
- $markup .= ' '.$name.'="'.$value.'"';
1406
- }
1407
- }
1408
-
1409
- if (isset($Element['text']))
1410
- {
1411
- $markup .= '>';
1412
-
1413
- if (isset($Element['handler']))
1414
- {
1415
- $markup .= $this->{$Element['handler']}($Element['text']);
1416
- }
1417
- else
1418
- {
1419
- $markup .= $Element['text'];
1420
- }
1421
-
1422
- $markup .= '</'.$Element['name'].'>';
1423
- }
1424
- else
1425
- {
1426
- $markup .= ' />';
1427
- }
1428
-
1429
- return $markup;
1430
- }
1431
-
1432
- protected function elements(array $Elements)
1433
- {
1434
- $markup = '';
1435
-
1436
- foreach ($Elements as $Element)
1437
- {
1438
- $markup .= "\n" . $this->element($Element);
1439
- }
1440
-
1441
- $markup .= "\n";
1442
-
1443
- return $markup;
1444
- }
1445
-
1446
- # ~
1447
-
1448
- protected function li($lines)
1449
- {
1450
- $markup = $this->lines($lines);
1451
-
1452
- $trimmedMarkup = trim($markup);
1453
-
1454
- if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '<p>')
1455
- {
1456
- $markup = $trimmedMarkup;
1457
- $markup = substr($markup, 3);
1458
-
1459
- $position = strpos($markup, "</p>");
1460
-
1461
- $markup = substr_replace($markup, '', $position, 4);
1462
- }
1463
-
1464
- return $markup;
1465
- }
1466
-
1467
- #
1468
- # Deprecated Methods
1469
- #
1470
-
1471
- function parse($text)
1472
- {
1473
- $markup = $this->text($text);
1474
-
1475
- return $markup;
1476
- }
1477
-
1478
- #
1479
- # Static Methods
1480
- #
1481
-
1482
- static function instance($name = 'default')
1483
- {
1484
- if (isset(self::$instances[$name]))
1485
- {
1486
- return self::$instances[$name];
1487
- }
1488
-
1489
- $instance = new static();
1490
-
1491
- self::$instances[$name] = $instance;
1492
-
1493
- return $instance;
1494
- }
1495
-
1496
- private static $instances = array();
1497
-
1498
- #
1499
- # Fields
1500
- #
1501
-
1502
- protected $DefinitionData;
1503
-
1504
- #
1505
- # Read-Only
1506
-
1507
- protected $specialCharacters = array(
1508
- '\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|',
1509
- );
1510
-
1511
- protected $StrongRegex = array(
1512
- '*' => '/^[*]{2}((?:\\\\\*|[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s',
1513
- '_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us',
1514
- );
1515
-
1516
- protected $EmRegex = array(
1517
- '*' => '/^[*]((?:\\\\\*|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s',
1518
- '_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us',
1519
- );
1520
-
1521
- protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?';
1522
-
1523
- protected $voidElements = array(
1524
- 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source',
1525
- );
1526
-
1527
- protected $textLevelElements = array(
1528
- 'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont',
1529
- 'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing',
1530
- 'i', 'rp', 'del', 'code', 'strike', 'marquee',
1531
- 'q', 'rt', 'ins', 'font', 'strong',
1532
- 's', 'tt', 'sub', 'mark',
1533
- 'u', 'xm', 'sup', 'nobr',
1534
- 'var', 'ruby',
1535
- 'wbr', 'span',
1536
- 'time',
1537
- );
1538
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/puc/vendor/PucReadmeParser.php DELETED
@@ -1,348 +0,0 @@
1
- <?php
2
-
3
- if ( !class_exists('PucReadmeParser', false) ):
4
-
5
- /**
6
- * This is a slightly modified version of github.com/markjaquith/WordPress-Plugin-Readme-Parser
7
- * It uses Parsedown instead of the "Markdown Extra" parser.
8
- */
9
-
10
- class PucReadmeParser {
11
-
12
- function __construct() {
13
- // This space intentionally blank
14
- }
15
-
16
- function parse_readme( $file ) {
17
- $file_contents = @implode('', @file($file));
18
- return $this->parse_readme_contents( $file_contents );
19
- }
20
-
21
- function parse_readme_contents( $file_contents ) {
22
- $file_contents = str_replace(array("\r\n", "\r"), "\n", $file_contents);
23
- $file_contents = trim($file_contents);
24
- if ( 0 === strpos( $file_contents, "\xEF\xBB\xBF" ) )
25
- $file_contents = substr( $file_contents, 3 );
26
-
27
- // Markdown transformations
28
- $file_contents = preg_replace( "|^###([^#]+)#*?\s*?\n|im", '=$1='."\n", $file_contents );
29
- $file_contents = preg_replace( "|^##([^#]+)#*?\s*?\n|im", '==$1=='."\n", $file_contents );
30
- $file_contents = preg_replace( "|^#([^#]+)#*?\s*?\n|im", '===$1==='."\n", $file_contents );
31
-
32
- // === Plugin Name ===
33
- // Must be the very first thing.
34
- if ( !preg_match('|^===(.*)===|', $file_contents, $_name) )
35
- return array(); // require a name
36
- $name = trim($_name[1], '=');
37
- $name = $this->sanitize_text( $name );
38
-
39
- $file_contents = $this->chop_string( $file_contents, $_name[0] );
40
-
41
-
42
- // Requires at least: 1.5
43
- if ( preg_match('|Requires at least:(.*)|i', $file_contents, $_requires_at_least) )
44
- $requires_at_least = $this->sanitize_text($_requires_at_least[1]);
45
- else
46
- $requires_at_least = NULL;
47
-
48
-
49
- // Tested up to: 2.1
50
- if ( preg_match('|Tested up to:(.*)|i', $file_contents, $_tested_up_to) )
51
- $tested_up_to = $this->sanitize_text( $_tested_up_to[1] );
52
- else
53
- $tested_up_to = NULL;
54
-
55
- // Requires PHP: 5.2.4
56
- if ( preg_match('|Requires PHP:(.*)|i', $file_contents, $_requires_php) ) {
57
- $requires_php = $this->sanitize_text( $_requires_php[1] );
58
- } else {
59
- $requires_php = null;
60
- }
61
-
62
- // Stable tag: 10.4-ride-the-fire-eagle-danger-day
63
- if ( preg_match('|Stable tag:(.*)|i', $file_contents, $_stable_tag) )
64
- $stable_tag = $this->sanitize_text( $_stable_tag[1] );
65
- else
66
- $stable_tag = NULL; // we assume trunk, but don't set it here to tell the difference between specified trunk and default trunk
67
-
68
-
69
- // Tags: some tag, another tag, we like tags
70
- if ( preg_match('|Tags:(.*)|i', $file_contents, $_tags) ) {
71
- $tags = preg_split('|,[\s]*?|', trim($_tags[1]));
72
- foreach ( array_keys($tags) as $t )
73
- $tags[$t] = $this->sanitize_text( $tags[$t] );
74
- } else {
75
- $tags = array();
76
- }
77
-
78
-
79
- // Contributors: markjaquith, mdawaffe, zefrank
80
- $contributors = array();
81
- if ( preg_match('|Contributors:(.*)|i', $file_contents, $_contributors) ) {
82
- $temp_contributors = preg_split('|,[\s]*|', trim($_contributors[1]));
83
- foreach ( array_keys($temp_contributors) as $c ) {
84
- $tmp_sanitized = $this->user_sanitize( $temp_contributors[$c] );
85
- if ( strlen(trim($tmp_sanitized)) > 0 )
86
- $contributors[$c] = $tmp_sanitized;
87
- unset($tmp_sanitized);
88
- }
89
- }
90
-
91
-
92
- // Donate Link: URL
93
- if ( preg_match('|Donate link:(.*)|i', $file_contents, $_donate_link) )
94
- $donate_link = esc_url( $_donate_link[1] );
95
- else
96
- $donate_link = NULL;
97
-
98
-
99
- // togs, conts, etc are optional and order shouldn't matter. So we chop them only after we've grabbed their values.
100
- foreach ( array('tags', 'contributors', 'requires_at_least', 'tested_up_to', 'stable_tag', 'donate_link') as $chop ) {
101
- if ( $$chop ) {
102
- $_chop = '_' . $chop;
103
- $file_contents = $this->chop_string( $file_contents, ${$_chop}[0] );
104
- }
105
- }
106
-
107
- $file_contents = trim($file_contents);
108
-
109
-
110
- // short-description fu
111
- if ( !preg_match('/(^(.*?))^[\s]*=+?[\s]*.+?[\s]*=+?/ms', $file_contents, $_short_description) )
112
- $_short_description = array( 1 => &$file_contents, 2 => &$file_contents );
113
- $short_desc_filtered = $this->sanitize_text( $_short_description[2] );
114
- $short_desc_length = strlen($short_desc_filtered);
115
- $short_description = substr($short_desc_filtered, 0, 150);
116
- if ( $short_desc_length > strlen($short_description) )
117
- $truncated = true;
118
- else
119
- $truncated = false;
120
- if ( $_short_description[1] )
121
- $file_contents = $this->chop_string( $file_contents, $_short_description[1] ); // yes, the [1] is intentional
122
-
123
- // == Section ==
124
- // Break into sections
125
- // $_sections[0] will be the title of the first section, $_sections[1] will be the content of the first section
126
- // the array alternates from there: title2, content2, title3, content3... and so forth
127
- $_sections = preg_split('/^[\s]*==[\s]*(.+?)[\s]*==/m', $file_contents, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
128
-
129
- $sections = array();
130
- for ( $i=0; $i < count($_sections); $i +=2 ) {
131
- $title = $this->sanitize_text( $_sections[$i] );
132
- if ( isset($_sections[$i+1]) ) {
133
- $content = preg_replace('/(^[\s]*)=[\s]+(.+?)[\s]+=/m', '$1<h4>$2</h4>', $_sections[$i+1]);
134
- $content = $this->filter_text( $content, true );
135
- } else {
136
- $content = '';
137
- }
138
- $sections[str_replace(' ', '_', strtolower($title))] = array('title' => $title, 'content' => $content);
139
- }
140
-
141
-
142
- // Special sections
143
- // This is where we nab our special sections, so we can enforce their order and treat them differently, if needed
144
- // upgrade_notice is not a section, but parse it like it is for now
145
- $final_sections = array();
146
- foreach ( array('description', 'installation', 'frequently_asked_questions', 'screenshots', 'changelog', 'change_log', 'upgrade_notice') as $special_section ) {
147
- if ( isset($sections[$special_section]) ) {
148
- $final_sections[$special_section] = $sections[$special_section]['content'];
149
- unset($sections[$special_section]);
150
- }
151
- }
152
- if ( isset($final_sections['change_log']) && empty($final_sections['changelog']) )
153
- $final_sections['changelog'] = $final_sections['change_log'];
154
-
155
-
156
- $final_screenshots = array();
157
- if ( isset($final_sections['screenshots']) ) {
158
- preg_match_all('|<li>(.*?)</li>|s', $final_sections['screenshots'], $screenshots, PREG_SET_ORDER);
159
- if ( $screenshots ) {
160
- foreach ( (array) $screenshots as $ss )
161
- $final_screenshots[] = $ss[1];
162
- }
163
- }
164
-
165
- // Parse the upgrade_notice section specially:
166
- // 1.0 => blah, 1.1 => fnord
167
- $upgrade_notice = array();
168
- if ( isset($final_sections['upgrade_notice']) ) {
169
- $split = preg_split( '#<h4>(.*?)</h4>#', $final_sections['upgrade_notice'], -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
170
- if ( count($split) >= 2 ) {
171
- for ( $i = 0; $i < count( $split ); $i += 2 ) {
172
- $upgrade_notice[$this->sanitize_text( $split[$i] )] = substr( $this->sanitize_text( $split[$i + 1] ), 0, 300 );
173
- }
174
- }
175
- unset( $final_sections['upgrade_notice'] );
176
- }
177
-
178
- // No description?
179
- // No problem... we'll just fall back to the old style of description
180
- // We'll even let you use markup this time!
181
- $excerpt = false;
182
- if ( !isset($final_sections['description']) ) {
183
- $final_sections = array_merge(array('description' => $this->filter_text( $_short_description[2], true )), $final_sections);
184
- $excerpt = true;
185
- }
186
-
187
-
188
- // dump the non-special sections into $remaining_content
189
- // their order will be determined by their original order in the readme.txt
190
- $remaining_content = '';
191
- foreach ( $sections as $s_name => $s_data ) {
192
- $remaining_content .= "\n<h3>{$s_data['title']}</h3>\n{$s_data['content']}";
193
- }
194
- $remaining_content = trim($remaining_content);
195
-
196
-
197
- // All done!
198
- // $r['tags'] and $r['contributors'] are simple arrays
199
- // $r['sections'] is an array with named elements
200
- $r = array(
201
- 'name' => $name,
202
- 'tags' => $tags,
203
- 'requires_at_least' => $requires_at_least,
204
- 'tested_up_to' => $tested_up_to,
205
- 'requires_php' => $requires_php,
206
- 'stable_tag' => $stable_tag,
207
- 'contributors' => $contributors,
208
- 'donate_link' => $donate_link,
209
- 'short_description' => $short_description,
210
- 'screenshots' => $final_screenshots,
211
- 'is_excerpt' => $excerpt,
212
- 'is_truncated' => $truncated,
213
- 'sections' => $final_sections,
214
- 'remaining_content' => $remaining_content,
215
- 'upgrade_notice' => $upgrade_notice
216
- );
217
-
218
- return $r;
219
- }
220
-
221
- function chop_string( $string, $chop ) { // chop a "prefix" from a string: Agressive! uses strstr not 0 === strpos
222
- if ( $_string = strstr($string, $chop) ) {
223
- $_string = substr($_string, strlen($chop));
224
- return trim($_string);
225
- } else {
226
- return trim($string);
227
- }
228
- }
229
-
230
- function user_sanitize( $text, $strict = false ) { // whitelisted chars
231
- if ( function_exists('user_sanitize') ) // bbPress native
232
- return user_sanitize( $text, $strict );
233
-
234
- if ( $strict ) {
235
- $text = preg_replace('/[^a-z0-9-]/i', '', $text);
236
- $text = preg_replace('|-+|', '-', $text);
237
- } else {
238
- $text = preg_replace('/[^a-z0-9_-]/i', '', $text);
239
- }
240
- return $text;
241
- }
242
-
243
- function sanitize_text( $text ) { // not fancy
244
- $text = strip_tags($text);
245
- $text = esc_html($text);
246
- $text = trim($text);
247
- return $text;
248
- }
249
-
250
- function filter_text( $text, $markdown = false ) { // fancy, Markdown
251
- $text = trim($text);
252
-
253
- $text = call_user_func( array( __CLASS__, 'code_trick' ), $text, $markdown ); // A better parser than Markdown's for: backticks -> CODE
254
-
255
- if ( $markdown ) { // Parse markdown.
256
- if ( !class_exists('Parsedown', false) ) {
257
- /** @noinspection PhpIncludeInspection */
258
- require_once(dirname(__FILE__) . '/Parsedown' . (version_compare(PHP_VERSION, '5.3.0', '>=') ? '' : 'Legacy') . '.php');
259
- }
260
- $instance = Parsedown::instance();
261
- $text = $instance->text($text);
262
- }
263
-
264
- $allowed = array(
265
- 'a' => array(
266
- 'href' => array(),
267
- 'title' => array(),
268
- 'rel' => array()),
269
- 'blockquote' => array('cite' => array()),
270
- 'br' => array(),
271
- 'p' => array(),
272
- 'code' => array(),
273
- 'pre' => array(),
274
- 'em' => array(),
275
- 'strong' => array(),
276
- 'ul' => array(),
277
- 'ol' => array(),
278
- 'li' => array(),
279
- 'h3' => array(),
280
- 'h4' => array()
281
- );
282
-
283
- $text = balanceTags($text);
284
-
285
- $text = wp_kses( $text, $allowed );
286
- $text = trim($text);
287
- return $text;
288
- }
289
-
290
- function code_trick( $text, $markdown ) { // Don't use bbPress native function - it's incompatible with Markdown
291
- // If doing markdown, first take any user formatted code blocks and turn them into backticks so that
292
- // markdown will preserve things like underscores in code blocks
293
- if ( $markdown )
294
- $text = preg_replace_callback("!(<pre><code>|<code>)(.*?)(</code></pre>|</code>)!s", array( __CLASS__,'decodeit'), $text);
295
-
296
- $text = str_replace(array("\r\n", "\r"), "\n", $text);
297
- if ( !$markdown ) {
298
- // This gets the "inline" code blocks, but can't be used with Markdown.
299
- $text = preg_replace_callback("|(`)(.*?)`|", array( __CLASS__, 'encodeit'), $text);
300
- // This gets the "block level" code blocks and converts them to PRE CODE
301
- $text = preg_replace_callback("!(^|\n)`(.*?)`!s", array( __CLASS__, 'encodeit'), $text);
302
- } else {
303
- // Markdown can do inline code, we convert bbPress style block level code to Markdown style
304
- $text = preg_replace_callback("!(^|\n)([ \t]*?)`(.*?)`!s", array( __CLASS__, 'indent'), $text);
305
- }
306
- return $text;
307
- }
308
-
309
- function indent( $matches ) {
310
- $text = $matches[3];
311
- $text = preg_replace('|^|m', $matches[2] . ' ', $text);
312
- return $matches[1] . $text;
313
- }
314
-
315
- function encodeit( $matches ) {
316
- if ( function_exists('encodeit') ) // bbPress native
317
- return encodeit( $matches );
318
-
319
- $text = trim($matches[2]);
320
- $text = htmlspecialchars($text, ENT_QUOTES);
321
- $text = str_replace(array("\r\n", "\r"), "\n", $text);
322
- $text = preg_replace("|\n\n\n+|", "\n\n", $text);
323
- $text = str_replace('&amp;lt;', '&lt;', $text);
324
- $text = str_replace('&amp;gt;', '&gt;', $text);
325
- $text = "<code>$text</code>";
326
- if ( "`" != $matches[1] )
327
- $text = "<pre>$text</pre>";
328
- return $text;
329
- }
330
-
331
- function decodeit( $matches ) {
332
- if ( function_exists('decodeit') ) // bbPress native
333
- return decodeit( $matches );
334
-
335
- $text = $matches[2];
336
- $trans_table = array_flip(get_html_translation_table(HTML_ENTITIES));
337
- $text = strtr($text, $trans_table);
338
- $text = str_replace('<br />', '', $text);
339
- $text = str_replace('&#38;', '&', $text);
340
- $text = str_replace('&#39;', "'", $text);
341
- if ( '<pre><code>' == $matches[1] )
342
- $text = "\n$text\n";
343
- return "`$text`";
344
- }
345
-
346
- } // end class
347
-
348
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/core/src/Forms/DisplayFields.php CHANGED
@@ -71,7 +71,7 @@ class DisplayFields {
71
  $class .= ' mec-form-row';
72
  }
73
  ?>
74
- <div class="mec-field-<?php echo esc_attr( $field['type'] ); ?> <?php $required ? 'mec-reg-mandatory' : ''; ?> <?php echo esc_attr( $class ); ?>" data-field-id="<?php echo esc_attr( $j ); ?>">
75
  <?php
76
  global $current_user;
77
  $attributes = '';
@@ -156,7 +156,7 @@ class DisplayFields {
156
 
157
  if('reg' === $form_type){
158
 
159
- $field_name = 'rsvp[attendees][' . $j . '][' . $form_type . '][' . $field_id . ']';
160
  }else{
161
 
162
  $field_name = 'rsvp[' . $form_type . '][' . $field_id . ']';
@@ -169,7 +169,7 @@ class DisplayFields {
169
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
170
  . '</label>';
171
 
172
- echo is_admin() ? '<div class="mec-col-2">'.$label_field.'</div>' : $label_field;
173
  }
174
 
175
  $input_html = '';
@@ -180,7 +180,7 @@ class DisplayFields {
180
  case 'mec_email':
181
 
182
  $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
183
- $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="rsvp[attendees][' . $j . '][' . $type . ']" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
184
 
185
  break;
186
  case 'text':
@@ -190,19 +190,19 @@ class DisplayFields {
190
  case 'tel':
191
 
192
  $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
193
- $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="' . $field_name . '" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
194
 
195
  break;
196
  case 'textarea':
197
 
198
  $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
199
- $input_html = '<textarea id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" name="' . $field_name . '" value="' . trim( $value ) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' ></textarea>';
200
 
201
  break;
202
  case 'select':
203
 
204
  $placeholder = '';
205
- $input_html = '<select id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" name="'.$field_name.'" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' >';
206
  $rd = 0;
207
  $selected = $value;
208
  $options = isset($field['options']) ? $field['options'] : [];
@@ -211,7 +211,7 @@ class DisplayFields {
211
  $option_text = isset( $field_option['label'] ) ? esc_html__( $field_option['label'], 'modern-events-calendar-lite' ) : '';
212
  $option_value = ( $rd === 1 and isset( $field['ignore'] ) and $field['ignore'] ) ? '' : esc_attr__( $field_option['label'], 'modern-events-calendar-lite' );
213
 
214
- $input_html .= '<option value="' . $option_value . '" ' . selected( $selected, $option_value, false ) . '>' . $option_text . '</option>';
215
  }
216
  $input_html .= '</select>';
217
 
@@ -222,8 +222,8 @@ class DisplayFields {
222
  foreach ( $options as $field_option ) {
223
  $current_value = esc_html__( $field_option['label'], 'modern-events-calendar-lite' );
224
  $checked = in_array($current_value,(array)$value);
225
- $input_html .= '<label for="' . $html_id . $j . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) ) . '">'
226
- . '<input type="' . esc_attr( $field_type ) . '" id="mec_' . $form_type . '_field_' . $type . $j . '_' . $field_id . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) ) . '" name="' . $field_name . '[]" value="' . $current_value . '" '.checked($checked,true,false).'/>'
227
  . esc_html__( $field_option['label'], 'modern-events-calendar-lite' )
228
  . '</label>';
229
  }
@@ -232,8 +232,8 @@ class DisplayFields {
232
  case 'agreement':
233
 
234
  $checked = isset( $field['status'] ) ? $field['status'] : 'checked';
235
- $input_html = '<label for="' . $html_id . $j . '">'
236
- . '<input type="checkbox" id="' . $html_id . $j . '" name="' . $field_name . '" value="1" ' . checked( $checked, 'checked', false ) . ' onchange="mec_agreement_change(this);"/>'
237
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
238
  . sprintf( esc_html__( stripslashes( $field['label'] ), 'modern-events-calendar-lite' ), '<a href="' . get_the_permalink( $field['page'] ) . '" target="_blank">' . get_the_title( $field['page'] ) . '</a>' )
239
  . '</label>';
@@ -247,7 +247,7 @@ class DisplayFields {
247
  break;
248
  }
249
 
250
- echo is_admin() ? '<div class="mec-col-2">'.$input_html.'</div>' : $input_html;
251
  ?>
252
  </div>
253
  <?php endforeach;
71
  $class .= ' mec-form-row';
72
  }
73
  ?>
74
+ <div class="mec-field-<?php echo esc_attr( $field['type'] ); ?> <?php echo $required ? 'mec-reg-mandatory' : ''; ?> <?php echo esc_attr( $class ); ?>" data-field-id="<?php echo esc_attr( $j ); ?>">
75
  <?php
76
  global $current_user;
77
  $attributes = '';
156
 
157
  if('reg' === $form_type){
158
 
159
+ $field_name = 'rsvp[attendees][' . esc_attr($j) . '][' . $form_type . '][' . $field_id . ']';
160
  }else{
161
 
162
  $field_name = 'rsvp[' . $form_type . '][' . $field_id . ']';
169
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
170
  . '</label>';
171
 
172
+ echo is_admin() ? '<div class="mec-col-2">'.\MEC_kses::form($label_field).'</div>' : \MEC_kses::form($label_field);
173
  }
174
 
175
  $input_html = '';
180
  case 'mec_email':
181
 
182
  $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
183
+ $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="rsvp[attendees][' . esc_attr($j) . '][' . esc_attr($type) . ']" value="' . esc_attr(trim( $value )) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
184
 
185
  break;
186
  case 'text':
190
  case 'tel':
191
 
192
  $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
193
+ $input_html = '<input id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" type="' . esc_attr( $field_type ) . '" name="' . esc_attr($field_name) . '" value="' . esc_attr(trim( $value )) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' />';
194
 
195
  break;
196
  case 'textarea':
197
 
198
  $placeholder = ( isset( $field['placeholder'] ) && $field['placeholder'] ) ? esc_html__( $field['placeholder'], 'modern-events-calendar-lite' ) : esc_html__( $field['label'], 'modern-events-calendar-lite' );
199
+ $input_html = '<textarea id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" name="' . esc_attr( $field_name ) . '" value="' . esc_attr(trim( $value )) . '" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' ></textarea>';
200
 
201
  break;
202
  case 'select':
203
 
204
  $placeholder = '';
205
+ $input_html = '<select id="' . esc_attr( $html_id ) . '" class="' . esc_attr( $class ) . '" name="'.esc_attr($field_name).'" placeholder="' . esc_attr( $placeholder ) . '" ' . $required . ' ' . $lock_field . ' ' . $attributes . ' >';
206
  $rd = 0;
207
  $selected = $value;
208
  $options = isset($field['options']) ? $field['options'] : [];
211
  $option_text = isset( $field_option['label'] ) ? esc_html__( $field_option['label'], 'modern-events-calendar-lite' ) : '';
212
  $option_value = ( $rd === 1 and isset( $field['ignore'] ) and $field['ignore'] ) ? '' : esc_attr__( $field_option['label'], 'modern-events-calendar-lite' );
213
 
214
+ $input_html .= '<option value="' . esc_attr($option_value) . '" ' . selected( $selected, $option_value, false ) . '>' . esc_html($option_text) . '</option>';
215
  }
216
  $input_html .= '</select>';
217
 
222
  foreach ( $options as $field_option ) {
223
  $current_value = esc_html__( $field_option['label'], 'modern-events-calendar-lite' );
224
  $checked = in_array($current_value,(array)$value);
225
+ $input_html .= '<label for="' . esc_attr($html_id . $j . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) )) . '">'
226
+ . '<input type="' . esc_attr( $field_type ) . '" id="mec_' . esc_attr($form_type . '_field_' . $type . $j . '_' . $field_id . '_' . strtolower( str_replace( ' ', '_', $field_option['label'] ) )) . '" name="' . esc_attr( $field_name ) . '[]" value="' . esc_attr($current_value) . '" '.checked($checked,true,false).'/>'
227
  . esc_html__( $field_option['label'], 'modern-events-calendar-lite' )
228
  . '</label>';
229
  }
232
  case 'agreement':
233
 
234
  $checked = isset( $field['status'] ) ? $field['status'] : 'checked';
235
+ $input_html = '<label for="' . esc_attr($html_id . $j) . '">'
236
+ . '<input type="checkbox" id="' . esc_attr($html_id . $j) . '" name="' . esc_attr( $field_name ) . '" value="1" ' . checked( $checked, 'checked', false ) . ' onchange="mec_agreement_change(this);"/>'
237
  . ( $required ? '<span class="wbmec-mandatory">*</span>' : '' )
238
  . sprintf( esc_html__( stripslashes( $field['label'] ), 'modern-events-calendar-lite' ), '<a href="' . get_the_permalink( $field['page'] ) . '" target="_blank">' . get_the_title( $field['page'] ) . '</a>' )
239
  . '</label>';
247
  break;
248
  }
249
 
250
+ echo is_admin() ? '<div class="mec-col-2">'.\MEC_kses::form($input_html).'</div>' : \MEC_kses::form($input_html);
251
  ?>
252
  </div>
253
  <?php endforeach;
app/core/src/Forms/FormFields.php CHANGED
@@ -108,7 +108,7 @@ class FormFields extends Singleton {
108
  </p>
109
  <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
110
  <div>
111
- <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="'.$type.'" />
112
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
113
  </div>
114
  </li>';
108
  </p>
109
  <span class="mec_' . esc_attr( $prefix ) . '_field_remove mec_field_remove">' . esc_html__( 'Remove', 'modern-events-calendar-lite' ) . '</span>
110
  <div>
111
+ <input type="hidden" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][type]" value="'.esc_attr($type).'" />
112
  <input type="text" name="mec[' . esc_attr( $prefix ) . '_fields][' . esc_attr( $key ) . '][label]" placeholder="' . esc_attr__( 'Insert a label for this field', 'modern-events-calendar-lite' ) . '" value="' . ( isset( $values['label'] ) ? stripslashes( $values['label'] ) : '' ) . '" />
113
  </div>
114
  </li>';
app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php CHANGED
@@ -61,7 +61,7 @@ class EventLocations extends WidgetBase {
61
  <dd class="mec-location-url">
62
  <i class="mec-sl-sitemap"></i>
63
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
64
- <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $location['url'] ); ?></a></span>
65
  </dd>
66
  <?php endif;
67
  $location_description_setting = isset( $set['location_description'] ) ? $set['location_description'] : ''; $location_terms = get_the_terms($event_detail->data, 'mec_location'); if($location_description_setting == '1'): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
61
  <dd class="mec-location-url">
62
  <i class="mec-sl-sitemap"></i>
63
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
64
+ <span><a href="<?php echo esc_url($location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $location['url'] ); ?></a></span>
65
  </dd>
66
  <?php endif;
67
  $location_description_setting = isset( $set['location_description'] ) ? $set['location_description'] : ''; $location_terms = get_the_terms($event_detail->data, 'mec_location'); if($location_description_setting == '1'): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php CHANGED
@@ -75,7 +75,7 @@ class EventOrganizers extends WidgetBase {
75
  <dd class="mec-organizer-url">
76
  <i class="mec-sl-sitemap"></i>
77
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
78
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $organizer['url'] ); ?></a></span>
79
  </dd>
80
  <?php endif;
81
  $organizer_description_setting = isset( $set['organizer_description'] ) ? $set['organizer_description'] : ''; $organizer_terms = get_the_terms($event_detail->data, 'mec_organizer'); if($organizer_description_setting == '1'): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
75
  <dd class="mec-organizer-url">
76
  <i class="mec-sl-sitemap"></i>
77
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
78
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url( $organizer['url'] ); ?></a></span>
79
  </dd>
80
  <?php endif;
81
  $organizer_description_setting = isset( $set['organizer_description'] ) ? $set['organizer_description'] : ''; $organizer_terms = get_the_terms($event_detail->data, 'mec_organizer'); if($organizer_description_setting == '1'): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
app/features/events.php CHANGED
@@ -3000,8 +3000,8 @@ class MEC_feature_events extends MEC_base
3000
  // Get Modern Events Calendar Data
3001
  $_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
3002
 
3003
- $start_date = (isset($_mec['date']['start']['date']) and trim($_mec['date']['start']['date'])) ? $this->main->standardize_format($_mec['date']['start']['date']) : date('Y-m-d');
3004
- $end_date = (isset($_mec['date']['end']['date']) and trim($_mec['date']['end']['date'])) ? $this->main->standardize_format($_mec['date']['end']['date']) : date('Y-m-d');
3005
 
3006
  // Remove Cached Data
3007
  wp_cache_delete($post_id, 'mec-events-data');
@@ -3009,12 +3009,12 @@ class MEC_feature_events extends MEC_base
3009
  $location_id = isset($_mec['location_id']) ? sanitize_text_field($_mec['location_id']) : 0;
3010
  $dont_show_map = isset($_mec['dont_show_map']) ? sanitize_text_field($_mec['dont_show_map']) : 0;
3011
  $organizer_id = isset($_mec['organizer_id']) ? sanitize_text_field($_mec['organizer_id']) : 0;
3012
- $read_more = isset($_mec['read_more']) ? esc_url($_mec['read_more']) : '';
3013
- $more_info = (isset($_mec['more_info']) and trim($_mec['more_info'])) ? esc_url($_mec['more_info']) : '';
3014
  $more_info_title = isset($_mec['more_info_title']) ? sanitize_text_field($_mec['more_info_title']) : '';
3015
  $more_info_target = isset($_mec['more_info_target']) ? sanitize_text_field($_mec['more_info_target']) : '';
3016
 
3017
- $cost = isset($_mec['cost']) ? $_mec['cost'] : '';
3018
  $cost = apply_filters(
3019
  'mec_event_cost_sanitize',
3020
  sanitize_text_field($cost),
@@ -3057,9 +3057,9 @@ class MEC_feature_events extends MEC_base
3057
  // Set the start date
3058
  $date['start']['date'] = $start_date;
3059
 
3060
- $start_time_hour = isset($date['start']) ? $date['start']['hour'] : '8';
3061
- $start_time_minutes = isset($date['start']) ? $date['start']['minutes'] : '00';
3062
- $start_time_ampm = (isset($date['start']) and isset($date['start']['ampm'])) ? $date['start']['ampm'] : 'AM';
3063
 
3064
  $end_date = date('Y-m-d', strtotime($end_date));
3065
 
@@ -3069,9 +3069,9 @@ class MEC_feature_events extends MEC_base
3069
  // Set the end date
3070
  $date['end']['date'] = $end_date;
3071
 
3072
- $end_time_hour = isset($date['end']) ? $date['end']['hour'] : '6';
3073
- $end_time_minutes = isset($date['end']) ? $date['end']['minutes'] : '00';
3074
- $end_time_ampm = (isset($date['end']) and isset($date['end']['ampm'])) ? $date['end']['ampm'] : 'PM';
3075
 
3076
  if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24)
3077
  {
@@ -3613,7 +3613,7 @@ class MEC_feature_events extends MEC_base
3613
  update_post_meta($post_id, 'mec_tickets', $tickets);
3614
 
3615
  // Fee options
3616
- $fees_global_inheritance = isset($_mec['fees_global_inheritance']) ? $_mec['fees_global_inheritance'] : 1;
3617
  update_post_meta($post_id, 'mec_fees_global_inheritance', $fees_global_inheritance);
3618
 
3619
  $fees = isset($_mec['fees']) ? $_mec['fees'] : array();
@@ -3622,7 +3622,7 @@ class MEC_feature_events extends MEC_base
3622
  update_post_meta($post_id, 'mec_fees', $fees);
3623
 
3624
  // Ticket Variations options
3625
- $ticket_variations_global_inheritance = isset($_mec['ticket_variations_global_inheritance']) ? $_mec['ticket_variations_global_inheritance'] : 1;
3626
  update_post_meta($post_id, 'mec_ticket_variations_global_inheritance', $ticket_variations_global_inheritance);
3627
 
3628
  $ticket_variations = isset($_mec['ticket_variations']) ? $_mec['ticket_variations'] : array();
@@ -3631,7 +3631,7 @@ class MEC_feature_events extends MEC_base
3631
  update_post_meta($post_id, 'mec_ticket_variations', $ticket_variations);
3632
 
3633
  // Registration Fields options
3634
- $reg_fields_global_inheritance = isset($_mec['reg_fields_global_inheritance']) ? $_mec['reg_fields_global_inheritance'] : 1;
3635
  update_post_meta($post_id, 'mec_reg_fields_global_inheritance', $reg_fields_global_inheritance);
3636
 
3637
  $reg_fields = isset($_mec['reg_fields']) ? $_mec['reg_fields'] : array();
@@ -3658,20 +3658,20 @@ class MEC_feature_events extends MEC_base
3658
  // Downloadable File
3659
  if(isset($_mec['downloadable_file']))
3660
  {
3661
- $dl_file = isset($_mec['downloadable_file']) ? $_mec['downloadable_file'] : '';
3662
  update_post_meta($post_id, 'mec_dl_file', $dl_file);
3663
  }
3664
 
3665
  // Public Download Module File
3666
  if(isset($_mec['public_download_module_file']))
3667
  {
3668
- $public_dl_file = isset($_mec['public_download_module_file']) ? $_mec['public_download_module_file'] : '';
3669
  update_post_meta($post_id, 'mec_public_dl_file', $public_dl_file);
3670
 
3671
- $public_dl_title = isset($_mec['public_download_module_title']) ? $_mec['public_download_module_title'] : '';
3672
  update_post_meta($post_id, 'mec_public_dl_title', $public_dl_title);
3673
 
3674
- $public_dl_description = isset($_mec['public_download_module_description']) ? $_mec['public_download_module_description'] : '';
3675
  update_post_meta($post_id, 'mec_public_dl_description', $public_dl_description);
3676
  }
3677
 
3000
  // Get Modern Events Calendar Data
3001
  $_mec = isset($_POST['mec']) ? $_POST['mec'] : array();
3002
 
3003
+ $start_date = (isset($_mec['date']['start']['date']) and trim($_mec['date']['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($_mec['date']['start']['date'])) : date('Y-m-d');
3004
+ $end_date = (isset($_mec['date']['end']['date']) and trim($_mec['date']['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($_mec['date']['end']['date'])) : date('Y-m-d');
3005
 
3006
  // Remove Cached Data
3007
  wp_cache_delete($post_id, 'mec-events-data');
3009
  $location_id = isset($_mec['location_id']) ? sanitize_text_field($_mec['location_id']) : 0;
3010
  $dont_show_map = isset($_mec['dont_show_map']) ? sanitize_text_field($_mec['dont_show_map']) : 0;
3011
  $organizer_id = isset($_mec['organizer_id']) ? sanitize_text_field($_mec['organizer_id']) : 0;
3012
+ $read_more = isset($_mec['read_more']) ? sanitize_url($_mec['read_more']) : '';
3013
+ $more_info = (isset($_mec['more_info']) and trim($_mec['more_info'])) ? sanitize_url($_mec['more_info']) : '';
3014
  $more_info_title = isset($_mec['more_info_title']) ? sanitize_text_field($_mec['more_info_title']) : '';
3015
  $more_info_target = isset($_mec['more_info_target']) ? sanitize_text_field($_mec['more_info_target']) : '';
3016
 
3017
+ $cost = isset($_mec['cost']) ? sanitize_text_field($_mec['cost']) : '';
3018
  $cost = apply_filters(
3019
  'mec_event_cost_sanitize',
3020
  sanitize_text_field($cost),
3057
  // Set the start date
3058
  $date['start']['date'] = $start_date;
3059
 
3060
+ $start_time_hour = isset($date['start']) ? sanitize_text_field($date['start']['hour']) : '8';
3061
+ $start_time_minutes = isset($date['start']) ? sanitize_text_field($date['start']['minutes']) : '00';
3062
+ $start_time_ampm = (isset($date['start']) and isset($date['start']['ampm'])) ? sanitize_text_field($date['start']['ampm']) : 'AM';
3063
 
3064
  $end_date = date('Y-m-d', strtotime($end_date));
3065
 
3069
  // Set the end date
3070
  $date['end']['date'] = $end_date;
3071
 
3072
+ $end_time_hour = isset($date['end']) ? sanitize_text_field($date['end']['hour']) : '6';
3073
+ $end_time_minutes = isset($date['end']) ? sanitize_text_field($date['end']['minutes']) : '00';
3074
+ $end_time_ampm = (isset($date['end']) and isset($date['end']['ampm'])) ? sanitize_text_field($date['end']['ampm']) : 'PM';
3075
 
3076
  if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24)
3077
  {
3613
  update_post_meta($post_id, 'mec_tickets', $tickets);
3614
 
3615
  // Fee options
3616
+ $fees_global_inheritance = isset($_mec['fees_global_inheritance']) ? sanitize_text_field($_mec['fees_global_inheritance']) : 1;
3617
  update_post_meta($post_id, 'mec_fees_global_inheritance', $fees_global_inheritance);
3618
 
3619
  $fees = isset($_mec['fees']) ? $_mec['fees'] : array();
3622
  update_post_meta($post_id, 'mec_fees', $fees);
3623
 
3624
  // Ticket Variations options
3625
+ $ticket_variations_global_inheritance = isset($_mec['ticket_variations_global_inheritance']) ? sanitize_text_field($_mec['ticket_variations_global_inheritance']) : 1;
3626
  update_post_meta($post_id, 'mec_ticket_variations_global_inheritance', $ticket_variations_global_inheritance);
3627
 
3628
  $ticket_variations = isset($_mec['ticket_variations']) ? $_mec['ticket_variations'] : array();
3631
  update_post_meta($post_id, 'mec_ticket_variations', $ticket_variations);
3632
 
3633
  // Registration Fields options
3634
+ $reg_fields_global_inheritance = isset($_mec['reg_fields_global_inheritance']) ? sanitize_text_field($_mec['reg_fields_global_inheritance']) : 1;
3635
  update_post_meta($post_id, 'mec_reg_fields_global_inheritance', $reg_fields_global_inheritance);
3636
 
3637
  $reg_fields = isset($_mec['reg_fields']) ? $_mec['reg_fields'] : array();
3658
  // Downloadable File
3659
  if(isset($_mec['downloadable_file']))
3660
  {
3661
+ $dl_file = isset($_mec['downloadable_file']) ? sanitize_text_field($_mec['downloadable_file']) : '';
3662
  update_post_meta($post_id, 'mec_dl_file', $dl_file);
3663
  }
3664
 
3665
  // Public Download Module File
3666
  if(isset($_mec['public_download_module_file']))
3667
  {
3668
+ $public_dl_file = isset($_mec['public_download_module_file']) ? sanitize_text_field($_mec['public_download_module_file']) : '';
3669
  update_post_meta($post_id, 'mec_public_dl_file', $public_dl_file);
3670
 
3671
+ $public_dl_title = isset($_mec['public_download_module_title']) ? sanitize_text_field($_mec['public_download_module_title']) : '';
3672
  update_post_meta($post_id, 'mec_public_dl_title', $public_dl_title);
3673
 
3674
+ $public_dl_description = isset($_mec['public_download_module_description']) ? sanitize_text_field($_mec['public_download_module_description']) : '';
3675
  update_post_meta($post_id, 'mec_public_dl_description', $public_dl_description);
3676
  }
3677
 
app/features/fes.php CHANGED
@@ -470,16 +470,16 @@ class MEC_feature_fes extends MEC_base
470
 
471
  $post_id = isset($mec['post_id']) ? sanitize_text_field($mec['post_id']) : -1;
472
 
473
- $start_date = (isset($mec['date']['start']['date']) and trim($mec['date']['start']['date'])) ? $this->main->standardize_format($mec['date']['start']['date']) : date('Y-m-d');
474
- $end_date = (isset($mec['date']['end']['date']) and trim($mec['date']['end']['date'])) ? $this->main->standardize_format($mec['date']['end']['date']) : date('Y-m-d');
475
 
476
  $post_title = isset($mec['title']) ? sanitize_text_field($mec['title']) : '';
477
- $post_content = isset($mec['content']) ? $mec['content'] : '';
478
- $post_excerpt = isset($mec['excerpt']) ? $mec['excerpt'] : '';
479
  $post_tags = isset($mec['tags']) ? sanitize_text_field($mec['tags']) : '';
480
- $post_categories = isset($mec['categories']) ? $mec['categories'] : array();
481
- $post_speakers = isset($mec['speakers']) ? $mec['speakers'] : array();
482
- $post_labels = isset($mec['labels']) ? $mec['labels'] : array();
483
  $featured_image = isset($mec['featured_image']) ? sanitize_text_field($mec['featured_image']) : '';
484
 
485
  // Title is Required
@@ -585,8 +585,8 @@ class MEC_feature_fes extends MEC_base
585
  // Links Section
586
  if(!isset($this->settings['fes_section_event_links']) or (isset($this->settings['fes_section_event_links']) and $this->settings['fes_section_event_links']))
587
  {
588
- $read_more = isset($mec['read_more']) ? esc_url($mec['read_more']) : '';
589
- $more_info = (isset($mec['more_info']) and trim($mec['more_info'])) ? esc_url($mec['more_info']) : '';
590
  $more_info_title = isset($mec['more_info_title']) ? sanitize_text_field($mec['more_info_title']) : '';
591
  $more_info_target = isset($mec['more_info_target']) ? sanitize_text_field($mec['more_info_target']) : '';
592
 
@@ -599,15 +599,15 @@ class MEC_feature_fes extends MEC_base
599
  // Cost Section
600
  if(!isset($this->settings['fes_section_cost']) or (isset($this->settings['fes_section_cost']) and $this->settings['fes_section_cost']))
601
  {
602
- $cost = isset($mec['cost']) ? $mec['cost'] : '';
603
  $cost = apply_filters(
604
  'mec_event_cost_sanitize',
605
  sanitize_text_field($cost),
606
  $cost
607
  );
608
 
609
- $cost_auto_calculate = (isset($mec['cost_auto_calculate']) ? $mec['cost_auto_calculate'] : 0);
610
- $currency_options = ((isset($mec['currency']) and is_array($mec['currency'])) ? $mec['currency'] : array());
611
 
612
  update_post_meta($post_id, 'mec_cost', $cost);
613
  update_post_meta($post_id, 'mec_cost_auto_calculate', $cost_auto_calculate);
@@ -638,7 +638,7 @@ class MEC_feature_fes extends MEC_base
638
  else
639
  {
640
  $address = (isset($mec['location']['address']) and trim($mec['location']['address'])) ? sanitize_text_field($mec['location']['address']) : '';
641
- $name = (isset($mec['location']['name']) and trim($mec['location']['name'])) ? sanitize_text_field($mec['location']['name']) : (trim($address) ? $address : 'Location Name');
642
 
643
  $term = get_term_by('name', $name, 'mec_location');
644
 
@@ -660,7 +660,7 @@ class MEC_feature_fes extends MEC_base
660
 
661
  $latitude = (isset($mec['location']['latitude']) and trim($mec['location']['latitude'])) ? sanitize_text_field($mec['location']['latitude']) : 0;
662
  $longitude = (isset($mec['location']['longitude']) and trim($mec['location']['longitude'])) ? sanitize_text_field($mec['location']['longitude']) : 0;
663
- $url = (isset($mec['location']['url']) and trim($mec['location']['url'])) ? esc_url($mec['location']['url']) : '';
664
  $thumbnail = (isset($mec['location']['thumbnail']) and trim($mec['location']['thumbnail'])) ? sanitize_text_field($mec['location']['thumbnail']) : '';
665
 
666
  if(!trim($latitude) or !trim($longitude))
@@ -701,7 +701,7 @@ class MEC_feature_fes extends MEC_base
701
  }
702
  else
703
  {
704
- $name = (isset($mec['organizer']['name']) and trim($mec['organizer']['name'])) ? sanitize_text_field($mec['organizer']['name']) : 'Organizer Name';
705
 
706
  $term = get_term_by('name', $name, 'mec_organizer');
707
 
@@ -723,7 +723,7 @@ class MEC_feature_fes extends MEC_base
723
 
724
  $tel = (isset($mec['organizer']['tel']) and trim($mec['organizer']['tel'])) ? sanitize_text_field($mec['organizer']['tel']) : '';
725
  $email = (isset($mec['organizer']['email']) and trim($mec['organizer']['email'])) ? sanitize_text_field($mec['organizer']['email']) : '';
726
- $url = (isset($mec['organizer']['url']) and trim($mec['organizer']['url'])) ? (strpos($mec['organizer']['url'], 'http') === false ? 'http://'.sanitize_text_field($mec['organizer']['url']) : sanitize_text_field($mec['organizer']['url'])) : '';
727
  $thumbnail = (isset($mec['organizer']['thumbnail']) and trim($mec['organizer']['thumbnail'])) ? sanitize_text_field($mec['organizer']['thumbnail']) : '';
728
 
729
  update_term_meta($organizer_id, 'tel', $tel);
@@ -758,9 +758,9 @@ class MEC_feature_fes extends MEC_base
758
  // Set the start date
759
  $date['start']['date'] = $start_date;
760
 
761
- $start_time_hour = isset($date['start']) ? $date['start']['hour'] : '8';
762
- $start_time_minutes = isset($date['start']) ? $date['start']['minutes'] : '00';
763
- $start_time_ampm = (isset($date['start']) and isset($date['start']['ampm'])) ? $date['start']['ampm'] : 'AM';
764
 
765
  $end_date = date('Y-m-d', strtotime($end_date));
766
 
@@ -770,9 +770,9 @@ class MEC_feature_fes extends MEC_base
770
  // Set the end date
771
  $date['end']['date'] = $end_date;
772
 
773
- $end_time_hour = isset($date['end']) ? $date['end']['hour'] : '6';
774
- $end_time_minutes = isset($date['end']) ? $date['end']['minutes'] : '00';
775
- $end_time_ampm = (isset($date['end']) and isset($date['end']['ampm'])) ? $date['end']['ampm'] : 'PM';
776
 
777
  if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24)
778
  {
@@ -884,12 +884,12 @@ class MEC_feature_fes extends MEC_base
884
  $certain_weekdays = isset($repeat['certain_weekdays']) ? $repeat['certain_weekdays'] : array();
885
 
886
  $repeat_status = isset($repeat['status']) ? 1 : 0;
887
- $repeat_type = ($repeat_status and isset($repeat['type'])) ? $repeat['type'] : '';
888
 
889
- $repeat_interval = ($repeat_status and isset($repeat['interval']) and trim($repeat['interval'])) ? $repeat['interval'] : 1;
890
 
891
  // Advanced Repeat
892
- $advanced = isset( $repeat['advanced'] ) ? sanitize_text_field($repeat['advanced']) : '';
893
 
894
  if(!is_numeric($repeat_interval)) $repeat_interval = NULL;
895
 
@@ -905,9 +905,9 @@ class MEC_feature_fes extends MEC_base
905
  if($repeat_type == 'advanced' and trim($advanced)) $advanced = explode('-', $advanced);
906
  else $advanced = array();
907
 
908
- $repeat_end = ($repeat_status and isset($repeat['end'])) ? $repeat['end'] : '';
909
- $repeat_end_at_occurrences = ($repeat_status and isset($repeat['end_at_occurrences'])) ? ($repeat['end_at_occurrences']-1) : '';
910
- $repeat_end_at_date = ($repeat_status and isset($repeat['end_at_date'])) ? $this->main->standardize_format( $repeat['end_at_date'] ) : '';
911
 
912
  update_post_meta($post_id, 'mec_date', $date);
913
  update_post_meta($post_id, 'mec_repeat', $repeat);
@@ -1310,7 +1310,7 @@ class MEC_feature_fes extends MEC_base
1310
  if(!isset($this->settings['fes_section_fees']) or (isset($this->settings['fes_section_fees']) and $this->settings['fes_section_fees']))
1311
  {
1312
  // Fee options
1313
- $fees_global_inheritance = isset($mec['fees_global_inheritance']) ? $mec['fees_global_inheritance'] : 1;
1314
  update_post_meta($post_id, 'mec_fees_global_inheritance', $fees_global_inheritance);
1315
 
1316
  $fees = isset($mec['fees']) ? $mec['fees'] : array();
@@ -1321,7 +1321,7 @@ class MEC_feature_fes extends MEC_base
1321
  if(!isset($this->settings['fes_section_ticket_variations']) or (isset($this->settings['fes_section_ticket_variations']) and $this->settings['fes_section_ticket_variations']))
1322
  {
1323
  // Ticket Variation options
1324
- $ticket_variations_global_inheritance = isset($mec['ticket_variations_global_inheritance']) ? $mec['ticket_variations_global_inheritance'] : 1;
1325
  update_post_meta($post_id, 'mec_ticket_variations_global_inheritance', $ticket_variations_global_inheritance);
1326
 
1327
  $ticket_variations = isset($mec['ticket_variations']) ? $mec['ticket_variations'] : array();
@@ -1332,7 +1332,7 @@ class MEC_feature_fes extends MEC_base
1332
  if(!isset($this->settings['fes_section_reg_form']) or (isset($this->settings['fes_section_reg_form']) and $this->settings['fes_section_reg_form']))
1333
  {
1334
  // Registration Fields options
1335
- $reg_fields_global_inheritance = isset($mec['reg_fields_global_inheritance']) ? $mec['reg_fields_global_inheritance'] : 1;
1336
  update_post_meta($post_id, 'mec_reg_fields_global_inheritance', $reg_fields_global_inheritance);
1337
 
1338
  $reg_fields = isset($mec['reg_fields']) ? $mec['reg_fields'] : array();
@@ -1359,20 +1359,20 @@ class MEC_feature_fes extends MEC_base
1359
  // Downloadable File
1360
  if(isset($mec['downloadable_file']))
1361
  {
1362
- $dl_file = isset($mec['downloadable_file']) ? $mec['downloadable_file'] : '';
1363
  update_post_meta($post_id, 'mec_dl_file', $dl_file);
1364
  }
1365
 
1366
  // Public Download Module File
1367
  if(isset($mec['public_download_module_file']))
1368
  {
1369
- $public_dl_file = isset($mec['public_download_module_file']) ? $mec['public_download_module_file'] : '';
1370
  update_post_meta($post_id, 'mec_public_dl_file', $public_dl_file);
1371
 
1372
- $public_dl_title = isset($mec['public_download_module_title']) ? $mec['public_download_module_title'] : '';
1373
  update_post_meta($post_id, 'mec_public_dl_title', $public_dl_title);
1374
 
1375
- $public_dl_description = isset($mec['public_download_module_description']) ? $mec['public_download_module_description'] : '';
1376
  update_post_meta($post_id, 'mec_public_dl_description', $public_dl_description);
1377
  }
1378
 
470
 
471
  $post_id = isset($mec['post_id']) ? sanitize_text_field($mec['post_id']) : -1;
472
 
473
+ $start_date = (isset($mec['date']['start']['date']) and trim($mec['date']['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($mec['date']['start']['date'])) : date('Y-m-d');
474
+ $end_date = (isset($mec['date']['end']['date']) and trim($mec['date']['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($mec['date']['end']['date'])) : date('Y-m-d');
475
 
476
  $post_title = isset($mec['title']) ? sanitize_text_field($mec['title']) : '';
477
+ $post_content = isset($mec['content']) ? MEC_kses::page($mec['content']) : '';
478
+ $post_excerpt = isset($mec['excerpt']) ? MEC_kses::page($mec['excerpt']) : '';
479
  $post_tags = isset($mec['tags']) ? sanitize_text_field($mec['tags']) : '';
480
+ $post_categories = isset($mec['categories']) ? array_map('sanitize_text_field', $mec['categories']) : array();
481
+ $post_speakers = isset($mec['speakers']) ? array_map('sanitize_text_field', $mec['speakers']) : array();
482
+ $post_labels = isset($mec['labels']) ? array_map('sanitize_text_field', $mec['labels']) : array();
483
  $featured_image = isset($mec['featured_image']) ? sanitize_text_field($mec['featured_image']) : '';
484
 
485
  // Title is Required
585
  // Links Section
586
  if(!isset($this->settings['fes_section_event_links']) or (isset($this->settings['fes_section_event_links']) and $this->settings['fes_section_event_links']))
587
  {
588
+ $read_more = isset($mec['read_more']) ? sanitize_url($mec['read_more']) : '';
589
+ $more_info = (isset($mec['more_info']) and trim($mec['more_info'])) ? sanitize_url($mec['more_info']) : '';
590
  $more_info_title = isset($mec['more_info_title']) ? sanitize_text_field($mec['more_info_title']) : '';
591
  $more_info_target = isset($mec['more_info_target']) ? sanitize_text_field($mec['more_info_target']) : '';
592
 
599
  // Cost Section
600
  if(!isset($this->settings['fes_section_cost']) or (isset($this->settings['fes_section_cost']) and $this->settings['fes_section_cost']))
601
  {
602
+ $cost = isset($mec['cost']) ? sanitize_text_field($mec['cost']) : '';
603
  $cost = apply_filters(
604
  'mec_event_cost_sanitize',
605
  sanitize_text_field($cost),
606
  $cost
607
  );
608
 
609
+ $cost_auto_calculate = (isset($mec['cost_auto_calculate']) ? sanitize_text_field($mec['cost_auto_calculate']) : 0);
610
+ $currency_options = ((isset($mec['currency']) and is_array($mec['currency'])) ? array_map('sanitize_text_field', $mec['currency']) : array());
611
 
612
  update_post_meta($post_id, 'mec_cost', $cost);
613
  update_post_meta($post_id, 'mec_cost_auto_calculate', $cost_auto_calculate);
638
  else
639
  {
640
  $address = (isset($mec['location']['address']) and trim($mec['location']['address'])) ? sanitize_text_field($mec['location']['address']) : '';
641
+ $name = (isset($mec['location']['name']) and trim($mec['location']['name'])) ? sanitize_text_field($mec['location']['name']) : (trim($address) ? $address : esc_html__('Location Name', 'modern-events-calendar-lite'));
642
 
643
  $term = get_term_by('name', $name, 'mec_location');
644
 
660
 
661
  $latitude = (isset($mec['location']['latitude']) and trim($mec['location']['latitude'])) ? sanitize_text_field($mec['location']['latitude']) : 0;
662
  $longitude = (isset($mec['location']['longitude']) and trim($mec['location']['longitude'])) ? sanitize_text_field($mec['location']['longitude']) : 0;
663
+ $url = (isset($mec['location']['url']) and trim($mec['location']['url'])) ? sanitize_url($mec['location']['url']) : '';
664
  $thumbnail = (isset($mec['location']['thumbnail']) and trim($mec['location']['thumbnail'])) ? sanitize_text_field($mec['location']['thumbnail']) : '';
665
 
666
  if(!trim($latitude) or !trim($longitude))
701
  }
702
  else
703
  {
704
+ $name = (isset($mec['organizer']['name']) and trim($mec['organizer']['name'])) ? sanitize_text_field($mec['organizer']['name']) : esc_html__('Organizer Name', 'modern-events-calendar-lite');
705
 
706
  $term = get_term_by('name', $name, 'mec_organizer');
707
 
723
 
724
  $tel = (isset($mec['organizer']['tel']) and trim($mec['organizer']['tel'])) ? sanitize_text_field($mec['organizer']['tel']) : '';
725
  $email = (isset($mec['organizer']['email']) and trim($mec['organizer']['email'])) ? sanitize_text_field($mec['organizer']['email']) : '';
726
+ $url = (isset($mec['organizer']['url']) and trim($mec['organizer']['url'])) ? sanitize_url($mec['organizer']['url']) : '';
727
  $thumbnail = (isset($mec['organizer']['thumbnail']) and trim($mec['organizer']['thumbnail'])) ? sanitize_text_field($mec['organizer']['thumbnail']) : '';
728
 
729
  update_term_meta($organizer_id, 'tel', $tel);
758
  // Set the start date
759
  $date['start']['date'] = $start_date;
760
 
761
+ $start_time_hour = isset($date['start']) ? sanitize_text_field($date['start']['hour']) : '8';
762
+ $start_time_minutes = isset($date['start']) ? sanitize_text_field($date['start']['minutes']) : '00';
763
+ $start_time_ampm = (isset($date['start']) and isset($date['start']['ampm'])) ? sanitize_text_field($date['start']['ampm']) : 'AM';
764
 
765
  $end_date = date('Y-m-d', strtotime($end_date));
766
 
770
  // Set the end date
771
  $date['end']['date'] = $end_date;
772
 
773
+ $end_time_hour = isset($date['end']) ? sanitize_text_field($date['end']['hour']) : '6';
774
+ $end_time_minutes = isset($date['end']) ? sanitize_text_field($date['end']['minutes']) : '00';
775
+ $end_time_ampm = (isset($date['end']) and isset($date['end']['ampm'])) ? sanitize_text_field($date['end']['ampm']) : 'PM';
776
 
777
  if(isset($this->settings['time_format']) and $this->settings['time_format'] == 24)
778
  {
884
  $certain_weekdays = isset($repeat['certain_weekdays']) ? $repeat['certain_weekdays'] : array();
885
 
886
  $repeat_status = isset($repeat['status']) ? 1 : 0;
887
+ $repeat_type = ($repeat_status and isset($repeat['type'])) ? sanitize_text_field($repeat['type']) : '';
888
 
889
+ $repeat_interval = ($repeat_status and isset($repeat['interval']) and trim($repeat['interval'])) ? sanitize_text_field($repeat['interval']) : 1;
890
 
891
  // Advanced Repeat
892
+ $advanced = isset($repeat['advanced']) ? sanitize_text_field($repeat['advanced']) : '';
893
 
894
  if(!is_numeric($repeat_interval)) $repeat_interval = NULL;
895
 
905
  if($repeat_type == 'advanced' and trim($advanced)) $advanced = explode('-', $advanced);
906
  else $advanced = array();
907
 
908
+ $repeat_end = ($repeat_status and isset($repeat['end'])) ? sanitize_text_field($repeat['end']) : '';
909
+ $repeat_end_at_occurrences = ($repeat_status and isset($repeat['end_at_occurrences'])) ? (((int) $repeat['end_at_occurrences']) - 1) : '';
910
+ $repeat_end_at_date = ($repeat_status and isset($repeat['end_at_date'])) ? $this->main->standardize_format(sanitize_text_field($repeat['end_at_date'])) : '';
911
 
912
  update_post_meta($post_id, 'mec_date', $date);
913
  update_post_meta($post_id, 'mec_repeat', $repeat);
1310
  if(!isset($this->settings['fes_section_fees']) or (isset($this->settings['fes_section_fees']) and $this->settings['fes_section_fees']))
1311
  {
1312
  // Fee options
1313
+ $fees_global_inheritance = isset($mec['fees_global_inheritance']) ? sanitize_text_field($mec['fees_global_inheritance']) : 1;
1314
  update_post_meta($post_id, 'mec_fees_global_inheritance', $fees_global_inheritance);
1315
 
1316
  $fees = isset($mec['fees']) ? $mec['fees'] : array();
1321
  if(!isset($this->settings['fes_section_ticket_variations']) or (isset($this->settings['fes_section_ticket_variations']) and $this->settings['fes_section_ticket_variations']))
1322
  {
1323
  // Ticket Variation options
1324
+ $ticket_variations_global_inheritance = isset($mec['ticket_variations_global_inheritance']) ? sanitize_text_field($mec['ticket_variations_global_inheritance']) : 1;
1325
  update_post_meta($post_id, 'mec_ticket_variations_global_inheritance', $ticket_variations_global_inheritance);
1326
 
1327
  $ticket_variations = isset($mec['ticket_variations']) ? $mec['ticket_variations'] : array();
1332
  if(!isset($this->settings['fes_section_reg_form']) or (isset($this->settings['fes_section_reg_form']) and $this->settings['fes_section_reg_form']))
1333
  {
1334
  // Registration Fields options
1335
+ $reg_fields_global_inheritance = isset($mec['reg_fields_global_inheritance']) ? sanitize_text_field($mec['reg_fields_global_inheritance']) : 1;
1336
  update_post_meta($post_id, 'mec_reg_fields_global_inheritance', $reg_fields_global_inheritance);
1337
 
1338
  $reg_fields = isset($mec['reg_fields']) ? $mec['reg_fields'] : array();
1359
  // Downloadable File
1360
  if(isset($mec['downloadable_file']))
1361
  {
1362
+ $dl_file = isset($mec['downloadable_file']) ? sanitize_text_field($mec['downloadable_file']) : '';
1363
  update_post_meta($post_id, 'mec_dl_file', $dl_file);
1364
  }
1365
 
1366
  // Public Download Module File
1367
  if(isset($mec['public_download_module_file']))
1368
  {
1369
+ $public_dl_file = isset($mec['public_download_module_file']) ? sanitize_text_field($mec['public_download_module_file']) : '';
1370
  update_post_meta($post_id, 'mec_public_dl_file', $public_dl_file);
1371
 
1372
+ $public_dl_title = isset($mec['public_download_module_title']) ? sanitize_text_field($mec['public_download_module_title']) : '';
1373
  update_post_meta($post_id, 'mec_public_dl_title', $public_dl_title);
1374
 
1375
+ $public_dl_description = isset($mec['public_download_module_description']) ? sanitize_text_field($mec['public_download_module_description']) : '';
1376
  update_post_meta($post_id, 'mec_public_dl_description', $public_dl_description);
1377
  }
1378
 
app/features/locations.php CHANGED
@@ -229,7 +229,7 @@ class MEC_feature_locations extends MEC_base
229
  $address = isset($_POST['address']) ? sanitize_text_field($_POST['address']) : '';
230
  $latitude = isset($_POST['latitude']) ? floatval(sanitize_text_field($_POST['latitude'])) : '0';
231
  $longitude = isset($_POST['longitude']) ? floatval(sanitize_text_field($_POST['longitude'])) : '0';
232
- $url = (isset($_POST['url']) and trim($_POST['url'])) ? esc_url($_POST['url']) : '';
233
  $thumbnail = isset($_POST['thumbnail']) ? sanitize_text_field($_POST['thumbnail']) : '';
234
 
235
  // Geo Point is Empty or Address Changed
@@ -453,13 +453,13 @@ class MEC_feature_locations extends MEC_base
453
  if(isset($_mec['location_id']) and $_mec['location_id'])
454
  {
455
  // Set term to the post
456
- wp_set_object_terms($post_id, (int) $_mec['location_id'], 'mec_location');
457
 
458
  return true;
459
  }
460
 
461
  $address = (isset($_mec['location']['address']) and trim($_mec['location']['address'])) ? sanitize_text_field($_mec['location']['address']) : '';
462
- $name = (isset($_mec['location']['name']) and trim($_mec['location']['name'])) ? sanitize_text_field($_mec['location']['name']) : (trim($address) ? $address : 'Location Name');
463
 
464
  $term = get_term_by('name', $name, 'mec_location');
465
 
@@ -488,7 +488,7 @@ class MEC_feature_locations extends MEC_base
488
 
489
  $latitude = (isset($_mec['location']['latitude']) and trim($_mec['location']['latitude'])) ? sanitize_text_field($_mec['location']['latitude']) : 0;
490
  $longitude = (isset($_mec['location']['longitude']) and trim($_mec['location']['longitude'])) ? sanitize_text_field($_mec['location']['longitude']) : 0;
491
- $url = (isset($_mec['location']['url']) and trim($_mec['location']['url'])) ? esc_url($_mec['location']['url']) : '';
492
  $thumbnail = (isset($_mec['location']['thumbnail']) and trim($_mec['location']['thumbnail'])) ? sanitize_text_field($_mec['location']['thumbnail']) : '';
493
 
494
  if((!trim($latitude) or !trim($longitude)) and trim($address))
229
  $address = isset($_POST['address']) ? sanitize_text_field($_POST['address']) : '';
230
  $latitude = isset($_POST['latitude']) ? floatval(sanitize_text_field($_POST['latitude'])) : '0';
231
  $longitude = isset($_POST['longitude']) ? floatval(sanitize_text_field($_POST['longitude'])) : '0';
232
+ $url = (isset($_POST['url']) and trim($_POST['url'])) ? sanitize_url($_POST['url']) : '';
233
  $thumbnail = isset($_POST['thumbnail']) ? sanitize_text_field($_POST['thumbnail']) : '';
234
 
235
  // Geo Point is Empty or Address Changed
453
  if(isset($_mec['location_id']) and $_mec['location_id'])
454
  {
455
  // Set term to the post
456
+ wp_set_object_terms($post_id, (int) sanitize_text_field($_mec['location_id']), 'mec_location');
457
 
458
  return true;
459
  }
460
 
461
  $address = (isset($_mec['location']['address']) and trim($_mec['location']['address'])) ? sanitize_text_field($_mec['location']['address']) : '';
462
+ $name = (isset($_mec['location']['name']) and trim($_mec['location']['name'])) ? sanitize_text_field($_mec['location']['name']) : (trim($address) ? $address : esc_html__('Location Name', 'modern-events-calendar-lite'));
463
 
464
  $term = get_term_by('name', $name, 'mec_location');
465
 
488
 
489
  $latitude = (isset($_mec['location']['latitude']) and trim($_mec['location']['latitude'])) ? sanitize_text_field($_mec['location']['latitude']) : 0;
490
  $longitude = (isset($_mec['location']['longitude']) and trim($_mec['location']['longitude'])) ? sanitize_text_field($_mec['location']['longitude']) : 0;
491
+ $url = (isset($_mec['location']['url']) and trim($_mec['location']['url'])) ? sanitize_url($_mec['location']['url']) : '';
492
  $thumbnail = (isset($_mec['location']['thumbnail']) and trim($_mec['location']['thumbnail'])) ? sanitize_text_field($_mec['location']['thumbnail']) : '';
493
 
494
  if((!trim($latitude) or !trim($longitude)) and trim($address))
app/features/mec.php CHANGED
@@ -250,7 +250,7 @@ class MEC_feature_mec extends MEC_base
250
  $url = get_home_url();
251
  if (!isset($code) || empty($code)) return;
252
  $verify_url = MEC_API_URL . '/activation/verify?category=mec&license=' . $code . '&url=' . $url . '&item_id=' . $item_id;
253
- var_dump($verify_url);
254
  $JSON = wp_remote_retrieve_body(wp_remote_get($verify_url, array(
255
  'body' => null,
256
  'timeout' => '120',
@@ -710,9 +710,9 @@ var_dump($verify_url);
710
 
711
  $mec = (isset($_POST['mec']) ? $_POST['mec'] : array());
712
 
713
- $skin = (isset($mec['skin']) ? $mec['skin'] : '');
714
- $start_date_type = ((isset($mec['sk-options'][$skin]) and isset($mec['sk-options'][$skin]['start_date_type'])) ? $mec['sk-options'][$skin]['start_date_type'] : 'today');
715
- $end_date_type = ((isset($mec['sk-options'][$skin]) and isset($mec['sk-options'][$skin]['end_date_type'])) ? $mec['sk-options'][$skin]['end_date_type'] : 'date');
716
 
717
  $ongoing = ((isset($mec['show_only_ongoing_events']) and $mec['show_only_ongoing_events']) ? 1 : 0);
718
 
250
  $url = get_home_url();
251
  if (!isset($code) || empty($code)) return;
252
  $verify_url = MEC_API_URL . '/activation/verify?category=mec&license=' . $code . '&url=' . $url . '&item_id=' . $item_id;
253
+
254
  $JSON = wp_remote_retrieve_body(wp_remote_get($verify_url, array(
255
  'body' => null,
256
  'timeout' => '120',
710
 
711
  $mec = (isset($_POST['mec']) ? $_POST['mec'] : array());
712
 
713
+ $skin = (isset($mec['skin']) ? sanitize_text_field($mec['skin']) : '');
714
+ $start_date_type = ((isset($mec['sk-options'][$skin]) and isset($mec['sk-options'][$skin]['start_date_type'])) ? sanitize_text_field($mec['sk-options'][$skin]['start_date_type']) : 'today');
715
+ $end_date_type = ((isset($mec['sk-options'][$skin]) and isset($mec['sk-options'][$skin]['end_date_type'])) ? sanitize_text_field($mec['sk-options'][$skin]['end_date_type']) : 'date');
716
 
717
  $ongoing = ((isset($mec['show_only_ongoing_events']) and $mec['show_only_ongoing_events']) ? 1 : 0);
718
 
app/features/mec/dashboard.php CHANGED
@@ -106,7 +106,7 @@ $box_stats = apply_filters('mec_dashboard_box_stats', true);
106
  </div>
107
  </div>
108
  <?php if(!$this->getPRO()): ?>
109
- <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
110
  <div class="w-col-sm-12">
111
  <div class="info-msg">
112
  <p>
106
  </div>
107
  </div>
108
  <?php if(!$this->getPRO()): ?>
109
+ <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
110
  <div class="w-col-sm-12">
111
  <div class="info-msg">
112
  <p>
app/features/mec/support-page.php CHANGED
@@ -25,7 +25,7 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
25
  <div class="welcome-content w-clearfix extra">
26
 
27
  <?php if(!$this->getPRO()): ?>
28
- <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
29
  <div class="w-col-sm-12">
30
  <div class="info-msg support-box">
31
  <p><?php echo sprintf(__("%s, if you need support, you can purchase our Extra Support feature through links below:", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Dear user', 'modern-events-calendar-lite').'</strong>'); ?></p>
@@ -37,7 +37,7 @@ wp_enqueue_script('mec-lity-script', $this->main->asset('packages/lity/lity.min.
37
  <?php endif; ?>
38
 
39
  <?php if($this->getPRO()): ?>
40
- <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
41
  <div class="w-col-sm-12">
42
  <div class="info-msg support-box">
43
  <p><?php echo sprintf(__("%s, we won't charge you for any extra price after a year for using MEC or receiving updates, but you will need to renew your license if you needed support by then. You can use links below in order to do that:", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Dear user', 'modern-events-calendar-lite').'</strong>'); ?></p>
25
  <div class="welcome-content w-clearfix extra">
26
 
27
  <?php if(!$this->getPRO()): ?>
28
+ <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
29
  <div class="w-col-sm-12">
30
  <div class="info-msg support-box">
31
  <p><?php echo sprintf(__("%s, if you need support, you can purchase our Extra Support feature through links below:", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Dear user', 'modern-events-calendar-lite').'</strong>'); ?></p>
37
  <?php endif; ?>
38
 
39
  <?php if($this->getPRO()): ?>
40
+ <div class="w-row mec-pro-notice" style="margin-bottom: 30px;">
41
  <div class="w-col-sm-12">
42
  <div class="info-msg support-box">
43
  <p><?php echo sprintf(__("%s, we won't charge you for any extra price after a year for using MEC or receiving updates, but you will need to renew your license if you needed support by then. You can use links below in order to do that:", 'modern-events-calendar-lite'), '<strong>'.esc_html__('Dear user', 'modern-events-calendar-lite').'</strong>'); ?></p>
app/features/organizers.php CHANGED
@@ -180,7 +180,7 @@ class MEC_feature_organizers extends MEC_base
180
 
181
  $tel = isset($_POST['tel']) ? sanitize_text_field($_POST['tel']) : '';
182
  $email = isset($_POST['email']) ? sanitize_text_field($_POST['email']) : '';
183
- $url = (isset($_POST['url']) and trim($_POST['url'])) ? (strpos($_POST['url'], 'http') === false ? 'http://'.sanitize_text_field($_POST['url']) : sanitize_text_field($_POST['url'])) : '';
184
  $thumbnail = isset($_POST['thumbnail']) ? sanitize_text_field($_POST['thumbnail']) : '';
185
 
186
  update_term_meta($term_id, 'tel', $tel);
@@ -385,12 +385,12 @@ class MEC_feature_organizers extends MEC_base
385
  if(isset($_mec['organizer_id']) and $_mec['organizer_id'])
386
  {
387
  // Set term to the post
388
- wp_set_object_terms($post_id, (int) $_mec['organizer_id'], 'mec_organizer');
389
 
390
  return true;
391
  }
392
 
393
- $name = (isset($_mec['organizer']['name']) and trim($_mec['organizer']['name'])) ? sanitize_text_field($_mec['organizer']['name']) : 'Organizer Name';
394
 
395
  $term = get_term_by('name', $name, 'mec_organizer');
396
 
@@ -420,7 +420,7 @@ class MEC_feature_organizers extends MEC_base
420
 
421
  $tel = (isset($_mec['organizer']['tel']) and trim($_mec['organizer']['tel'])) ? sanitize_text_field($_mec['organizer']['tel']) : '';
422
  $email = (isset($_mec['organizer']['email']) and trim($_mec['organizer']['email'])) ? sanitize_text_field($_mec['organizer']['email']) : '';
423
- $url = (isset($_mec['organizer']['url']) and trim($_mec['organizer']['url'])) ? (strpos($_mec['organizer']['url'], 'http') === false ? 'http://'.sanitize_text_field($_mec['organizer']['url']) : sanitize_text_field($_mec['organizer']['url'])) : '';
424
  $thumbnail = (isset($_mec['organizer']['thumbnail']) and trim($_mec['organizer']['thumbnail'])) ? sanitize_text_field($_mec['organizer']['thumbnail']) : '';
425
 
426
  update_term_meta($organizer_id, 'tel', $tel);
180
 
181
  $tel = isset($_POST['tel']) ? sanitize_text_field($_POST['tel']) : '';
182
  $email = isset($_POST['email']) ? sanitize_text_field($_POST['email']) : '';
183
+ $url = (isset($_POST['url']) and trim($_POST['url'])) ? sanitize_url($_POST['url']) : '';
184
  $thumbnail = isset($_POST['thumbnail']) ? sanitize_text_field($_POST['thumbnail']) : '';
185
 
186
  update_term_meta($term_id, 'tel', $tel);
385
  if(isset($_mec['organizer_id']) and $_mec['organizer_id'])
386
  {
387
  // Set term to the post
388
+ wp_set_object_terms($post_id, (int) sanitize_text_field($_mec['organizer_id']), 'mec_organizer');
389
 
390
  return true;
391
  }
392
 
393
+ $name = (isset($_mec['organizer']['name']) and trim($_mec['organizer']['name'])) ? sanitize_text_field($_mec['organizer']['name']) : esc_html__('Organizer Name', 'modern-events-calendar-lite');
394
 
395
  $term = get_term_by('name', $name, 'mec_organizer');
396
 
420
 
421
  $tel = (isset($_mec['organizer']['tel']) and trim($_mec['organizer']['tel'])) ? sanitize_text_field($_mec['organizer']['tel']) : '';
422
  $email = (isset($_mec['organizer']['email']) and trim($_mec['organizer']['email'])) ? sanitize_text_field($_mec['organizer']['email']) : '';
423
+ $url = (isset($_mec['organizer']['url']) and trim($_mec['organizer']['url'])) ? sanitize_url($_mec['organizer']['url']) : '';
424
  $thumbnail = (isset($_mec['organizer']['thumbnail']) and trim($_mec['organizer']['thumbnail'])) ? sanitize_text_field($_mec['organizer']['thumbnail']) : '';
425
 
426
  update_term_meta($organizer_id, 'tel', $tel);
app/features/popup.php CHANGED
@@ -273,7 +273,7 @@ class MEC_feature_popup extends MEC_base
273
  $mec = (isset($_POST['mec']) and is_array($_POST['mec'])) ? $_POST['mec'] : array();
274
 
275
  $post_title = isset($mec['title']) ? sanitize_text_field($mec['title']) : '';
276
- $post_content = isset($mec['content']) ? $mec['content'] : '';
277
  $featured_image = isset($mec['featured_image']) ? sanitize_text_field($mec['featured_image']) : '';
278
 
279
  // Post Status
@@ -306,7 +306,7 @@ class MEC_feature_popup extends MEC_base
306
  else
307
  {
308
  $address = (isset($mec['location']['address']) and trim($mec['location']['address'])) ? sanitize_text_field($mec['location']['address']) : '';
309
- $name = (isset($mec['location']['name']) and trim($mec['location']['name'])) ? sanitize_text_field($mec['location']['name']) : (trim($address) ? $address : 'Location Name');
310
 
311
  $term = get_term_by('name', $name, 'mec_location');
312
 
@@ -365,7 +365,7 @@ class MEC_feature_popup extends MEC_base
365
  }
366
  else
367
  {
368
- $name = (isset($mec['organizer']['name']) and trim($mec['organizer']['name'])) ? sanitize_text_field($mec['organizer']['name']) : 'Organizer Name';
369
 
370
  $term = get_term_by('name', $name, 'mec_organizer');
371
 
@@ -388,7 +388,7 @@ class MEC_feature_popup extends MEC_base
388
 
389
  $tel = (isset($mec['organizer']['tel']) and trim($mec['organizer']['tel'])) ? sanitize_text_field($mec['organizer']['tel']) : '';
390
  $email = (isset($mec['organizer']['email']) and trim($mec['organizer']['email'])) ? sanitize_text_field($mec['organizer']['email']) : '';
391
- $url = (isset($mec['organizer']['url']) and trim($mec['organizer']['url'])) ? (strpos($mec['organizer']['url'], 'http') === false ? 'http://'.sanitize_text_field($mec['organizer']['url']) : sanitize_text_field($mec['organizer']['url'])) : '';
392
  $thumbnail = (isset($mec['organizer']['thumbnail']) and trim($mec['organizer']['thumbnail'])) ? sanitize_text_field($mec['organizer']['thumbnail']) : '';
393
 
394
  update_term_meta($organizer_id, 'tel', $tel);
@@ -405,8 +405,8 @@ class MEC_feature_popup extends MEC_base
405
  // Date Options
406
  $date = isset($mec['date']) ? $mec['date'] : array();
407
 
408
- $start_date = (isset($date['start']['date']) and trim($date['start']['date'])) ? $this->main->standardize_format($date['start']['date']) : date('Y-m-d');
409
- $end_date = (isset($date['end']['date']) and trim($date['end']['date'])) ? $this->main->standardize_format($date['end']['date']) : date('Y-m-d');
410
 
411
  // Set the start date
412
  $date['start']['date'] = $start_date;
273
  $mec = (isset($_POST['mec']) and is_array($_POST['mec'])) ? $_POST['mec'] : array();
274
 
275
  $post_title = isset($mec['title']) ? sanitize_text_field($mec['title']) : '';
276
+ $post_content = isset($mec['content']) ? MEC_kses::page($mec['content']) : '';
277
  $featured_image = isset($mec['featured_image']) ? sanitize_text_field($mec['featured_image']) : '';
278
 
279
  // Post Status
306
  else
307
  {
308
  $address = (isset($mec['location']['address']) and trim($mec['location']['address'])) ? sanitize_text_field($mec['location']['address']) : '';
309
+ $name = (isset($mec['location']['name']) and trim($mec['location']['name'])) ? sanitize_text_field($mec['location']['name']) : (trim($address) ? $address : esc_html__('Location Name', 'modern-events-calendar-lite'));
310
 
311
  $term = get_term_by('name', $name, 'mec_location');
312
 
365
  }
366
  else
367
  {
368
+ $name = (isset($mec['organizer']['name']) and trim($mec['organizer']['name'])) ? sanitize_text_field($mec['organizer']['name']) : esc_html__('Organizer Name', 'modern-events-calendar-lite');
369
 
370
  $term = get_term_by('name', $name, 'mec_organizer');
371
 
388
 
389
  $tel = (isset($mec['organizer']['tel']) and trim($mec['organizer']['tel'])) ? sanitize_text_field($mec['organizer']['tel']) : '';
390
  $email = (isset($mec['organizer']['email']) and trim($mec['organizer']['email'])) ? sanitize_text_field($mec['organizer']['email']) : '';
391
+ $url = (isset($mec['organizer']['url']) and trim($mec['organizer']['url'])) ? sanitize_url($mec['organizer']['url']) : '';
392
  $thumbnail = (isset($mec['organizer']['thumbnail']) and trim($mec['organizer']['thumbnail'])) ? sanitize_text_field($mec['organizer']['thumbnail']) : '';
393
 
394
  update_term_meta($organizer_id, 'tel', $tel);
405
  // Date Options
406
  $date = isset($mec['date']) ? $mec['date'] : array();
407
 
408
+ $start_date = (isset($date['start']['date']) and trim($date['start']['date'])) ? $this->main->standardize_format(sanitize_text_field($date['start']['date'])) : date('Y-m-d');
409
+ $end_date = (isset($date['end']['date']) and trim($date['end']['date'])) ? $this->main->standardize_format(sanitize_text_field($date['end']['date'])) : date('Y-m-d');
410
 
411
  // Set the start date
412
  $date['start']['date'] = $start_date;
app/features/schema.php CHANGED
@@ -176,7 +176,7 @@ class MEC_feature_schema extends MEC_base
176
 
177
  update_post_meta($post_id, 'mec_event_status', $event_status);
178
 
179
- $moved_online_link = (isset($_mec['moved_online_link']) and filter_var($_mec['moved_online_link'], FILTER_VALIDATE_URL)) ? esc_url($_mec['moved_online_link']) : '';
180
  update_post_meta($post_id, 'mec_moved_online_link', $moved_online_link);
181
 
182
  $cancelled_reason = (isset($_mec['cancelled_reason']) and !empty($_mec['cancelled_reason'])) ? sanitize_text_field($_mec['cancelled_reason']) : '';
176
 
177
  update_post_meta($post_id, 'mec_event_status', $event_status);
178
 
179
+ $moved_online_link = (isset($_mec['moved_online_link']) and filter_var($_mec['moved_online_link'], FILTER_VALIDATE_URL)) ? sanitize_url($_mec['moved_online_link']) : '';
180
  update_post_meta($post_id, 'mec_moved_online_link', $moved_online_link);
181
 
182
  $cancelled_reason = (isset($_mec['cancelled_reason']) and !empty($_mec['cancelled_reason'])) ? sanitize_text_field($_mec['cancelled_reason']) : '';
app/libraries/main.php CHANGED
@@ -45,7 +45,7 @@ class MEC_main extends MEC_base
45
  if(isset($server['HTTPS']) and $server['HTTPS'] == 'on') $page_url .= 's';
46
 
47
  // Get domain
48
- $site_domain = (isset($server['HTTP_HOST']) and trim($server['HTTP_HOST']) != '') ? $server['HTTP_HOST'] : $server['SERVER_NAME'];
49
 
50
  $page_url .= '://';
51
  $page_url .= $site_domain.$server['REQUEST_URI'];
@@ -5161,7 +5161,7 @@ class MEC_main extends MEC_base
5161
  public function get_recaptcha_response($response, $remote_ip = NULL)
5162
  {
5163
  // get the IP
5164
- if(is_null($remote_ip)) $remote_ip = (isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : '');
5165
 
5166
  // MEC Settings
5167
  $settings = $this->get_settings();
@@ -7298,12 +7298,12 @@ class MEC_main extends MEC_base
7298
 
7299
  function get_client_ip()
7300
  {
7301
- if(isset($_SERVER['HTTP_CLIENT_IP'])) $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
7302
- elseif(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
7303
- elseif(isset($_SERVER['HTTP_X_FORWARDED'])) $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
7304
- elseif(isset($_SERVER['HTTP_FORWARDED_FOR'])) $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
7305
- elseif(isset($_SERVER['HTTP_FORWARDED'])) $ipaddress = $_SERVER['HTTP_FORWARDED'];
7306
- elseif(isset($_SERVER['REMOTE_ADDR'])) $ipaddress = $_SERVER['REMOTE_ADDR'];
7307
  else $ipaddress = 'UNKNOWN';
7308
 
7309
  $ips = explode(',', $ipaddress);
45
  if(isset($server['HTTPS']) and $server['HTTPS'] == 'on') $page_url .= 's';
46
 
47
  // Get domain
48
+ $site_domain = (isset($server['HTTP_HOST']) and trim($server['HTTP_HOST']) != '') ? sanitize_text_field($server['HTTP_HOST']) : sanitize_text_field($server['SERVER_NAME']);
49
 
50
  $page_url .= '://';
51
  $page_url .= $site_domain.$server['REQUEST_URI'];
5161
  public function get_recaptcha_response($response, $remote_ip = NULL)
5162
  {
5163
  // get the IP
5164
+ if(is_null($remote_ip)) $remote_ip = (isset($_SERVER["REMOTE_ADDR"]) ? sanitize_text_field($_SERVER["REMOTE_ADDR"]) : '');
5165
 
5166
  // MEC Settings
5167
  $settings = $this->get_settings();
7298
 
7299
  function get_client_ip()
7300
  {
7301
+ if(isset($_SERVER['HTTP_CLIENT_IP'])) $ipaddress = sanitize_text_field($_SERVER['HTTP_CLIENT_IP']);
7302
+ elseif(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $ipaddress = sanitize_text_field($_SERVER['HTTP_X_FORWARDED_FOR']);
7303
+ elseif(isset($_SERVER['HTTP_X_FORWARDED'])) $ipaddress = sanitize_text_field($_SERVER['HTTP_X_FORWARDED']);
7304
+ elseif(isset($_SERVER['HTTP_FORWARDED_FOR'])) $ipaddress = sanitize_text_field($_SERVER['HTTP_FORWARDED_FOR']);
7305
+ elseif(isset($_SERVER['HTTP_FORWARDED'])) $ipaddress = sanitize_text_field($_SERVER['HTTP_FORWARDED']);
7306
+ elseif(isset($_SERVER['REMOTE_ADDR'])) $ipaddress = sanitize_text_field($_SERVER['REMOTE_ADDR']);
7307
  else $ipaddress = 'UNKNOWN';
7308
 
7309
  $ips = explode(',', $ipaddress);
app/libraries/skins.php CHANGED
@@ -1083,11 +1083,11 @@ class MEC_skins extends MEC_base
1083
  $form = '';
1084
  if(trim($fields) && (in_array('dropdown', $display_form) || in_array('checkboxes', $display_form) || in_array('text_input', $display_form) || in_array('address_input', $display_form) || in_array('minmax', $display_form) || in_array('local-time-picker', $display_form)))
1085
  {
1086
- $form .= '<div id="mec_search_form_'.$this->id.'" class="mec-search-form mec-totalcal-box">';
1087
  $form .= $fields;
1088
 
1089
  // Reset Button
1090
- if($this->sf_reset_button) $form .='<div class="mec-search-reset-button"><button class="button mec-button" id="mec_search_form_'.$this->id.'_reset" type="button">'.esc_html__('Reset', 'modern-events-calendar-lite').'</button></div>';
1091
 
1092
 
1093
  $form = apply_filters('mec_sf_search_form_end', $form, $this );
@@ -1690,7 +1690,7 @@ class MEC_skins extends MEC_base
1690
  {
1691
  foreach($event->data->organizers as $organizer)
1692
  {
1693
- $organizer_url = !empty($organizer['url']) ? 'href="'. $organizer['url'] .'" target="_blank"' : 'href="#"';
1694
  if(isset($organizer['name']) and trim($organizer['name'])) $output .= '<li class="mec-organizer-item"><a class="mec-color-hover" '.$organizer_url.'>' . trim($organizer['name']) . '</a></li>';
1695
  }
1696
  }
1083
  $form = '';
1084
  if(trim($fields) && (in_array('dropdown', $display_form) || in_array('checkboxes', $display_form) || in_array('text_input', $display_form) || in_array('address_input', $display_form) || in_array('minmax', $display_form) || in_array('local-time-picker', $display_form)))
1085
  {
1086
+ $form .= '<div id="mec_search_form_'.esc_attr($this->id).'" class="mec-search-form mec-totalcal-box">';
1087
  $form .= $fields;
1088
 
1089
  // Reset Button
1090
+ if($this->sf_reset_button) $form .='<div class="mec-search-reset-button"><button class="button mec-button" id="mec_search_form_'.esc_attr($this->id).'_reset" type="button">'.esc_html__('Reset', 'modern-events-calendar-lite').'</button></div>';
1091
 
1092
 
1093
  $form = apply_filters('mec_sf_search_form_end', $form, $this );
1690
  {
1691
  foreach($event->data->organizers as $organizer)
1692
  {
1693
+ $organizer_url = !empty($organizer['url']) ? 'href="'. esc_url($organizer['url']) .'" target="_blank"' : 'href="#"';
1694
  if(isset($organizer['name']) and trim($organizer['name'])) $output .= '<li class="mec-organizer-item"><a class="mec-color-hover" '.$organizer_url.'>' . trim($organizer['name']) . '</a></li>';
1695
  }
1696
  }
app/libraries/walker.php CHANGED
@@ -84,7 +84,7 @@ class MEC_walker extends Walker
84
  else $taxonomy = $args['taxonomy'];
85
 
86
  if('category' === $taxonomy) $name = 'post_category';
87
- else $name = 'tax_input[' . $taxonomy . ']';
88
 
89
  $args['popular_cats'] = !empty($args['popular_cats']) ? array_map('intval', $args['popular_cats']) : array();
90
  $class = in_array($category->term_id, $args['popular_cats'], true) ? ' class="popular-category"' : '';
84
  else $taxonomy = $args['taxonomy'];
85
 
86
  if('category' === $taxonomy) $name = 'post_category';
87
+ else $name = 'tax_input[' . esc_attr($taxonomy) . ']';
88
 
89
  $args['popular_cats'] = !empty($args['popular_cats']) ? array_map('intval', $args['popular_cats']) : array();
90
  $class = in_array($category->term_id, $args['popular_cats'], true) ? ' class="popular-category"' : '';
app/skins/single.php CHANGED
@@ -1414,7 +1414,7 @@ class MEC_skin_single extends MEC_skins
1414
  <dd class="mec-organizer-url">
1415
  <i class="mec-sl-sitemap"></i>
1416
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
1417
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : esc_url($organizer['url'])); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
1418
  </dd>
1419
  <?php endif; ?>
1420
  </dl>
@@ -1481,7 +1481,7 @@ class MEC_skin_single extends MEC_skins
1481
  <dd class="mec-organizer-url">
1482
  <i class="mec-sl-sitemap"></i>
1483
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
1484
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
1485
  </dd>
1486
  <?php endif;
1487
  $organizer_description_setting = isset( $this->settings['addintional_organizers_description'] ) ? $this->settings['addintional_organizers_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1'):
1414
  <dd class="mec-organizer-url">
1415
  <i class="mec-sl-sitemap"></i>
1416
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
1417
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
1418
  </dd>
1419
  <?php endif; ?>
1420
  </dl>
1481
  <dd class="mec-organizer-url">
1482
  <i class="mec-sl-sitemap"></i>
1483
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
1484
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
1485
  </dd>
1486
  <?php endif;
1487
  $organizer_description_setting = isset( $this->settings['addintional_organizers_description'] ) ? $this->settings['addintional_organizers_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1'):
app/skins/single/default.php CHANGED
@@ -272,7 +272,7 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
272
  <dd class="mec-location-url">
273
  <i class="mec-sl-sitemap"></i>
274
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
275
- <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
276
  </dd>
277
  <?php endif;
278
  $location_description_setting = isset($settings['location_description']) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
@@ -350,7 +350,7 @@ if($sticky_sidebar == 1) $sticky_sidebar = 'mec-sticky';
350
  <dd class="mec-organizer-url">
351
  <i class="mec-sl-sitemap"></i>
352
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
353
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
354
  <?php do_action('mec_single_default_organizer', $organizer); ?>
355
  </dd>
356
  <?php endif;
272
  <dd class="mec-location-url">
273
  <i class="mec-sl-sitemap"></i>
274
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
275
+ <span><a href="<?php echo esc_url($location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
276
  </dd>
277
  <?php endif;
278
  $location_description_setting = isset($settings['location_description']) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
350
  <dd class="mec-organizer-url">
351
  <i class="mec-sl-sitemap"></i>
352
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
353
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
354
  <?php do_action('mec_single_default_organizer', $organizer); ?>
355
  </dd>
356
  <?php endif;
app/skins/single/m1.php CHANGED
@@ -146,7 +146,7 @@ $cost = $this->main->get_event_cost($event);
146
  <dd class="mec-organizer-url">
147
  <i class="mec-sl-sitemap"></i>
148
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
149
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
150
  </dd>
151
  <?php endif;
152
  $organizer_description_setting = isset($settings['organizer_description']) ? $settings['organizer_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1' and is_array($organizer_terms) and count($organizer_terms)): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
@@ -207,7 +207,7 @@ $cost = $this->main->get_event_cost($event);
207
  <dd class="mec-location-url">
208
  <i class="mec-sl-sitemap"></i>
209
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
210
- <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
211
  </dd>
212
  <?php endif;
213
  $location_description_setting = isset($settings['location_description']) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
146
  <dd class="mec-organizer-url">
147
  <i class="mec-sl-sitemap"></i>
148
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
149
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
150
  </dd>
151
  <?php endif;
152
  $organizer_description_setting = isset($settings['organizer_description']) ? $settings['organizer_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1' and is_array($organizer_terms) and count($organizer_terms)): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
207
  <dd class="mec-location-url">
208
  <i class="mec-sl-sitemap"></i>
209
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
210
+ <span><a href="<?php echo esc_url($location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
211
  </dd>
212
  <?php endif;
213
  $location_description_setting = isset($settings['location_description']) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
app/skins/single/m2.php CHANGED
@@ -66,7 +66,7 @@ $organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : a
66
  <dd class="mec-organizer-url">
67
  <i class="mec-sl-sitemap"></i>
68
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
69
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
70
  </dd>
71
  <?php endif;
72
  $organizer_description_setting = isset($settings['organizer_description']) ? $settings['organizer_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1' and is_array($organizer_terms) and count($organizer_terms)): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
@@ -127,7 +127,7 @@ $organizer = ($organizer_id ? $this->main->get_organizer_data($organizer_id) : a
127
  <dd class="mec-location-url">
128
  <i class="mec-sl-sitemap"></i>
129
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
130
- <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
131
  </dd>
132
  <?php endif;
133
  $location_description_setting = isset($settings['location_description']) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
66
  <dd class="mec-organizer-url">
67
  <i class="mec-sl-sitemap"></i>
68
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
69
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
70
  </dd>
71
  <?php endif;
72
  $organizer_description_setting = isset($settings['organizer_description']) ? $settings['organizer_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1' and is_array($organizer_terms) and count($organizer_terms)): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
127
  <dd class="mec-location-url">
128
  <i class="mec-sl-sitemap"></i>
129
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
130
+ <span><a href="<?php echo esc_url($location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
131
  </dd>
132
  <?php endif;
133
  $location_description_setting = isset($settings['location_description']) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
app/widgets/single/default.php CHANGED
@@ -112,7 +112,7 @@
112
  <dd class="mec-location-url">
113
  <i class="mec-sl-sitemap"></i>
114
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
115
- <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
116
  </dd>
117
  <?php endif;
118
  $location_description_setting = isset( $settings['location_description'] ) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
@@ -189,7 +189,7 @@
189
  <dd class="mec-organizer-url">
190
  <i class="mec-sl-sitemap"></i>
191
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
192
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
193
  <?php do_action('mec_single_default_organizer', $organizer); ?>
194
  </dd>
195
  <?php endif;
112
  <dd class="mec-location-url">
113
  <i class="mec-sl-sitemap"></i>
114
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
115
+ <span><a href="<?php echo esc_url($location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($location['url']); ?></a></span>
116
  </dd>
117
  <?php endif;
118
  $location_description_setting = isset( $settings['location_description'] ) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
189
  <dd class="mec-organizer-url">
190
  <i class="mec-sl-sitemap"></i>
191
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
192
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
193
  <?php do_action('mec_single_default_organizer', $organizer); ?>
194
  </dd>
195
  <?php endif;
app/widgets/single/modern.php CHANGED
@@ -35,7 +35,7 @@
35
  <dd class="mec-organizer-url">
36
  <i class="mec-sl-sitemap"></i>
37
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
38
- <span><a href="<?php echo (strpos($organizer['url'], 'http') === false ? 'http://'.$organizer['url'] : $organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
39
  </dd>
40
  <?php endif;
41
  $organizer_description_setting = isset( $settings['organizer_description'] ) ? $settings['organizer_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1' and is_array($organizer_terms) and count($organizer_terms)): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
@@ -94,7 +94,7 @@
94
  <dd class="mec-location-url">
95
  <i class="mec-sl-sitemap"></i>
96
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
97
- <span><a href="<?php echo (strpos($location['url'], 'http') === false ? 'http://'.$location['url'] : $location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url($location['url']); ?></a></span>
98
  </dd>
99
  <?php endif;
100
  $location_description_setting = isset( $settings['location_description'] ) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
35
  <dd class="mec-organizer-url">
36
  <i class="mec-sl-sitemap"></i>
37
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
38
+ <span><a href="<?php echo esc_url($organizer['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_html($organizer['url']); ?></a></span>
39
  </dd>
40
  <?php endif;
41
  $organizer_description_setting = isset( $settings['organizer_description'] ) ? $settings['organizer_description'] : ''; $organizer_terms = get_the_terms($event->data, 'mec_organizer'); if($organizer_description_setting == '1' and is_array($organizer_terms) and count($organizer_terms)): foreach($organizer_terms as $organizer_term) { if ($organizer_term->term_id == $organizer['id'] ) { if(isset($organizer_term->description) && !empty($organizer_term->description)): ?>
94
  <dd class="mec-location-url">
95
  <i class="mec-sl-sitemap"></i>
96
  <h6><?php esc_html_e('Website', 'modern-events-calendar-lite'); ?></h6>
97
+ <span><a href="<?php echo esc_url($location['url']); ?>" class="mec-color-hover" target="_blank"><?php echo esc_url($location['url']); ?></a></span>
98
  </dd>
99
  <?php endif;
100
  $location_description_setting = isset( $settings['location_description'] ) ? $settings['location_description'] : ''; $location_terms = get_the_terms($event->data, 'mec_location'); if($location_description_setting == '1' and is_array($location_terms) and count($location_terms)): foreach($location_terms as $location_term) { if ($location_term->term_id == $location['id'] ) { if(isset($location_term->description) && !empty($location_term->description)): ?>
changelog.txt CHANGED
@@ -1,4 +1,8 @@
1
- v 6.4.828 March 2022
 
 
 
 
2
  - Fixed: No event found issue in special conditions
3
 
4
  v 6.4.7 – 27 March 2022
1
+ v 6.4.930 March 2022
2
+ - Fixed: Some minor issue
3
+ - Removed: PUC folder
4
+
5
+ v 6.4.8 – 28 March 2022
6
  - Fixed: No event found issue in special conditions
7
 
8
  v 6.4.7 – 27 March 2022
languages/modern-events-calendar-lite-cs_CZ.mo CHANGED
Binary file
languages/modern-events-calendar-lite-cs_CZ.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar Lite\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:57+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: cs_CZ\n"
@@ -104,51 +104,6 @@ msgstr ""
104
  msgid "Select Shortcode"
105
  msgstr "Přidat nový zkrácený kód"
106
 
107
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
108
- #, fuzzy
109
- #| msgid "View Detail"
110
- msgid "View details"
111
- msgstr "Zobrazit detail"
112
-
113
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
114
- #, fuzzy, php-format
115
- #| msgid "More Information"
116
- msgid "More information about %s"
117
- msgstr "Více informací"
118
-
119
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
120
- #, fuzzy
121
- #| msgid "Checkout"
122
- msgid "Check for updates"
123
- msgstr "Překontrolovat"
124
-
125
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
126
- #, php-format
127
- msgctxt "the plugin title"
128
- msgid "The %s plugin is up to date."
129
- msgstr ""
130
-
131
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
132
- #, php-format
133
- msgctxt "the plugin title"
134
- msgid "A new version of the %s plugin is available."
135
- msgstr ""
136
-
137
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
138
- #, php-format
139
- msgctxt "the plugin title"
140
- msgid "Could not determine if updates are available for %s."
141
- msgstr ""
142
-
143
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
144
- #, php-format
145
- msgid "Unknown update checker status \"%s\""
146
- msgstr ""
147
-
148
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
149
- msgid "There is no changelog available."
150
- msgstr ""
151
-
152
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
153
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
154
  msgid "Rejected"
@@ -867,8 +822,10 @@ msgid ""
867
  msgstr ""
868
 
869
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
870
  msgid "How to set buddypress"
871
- msgstr ""
872
 
873
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
874
  msgid ""
@@ -903,8 +860,10 @@ msgid ""
903
  msgstr ""
904
 
905
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
906
  msgid "How to set category"
907
- msgstr ""
908
 
909
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
910
  #: app/features/events.php:218 app/features/events.php:3875
@@ -942,8 +901,10 @@ msgstr ""
942
 
943
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
944
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
945
  msgid "How to set cost"
946
- msgstr ""
947
 
948
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
949
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1023,8 +984,10 @@ msgid ""
1023
  msgstr ""
1024
 
1025
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1026
  msgid "How to set label"
1027
- msgstr ""
1028
 
1029
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1030
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1115,8 +1078,10 @@ msgid ""
1115
  msgstr ""
1116
 
1117
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1118
  msgid "How to set read more"
1119
- msgstr ""
1120
 
1121
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1122
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1218,8 +1183,10 @@ msgid ""
1218
  msgstr ""
1219
 
1220
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1221
  msgid "How to set QR code module"
1222
- msgstr ""
1223
 
1224
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1225
  msgid ""
@@ -1284,8 +1251,10 @@ msgid ""
1284
  msgstr ""
1285
 
1286
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1287
  msgid "How to set speaker"
1288
- msgstr ""
1289
 
1290
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1291
  msgid ""
@@ -1294,8 +1263,10 @@ msgid ""
1294
  msgstr ""
1295
 
1296
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1297
  msgid "How to set tags"
1298
- msgstr ""
1299
 
1300
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1301
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1337,8 +1308,10 @@ msgid ""
1337
  msgstr ""
1338
 
1339
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1340
  msgid "How to set weather"
1341
- msgstr ""
1342
 
1343
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1344
  msgid ""
@@ -3493,6 +3466,19 @@ msgstr "Zadejte alespoň 3 znaky"
3493
  msgid "Please select at-least one label!"
3494
  msgstr "Vyberte události, které chcete importovat!"
3495
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3496
  #: app/features/fes.php:1391
3497
  #, fuzzy
3498
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4609,10 +4595,6 @@ msgstr "Vložit nové místo"
4609
  msgid "Choose one of saved locations or insert new one below."
4610
  msgstr "Vyberte jedno z uložených míst nebo vložte nové."
4611
 
4612
- #: app/features/locations.php:348 app/features/popup/event.php:146
4613
- msgid "Location Name"
4614
- msgstr "Název místa"
4615
-
4616
  #: app/features/locations.php:349 app/features/popup/event.php:147
4617
  msgid "eg. City Hall"
4618
  msgstr "např. Radnice"
@@ -13080,6 +13062,21 @@ msgstr "Webnus Team"
13080
  msgid "http://webnus.net"
13081
  msgstr "http://webnus.net"
13082
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13083
  #, fuzzy
13084
  #~| msgid "Notifications"
13085
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar Lite\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:30+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: cs_CZ\n"
104
  msgid "Select Shortcode"
105
  msgstr "Přidat nový zkrácený kód"
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
108
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
109
  msgid "Rejected"
822
  msgstr ""
823
 
824
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
825
+ #, fuzzy
826
+ #| msgid "Enable Breadcrumbs."
827
  msgid "How to set buddypress"
828
+ msgstr "Povolit drobečkovou navigaci."
829
 
830
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
831
  msgid ""
860
  msgstr ""
861
 
862
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
863
+ #, fuzzy
864
+ #| msgid "Hide location"
865
  msgid "How to set category"
866
+ msgstr "Skrýt místo"
867
 
868
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
869
  #: app/features/events.php:218 app/features/events.php:3875
901
 
902
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
903
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
904
+ #, fuzzy
905
+ #| msgid "Hide location"
906
  msgid "How to set cost"
907
+ msgstr "Skrýt místo"
908
 
909
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
910
  #: app/features/events.php:432 app/features/events.php:1283
984
  msgstr ""
985
 
986
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
987
+ #, fuzzy
988
+ #| msgid "Hide location"
989
  msgid "How to set label"
990
+ msgstr "Skrýt místo"
991
 
992
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
993
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1078
  msgstr ""
1079
 
1080
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1081
+ #, fuzzy
1082
+ #| msgid "Enable Breadcrumbs."
1083
  msgid "How to set read more"
1084
+ msgstr "Povolit drobečkovou navigaci."
1085
 
1086
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1087
  #: app/features/events.php:1519 app/features/events.php:1532
1183
  msgstr ""
1184
 
1185
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1186
+ #, fuzzy
1187
+ #| msgid "Show social network module"
1188
  msgid "How to set QR code module"
1189
+ msgstr "Zobrazit modul sociální sítě"
1190
 
1191
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1192
  msgid ""
1251
  msgstr ""
1252
 
1253
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1254
+ #, fuzzy
1255
+ #| msgid "Hide organizer"
1256
  msgid "How to set speaker"
1257
+ msgstr "Skrýt organizátora"
1258
 
1259
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1260
  msgid ""
1263
  msgstr ""
1264
 
1265
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1266
+ #, fuzzy
1267
+ #| msgid "Hide location"
1268
  msgid "How to set tags"
1269
+ msgstr "Skrýt místo"
1270
 
1271
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1272
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1308
  msgstr ""
1309
 
1310
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1311
+ #, fuzzy
1312
+ #| msgid "Hide organizer"
1313
  msgid "How to set weather"
1314
+ msgstr "Skrýt organizátora"
1315
 
1316
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1317
  msgid ""
3466
  msgid "Please select at-least one label!"
3467
  msgstr "Vyberte události, které chcete importovat!"
3468
 
3469
+ #: app/features/fes.php:641 app/features/locations.php:348
3470
+ #: app/features/locations.php:462 app/features/popup.php:309
3471
+ #: app/features/popup/event.php:146
3472
+ msgid "Location Name"
3473
+ msgstr "Název místa"
3474
+
3475
+ #: app/features/fes.php:704 app/features/organizers.php:393
3476
+ #: app/features/popup.php:368
3477
+ #, fuzzy
3478
+ #| msgid "Organizer Payment"
3479
+ msgid "Organizer Name"
3480
+ msgstr "Platba organizátora"
3481
+
3482
  #: app/features/fes.php:1391
3483
  #, fuzzy
3484
  #| msgid "The event submitted. It will publish as soon as possible."
4595
  msgid "Choose one of saved locations or insert new one below."
4596
  msgstr "Vyberte jedno z uložených míst nebo vložte nové."
4597
 
 
 
 
 
4598
  #: app/features/locations.php:349 app/features/popup/event.php:147
4599
  msgid "eg. City Hall"
4600
  msgstr "např. Radnice"
13062
  msgid "http://webnus.net"
13063
  msgstr "http://webnus.net"
13064
 
13065
+ #, fuzzy
13066
+ #~| msgid "View Detail"
13067
+ #~ msgid "View details"
13068
+ #~ msgstr "Zobrazit detail"
13069
+
13070
+ #, fuzzy
13071
+ #~| msgid "More Information"
13072
+ #~ msgid "More information about %s"
13073
+ #~ msgstr "Více informací"
13074
+
13075
+ #, fuzzy
13076
+ #~| msgid "Checkout"
13077
+ #~ msgid "Check for updates"
13078
+ #~ msgstr "Překontrolovat"
13079
+
13080
  #, fuzzy
13081
  #~| msgid "Notifications"
13082
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-de_DE.mo CHANGED
Binary file
languages/modern-events-calendar-lite-de_DE.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: ME Calender\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
6
- "PO-Revision-Date: 2022-03-28 22:57+0430\n"
7
  "Last-Translator: Jogon <koenig@kafinanz.de>\n"
8
  "Language-Team: German\n"
9
  "Language: de_DE\n"
@@ -106,51 +106,6 @@ msgstr ""
106
  msgid "Select Shortcode"
107
  msgstr "Neuen Shortcode hinzufügen"
108
 
109
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
110
- #, fuzzy
111
- #| msgid "View Detail"
112
- msgid "View details"
113
- msgstr "Details "
114
-
115
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
116
- #, fuzzy, php-format
117
- #| msgid "More Information"
118
- msgid "More information about %s"
119
- msgstr "z.B. Noch mehr Informationen "
120
-
121
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
122
- #, fuzzy
123
- #| msgid "Checkout"
124
- msgid "Check for updates"
125
- msgstr "Zur Kasse gehen"
126
-
127
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
128
- #, php-format
129
- msgctxt "the plugin title"
130
- msgid "The %s plugin is up to date."
131
- msgstr ""
132
-
133
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
134
- #, php-format
135
- msgctxt "the plugin title"
136
- msgid "A new version of the %s plugin is available."
137
- msgstr ""
138
-
139
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
140
- #, php-format
141
- msgctxt "the plugin title"
142
- msgid "Could not determine if updates are available for %s."
143
- msgstr ""
144
-
145
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
146
- #, php-format
147
- msgid "Unknown update checker status \"%s\""
148
- msgstr ""
149
-
150
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
151
- msgid "There is no changelog available."
152
- msgstr ""
153
-
154
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
155
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
156
  msgid "Rejected"
@@ -868,8 +823,10 @@ msgid ""
868
  msgstr ""
869
 
870
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
871
  msgid "How to set buddypress"
872
- msgstr ""
873
 
874
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
875
  msgid ""
@@ -904,8 +861,10 @@ msgid ""
904
  msgstr ""
905
 
906
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
907
  msgid "How to set category"
908
- msgstr ""
909
 
910
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
911
  #: app/features/events.php:218 app/features/events.php:3875
@@ -943,8 +902,10 @@ msgstr ""
943
 
944
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
945
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
946
  msgid "How to set cost"
947
- msgstr ""
948
 
949
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
950
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1024,8 +985,10 @@ msgid ""
1024
  msgstr ""
1025
 
1026
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1027
  msgid "How to set label"
1028
- msgstr ""
1029
 
1030
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1031
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1116,8 +1079,10 @@ msgid ""
1116
  msgstr ""
1117
 
1118
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1119
  msgid "How to set read more"
1120
- msgstr ""
1121
 
1122
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1123
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1287,8 +1252,10 @@ msgid ""
1287
  msgstr ""
1288
 
1289
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1290
  msgid "How to set speaker"
1291
- msgstr ""
1292
 
1293
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1294
  msgid ""
@@ -1297,8 +1264,10 @@ msgid ""
1297
  msgstr ""
1298
 
1299
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1300
  msgid "How to set tags"
1301
- msgstr ""
1302
 
1303
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1304
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1340,8 +1309,10 @@ msgid ""
1340
  msgstr ""
1341
 
1342
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1343
  msgid "How to set weather"
1344
- msgstr ""
1345
 
1346
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1347
  msgid ""
@@ -3443,6 +3414,19 @@ msgstr "Mindestens 3 Zeichen eingeben"
3443
  msgid "Please select at-least one label!"
3444
  msgstr "Bitte Tickets auswählen!"
3445
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3446
  #: app/features/fes.php:1391
3447
  #, fuzzy
3448
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4577,10 +4561,6 @@ msgid "Choose one of saved locations or insert new one below."
4577
  msgstr ""
4578
  "Wählen Sie einen der gespeicherten Orte aus, oder fügen Sie einen neuen ein."
4579
 
4580
- #: app/features/locations.php:348 app/features/popup/event.php:146
4581
- msgid "Location Name"
4582
- msgstr "Name Veranstaltungsort"
4583
-
4584
  #: app/features/locations.php:349 app/features/popup/event.php:147
4585
  msgid "eg. City Hall"
4586
  msgstr ""
@@ -13034,6 +13014,21 @@ msgstr "z.B. Webnus"
13034
  msgid "http://webnus.net"
13035
  msgstr "http://webnus.net"
13036
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13037
  #, fuzzy
13038
  #~| msgid "%s reminders sent."
13039
  #~ msgid "%s emails(s) sent."
2
  msgstr ""
3
  "Project-Id-Version: ME Calender\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
6
+ "PO-Revision-Date: 2022-03-30 12:30+0430\n"
7
  "Last-Translator: Jogon <koenig@kafinanz.de>\n"
8
  "Language-Team: German\n"
9
  "Language: de_DE\n"
106
  msgid "Select Shortcode"
107
  msgstr "Neuen Shortcode hinzufügen"
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
110
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
111
  msgid "Rejected"
823
  msgstr ""
824
 
825
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
826
+ #, fuzzy
827
+ #| msgid "Category Singular Label"
828
  msgid "How to set buddypress"
829
+ msgstr "Kategorie"
830
 
831
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
832
  msgid ""
861
  msgstr ""
862
 
863
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
864
+ #, fuzzy
865
+ #| msgid "Hide location"
866
  msgid "How to set category"
867
+ msgstr "Ort verbergen"
868
 
869
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
870
  #: app/features/events.php:218 app/features/events.php:3875
902
 
903
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
904
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
905
+ #, fuzzy
906
+ #| msgid "Hide location"
907
  msgid "How to set cost"
908
+ msgstr "Ort verbergen"
909
 
910
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
911
  #: app/features/events.php:432 app/features/events.php:1283
985
  msgstr ""
986
 
987
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
988
+ #, fuzzy
989
+ #| msgid "Hide location"
990
  msgid "How to set label"
991
+ msgstr "Ort verbergen"
992
 
993
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
994
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1079
  msgstr ""
1080
 
1081
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1082
+ #, fuzzy
1083
+ #| msgid "Category Singular Label"
1084
  msgid "How to set read more"
1085
+ msgstr "Kategorie"
1086
 
1087
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1088
  #: app/features/events.php:1519 app/features/events.php:1532
1252
  msgstr ""
1253
 
1254
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1255
+ #, fuzzy
1256
+ #| msgid "Hide organizer"
1257
  msgid "How to set speaker"
1258
+ msgstr "Veranstalter verbergen"
1259
 
1260
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1261
  msgid ""
1264
  msgstr ""
1265
 
1266
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1267
+ #, fuzzy
1268
+ #| msgid "Hide location"
1269
  msgid "How to set tags"
1270
+ msgstr "Ort verbergen"
1271
 
1272
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1273
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1309
  msgstr ""
1310
 
1311
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1312
+ #, fuzzy
1313
+ #| msgid "Hide organizer"
1314
  msgid "How to set weather"
1315
+ msgstr "Veranstalter verbergen"
1316
 
1317
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1318
  msgid ""
3414
  msgid "Please select at-least one label!"
3415
  msgstr "Bitte Tickets auswählen!"
3416
 
3417
+ #: app/features/fes.php:641 app/features/locations.php:348
3418
+ #: app/features/locations.php:462 app/features/popup.php:309
3419
+ #: app/features/popup/event.php:146
3420
+ msgid "Location Name"
3421
+ msgstr "Name Veranstaltungsort"
3422
+
3423
+ #: app/features/fes.php:704 app/features/organizers.php:393
3424
+ #: app/features/popup.php:368
3425
+ #, fuzzy
3426
+ #| msgid "Organizer Tel"
3427
+ msgid "Organizer Name"
3428
+ msgstr "Organisator Telefon"
3429
+
3430
  #: app/features/fes.php:1391
3431
  #, fuzzy
3432
  #| msgid "The event submitted. It will publish as soon as possible."
4561
  msgstr ""
4562
  "Wählen Sie einen der gespeicherten Orte aus, oder fügen Sie einen neuen ein."
4563
 
 
 
 
 
4564
  #: app/features/locations.php:349 app/features/popup/event.php:147
4565
  msgid "eg. City Hall"
4566
  msgstr ""
13014
  msgid "http://webnus.net"
13015
  msgstr "http://webnus.net"
13016
 
13017
+ #, fuzzy
13018
+ #~| msgid "View Detail"
13019
+ #~ msgid "View details"
13020
+ #~ msgstr "Details "
13021
+
13022
+ #, fuzzy
13023
+ #~| msgid "More Information"
13024
+ #~ msgid "More information about %s"
13025
+ #~ msgstr "z.B. Noch mehr Informationen "
13026
+
13027
+ #, fuzzy
13028
+ #~| msgid "Checkout"
13029
+ #~ msgid "Check for updates"
13030
+ #~ msgstr "Zur Kasse gehen"
13031
+
13032
  #, fuzzy
13033
  #~| msgid "%s reminders sent."
13034
  #~ msgid "%s emails(s) sent."
languages/modern-events-calendar-lite-en_US.mo CHANGED
Binary file
languages/modern-events-calendar-lite-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: modern-events-calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
@@ -89,46 +89,6 @@ msgstr ""
89
  msgid "Select Shortcode"
90
  msgstr ""
91
 
92
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
93
- msgid "View details"
94
- msgstr ""
95
-
96
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
97
- #, php-format
98
- msgid "More information about %s"
99
- msgstr ""
100
-
101
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
102
- msgid "Check for updates"
103
- msgstr ""
104
-
105
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
106
- #, php-format
107
- msgctxt "the plugin title"
108
- msgid "The %s plugin is up to date."
109
- msgstr ""
110
-
111
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
112
- #, php-format
113
- msgctxt "the plugin title"
114
- msgid "A new version of the %s plugin is available."
115
- msgstr ""
116
-
117
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
118
- #, php-format
119
- msgctxt "the plugin title"
120
- msgid "Could not determine if updates are available for %s."
121
- msgstr ""
122
-
123
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
124
- #, php-format
125
- msgid "Unknown update checker status \"%s\""
126
- msgstr ""
127
-
128
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
129
- msgid "There is no changelog available."
130
- msgstr ""
131
-
132
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
133
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
134
  msgid "Rejected"
@@ -3143,6 +3103,17 @@ msgstr ""
3143
  msgid "Please select at-least one label!"
3144
  msgstr ""
3145
 
 
 
 
 
 
 
 
 
 
 
 
3146
  #: app/features/fes.php:1391
3147
  msgid "Event submitted. It will publish as soon as possible."
3148
  msgstr ""
@@ -4115,10 +4086,6 @@ msgstr ""
4115
  msgid "Choose one of saved locations or insert new one below."
4116
  msgstr ""
4117
 
4118
- #: app/features/locations.php:348 app/features/popup/event.php:146
4119
- msgid "Location Name"
4120
- msgstr ""
4121
-
4122
  #: app/features/locations.php:349 app/features/popup/event.php:147
4123
  msgid "eg. City Hall"
4124
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: modern-events-calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:30+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: en_US\n"
89
  msgid "Select Shortcode"
90
  msgstr ""
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
93
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
94
  msgid "Rejected"
3103
  msgid "Please select at-least one label!"
3104
  msgstr ""
3105
 
3106
+ #: app/features/fes.php:641 app/features/locations.php:348
3107
+ #: app/features/locations.php:462 app/features/popup.php:309
3108
+ #: app/features/popup/event.php:146
3109
+ msgid "Location Name"
3110
+ msgstr ""
3111
+
3112
+ #: app/features/fes.php:704 app/features/organizers.php:393
3113
+ #: app/features/popup.php:368
3114
+ msgid "Organizer Name"
3115
+ msgstr ""
3116
+
3117
  #: app/features/fes.php:1391
3118
  msgid "Event submitted. It will publish as soon as possible."
3119
  msgstr ""
4086
  msgid "Choose one of saved locations or insert new one below."
4087
  msgstr ""
4088
 
 
 
 
 
4089
  #: app/features/locations.php:349 app/features/popup/event.php:147
4090
  msgid "eg. City Hall"
4091
  msgstr ""
languages/modern-events-calendar-lite-es_ES.mo CHANGED
Binary file
languages/modern-events-calendar-lite-es_ES.po CHANGED
@@ -4,8 +4,8 @@ msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - Modern Events Calendar Lite - Stable (latest "
6
  "release)\n"
7
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
8
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: es\n"
@@ -100,51 +100,6 @@ msgstr ""
100
  msgid "Select Shortcode"
101
  msgstr "Añadir nuevo Shortcode"
102
 
103
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
104
- #, fuzzy
105
- #| msgid "View Detail"
106
- msgid "View details"
107
- msgstr "Ver detalle"
108
-
109
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
110
- #, fuzzy, php-format
111
- #| msgid "More Information"
112
- msgid "More information about %s"
113
- msgstr "Más Información"
114
-
115
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
116
- #, fuzzy
117
- #| msgid "Checkout"
118
- msgid "Check for updates"
119
- msgstr "Checkout"
120
-
121
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
122
- #, php-format
123
- msgctxt "the plugin title"
124
- msgid "The %s plugin is up to date."
125
- msgstr ""
126
-
127
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
128
- #, php-format
129
- msgctxt "the plugin title"
130
- msgid "A new version of the %s plugin is available."
131
- msgstr ""
132
-
133
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
134
- #, php-format
135
- msgctxt "the plugin title"
136
- msgid "Could not determine if updates are available for %s."
137
- msgstr ""
138
-
139
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
140
- #, php-format
141
- msgid "Unknown update checker status \"%s\""
142
- msgstr ""
143
-
144
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
145
- msgid "There is no changelog available."
146
- msgstr ""
147
-
148
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
149
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
150
  msgid "Rejected"
@@ -866,8 +821,10 @@ msgid ""
866
  msgstr ""
867
 
868
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
869
  msgid "How to set buddypress"
870
- msgstr ""
871
 
872
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
873
  msgid ""
@@ -902,8 +859,10 @@ msgid ""
902
  msgstr ""
903
 
904
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
905
  msgid "How to set category"
906
- msgstr ""
907
 
908
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
909
  #: app/features/events.php:218 app/features/events.php:3875
@@ -941,8 +900,10 @@ msgstr ""
941
 
942
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
943
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
944
  msgid "How to set cost"
945
- msgstr ""
946
 
947
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
948
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1022,8 +983,10 @@ msgid ""
1022
  msgstr ""
1023
 
1024
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1025
  msgid "How to set label"
1026
- msgstr ""
1027
 
1028
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1029
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1114,8 +1077,10 @@ msgid ""
1114
  msgstr ""
1115
 
1116
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1117
  msgid "How to set read more"
1118
- msgstr ""
1119
 
1120
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1121
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1285,8 +1250,10 @@ msgid ""
1285
  msgstr ""
1286
 
1287
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1288
  msgid "How to set speaker"
1289
- msgstr ""
1290
 
1291
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1292
  msgid ""
@@ -1295,8 +1262,10 @@ msgid ""
1295
  msgstr ""
1296
 
1297
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1298
  msgid "How to set tags"
1299
- msgstr ""
1300
 
1301
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1302
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1338,8 +1307,10 @@ msgid ""
1338
  msgstr ""
1339
 
1340
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1341
  msgid "How to set weather"
1342
- msgstr ""
1343
 
1344
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1345
  msgid ""
@@ -3496,6 +3467,19 @@ msgstr "Por favor, ¡selecciona algunos eventos para importar!"
3496
  msgid "Please select at-least one label!"
3497
  msgstr "Por favor, ¡selecciona algunos eventos para importar!"
3498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3499
  #: app/features/fes.php:1391
3500
  #, fuzzy
3501
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4602,10 +4586,6 @@ msgstr "Insertar nuevo lugar"
4602
  msgid "Choose one of saved locations or insert new one below."
4603
  msgstr "Elegir un lugar guardado o insertar un nuevo a continuación."
4604
 
4605
- #: app/features/locations.php:348 app/features/popup/event.php:146
4606
- msgid "Location Name"
4607
- msgstr "Nombre del lugar"
4608
-
4609
  #: app/features/locations.php:349 app/features/popup/event.php:147
4610
  msgid "eg. City Hall"
4611
  msgstr "ej. Almería"
@@ -13044,6 +13024,21 @@ msgstr "Equipo de Webnus"
13044
  msgid "http://webnus.net"
13045
  msgstr "http://webnus.net"
13046
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13047
  #, fuzzy
13048
  #~| msgid "Notifications"
13049
  #~ msgid "%s notification(s) sent."
4
  msgstr ""
5
  "Project-Id-Version: Plugins - Modern Events Calendar Lite - Stable (latest "
6
  "release)\n"
7
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
8
+ "PO-Revision-Date: 2022-03-30 12:28+0430\n"
9
  "Last-Translator: \n"
10
  "Language-Team: \n"
11
  "Language: es\n"
100
  msgid "Select Shortcode"
101
  msgstr "Añadir nuevo Shortcode"
102
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
104
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
105
  msgid "Rejected"
821
  msgstr ""
822
 
823
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
824
+ #, fuzzy
825
+ #| msgid "Category Singular Label"
826
  msgid "How to set buddypress"
827
+ msgstr "Categoría Etiqueta Singular"
828
 
829
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
830
  msgid ""
859
  msgstr ""
860
 
861
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
862
+ #, fuzzy
863
+ #| msgid "Hide location"
864
  msgid "How to set category"
865
+ msgstr "Ocultar lugar"
866
 
867
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
868
  #: app/features/events.php:218 app/features/events.php:3875
900
 
901
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
902
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
903
+ #, fuzzy
904
+ #| msgid "Hide location"
905
  msgid "How to set cost"
906
+ msgstr "Ocultar lugar"
907
 
908
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
909
  #: app/features/events.php:432 app/features/events.php:1283
983
  msgstr ""
984
 
985
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
986
+ #, fuzzy
987
+ #| msgid "Hide location"
988
  msgid "How to set label"
989
+ msgstr "Ocultar lugar"
990
 
991
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
992
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1077
  msgstr ""
1078
 
1079
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1080
+ #, fuzzy
1081
+ #| msgid "Category Singular Label"
1082
  msgid "How to set read more"
1083
+ msgstr "Categoría Etiqueta Singular"
1084
 
1085
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1086
  #: app/features/events.php:1519 app/features/events.php:1532
1250
  msgstr ""
1251
 
1252
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1253
+ #, fuzzy
1254
+ #| msgid "Hide organizer"
1255
  msgid "How to set speaker"
1256
+ msgstr "Ocultar organizador"
1257
 
1258
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1259
  msgid ""
1262
  msgstr ""
1263
 
1264
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1265
+ #, fuzzy
1266
+ #| msgid "Hide location"
1267
  msgid "How to set tags"
1268
+ msgstr "Ocultar lugar"
1269
 
1270
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1271
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1307
  msgstr ""
1308
 
1309
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1310
+ #, fuzzy
1311
+ #| msgid "Hide organizer"
1312
  msgid "How to set weather"
1313
+ msgstr "Ocultar organizador"
1314
 
1315
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1316
  msgid ""
3467
  msgid "Please select at-least one label!"
3468
  msgstr "Por favor, ¡selecciona algunos eventos para importar!"
3469
 
3470
+ #: app/features/fes.php:641 app/features/locations.php:348
3471
+ #: app/features/locations.php:462 app/features/popup.php:309
3472
+ #: app/features/popup/event.php:146
3473
+ msgid "Location Name"
3474
+ msgstr "Nombre del lugar"
3475
+
3476
+ #: app/features/fes.php:704 app/features/organizers.php:393
3477
+ #: app/features/popup.php:368
3478
+ #, fuzzy
3479
+ #| msgid "Organizer Tel"
3480
+ msgid "Organizer Name"
3481
+ msgstr "Teléfono del Organizador"
3482
+
3483
  #: app/features/fes.php:1391
3484
  #, fuzzy
3485
  #| msgid "The event submitted. It will publish as soon as possible."
4586
  msgid "Choose one of saved locations or insert new one below."
4587
  msgstr "Elegir un lugar guardado o insertar un nuevo a continuación."
4588
 
 
 
 
 
4589
  #: app/features/locations.php:349 app/features/popup/event.php:147
4590
  msgid "eg. City Hall"
4591
  msgstr "ej. Almería"
13024
  msgid "http://webnus.net"
13025
  msgstr "http://webnus.net"
13026
 
13027
+ #, fuzzy
13028
+ #~| msgid "View Detail"
13029
+ #~ msgid "View details"
13030
+ #~ msgstr "Ver detalle"
13031
+
13032
+ #, fuzzy
13033
+ #~| msgid "More Information"
13034
+ #~ msgid "More information about %s"
13035
+ #~ msgstr "Más Información"
13036
+
13037
+ #, fuzzy
13038
+ #~| msgid "Checkout"
13039
+ #~ msgid "Check for updates"
13040
+ #~ msgstr "Checkout"
13041
+
13042
  #, fuzzy
13043
  #~| msgid "Notifications"
13044
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-fi_FI.mo CHANGED
Binary file
languages/modern-events-calendar-lite-fi_FI.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar Lite\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fi_FI\n"
@@ -94,46 +94,6 @@ msgstr ""
94
  msgid "Select Shortcode"
95
  msgstr ""
96
 
97
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
98
- msgid "View details"
99
- msgstr ""
100
-
101
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
102
- #, php-format
103
- msgid "More information about %s"
104
- msgstr ""
105
-
106
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
107
- msgid "Check for updates"
108
- msgstr ""
109
-
110
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
111
- #, php-format
112
- msgctxt "the plugin title"
113
- msgid "The %s plugin is up to date."
114
- msgstr ""
115
-
116
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
117
- #, php-format
118
- msgctxt "the plugin title"
119
- msgid "A new version of the %s plugin is available."
120
- msgstr ""
121
-
122
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
123
- #, php-format
124
- msgctxt "the plugin title"
125
- msgid "Could not determine if updates are available for %s."
126
- msgstr ""
127
-
128
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
129
- #, php-format
130
- msgid "Unknown update checker status \"%s\""
131
- msgstr ""
132
-
133
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
134
- msgid "There is no changelog available."
135
- msgstr ""
136
-
137
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
138
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
139
  msgid "Rejected"
@@ -3152,6 +3112,17 @@ msgstr ""
3152
  msgid "Please select at-least one label!"
3153
  msgstr ""
3154
 
 
 
 
 
 
 
 
 
 
 
 
3155
  #: app/features/fes.php:1391
3156
  msgid "Event submitted. It will publish as soon as possible."
3157
  msgstr ""
@@ -4124,10 +4095,6 @@ msgstr ""
4124
  msgid "Choose one of saved locations or insert new one below."
4125
  msgstr ""
4126
 
4127
- #: app/features/locations.php:348 app/features/popup/event.php:146
4128
- msgid "Location Name"
4129
- msgstr ""
4130
-
4131
  #: app/features/locations.php:349 app/features/popup/event.php:147
4132
  msgid "eg. City Hall"
4133
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar Lite\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:28+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: fi_FI\n"
94
  msgid "Select Shortcode"
95
  msgstr ""
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
98
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
99
  msgid "Rejected"
3112
  msgid "Please select at-least one label!"
3113
  msgstr ""
3114
 
3115
+ #: app/features/fes.php:641 app/features/locations.php:348
3116
+ #: app/features/locations.php:462 app/features/popup.php:309
3117
+ #: app/features/popup/event.php:146
3118
+ msgid "Location Name"
3119
+ msgstr ""
3120
+
3121
+ #: app/features/fes.php:704 app/features/organizers.php:393
3122
+ #: app/features/popup.php:368
3123
+ msgid "Organizer Name"
3124
+ msgstr ""
3125
+
3126
  #: app/features/fes.php:1391
3127
  msgid "Event submitted. It will publish as soon as possible."
3128
  msgstr ""
4095
  msgid "Choose one of saved locations or insert new one below."
4096
  msgstr ""
4097
 
 
 
 
 
4098
  #: app/features/locations.php:349 app/features/popup/event.php:147
4099
  msgid "eg. City Hall"
4100
  msgstr ""
languages/modern-events-calendar-lite-fr_FR.mo CHANGED
Binary file
languages/modern-events-calendar-lite-fr_FR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
@@ -103,51 +103,6 @@ msgstr ""
103
  msgid "Select Shortcode"
104
  msgstr "Ajouter un nouveau Shortcode"
105
 
106
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
107
- #, fuzzy
108
- #| msgid "View Details"
109
- msgid "View details"
110
- msgstr "En savoir plus"
111
-
112
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
113
- #, fuzzy, php-format
114
- #| msgid "More Information"
115
- msgid "More information about %s"
116
- msgstr "Plus d'Informations"
117
-
118
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
119
- #, fuzzy
120
- #| msgid "Checkout"
121
- msgid "Check for updates"
122
- msgstr "Commander"
123
-
124
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
125
- #, php-format
126
- msgctxt "the plugin title"
127
- msgid "The %s plugin is up to date."
128
- msgstr ""
129
-
130
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
131
- #, php-format
132
- msgctxt "the plugin title"
133
- msgid "A new version of the %s plugin is available."
134
- msgstr ""
135
-
136
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
137
- #, php-format
138
- msgctxt "the plugin title"
139
- msgid "Could not determine if updates are available for %s."
140
- msgstr ""
141
-
142
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
143
- #, php-format
144
- msgid "Unknown update checker status \"%s\""
145
- msgstr ""
146
-
147
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
148
- msgid "There is no changelog available."
149
- msgstr ""
150
-
151
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
152
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
153
  msgid "Rejected"
@@ -868,8 +823,10 @@ msgid ""
868
  msgstr ""
869
 
870
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
871
  msgid "How to set buddypress"
872
- msgstr ""
873
 
874
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
875
  msgid ""
@@ -904,8 +861,10 @@ msgid ""
904
  msgstr ""
905
 
906
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
907
  msgid "How to set category"
908
- msgstr ""
909
 
910
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
911
  #: app/features/events.php:218 app/features/events.php:3875
@@ -943,8 +902,10 @@ msgstr ""
943
 
944
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
945
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
946
  msgid "How to set cost"
947
- msgstr ""
948
 
949
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
950
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1024,8 +985,10 @@ msgid ""
1024
  msgstr ""
1025
 
1026
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1027
  msgid "How to set label"
1028
- msgstr ""
1029
 
1030
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1031
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1116,8 +1079,10 @@ msgid ""
1116
  msgstr ""
1117
 
1118
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1119
  msgid "How to set read more"
1120
- msgstr ""
1121
 
1122
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1123
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1219,8 +1184,10 @@ msgid ""
1219
  msgstr ""
1220
 
1221
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1222
  msgid "How to set QR code module"
1223
- msgstr ""
1224
 
1225
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1226
  msgid ""
@@ -1285,8 +1252,10 @@ msgid ""
1285
  msgstr ""
1286
 
1287
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1288
  msgid "How to set speaker"
1289
- msgstr ""
1290
 
1291
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1292
  msgid ""
@@ -1295,8 +1264,10 @@ msgid ""
1295
  msgstr ""
1296
 
1297
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1298
  msgid "How to set tags"
1299
- msgstr ""
1300
 
1301
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1302
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1338,8 +1309,10 @@ msgid ""
1338
  msgstr ""
1339
 
1340
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1341
  msgid "How to set weather"
1342
- msgstr ""
1343
 
1344
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1345
  msgid ""
@@ -3382,6 +3355,19 @@ msgstr "Merci de sélectionner les billets !"
3382
  msgid "Please select at-least one label!"
3383
  msgstr "Merci de sélectionner les billets !"
3384
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3385
  #: app/features/fes.php:1391
3386
  #, fuzzy
3387
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4479,10 +4465,6 @@ msgstr "Ajouter un nouveau lieu"
4479
  msgid "Choose one of saved locations or insert new one below."
4480
  msgstr "Choisir un lieu dans la liste ou ajouter un nouveau lieu."
4481
 
4482
- #: app/features/locations.php:348 app/features/popup/event.php:146
4483
- msgid "Location Name"
4484
- msgstr "Nom du Lieu"
4485
-
4486
  #: app/features/locations.php:349 app/features/popup/event.php:147
4487
  msgid "eg. City Hall"
4488
  msgstr "Ex : La Source"
@@ -12766,6 +12748,21 @@ msgstr "e.g. Webnus"
12766
  msgid "http://webnus.net"
12767
  msgstr ""
12768
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12769
  #, fuzzy
12770
  #~| msgid "Notifications"
12771
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:28+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: fr_FR\n"
103
  msgid "Select Shortcode"
104
  msgstr "Ajouter un nouveau Shortcode"
105
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
107
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
108
  msgid "Rejected"
823
  msgstr ""
824
 
825
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
826
+ #, fuzzy
827
+ #| msgid "Category Singular Label"
828
  msgid "How to set buddypress"
829
+ msgstr "Catégorie au singulier"
830
 
831
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
832
  msgid ""
861
  msgstr ""
862
 
863
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
864
+ #, fuzzy
865
+ #| msgid "Hide location"
866
  msgid "How to set category"
867
+ msgstr "Cacher le lieu"
868
 
869
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
870
  #: app/features/events.php:218 app/features/events.php:3875
902
 
903
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
904
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
905
+ #, fuzzy
906
+ #| msgid "Hide location"
907
  msgid "How to set cost"
908
+ msgstr "Cacher le lieu"
909
 
910
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
911
  #: app/features/events.php:432 app/features/events.php:1283
985
  msgstr ""
986
 
987
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
988
+ #, fuzzy
989
+ #| msgid "Hide location"
990
  msgid "How to set label"
991
+ msgstr "Cacher le lieu"
992
 
993
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
994
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1079
  msgstr ""
1080
 
1081
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1082
+ #, fuzzy
1083
+ #| msgid "Category Singular Label"
1084
  msgid "How to set read more"
1085
+ msgstr "Catégorie au singulier"
1086
 
1087
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1088
  #: app/features/events.php:1519 app/features/events.php:1532
1184
  msgstr ""
1185
 
1186
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1187
+ #, fuzzy
1188
+ #| msgid "Show social network module"
1189
  msgid "How to set QR code module"
1190
+ msgstr "Afficher le Module de Réseau Social"
1191
 
1192
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1193
  msgid ""
1252
  msgstr ""
1253
 
1254
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1255
+ #, fuzzy
1256
+ #| msgid "Hide organizer"
1257
  msgid "How to set speaker"
1258
+ msgstr "Ne pas afficher l'organisateur"
1259
 
1260
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1261
  msgid ""
1264
  msgstr ""
1265
 
1266
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1267
+ #, fuzzy
1268
+ #| msgid "Hide location"
1269
  msgid "How to set tags"
1270
+ msgstr "Cacher le lieu"
1271
 
1272
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1273
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1309
  msgstr ""
1310
 
1311
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1312
+ #, fuzzy
1313
+ #| msgid "Hide organizer"
1314
  msgid "How to set weather"
1315
+ msgstr "Ne pas afficher l'organisateur"
1316
 
1317
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1318
  msgid ""
3355
  msgid "Please select at-least one label!"
3356
  msgstr "Merci de sélectionner les billets !"
3357
 
3358
+ #: app/features/fes.php:641 app/features/locations.php:348
3359
+ #: app/features/locations.php:462 app/features/popup.php:309
3360
+ #: app/features/popup/event.php:146
3361
+ msgid "Location Name"
3362
+ msgstr "Nom du Lieu"
3363
+
3364
+ #: app/features/fes.php:704 app/features/organizers.php:393
3365
+ #: app/features/popup.php:368
3366
+ #, fuzzy
3367
+ #| msgid "Organizer Payment"
3368
+ msgid "Organizer Name"
3369
+ msgstr "Paiement de l’organisateur"
3370
+
3371
  #: app/features/fes.php:1391
3372
  #, fuzzy
3373
  #| msgid "The event submitted. It will publish as soon as possible."
4465
  msgid "Choose one of saved locations or insert new one below."
4466
  msgstr "Choisir un lieu dans la liste ou ajouter un nouveau lieu."
4467
 
 
 
 
 
4468
  #: app/features/locations.php:349 app/features/popup/event.php:147
4469
  msgid "eg. City Hall"
4470
  msgstr "Ex : La Source"
12748
  msgid "http://webnus.net"
12749
  msgstr ""
12750
 
12751
+ #, fuzzy
12752
+ #~| msgid "View Details"
12753
+ #~ msgid "View details"
12754
+ #~ msgstr "En savoir plus"
12755
+
12756
+ #, fuzzy
12757
+ #~| msgid "More Information"
12758
+ #~ msgid "More information about %s"
12759
+ #~ msgstr "Plus d'Informations"
12760
+
12761
+ #, fuzzy
12762
+ #~| msgid "Checkout"
12763
+ #~ msgid "Check for updates"
12764
+ #~ msgstr "Commander"
12765
+
12766
  #, fuzzy
12767
  #~| msgid "Notifications"
12768
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-hu_HU.mo CHANGED
Binary file
languages/modern-events-calendar-lite-hu_HU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: hu_HU\n"
@@ -97,48 +97,6 @@ msgstr ""
97
  msgid "Select Shortcode"
98
  msgstr "Facebook események"
99
 
100
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
101
- msgid "View details"
102
- msgstr ""
103
-
104
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
105
- #, php-format
106
- msgid "More information about %s"
107
- msgstr ""
108
-
109
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
110
- #, fuzzy
111
- #| msgid "Checkout"
112
- msgid "Check for updates"
113
- msgstr "Ellenőrzés"
114
-
115
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
116
- #, php-format
117
- msgctxt "the plugin title"
118
- msgid "The %s plugin is up to date."
119
- msgstr ""
120
-
121
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
122
- #, php-format
123
- msgctxt "the plugin title"
124
- msgid "A new version of the %s plugin is available."
125
- msgstr ""
126
-
127
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
128
- #, php-format
129
- msgctxt "the plugin title"
130
- msgid "Could not determine if updates are available for %s."
131
- msgstr ""
132
-
133
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
134
- #, php-format
135
- msgid "Unknown update checker status \"%s\""
136
- msgstr ""
137
-
138
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
139
- msgid "There is no changelog available."
140
- msgstr ""
141
-
142
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
143
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
144
  msgid "Rejected"
@@ -854,8 +812,10 @@ msgid ""
854
  msgstr ""
855
 
856
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
857
  msgid "How to set buddypress"
858
- msgstr ""
859
 
860
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
861
  msgid ""
@@ -865,8 +825,10 @@ msgid ""
865
  msgstr ""
866
 
867
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:56
 
 
868
  msgid "How to set breadcrumbs"
869
- msgstr ""
870
 
871
  #: app/core/src/SingleBuilder/Widgets/EventCancellationReason/EventCancellationReason.php:54
872
  msgid ""
@@ -888,8 +850,10 @@ msgid ""
888
  msgstr ""
889
 
890
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
891
  msgid "How to set category"
892
- msgstr ""
893
 
894
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
895
  #: app/features/events.php:218 app/features/events.php:3875
@@ -927,8 +891,10 @@ msgstr ""
927
 
928
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
929
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
930
  msgid "How to set cost"
931
- msgstr ""
932
 
933
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
934
  #: app/features/events.php:432 app/features/events.php:1283
@@ -962,8 +928,10 @@ msgid ""
962
  msgstr ""
963
 
964
  #: app/core/src/SingleBuilder/Widgets/EventExport/EventExport.php:37
 
 
965
  msgid "How to set export module"
966
- msgstr ""
967
 
968
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:38
969
  msgid ""
@@ -974,8 +942,10 @@ msgstr ""
974
 
975
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:39
976
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:45
 
 
977
  msgid "How to set Google Map"
978
- msgstr ""
979
 
980
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:44
981
  msgid ""
@@ -1004,8 +974,10 @@ msgid ""
1004
  msgstr ""
1005
 
1006
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1007
  msgid "How to set label"
1008
- msgstr ""
1009
 
1010
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1011
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1026,8 +998,10 @@ msgid ""
1026
  msgstr ""
1027
 
1028
  #: app/core/src/SingleBuilder/Widgets/EventLocalTime/EventLocalTime.php:37
 
 
1029
  msgid "How to set LocalTime module"
1030
- msgstr ""
1031
 
1032
  #: app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php:38
1033
  msgid ""
@@ -1094,8 +1068,10 @@ msgid ""
1094
  msgstr ""
1095
 
1096
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1097
  msgid "How to set read more"
1098
- msgstr ""
1099
 
1100
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1101
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1116,8 +1092,10 @@ msgid ""
1116
  msgstr ""
1117
 
1118
  #: app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php:37
 
 
1119
  msgid "How to set next events module"
1120
- msgstr ""
1121
 
1122
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:36
1123
  #: app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php:36
@@ -1128,8 +1106,10 @@ msgid ""
1128
  msgstr ""
1129
 
1130
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:37
 
 
1131
  msgid "How to set Next/Previous Events"
1132
- msgstr ""
1133
 
1134
  #: app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php:39
1135
  msgid ""
@@ -1193,8 +1173,10 @@ msgid ""
1193
  msgstr ""
1194
 
1195
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1196
  msgid "How to set QR code module"
1197
- msgstr ""
1198
 
1199
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1200
  msgid ""
@@ -1204,8 +1186,10 @@ msgid ""
1204
  msgstr ""
1205
 
1206
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
 
 
1207
  msgid "How to set register button"
1208
- msgstr ""
1209
 
1210
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1211
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
@@ -1240,8 +1224,10 @@ msgid ""
1240
  msgstr ""
1241
 
1242
  #: app/core/src/SingleBuilder/Widgets/EventSocialShare/EventSocialShare.php:38
 
 
1243
  msgid "How to set social networks"
1244
- msgstr ""
1245
 
1246
  #: app/core/src/SingleBuilder/Widgets/EventSocialShare/EventSocialShare.php:51
1247
  #: app/modules/links/details.php:17 app/skins/single.php:996
@@ -1255,8 +1241,10 @@ msgid ""
1255
  msgstr ""
1256
 
1257
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1258
  msgid "How to set speaker"
1259
- msgstr ""
1260
 
1261
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1262
  msgid ""
@@ -1265,8 +1253,10 @@ msgid ""
1265
  msgstr ""
1266
 
1267
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1268
  msgid "How to set tags"
1269
- msgstr ""
1270
 
1271
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1272
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1306,8 +1296,10 @@ msgid ""
1306
  msgstr ""
1307
 
1308
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1309
  msgid "How to set weather"
1310
- msgstr ""
1311
 
1312
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1313
  msgid ""
@@ -3265,6 +3257,19 @@ msgstr "Kérjük, válasszon néhány jegyet!"
3265
  msgid "Please select at-least one label!"
3266
  msgstr "Kérjük, válasszon néhány jegyet!"
3267
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3268
  #: app/features/fes.php:1391
3269
  msgid "Event submitted. It will publish as soon as possible."
3270
  msgstr ""
@@ -4258,10 +4263,6 @@ msgstr ""
4258
  msgid "Choose one of saved locations or insert new one below."
4259
  msgstr ""
4260
 
4261
- #: app/features/locations.php:348 app/features/popup/event.php:146
4262
- msgid "Location Name"
4263
- msgstr ""
4264
-
4265
  #: app/features/locations.php:349 app/features/popup/event.php:147
4266
  msgid "eg. City Hall"
4267
  msgstr ""
@@ -11884,6 +11885,11 @@ msgstr ""
11884
  msgid "http://webnus.net"
11885
  msgstr ""
11886
 
 
 
 
 
 
11887
  #, fuzzy
11888
  #~| msgid "Event at this location"
11889
  #~ msgid "Event other info link"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:28+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: hu_HU\n"
97
  msgid "Select Shortcode"
98
  msgstr "Facebook események"
99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
101
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
102
  msgid "Rejected"
812
  msgstr ""
813
 
814
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
815
+ #, fuzzy
816
+ #| msgid "Organizer"
817
  msgid "How to set buddypress"
818
+ msgstr "Szervező"
819
 
820
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
821
  msgid ""
825
  msgstr ""
826
 
827
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:56
828
+ #, fuzzy
829
+ #| msgid "Facebook Events"
830
  msgid "How to set breadcrumbs"
831
+ msgstr "Facebook események"
832
 
833
  #: app/core/src/SingleBuilder/Widgets/EventCancellationReason/EventCancellationReason.php:54
834
  msgid ""
850
  msgstr ""
851
 
852
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
853
+ #, fuzzy
854
+ #| msgid "Event at this location"
855
  msgid "How to set category"
856
+ msgstr "Esemény ezen a helyszínen"
857
 
858
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
859
  #: app/features/events.php:218 app/features/events.php:3875
891
 
892
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
893
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
894
+ #, fuzzy
895
+ #| msgid "Event at this location"
896
  msgid "How to set cost"
897
+ msgstr "Esemény ezen a helyszínen"
898
 
899
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
900
  #: app/features/events.php:432 app/features/events.php:1283
928
  msgstr ""
929
 
930
  #: app/core/src/SingleBuilder/Widgets/EventExport/EventExport.php:37
931
+ #, fuzzy
932
+ #| msgid "Bookings"
933
  msgid "How to set export module"
934
+ msgstr "Foglalások"
935
 
936
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:38
937
  msgid ""
942
 
943
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:39
944
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:45
945
+ #, fuzzy
946
+ #| msgid "Bookings"
947
  msgid "How to set Google Map"
948
+ msgstr "Foglalások"
949
 
950
  #: app/core/src/SingleBuilder/Widgets/EventGoogleMap/EventGoogleMap.php:44
951
  msgid ""
974
  msgstr ""
975
 
976
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
977
+ #, fuzzy
978
+ #| msgid "Event at this location"
979
  msgid "How to set label"
980
+ msgstr "Esemény ezen a helyszínen"
981
 
982
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
983
  #: app/features/events.php:4197 app/features/fes/form.php:1000
998
  msgstr ""
999
 
1000
  #: app/core/src/SingleBuilder/Widgets/EventLocalTime/EventLocalTime.php:37
1001
+ #, fuzzy
1002
+ #| msgid "Bookings"
1003
  msgid "How to set LocalTime module"
1004
+ msgstr "Foglalások"
1005
 
1006
  #: app/core/src/SingleBuilder/Widgets/EventLocations/EventLocations.php:38
1007
  msgid ""
1068
  msgstr ""
1069
 
1070
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1071
+ #, fuzzy
1072
+ #| msgid "Facebook Events"
1073
  msgid "How to set read more"
1074
+ msgstr "Facebook események"
1075
 
1076
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1077
  #: app/features/events.php:1519 app/features/events.php:1532
1092
  msgstr ""
1093
 
1094
  #: app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php:37
1095
+ #, fuzzy
1096
+ #| msgid "Facebook Events"
1097
  msgid "How to set next events module"
1098
+ msgstr "Facebook események"
1099
 
1100
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:36
1101
  #: app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php:36
1106
  msgstr ""
1107
 
1108
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:37
1109
+ #, fuzzy
1110
+ #| msgid "Facebook Events"
1111
  msgid "How to set Next/Previous Events"
1112
+ msgstr "Facebook események"
1113
 
1114
  #: app/core/src/SingleBuilder/Widgets/EventOrganizers/EventOrganizers.php:39
1115
  msgid ""
1173
  msgstr ""
1174
 
1175
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1176
+ #, fuzzy
1177
+ #| msgid "Bookings"
1178
  msgid "How to set QR code module"
1179
+ msgstr "Foglalások"
1180
 
1181
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1182
  msgid ""
1186
  msgstr ""
1187
 
1188
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
1189
+ #, fuzzy
1190
+ #| msgid "Organizer"
1191
  msgid "How to set register button"
1192
+ msgstr "Szervező"
1193
 
1194
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1195
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
1224
  msgstr ""
1225
 
1226
  #: app/core/src/SingleBuilder/Widgets/EventSocialShare/EventSocialShare.php:38
1227
+ #, fuzzy
1228
+ #| msgid "Event at this location"
1229
  msgid "How to set social networks"
1230
+ msgstr "Esemény ezen a helyszínen"
1231
 
1232
  #: app/core/src/SingleBuilder/Widgets/EventSocialShare/EventSocialShare.php:51
1233
  #: app/modules/links/details.php:17 app/skins/single.php:996
1241
  msgstr ""
1242
 
1243
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1244
+ #, fuzzy
1245
+ #| msgid "Organizer"
1246
  msgid "How to set speaker"
1247
+ msgstr "Szervező"
1248
 
1249
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1250
  msgid ""
1253
  msgstr ""
1254
 
1255
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1256
+ #, fuzzy
1257
+ #| msgid "Event at this location"
1258
  msgid "How to set tags"
1259
+ msgstr "Esemény ezen a helyszínen"
1260
 
1261
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1262
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1296
  msgstr ""
1297
 
1298
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1299
+ #, fuzzy
1300
+ #| msgid "Organizer"
1301
  msgid "How to set weather"
1302
+ msgstr "Szervező"
1303
 
1304
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1305
  msgid ""
3257
  msgid "Please select at-least one label!"
3258
  msgstr "Kérjük, válasszon néhány jegyet!"
3259
 
3260
+ #: app/features/fes.php:641 app/features/locations.php:348
3261
+ #: app/features/locations.php:462 app/features/popup.php:309
3262
+ #: app/features/popup/event.php:146
3263
+ msgid "Location Name"
3264
+ msgstr ""
3265
+
3266
+ #: app/features/fes.php:704 app/features/organizers.php:393
3267
+ #: app/features/popup.php:368
3268
+ #, fuzzy
3269
+ #| msgid "Organizer"
3270
+ msgid "Organizer Name"
3271
+ msgstr "Szervező"
3272
+
3273
  #: app/features/fes.php:1391
3274
  msgid "Event submitted. It will publish as soon as possible."
3275
  msgstr ""
4263
  msgid "Choose one of saved locations or insert new one below."
4264
  msgstr ""
4265
 
 
 
 
 
4266
  #: app/features/locations.php:349 app/features/popup/event.php:147
4267
  msgid "eg. City Hall"
4268
  msgstr ""
11885
  msgid "http://webnus.net"
11886
  msgstr ""
11887
 
11888
+ #, fuzzy
11889
+ #~| msgid "Checkout"
11890
+ #~ msgid "Check for updates"
11891
+ #~ msgstr "Ellenőrzés"
11892
+
11893
  #, fuzzy
11894
  #~| msgid "Event at this location"
11895
  #~ msgid "Event other info link"
languages/modern-events-calendar-lite-it_IT.mo CHANGED
Binary file
languages/modern-events-calendar-lite-it_IT.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: it_IT\n"
@@ -111,51 +111,6 @@ msgstr ""
111
  msgid "Select Shortcode"
112
  msgstr "Aggiungi un nuovo Shortcode"
113
 
114
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
115
- #, fuzzy
116
- #| msgid "View Detail"
117
- msgid "View details"
118
- msgstr "Visualizza dettaglio"
119
-
120
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
121
- #, fuzzy, php-format
122
- #| msgid "More Information"
123
- msgid "More information about %s"
124
- msgstr "Maggiori informazioni"
125
-
126
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
127
- #, fuzzy
128
- #| msgid "Checkout"
129
- msgid "Check for updates"
130
- msgstr "Checkout"
131
-
132
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
133
- #, php-format
134
- msgctxt "the plugin title"
135
- msgid "The %s plugin is up to date."
136
- msgstr ""
137
-
138
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
139
- #, php-format
140
- msgctxt "the plugin title"
141
- msgid "A new version of the %s plugin is available."
142
- msgstr ""
143
-
144
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
145
- #, php-format
146
- msgctxt "the plugin title"
147
- msgid "Could not determine if updates are available for %s."
148
- msgstr ""
149
-
150
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
151
- #, php-format
152
- msgid "Unknown update checker status \"%s\""
153
- msgstr ""
154
-
155
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
156
- msgid "There is no changelog available."
157
- msgstr ""
158
-
159
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
160
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
161
  msgid "Rejected"
@@ -877,8 +832,10 @@ msgid ""
877
  msgstr ""
878
 
879
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
880
  msgid "How to set buddypress"
881
- msgstr ""
882
 
883
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
884
  msgid ""
@@ -913,8 +870,10 @@ msgid ""
913
  msgstr ""
914
 
915
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
916
  msgid "How to set category"
917
- msgstr ""
918
 
919
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
920
  #: app/features/events.php:218 app/features/events.php:3875
@@ -952,8 +911,10 @@ msgstr ""
952
 
953
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
954
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
955
  msgid "How to set cost"
956
- msgstr ""
957
 
958
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
959
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1033,8 +994,10 @@ msgid ""
1033
  msgstr ""
1034
 
1035
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1036
  msgid "How to set label"
1037
- msgstr ""
1038
 
1039
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1040
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1125,8 +1088,10 @@ msgid ""
1125
  msgstr ""
1126
 
1127
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1128
  msgid "How to set read more"
1129
- msgstr ""
1130
 
1131
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1132
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1228,8 +1193,10 @@ msgid ""
1228
  msgstr ""
1229
 
1230
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1231
  msgid "How to set QR code module"
1232
- msgstr ""
1233
 
1234
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1235
  msgid ""
@@ -1239,8 +1206,10 @@ msgid ""
1239
  msgstr ""
1240
 
1241
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
 
 
1242
  msgid "How to set register button"
1243
- msgstr ""
1244
 
1245
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1246
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
@@ -1292,8 +1261,10 @@ msgid ""
1292
  msgstr ""
1293
 
1294
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1295
  msgid "How to set speaker"
1296
- msgstr ""
1297
 
1298
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1299
  msgid ""
@@ -1302,8 +1273,10 @@ msgid ""
1302
  msgstr ""
1303
 
1304
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1305
  msgid "How to set tags"
1306
- msgstr ""
1307
 
1308
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1309
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1345,8 +1318,10 @@ msgid ""
1345
  msgstr ""
1346
 
1347
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1348
  msgid "How to set weather"
1349
- msgstr ""
1350
 
1351
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1352
  msgid ""
@@ -3433,6 +3408,19 @@ msgstr "Si prega di selezionare ticket!"
3433
  msgid "Please select at-least one label!"
3434
  msgstr "Si prega di selezionare ticket!"
3435
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3436
  #: app/features/fes.php:1391
3437
  #, fuzzy
3438
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4555,10 +4543,6 @@ msgstr "Inserisci un nuovo luogo"
4555
  msgid "Choose one of saved locations or insert new one below."
4556
  msgstr "Scegli uno dei luoghi salvati o inserisci uno nuovo."
4557
 
4558
- #: app/features/locations.php:348 app/features/popup/event.php:146
4559
- msgid "Location Name"
4560
- msgstr "Nome del luogo"
4561
-
4562
  #: app/features/locations.php:349 app/features/popup/event.php:147
4563
  msgid "eg. City Hall"
4564
  msgstr "es. Città"
@@ -12984,6 +12968,21 @@ msgstr "Team Webnus"
12984
  msgid "http://webnus.net"
12985
  msgstr ""
12986
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12987
  #, fuzzy
12988
  #~| msgid "Notifications"
12989
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:28+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: it_IT\n"
111
  msgid "Select Shortcode"
112
  msgstr "Aggiungi un nuovo Shortcode"
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
115
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
116
  msgid "Rejected"
832
  msgstr ""
833
 
834
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
835
+ #, fuzzy
836
+ #| msgid "Categories"
837
  msgid "How to set buddypress"
838
+ msgstr "Categorie"
839
 
840
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
841
  msgid ""
870
  msgstr ""
871
 
872
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
873
+ #, fuzzy
874
+ #| msgid "Hide location"
875
  msgid "How to set category"
876
+ msgstr "Nascondi luogo"
877
 
878
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
879
  #: app/features/events.php:218 app/features/events.php:3875
911
 
912
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
913
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
914
+ #, fuzzy
915
+ #| msgid "Hide location"
916
  msgid "How to set cost"
917
+ msgstr "Nascondi luogo"
918
 
919
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
920
  #: app/features/events.php:432 app/features/events.php:1283
994
  msgstr ""
995
 
996
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
997
+ #, fuzzy
998
+ #| msgid "Hide location"
999
  msgid "How to set label"
1000
+ msgstr "Nascondi luogo"
1001
 
1002
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1003
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1088
  msgstr ""
1089
 
1090
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1091
+ #, fuzzy
1092
+ #| msgid "Categories"
1093
  msgid "How to set read more"
1094
+ msgstr "Categorie"
1095
 
1096
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1097
  #: app/features/events.php:1519 app/features/events.php:1532
1193
  msgstr ""
1194
 
1195
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1196
+ #, fuzzy
1197
+ #| msgid "Show social network module"
1198
  msgid "How to set QR code module"
1199
+ msgstr "Mostra social network"
1200
 
1201
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1202
  msgid ""
1206
  msgstr ""
1207
 
1208
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
1209
+ #, fuzzy
1210
+ #| msgid "Hide organizer"
1211
  msgid "How to set register button"
1212
+ msgstr "Nascondi organizzatore"
1213
 
1214
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1215
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
1261
  msgstr ""
1262
 
1263
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1264
+ #, fuzzy
1265
+ #| msgid "Hide organizer"
1266
  msgid "How to set speaker"
1267
+ msgstr "Nascondi organizzatore"
1268
 
1269
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1270
  msgid ""
1273
  msgstr ""
1274
 
1275
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1276
+ #, fuzzy
1277
+ #| msgid "Hide location"
1278
  msgid "How to set tags"
1279
+ msgstr "Nascondi luogo"
1280
 
1281
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1282
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1318
  msgstr ""
1319
 
1320
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1321
+ #, fuzzy
1322
+ #| msgid "Hide organizer"
1323
  msgid "How to set weather"
1324
+ msgstr "Nascondi organizzatore"
1325
 
1326
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1327
  msgid ""
3408
  msgid "Please select at-least one label!"
3409
  msgstr "Si prega di selezionare ticket!"
3410
 
3411
+ #: app/features/fes.php:641 app/features/locations.php:348
3412
+ #: app/features/locations.php:462 app/features/popup.php:309
3413
+ #: app/features/popup/event.php:146
3414
+ msgid "Location Name"
3415
+ msgstr "Nome del luogo"
3416
+
3417
+ #: app/features/fes.php:704 app/features/organizers.php:393
3418
+ #: app/features/popup.php:368
3419
+ #, fuzzy
3420
+ #| msgid "Organizer Name"
3421
+ msgid "Organizer Name"
3422
+ msgstr "Nome Organizzatore"
3423
+
3424
  #: app/features/fes.php:1391
3425
  #, fuzzy
3426
  #| msgid "The event submitted. It will publish as soon as possible."
4543
  msgid "Choose one of saved locations or insert new one below."
4544
  msgstr "Scegli uno dei luoghi salvati o inserisci uno nuovo."
4545
 
 
 
 
 
4546
  #: app/features/locations.php:349 app/features/popup/event.php:147
4547
  msgid "eg. City Hall"
4548
  msgstr "es. Città"
12968
  msgid "http://webnus.net"
12969
  msgstr ""
12970
 
12971
+ #, fuzzy
12972
+ #~| msgid "View Detail"
12973
+ #~ msgid "View details"
12974
+ #~ msgstr "Visualizza dettaglio"
12975
+
12976
+ #, fuzzy
12977
+ #~| msgid "More Information"
12978
+ #~ msgid "More information about %s"
12979
+ #~ msgstr "Maggiori informazioni"
12980
+
12981
+ #, fuzzy
12982
+ #~| msgid "Checkout"
12983
+ #~ msgid "Check for updates"
12984
+ #~ msgstr "Checkout"
12985
+
12986
  #, fuzzy
12987
  #~| msgid "Notifications"
12988
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-nb_NO.mo CHANGED
Binary file
languages/modern-events-calendar-lite-nb_NO.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:56+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: nb_NO\n"
@@ -105,51 +105,6 @@ msgstr ""
105
  msgid "Select Shortcode"
106
  msgstr "Legg til ny Kortkode"
107
 
108
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
109
- #, fuzzy
110
- #| msgid "View Detail"
111
- msgid "View details"
112
- msgstr "Se detaljer"
113
-
114
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
115
- #, fuzzy, php-format
116
- #| msgid "More Information"
117
- msgid "More information about %s"
118
- msgstr "Mer informasjon"
119
-
120
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
121
- #, fuzzy
122
- #| msgid "Checkout"
123
- msgid "Check for updates"
124
- msgstr "Til kassen"
125
-
126
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
127
- #, php-format
128
- msgctxt "the plugin title"
129
- msgid "The %s plugin is up to date."
130
- msgstr ""
131
-
132
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
133
- #, php-format
134
- msgctxt "the plugin title"
135
- msgid "A new version of the %s plugin is available."
136
- msgstr ""
137
-
138
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
139
- #, php-format
140
- msgctxt "the plugin title"
141
- msgid "Could not determine if updates are available for %s."
142
- msgstr ""
143
-
144
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
145
- #, php-format
146
- msgid "Unknown update checker status \"%s\""
147
- msgstr ""
148
-
149
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
150
- msgid "There is no changelog available."
151
- msgstr ""
152
-
153
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
154
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
155
  msgid "Rejected"
@@ -872,8 +827,10 @@ msgid ""
872
  msgstr ""
873
 
874
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
875
  msgid "How to set buddypress"
876
- msgstr ""
877
 
878
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
879
  msgid ""
@@ -908,8 +865,10 @@ msgid ""
908
  msgstr ""
909
 
910
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
911
  msgid "How to set category"
912
- msgstr ""
913
 
914
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
915
  #: app/features/events.php:218 app/features/events.php:3875
@@ -947,8 +906,10 @@ msgstr ""
947
 
948
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
949
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
950
  msgid "How to set cost"
951
- msgstr ""
952
 
953
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
954
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1028,8 +989,10 @@ msgid ""
1028
  msgstr ""
1029
 
1030
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1031
  msgid "How to set label"
1032
- msgstr ""
1033
 
1034
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1035
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1120,8 +1083,10 @@ msgid ""
1120
  msgstr ""
1121
 
1122
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1123
  msgid "How to set read more"
1124
- msgstr ""
1125
 
1126
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1127
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1291,8 +1256,10 @@ msgid ""
1291
  msgstr ""
1292
 
1293
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1294
  msgid "How to set speaker"
1295
- msgstr ""
1296
 
1297
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1298
  msgid ""
@@ -1301,8 +1268,10 @@ msgid ""
1301
  msgstr ""
1302
 
1303
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1304
  msgid "How to set tags"
1305
- msgstr ""
1306
 
1307
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1308
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1344,8 +1313,10 @@ msgid ""
1344
  msgstr ""
1345
 
1346
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1347
  msgid "How to set weather"
1348
- msgstr ""
1349
 
1350
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1351
  msgid ""
@@ -3497,6 +3468,19 @@ msgstr "Vennligst velg noen billetter!"
3497
  msgid "Please select at-least one label!"
3498
  msgstr "Vennligst velg noen billetter!"
3499
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3500
  #: app/features/fes.php:1391
3501
  #, fuzzy
3502
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4605,10 +4589,6 @@ msgstr "Sett inn nytt sted"
4605
  msgid "Choose one of saved locations or insert new one below."
4606
  msgstr "Velg en av de lagrede stedene eller sett inn en ny en under."
4607
 
4608
- #: app/features/locations.php:348 app/features/popup/event.php:146
4609
- msgid "Location Name"
4610
- msgstr "Skriv inn stedsnavn..."
4611
-
4612
  #: app/features/locations.php:349 app/features/popup/event.php:147
4613
  msgid "eg. City Hall"
4614
  msgstr "f.eks. rådhuset"
@@ -13109,6 +13089,21 @@ msgstr "Webnus Team"
13109
  msgid "http://webnus.net"
13110
  msgstr "http://webnus.net"
13111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13112
  #, fuzzy
13113
  #~| msgid "%s reminders sent."
13114
  #~ msgid "%s emails(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:28+0430\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: nb_NO\n"
105
  msgid "Select Shortcode"
106
  msgstr "Legg til ny Kortkode"
107
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
109
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
110
  msgid "Rejected"
827
  msgstr ""
828
 
829
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
830
+ #, fuzzy
831
+ #| msgid "Category Singular Label"
832
  msgid "How to set buddypress"
833
+ msgstr "Kategori Singel Tittel"
834
 
835
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
836
  msgid ""
865
  msgstr ""
866
 
867
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
868
+ #, fuzzy
869
+ #| msgid "Hide location"
870
  msgid "How to set category"
871
+ msgstr "Skjul Plassering"
872
 
873
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
874
  #: app/features/events.php:218 app/features/events.php:3875
906
 
907
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
908
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
909
+ #, fuzzy
910
+ #| msgid "Hide location"
911
  msgid "How to set cost"
912
+ msgstr "Skjul Plassering"
913
 
914
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
915
  #: app/features/events.php:432 app/features/events.php:1283
989
  msgstr ""
990
 
991
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
992
+ #, fuzzy
993
+ #| msgid "Hide location"
994
  msgid "How to set label"
995
+ msgstr "Skjul Plassering"
996
 
997
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
998
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1083
  msgstr ""
1084
 
1085
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1086
+ #, fuzzy
1087
+ #| msgid "Category Singular Label"
1088
  msgid "How to set read more"
1089
+ msgstr "Kategori Singel Tittel"
1090
 
1091
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1092
  #: app/features/events.php:1519 app/features/events.php:1532
1256
  msgstr ""
1257
 
1258
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1259
+ #, fuzzy
1260
+ #| msgid "Hide organizer"
1261
  msgid "How to set speaker"
1262
+ msgstr "Skjul arrangør"
1263
 
1264
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1265
  msgid ""
1268
  msgstr ""
1269
 
1270
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1271
+ #, fuzzy
1272
+ #| msgid "Hide location"
1273
  msgid "How to set tags"
1274
+ msgstr "Skjul Plassering"
1275
 
1276
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1277
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1313
  msgstr ""
1314
 
1315
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1316
+ #, fuzzy
1317
+ #| msgid "Hide organizer"
1318
  msgid "How to set weather"
1319
+ msgstr "Skjul arrangør"
1320
 
1321
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1322
  msgid ""
3468
  msgid "Please select at-least one label!"
3469
  msgstr "Vennligst velg noen billetter!"
3470
 
3471
+ #: app/features/fes.php:641 app/features/locations.php:348
3472
+ #: app/features/locations.php:462 app/features/popup.php:309
3473
+ #: app/features/popup/event.php:146
3474
+ msgid "Location Name"
3475
+ msgstr "Skriv inn stedsnavn..."
3476
+
3477
+ #: app/features/fes.php:704 app/features/organizers.php:393
3478
+ #: app/features/popup.php:368
3479
+ #, fuzzy
3480
+ #| msgid "Organizer Tel"
3481
+ msgid "Organizer Name"
3482
+ msgstr "Tlf til arrangør"
3483
+
3484
  #: app/features/fes.php:1391
3485
  #, fuzzy
3486
  #| msgid "The event submitted. It will publish as soon as possible."
4589
  msgid "Choose one of saved locations or insert new one below."
4590
  msgstr "Velg en av de lagrede stedene eller sett inn en ny en under."
4591
 
 
 
 
 
4592
  #: app/features/locations.php:349 app/features/popup/event.php:147
4593
  msgid "eg. City Hall"
4594
  msgstr "f.eks. rådhuset"
13089
  msgid "http://webnus.net"
13090
  msgstr "http://webnus.net"
13091
 
13092
+ #, fuzzy
13093
+ #~| msgid "View Detail"
13094
+ #~ msgid "View details"
13095
+ #~ msgstr "Se detaljer"
13096
+
13097
+ #, fuzzy
13098
+ #~| msgid "More Information"
13099
+ #~ msgid "More information about %s"
13100
+ #~ msgstr "Mer informasjon"
13101
+
13102
+ #, fuzzy
13103
+ #~| msgid "Checkout"
13104
+ #~ msgid "Check for updates"
13105
+ #~ msgstr "Til kassen"
13106
+
13107
  #, fuzzy
13108
  #~| msgid "%s reminders sent."
13109
  #~ msgid "%s emails(s) sent."
languages/modern-events-calendar-lite-nl_NL.mo CHANGED
Binary file
languages/modern-events-calendar-lite-nl_NL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:55+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: nl_NL\n"
@@ -109,50 +109,6 @@ msgstr ""
109
  msgid "Select Shortcode"
110
  msgstr "Nieuwe shortcode toevoegen"
111
 
112
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
113
- #, fuzzy
114
- #| msgid "View Detail"
115
- msgid "View details"
116
- msgstr "Bekijk detail"
117
-
118
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
119
- #, fuzzy, php-format
120
- msgid "More information about %s"
121
- msgstr "Bevestiging"
122
-
123
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
124
- #, fuzzy
125
- #| msgid "Checkout"
126
- msgid "Check for updates"
127
- msgstr "Afrekenen"
128
-
129
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
130
- #, php-format
131
- msgctxt "the plugin title"
132
- msgid "The %s plugin is up to date."
133
- msgstr ""
134
-
135
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
136
- #, php-format
137
- msgctxt "the plugin title"
138
- msgid "A new version of the %s plugin is available."
139
- msgstr ""
140
-
141
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
142
- #, php-format
143
- msgctxt "the plugin title"
144
- msgid "Could not determine if updates are available for %s."
145
- msgstr ""
146
-
147
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
148
- #, php-format
149
- msgid "Unknown update checker status \"%s\""
150
- msgstr ""
151
-
152
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
153
- msgid "There is no changelog available."
154
- msgstr ""
155
-
156
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
157
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
158
  msgid "Rejected"
@@ -875,8 +831,10 @@ msgid ""
875
  msgstr ""
876
 
877
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
878
  msgid "How to set buddypress"
879
- msgstr ""
880
 
881
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
882
  msgid ""
@@ -911,8 +869,10 @@ msgid ""
911
  msgstr ""
912
 
913
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
914
  msgid "How to set category"
915
- msgstr ""
916
 
917
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
918
  #: app/features/events.php:218 app/features/events.php:3875
@@ -950,8 +910,10 @@ msgstr ""
950
 
951
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
952
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
953
  msgid "How to set cost"
954
- msgstr ""
955
 
956
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
957
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1030,8 +992,10 @@ msgid ""
1030
  msgstr ""
1031
 
1032
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1033
  msgid "How to set label"
1034
- msgstr ""
1035
 
1036
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1037
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1122,8 +1086,10 @@ msgid ""
1122
  msgstr ""
1123
 
1124
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1125
  msgid "How to set read more"
1126
- msgstr ""
1127
 
1128
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1129
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1144,8 +1110,10 @@ msgid ""
1144
  msgstr ""
1145
 
1146
  #: app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php:37
 
 
1147
  msgid "How to set next events module"
1148
- msgstr ""
1149
 
1150
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:36
1151
  #: app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php:36
@@ -1223,8 +1191,10 @@ msgid ""
1223
  msgstr ""
1224
 
1225
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1226
  msgid "How to set QR code module"
1227
- msgstr ""
1228
 
1229
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1230
  msgid ""
@@ -1234,8 +1204,10 @@ msgid ""
1234
  msgstr ""
1235
 
1236
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
 
 
1237
  msgid "How to set register button"
1238
- msgstr ""
1239
 
1240
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1241
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
@@ -1287,8 +1259,10 @@ msgid ""
1287
  msgstr ""
1288
 
1289
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1290
  msgid "How to set speaker"
1291
- msgstr ""
1292
 
1293
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1294
  msgid ""
@@ -1297,8 +1271,10 @@ msgid ""
1297
  msgstr ""
1298
 
1299
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1300
  msgid "How to set tags"
1301
- msgstr ""
1302
 
1303
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1304
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1340,8 +1316,10 @@ msgid ""
1340
  msgstr ""
1341
 
1342
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1343
  msgid "How to set weather"
1344
- msgstr ""
1345
 
1346
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1347
  msgid ""
@@ -3408,6 +3386,19 @@ msgstr "Selecteer een aantal tickets!"
3408
  msgid "Please select at-least one label!"
3409
  msgstr "Selecteer een aantal tickets!"
3410
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3411
  #: app/features/fes.php:1391
3412
  #, fuzzy
3413
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4444,10 +4435,6 @@ msgstr "Voeg een nieuwe locatie in"
4444
  msgid "Choose one of saved locations or insert new one below."
4445
  msgstr "Kies één van de opgeslagen locaties of plaats een nieuwe hieronder."
4446
 
4447
- #: app/features/locations.php:348 app/features/popup/event.php:146
4448
- msgid "Location Name"
4449
- msgstr "Locatie naam"
4450
-
4451
  #: app/features/locations.php:349 app/features/popup/event.php:147
4452
  msgid "eg. City Hall"
4453
  msgstr "bijv. Gemeentehuis"
@@ -12697,6 +12684,20 @@ msgstr ""
12697
  msgid "http://webnus.net"
12698
  msgstr ""
12699
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12700
  #, fuzzy
12701
  #~| msgid "Notifications"
12702
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:27+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: nl_NL\n"
109
  msgid "Select Shortcode"
110
  msgstr "Nieuwe shortcode toevoegen"
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
113
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
114
  msgid "Rejected"
831
  msgstr ""
832
 
833
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
834
+ #, fuzzy
835
+ #| msgid "Categories"
836
  msgid "How to set buddypress"
837
+ msgstr "Categorieën"
838
 
839
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
840
  msgid ""
869
  msgstr ""
870
 
871
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
872
+ #, fuzzy
873
+ #| msgid "Hide location"
874
  msgid "How to set category"
875
+ msgstr "Verberg locatie"
876
 
877
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
878
  #: app/features/events.php:218 app/features/events.php:3875
910
 
911
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
912
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
913
+ #, fuzzy
914
+ #| msgid "Hide location"
915
  msgid "How to set cost"
916
+ msgstr "Verberg locatie"
917
 
918
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
919
  #: app/features/events.php:432 app/features/events.php:1283
992
  msgstr ""
993
 
994
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
995
+ #, fuzzy
996
+ #| msgid "Hide location"
997
  msgid "How to set label"
998
+ msgstr "Verberg locatie"
999
 
1000
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1001
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1086
  msgstr ""
1087
 
1088
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1089
+ #, fuzzy
1090
+ #| msgid "Categories"
1091
  msgid "How to set read more"
1092
+ msgstr "Categorieën"
1093
 
1094
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1095
  #: app/features/events.php:1519 app/features/events.php:1532
1110
  msgstr ""
1111
 
1112
  #: app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php:37
1113
+ #, fuzzy
1114
+ #| msgid "Show social network module"
1115
  msgid "How to set next events module"
1116
+ msgstr "Laat social media module zien"
1117
 
1118
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:36
1119
  #: app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php:36
1191
  msgstr ""
1192
 
1193
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1194
+ #, fuzzy
1195
+ #| msgid "Show social network module"
1196
  msgid "How to set QR code module"
1197
+ msgstr "Laat social media module zien"
1198
 
1199
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1200
  msgid ""
1204
  msgstr ""
1205
 
1206
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
1207
+ #, fuzzy
1208
+ #| msgid "Hide organizer"
1209
  msgid "How to set register button"
1210
+ msgstr "Verberg organisator"
1211
 
1212
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1213
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
1259
  msgstr ""
1260
 
1261
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1262
+ #, fuzzy
1263
+ #| msgid "Hide organizer"
1264
  msgid "How to set speaker"
1265
+ msgstr "Verberg organisator"
1266
 
1267
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1268
  msgid ""
1271
  msgstr ""
1272
 
1273
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1274
+ #, fuzzy
1275
+ #| msgid "Hide location"
1276
  msgid "How to set tags"
1277
+ msgstr "Verberg locatie"
1278
 
1279
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1280
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1316
  msgstr ""
1317
 
1318
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1319
+ #, fuzzy
1320
+ #| msgid "Hide organizer"
1321
  msgid "How to set weather"
1322
+ msgstr "Verberg organisator"
1323
 
1324
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1325
  msgid ""
3386
  msgid "Please select at-least one label!"
3387
  msgstr "Selecteer een aantal tickets!"
3388
 
3389
+ #: app/features/fes.php:641 app/features/locations.php:348
3390
+ #: app/features/locations.php:462 app/features/popup.php:309
3391
+ #: app/features/popup/event.php:146
3392
+ msgid "Location Name"
3393
+ msgstr "Locatie naam"
3394
+
3395
+ #: app/features/fes.php:704 app/features/organizers.php:393
3396
+ #: app/features/popup.php:368
3397
+ #, fuzzy
3398
+ #| msgid "Organizer Name"
3399
+ msgid "Organizer Name"
3400
+ msgstr "Naam organisator"
3401
+
3402
  #: app/features/fes.php:1391
3403
  #, fuzzy
3404
  #| msgid "The event submitted. It will publish as soon as possible."
4435
  msgid "Choose one of saved locations or insert new one below."
4436
  msgstr "Kies één van de opgeslagen locaties of plaats een nieuwe hieronder."
4437
 
 
 
 
 
4438
  #: app/features/locations.php:349 app/features/popup/event.php:147
4439
  msgid "eg. City Hall"
4440
  msgstr "bijv. Gemeentehuis"
12684
  msgid "http://webnus.net"
12685
  msgstr ""
12686
 
12687
+ #, fuzzy
12688
+ #~| msgid "View Detail"
12689
+ #~ msgid "View details"
12690
+ #~ msgstr "Bekijk detail"
12691
+
12692
+ #, fuzzy
12693
+ #~ msgid "More information about %s"
12694
+ #~ msgstr "Bevestiging"
12695
+
12696
+ #, fuzzy
12697
+ #~| msgid "Checkout"
12698
+ #~ msgid "Check for updates"
12699
+ #~ msgstr "Afrekenen"
12700
+
12701
  #, fuzzy
12702
  #~| msgid "Notifications"
12703
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-pl_PL.mo CHANGED
Binary file
languages/modern-events-calendar-lite-pl_PL.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:55+0430\n"
6
  "Last-Translator: Łukasz Szmigiel <lszmigiel@szmigieldesign.pl>\n"
7
  "Language-Team: \n"
8
  "Language: pl_PL\n"
@@ -112,51 +112,6 @@ msgstr ""
112
  msgid "Select Shortcode"
113
  msgstr "Dodaj nowy shortcode"
114
 
115
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
116
- #, fuzzy
117
- #| msgid "View Detail"
118
- msgid "View details"
119
- msgstr "Pokaż szczegóły"
120
-
121
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
122
- #, fuzzy, php-format
123
- #| msgid "More Information"
124
- msgid "More information about %s"
125
- msgstr "Więcej informacji"
126
-
127
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
128
- #, fuzzy
129
- #| msgid "Checkout"
130
- msgid "Check for updates"
131
- msgstr "Zamówienie"
132
-
133
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
134
- #, php-format
135
- msgctxt "the plugin title"
136
- msgid "The %s plugin is up to date."
137
- msgstr ""
138
-
139
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
140
- #, php-format
141
- msgctxt "the plugin title"
142
- msgid "A new version of the %s plugin is available."
143
- msgstr ""
144
-
145
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
146
- #, php-format
147
- msgctxt "the plugin title"
148
- msgid "Could not determine if updates are available for %s."
149
- msgstr ""
150
-
151
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
152
- #, php-format
153
- msgid "Unknown update checker status \"%s\""
154
- msgstr ""
155
-
156
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
157
- msgid "There is no changelog available."
158
- msgstr ""
159
-
160
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
161
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
162
  msgid "Rejected"
@@ -880,8 +835,10 @@ msgid ""
880
  msgstr ""
881
 
882
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
883
  msgid "How to set buddypress"
884
- msgstr ""
885
 
886
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
887
  msgid ""
@@ -916,8 +873,10 @@ msgid ""
916
  msgstr ""
917
 
918
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
919
  msgid "How to set category"
920
- msgstr ""
921
 
922
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
923
  #: app/features/events.php:218 app/features/events.php:3875
@@ -955,8 +914,10 @@ msgstr ""
955
 
956
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
957
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
958
  msgid "How to set cost"
959
- msgstr ""
960
 
961
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
962
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1036,8 +997,10 @@ msgid ""
1036
  msgstr ""
1037
 
1038
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1039
  msgid "How to set label"
1040
- msgstr ""
1041
 
1042
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1043
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1128,8 +1091,10 @@ msgid ""
1128
  msgstr ""
1129
 
1130
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1131
  msgid "How to set read more"
1132
- msgstr ""
1133
 
1134
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1135
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1231,8 +1196,10 @@ msgid ""
1231
  msgstr ""
1232
 
1233
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1234
  msgid "How to set QR code module"
1235
- msgstr ""
1236
 
1237
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1238
  msgid ""
@@ -1297,8 +1264,10 @@ msgid ""
1297
  msgstr ""
1298
 
1299
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1300
  msgid "How to set speaker"
1301
- msgstr ""
1302
 
1303
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1304
  msgid ""
@@ -1307,8 +1276,10 @@ msgid ""
1307
  msgstr ""
1308
 
1309
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1310
  msgid "How to set tags"
1311
- msgstr ""
1312
 
1313
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1314
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1350,8 +1321,10 @@ msgid ""
1350
  msgstr ""
1351
 
1352
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1353
  msgid "How to set weather"
1354
- msgstr ""
1355
 
1356
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1357
  msgid ""
@@ -3442,6 +3415,19 @@ msgstr "Proszę wybrać bilety!"
3442
  msgid "Please select at-least one label!"
3443
  msgstr "Proszę wybrać bilety!"
3444
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3445
  #: app/features/fes.php:1391
3446
  #, fuzzy
3447
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4560,10 +4546,6 @@ msgstr "Dodaj nową lokalizację"
4560
  msgid "Choose one of saved locations or insert new one below."
4561
  msgstr "Wybierz jedną z zapisanych lokalizacji lub dodaj nową poniżej."
4562
 
4563
- #: app/features/locations.php:348 app/features/popup/event.php:146
4564
- msgid "Location Name"
4565
- msgstr "Nazwa lokalizacji"
4566
-
4567
  #: app/features/locations.php:349 app/features/popup/event.php:147
4568
  msgid "eg. City Hall"
4569
  msgstr "np. Ratusz"
@@ -13040,6 +13022,21 @@ msgstr "Zespół Webnus"
13040
  msgid "http://webnus.net"
13041
  msgstr ""
13042
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13043
  #, fuzzy
13044
  #~| msgid "Notifications"
13045
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:27+0430\n"
6
  "Last-Translator: Łukasz Szmigiel <lszmigiel@szmigieldesign.pl>\n"
7
  "Language-Team: \n"
8
  "Language: pl_PL\n"
112
  msgid "Select Shortcode"
113
  msgstr "Dodaj nowy shortcode"
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
116
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
117
  msgid "Rejected"
835
  msgstr ""
836
 
837
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
838
+ #, fuzzy
839
+ #| msgid "Category Singular Label"
840
  msgid "How to set buddypress"
841
+ msgstr "Etykieta dla kategorii - liczba pojedyncza"
842
 
843
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
844
  msgid ""
873
  msgstr ""
874
 
875
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
876
+ #, fuzzy
877
+ #| msgid "Hide location"
878
  msgid "How to set category"
879
+ msgstr "Ukryj lokalizację"
880
 
881
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
882
  #: app/features/events.php:218 app/features/events.php:3875
914
 
915
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
916
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
917
+ #, fuzzy
918
+ #| msgid "Hide location"
919
  msgid "How to set cost"
920
+ msgstr "Ukryj lokalizację"
921
 
922
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
923
  #: app/features/events.php:432 app/features/events.php:1283
997
  msgstr ""
998
 
999
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
1000
+ #, fuzzy
1001
+ #| msgid "Hide location"
1002
  msgid "How to set label"
1003
+ msgstr "Ukryj lokalizację"
1004
 
1005
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1006
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1091
  msgstr ""
1092
 
1093
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1094
+ #, fuzzy
1095
+ #| msgid "Category Singular Label"
1096
  msgid "How to set read more"
1097
+ msgstr "Etykieta dla kategorii - liczba pojedyncza"
1098
 
1099
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1100
  #: app/features/events.php:1519 app/features/events.php:1532
1196
  msgstr ""
1197
 
1198
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1199
+ #, fuzzy
1200
+ #| msgid "Show social network module"
1201
  msgid "How to set QR code module"
1202
+ msgstr "Pokaż moduł sieci społecznej"
1203
 
1204
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1205
  msgid ""
1264
  msgstr ""
1265
 
1266
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1267
+ #, fuzzy
1268
+ #| msgid "Hide organizer"
1269
  msgid "How to set speaker"
1270
+ msgstr "Ukryj organizatora"
1271
 
1272
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1273
  msgid ""
1276
  msgstr ""
1277
 
1278
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1279
+ #, fuzzy
1280
+ #| msgid "Hide location"
1281
  msgid "How to set tags"
1282
+ msgstr "Ukryj lokalizację"
1283
 
1284
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1285
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1321
  msgstr ""
1322
 
1323
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1324
+ #, fuzzy
1325
+ #| msgid "Hide organizer"
1326
  msgid "How to set weather"
1327
+ msgstr "Ukryj organizatora"
1328
 
1329
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1330
  msgid ""
3415
  msgid "Please select at-least one label!"
3416
  msgstr "Proszę wybrać bilety!"
3417
 
3418
+ #: app/features/fes.php:641 app/features/locations.php:348
3419
+ #: app/features/locations.php:462 app/features/popup.php:309
3420
+ #: app/features/popup/event.php:146
3421
+ msgid "Location Name"
3422
+ msgstr "Nazwa lokalizacji"
3423
+
3424
+ #: app/features/fes.php:704 app/features/organizers.php:393
3425
+ #: app/features/popup.php:368
3426
+ #, fuzzy
3427
+ #| msgid "Organizer Name"
3428
+ msgid "Organizer Name"
3429
+ msgstr "Nazwa organizatora"
3430
+
3431
  #: app/features/fes.php:1391
3432
  #, fuzzy
3433
  #| msgid "The event submitted. It will publish as soon as possible."
4546
  msgid "Choose one of saved locations or insert new one below."
4547
  msgstr "Wybierz jedną z zapisanych lokalizacji lub dodaj nową poniżej."
4548
 
 
 
 
 
4549
  #: app/features/locations.php:349 app/features/popup/event.php:147
4550
  msgid "eg. City Hall"
4551
  msgstr "np. Ratusz"
13022
  msgid "http://webnus.net"
13023
  msgstr ""
13024
 
13025
+ #, fuzzy
13026
+ #~| msgid "View Detail"
13027
+ #~ msgid "View details"
13028
+ #~ msgstr "Pokaż szczegóły"
13029
+
13030
+ #, fuzzy
13031
+ #~| msgid "More Information"
13032
+ #~ msgid "More information about %s"
13033
+ #~ msgstr "Więcej informacji"
13034
+
13035
+ #, fuzzy
13036
+ #~| msgid "Checkout"
13037
+ #~ msgid "Check for updates"
13038
+ #~ msgstr "Zamówienie"
13039
+
13040
  #, fuzzy
13041
  #~| msgid "Notifications"
13042
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-pt_BR.mo CHANGED
Binary file
languages/modern-events-calendar-lite-pt_BR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
6
- "PO-Revision-Date: 2022-03-28 22:55+0430\n"
7
  "Last-Translator: Howard <howard@realtyna.com>\n"
8
  "Language-Team: Portuguese (Brazil)\n"
9
  "Language: pt_BR\n"
@@ -112,51 +112,6 @@ msgstr ""
112
  msgid "Select Shortcode"
113
  msgstr "Adicionar Novo Código Curto"
114
 
115
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
116
- #, fuzzy
117
- #| msgid "View Detail"
118
- msgid "View details"
119
- msgstr "Ver Detalhes"
120
-
121
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
122
- #, fuzzy, php-format
123
- #| msgid "More Information"
124
- msgid "More information about %s"
125
- msgstr "Mais Informações"
126
-
127
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
128
- #, fuzzy
129
- #| msgid "Checkout"
130
- msgid "Check for updates"
131
- msgstr "Finalizar"
132
-
133
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
134
- #, php-format
135
- msgctxt "the plugin title"
136
- msgid "The %s plugin is up to date."
137
- msgstr ""
138
-
139
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
140
- #, php-format
141
- msgctxt "the plugin title"
142
- msgid "A new version of the %s plugin is available."
143
- msgstr ""
144
-
145
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
146
- #, php-format
147
- msgctxt "the plugin title"
148
- msgid "Could not determine if updates are available for %s."
149
- msgstr ""
150
-
151
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
152
- #, php-format
153
- msgid "Unknown update checker status \"%s\""
154
- msgstr ""
155
-
156
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
157
- msgid "There is no changelog available."
158
- msgstr ""
159
-
160
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
161
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
162
  msgid "Rejected"
@@ -878,8 +833,10 @@ msgid ""
878
  msgstr ""
879
 
880
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
881
  msgid "How to set buddypress"
882
- msgstr ""
883
 
884
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
885
  msgid ""
@@ -914,8 +871,10 @@ msgid ""
914
  msgstr ""
915
 
916
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
917
  msgid "How to set category"
918
- msgstr ""
919
 
920
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
921
  #: app/features/events.php:218 app/features/events.php:3875
@@ -953,8 +912,10 @@ msgstr ""
953
 
954
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
955
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
956
  msgid "How to set cost"
957
- msgstr ""
958
 
959
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
960
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1034,8 +995,10 @@ msgid ""
1034
  msgstr ""
1035
 
1036
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1037
  msgid "How to set label"
1038
- msgstr ""
1039
 
1040
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1041
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1126,8 +1089,10 @@ msgid ""
1126
  msgstr ""
1127
 
1128
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1129
  msgid "How to set read more"
1130
- msgstr ""
1131
 
1132
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1133
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1229,8 +1194,10 @@ msgid ""
1229
  msgstr ""
1230
 
1231
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1232
  msgid "How to set QR code module"
1233
- msgstr ""
1234
 
1235
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1236
  msgid ""
@@ -1240,8 +1207,10 @@ msgid ""
1240
  msgstr ""
1241
 
1242
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
 
 
1243
  msgid "How to set register button"
1244
- msgstr ""
1245
 
1246
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1247
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
@@ -1293,8 +1262,10 @@ msgid ""
1293
  msgstr ""
1294
 
1295
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1296
  msgid "How to set speaker"
1297
- msgstr ""
1298
 
1299
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1300
  msgid ""
@@ -1303,8 +1274,10 @@ msgid ""
1303
  msgstr ""
1304
 
1305
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1306
  msgid "How to set tags"
1307
- msgstr ""
1308
 
1309
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1310
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1346,8 +1319,10 @@ msgid ""
1346
  msgstr ""
1347
 
1348
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1349
  msgid "How to set weather"
1350
- msgstr ""
1351
 
1352
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1353
  msgid ""
@@ -3434,6 +3409,19 @@ msgstr "Por favor, selecione alguns bilhetes!"
3434
  msgid "Please select at-least one label!"
3435
  msgstr "Por favor, selecione alguns bilhetes!"
3436
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3437
  #: app/features/fes.php:1391
3438
  #, fuzzy
3439
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4543,10 +4531,6 @@ msgstr "Inserir uma nova localização"
4543
  msgid "Choose one of saved locations or insert new one below."
4544
  msgstr "Escolha um dos locais salvos ou insira um novo abaixo."
4545
 
4546
- #: app/features/locations.php:348 app/features/popup/event.php:146
4547
- msgid "Location Name"
4548
- msgstr "Nome da Localização"
4549
-
4550
  #: app/features/locations.php:349 app/features/popup/event.php:147
4551
  msgid "eg. City Hall"
4552
  msgstr "exemplo; Prefeitura"
@@ -12959,6 +12943,21 @@ msgstr "Equipe Webnus"
12959
  msgid "http://webnus.net"
12960
  msgstr ""
12961
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12962
  #, fuzzy
12963
  #~| msgid "Notifications"
12964
  #~ msgid "%s notification(s) sent."
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
6
+ "PO-Revision-Date: 2022-03-30 12:27+0430\n"
7
  "Last-Translator: Howard <howard@realtyna.com>\n"
8
  "Language-Team: Portuguese (Brazil)\n"
9
  "Language: pt_BR\n"
112
  msgid "Select Shortcode"
113
  msgstr "Adicionar Novo Código Curto"
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
116
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
117
  msgid "Rejected"
833
  msgstr ""
834
 
835
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
836
+ #, fuzzy
837
+ #| msgid "Categories"
838
  msgid "How to set buddypress"
839
+ msgstr "Categorias"
840
 
841
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
842
  msgid ""
871
  msgstr ""
872
 
873
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
874
+ #, fuzzy
875
+ #| msgid "Hide location"
876
  msgid "How to set category"
877
+ msgstr "Ocultar localização"
878
 
879
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
880
  #: app/features/events.php:218 app/features/events.php:3875
912
 
913
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
914
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
915
+ #, fuzzy
916
+ #| msgid "Hide location"
917
  msgid "How to set cost"
918
+ msgstr "Ocultar localização"
919
 
920
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
921
  #: app/features/events.php:432 app/features/events.php:1283
995
  msgstr ""
996
 
997
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
998
+ #, fuzzy
999
+ #| msgid "Hide location"
1000
  msgid "How to set label"
1001
+ msgstr "Ocultar localização"
1002
 
1003
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1004
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1089
  msgstr ""
1090
 
1091
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1092
+ #, fuzzy
1093
+ #| msgid "Categories"
1094
  msgid "How to set read more"
1095
+ msgstr "Categorias"
1096
 
1097
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1098
  #: app/features/events.php:1519 app/features/events.php:1532
1194
  msgstr ""
1195
 
1196
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1197
+ #, fuzzy
1198
+ #| msgid "Show social network module"
1199
  msgid "How to set QR code module"
1200
+ msgstr "Mostrar módulo redes sociais"
1201
 
1202
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1203
  msgid ""
1207
  msgstr ""
1208
 
1209
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
1210
+ #, fuzzy
1211
+ #| msgid "Hide organizer"
1212
  msgid "How to set register button"
1213
+ msgstr "Ocultar organizador"
1214
 
1215
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1216
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
1262
  msgstr ""
1263
 
1264
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1265
+ #, fuzzy
1266
+ #| msgid "Hide organizer"
1267
  msgid "How to set speaker"
1268
+ msgstr "Ocultar organizador"
1269
 
1270
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1271
  msgid ""
1274
  msgstr ""
1275
 
1276
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1277
+ #, fuzzy
1278
+ #| msgid "Hide location"
1279
  msgid "How to set tags"
1280
+ msgstr "Ocultar localização"
1281
 
1282
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1283
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1319
  msgstr ""
1320
 
1321
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1322
+ #, fuzzy
1323
+ #| msgid "Hide organizer"
1324
  msgid "How to set weather"
1325
+ msgstr "Ocultar organizador"
1326
 
1327
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1328
  msgid ""
3409
  msgid "Please select at-least one label!"
3410
  msgstr "Por favor, selecione alguns bilhetes!"
3411
 
3412
+ #: app/features/fes.php:641 app/features/locations.php:348
3413
+ #: app/features/locations.php:462 app/features/popup.php:309
3414
+ #: app/features/popup/event.php:146
3415
+ msgid "Location Name"
3416
+ msgstr "Nome da Localização"
3417
+
3418
+ #: app/features/fes.php:704 app/features/organizers.php:393
3419
+ #: app/features/popup.php:368
3420
+ #, fuzzy
3421
+ #| msgid "Organizer Name"
3422
+ msgid "Organizer Name"
3423
+ msgstr "Nome do Organizador"
3424
+
3425
  #: app/features/fes.php:1391
3426
  #, fuzzy
3427
  #| msgid "The event submitted. It will publish as soon as possible."
4531
  msgid "Choose one of saved locations or insert new one below."
4532
  msgstr "Escolha um dos locais salvos ou insira um novo abaixo."
4533
 
 
 
 
 
4534
  #: app/features/locations.php:349 app/features/popup/event.php:147
4535
  msgid "eg. City Hall"
4536
  msgstr "exemplo; Prefeitura"
12943
  msgid "http://webnus.net"
12944
  msgstr ""
12945
 
12946
+ #, fuzzy
12947
+ #~| msgid "View Detail"
12948
+ #~ msgid "View details"
12949
+ #~ msgstr "Ver Detalhes"
12950
+
12951
+ #, fuzzy
12952
+ #~| msgid "More Information"
12953
+ #~ msgid "More information about %s"
12954
+ #~ msgstr "Mais Informações"
12955
+
12956
+ #, fuzzy
12957
+ #~| msgid "Checkout"
12958
+ #~ msgid "Check for updates"
12959
+ #~ msgstr "Finalizar"
12960
+
12961
  #, fuzzy
12962
  #~| msgid "Notifications"
12963
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-ru_RU.mo CHANGED
Binary file
languages/modern-events-calendar-lite-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:55+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: Runa Simi Tours <info@runa-simi.com>\n"
8
  "Language: ru_RU\n"
@@ -110,51 +110,6 @@ msgstr ""
110
  msgid "Select Shortcode"
111
  msgstr "Добавить новый Шорткод"
112
 
113
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
114
- #, fuzzy
115
- #| msgid "View Detail"
116
- msgid "View details"
117
- msgstr "Подробнее"
118
-
119
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
120
- #, fuzzy, php-format
121
- #| msgid "More Information"
122
- msgid "More information about %s"
123
- msgstr "Дополнительная Информация"
124
-
125
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
126
- #, fuzzy
127
- #| msgid "Checkout"
128
- msgid "Check for updates"
129
- msgstr "Оплатить"
130
-
131
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
132
- #, php-format
133
- msgctxt "the plugin title"
134
- msgid "The %s plugin is up to date."
135
- msgstr ""
136
-
137
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
138
- #, php-format
139
- msgctxt "the plugin title"
140
- msgid "A new version of the %s plugin is available."
141
- msgstr ""
142
-
143
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
144
- #, php-format
145
- msgctxt "the plugin title"
146
- msgid "Could not determine if updates are available for %s."
147
- msgstr ""
148
-
149
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
150
- #, php-format
151
- msgid "Unknown update checker status \"%s\""
152
- msgstr ""
153
-
154
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
155
- msgid "There is no changelog available."
156
- msgstr ""
157
-
158
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
159
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
160
  msgid "Rejected"
@@ -877,8 +832,10 @@ msgid ""
877
  msgstr ""
878
 
879
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
880
  msgid "How to set buddypress"
881
- msgstr ""
882
 
883
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
884
  msgid ""
@@ -913,8 +870,10 @@ msgid ""
913
  msgstr ""
914
 
915
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
916
  msgid "How to set category"
917
- msgstr ""
918
 
919
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
920
  #: app/features/events.php:218 app/features/events.php:3875
@@ -952,8 +911,10 @@ msgstr ""
952
 
953
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
954
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
955
  msgid "How to set cost"
956
- msgstr ""
957
 
958
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
959
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1033,8 +994,10 @@ msgid ""
1033
  msgstr ""
1034
 
1035
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1036
  msgid "How to set label"
1037
- msgstr ""
1038
 
1039
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1040
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1125,8 +1088,10 @@ msgid ""
1125
  msgstr ""
1126
 
1127
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1128
  msgid "How to set read more"
1129
- msgstr ""
1130
 
1131
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1132
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1228,8 +1193,10 @@ msgid ""
1228
  msgstr ""
1229
 
1230
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1231
  msgid "How to set QR code module"
1232
- msgstr ""
1233
 
1234
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1235
  msgid ""
@@ -1239,8 +1206,10 @@ msgid ""
1239
  msgstr ""
1240
 
1241
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
 
 
1242
  msgid "How to set register button"
1243
- msgstr ""
1244
 
1245
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1246
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
@@ -1292,8 +1261,10 @@ msgid ""
1292
  msgstr ""
1293
 
1294
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1295
  msgid "How to set speaker"
1296
- msgstr ""
1297
 
1298
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1299
  msgid ""
@@ -1302,8 +1273,10 @@ msgid ""
1302
  msgstr ""
1303
 
1304
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1305
  msgid "How to set tags"
1306
- msgstr ""
1307
 
1308
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1309
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1345,8 +1318,10 @@ msgid ""
1345
  msgstr ""
1346
 
1347
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1348
  msgid "How to set weather"
1349
- msgstr ""
1350
 
1351
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1352
  msgid ""
@@ -3415,6 +3390,19 @@ msgstr "Пожалуйста выберите билет!"
3415
  msgid "Please select at-least one label!"
3416
  msgstr "Пожалуйста выберите билет!"
3417
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3418
  #: app/features/fes.php:1391
3419
  #, fuzzy
3420
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4456,10 +4444,6 @@ msgstr "Вставить новое место"
4456
  msgid "Choose one of saved locations or insert new one below."
4457
  msgstr "Выбрать одно из сохранённых мест или вставить новое ниже."
4458
 
4459
- #: app/features/locations.php:348 app/features/popup/event.php:146
4460
- msgid "Location Name"
4461
- msgstr "Имя места"
4462
-
4463
  #: app/features/locations.php:349 app/features/popup/event.php:147
4464
  msgid "eg. City Hall"
4465
  msgstr "напр. Красная Площадь"
@@ -12765,6 +12749,21 @@ msgstr ""
12765
  msgid "http://webnus.net"
12766
  msgstr ""
12767
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12768
  #, fuzzy
12769
  #~| msgid "Notifications"
12770
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:27+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: Runa Simi Tours <info@runa-simi.com>\n"
8
  "Language: ru_RU\n"
110
  msgid "Select Shortcode"
111
  msgstr "Добавить новый Шорткод"
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
114
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
115
  msgid "Rejected"
832
  msgstr ""
833
 
834
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
835
+ #, fuzzy
836
+ #| msgid "Categories"
837
  msgid "How to set buddypress"
838
+ msgstr "Категории"
839
 
840
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
841
  msgid ""
870
  msgstr ""
871
 
872
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
873
+ #, fuzzy
874
+ #| msgid "Hide location"
875
  msgid "How to set category"
876
+ msgstr "Скрыть место"
877
 
878
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
879
  #: app/features/events.php:218 app/features/events.php:3875
911
 
912
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
913
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
914
+ #, fuzzy
915
+ #| msgid "Hide location"
916
  msgid "How to set cost"
917
+ msgstr "Скрыть место"
918
 
919
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
920
  #: app/features/events.php:432 app/features/events.php:1283
994
  msgstr ""
995
 
996
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
997
+ #, fuzzy
998
+ #| msgid "Hide location"
999
  msgid "How to set label"
1000
+ msgstr "Скрыть место"
1001
 
1002
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1003
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1088
  msgstr ""
1089
 
1090
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1091
+ #, fuzzy
1092
+ #| msgid "Categories"
1093
  msgid "How to set read more"
1094
+ msgstr "Категории"
1095
 
1096
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1097
  #: app/features/events.php:1519 app/features/events.php:1532
1193
  msgstr ""
1194
 
1195
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1196
+ #, fuzzy
1197
+ #| msgid "Show social network module"
1198
  msgid "How to set QR code module"
1199
+ msgstr "Отображать модуль социальных сетей"
1200
 
1201
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1202
  msgid ""
1206
  msgstr ""
1207
 
1208
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
1209
+ #, fuzzy
1210
+ #| msgid "Hide organizer"
1211
  msgid "How to set register button"
1212
+ msgstr "Скрыть организатора"
1213
 
1214
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1215
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
1261
  msgstr ""
1262
 
1263
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1264
+ #, fuzzy
1265
+ #| msgid "Hide organizer"
1266
  msgid "How to set speaker"
1267
+ msgstr "Скрыть организатора"
1268
 
1269
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1270
  msgid ""
1273
  msgstr ""
1274
 
1275
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1276
+ #, fuzzy
1277
+ #| msgid "Hide location"
1278
  msgid "How to set tags"
1279
+ msgstr "Скрыть место"
1280
 
1281
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1282
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1318
  msgstr ""
1319
 
1320
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1321
+ #, fuzzy
1322
+ #| msgid "Hide organizer"
1323
  msgid "How to set weather"
1324
+ msgstr "Скрыть организатора"
1325
 
1326
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1327
  msgid ""
3390
  msgid "Please select at-least one label!"
3391
  msgstr "Пожалуйста выберите билет!"
3392
 
3393
+ #: app/features/fes.php:641 app/features/locations.php:348
3394
+ #: app/features/locations.php:462 app/features/popup.php:309
3395
+ #: app/features/popup/event.php:146
3396
+ msgid "Location Name"
3397
+ msgstr "Имя места"
3398
+
3399
+ #: app/features/fes.php:704 app/features/organizers.php:393
3400
+ #: app/features/popup.php:368
3401
+ #, fuzzy
3402
+ #| msgid "Organizer Name"
3403
+ msgid "Organizer Name"
3404
+ msgstr "Имя организатора."
3405
+
3406
  #: app/features/fes.php:1391
3407
  #, fuzzy
3408
  #| msgid "The event submitted. It will publish as soon as possible."
4444
  msgid "Choose one of saved locations or insert new one below."
4445
  msgstr "Выбрать одно из сохранённых мест или вставить новое ниже."
4446
 
 
 
 
 
4447
  #: app/features/locations.php:349 app/features/popup/event.php:147
4448
  msgid "eg. City Hall"
4449
  msgstr "напр. Красная Площадь"
12749
  msgid "http://webnus.net"
12750
  msgstr ""
12751
 
12752
+ #, fuzzy
12753
+ #~| msgid "View Detail"
12754
+ #~ msgid "View details"
12755
+ #~ msgstr "Подробнее"
12756
+
12757
+ #, fuzzy
12758
+ #~| msgid "More Information"
12759
+ #~ msgid "More information about %s"
12760
+ #~ msgstr "Дополнительная Информация"
12761
+
12762
+ #, fuzzy
12763
+ #~| msgid "Checkout"
12764
+ #~ msgid "Check for updates"
12765
+ #~ msgstr "Оплатить"
12766
+
12767
  #, fuzzy
12768
  #~| msgid "Notifications"
12769
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-sv_SE.mo CHANGED
Binary file
languages/modern-events-calendar-lite-sv_SE.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:53+0430\n"
6
  "Last-Translator: Mats Vallström <walle@mtre.se>\n"
7
  "Language-Team: Mats Vallström <walle@mtre.se>\n"
8
  "Language: sv_SE\n"
@@ -111,51 +111,6 @@ msgstr ""
111
  msgid "Select Shortcode"
112
  msgstr "Lägg till en ny shortcode"
113
 
114
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
115
- #, fuzzy
116
- #| msgid "View Detail"
117
- msgid "View details"
118
- msgstr "Visa detaljer"
119
-
120
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
121
- #, fuzzy, php-format
122
- #| msgid "More Information"
123
- msgid "More information about %s"
124
- msgstr "Mer information"
125
-
126
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
127
- #, fuzzy
128
- #| msgid "Checkout"
129
- msgid "Check for updates"
130
- msgstr "Gå till kassa"
131
-
132
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
133
- #, php-format
134
- msgctxt "the plugin title"
135
- msgid "The %s plugin is up to date."
136
- msgstr ""
137
-
138
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
139
- #, php-format
140
- msgctxt "the plugin title"
141
- msgid "A new version of the %s plugin is available."
142
- msgstr ""
143
-
144
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
145
- #, php-format
146
- msgctxt "the plugin title"
147
- msgid "Could not determine if updates are available for %s."
148
- msgstr ""
149
-
150
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
151
- #, php-format
152
- msgid "Unknown update checker status \"%s\""
153
- msgstr ""
154
-
155
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
156
- msgid "There is no changelog available."
157
- msgstr ""
158
-
159
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
160
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
161
  msgid "Rejected"
@@ -877,8 +832,10 @@ msgid ""
877
  msgstr ""
878
 
879
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
880
  msgid "How to set buddypress"
881
- msgstr ""
882
 
883
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
884
  msgid ""
@@ -913,8 +870,10 @@ msgid ""
913
  msgstr ""
914
 
915
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
916
  msgid "How to set category"
917
- msgstr ""
918
 
919
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
920
  #: app/features/events.php:218 app/features/events.php:3875
@@ -952,8 +911,10 @@ msgstr ""
952
 
953
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
954
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
955
  msgid "How to set cost"
956
- msgstr ""
957
 
958
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
959
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1033,8 +994,10 @@ msgid ""
1033
  msgstr ""
1034
 
1035
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1036
  msgid "How to set label"
1037
- msgstr ""
1038
 
1039
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1040
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1125,8 +1088,10 @@ msgid ""
1125
  msgstr ""
1126
 
1127
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1128
  msgid "How to set read more"
1129
- msgstr ""
1130
 
1131
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1132
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1228,8 +1193,10 @@ msgid ""
1228
  msgstr ""
1229
 
1230
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1231
  msgid "How to set QR code module"
1232
- msgstr ""
1233
 
1234
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1235
  msgid ""
@@ -1294,8 +1261,10 @@ msgid ""
1294
  msgstr ""
1295
 
1296
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1297
  msgid "How to set speaker"
1298
- msgstr ""
1299
 
1300
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1301
  msgid ""
@@ -1304,8 +1273,10 @@ msgid ""
1304
  msgstr ""
1305
 
1306
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1307
  msgid "How to set tags"
1308
- msgstr ""
1309
 
1310
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1311
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1347,8 +1318,10 @@ msgid ""
1347
  msgstr ""
1348
 
1349
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1350
  msgid "How to set weather"
1351
- msgstr ""
1352
 
1353
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1354
  msgid ""
@@ -3436,6 +3409,19 @@ msgstr "Vänligen välj biljetter!"
3436
  msgid "Please select at-least one label!"
3437
  msgstr "Vänligen välj biljetter!"
3438
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3439
  #: app/features/fes.php:1391
3440
  #, fuzzy
3441
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4542,10 +4528,6 @@ msgstr "Lägg till ny plats"
4542
  msgid "Choose one of saved locations or insert new one below."
4543
  msgstr "Välj en redan sparad plats eller lägg till en ny nedan."
4544
 
4545
- #: app/features/locations.php:348 app/features/popup/event.php:146
4546
- msgid "Location Name"
4547
- msgstr "Platsens namn"
4548
-
4549
  #: app/features/locations.php:349 app/features/popup/event.php:147
4550
  msgid "eg. City Hall"
4551
  msgstr "t.ex. Stadshus"
@@ -13027,6 +13009,21 @@ msgstr "Webnus Team"
13027
  msgid "http://webnus.net"
13028
  msgstr ""
13029
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13030
  #, fuzzy
13031
  #~| msgid "Notifications"
13032
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:27+0430\n"
6
  "Last-Translator: Mats Vallström <walle@mtre.se>\n"
7
  "Language-Team: Mats Vallström <walle@mtre.se>\n"
8
  "Language: sv_SE\n"
111
  msgid "Select Shortcode"
112
  msgstr "Lägg till en ny shortcode"
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
115
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
116
  msgid "Rejected"
832
  msgstr ""
833
 
834
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
835
+ #, fuzzy
836
+ #| msgid "Category Singular Label"
837
  msgid "How to set buddypress"
838
+ msgstr "Kategori (singular etikett)"
839
 
840
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
841
  msgid ""
870
  msgstr ""
871
 
872
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
873
+ #, fuzzy
874
+ #| msgid "Hide location"
875
  msgid "How to set category"
876
+ msgstr "Göm plats"
877
 
878
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
879
  #: app/features/events.php:218 app/features/events.php:3875
911
 
912
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
913
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
914
+ #, fuzzy
915
+ #| msgid "Hide location"
916
  msgid "How to set cost"
917
+ msgstr "Göm plats"
918
 
919
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
920
  #: app/features/events.php:432 app/features/events.php:1283
994
  msgstr ""
995
 
996
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
997
+ #, fuzzy
998
+ #| msgid "Hide location"
999
  msgid "How to set label"
1000
+ msgstr "Göm plats"
1001
 
1002
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1003
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1088
  msgstr ""
1089
 
1090
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1091
+ #, fuzzy
1092
+ #| msgid "Category Singular Label"
1093
  msgid "How to set read more"
1094
+ msgstr "Kategori (singular etikett)"
1095
 
1096
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1097
  #: app/features/events.php:1519 app/features/events.php:1532
1193
  msgstr ""
1194
 
1195
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1196
+ #, fuzzy
1197
+ #| msgid "Show social network module"
1198
  msgid "How to set QR code module"
1199
+ msgstr "Visa modulen \"Sociala nätverk\""
1200
 
1201
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1202
  msgid ""
1261
  msgstr ""
1262
 
1263
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1264
+ #, fuzzy
1265
+ #| msgid "Hide organizer"
1266
  msgid "How to set speaker"
1267
+ msgstr "Göm arrangör"
1268
 
1269
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1270
  msgid ""
1273
  msgstr ""
1274
 
1275
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1276
+ #, fuzzy
1277
+ #| msgid "Hide location"
1278
  msgid "How to set tags"
1279
+ msgstr "Göm plats"
1280
 
1281
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1282
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1318
  msgstr ""
1319
 
1320
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1321
+ #, fuzzy
1322
+ #| msgid "Hide organizer"
1323
  msgid "How to set weather"
1324
+ msgstr "Göm arrangör"
1325
 
1326
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1327
  msgid ""
3409
  msgid "Please select at-least one label!"
3410
  msgstr "Vänligen välj biljetter!"
3411
 
3412
+ #: app/features/fes.php:641 app/features/locations.php:348
3413
+ #: app/features/locations.php:462 app/features/popup.php:309
3414
+ #: app/features/popup/event.php:146
3415
+ msgid "Location Name"
3416
+ msgstr "Platsens namn"
3417
+
3418
+ #: app/features/fes.php:704 app/features/organizers.php:393
3419
+ #: app/features/popup.php:368
3420
+ #, fuzzy
3421
+ #| msgid "Organizer Name"
3422
+ msgid "Organizer Name"
3423
+ msgstr "Arrangörens namn"
3424
+
3425
  #: app/features/fes.php:1391
3426
  #, fuzzy
3427
  #| msgid "The event submitted. It will publish as soon as possible."
4528
  msgid "Choose one of saved locations or insert new one below."
4529
  msgstr "Välj en redan sparad plats eller lägg till en ny nedan."
4530
 
 
 
 
 
4531
  #: app/features/locations.php:349 app/features/popup/event.php:147
4532
  msgid "eg. City Hall"
4533
  msgstr "t.ex. Stadshus"
13009
  msgid "http://webnus.net"
13010
  msgstr ""
13011
 
13012
+ #, fuzzy
13013
+ #~| msgid "View Detail"
13014
+ #~ msgid "View details"
13015
+ #~ msgstr "Visa detaljer"
13016
+
13017
+ #, fuzzy
13018
+ #~| msgid "More Information"
13019
+ #~ msgid "More information about %s"
13020
+ #~ msgstr "Mer information"
13021
+
13022
+ #, fuzzy
13023
+ #~| msgid "Checkout"
13024
+ #~ msgid "Check for updates"
13025
+ #~ msgstr "Gå till kassa"
13026
+
13027
  #, fuzzy
13028
  #~| msgid "Notifications"
13029
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite-tr_TR.mo CHANGED
Binary file
languages/modern-events-calendar-lite-tr_TR.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
5
- "PO-Revision-Date: 2022-03-28 22:53+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: tr_TR\n"
@@ -109,51 +109,6 @@ msgstr ""
109
  msgid "Select Shortcode"
110
  msgstr "Yeni Kısa Kod Ekle"
111
 
112
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
113
- #, fuzzy
114
- #| msgid "View Detail"
115
- msgid "View details"
116
- msgstr "Ayrıntılara Bakın"
117
-
118
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
119
- #, fuzzy, php-format
120
- #| msgid "More Information"
121
- msgid "More information about %s"
122
- msgstr "Daha Fazla Bilgi"
123
-
124
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
125
- #, fuzzy
126
- #| msgid "Checkout"
127
- msgid "Check for updates"
128
- msgstr "Çıkış Yap"
129
-
130
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
131
- #, php-format
132
- msgctxt "the plugin title"
133
- msgid "The %s plugin is up to date."
134
- msgstr ""
135
-
136
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
137
- #, php-format
138
- msgctxt "the plugin title"
139
- msgid "A new version of the %s plugin is available."
140
- msgstr ""
141
-
142
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
143
- #, php-format
144
- msgctxt "the plugin title"
145
- msgid "Could not determine if updates are available for %s."
146
- msgstr ""
147
-
148
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
149
- #, php-format
150
- msgid "Unknown update checker status \"%s\""
151
- msgstr ""
152
-
153
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
154
- msgid "There is no changelog available."
155
- msgstr ""
156
-
157
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
158
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
159
  msgid "Rejected"
@@ -875,8 +830,10 @@ msgid ""
875
  msgstr ""
876
 
877
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
 
 
878
  msgid "How to set buddypress"
879
- msgstr ""
880
 
881
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
882
  msgid ""
@@ -911,8 +868,10 @@ msgid ""
911
  msgstr ""
912
 
913
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
 
 
914
  msgid "How to set category"
915
- msgstr ""
916
 
917
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
918
  #: app/features/events.php:218 app/features/events.php:3875
@@ -950,8 +909,10 @@ msgstr ""
950
 
951
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
952
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
 
 
953
  msgid "How to set cost"
954
- msgstr ""
955
 
956
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
957
  #: app/features/events.php:432 app/features/events.php:1283
@@ -1031,8 +992,10 @@ msgid ""
1031
  msgstr ""
1032
 
1033
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
 
 
1034
  msgid "How to set label"
1035
- msgstr ""
1036
 
1037
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1038
  #: app/features/events.php:4197 app/features/fes/form.php:1000
@@ -1123,8 +1086,10 @@ msgid ""
1123
  msgstr ""
1124
 
1125
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
 
 
1126
  msgid "How to set read more"
1127
- msgstr ""
1128
 
1129
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1130
  #: app/features/events.php:1519 app/features/events.php:1532
@@ -1145,8 +1110,10 @@ msgid ""
1145
  msgstr ""
1146
 
1147
  #: app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php:37
 
 
1148
  msgid "How to set next events module"
1149
- msgstr ""
1150
 
1151
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:36
1152
  #: app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php:36
@@ -1224,8 +1191,10 @@ msgid ""
1224
  msgstr ""
1225
 
1226
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
 
 
1227
  msgid "How to set QR code module"
1228
- msgstr ""
1229
 
1230
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1231
  msgid ""
@@ -1235,8 +1204,10 @@ msgid ""
1235
  msgstr ""
1236
 
1237
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
 
 
1238
  msgid "How to set register button"
1239
- msgstr ""
1240
 
1241
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1242
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
@@ -1288,8 +1259,10 @@ msgid ""
1288
  msgstr ""
1289
 
1290
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
 
 
1291
  msgid "How to set speaker"
1292
- msgstr ""
1293
 
1294
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1295
  msgid ""
@@ -1298,8 +1271,10 @@ msgid ""
1298
  msgstr ""
1299
 
1300
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
 
 
1301
  msgid "How to set tags"
1302
- msgstr ""
1303
 
1304
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1305
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
@@ -1341,8 +1316,10 @@ msgid ""
1341
  msgstr ""
1342
 
1343
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
 
 
1344
  msgid "How to set weather"
1345
- msgstr ""
1346
 
1347
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1348
  msgid ""
@@ -3411,6 +3388,19 @@ msgstr "Lütfen bilet seçin!"
3411
  msgid "Please select at-least one label!"
3412
  msgstr "Lütfen bilet seçin!"
3413
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3414
  #: app/features/fes.php:1391
3415
  #, fuzzy
3416
  #| msgid "The event submitted. It will publish as soon as possible."
@@ -4451,10 +4441,6 @@ msgid "Choose one of saved locations or insert new one below."
4451
  msgstr ""
4452
  "Kaydedilen konumlardan birini seçin veya aşağıya yeni bir konum ekleyin."
4453
 
4454
- #: app/features/locations.php:348 app/features/popup/event.php:146
4455
- msgid "Location Name"
4456
- msgstr "Konum İsmi"
4457
-
4458
  #: app/features/locations.php:349 app/features/popup/event.php:147
4459
  msgid "eg. City Hall"
4460
  msgstr "Örneğin. Visera binası"
@@ -12759,6 +12745,21 @@ msgstr "Visera Türkiye"
12759
  msgid "http://webnus.net"
12760
  msgstr ""
12761
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12762
  #, fuzzy
12763
  #~| msgid "Notifications"
12764
  #~ msgid "%s notification(s) sent."
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Modern Events Calendar\n"
4
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
5
+ "PO-Revision-Date: 2022-03-30 12:27+0430\n"
6
  "Last-Translator: Howard <howard@realtyna.com>\n"
7
  "Language-Team: \n"
8
  "Language: tr_TR\n"
109
  msgid "Select Shortcode"
110
  msgstr "Yeni Kısa Kod Ekle"
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
113
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
114
  msgid "Rejected"
830
  msgstr ""
831
 
832
  #: app/core/src/SingleBuilder/Widgets/EventAttendees/EventAttendees.php:36
833
+ #, fuzzy
834
+ #| msgid "Categories"
835
  msgid "How to set buddypress"
836
+ msgstr "Kategoriler"
837
 
838
  #: app/core/src/SingleBuilder/Widgets/EventBreadcrumbs/EventBreadcrumbs.php:55
839
  msgid ""
868
  msgstr ""
869
 
870
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:39
871
+ #, fuzzy
872
+ #| msgid "Hide location"
873
  msgid "How to set category"
874
+ msgstr "Konumu Gizle"
875
 
876
  #: app/core/src/SingleBuilder/Widgets/EventCategories/EventCategories.php:47
877
  #: app/features/events.php:218 app/features/events.php:3875
909
 
910
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:37
911
  #: app/core/src/SingleBuilder/Widgets/EventCountdown/EventCountdown.php:37
912
+ #, fuzzy
913
+ #| msgid "Hide location"
914
  msgid "How to set cost"
915
+ msgstr "Konumu Gizle"
916
 
917
  #: app/core/src/SingleBuilder/Widgets/EventCost/EventCost.php:47
918
  #: app/features/events.php:432 app/features/events.php:1283
992
  msgstr ""
993
 
994
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:39
995
+ #, fuzzy
996
+ #| msgid "Hide location"
997
  msgid "How to set label"
998
+ msgstr "Konumu Gizle"
999
 
1000
  #: app/core/src/SingleBuilder/Widgets/EventLabels/EventLabels.php:48
1001
  #: app/features/events.php:4197 app/features/fes/form.php:1000
1086
  msgstr ""
1087
 
1088
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:38
1089
+ #, fuzzy
1090
+ #| msgid "Categories"
1091
  msgid "How to set read more"
1092
+ msgstr "Kategoriler"
1093
 
1094
  #: app/core/src/SingleBuilder/Widgets/EventMoreInfo/EventMoreInfo.php:48
1095
  #: app/features/events.php:1519 app/features/events.php:1532
1110
  msgstr ""
1111
 
1112
  #: app/core/src/SingleBuilder/Widgets/EventNextOccurrences/EventNextOccurrences.php:37
1113
+ #, fuzzy
1114
+ #| msgid "Show social network module"
1115
  msgid "How to set next events module"
1116
+ msgstr "Sosyal ağ modülünü göster"
1117
 
1118
  #: app/core/src/SingleBuilder/Widgets/EventNextPrevious/EventNextPrevious.php:36
1119
  #: app/core/src/SingleBuilder/Widgets/EventRelated/EventRelated.php:36
1191
  msgstr ""
1192
 
1193
  #: app/core/src/SingleBuilder/Widgets/EventQrCode/EventQrCode.php:37
1194
+ #, fuzzy
1195
+ #| msgid "Show social network module"
1196
  msgid "How to set QR code module"
1197
+ msgstr "Sosyal ağ modülünü göster"
1198
 
1199
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:36
1200
  msgid ""
1204
  msgstr ""
1205
 
1206
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:37
1207
+ #, fuzzy
1208
+ #| msgid "Hide organizer"
1209
  msgid "How to set register button"
1210
+ msgstr "Organizatörü gizle"
1211
 
1212
  #: app/core/src/SingleBuilder/Widgets/EventRegisterButton/EventRegisterButton.php:48
1213
  #: app/libraries/main.php:7523 app/libraries/main.php:7570
1259
  msgstr ""
1260
 
1261
  #: app/core/src/SingleBuilder/Widgets/EventSpeakers/EventSpeakers.php:38
1262
+ #, fuzzy
1263
+ #| msgid "Hide organizer"
1264
  msgid "How to set speaker"
1265
+ msgstr "Organizatörü gizle"
1266
 
1267
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:39
1268
  msgid ""
1271
  msgstr ""
1272
 
1273
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:40
1274
+ #, fuzzy
1275
+ #| msgid "Hide location"
1276
  msgid "How to set tags"
1277
+ msgstr "Konumu Gizle"
1278
 
1279
  #: app/core/src/SingleBuilder/Widgets/EventTags/EventTags.php:46
1280
  #: app/skins/single/default.php:152 app/skins/single/m1.php:336
1316
  msgstr ""
1317
 
1318
  #: app/core/src/SingleBuilder/Widgets/EventWeather/EventWeather.php:37
1319
+ #, fuzzy
1320
+ #| msgid "Hide organizer"
1321
  msgid "How to set weather"
1322
+ msgstr "Organizatörü gizle"
1323
 
1324
  #: app/core/src/SingleBuilder/Widgets/RSVPForm/RSVPForm.php:57
1325
  msgid ""
3388
  msgid "Please select at-least one label!"
3389
  msgstr "Lütfen bilet seçin!"
3390
 
3391
+ #: app/features/fes.php:641 app/features/locations.php:348
3392
+ #: app/features/locations.php:462 app/features/popup.php:309
3393
+ #: app/features/popup/event.php:146
3394
+ msgid "Location Name"
3395
+ msgstr "Konum İsmi"
3396
+
3397
+ #: app/features/fes.php:704 app/features/organizers.php:393
3398
+ #: app/features/popup.php:368
3399
+ #, fuzzy
3400
+ #| msgid "Organizer Name"
3401
+ msgid "Organizer Name"
3402
+ msgstr "Organizatörler İsmi"
3403
+
3404
  #: app/features/fes.php:1391
3405
  #, fuzzy
3406
  #| msgid "The event submitted. It will publish as soon as possible."
4441
  msgstr ""
4442
  "Kaydedilen konumlardan birini seçin veya aşağıya yeni bir konum ekleyin."
4443
 
 
 
 
 
4444
  #: app/features/locations.php:349 app/features/popup/event.php:147
4445
  msgid "eg. City Hall"
4446
  msgstr "Örneğin. Visera binası"
12745
  msgid "http://webnus.net"
12746
  msgstr ""
12747
 
12748
+ #, fuzzy
12749
+ #~| msgid "View Detail"
12750
+ #~ msgid "View details"
12751
+ #~ msgstr "Ayrıntılara Bakın"
12752
+
12753
+ #, fuzzy
12754
+ #~| msgid "More Information"
12755
+ #~ msgid "More information about %s"
12756
+ #~ msgstr "Daha Fazla Bilgi"
12757
+
12758
+ #, fuzzy
12759
+ #~| msgid "Checkout"
12760
+ #~ msgid "Check for updates"
12761
+ #~ msgstr "Çıkış Yap"
12762
+
12763
  #, fuzzy
12764
  #~| msgid "Notifications"
12765
  #~ msgid "%s notification(s) sent."
languages/modern-events-calendar-lite.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Modern Events Calendar Lite\n"
6
- "POT-Creation-Date: 2022-03-28 22:53+0430\n"
7
  "PO-Revision-Date: 2020-04-14 17:14+0430\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -94,46 +94,6 @@ msgstr ""
94
  msgid "Select Shortcode"
95
  msgstr ""
96
 
97
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:54
98
- msgid "View details"
99
- msgstr ""
100
-
101
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:77
102
- #, php-format
103
- msgid "More information about %s"
104
- msgstr ""
105
-
106
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:128
107
- msgid "Check for updates"
108
- msgstr ""
109
-
110
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:214
111
- #, php-format
112
- msgctxt "the plugin title"
113
- msgid "The %s plugin is up to date."
114
- msgstr ""
115
-
116
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:216
117
- #, php-format
118
- msgctxt "the plugin title"
119
- msgid "A new version of the %s plugin is available."
120
- msgstr ""
121
-
122
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:218
123
- #, php-format
124
- msgctxt "the plugin title"
125
- msgid "Could not determine if updates are available for %s."
126
- msgstr ""
127
-
128
- #: app/core/puc/Puc/v4p11/Plugin/Ui.php:224
129
- #, php-format
130
- msgid "Unknown update checker status \"%s\""
131
- msgstr ""
132
-
133
- #: app/core/puc/Puc/v4p11/Vcs/PluginUpdateChecker.php:100
134
- msgid "There is no changelog available."
135
- msgstr ""
136
-
137
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
138
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
139
  msgid "Rejected"
@@ -3148,6 +3108,17 @@ msgstr ""
3148
  msgid "Please select at-least one label!"
3149
  msgstr ""
3150
 
 
 
 
 
 
 
 
 
 
 
 
3151
  #: app/features/fes.php:1391
3152
  msgid "Event submitted. It will publish as soon as possible."
3153
  msgstr ""
@@ -4120,10 +4091,6 @@ msgstr ""
4120
  msgid "Choose one of saved locations or insert new one below."
4121
  msgstr ""
4122
 
4123
- #: app/features/locations.php:348 app/features/popup/event.php:146
4124
- msgid "Location Name"
4125
- msgstr ""
4126
-
4127
  #: app/features/locations.php:349 app/features/popup/event.php:147
4128
  msgid "eg. City Hall"
4129
  msgstr ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: Modern Events Calendar Lite\n"
6
+ "POT-Creation-Date: 2022-03-30 12:26+0430\n"
7
  "PO-Revision-Date: 2020-04-14 17:14+0430\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
94
  msgid "Select Shortcode"
95
  msgstr ""
96
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  #: app/core/src/Books/Book.php:106 app/features/ix.php:275
98
  #: app/libraries/main.php:7833 app/libraries/main.php:7860
99
  msgid "Rejected"
3108
  msgid "Please select at-least one label!"
3109
  msgstr ""
3110
 
3111
+ #: app/features/fes.php:641 app/features/locations.php:348
3112
+ #: app/features/locations.php:462 app/features/popup.php:309
3113
+ #: app/features/popup/event.php:146
3114
+ msgid "Location Name"
3115
+ msgstr ""
3116
+
3117
+ #: app/features/fes.php:704 app/features/organizers.php:393
3118
+ #: app/features/popup.php:368
3119
+ msgid "Organizer Name"
3120
+ msgstr ""
3121
+
3122
  #: app/features/fes.php:1391
3123
  msgid "Event submitted. It will publish as soon as possible."
3124
  msgstr ""
4091
  msgid "Choose one of saved locations or insert new one below."
4092
  msgstr ""
4093
 
 
 
 
 
4094
  #: app/features/locations.php:349 app/features/popup/event.php:147
4095
  msgid "eg. City Hall"
4096
  msgstr ""
mec-init.php CHANGED
@@ -68,7 +68,10 @@ class MEC
68
  }
69
 
70
  // Initialize Auto Update Feaature
71
- if($factory->getPRO()) $factory->load_auto_update();
 
 
 
72
 
73
  // Registering MEC actions
74
  $factory->load_actions();
68
  }
69
 
70
  // Initialize Auto Update Feaature
71
+ if($factory->getPRO()) {
72
+ define('MEC_API_URL', 'https://webnus.net/api/v3');
73
+ $factory->load_auto_update();
74
+ }
75
 
76
  // Registering MEC actions
77
  $factory->load_actions();
modern-events-calendar-lite.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://webnus.net/modern-events-calendar/
5
  * Description: An awesome plugin for events calendar
6
  * Author: Webnus
7
- * Version: 6.4.8
8
  * Text Domain: modern-events-calendar-lite
9
  * Domain Path: /languages
10
  * Author URI: http://webnus.net
@@ -29,11 +29,9 @@ if(!defined('MECEXEC'))
29
 
30
  /** Plugin Base Name **/
31
  define('MEC_BASENAME', plugin_basename(__FILE__)); // modern-events-calendar/mec.php
32
-
33
- define('MEC_API_URL', 'https://webnus.net/api/v3');
34
 
35
  /** Plugin Version **/
36
- define('MEC_VERSION', '6.4.8');
37
 
38
  /** Include Webnus MEC class if not included before **/
39
  if(!class_exists('MEC')) require_once MEC_ABSPATH.'mec-init.php';
4
  * Plugin URI: http://webnus.net/modern-events-calendar/
5
  * Description: An awesome plugin for events calendar
6
  * Author: Webnus
7
+ * Version: 6.4.9
8
  * Text Domain: modern-events-calendar-lite
9
  * Domain Path: /languages
10
  * Author URI: http://webnus.net
29
 
30
  /** Plugin Base Name **/
31
  define('MEC_BASENAME', plugin_basename(__FILE__)); // modern-events-calendar/mec.php
 
 
32
 
33
  /** Plugin Version **/
34
+ define('MEC_VERSION', '6.4.9');
35
 
36
  /** Include Webnus MEC class if not included before **/
37
  if(!class_exists('MEC')) require_once MEC_ABSPATH.'mec-init.php';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://webnus.net
4
  Tags: Event, Events, Calendar, Booking, Schedule, Organizer, Venue
5
  Requires at least: 4.0.0
6
  Tested up to: 5.9
7
- Stable tag: 6.4.8
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -472,6 +472,10 @@ You can see [plugin documentation](https://webnus.net/dox/modern-events-calendar
472
 
473
  == Changelog ==
474
 
 
 
 
 
475
  = 6.4.8 – 28 March 2022 =
476
  - Fixed: No event found issue in special conditions
477
 
4
  Tags: Event, Events, Calendar, Booking, Schedule, Organizer, Venue
5
  Requires at least: 4.0.0
6
  Tested up to: 5.9
7
+ Stable tag: 6.4.9
8
  Requires PHP: 5.6
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
472
 
473
  == Changelog ==
474
 
475
+ = 6.4.9 – 30 March 2022 =
476
+ - Fixed: Some minor issue.
477
+ - Removed: PUC folder
478
+
479
  = 6.4.8 – 28 March 2022 =
480
  - Fixed: No event found issue in special conditions
481