ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video …) - Version 8.8.2

Version Description

Download this release

Release Info

Developer nico23
Plugin Icon 128x128 ARVE Advanced Responsive Video Embedder (YouTube, Vimeo, HTML5 Video …)
Version 8.8.2
Comparing to
See all releases

Code changes from version 8.9.5 to 8.8.2

Files changed (171) hide show
  1. CHANGELOG.md +945 -0
  2. LICENSE.txt +5 -0
  3. admin/arve-shortcode-ui.js +2 -2
  4. admin/{class-nextgenthemes-plugin-updater.php → class-edd-sl-plugin-updater.php} +1 -1
  5. admin/functions-admin.php +59 -31
  6. admin/functions-licensing.php +23 -43
  7. admin/html-settings-page.php +13 -27
  8. advanced-responsive-video-embedder.php +13 -6
  9. composer.lock +0 -184
  10. public/functions-enqueue.php +0 -13
  11. public/functions-html-output.php +1 -1
  12. public/functions-shortcode-filters.php +40 -60
  13. public/functions-shortcodes.php +41 -61
  14. readme.txt → readme.md +55 -72
  15. readme/01-top.md +25 -0
  16. readme/10-description-features.md +21 -0
  17. readme/12-description-supported-providers.md +44 -0
  18. readme/13-description-reviews.md +17 -0
  19. readme/19-description-features-pro-intro.md +2 -0
  20. readme/20-description-features-pro.md +21 -0
  21. readme/25-description-features-amp.md +11 -0
  22. readme/35-description-thanks.md +13 -0
  23. readme/50-installation-faq-screenshots.md +40 -0
  24. readme/html/01-top.html +18 -0
  25. readme/html/10-description-features.html +22 -0
  26. readme/html/12-description-supported-providers.html +45 -0
  27. readme/html/13-description-reviews.html +19 -0
  28. readme/html/19-description-features-pro-intro.html +1 -0
  29. readme/html/20-description-features-pro.html +22 -0
  30. readme/html/25-description-features-amp.html +12 -0
  31. readme/html/35-description-thanks.html +16 -0
  32. readme/html/50-installation-faq-screenshots.html +43 -0
  33. readme/prep/description-perfectdropinreplacement.md +11 -0
  34. readme/prep/description-reasons.html +9 -0
  35. readme/prep/description-whatitis.md +6 -0
  36. shared/class-arve-vimeo.php +402 -0
  37. shared/functions-shared.php +52 -73
  38. vendor/autoload.php +0 -7
  39. vendor/composer/ClassLoader.php +0 -445
  40. vendor/composer/LICENSE +0 -21
  41. vendor/composer/autoload_classmap.php +0 -9
  42. vendor/composer/autoload_namespaces.php +0 -9
  43. vendor/composer/autoload_psr4.php +0 -11
  44. vendor/composer/autoload_real.php +0 -52
  45. vendor/composer/autoload_static.php +0 -39
  46. vendor/composer/installed.json +0 -172
  47. vendor/composer/installers/CHANGELOG.md +0 -86
  48. vendor/composer/installers/CONTRIBUTING.md +0 -24
  49. vendor/composer/installers/LICENSE +0 -19
  50. vendor/composer/installers/README.md +0 -221
  51. vendor/composer/installers/_config.yml +0 -1
  52. vendor/composer/installers/phpunit.xml.dist +0 -25
  53. vendor/composer/installers/src/Composer/Installers/AglInstaller.php +0 -21
  54. vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php +0 -9
  55. vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php +0 -11
  56. vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php +0 -49
  57. vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php +0 -9
  58. vendor/composer/installers/src/Composer/Installers/BaseInstaller.php +0 -136
  59. vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php +0 -126
  60. vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php +0 -9
  61. vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php +0 -82
  62. vendor/composer/installers/src/Composer/Installers/ChefInstaller.php +0 -11
  63. vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php +0 -10
  64. vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php +0 -34
  65. vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php +0 -11
  66. vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php +0 -13
  67. vendor/composer/installers/src/Composer/Installers/CraftInstaller.php +0 -35
  68. vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php +0 -21
  69. vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php +0 -10
  70. vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php +0 -50
  71. vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php +0 -16
  72. vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php +0 -16
  73. vendor/composer/installers/src/Composer/Installers/ElggInstaller.php +0 -9
  74. vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php +0 -12
  75. vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php +0 -29
  76. vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php +0 -10
  77. vendor/composer/installers/src/Composer/Installers/FuelInstaller.php +0 -11
  78. vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php +0 -9
  79. vendor/composer/installers/src/Composer/Installers/GravInstaller.php +0 -30
  80. vendor/composer/installers/src/Composer/Installers/HuradInstaller.php +0 -25
  81. vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php +0 -11
  82. vendor/composer/installers/src/Composer/Installers/Installer.php +0 -200
  83. vendor/composer/installers/src/Composer/Installers/ItopInstaller.php +0 -9
  84. vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php +0 -15
  85. vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php +0 -18
  86. vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php +0 -11
  87. vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php +0 -10
  88. vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php +0 -9
  89. vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php +0 -27
  90. vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php +0 -9
  91. vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php +0 -10
  92. vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php +0 -10
  93. vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php +0 -9
  94. vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php +0 -16
  95. vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php +0 -11
  96. vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php +0 -37
  97. vendor/composer/installers/src/Composer/Installers/MakoInstaller.php +0 -9
  98. vendor/composer/installers/src/Composer/Installers/MauticInstaller.php +0 -25
  99. vendor/composer/installers/src/Composer/Installers/MayaInstaller.php +0 -33
  100. vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php +0 -50
  101. vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php +0 -111
  102. vendor/composer/installers/src/Composer/Installers/ModxInstaller.php +0 -12
  103. vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php +0 -57
  104. vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php +0 -46
  105. vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php +0 -24
  106. vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php +0 -14
  107. vendor/composer/installers/src/Composer/Installers/OxidInstaller.php +0 -59
  108. vendor/composer/installers/src/Composer/Installers/PPIInstaller.php +0 -9
  109. vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php +0 -11
  110. vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php +0 -11
  111. vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php +0 -21
  112. vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php +0 -32
  113. vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php +0 -29
  114. vendor/composer/installers/src/Composer/Installers/Plugin.php +0 -17
  115. vendor/composer/installers/src/Composer/Installers/PortoInstaller.php +0 -9
  116. vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php +0 -10
  117. vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php +0 -11
  118. vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php +0 -63
  119. vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php +0 -24
  120. vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php +0 -10
  121. vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php +0 -10
  122. vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php +0 -22
  123. vendor/composer/installers/src/Composer/Installers/SMFInstaller.php +0 -10
  124. vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php +0 -60
  125. vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php +0 -35
  126. vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php +0 -25
  127. vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php +0 -49
  128. vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php +0 -26
  129. vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php +0 -16
  130. vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php +0 -38
  131. vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php +0 -12
  132. vendor/composer/installers/src/Composer/Installers/TuskInstaller.php +0 -14
  133. vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php +0 -9
  134. vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php +0 -10
  135. vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php +0 -49
  136. vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php +0 -10
  137. vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php +0 -9
  138. vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php +0 -12
  139. vendor/composer/installers/src/Composer/Installers/YawikInstaller.php +0 -32
  140. vendor/composer/installers/src/Composer/Installers/ZendInstaller.php +0 -11
  141. vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php +0 -10
  142. vendor/composer/installers/src/bootstrap.php +0 -13
  143. vendor/composer/installers/tests/Composer/Installers/Test/AsgardInstallerTest.php +0 -80
  144. vendor/composer/installers/tests/Composer/Installers/Test/BitrixInstallerTest.php +0 -75
  145. vendor/composer/installers/tests/Composer/Installers/Test/CakePHPInstallerTest.php +0 -114
  146. vendor/composer/installers/tests/Composer/Installers/Test/CraftInstallerTest.php +0 -83
  147. vendor/composer/installers/tests/Composer/Installers/Test/DokuWikiInstallerTest.php +0 -90
  148. vendor/composer/installers/tests/Composer/Installers/Test/GravInstallerTest.php +0 -63
  149. vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php +0 -552
  150. vendor/composer/installers/tests/Composer/Installers/Test/MayaInstallerTest.php +0 -62
  151. vendor/composer/installers/tests/Composer/Installers/Test/MediaWikiInstallerTest.php +0 -67
  152. vendor/composer/installers/tests/Composer/Installers/Test/OctoberInstallerTest.php +0 -67
  153. vendor/composer/installers/tests/Composer/Installers/Test/OntoWikiInstallerTest.php +0 -84
  154. vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php +0 -44
  155. vendor/composer/installers/tests/Composer/Installers/Test/PiwikInstallerTest.php +0 -63
  156. vendor/composer/installers/tests/Composer/Installers/Test/SiteDirectInstallerTest.php +0 -120
  157. vendor/composer/installers/tests/Composer/Installers/Test/SyDESInstallerTest.php +0 -82
  158. vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php +0 -65
  159. vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php +0 -80
  160. vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php +0 -64
  161. vendor/composer/installers/tests/bootstrap.php +0 -4
  162. vendor/vimeo/vimeo-api/.styleci.yml +0 -19
  163. vendor/vimeo/vimeo-api/CHANGELOG.md +0 -19
  164. vendor/vimeo/vimeo-api/LICENSE +0 -177
  165. vendor/vimeo/vimeo-api/README.md +0 -254
  166. vendor/vimeo/vimeo-api/autoload.php +0 -29
  167. vendor/vimeo/vimeo-api/certificates/vimeo-api.pem +0 -47
  168. vendor/vimeo/vimeo-api/src/Vimeo/Exceptions/ExceptionInterface.php +0 -9
  169. vendor/vimeo/vimeo-api/src/Vimeo/Exceptions/VimeoRequestException.php +0 -9
  170. vendor/vimeo/vimeo-api/src/Vimeo/Exceptions/VimeoUploadException.php +0 -9
  171. vendor/vimeo/vimeo-api/src/Vimeo/Vimeo.php +0 -598
CHANGELOG.md ADDED
@@ -0,0 +1,945 @@
1
+
2
+ ## Changelog ##
3
+
4
+ * [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/arve-pro/changelog/)
5
+ * [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/)
6
+
7
+ **I could really use some positive reviews. It has been over 6 month without a positive review.** The top level menu that was complained about a lot has been removed. I am working on a big update that will make ARVE even better with automatic detection of aspect ratios, better caching and lots of improved code.
8
+
9
+ ### 2018-02-12 - 8.8.2 ###
10
+
11
+ * Fix: Issue with the new Video API class.
12
+
13
+ ### 2018-02-12 - 8.8.1 ###
14
+
15
+ * Fix: `Can’t use function return value in write context`, white screen of deaths type error from the last update.
16
+
17
+ ### 2018-02-12 - 8.8.0 ###
18
+
19
+ * New: Added options fields for Vimeo API used in upcoming addons.
20
+ * Improved: Removed NextGenThemes top level menu and ads page because to many complaints.
21
+ * Improved: Moved licensing settings page to 'settings' menu.
22
+
23
+ ### 2018-02-02 - 8.7.8 ###
24
+
25
+ * No longer try to guess and spam autoplay parameters for general iframe embeds.
26
+ * Fix: Google drive embeds not working.
27
+
28
+ ### 2018-01-09 - 8.7.7 ###
29
+
30
+ * New: `duration` shortcode attribute and dialog entry.
31
+ * Fixed: Corrected some dead links inside the plugin.
32
+ * Improved: Added `muted`, `controls` and `loop` to shortcode UI dialog for HTML5 videos.
33
+ * Improved: Removed video file extension check so any file can be used `[arve mp4="http://example.com/some-file" webm="http://example.com/some-other-file" /]`. Useful for example to embed files hosted on IPFS that do have a cryptic hash instead of a human readable filename.
34
+
35
+ ### 2017-12-20 - 8.7.6 ###
36
+
37
+ * Fix license activation now working correctly.
38
+ * Corrected link in readme.
39
+
40
+ ### 2017-12-19 - 8.7.5 ###
41
+
42
+ * Maybe fix license activation in some rare cases.
43
+
44
+ ### 2017-12-17 - 8.7.4 ###
45
+
46
+ * Fix: Removed URL validation because it fails with some weird URLs.
47
+
48
+ ### 2017-12-13 - 8.7.3 ###
49
+
50
+ * Updated EDD Plugin Updater class.
51
+ * Fixed some links in the readme.
52
+
53
+ ### 2017-08-16 - 8.7.2 ###
54
+
55
+ * Fix: Same Video with different start times in lightboxes.
56
+
57
+ ### 2017-07-12 - 8.7.1 ###
58
+
59
+ * Fix: Throw no PHP notice on admin when WP_DEBUG is enabled.
60
+ * Fix: Fix related to upcoming Pro Addon update and private vimeo videos.
61
+
62
+ ### 2017-07-10 - 8.7.0 ###
63
+
64
+ * Fix: web.facebook.com/... video urls not getting detected
65
+
66
+ ### 2017-06-17 - 8.6.6 ###
67
+
68
+ * Fix: Message dismissal not working.
69
+
70
+ ### 2017-06-17 - 8.6.5 ###
71
+
72
+ * Fix: Added `allow-presentation` to iframe sandbox to fix Chrome 59 not loading iframes. Thanks njs
73
+ * Improved: Admin message and dashboard ad size reduced, added links to dashboard widget, settings page ad is now sidebar-like on big screens.
74
+
75
+ ### 2017-06-15 - 8.6.4 ###
76
+
77
+ * Fix: Removes a .video-wrap element from ARVE's HTML that is added by a theme and caused videos to be invisible.
78
+ * Fix: PHP error in some cases.
79
+ * Improved: If mode is not supported fall back to normal without error message (for now).
80
+ * Improved: Changed embed URL for Alugha
81
+
82
+ ### 2017-05-17 - 8.6.3 ###
83
+
84
+ * Fixed issue with width and height attributes
85
+
86
+ ### 2017-05-17 - 8.6.2 ###
87
+
88
+ * Fixed license activation issues.
89
+
90
+ ### 2017-05-10 - 8.6.1 ###
91
+
92
+ * Minor code change.
93
+
94
+ ### 2017-05-10 - 8.6.0 ###
95
+
96
+ * New: `controlslist` shortcode attribute and option to control the Chrome HTML5 player `nodownload` is default, it hides the download button on the player.
97
+
98
+ ### 2017-05-05 - 8.5.2 ###
99
+
100
+ * Improved: Embed Liveleak with https. Remove the default parameter.
101
+
102
+ ### 2017-05-05 - 8.5.1 ###
103
+
104
+ * Improved: Mark Liveleak that it not requires flash anymore. This makes the 'disable links' option of the Pro Addon possible. Becomes very handy as Liveleak annoyingly opens new tabs when clicking outside the play button.
105
+
106
+ ### 2017-05-04 - 8.5.0 ###
107
+
108
+ * New: playsinline, and muted attributes for HTML5 video.
109
+ * Data attributes are no longer prefixed with -arve and various other code improvements.
110
+
111
+ ### 2017-05-01 - 8.4.2 ###
112
+
113
+ * Code improvements for addons.
114
+
115
+ ### 2017-04-30 - 8.4.1 ###
116
+
117
+ * Fix password protected videos on vimeo (sandbox allow-forms)
118
+
119
+ ### 2017-04-25 - 8.4.0 ###
120
+
121
+ * Improved: The 'Take over [video]' option was renamed to 'Use ARVE for HTML5 video embeds' and is now enabled by default. (It never only was the shortcode but also HTML5 video file URLs on their own lines)
122
+ * New: Support for embedding Dropbox hosted HTML5 video files (mp4, webm, ogv). Needs the 'Use ARVE for HTML5 video embeds' to be activated. (Beta feature)
123
+ * Fix: YouTube only playlist URLs embedded without https.
124
+
125
+ ### 2017-04-11 - 8.3.1 ###
126
+
127
+ * Fix: Global CSS id was not correctly added.
128
+
129
+ ### 2017-04-10 - 8.2.5 ###
130
+
131
+ * Fix: Some Brightcove URLs were not correctly detected.
132
+ * Improved: Better automated tests and some minor code enhancements.
133
+ * Improved: Some texts, new link to the settings page below parameter field.
134
+ * Improved: How aspect ratio is handled for HTML 5 video. If not set (default) the browser will detect it based on the video file that is embedded.
135
+ * Improved: Gives the aligned videos a top margin of `0.4em` to try to align them better with text.
136
+ * Improved: The 'by ARVE' promotion links do now open in a new tab/window.
137
+
138
+ ### 2017-03-27 - 8.2.4 ###
139
+
140
+ * Fixed: YouTube cards generate a youtube-nocookie.com url to a channel when the -nocookie.url is used to embedding. tltr; This is actually a YouTube bug but this is fixed in ARVE now by using the normal YouTube url for embeds. I like the additional 'privacy' it provides by not setting cookies as long as the user not plays a video. But considering this is not the first time YouTube has bugs related to this feature, I switched this back and forth in the past, I am considering just not using it anymore.
141
+
142
+ ### 2017-03-25 - 8.2.3 ###
143
+
144
+ * Fixed: 'Disable links' feature from the Pro Addon was not working.
145
+ * Some minor code improvements.
146
+
147
+ ### 2017-03-20 - 8.2.2 ###
148
+
149
+ * Moved the ARVE menu below the settings menu (where most plugins are), sorry xberg. I got complaints about global menus and I like to keep the global Nextgenthemes menu but 2 global menus is a bit to much. I have given the Nextgenthemes menu a video icon now. I hope this is a good compromise.
150
+ * Improved: Finished the German translation.
151
+ * Improved: Made the ARVE Pro promotion on the settings menu close-able, hopefully less people get offended.
152
+
153
+ ### 2017-03-20 - 8.2.0 ###
154
+
155
+ * Fixed: Plugin action links on installed plugin screen
156
+ * Fixed: CSS specificity issues by adding a `id="arve"` to the entire document and based all the CSS on `#arve`. This will end a long time battle with themes styles without using bad practices. If you have custom styles overwriting ARVE CSS you may need to increase specificity (or use `!important`).
157
+ * Improved: styles and scripts and now served minified unless `WP_DEBUG` is set.
158
+ * Improved: styles are now only loaded (to the bottom) when there is a video on the page.
159
+ * Improved: Settings title is now 'Advanced Responsive Video Embedder Settings' again rather then just ARVE.
160
+
161
+ ### 2017-03-12 - 8.1.1 ###
162
+
163
+ * Improved: Added ARVE to menu below plugins so it can be easy found.
164
+ * Improved: Used `wp_add_inline_style` function for inline styles.
165
+ * Removed some code that is not needed.
166
+
167
+ ### 2017-03-03 - 8.0.9 ###
168
+
169
+ * Fix: Admin page error for messing file.
170
+
171
+ ### 2017-03-02 - 8.0.8 ###
172
+
173
+ * Improved: Updated EDD Plugin Updater class
174
+
175
+ ### 2017-02-24 - 8.0.7 ###
176
+
177
+ * Fix: Options not correctly put in debug-info.
178
+ * Improved: Make License input fields a bit wider.
179
+ * Improved: Some small code improvements.
180
+
181
+ ### 2017-02-12 - 8.0.5 ###
182
+
183
+ * Fix: Small size of lightbox when using the [Pro Addon](https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/).
184
+
185
+ ### 2017-02-11 - 8.0.4 ###
186
+
187
+ * CSS improved
188
+ * Updated Addon Updater Class
189
+
190
+ ### 2017-01-03 - 8.0.2 ###
191
+
192
+ * Fix: Errors on settings page when Pro Addon is not installed.
193
+
194
+ ### 2016-12-17 - 8.0.1 ###
195
+
196
+ * Fix: `undefined function is_plugin_active()` error caused by some plugins
197
+ * Improved: Show actual meaningful message if PHP is lower then the required 5.3. Bluehost (oh proud wp.org recommended host) seems to show customers a **wrong** php version in the config and lets them hang on insecure end of life versions.
198
+
199
+ ### 2016-12-09 - Pro Addon 3.6.8 ###
200
+
201
+ * Fix: Wrongly tagged version.
202
+
203
+ ### 2016-12-07 - Pro Addon 3.6.7 ###
204
+
205
+ * Fix: Some thumbnails not loading.
206
+
207
+ ### 2016-12-07 - 8.0.0 ###
208
+
209
+ * Fix: 'Take over [video] shortcode' option not working. (Always acted as on, default is off)
210
+ * Fix: [video] override putting out a error for not reason.
211
+ * Improved code: Dropped 2 micro classes in favor for antonymous functions.
212
+
213
+ ### 2016-12-07 - Pro Addon 3.6.6 ###
214
+
215
+ * Improved: Load the CSS always in the `<head>`, this enables to change its CSS with the new CSS customizer in WP 4.7 and may also fix issues with caching plugins.
216
+
217
+ ### 2016-11-30 - 7.9.23 ###
218
+
219
+ * Fix: Ending up with wrong URLs by disabling auto shortening of URLs when pasting them into the shortcode-ui dialog.
220
+ * Improved: Enable SSL verify for API calls.
221
+ * Improved: License action return messages.
222
+
223
+ ### 2016-11-30 - Pro Addon 3.6.4 ###
224
+
225
+ * Fix: Autoplay without setting
226
+
227
+ ### 2016-11-30 - 7.9.21 ###
228
+
229
+ * Fix: Fatal error.
230
+
231
+ ### 2016-11-29 - Pro Addon 3.6.4 ###
232
+
233
+ * Improved: Licensing field removed from the pro options tab (now in main plugin). This enables resetting pro options settings without deleting license key.
234
+ * Fix: Autoplay not applied property.
235
+ * Fix: HTML5 not autoplaying in lightbox.
236
+ * Improved: New default option for inview lazyload is 'On iOS, Android and Desktops when no thumbnail is found'.
237
+ * Improved: New installations will show a message guiding users to activation screen.
238
+
239
+ ### 2016-11-29 - 7.9.19
240
+
241
+ * Fix: 'Embed Video' Button not working with Advanced Custom Fields (Possibly fixed other 3rd party editor plugins compatibility issues as well) Thanks to David Trenear!
242
+ * Fix: Facebook URL detection for usernames with dots in them.
243
+ * Fix: Invisible HTML5 Lazyload-lightbox videos
244
+ * Fix: Shortcode UI script enqueued to early causing JS erros on admin pages.
245
+ * Improved: Error messages for missing mandatory attributes.
246
+ * Improved: Moved some code logic of the pro addon out of the main plugin.
247
+ * New: `disable_flash` parameter mainly for unlisted providers will be treated as general iframe embeds. With set to true this will enable you to use the 'disable_links' feature of the pro plugin.
248
+ * New: Filters for new cool things coming up
249
+ * New: License page, relocated options page
250
+ * New: YouTube URL detection for playlists without starting video `https://www.youtube.com/playlist?list=PL3Esg-ZzbiUmeSKBAQ3ej1hQxDSsmnp-7`
251
+ * Possible Fix: Videos displayed to small in some Browsers
252
+
253
+ ### 2016-10-29 - 7.9.8 and Pro Addon 3.3.4 ###
254
+
255
+ * Fix: Fix lightbox thumbnail
256
+ * Improved: CSS
257
+
258
+ ### 2016-10-28 - Pro Addon 3.3.1 ###
259
+
260
+ * Fix: Fix thumbnails being displayed wrong in IE.
261
+
262
+ ### 2016-10-28 - Pro Addon 3.3.0 ###
263
+
264
+ * Fix: Restored broken update notifications and semi auto updates.
265
+
266
+ ### 2016-10-28 - 7.9.7 ###
267
+
268
+ * New: Wistia Support.
269
+ * Improved: Allow HTML in title attribute.
270
+ * Improved: Force more CSS Styles.
271
+
272
+ ### 2016-10-27 - Pro Addon 3.2.9 ###
273
+
274
+ * Fix: Twitch API failing (needs Client-ID now)
275
+
276
+ ### 2016-10-27 - Pro Addon 3.2.8 ###
277
+
278
+ * Improved: oembed error message
279
+ * Improved: Skip srcset function for PHP 5.3 and lower
280
+
281
+ ### 2016-10-27 - 7.9.6 ###
282
+
283
+ * Fix: Thumbnail not correctly applied to <video> tag for self hosted videos.
284
+ * Improved: CSS for self hosted videos.
285
+ * Improved: Enabled detection for rubtube and VK and show them as supported providers, even they where supported as general iframe embeds before.
286
+
287
+ ### 2016-10-25 - Pro Addon 3.2.7 ###
288
+
289
+ * Fix: 2 clicks needed to play lazyloaded video on desktops
290
+
291
+ ### 2016-10-24 - Pro Addon 3.2.5 ###
292
+
293
+ * Fix: JavaScript error related to abandoned Script.
294
+ * Fix: Custom Thumbnails not applied.
295
+
296
+ ### 2016-10-24 - 7.9.5 ###
297
+
298
+ * Fix: Custom Thumbnails not applied.
299
+ * Fix: Shortcode UI script only loaded if the plugin is active.
300
+
301
+ ### 2016-10-23 - 7.9.4 and Pro Addon 3.2.3 ###
302
+
303
+ * Fix: Multiple issues about the new HTML5 video embedding (still experimental)
304
+
305
+ ### 2016-10-23 - Pro Addon 3.2.2 ###
306
+
307
+ * Fix: 'Disable Links' not working.
308
+
309
+ ### 2016-10-23 - Pro Addon 3.2.0 ###
310
+
311
+ * Fix: Issue with lazyload and AJAX.
312
+ * Fix: W3TC issue by using yet another lazyload method. Final this time?
313
+ * Fix: YouTube Thumbnail detection when there are no HD images.
314
+ * Improved: Code used to cache thumbnails, this may improve improve performance.
315
+ * Improved: Lots code restructured and improved.
316
+ * New: New Lazyload mode setting to prevent "two touched needed to play video on mobiles" issue. Its also
317
+ * New: Facebook thumbnail detection.
318
+
319
+ ### 2016-10-23 - 7.9.2 ###
320
+
321
+ * Fix: Brightcove Autoplay issue.
322
+ * Fix: Liveleak thumbnail detection issues.
323
+ * Fix: Parameters not being added.
324
+ * Fix: Twitch single videos not using https
325
+ * Fix: Vevo marked to require flash to make it work again.
326
+ * Improved: Better dialog with better description and links about the shortcake UI plugin.
327
+ * Improved: Facebook embed method.
328
+ * Improved: Lots code restructured and improved.
329
+ * Improved: Parameters are always possible no matter the provider.
330
+ * Improved: Restructure of the plugin, abandon OOP mostly.
331
+ * Improved: Revive saving of last setting page tab.
332
+ * New: "Image Cache Time" setting on the setting page. Thumbnail URLs form the media gallery can now be cached with transients, that may improve performance.
333
+ * New: Support for self hosted videos (experimental)
334
+
335
+ ### 2016-10-03 - Pro Addon 2.5.2 ###
336
+
337
+ * Fix: Force button styles to make sure themes styles get overwritten.
338
+
339
+ ### Pro Addon 2.5.1 beta - 2016-09-21 ###
340
+
341
+ * New: Thumbnail support for Liveleak.
342
+ * Fix: Update loop.
343
+
344
+ ### Pro Addon 2.5.0 beta - 2016-09-21 ###
345
+
346
+ * Improved: Thumbnails detection.
347
+ * Improved how license keys are handled when set in wp-config.php.
348
+
349
+ ### 7.5.1 beta - 2016-09-21 ###
350
+
351
+ * Fix: Liveleak seems to require flash for some videos.
352
+
353
+ ### 7.5.0 beta - 2016-09-21 ###
354
+
355
+ * Fix: Youku URL detection and aspect ratio.
356
+ * Improved: `.arve-inner` css class in favor of some more specific classes combining styles.
357
+ * Improved: removed TGMPA class because it was causing horrible issues.
358
+
359
+ ### Pro Addon 2.4.5 beta - 2016-09-19 ###
360
+
361
+ * New: Adds the ability to define the pro key in your wp-config.php file with `define( 'ARVE_PRO_KEY', 'your_key_here' )`. When activating the plugin it now also tries to activate its license when a key is defined.
362
+
363
+ ### 7.4.3 beta - 2016-09-19 ###
364
+
365
+ * Fix: Deal with fluid-vids script messing with this plugin, making videos invisible.
366
+
367
+ ### Pro Addon 2.4.0 beta - 2016-09-18 ###
368
+
369
+ * New: Adds Yahoo auto thumbnail and title support
370
+
371
+ ### 7.4.1 beta - 2016-09-18 ###
372
+
373
+ * New: Adds Yahoo Video support
374
+
375
+ ### 7.3.2 beta - 2016-09-17 ###
376
+
377
+ * Fix: Remove security="restricted" from iframes to make IE work again.
378
+
379
+ ### 7.3.1 beta - 2016-09-17 ###
380
+
381
+ * Fix: Get rid of undefined index warnings when pro addon is not active.
382
+
383
+ ### 7.3.0 beta - 2016-09-17 ###
384
+
385
+ * Improved: Show admin notices only to users who have the 'activate_plugins' capability.
386
+ * Improved: Added notice to the readme for the TGMPA cause white screen of death issue.
387
+
388
+ ### Pro Addon 2.3.2 - 2016-09-17 ###
389
+
390
+ * Possible Fix for not centered play button.
391
+
392
+ ### 7.2.13 beta - 2016-09-16 ###
393
+
394
+ * Fix: Set fitvidsignore class and remove the Fitvids container to prevent it from messing with ARVE embeds.
395
+ * Fix: Remove possible width and height parameters on iframes to prevent scripts from messing with ARVE embeds.
396
+
397
+ ### 7.2.12 beta - 2016-09-16 ###
398
+
399
+ * Improved: replaced static:: with self:: to support older php versions.
400
+
401
+ ### 7.2.10 beta - 2016-09-15 ###
402
+
403
+ * Fix: [iframe] shortcode not working.
404
+
405
+ ### Pro Addon 2.3.1 beta - 2016-09-15 ###
406
+
407
+ * New: Added support for displaying title of videos on top of the thumbnail images.
408
+ * New: Responsive thumbnails using srcset the browser takes the best image resolution for the users device. (HTML5 srcset)
409
+ * New: Choose between 3 hover styles for the thumbnails: 'zoom image' (new default), 'rectangle move in' (old), or 'none' where only the play button changes.
410
+ * New: Choose beween 2 play button styles.
411
+ * Fix: Screenfull error.
412
+ * Fix: License API call.
413
+ * Improved: Rectangle animation.
414
+ * Improved: Updated 'lity' lightbox script.
415
+ * Improved: Thumbnail handling.
416
+ * Improved: Removed the 'Lazyload Maximal Width' setting to simplify things (there still is 'Maximal Width' and 'Aligned Maximal Width').
417
+ * Improved: Removed the 'Fake Thumbnail' feature because the entire idea was bad and real thumbnails should be used.
418
+ * Improved: Updated EDD_SL_Plugin_Updater Class
419
+ * Dropped PHP Class.
420
+
421
+ ### 7.2.9 beta - 2016-09-15 ###
422
+
423
+ * New: Recommend and guide to users to install [Shortcake (Shortcode UI)](https://de.wordpress.org/plugins/shortcode-ui/) via [TGMPA](http://tgmpluginactivation.com/)
424
+ * New: Amazing catch-all shortcode [arve url="..."] that can be used for all supported providers and even with any iframe `src` if all unlisted providers that support responsive iframe embeds.
425
+ * New: Support for kla.tv.
426
+ * New: Support for youku (fulfilled request)
427
+ * New: New Advanced Shortcode Dialog with nice UI for choose thumbnails from your WP Media Gallery, very detailed helping texts, display of default settings, hiding of fields based on need ...
428
+ * New: WYSIWYG Preview of Shortcodes.
429
+ * New: The two above features need the [Shortcake (Shortcode UI)](https://de.wordpress.org/plugins/shortcode-ui/) Plugin that is maybe moving into WordPress core later.
430
+ * New: A default alignment can now be set in the Settings page. (fulfilled request)
431
+ * New: 'iframe_name' shortcode parameter for `<iframe name="xxxxx"`, useful when wanting to target ARVE embeds with links. (fulfilled request)
432
+ * New: ARVE is now SEO friendly giving you the ability to add some schema.org microdata. Googles tools should not complain anymore if you add title, description and upload date. (fulfilled request)
433
+ * Deleted Language files in favor of [wordpress.org managed translations](https://translate.wordpress.org/projects/wp-plugins/advanced-responsive-video-embedder/dev) volunteers are welcome ;)
434
+ * Improved: Got rid of PHP globals.
435
+ * Improved: Added image upload dialog to settings page and shortcode dialog.
436
+ * Improved: Better CSS to overwrite unwanted theme styles.
437
+ * Improved: Lots if code improvements.
438
+ * Improved: SSL enabled and forced when supported by provoders.
439
+ * Fix: Blury Vimeo thumbnails
440
+ * Fix: Prevent Dashboard Widget conflicts with WP Helpers plugin (possibly others). Thanks to Steve Bruner.
441
+ * Fix: Issue with unwanted borders showing on embeds.
442
+ * Fix: youtu.be URLs now detected correct in shortcode dialog.
443
+ * Fix: All Vevo URLs are now detected correctly.
444
+ * Fix: Bool options settings.
445
+ * Removed blip because the service was shutdown.
446
+ * Removed myvideo.de because the service was restructured.
447
+
448
+ ### 6.4.0 ###
449
+
450
+ * Fix: Always prevent scrollbars.
451
+
452
+ ### Pro Addon 1.4.4
453
+
454
+ * Fixed: Infinite update loop.
455
+ * Improved: Updated Updater class.
456
+
457
+ ### Pro Addon 1.4.3
458
+
459
+ * Fixed: rectangle overflow issue.
460
+
461
+ ### Pro Addon 1.4.2
462
+
463
+ * Fixed: license activation problems.
464
+
465
+ ### Pro Addon 1.4.1
466
+
467
+ * Fixed critical bug for auto updates. Please [click here](https://nextgenthemes.com/support/915/add-wont-update-wordpress-says-download-failed-unauthorized?show=1053#a1053) if your update fails.
468
+
469
+ ### 6.3.9 ###
470
+
471
+ * Fix: Facebook (now really, hopefully).
472
+
473
+ ### 6.3.8 ###
474
+
475
+ * Fix: Facebook in lazyload modes.
476
+
477
+ ### 6.3.7 ###
478
+
479
+ * New: Facebook video support.
480
+
481
+ ### 6.3.4 ###
482
+
483
+ * Fix?: Iframes are now created with a fixed 853x480 size in feeds, this probably will fix some feedreaders incorrectly or not displaying videos.
484
+
485
+ ### 6.3.3 ###
486
+
487
+ * Improved: Disabled file URL detection as this solution was bad.
488
+
489
+ ### 6.3.2 ###
490
+
491
+ * Fixed/Improved: [arve_tests] shortcode.
492
+
493
+ ### Pro Addon 1.4 ###
494
+
495
+ * Fix: Fake thumbnails now work for lazyload-lightbox mode.
496
+
497
+ ### 6.3.1 & Pro Addon 1.4.0 ###
498
+
499
+ * Improved: Testing Shortcode.
500
+ * Improved: When there is no thumbnail lazyload mode will fall back to normal mode.
501
+ * New: Added support for alugha.com.
502
+
503
+ ### Pro Addon 1.1.5 ###
504
+
505
+ * New: Added setting and parameter grow="yes/no" to control the grow-on-click behaviour that was introduced in 6.0 to your liking.
506
+
507
+ ### 6.1.2 ###
508
+
509
+ * Improved: Added thumbnail and grow parameters to the Shortcode Creator Dialog.
510
+ * Improved: Updated screenshots.
511
+
512
+ ### Pro Addon 1.1.3 ###
513
+
514
+ * Improved: link-linghtbox mode does not force a newline for the link anymore.
515
+ * Fix: Autoplaying in Background when navigating back in browser.
516
+
517
+ ### Pro Addon 1.1.0 ###
518
+
519
+ * Fix: Various issues reguarding lightbox mode.
520
+
521
+ ### 6.1.0 ###
522
+
523
+ * Fix: Messages about pro addon removed when it is installed.
524
+
525
+ ### Pro Addon 1.0.7 ###
526
+
527
+ * Fix: Video start playing again invisible when closeing lightbox with ESC.
528
+
529
+ ### 6.0.6 Beta ###
530
+
531
+ * Improved: Adds a "Debug Info" tab to the settings page copy pasting when there is are issue.
532
+
533
+ ### Pro Addon 1.0.6 ###
534
+
535
+ * Remove development functions.
536
+
537
+ ### Pro Addon 1.0.4 ###
538
+
539
+ * Possibly Fixes SSL issues during activation.
540
+
541
+ ### Pro Addon 1.0.3 ###
542
+
543
+ * Fix: Maxwidth issue.
544
+
545
+ ### 6.0.5 Beta ###
546
+
547
+ * Fix: Foreach php error
548
+
549
+ ### 6.0.4 Beta ###
550
+
551
+ * Fix: Youtube URL with starttime.
552
+
553
+ ### 6.0.3 Beta, Pro Addon 1.0.3 ###
554
+
555
+ * Fix: Max-width output issue.
556
+
557
+ ### 6.0.2 Beta - 2015/07/24 - work time: ~60 days ###
558
+
559
+ Please check the [migration guide](https://nextgenthemes.com/?p=1875) about upgrading to this version.
560
+
561
+ * Fix: Jackpack Shortcode Embeds module incompatibility.
562
+ * New: URL parameters are now possible via URLs used for embeds (passed to iframe src).
563
+ * Changed: URL parameters to controll arve features are now 'arve[mode]=' style instead of 'arve-mode='.
564
+ * Improved: Enabled HTTPS support for Viddler and MyVideo.
565
+ * Improved: TED Talks shortcodes now support the 'lang' parameter.
566
+ * Improved: New embed URLs for MyVideo.
567
+ * Improved: Better Twitch support.
568
+ * Improved: Dailymotion HTTPS support.
569
+ * Improved: To reduce CSS and keep it simpler aspect ratios are now handled with inline styles.
570
+ * Improved: Moved to complete WP Settings API.
571
+ * Improved: Tabbed and extendable options page.
572
+ * Improved: Massive code improvements.
573
+ * Improved: Replaced all Admin Messages that caused bugs and annoyance for users with a dashboard Widget.
574
+
575
+ ### Pro Addon 1.0.1 ###
576
+
577
+ * New: link-lightbox mode creates a link the triggers a lightbox with a video on click.
578
+
579
+ ### Pro Addon 0.9.7 ###
580
+
581
+ * Fix: Lazyload videos not growing when global maxwidth setting was set.
582
+ * Improved: Finally got rid of the jQuery Colorbox depency, the Pro Addon now includes lity for lightboxes.
583
+
584
+ ### Pro Addon 0.9.5 ###
585
+
586
+ * Fix: Licensing Activation should now finally work correcty. (Multisite may need some tweaks)
587
+ * Fix: Pissibility of unwanted margins/paddings on the transparent button.
588
+
589
+ ### Pro Addon 0.9.0 ###
590
+
591
+ * Changed: 'Lazyload' mode now grows the video size after thumbnails are clicked.
592
+ * Changed: 'Thumbnail' mode is now called 'Lazyload -> Colorbox' and has a sightly different behavior.
593
+ * New: 'Lazyload -> Fullscreen' mode to instandly go Fullscreen after clicking the Lazyloaded preview image.
594
+ * New: 'Lazyload -> Fixed' Fullscreen/-window mode (extremly experimental) with ability to resize fixed video on screen while reading the page.
595
+ * New: 'thumbnail' parameter, take image URL or a ID to a media libray image to be used as thumbnail image.
596
+ * Improved: Enabled fake thumbnails for USTREAM and myvideo.de.
597
+ * Depricated: Providers that only support `<object>` are from now only supported in normal mode, will switch automatically. This effects only recorded Twitch videos, flickr and veoh.
598
+
599
+ ### 5.3.4 Beta - 2015/03/15 ###
600
+
601
+ * Fix: ID detection for youtu.be and dai.ly URLs, will now work with https://(www.) as well.
602
+ * Fix: Myvideo.de videos with 7 and 8 digit IDs.
603
+
604
+ ### 5.3.3 Beta ###
605
+
606
+ * Fix: Workarround for a currently ongoing YouTube issue causing YouTube embeds to fail with erros on mobile devives. This was not a 'bug' caused by this plugin btw.
607
+
608
+ ### 5.3.2 Beta ###
609
+
610
+ * Fix: Die 'Array' errors DIE!
611
+
612
+ ### 5.3.1 Beta ###
613
+
614
+ * Improved: Added shortcode example to youtube starttime examples.
615
+ * Improved: Clarified from who the admin messages come.
616
+
617
+ ### 5.3.0 Beta ###
618
+
619
+ * **If you get a error '... array ...' please reset your options on the options page and redo the options you had before**
620
+ * Fix: '... expected array' error when saving options on some cases. If you get a error please reset your
621
+ * Fix: ttp://youtu.be/... shortlinks are not detected correctly in the shortcode creator dialog.
622
+ * Improved: Ported code to WordPress Plugin Boilerplate 3.0 style.
623
+ * Improved: Switched vevo and xtube from object to iframe embeds.
624
+ * Improved: Lots of minor code enhancements.
625
+
626
+ ### 5.1.1 ###
627
+
628
+ * Fix: Removed mixed content warnungs for youtube and vimeo.
629
+ * Translation updates.
630
+
631
+ ### 5.1.0 ###
632
+
633
+ * New: Vimeo HTTPS support (works automatically if your site is HTTPS)
634
+
635
+ ### 5.0.2 Beta ###
636
+
637
+ * Improved: Marked as working with WP 4.0
638
+
639
+ ### 5.0.1 Beta ###
640
+
641
+ * Fix: Options var error
642
+
643
+ ### 5.0.0 Beta ###
644
+
645
+ * Fix: Max-width options should now work in all circumstances
646
+ * Improved: Various CSS improvements
647
+ * Improved: Changed play overlay image to a Google+ style image
648
+
649
+ ### 4.9.0 Beta ###
650
+
651
+ * Improved: All Javascript is loaded from files now and they are only loaded when there are embeds on the page. This improves page load times on pages with no embeds.
652
+ * Fix: Removed autohide#1 from default YouTube Parameters since it causes a YouTube bug in the HTML5 player.
653
+
654
+ ### 4.8.0 ###
655
+
656
+ * Updated: Spanish translation now 80% complete. Thanks Xarkitu!
657
+ * Improved: Do not load admin dialog when doing AJAX
658
+
659
+ ### 4.7.0 ###
660
+
661
+ * Fix: Iframe code detection
662
+
663
+ ### 4.6.0 ###
664
+
665
+ * Improvement: PHP required version lowered to 5.2.4
666
+
667
+ ### 4.5.4 ###
668
+
669
+ * Fix: Save of custom URL parameters
670
+ * New: CHANGES.md file for github updater
671
+
672
+ ### 4.5.3 ###
673
+
674
+ * Fix: Fatal PHP Error on activation.
675
+ * Fix: Readme spellings.
676
+
677
+ ### 4.5.0 ###
678
+
679
+ * Fix: Minor options page spelling and field association fixes.
680
+ * Fix: Added Lazyload to mode select in the shortcode dialog.
681
+ * New: 4players.de support.
682
+ * New: Added parameter input to the shortcode dialog.
683
+ * Improved: Default options are no longer stored in the database.
684
+ * Improved: Transparency fade animation on thumbnail hover.
685
+ * Improved: No more ugly URL hash (#arve-load-video) after clicking links.
686
+ * Improved: Dropped IE 8 support for Lazyload mode.
687
+ * Improved: Lots of code improvements.
688
+
689
+ ### 4.3.0 ###
690
+
691
+ * New: Added Iframe examples.
692
+ * Improved: Limited support for self hosted Videos. Dialog will detect URLS that end up with .webm .mp4 .ogg creates a iframe embed code with them. This is probaly not the best way to do this but it works. Real HTML5 video tag embeds may come later.
693
+ * Improved: Redesigned the button to look like WordPress and move it out of the Tiny MCE Editor. This enables you to embed videos in the code editor as well.
694
+ * Improved: Redesigned the Shortcode Creator dialog. Less clutter, more compact and it now includes the recently introduced `aspect_ratio`.
695
+
696
+ ### 4.2.0 ###
697
+
698
+ * New: As requested: `aspect_ratio` parameter
699
+ * Fix: Vimeo playing problems in Firefox.
700
+
701
+ ### 4.1.1 ###
702
+
703
+ * Fix: Play button not showing.
704
+
705
+ ### 4.1.0 ###
706
+
707
+ * New: Vine support
708
+ * New: Support for starttime from youtube URLs
709
+ * Improved: Include play image inside CSS, -1 http request may speed things up
710
+ * Improved: Tests
711
+
712
+ ### 4.0.0 ###
713
+
714
+ * New: Trigger-able debug output.
715
+ * Improved: The `[arve_tests]` shortcode now includes alignment and maxwidth tests
716
+ * Fix: Thumbnail image now displayed when using lazyload with `maxwidth` parameter
717
+
718
+ ### 3.9.9 ###
719
+
720
+ * Improved: Allowing `maxwidth` parameter in `lazyload` mode
721
+
722
+ ### 3.9.8 ###
723
+
724
+ * Fix: Thumbnail not opening Colorbox
725
+
726
+ ### 3.9.7 ALPHA! ###
727
+
728
+ * New: I am proud to introduce the new 'lazyload' mode. ARVEs new default mode. Load Images only and load the Video only on click. Like Google+ without the title.
729
+ * New: Added MPORA support
730
+ * New: Added (real) thumbnail support for Collegehumor, Twitch, FunnyOrDie, MPORA
731
+ * New: `[arve_tests]` shortcode that is used to test the plugin and provide examples.
732
+ * New: `[arve_supported]` shortcode probably of no use for users. It will generate the a list of providers with supported features.
733
+ * Improved: Enabled fake thumbnails for Comedycentral, Gametrailers and Spike
734
+ * Improved: Remote API calls and handling their errors.
735
+ * Improved: Get high resolution thumbnails from YouTube if available.
736
+ * Improved: The evil admin message is now only shown once to users who can delete plugins (Admins and the like) and if the plugin was activated a week ago or longer.
737
+ * Improved: Lots of smaller code improvements.
738
+
739
+ ### 3.6.1 ###
740
+
741
+ * Fix: Register link in changelog.
742
+
743
+ ### 3.6.0 ###
744
+
745
+ * New: Thanks to [Ilya Grishkov](https://ilyagrishkov.com) thumbnail URLs for Vimeo, Blip and Dailymotion Playlists are now cached (by default 24hours) this drastically reduces page loading times for thumbnail embeds from these providers because it bypasses calling their APIs for that period.
746
+ * Fix: Thumbnails for YouTube playlists.
747
+ * Fix: Shortcode creator ID detection for iframes (src URL)
748
+ * Fix: Updated Dailymoton docs link on Options page
749
+ * Improved: Error messages are now all ready to be translated. Current Translation status: German 50%, French 50%, Spanish 84%. Register at [nextgenthemes.com](https://nextgenthemes.com/wp-login.php?action#register) and then login to [translate.nextgenthemes.com](https://translate.nextgenthemes.com) to help translate.
750
+
751
+ ### 3.5.2 ###
752
+
753
+ * New: Twitch.tv support
754
+ * New: Spanish Translation from Andrew Kurtis webhostinghub.com
755
+ * Improved: Support for `https://new.ted.com/...` URLs
756
+ * Improved: Some code improvements, among them IDs of hidden objects are now generated with a simple `static` counter instead of some random generated string.
757
+
758
+ ### 3.5.1 ###
759
+
760
+ * Fix: Bug causing the Shortcode Creator not detecting shortcode tags when customized
761
+ * Improved how embeds `<object>` embed codes are generated.
762
+ * Updated FAQ
763
+ * New: Xtube support (On request)
764
+
765
+ ### 3.5.0 ###
766
+
767
+ * New: Custom parameters!
768
+ * Fix: Youtube playlists now work correctly
769
+ * Fix: Translations are working again (incomplete German and French)
770
+ * Deprecated: `start` and `end` shortcode parametets should not be used anymore with youtube, instead use the new parameters feature like `[youtube id#"123456" parameters#"start#60 end#120"]`
771
+
772
+ ### 3.1.2 ###
773
+
774
+ * Fix: IE8 JavaScript errors
775
+ * Improved: The evil message at the admin.
776
+
777
+ ### 3.1.1 (github only) ###
778
+
779
+ * Improved: Added `px` suffix to values on options page
780
+
781
+ ### 3.1.0 (beta) ###
782
+
783
+ * New: Development versions now available via [Github Plugin Updater](https://github.com/afragen/github-updater) please install this to test cutting edge versions
784
+ * New: Introducing 'Align Maximal Width' option
785
+ * Fix: Invisible normal mode embeds with align
786
+ * Fix: Yahoo detection
787
+ * Fix: Kickstarter detection
788
+ * Fix: Daylimoition Playlist
789
+ * Fix: Colleghumor
790
+ * Improved: Screenshots updated
791
+ * Improved: Beginning process of provider based aspect ratios.
792
+ * Improved: Dailymotion playlists/jukeboxes now show Native thumbnails
793
+ * Improved: Iframe embed code detection with with single quoted `src#''`
794
+
795
+ ### 3.0.4 (beta) ###
796
+
797
+ * Javascript Fix
798
+
799
+ ### 3.0.0 (beta) ###
800
+
801
+ * New: Support for embedding via simply pasting of URLs into posts (need to be on their own line, no button or shortcodes needed)
802
+ * New: Thumbnails are now responsive
803
+ * New: Vevo support
804
+ * New: TED Talks support
805
+ * New: IGN support
806
+ * New: Kickstarter support
807
+ * Improved: request large thumbnail from vimeo instead of medium
808
+ * Improved: 'youtubelist' shortcode deprecated YouTube playlists are now handled via the normal youtube shortcode with support for starting video
809
+ * Improved: 'bliptv' shortcode deprecated on favor of 'blip' that uses the ids from blip.tv URLs instead of the ones from embed codes
810
+ * Improved: Moved code to newest Plugin Boilerplate
811
+ * Improved: Massive code improvements
812
+
813
+ ### 2.7.4 ###
814
+
815
+ * Fix: Dropped mb_detect_encoding now using just preg_match to support rare php setups.
816
+
817
+ ### 2.7.3 ###
818
+
819
+ * New: Added French Translation from Karel - neo7.fr
820
+
821
+ ### 2.7.2 ###
822
+
823
+ * Fix: Permissions for the button, now authors who
824
+
825
+ ### 2.7.0 ###
826
+
827
+ * Fix: Admin page capabilities
828
+ * Improved: Reintroduced the manual provider and ID input to be used then not detected correctly.
829
+
830
+ ### 2.6.4 ###
831
+
832
+ * Fix: Black bar issue. (Dropped IE6 hacks/workarounds)
833
+
834
+ ### 2.6.3 ###
835
+
836
+ * Fix: Normal embeds not sizing correctly
837
+ * New: Added scrolling#"no" to Iframes
838
+ * Improved: Init shortcodes at a late stage to dominate conflicts
839
+ * Improved: Improved Iframe parameter handling
840
+ * Improved: Metacafe, Myspace, Videojug are now handled via Iframe
841
+
842
+ ### 2.6.2 ###
843
+
844
+ * Fix: Objects open correctly in Colorbox
845
+ * Fix: Iframe autoplay parameters startign with '&'
846
+ * New: Added screenshot for options page
847
+ * Improved: Youtube Videos with now me embedded with the same protocol your website is on, meaning if your website is https youtube embeds will be in https as well.
848
+
849
+ ### 2.6.1 ###
850
+
851
+ * Fix: Colorbox args script not having colorbox in depenency array
852
+ * Fix: Maxwidth shortcode generator field now has default value#""
853
+ * Fix: Blip embed code detection
854
+
855
+ ### 2.6.0 ###
856
+
857
+ * Improved: Move to a class structure with help of the great https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate
858
+ * Improved: Some smaller Improvements
859
+ * New: Shortcode Dialog now has Autoplay option
860
+ * New: Guessing of autoplay parameters for the Iframe shortcodes.
861
+ * Hopefully fixed issues with other plugins and some themes, Javascript was messed up and is fine now.
862
+
863
+ ### 2.5 ###
864
+
865
+ * Fix: Objects in Colorboxes, now always have width and height 100%
866
+ * new shortcode attribute 'autoplay' for single videos
867
+ * support for start at given time for vimeo
868
+
869
+ ### 2.4 ###
870
+
871
+ * propper licence
872
+ * Class renamed
873
+
874
+ ### 2.3 beta ###
875
+
876
+ * fix for maxwidth wrapper no maxwidth option is set
877
+
878
+ ### 2.1 beta ###
879
+
880
+ * Security and general code improvements
881
+ * Added autoplay option
882
+
883
+ ### 2.0 beta ###
884
+
885
+ * added Yahoo!
886
+ * spike bugfix
887
+ * small improvements to code
888
+ * removed the fixed mode
889
+
890
+ ### 1.9 beta ###
891
+
892
+ * added youtubes modestbranding mode
893
+ * added missing veoh id detection
894
+ * fixed vimeo id detection
895
+ * added now custom thumbnail feature
896
+ * fixed the align class creation
897
+ * renamed the shortcode dialog
898
+ * removed the text field for teh fixed width option (beginning of the removal process)
899
+
900
+ ### 1.8 beta ###
901
+
902
+ * added new tinymce botton with dialog to detect ids from URL's and embed codes and automatically create shortcodes
903
+ * removed the image resizer (Faster and more secure for servers), now uses just CSS. Polyfill for for IE to support 'background-size' included.
904
+ * changed the play overlay image to a bigger one
905
+ * added comedycentral, spike
906
+ * removed google video, it died
907
+ * lots of improvements and fixes
908
+
909
+ ### 1.7 ###
910
+
911
+ * fixed gametrailers and collegehumor
912
+ * fixed options handling for updateded options
913
+ * added ustream support
914
+ * renamed a function to prevent issues with other plugins
915
+
916
+ ### 1.6 ###
917
+
918
+ * corrected readme errors, typos and added better description to shortcode options
919
+
920
+ ### 1.5 ###
921
+
922
+ * lots of code improvements, now uses wordpress settings api, and propper sanitising
923
+
924
+ ### 1.4.5 ###
925
+
926
+ * added flickr video, archive.org
927
+ * inproved how flashvars were implemented
928
+
929
+ ### 1.4.4 ###
930
+
931
+ * fixes
932
+
933
+ ### 1.4.2 ###
934
+
935
+ * Options dialog overhaul
936
+ * replaced Fancybox with Colorbox
937
+
938
+ ### 1.0 ###
939
+
940
+ * Removed Services that went down over the years
941
+ * Changed the way shortcodes were implemented from regexp to wordpress 'add shortcode' function
942
+
943
+ ### 0.1 ###
944
+
945
+ * Started by improving the Wordpress 'Video Embedder Plugin' but now complete new code
LICENSE.txt CHANGED
@@ -1,3 +1,8 @@
1
GNU GENERAL PUBLIC LICENSE
2
Version 3, 29 June 2007
3
1
+ class-arve-vimeo.php
2
+ Vimeo Video Post Lite
3
+ https://wordpress.org/plugins/codeflavors-vimeo-video-post-lite/
4
+ GPL 2.0 or later
5
+
6
GNU GENERAL PUBLIC LICENSE
7
Version 3, 29 June 2007
8
admin/arve-shortcode-ui.js CHANGED
@@ -17,9 +17,9 @@ function arve_extract_url( changed, collection, shortcode ) {
17
return;
18
}
19
20
- if( val.match(/src="?([^\s"]+)/) ) {
21
22
- var test_url = val.match(/src="?([^\s"]+)/),
23
only_url = test_url && test_url[1];
24
25
input.val( only_url ).trigger( 'input' );
17
return;
18
}
19
20
+ if( val.match(/src="([^"]+)/) ) {
21
22
+ var test_url = val.match(/src="([^"]+)/),
23
only_url = test_url && test_url[1];
24
25
input.val( only_url ).trigger( 'input' );
admin/{class-nextgenthemes-plugin-updater.php → class-edd-sl-plugin-updater.php} RENAMED
@@ -9,7 +9,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
9
* @author Easy Digital Downloads
10
* @version 1.6.14
11
*/
12
- class Nextgenthemes_Plugin_Updater {
13
14
private $api_url = '';
15
private $api_data = array();
9
* @author Easy Digital Downloads
10
* @version 1.6.14
11
*/
12
+ class EDD_SL_Plugin_Updater {
13
14
private $api_url = '';
15
private $api_data = array();
admin/functions-admin.php CHANGED
@@ -2,20 +2,6 @@
2
3
function arve_action_admin_init_setup_messages() {
4
5
- if( defined( 'ARVE_PRO_VERSION' ) || defined( 'ARVE_AMP_VERSION' ) ) {
6
-
7
- $msg = sprintf(
8
- __( 'ARVE addons price change. Please read <a href="%s">Taking Business to a Serious Level - The Future NextGenThemes and ARVE.</a>.', ARVE_SLUG ),
9
- 'https://nextgenthemes.com/taking-business-to-a-serious-level-the-future-nextgenthemes-and-arve/'
10
- );
11
-
12
- new ARVE_Admin_Notice_Factory(
13
- 'price_change',
14
- "<p>$msg</p>",
15
- true
16
- );
17
- }
18
-
19
if( defined( 'ARVE_PRO_VERSION' ) && version_compare( ARVE_PRO_VERSION_REQUIRED, ARVE_PRO_VERSION, '>' ) ) {
20
21
$msg = sprintf(
@@ -23,7 +9,7 @@ function arve_action_admin_init_setup_messages() {
23
ARVE_PRO_VERSION_REQUIRED,
24
get_admin_url() . 'admin.php?page=nextgenthemes-licenses',
25
'https://nextgenthemes.com/support/',
26
- 'https://nextgenthemes.com/plugins/arve/documentation/installing-and-license-management/'
27
);
28
new ARVE_Admin_Notice_Factory( 'arve-pro-outdated', "<p>$msg</p>", false );
29
}
@@ -150,7 +136,7 @@ function arve_add_action_links( $links ) {
150
151
$extra_links['buy_pro_addon'] = sprintf(
152
'<a href="%s"><strong style="display: inline;">%s</strong></a>',
153
- 'https://nextgenthemes.com/plugins/arve-pro/',
154
__( 'Buy Pro Addon', ARVE_SLUG )
155
);
156
}
@@ -179,7 +165,7 @@ function arve_add_media_button() {
179
printf(
180
"<div id='arve-thickbox' style='display:none;'><p>$p1</p><p>$p2</p><p>$p3</p></div>",
181
nextgenthemes_admin_install_search_url( 'Shortcode+UI' ),
182
- esc_url( 'https://nextgenthemes.com/plugins/arve/documentation/' )
183
);
184
185
printf(
@@ -503,6 +489,8 @@ function arve_shortcodes_section_description() {
503
504
function arve_params_section_description() {
505
506
$desc = sprintf(
507
__( 'This parameters will be added to the <code>iframe src</code> urls, you can control the video players behavior with them. Please read <a href="%s" target="_blank">the documentation</a> on.',
508
ARVE_SLUG ),
@@ -517,7 +505,7 @@ function arve_params_section_description() {
517
<a target="_blank" href="https://developers.google.com/youtube/player_parameters">Youtube Parameters</a>,
518
<a target="_blank" href="http://www.dailymotion.com/doc/api/player.html#parameters">Dailymotion Parameters</a>,
519
<a target="_blank" href="https://developer.vimeo.com/player/embedding">Vimeo Parameters</a>,
520
- <a target="_blank" href="https://nextgenthemes.com/arve-pro/documentation">Vimeo Parameters</a>,
521
</p>
522
<?php
523
}
@@ -561,6 +549,43 @@ function arve_debug_section_description() {
561
include_once( plugin_dir_path( __FILE__ ) . 'html-debug-info.php' );
562
}
563
564
/**
565
*
566
*
@@ -573,28 +598,31 @@ function arve_validate_options_main( $input ) {
573
return array();
574
}
575
576
- $output['align'] = sanitize_text_field( $input['align'] );
577
- $output['mode'] = sanitize_text_field( $input['mode'] );
578
- $output['last_settings_tab'] = sanitize_text_field( $input['last_settings_tab'] );
579
- $output['controlslist'] = sanitize_text_field( $input['controlslist'] );
580
- $output['vimeo_api_token'] = sanitize_text_field( $input['vimeo_api_token'] );
581
582
- $output['always_enqueue_assets'] = ( 'yes' == $input['always_enqueue_assets'] ) ? true : false;
583
- $output['autoplay'] = ( 'yes' == $input['autoplay'] ) ? true : false;
584
- $output['iframe_flash'] = ( 'yes' == $input['iframe_flash'] ) ? true : false;
585
- $output['promote_link'] = ( 'yes' == $input['promote_link'] ) ? true : false;
586
- $output['wp_video_override'] = ( 'yes' == $input['wp_video_override'] ) ? true : false;
587
588
$output['wp_image_cache_time'] = (int) $input['wp_image_cache_time'];
589
590
if( (int) $input['video_maxwidth'] > 100 ) {
591
- $output['video_maxwidth'] = (int) $input['video_maxwidth'];
592
} else {
593
- $output['video_maxwidth'] = '';
594
}
595
596
if( (int) $input['align_maxwidth'] > 100 ) {
597
- $output['align_maxwidth'] = (int) $input['align_maxwidth'];
598
}
599
600
$options_defaults = arve_get_options_defaults( 'main' );
2
3
function arve_action_admin_init_setup_messages() {
4
5
if( defined( 'ARVE_PRO_VERSION' ) && version_compare( ARVE_PRO_VERSION_REQUIRED, ARVE_PRO_VERSION, '>' ) ) {
6
7
$msg = sprintf(
9
ARVE_PRO_VERSION_REQUIRED,
10
get_admin_url() . 'admin.php?page=nextgenthemes-licenses',
11
'https://nextgenthemes.com/support/',
12
+ 'https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/documentation/installing-and-license-management/'
13
);
14
new ARVE_Admin_Notice_Factory( 'arve-pro-outdated', "<p>$msg</p>", false );
15
}
136
137
$extra_links['buy_pro_addon'] = sprintf(
138
'<a href="%s"><strong style="display: inline;">%s</strong></a>',
139
+ 'http://nextgenthemes.com/downloads/advanced-responsive-video-embedder',
140
__( 'Buy Pro Addon', ARVE_SLUG )
141
);
142
}
165
printf(
166
"<div id='arve-thickbox' style='display:none;'><p>$p1</p><p>$p2</p><p>$p3</p></div>",
167
nextgenthemes_admin_install_search_url( 'Shortcode+UI' ),
168
+ esc_url( 'https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/documentation/' )
169
);
170
171
printf(
489
490
function arve_params_section_description() {
491
492
+ $url = 'https://nextgenthemes.com/advanced-responsive-video-embedder-pro/documentation';
493
+
494
$desc = sprintf(
495
__( 'This parameters will be added to the <code>iframe src</code> urls, you can control the video players behavior with them. Please read <a href="%s" target="_blank">the documentation</a> on.',
496
ARVE_SLUG ),
505
<a target="_blank" href="https://developers.google.com/youtube/player_parameters">Youtube Parameters</a>,
506
<a target="_blank" href="http://www.dailymotion.com/doc/api/player.html#parameters">Dailymotion Parameters</a>,
507
<a target="_blank" href="https://developer.vimeo.com/player/embedding">Vimeo Parameters</a>,
508
+ <a target="_blank" href="https://nextgenthemes.com/advanced-responsive-video-embedder-pro/documentation">Vimeo Parameters</a>,
509
</p>
510
<?php
511
}
549
include_once( plugin_dir_path( __FILE__ ) . 'html-debug-info.php' );
550
}
551
552
+ function arve_maybe_vimeo_oauth_update_trigger( $identifier, $secret ) {
553
+
554
+ if( empty( $identifier ) || empty( $secret ) ) {
555
+ return;
556
+ }
557
+
558
+ $options = arve_get_options();
559
+ $vimeo_oauth_token = get_option( 'arve_vimeo_oauth_token' );
560
+
561
+ if (
562
+ $options[ 'vimeo_client_identifier' ] !== $identifier ||
563
+ $options[ 'vimeo_client_secret' ] !== $secret ||
564
+ empty( $vimeo_oauth_token )
565
+ ) {
566
+ set_transient( 'arve_update_oauth_token', 'update_needed' );
567
+ }
568
+ }
569
+
570
+ function arve_update_vimeo_oauth_token() {
571
+
572
+ if ( ! get_transient( 'arve_update_oauth_token' ) ) {
573
+ delete_transient( 'arve_update_oauth_token' );
574
+ return;
575
+ }
576
+ delete_transient( 'arve_update_oauth_token' );
577
+
578
+ $vimeo = new ARVE_Vimeo;
579
+ $token = $vimeo->get_unauth_token();
580
+
581
+ if( ! is_wp_error( $token ) ) {
582
+ update_option( 'arve_vimeo_oauth_token', $token );
583
+ return __( 'Successfully set Vimeo oauth token', 'advanced-responsive-video-embedder' );
584
+ } else {
585
+ return $token->get_error_message();
586
+ }
587
+ }
588
+
589
/**
590
*
591
*
598
return array();
599
}
600
601
+ $output = array();
602
+
603
+ $output['align'] = sanitize_text_field( $input['align'] );
604
+ $output['mode'] = sanitize_text_field( $input['mode'] );
605
+ $output['last_settings_tab'] = sanitize_text_field( $input['last_settings_tab'] );
606
+ $output['controlslist'] = sanitize_text_field( $input['controlslist'] );
607
+ $output['vimeo_client_identifier'] = sanitize_text_field( $input['vimeo_client_identifier'] );
608
+ $output['vimeo_client_secret'] = sanitize_text_field( $input['vimeo_client_secret'] );
609
+
610
+ arve_maybe_vimeo_oauth_update_trigger( $output['vimeo_client_identifier'], $output['vimeo_client_secret'] );
611
612
+ $output['autoplay'] = ( 'yes' == $input['autoplay'] ) ? true : false;
613
+ $output['promote_link'] = ( 'yes' == $input['promote_link'] ) ? true : false;
614
+ $output['wp_video_override'] = ( 'yes' == $input['wp_video_override'] ) ? true : false;
615
616
$output['wp_image_cache_time'] = (int) $input['wp_image_cache_time'];
617
618
if( (int) $input['video_maxwidth'] > 100 ) {
619
+ $output['video_maxwidth'] = (int) $input['video_maxwidth'];
620
} else {
621
+ $output['video_maxwidth'] = '';
622
}
623
624
if( (int) $input['align_maxwidth'] > 100 ) {
625
+ $output['align_maxwidth'] = (int) $input['align_maxwidth'];
626
}
627
628
$options_defaults = arve_get_options_defaults( 'main' );
admin/functions-licensing.php CHANGED
@@ -114,7 +114,7 @@ function nextgenthemes_ads_page() { ?>
114
<div id="nextgenthemes-ads">
115
116
<?php if ( ! defined( 'ARVE_PRO_VERSION' ) ) : ?>
117
- <a href="https://nextgenthemes.com/plugins/arve-pro/">
118
<figure><img src="<?php echo $img_dir; ?>arve.svg" alt"ARVE"></figure>
119
<?php nextgenthemes_feature_list_html( ARVE_PATH . 'readme/html/20-description-features-pro.html' ); ?>
120
<span>Paid</span>
@@ -168,22 +168,19 @@ function nextgenthemes_get_products() {
168
169
$products = array(
170
'arve_pro' => array(
171
- 'name' => 'ARVE Pro',
172
- 'id' => 1253,
173
'type' => 'plugin',
174
'author' => 'Nicolas Jonas',
175
'url' => 'https://nextgenthemes.com/plugins/arve-pro/',
176
),
177
'arve_amp' => array(
178
- 'name' => 'ARVE AMP',
179
- 'id' => 16941,
180
'type' => 'plugin',
181
'author' => 'Nicolas Jonas',
182
'url' => 'https://nextgenthemes.com/plugins/arve-amp/',
183
),
184
'arve_random_video' => array(
185
'name' => 'ARVE Random Video',
186
- 'id' => 31933,
187
'type' => 'plugin',
188
'author' => 'Nicolas Jonas',
189
'url' => 'https://nextgenthemes.com/plugins/arve-random-video/',
@@ -397,13 +394,13 @@ function nextgenthemes_update_key_status( $product, $key ) {
397
update_option( "nextgenthemes_{$product}_key_status", $key );
398
}
399
function nextgenthemes_has_valid_key( $product ) {
400
- return ( 'valid' === nextgenthemes_get_key_status( $product ) ) ? true : false;
401
}
402
403
function nextgenthemes_api_update_key_status( $product, $key, $action ) {
404
405
$products = nextgenthemes_get_products();
406
- $key_status = nextgenthemes_api_action( $products[ $product ]['id'], $key, $action );
407
408
nextgenthemes_update_key_status( $product, $key_status );
409
}
@@ -453,15 +450,14 @@ function nextgenthemes_init_edd_updaters() {
453
function nextgenthemes_init_plugin_updater( $product ) {
454
455
// setup the updater
456
- new Nextgenthemes_Plugin_Updater(
457
apply_filters( 'nextgenthemes_api_url', 'https://nextgenthemes.com' ),
458
$product['file'],
459
array(
460
- 'version' => $product['version'],
461
- 'license' => nextgenthemes_get_key( $product['slug'] ),
462
- #'item_name' => $product['name'],
463
- 'item_id' => $product['id'],
464
- 'author' => $product['author']
465
)
466
);
467
}
@@ -470,14 +466,14 @@ function nextgenthemes_init_theme_updater( $product ) {
470
471
new EDD_Theme_Updater(
472
array(
473
- 'remote_api_url' => 'https://nextgenthemes.com',
474
- 'version' => $product['version'],
475
- 'license' => nextgenthemes_get_key( $product['slug'] ),
476
- 'item_id' => $product['name'],
477
- 'author' => $product['id'],
478
- 'theme_slug' => $product['slug'],
479
- 'download_id' => $product['download_id'], // Optional, used for generating a license renewal link
480
- #'renew_url' => $product['renew_link'], // Optional, allows for a custom license renewal link
481
),
482
array(
483
'theme-license' => __( 'Theme License', ARVE_SLUG ),
@@ -506,7 +502,7 @@ function nextgenthemes_init_theme_updater( $product ) {
506
);
507
}
508
509
- function nextgenthemes_api_action( $item_id, $key, $action ) {
510
511
if ( ! in_array( $action, array( 'activate', 'deactivate', 'check' ) ) ) {
512
wp_die( 'invalid action' );
@@ -514,16 +510,16 @@ function nextgenthemes_api_action( $item_id, $key, $action ) {
514
515
// data to send in our API request
516
$api_params = array(
517
- 'edd_action' => $action . '_license',
518
'license' => sanitize_text_field( $key ),
519
- 'item_id' => $item_id,
520
'url' => home_url()
521
);
522
523
// Call the custom API.
524
$response = wp_remote_post(
525
'https://nextgenthemes.com',
526
- array( 'timeout' => 15, 'sslverify' => true, 'body' => $api_params )
527
);
528
529
// make sure the response came back okay
@@ -588,13 +584,7 @@ function nextgenthemes_api_action( $item_id, $key, $action ) {
588
if ( empty( $message ) ) {
589
590
if ( empty( $license_data->license ) ) {
591
-
592
- $textarea_dump = arve_textarea_dump( $response );
593
-
594
- $message = sprintf(
595
- __( 'Error. Please report the following:<br> %s', ARVE_SLUG ),
596
- $textarea_dump
597
- );
598
} else {
599
$message = $license_data->license;
600
}
@@ -602,13 +592,3 @@ function nextgenthemes_api_action( $item_id, $key, $action ) {
602
603
return $message;
604
}
605
-
606
- function arve_dump( $var ) {
607
- ob_start();
608
- var_dump( $var );
609
- return ob_get_clean();
610
- }
611
-
612
- function arve_textarea_dump( $var ) {
613
- return sprintf( '<textarea style="width: 100%; height: 70vh;">%s</textarea>', esc_textarea( arve_dump( $var ) ) );
614
- }
114
<div id="nextgenthemes-ads">
115
116
<?php if ( ! defined( 'ARVE_PRO_VERSION' ) ) : ?>
117
+ <a href="https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/">
118
<figure><img src="<?php echo $img_dir; ?>arve.svg" alt"ARVE"></figure>
119
<?php nextgenthemes_feature_list_html( ARVE_PATH . 'readme/html/20-description-features-pro.html' ); ?>
120
<span>Paid</span>
168
169
$products = array(
170
'arve_pro' => array(
171
+ 'name' => 'Advanced Responsive Video Embedder Pro',
172
'type' => 'plugin',
173
'author' => 'Nicolas Jonas',
174
'url' => 'https://nextgenthemes.com/plugins/arve-pro/',
175
),
176
'arve_amp' => array(
177
+ 'name' => 'ARVE Accelerated Mobile Pages Addon',
178
'type' => 'plugin',
179
'author' => 'Nicolas Jonas',
180
'url' => 'https://nextgenthemes.com/plugins/arve-amp/',
181
),
182
'arve_random_video' => array(
183
'name' => 'ARVE Random Video',
184
'type' => 'plugin',
185
'author' => 'Nicolas Jonas',
186
'url' => 'https://nextgenthemes.com/plugins/arve-random-video/',
394
update_option( "nextgenthemes_{$product}_key_status", $key );
395
}
396
function nextgenthemes_has_valid_key( $product ) {
397
+ return ( 'valid' == nextgenthemes_get_key_status( $product ) ) ? true : false;
398
}
399
400
function nextgenthemes_api_update_key_status( $product, $key, $action ) {
401
402
$products = nextgenthemes_get_products();
403
+ $key_status = nextgenthemes_api_action( $products[ $product ]['name'], $key, $action );
404
405
nextgenthemes_update_key_status( $product, $key_status );
406
}
450
function nextgenthemes_init_plugin_updater( $product ) {
451
452
// setup the updater
453
+ new EDD_SL_Plugin_Updater(
454
apply_filters( 'nextgenthemes_api_url', 'https://nextgenthemes.com' ),
455
$product['file'],
456
array(
457
+ 'version' => $product['version'],
458
+ 'license' => nextgenthemes_get_key( $product['slug'] ),
459
+ 'item_name' => $product['name'],
460
+ 'author' => $product['author']
461
)
462
);
463
}
466
467
new EDD_Theme_Updater(
468
array(
469
+ 'remote_api_url' => 'https://nextgenthemes.com',
470
+ 'version' => $product['version'],
471
+ 'license' => nextgenthemes_get_key( $product['slug'] ),
472
+ 'item_name' => $product['name'],
473
+ 'author' => $product['author'],
474
+ 'theme_slug' => $product['slug'],
475
+ 'download_id' => $product['download_id'], // Optional, used for generating a license renewal link
476
+ #'renew_url' => $product['renew_link'], // Optional, allows for a custom license renewal link
477
),
478
array(
479
'theme-license' => __( 'Theme License', ARVE_SLUG ),
502
);
503
}
504
505
+ function nextgenthemes_api_action( $item_name, $key, $action ) {
506
507
if ( ! in_array( $action, array( 'activate', 'deactivate', 'check' ) ) ) {
508
wp_die( 'invalid action' );
510
511
// data to send in our API request
512
$api_params = array(
513
+ 'edd_action' => 'activate_license',
514
'license' => sanitize_text_field( $key ),
515
+ 'item_name' => urlencode( $item_name ), // the name of our product in EDD
516
'url' => home_url()
517
);
518
519
// Call the custom API.
520
$response = wp_remote_post(
521
'https://nextgenthemes.com',
522
+ array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params )
523
);
524
525
// make sure the response came back okay
584
if ( empty( $message ) ) {
585
586
if ( empty( $license_data->license ) ) {
587
+ $message = __( 'Could not read license status.', ARVE_SLUG );
588
} else {
589
$message = $license_data->license;
590
}
592
593
return $message;
594
}
admin/html-settings-page.php CHANGED
@@ -17,6 +17,15 @@ $options = arve_get_options();
17
18
<div class="wrap arve-options-wrap">
19
20
<?php if ( arve_display_pro_ad() ) : ?>
21
22
<div class="arve-settings-page-ad notice is-dismissible updated">
@@ -25,33 +34,10 @@ $options = arve_get_options();
25
26
<div class="arve-corner-spacer"></div>
27
28
- <h3>Please rate</h3>
29
- It would really help to get a <a href="https://wordpress.org/support/plugin/advanced-responsive-video-embedder/reviews/#new-post">5 star rating from you.</a>
30
-
31
- <p>This plugin is financed by purchases of the <a href="https://nextgenthemes.com/plugins/arve-pro/">Pro Addon</a>. The development and support of this plugins has become a job for me so I hope you understand that I can not make all features gratis and that you <a href="https://nextgenthemes.com/plugins/arve-pro/">purchase it</a> to get extra features and support the development.</p>
32
-
33
- <h3><a href="https://nextgenthemes.com/plugins/arve-pro/">Pro Addon</a></h3>
34
-
35
- <ul>
36
- <li><strong>Disable links in embeds (killer feature!)</strong><br>
37
- For example: Clicking on a title in a YouTube embed will not open a new popup/tab/window. <strong>Prevent video hosts to lead your visitors away from your site!</strong> Note this also breaks sharing functionality and is not possible when the provider requires flash. Try it on <a href="https://nextgenthemes.com/plugins/arve-pro/">this page</a>. Right click on links still works.</li>
38
- <li><strong>Lazyload mode</strong><br>
39
- Make your site load <strong>faster</strong> by loading only a image instead of the entire video player on pageload. </li>
40
- <li><strong>Lazyload -> Lightbox</strong><br>
41
- Shows the Video in a Lightbox after clicking a preview image</li>
42
- <li><strong>Link -> Lightbox</strong><br>
43
- Use simple links as triggers for lightboxed videos</li>
44
- <li>Automatic or custom thumbnail images</li>
45
- <li>Automatic or custom titles on top of your thumbnails</li>
46
- <li>'Expand on click' feature</li>
47
- <li>3 hover styles</li>
48
- <li>2 play icon styles to choose from</li>
49
- <li>Responsive thumbnails using cutting edge HTML5 technology</li>
50
- <li><strong>Feel good about yourself</strong><br>
51
- for supporting my 5+ years work on this plugin. Tons of hours, weekends … always worked on improving it.</li>
52
- <li>Show the latest video of a YouTube channel by using the channel URL (updated/cached hourly)</li>
53
- <li><strong><a href="https://nextgenthemes.com/plugins/arve-pro/">Get the ARVE Pro Addon</a></strong></li>
54
- </ul>
55
56
</div>
57
17
18
<div class="wrap arve-options-wrap">
19
20
+ <?php if ( $token_msg = arve_update_vimeo_oauth_token() ) : ?>
21
+
22
+ <div class="notice is-dismissible updated">
23
+ <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
24
+ <?php printf( '<p>%s</p>', $token_msg ); ?>
25
+ </div>
26
+
27
+ <?php endif; ?>
28
+
29
<?php if ( arve_display_pro_ad() ) : ?>
30
31
<div class="arve-settings-page-ad notice is-dismissible updated">
34
35
<div class="arve-corner-spacer"></div>
36
37
+ <?php printf( '<p><big><strong><a href="%s">Hiring a Marketing Person</a></strong></big></p>', 'https://nextgenthemes.com/hiring-a-marketing-person/' ); ?>
38
+
39
+ <?php echo file_get_contents( ARVE_PATH . 'readme/html/19-description-features-pro-intro.html' ); ?>
40
+ <?php echo file_get_contents( ARVE_PATH . 'readme/html/20-description-features-pro.html' ); ?>
41
42
</div>
43
advanced-responsive-video-embedder.php CHANGED
@@ -1,9 +1,9 @@
1
<?php
2
/**
3
* Plugin Name: ARVE Advanced Responsive Video Embedder
4
- * Plugin URI: https://nextgenthemes.com/plugins/arve-pro/
5
* Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
6
- * Version: 8.9.5
7
* Author: Nicolas Jonas
8
* Author URI: https://nextgenthemes.com
9
* License: GPL-3.0
@@ -19,7 +19,7 @@ if ( ! defined( 'WPINC' ) ) {
19
}
20
21
define( 'ARVE_SLUG', 'advanced-responsive-video-embedder' );
22
- define( 'ARVE_VERSION', '8.9.5' );
23
define( 'ARVE_PRO_VERSION_REQUIRED', '4.0.0' );
24
25
define( 'ARVE_URL', plugin_dir_url( __FILE__ ) );
@@ -27,8 +27,13 @@ define( 'ARVE_PUBLIC_URL', ARVE_URL . 'public/' );
27
define( 'ARVE_ADMIN_URL', ARVE_URL . 'admin/' );
28
29
define( 'ARVE_PATH', plugin_dir_path( __FILE__ ) );
30
define( 'ARVE_NUM_TRACKS', 10 );
31
32
#add_action( 'init', 'arve_init' );
33
arve_init();
34
@@ -43,8 +48,10 @@ function arve_init() {
43
return;
44
}
45
46
- require_once __DIR__ . '/admin/class-nextgenthemes-plugin-updater.php';
47
- require_once __DIR__ . '/admin/functions-licensing.php';
48
require_once __DIR__ . '/admin/functions-admin.php';
49
require_once __DIR__ . '/public/functions-enqueue.php';
50
require_once __DIR__ . '/public/functions-html-output.php';
@@ -56,6 +63,7 @@ function arve_init() {
56
require_once __DIR__ . '/public/functions-url-handlers.php';
57
require_once __DIR__ . '/public/functions-validation.php';
58
require_once __DIR__ . '/shared/functions-shared.php';
59
60
add_action( 'plugins_loaded', 'arve_load_plugin_textdomain' );
61
@@ -65,7 +73,6 @@ function arve_init() {
65
add_action( 'plugins_loaded', 'arve_oembed_remove_providers', 998 );
66
add_action( 'wp_enqueue_scripts', 'arve_register_styles', 0 );
67
add_action( 'wp_enqueue_scripts', 'arve_register_scripts', 0 );
68
- add_action( 'wp_enqueue_scripts', 'arve_maybe_enqueue_assets' );
69
add_action( 'wp_video_shortcode_override', 'arve_wp_video_shortcode_override', 10, 4 );
70
add_filter( 'widget_text', 'do_shortcode' );
71
add_filter( 'language_attributes', 'arve_html_id' );
1
<?php
2
/**
3
* Plugin Name: ARVE Advanced Responsive Video Embedder
4
+ * Plugin URI: https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/
5
* Description: Easy responsive video embeds via URL (like WordPress) or Shortcodes. Supports almost anything you can imagine.
6
+ * Version: 8.8.2
7
* Author: Nicolas Jonas
8
* Author URI: https://nextgenthemes.com
9
* License: GPL-3.0
19
}
20
21
define( 'ARVE_SLUG', 'advanced-responsive-video-embedder' );
22
+ define( 'ARVE_VERSION', '8.8.2' );
23
define( 'ARVE_PRO_VERSION_REQUIRED', '4.0.0' );
24
25
define( 'ARVE_URL', plugin_dir_url( __FILE__ ) );
27
define( 'ARVE_ADMIN_URL', ARVE_URL . 'admin/' );
28
29
define( 'ARVE_PATH', plugin_dir_path( __FILE__ ) );
30
+
31
define( 'ARVE_NUM_TRACKS', 10 );
32
33
+ if( ! class_exists( 'EDD_SL_Plugin_Updater' ) ) {
34
+ require_once __DIR__ . '/admin/class-edd-sl-plugin-updater.php';
35
+ }
36
+
37
#add_action( 'init', 'arve_init' );
38
arve_init();
39
48
return;
49
}
50
51
+ if ( ! has_action( 'admin_menu', 'nextgenthemes_menus' ) ) {
52
+ require_once __DIR__ . '/admin/functions-licensing.php';
53
+ }
54
+
55
require_once __DIR__ . '/admin/functions-admin.php';
56
require_once __DIR__ . '/public/functions-enqueue.php';
57
require_once __DIR__ . '/public/functions-html-output.php';
63
require_once __DIR__ . '/public/functions-url-handlers.php';
64
require_once __DIR__ . '/public/functions-validation.php';
65
require_once __DIR__ . '/shared/functions-shared.php';
66
+ require_once __DIR__ . '/shared/class-arve-vimeo.php';
67
68
add_action( 'plugins_loaded', 'arve_load_plugin_textdomain' );
69
73
add_action( 'plugins_loaded', 'arve_oembed_remove_providers', 998 );
74
add_action( 'wp_enqueue_scripts', 'arve_register_styles', 0 );
75
add_action( 'wp_enqueue_scripts', 'arve_register_scripts', 0 );
76
add_action( 'wp_video_shortcode_override', 'arve_wp_video_shortcode_override', 10, 4 );
77
add_filter( 'widget_text', 'do_shortcode' );
78
add_filter( 'language_attributes', 'arve_html_id' );
composer.lock DELETED
@@ -1,184 +0,0 @@
1
- {
2
- "_readme": [
3
- "This file locks the dependencies of your project to a known state",
4
- "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
5
- "This file is @generated automatically"
6
- ],
7
- "content-hash": "7a1fe94550ac8f3eaab0f9ae184b859e",
8
- "packages": [
9
- {
10
- "name": "composer/installers",
11
- "version": "v1.5.0",
12
- "source": {
13
- "type": "git",
14
- "url": "https://github.com/composer/installers.git",
15
- "reference": "049797d727261bf27f2690430d935067710049c2"
16
- },
17
- "dist": {
18
- "type": "zip",
19
- "url": "https://api.github.com/repos/composer/installers/zipball/049797d727261bf27f2690430d935067710049c2",
20
- "reference": "049797d727261bf27f2690430d935067710049c2",
21
- "shasum": ""
22
- },
23
- "require": {
24
- "composer-plugin-api": "^1.0"
25
- },
26
- "replace": {
27
- "roundcube/plugin-installer": "*",
28
- "shama/baton": "*"
29
- },
30
- "require-dev": {
31
- "composer/composer": "1.0.*@dev",
32
- "phpunit/phpunit": "^4.8.36"
33
- },
34
- "type": "composer-plugin",
35
- "extra": {
36
- "class": "Composer\\Installers\\Plugin",
37
- "branch-alias": {
38
- "dev-master": "1.0-dev"
39
- }
40
- },
41
- "autoload": {
42
- "psr-4": {
43
- "Composer\\Installers\\": "src/Composer/Installers"
44
- }
45
- },
46
- "notification-url": "https://packagist.org/downloads/",
47
- "license": [
48
- "MIT"
49
- ],
50
- "authors": [
51
- {
52
- "name": "Kyle Robinson Young",
53
- "email": "kyle@dontkry.com",
54
- "homepage": "https://github.com/shama"
55
- }
56
- ],
57
- "description": "A multi-framework Composer library installer",
58
- "homepage": "https://composer.github.io/installers/",
59
- "keywords": [
60
- "Craft",
61
- "Dolibarr",
62
- "Eliasis",
63
- "Hurad",
64
- "ImageCMS",
65
- "Kanboard",
66
- "Lan Management System",
67
- "MODX Evo",
68
- "Mautic",
69
- "Maya",
70
- "OXID",
71
- "Plentymarkets",
72
- "Porto",
73
- "RadPHP",
74
- "SMF",
75
- "Thelia",
76
- "WolfCMS",
77
- "agl",
78
- "aimeos",
79
- "annotatecms",
80
- "attogram",
81
- "bitrix",
82
- "cakephp",
83
- "chef",
84
- "cockpit",
85
- "codeigniter",
86
- "concrete5",
87
- "croogo",
88
- "dokuwiki",
89
- "drupal",
90
- "eZ Platform",
91
- "elgg",
92
- "expressionengine",
93
- "fuelphp",
94
- "grav",
95
- "installer",
96
- "itop",
97
- "joomla",
98
- "kohana",
99
- "laravel",
100
- "lavalite",
101
- "lithium",
102
- "magento",
103
- "majima",
104
- "mako",
105
- "mediawiki",
106
- "modulework",
107
- "modx",
108
- "moodle",
109
- "osclass",
110
- "phpbb",
111
- "piwik",
112
- "ppi",
113
- "puppet",
114
- "pxcms",
115
- "reindex",
116
- "roundcube",
117
- "shopware",
118
- "silverstripe",
119
- "sydes",
120
- "symfony",
121
- "typo3",
122
- "wordpress",
123
- "yawik",
124
- "zend",
125
- "zikula"
126
- ],
127
- "time": "2017-12-29T09:13:20+00:00"
128
- },
129
- {
130
- "name": "vimeo/vimeo-api",
131
- "version": "2.0.0",
132
- "source": {
133
- "type": "git",
134
- "url": "https://github.com/vimeo/vimeo.php.git",
135
- "reference": "9fbf705cf4885282183744c04f3fb10793768911"
136
- },
137
- "dist": {
138
- "type": "zip",
139
- "url": "https://api.github.com/repos/vimeo/vimeo.php/zipball/9fbf705cf4885282183744c04f3fb10793768911",
140
- "reference": "9fbf705cf4885282183744c04f3fb10793768911",
141
- "shasum": ""
142
- },
143
- "require": {
144
- "ext-curl": "*",
145
- "ext-json": "*",
146
- "php": ">=5.3.0"
147
- },
148
- "require-dev": {
149
- "phpunit/phpunit": "^4.8"
150
- },
151
- "type": "library",
152
- "autoload": {
153
- "psr-4": {
154
- "Vimeo\\": "src/Vimeo"
155
- }
156
- },
157
- "notification-url": "https://packagist.org/downloads/",
158
- "license": [
159
- "Apache-2.0"
160
- ],
161
- "authors": [
162
- {
163
- "name": "Vimeo",
164
- "homepage": "http://vimeo.com"
165
- }
166
- ],
167
- "description": "Official PHP library for the Vimeo API.",
168
- "homepage": "https://github.com/vimeo/vimeo.php",
169
- "keywords": [
170
- "video",
171
- "vimeo"
172
- ],
173
- "time": "2018-02-06T19:06:58+00:00"
174
- }
175
- ],
176
- "packages-dev": [],
177
- "aliases": [],
178
- "minimum-stability": "stable",
179
- "stability-flags": [],
180
- "prefer-stable": false,
181
- "prefer-lowest": false,
182
- "platform": [],
183
- "platform-dev": []
184
- }
public/functions-enqueue.php CHANGED
@@ -24,16 +24,3 @@ function arve_register_scripts() {
24
true
25
);
26
}
27
-
28
- function arve_maybe_enqueue_assets() {
29
-
30
- $options = arve_get_options();
31
-
32
- if ( $options['always_enqueue_assets'] ) {
33
- wp_enqueue_style( ARVE_SLUG );
34
- wp_enqueue_script( ARVE_SLUG );
35
-
36
- wp_enqueue_style( 'arve-pro' );
37
- wp_enqueue_script( 'arve-pro' );
38
- }
39
- }
24
true
25
);
26
}
public/functions-html-output.php CHANGED
@@ -132,7 +132,7 @@ function arve_build_promote_link_html( $arve_link ) {
132
if ( $arve_link ) {
133
return sprintf(
134
'<a href="%s" title="%s" class="arve-promote-link" target="_blank">%s</a>',
135
- esc_url( 'https://nextgenthemes.com/plugins/arve-pro/' ),
136
esc_attr( __( 'Embedded with ARVE Advanced Responsive Video Embedder WordPress plugin', ARVE_SLUG) ),
137
esc_html__( 'ARVE', ARVE_SLUG )
138
);
132
if ( $arve_link ) {
133
return sprintf(
134
'<a href="%s" title="%s" class="arve-promote-link" target="_blank">%s</a>',
135
+ esc_url( 'https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/' ),
136
esc_attr( __( 'Embedded with ARVE Advanced Responsive Video Embedder WordPress plugin', ARVE_SLUG) ),
137
esc_html__( 'ARVE', ARVE_SLUG )
138
);
public/functions-shortcode-filters.php CHANGED
@@ -1,53 +1,32 @@
1
<?php
2
3
- function arve_load_vimeo_api( $a ) {
4
-
5
- if ( true ) {
6
- require_once ARVE_PATH . '/vendor/autoload.php';
7
- }
8
-
9
- return $a;
10
- }
11
-
12
- function arve_get_wrapper_id( $a ) {
13
14
- static $wrapper_ids = array();
15
$wrapper_id = null;
16
17
- foreach ( array( 'id', 'mp4', 'm4v', 'webm', 'ogv', 'url', 'random_video_url', 'webtorrent' ) as $att ) {
18
19
if ( ! empty( $a[ $att ] ) && is_string( $a[ $att ] ) ) {
20
- $wrapper_id = 'arve-' . $a[ $att ];
21
- $wrapper_id = preg_replace( '/[^a-zA-Z0-9-]/', '', $wrapper_id );
22
break;
23
}
24
}
25
26
if ( empty( $wrapper_id ) ) {
27
- return null;
28
- } else {
29
- $wrapper_ids[] = $wrapper_id;
30
- }
31
-
32
- if ( in_array( $wrapper_id, $wrapper_ids ) ) {
33
- $id_counts = array_count_values( $wrapper_ids );
34
- $id_count = $id_counts[ $wrapper_id ];
35
-
36
- if ( $id_count >= 2 ) {
37
- $wrapper_id .= '-' . $id_count;
38
- }
39
}
40
41
- return $wrapper_id;
42
- }
43
44
- function arve_sc_filter_attr( $a ) {
45
-
46
- $wrapper_id = arve_get_wrapper_id( $a );
47
-
48
- if ( empty( $wrapper_id ) ) {
49
- $a['wrapper_id_error'] = new WP_Error( 'wrapper_id', __( 'Wrapper ID could not be build, please report this bug.', ARVE_SLUG ) );
50
- }
51
52
$align_class = empty( $a['align'] ) ? '' : ' align' . $a['align'];
53
@@ -55,7 +34,7 @@ function arve_sc_filter_attr( $a ) {
55
'class' => "arve-wrapper$align_class",
56
'data-mode' => $a['mode'],
57
'data-provider' => $a['provider'],
58
- 'id' => $wrapper_id,
59
'style' => empty( $a['maxwidth'] ) ? false : sprintf( 'max-width:%dpx;', $a['maxwidth'] ),
60
// Schema.org
61
'itemscope' => '',
@@ -85,7 +64,7 @@ function arve_sc_filter_attr( $a ) {
85
} else {
86
87
$properties = arve_get_host_properties();
88
- $options = arve_get_options();
89
$iframe_src = arve_build_iframe_src( $a );
90
$iframe_src = arve_add_query_args_to_iframe_src( $iframe_src, $a );
91
$iframe_src = arve_add_autoplay_query_arg( $iframe_src, $a );
@@ -94,28 +73,27 @@ function arve_sc_filter_attr( $a ) {
94
$iframe_src .= '#t=' . (int) $a['start'];
95
}
96
97
- $a['iframe_attr'] = array(
98
- 'allow' => 'autoplay; fullscreen',
99
- 'allowfullscreen' => '',
100
- 'class' => 'arve-iframe fitvidsignore',
101
- 'frameborder' => '0',
102
- 'name' => $a['iframe_name'],
103
- 'sandbox' => 'allow-scripts allow-same-origin allow-presentation allow-popups',
104
- 'scrolling' => 'no',
105
- 'src' => $iframe_src,
106
- 'width' => empty( $a['width'] ) ? false : $a['width'],
107
- 'height' => empty( $a['height'] ) ? false : $a['height'],
108
- );
109
110
if ( 'vimeo' == $a['provider'] ) {
111
- $a['iframe_attr']['sandbox'] .= ' allow-forms';
112
}
113
114
- $properties['iframe']['requires_flash'] = $options['iframe_flash'];
115
-
116
if ( null === $a['disable_flash'] && $properties[ $a['provider'] ]['requires_flash'] ) {
117
- $a['iframe_attr']['sandbox'] = false;
118
}
119
}
120
121
return $a;
@@ -165,10 +143,12 @@ function arve_sc_filter_sanitise( $atts ) {
165
166
foreach ( $atts as $key => $value ) {
167
168
- $atts[ $key ] = (string) $value;
169
170
- if ( '' === $value ) {
171
- $atts[ $key ] = null;
172
}
173
}
174
@@ -422,21 +402,21 @@ function arve_sc_filter_build_tracks_html( $atts ) {
422
return $atts;
423
}
424
425
- preg_match( '#-(?<type>captions|chapters|descriptions|metadata|subtitles)-(?<lang>[a-z]{2}).vtt$#i', $atts[ "track_{$n}" ], $matches );
426
427
if ( empty( $matches[1] ) ) {
428
$atts[ "track_{$n}" ] = new WP_Error( 'track', __( 'Track kind or language code could not detected from filename', ARVE_SLUG ) );
429
return $atts;
430
}
431
432
- $label = empty( $atts[ "track_{$n}_label" ] ) ? arve_get_language_name_from_code( $matches['lang'] ) : $atts[ "track_{$n}_label" ];
433
434
$attr = array(
435
'default' => ( 1 === $n ) ? true : false,
436
- 'kind' => $matches['type'],
437
'label' => $label,
438
'src' => $atts[ "track_{$n}" ],
439
- 'srclang' => $matches['lang'],
440
);
441
442
$atts['video_tracks_html'] .= sprintf( '<track%s>', arve_attr( $attr) );
1
<?php
2
3
+ function arve_sc_filter_attr( $a ) {
4
5
$wrapper_id = null;
6
+ $align_class = empty( $a['align'] ) ? '' : ' align' . $a['align'];
7
8
+ foreach ( array( 'id', 'mp4', 'm4v', 'webm', 'ogv', 'url', 'webtorrent' ) as $att ) {
9
10
if ( ! empty( $a[ $att ] ) && is_string( $a[ $att ] ) ) {
11
+
12
+ $wrapper_id = preg_replace( '/[^-a-zA-Z0-9]+/', '', $a[ $att ] );
13
+ $wrapper_id = str_replace(
14
+ array( 'https', 'http', 'wp-contentuploads' ),
15
+ '',
16
+ $wrapper_id
17
+ );
18
+ $wrapper_id = 'video-' . $wrapper_id;
19
break;
20
}
21
}
22
23
if ( empty( $wrapper_id ) ) {
24
+ $a['wrapper_id_error'] = new WP_Error( 'embed_id', __( 'Element ID could not be build, please report this bug.', ARVE_SLUG ) );
25
}
26
27
+ static $wrapper_id = 0;
28
29
+ $wrapper_id++;
30
31
$align_class = empty( $a['align'] ) ? '' : ' align' . $a['align'];
32
34
'class' => "arve-wrapper$align_class",
35
'data-mode' => $a['mode'],
36
'data-provider' => $a['provider'],
37
+ 'id' => "arve-video-$wrapper_id",
38
'style' => empty( $a['maxwidth'] ) ? false : sprintf( 'max-width:%dpx;', $a['maxwidth'] ),
39
// Schema.org
40
'itemscope' => '',
64
} else {
65
66
$properties = arve_get_host_properties();
67
+
68
$iframe_src = arve_build_iframe_src( $a );
69
$iframe_src = arve_add_query_args_to_iframe_src( $iframe_src, $a );
70
$iframe_src = arve_add_autoplay_query_arg( $iframe_src, $a );
73
$iframe_src .= '#t=' . (int) $a['start'];
74
}
75
76
+ $iframe_sandbox = 'allow-scripts allow-same-origin allow-presentation allow-popups';
77
78
if ( 'vimeo' == $a['provider'] ) {
79
+ $iframe_sandbox .= ' allow-forms';
80
}
81
82
if ( null === $a['disable_flash'] && $properties[ $a['provider'] ]['requires_flash'] ) {
83
+ $iframe_sandbox = false;
84
}
85
+
86
+ $a['iframe_attr'] = array(
87
+ 'allowfullscreen' => '',
88
+ 'class' => 'arve-iframe fitvidsignore',
89
+ 'frameborder' => '0',
90
+ 'name' => $a['iframe_name'],
91
+ 'scrolling' => 'no',
92
+ 'src' => $iframe_src,
93
+ 'sandbox' => $iframe_sandbox,
94
+ 'width' => empty( $a['width'] ) ? false : $a['width'],
95
+ 'height' => empty( $a['height'] ) ? false : $a['height'],
96
+ );
97