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

Version Description

Download this release

Release Info

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

Code changes from version 8.9.5 to 8.6.3

Files changed (190) hide show
  1. CHANGELOG.md +870 -0
  2. LICENSE.txt +0 -0
  3. admin/arve-admin.css +8 -34
  4. admin/arve-admin.js +2 -2
  5. admin/arve-shortcode-ui.js +2 -2
  6. admin/class-arve-admin-notice-factory.php +2 -5
  7. admin/{class-nextgenthemes-plugin-updater.php → class-edd-sl-plugin-updater.php} +8 -23
  8. admin/functions-admin.php +45 -64
  9. admin/functions-licensing.php +117 -103
  10. admin/html-debug-info.php +0 -0
  11. admin/html-settings-page.php +6 -42
  12. admin/index.php +0 -0
  13. admin/pro-ad.html +0 -14
  14. admin/product-images/arve.svg +0 -0
  15. advanced-responsive-video-embedder.php +11 -7
  16. composer.lock +0 -184
  17. index.php +1 -0
  18. public/arve.css +0 -0
  19. public/arve.js +2 -2
  20. public/arve.min.css +1 -1
  21. public/arve.min.css.map +1 -0
  22. public/arve.min.js +1 -1
  23. public/functions-enqueue.php +0 -13
  24. public/functions-html-output.php +1 -17
  25. public/functions-misc.php +0 -0
  26. public/functions-shortcode-data.php +1 -3
  27. public/functions-shortcode-filters.php +48 -80
  28. public/functions-shortcodes.php +85 -111
  29. public/functions-thumbnails.php +0 -0
  30. public/functions-url-handlers.php +0 -0
  31. public/functions-validation.php +4 -6
  32. public/index.php +0 -0
  33. readme.txt → readme.md +65 -158
  34. readme/01-top.md +25 -0
  35. readme/10-description-features.md +21 -0
  36. readme/12-description-supported-providers.md +44 -0
  37. readme/13-description-reviews.md +17 -0
  38. readme/20-description-features-pro.md +22 -0
  39. readme/25-description-features-amp.md +11 -0
  40. readme/35-description-thanks.md +13 -0
  41. readme/50-installation-faq-screenshots.md +40 -0
  42. readme/html/01-top.html +19 -0
  43. readme/html/10-description-features.html +22 -0
  44. readme/html/12-description-supported-providers.html +45 -0
  45. readme/html/13-description-reviews.html +19 -0
  46. readme/html/20-description-features-pro.html +24 -0
  47. readme/html/25-description-features-amp.html +12 -0
  48. readme/html/35-description-thanks.html +16 -0
  49. readme/html/50-installation-faq-screenshots.html +43 -0
  50. readme/prep/description-perfectdropinreplacement.md +11 -0
  51. readme/prep/description-reasons.html +9 -0
  52. readme/prep/description-whatitis.md +6 -0
  53. shared/functions-shared.php +41 -124
  54. shared/index.php +0 -0
  55. uninstall.php +1 -0
  56. vendor/autoload.php +0 -7
  57. vendor/composer/ClassLoader.php +0 -445
  58. vendor/composer/LICENSE +0 -21
  59. vendor/composer/autoload_classmap.php +0 -9
  60. vendor/composer/autoload_namespaces.php +0 -9
  61. vendor/composer/autoload_psr4.php +0 -11
  62. vendor/composer/autoload_real.php +0 -52
  63. vendor/composer/autoload_static.php +0 -39
  64. vendor/composer/installed.json +0 -172
  65. vendor/composer/installers/CHANGELOG.md +0 -86
  66. vendor/composer/installers/CONTRIBUTING.md +0 -24
  67. vendor/composer/installers/LICENSE +0 -19
  68. vendor/composer/installers/README.md +0 -221
  69. vendor/composer/installers/_config.yml +0 -1
  70. vendor/composer/installers/phpunit.xml.dist +0 -25
  71. vendor/composer/installers/src/Composer/Installers/AglInstaller.php +0 -21
  72. vendor/composer/installers/src/Composer/Installers/AimeosInstaller.php +0 -9
  73. vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php +0 -11
  74. vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php +0 -49
  75. vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php +0 -9
  76. vendor/composer/installers/src/Composer/Installers/BaseInstaller.php +0 -136
  77. vendor/composer/installers/src/Composer/Installers/BitrixInstaller.php +0 -126
  78. vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php +0 -9
  79. vendor/composer/installers/src/Composer/Installers/CakePHPInstaller.php +0 -82
  80. vendor/composer/installers/src/Composer/Installers/ChefInstaller.php +0 -11
  81. vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php +0 -10
  82. vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php +0 -34
  83. vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php +0 -11
  84. vendor/composer/installers/src/Composer/Installers/Concrete5Installer.php +0 -13
  85. vendor/composer/installers/src/Composer/Installers/CraftInstaller.php +0 -35
  86. vendor/composer/installers/src/Composer/Installers/CroogoInstaller.php +0 -21
  87. vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php +0 -10
  88. vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php +0 -50
  89. vendor/composer/installers/src/Composer/Installers/DolibarrInstaller.php +0 -16
  90. vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php +0 -16
  91. vendor/composer/installers/src/Composer/Installers/ElggInstaller.php +0 -9
  92. vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php +0 -12
  93. vendor/composer/installers/src/Composer/Installers/ExpressionEngineInstaller.php +0 -29
  94. vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php +0 -10
  95. vendor/composer/installers/src/Composer/Installers/FuelInstaller.php +0 -11
  96. vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php +0 -9
  97. vendor/composer/installers/src/Composer/Installers/GravInstaller.php +0 -30
  98. vendor/composer/installers/src/Composer/Installers/HuradInstaller.php +0 -25
  99. vendor/composer/installers/src/Composer/Installers/ImageCMSInstaller.php +0 -11
  100. vendor/composer/installers/src/Composer/Installers/Installer.php +0 -200
  101. vendor/composer/installers/src/Composer/Installers/ItopInstaller.php +0 -9
  102. vendor/composer/installers/src/Composer/Installers/JoomlaInstaller.php +0 -15
  103. vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php +0 -18
  104. vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php +0 -11
  105. vendor/composer/installers/src/Composer/Installers/KodiCMSInstaller.php +0 -10
  106. vendor/composer/installers/src/Composer/Installers/KohanaInstaller.php +0 -9
  107. vendor/composer/installers/src/Composer/Installers/LanManagementSystemInstaller.php +0 -27
  108. vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php +0 -9
  109. vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php +0 -10
  110. vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php +0 -10
  111. vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php +0 -9
  112. vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php +0 -16
  113. vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php +0 -11
  114. vendor/composer/installers/src/Composer/Installers/MajimaInstaller.php +0 -37
  115. vendor/composer/installers/src/Composer/Installers/MakoInstaller.php +0 -9
  116. vendor/composer/installers/src/Composer/Installers/MauticInstaller.php +0 -25
  117. vendor/composer/installers/src/Composer/Installers/MayaInstaller.php +0 -33
  118. vendor/composer/installers/src/Composer/Installers/MediaWikiInstaller.php +0 -50
  119. vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php +0 -111
  120. vendor/composer/installers/src/Composer/Installers/ModxInstaller.php +0 -12
  121. vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php +0 -57
  122. vendor/composer/installers/src/Composer/Installers/OctoberInstaller.php +0 -46
  123. vendor/composer/installers/src/Composer/Installers/OntoWikiInstaller.php +0 -24
  124. vendor/composer/installers/src/Composer/Installers/OsclassInstaller.php +0 -14
  125. vendor/composer/installers/src/Composer/Installers/OxidInstaller.php +0 -59
  126. vendor/composer/installers/src/Composer/Installers/PPIInstaller.php +0 -9
  127. vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php +0 -11
  128. vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.php +0 -11
  129. vendor/composer/installers/src/Composer/Installers/PimcoreInstaller.php +0 -21
  130. vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php +0 -32
  131. vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php +0 -29
  132. vendor/composer/installers/src/Composer/Installers/Plugin.php +0 -17
  133. vendor/composer/installers/src/Composer/Installers/PortoInstaller.php +0 -9
  134. vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php +0 -10
  135. vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php +0 -11
  136. vendor/composer/installers/src/Composer/Installers/PxcmsInstaller.php +0 -63
  137. vendor/composer/installers/src/Composer/Installers/RadPHPInstaller.php +0 -24
  138. vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php +0 -10
  139. vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php +0 -10
  140. vendor/composer/installers/src/Composer/Installers/RoundcubeInstaller.php +0 -22
  141. vendor/composer/installers/src/Composer/Installers/SMFInstaller.php +0 -10
  142. vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php +0 -60
  143. vendor/composer/installers/src/Composer/Installers/SilverStripeInstaller.php +0 -35
  144. vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php +0 -25
  145. vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php +0 -49
  146. vendor/composer/installers/src/Composer/Installers/Symfony1Installer.php +0 -26
  147. vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php +0 -16
  148. vendor/composer/installers/src/Composer/Installers/TYPO3FlowInstaller.php +0 -38
  149. vendor/composer/installers/src/Composer/Installers/TheliaInstaller.php +0 -12
  150. vendor/composer/installers/src/Composer/Installers/TuskInstaller.php +0 -14
  151. vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php +0 -9
  152. vendor/composer/installers/src/Composer/Installers/VanillaInstaller.php +0 -10
  153. vendor/composer/installers/src/Composer/Installers/VgmcpInstaller.php +0 -49
  154. vendor/composer/installers/src/Composer/Installers/WHMCSInstaller.php +0 -10
  155. vendor/composer/installers/src/Composer/Installers/WolfCMSInstaller.php +0 -9
  156. vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php +0 -12
  157. vendor/composer/installers/src/Composer/Installers/YawikInstaller.php +0 -32
  158. vendor/composer/installers/src/Composer/Installers/ZendInstaller.php +0 -11
  159. vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php +0 -10
  160. vendor/composer/installers/src/bootstrap.php +0 -13
  161. vendor/composer/installers/tests/Composer/Installers/Test/AsgardInstallerTest.php +0 -80
  162. vendor/composer/installers/tests/Composer/Installers/Test/BitrixInstallerTest.php +0 -75
  163. vendor/composer/installers/tests/Composer/Installers/Test/CakePHPInstallerTest.php +0 -114
  164. vendor/composer/installers/tests/Composer/Installers/Test/CraftInstallerTest.php +0 -83
  165. vendor/composer/installers/tests/Composer/Installers/Test/DokuWikiInstallerTest.php +0 -90
  166. vendor/composer/installers/tests/Composer/Installers/Test/GravInstallerTest.php +0 -63
  167. vendor/composer/installers/tests/Composer/Installers/Test/InstallerTest.php +0 -552
  168. vendor/composer/installers/tests/Composer/Installers/Test/MayaInstallerTest.php +0 -62
  169. vendor/composer/installers/tests/Composer/Installers/Test/MediaWikiInstallerTest.php +0 -67
  170. vendor/composer/installers/tests/Composer/Installers/Test/OctoberInstallerTest.php +0 -67
  171. vendor/composer/installers/tests/Composer/Installers/Test/OntoWikiInstallerTest.php +0 -84
  172. vendor/composer/installers/tests/Composer/Installers/Test/PimcoreInstallerTest.php +0 -44
  173. vendor/composer/installers/tests/Composer/Installers/Test/PiwikInstallerTest.php +0 -63
  174. vendor/composer/installers/tests/Composer/Installers/Test/SiteDirectInstallerTest.php +0 -120
  175. vendor/composer/installers/tests/Composer/Installers/Test/SyDESInstallerTest.php +0 -82
  176. vendor/composer/installers/tests/Composer/Installers/Test/TestCase.php +0 -65
  177. vendor/composer/installers/tests/Composer/Installers/Test/VgmcpInstallerTest.php +0 -80
  178. vendor/composer/installers/tests/Composer/Installers/Test/YawikInstallerTest.php +0 -64
  179. vendor/composer/installers/tests/bootstrap.php +0 -4
  180. vendor/vimeo/vimeo-api/.styleci.yml +0 -19
  181. vendor/vimeo/vimeo-api/CHANGELOG.md +0 -19
  182. vendor/vimeo/vimeo-api/LICENSE +0 -177
  183. vendor/vimeo/vimeo-api/README.md +0 -254
  184. vendor/vimeo/vimeo-api/autoload.php +0 -29
  185. vendor/vimeo/vimeo-api/certificates/vimeo-api.pem +0 -47
  186. vendor/vimeo/vimeo-api/src/Vimeo/Exceptions/ExceptionInterface.php +0 -9
  187. vendor/vimeo/vimeo-api/src/Vimeo/Exceptions/VimeoRequestException.php +0 -9
  188. vendor/vimeo/vimeo-api/src/Vimeo/Exceptions/VimeoUploadException.php +0 -9
  189. vendor/vimeo/vimeo-api/src/Vimeo/Vimeo.php +0 -598
  190. yarn.lock +0 -464
CHANGELOG.md ADDED
@@ -0,0 +1,870 @@
1
+
2
+ ## Changelog ##
3
+
4
+ * [ARVE Pro addon changelog](https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/changelog/)
5
+ * [ARVE AMP addon changelog](https://nextgenthemes.com/plugins/arve-amp/)
6
+
7
+ ### 2017-05-17 - 8.6.3 ###
8
+
9
+ * Fixed issue with width and height attributes
10
+
11
+ ### 2017-05-17 - 8.6.2 ###
12
+
13
+ * Fixed license activation issues.
14
+
15
+ ### 2017-05-10 - 8.6.1 ###
16
+
17
+ * Minor code change.
18
+
19
+ ### 2017-05-10 - 8.6.0 ###
20
+
21
+ * New: `controlslist` shortcode attribute and option to control the Chrome HTML5 player `nodownload` is default, it hides the download button on the player.
22
+
23
+ ### 2017-05-05 - 8.5.2 ###
24
+
25
+ * Improved: Embed Liveleak with https. Remove the default parameter.
26
+
27
+ ### 2017-05-05 - 8.5.1 ###
28
+
29
+ * 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.
30
+
31
+ ### 2017-05-04 - 8.5.0 ###
32
+
33
+ * New: playsinline, and muted attributes for HTML5 video.
34
+ * Data attributes are no longer prefixed with -arve and various other code improvements.
35
+
36
+ ### 2017-05-01 - 8.4.2 ###
37
+
38
+ * Code improvements for addons.
39
+
40
+ ### 2017-04-30 - 8.4.1 ###
41
+
42
+ * Fix password protected videos on vimeo (sandbox allow-forms)
43
+
44
+ ### 2017-04-25 - 8.4.0 ###
45
+
46
+ * 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)
47
+ * 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)
48
+ * Fix: YouTube only playlist URLs embedded without https.
49
+
50
+ ### 2017-04-11 - 8.3.1 ###
51
+
52
+ * Fix: Global CSS id was not correctly added.
53
+
54
+ ### 2017-04-10 - 8.2.5 ###
55
+
56
+ * Fix: Some Brightcove URLs were not correctly detected.
57
+ * Improved: Better automated tests and some minor code enhancements.
58
+ * Improved: Some texts, new link to the settings page below parameter field.
59
+ * 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.
60
+ * Improved: Gives the aligned videos a top margin of `0.4em` to try to align them better with text.
61
+ * Improved: The 'by ARVE' promotion links do now open in a new tab/window.
62
+
63
+ ### 2017-03-27 - 8.2.4 ###
64
+
65
+ * 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.
66
+
67
+ ### 2017-03-25 - 8.2.3 ###
68
+
69
+ * Fixed: 'Disable links' feature from the Pro Addon was not working.
70
+ * Some minor code improvements.
71
+
72
+ ### 2017-03-20 - 8.2.2 ###
73
+
74
+ * 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.
75
+ * Improved: Finished the German translation.
76
+ * Improved: Made the ARVE Pro promotion on the settings menu close-able, hopefully less people get offended.
77
+
78
+ ### 2017-03-20 - 8.2.0 ###
79
+
80
+ * Fixed: Plugin action links on installed plugin screen
81
+ * 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`).
82
+ * Improved: styles and scripts and now served minified unless `WP_DEBUG` is set.
83
+ * Improved: styles are now only loaded (to the bottom) when there is a video on the page.
84
+ * Improved: Settings title is now 'Advanced Responsive Video Embedder Settings' again rather then just ARVE.
85
+
86
+ ### 2017-03-12 - 8.1.1 ###
87
+
88
+ * Improved: Added ARVE to menu below plugins so it can be easy found.
89
+ * Improved: Used `wp_add_inline_style` function for inline styles.
90
+ * Removed some code that is not needed.
91
+
92
+ ### 2017-03-03 - 8.0.9 ###
93
+
94
+ * Fix: Admin page error for messing file.
95
+
96
+ ### 2017-03-02 - 8.0.8 ###
97
+
98
+ * Improved: Updated EDD Plugin Updater class
99
+
100
+ ### 2017-02-24 - 8.0.7 ###
101
+
102
+ * Fix: Options not correctly put in debug-info.
103
+ * Improved: Make License input fields a bit wider.
104
+ * Improved: Some small code improvements.
105
+
106
+ ### 2017-02-12 - 8.0.5 ###
107
+
108
+ * Fix: Small size of lightbox when using the [Pro Addon](https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/).
109
+
110
+ ### 2017-02-11 - 8.0.4 ###
111
+
112
+ * CSS improved
113
+ * Updated Addon Updater Class
114
+
115
+ ### 2017-01-03 - 8.0.2 ###
116
+
117
+ * Fix: Errors on settings page when Pro Addon is not installed.
118
+
119
+ ### 2016-12-17 - 8.0.1 ###
120
+
121
+ * Fix: `undefined function is_plugin_active()` error caused by some plugins
122
+ * 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.
123
+
124
+ ### 2016-12-09 - Pro Addon 3.6.8 ###
125
+
126
+ * Fix: Wrongly tagged version.
127
+
128
+ ### 2016-12-07 - Pro Addon 3.6.7 ###
129
+
130
+ * Fix: Some thumbnails not loading.
131
+
132
+ ### 2016-12-07 - 8.0.0 ###
133
+
134
+ * Fix: 'Take over [video] shortcode' option not working. (Always acted as on, default is off)
135
+ * Fix: [video] override putting out a error for not reason.
136
+ * Improved code: Dropped 2 micro classes in favor for antonymous functions.
137
+
138
+ ### 2016-12-07 - Pro Addon 3.6.6 ###
139
+
140
+ * 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.
141
+
142
+ ### 2016-11-30 - 7.9.23 ###
143
+
144
+ * Fix: Ending up with wrong URLs by disabling auto shortening of URLs when pasting them into the shortcode-ui dialog.
145
+ * Improved: Enable SSL verify for API calls.
146
+ * Improved: License action return messages.
147
+
148
+ ### 2016-11-30 - Pro Addon 3.6.4 ###
149
+
150
+ * Fix: Autoplay without setting
151
+
152
+ ### 2016-11-30 - 7.9.21 ###
153
+
154
+ * Fix: Fatal error.
155
+
156
+ ### 2016-11-29 - Pro Addon 3.6.4 ###
157
+
158
+ * Improved: Licensing field removed from the pro options tab (now in main plugin). This enables resetting pro options settings without deleting license key.
159
+ * Fix: Autoplay not applied property.
160
+ * Fix: HTML5 not autoplaying in lightbox.
161
+ * Improved: New default option for inview lazyload is 'On iOS, Android and Desktops when no thumbnail is found'.
162
+ * Improved: New installations will show a message guiding users to activation screen.
163
+
164
+ ### 2016-11-29 - 7.9.19
165
+
166
+ * 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!
167
+ * Fix: Facebook URL detection for usernames with dots in them.
168
+ * Fix: Invisible HTML5 Lazyload-lightbox videos
169
+ * Fix: Shortcode UI script enqueued to early causing JS erros on admin pages.
170
+ * Improved: Error messages for missing mandatory attributes.
171
+ * Improved: Moved some code logic of the pro addon out of the main plugin.
172
+ * 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.
173
+ * New: Filters for new cool things coming up
174
+ * New: License page, relocated options page
175
+ * New: YouTube URL detection for playlists without starting video `https://www.youtube.com/playlist?list=PL3Esg-ZzbiUmeSKBAQ3ej1hQxDSsmnp-7`
176
+ * Possible Fix: Videos displayed to small in some Browsers
177
+
178
+ ### 2016-10-29 - 7.9.8 and Pro Addon 3.3.4 ###
179
+
180
+ * Fix: Fix lightbox thumbnail
181
+ * Improved: CSS
182
+
183
+ ### 2016-10-28 - Pro Addon 3.3.1 ###
184
+
185
+ * Fix: Fix thumbnails being displayed wrong in IE.
186
+
187
+ ### 2016-10-28 - Pro Addon 3.3.0 ###
188
+
189
+ * Fix: Restored broken update notifications and semi auto updates.
190
+
191
+ ### 2016-10-28 - 7.9.7 ###
192
+
193
+ * New: Wistia Support.
194
+ * Improved: Allow HTML in title attribute.
195
+ * Improved: Force more CSS Styles.
196
+
197
+ ### 2016-10-27 - Pro Addon 3.2.9 ###
198
+
199
+ * Fix: Twitch API failing (needs Client-ID now)
200
+
201
+ ### 2016-10-27 - Pro Addon 3.2.8 ###
202
+
203
+ * Improved: oembed error message
204
+ * Improved: Skip srcset function for PHP 5.3 and lower
205
+
206
+ ### 2016-10-27 - 7.9.6 ###
207
+
208
+ * Fix: Thumbnail not correctly applied to <video> tag for self hosted videos.
209
+ * Improved: CSS for self hosted videos.
210
+ * Improved: Enabled detection for rubtube and VK and show them as supported providers, even they where supported as general iframe embeds before.
211
+
212
+ ### 2016-10-25 - Pro Addon 3.2.7 ###
213
+
214
+ * Fix: 2 clicks needed to play lazyloaded video on desktops
215
+
216
+ ### 2016-10-24 - Pro Addon 3.2.5 ###
217
+
218
+ * Fix: JavaScript error related to abandoned Script.
219
+ * Fix: Custom Thumbnails not applied.
220
+
221
+ ### 2016-10-24 - 7.9.5 ###
222
+
223
+ * Fix: Custom Thumbnails not applied.
224
+ * Fix: Shortcode UI script only loaded if the plugin is active.
225
+
226
+ ### 2016-10-23 - 7.9.4 and Pro Addon 3.2.3 ###
227
+
228
+ * Fix: Multiple issues about the new HTML5 video embedding (still experimental)
229
+
230
+ ### 2016-10-23 - Pro Addon 3.2.2 ###
231
+
232
+ * Fix: 'Disable Links' not working.
233
+
234
+ ### 2016-10-23 - Pro Addon 3.2.0 ###
235
+
236
+ * Fix: Issue with lazyload and AJAX.
237
+ * Fix: W3TC issue by using yet another lazyload method. Final this time?
238
+ * Fix: YouTube Thumbnail detection when there are no HD images.
239
+ * Improved: Code used to cache thumbnails, this may improve improve performance.
240
+ * Improved: Lots code restructured and improved.
241
+ * New: New Lazyload mode setting to prevent "two touched needed to play video on mobiles" issue. Its also
242
+ * New: Facebook thumbnail detection.
243
+
244
+ ### 2016-10-23 - 7.9.2 ###
245
+
246
+ * Fix: Brightcove Autoplay issue.
247
+ * Fix: Liveleak thumbnail detection issues.
248
+ * Fix: Parameters not being added.
249
+ * Fix: Twitch single videos not using https
250
+ * Fix: Vevo marked to require flash to make it work again.
251
+ * Improved: Better dialog with better description and links about the shortcake UI plugin.
252
+ * Improved: Facebook embed method.
253
+ * Improved: Lots code restructured and improved.
254
+ * Improved: Parameters are always possible no matter the provider.
255
+ * Improved: Restructure of the plugin, abandon OOP mostly.
256
+ * Improved: Revive saving of last setting page tab.
257
+ * 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.
258
+ * New: Support for self hosted videos (experimental)
259
+
260
+ ### 2016-10-03 - Pro Addon 2.5.2 ###
261
+
262
+ * Fix: Force button styles to make sure themes styles get overwritten.
263
+
264
+ ### Pro Addon 2.5.1 beta - 2016-09-21 ###
265
+
266
+ * New: Thumbnail support for Liveleak.
267
+ * Fix: Update loop.
268
+
269
+ ### Pro Addon 2.5.0 beta - 2016-09-21 ###
270
+
271
+ * Improved: Thumbnails detection.
272
+ * Improved how license keys are handled when set in wp-config.php.
273
+
274
+ ### 7.5.1 beta - 2016-09-21 ###
275
+
276
+ * Fix: Liveleak seems to require flash for some videos.
277
+
278
+ ### 7.5.0 beta - 2016-09-21 ###
279
+
280
+ * Fix: Youku URL detection and aspect ratio.
281
+ * Improved: `.arve-inner` css class in favor of some more specific classes combining styles.
282
+ * Improved: removed TGMPA class because it was causing horrible issues.
283
+
284
+ ### Pro Addon 2.4.5 beta - 2016-09-19 ###
285
+
286
+ * 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.
287
+
288
+ ### 7.4.3 beta - 2016-09-19 ###
289
+
290
+ * Fix: Deal with fluid-vids script messing with this plugin, making videos invisible.
291
+
292
+ ### Pro Addon 2.4.0 beta - 2016-09-18 ###
293
+
294
+ * New: Adds Yahoo auto thumbnail and title support
295
+
296
+ ### 7.4.1 beta - 2016-09-18 ###
297
+
298
+ * New: Adds Yahoo Video support
299
+
300
+ ### 7.3.2 beta - 2016-09-17 ###
301
+
302
+ * Fix: Remove security="restricted" from iframes to make IE work again.
303
+
304
+ ### 7.3.1 beta - 2016-09-17 ###
305
+
306
+ * Fix: Get rid of undefined index warnings when pro addon is not active.
307
+
308
+ ### 7.3.0 beta - 2016-09-17 ###
309
+
310
+ * Improved: Show admin notices only to users who have the 'activate_plugins' capability.
311
+ * Improved: Added notice to the readme for the TGMPA cause white screen of death issue.
312
+
313
+ ### Pro Addon 2.3.2 - 2016-09-17 ###
314
+
315
+ * Possible Fix for not centered play button.
316
+
317
+ ### 7.2.13 beta - 2016-09-16 ###
318
+
319
+ * Fix: Set fitvidsignore class and remove the Fitvids container to prevent it from messing with ARVE embeds.
320
+ * Fix: Remove possible width and height parameters on iframes to prevent scripts from messing with ARVE embeds.
321
+
322
+ ### 7.2.12 beta - 2016-09-16 ###
323
+
324
+ * Improved: replaced static:: with self:: to support older php versions.
325
+
326
+ ### 7.2.10 beta - 2016-09-15 ###
327
+
328
+ * Fix: [iframe] shortcode not working.
329
+
330
+ ### Pro Addon 2.3.1 beta - 2016-09-15 ###
331
+
332
+ * New: Added support for displaying title of videos on top of the thumbnail images.
333
+ * New: Responsive thumbnails using srcset the browser takes the best image resolution for the users device. (HTML5 srcset)
334
+ * 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.
335
+ * New: Choose beween 2 play button styles.
336
+ * Fix: Screenfull error.
337
+ * Fix: License API call.
338
+ * Improved: Rectangle animation.
339
+ * Improved: Updated 'lity' lightbox script.
340
+ * Improved: Thumbnail handling.
341
+ * Improved: Removed the 'Lazyload Maximal Width' setting to simplify things (there still is 'Maximal Width' and 'Aligned Maximal Width').
342
+ * Improved: Removed the 'Fake Thumbnail' feature because the entire idea was bad and real thumbnails should be used.
343
+ * Improved: Updated EDD_SL_Plugin_Updater Class
344
+ * Dropped PHP Class.
345
+
346
+ ### 7.2.9 beta - 2016-09-15 ###
347
+
348
+ * New: Recommend and guide to users to install [Shortcake (Shortcode UI)](https://de.wordpress.org/plugins/shortcode-ui/) via [TGMPA](http://tgmpluginactivation.com/)
349
+ * 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.
350
+ * New: Support for kla.tv.
351
+ * New: Support for youku (fulfilled request)
352
+ * 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 ...
353
+ * New: WYSIWYG Preview of Shortcodes.
354
+ * 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.
355
+ * New: A default alignment can now be set in the Settings page. (fulfilled request)
356
+ * New: 'iframe_name' shortcode parameter for `<iframe name="xxxxx"`, useful when wanting to target ARVE embeds with links. (fulfilled request)
357
+ * 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)
358
+ * 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 ;)
359
+ * Improved: Got rid of PHP globals.
360
+ * Improved: Added image upload dialog to settings page and shortcode dialog.
361
+ * Improved: Better CSS to overwrite unwanted theme styles.
362
+ * Improved: Lots if code improvements.
363
+ * Improved: SSL enabled and forced when supported by provoders.
364
+ * Fix: Blury Vimeo thumbnails
365
+ * Fix: Prevent Dashboard Widget conflicts with WP Helpers plugin (possibly others). Thanks to Steve Bruner.
366
+ * Fix: Issue with unwanted borders showing on embeds.
367
+ * Fix: youtu.be URLs now detected correct in shortcode dialog.
368
+ * Fix: All Vevo URLs are now detected correctly.
369
+ * Fix: Bool options settings.
370
+ * Removed blip because the service was shutdown.
371
+ * Removed myvideo.de because the service was restructured.
372
+
373
+ ### 6.4.0 ###
374
+
375
+ * Fix: Always prevent scrollbars.
376
+
377
+ ### Pro Addon 1.4.4
378
+
379
+ * Fixed: Infinite update loop.
380
+ * Improved: Updated Updater class.
381
+
382
+ ### Pro Addon 1.4.3
383
+
384
+ * Fixed: rectangle overflow issue.
385
+
386
+ ### Pro Addon 1.4.2
387
+
388
+ * Fixed: license activation problems.
389
+
390
+ ### Pro Addon 1.4.1
391
+
392
+ * 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.
393
+
394
+ ### 6.3.9 ###
395
+
396
+ * Fix: Facebook (now really, hopefully).
397
+
398
+ ### 6.3.8 ###
399
+
400
+ * Fix: Facebook in lazyload modes.
401
+
402
+ ### 6.3.7 ###
403
+
404
+ * New: Facebook video support.
405
+
406
+ ### 6.3.4 ###
407
+
408
+ * Fix?: Iframes are now created with a fixed 853x480 size in feeds, this probably will fix some feedreaders incorrectly or not displaying videos.
409
+
410
+ ### 6.3.3 ###
411
+
412
+ * Improved: Disabled file URL detection as this solution was bad.
413
+
414
+ ### 6.3.2 ###
415
+
416
+ * Fixed/Improved: [arve_tests] shortcode.
417
+
418
+ ### Pro Addon 1.4 ###
419
+
420
+ * Fix: Fake thumbnails now work for lazyload-lightbox mode.
421
+
422
+ ### 6.3.1 & Pro Addon 1.4.0 ###
423
+
424
+ * Improved: Testing Shortcode.
425
+ * Improved: When there is no thumbnail lazyload mode will fall back to normal mode.
426
+ * New: Added support for alugha.com.
427
+
428
+ ### Pro Addon 1.1.5 ###
429
+
430
+ * New: Added setting and parameter grow="yes/no" to control the grow-on-click behaviour that was introduced in 6.0 to your liking.
431
+
432
+ ### 6.1.2 ###
433
+
434
+ * Improved: Added thumbnail and grow parameters to the Shortcode Creator Dialog.
435
+ * Improved: Updated screenshots.
436
+
437
+ ### Pro Addon 1.1.3 ###
438
+
439
+ * Improved: link-linghtbox mode does not force a newline for the link anymore.
440
+ * Fix: Autoplaying in Background when navigating back in browser.
441
+
442
+ ### Pro Addon 1.1.0 ###
443
+
444
+ * Fix: Various issues reguarding lightbox mode.
445
+
446
+ ### 6.1.0 ###
447
+
448
+ * Fix: Messages about pro addon removed when it is installed.
449
+
450
+ ### Pro Addon 1.0.7 ###
451
+
452
+ * Fix: Video start playing again invisible when closeing lightbox with ESC.
453
+
454
+ ### 6.0.6 Beta ###
455
+
456
+ * Improved: Adds a "Debug Info" tab to the settings page copy pasting when there is are issue.
457
+
458
+ ### Pro Addon 1.0.6 ###
459
+
460
+ * Remove development functions.
461
+
462
+ ### Pro Addon 1.0.4 ###
463
+
464
+ * Possibly Fixes SSL issues during activation.
465
+
466
+ ### Pro Addon 1.0.3 ###
467
+
468
+ * Fix: Maxwidth issue.
469
+
470
+ ### 6.0.5 Beta ###
471
+
472
+ * Fix: Foreach php error
473
+
474
+ ### 6.0.4 Beta ###
475
+
476
+ * Fix: Youtube URL with starttime.
477
+
478
+ ### 6.0.3 Beta, Pro Addon 1.0.3 ###
479
+
480
+ * Fix: Max-width output issue.
481
+
482
+ ### 6.0.2 Beta - 2015/07/24 - work time: ~60 days ###
483
+
484
+ Please check the [migration guide](https://nextgenthemes.com/?p=1875) about upgrading to this version.
485
+
486
+ * Fix: Jackpack Shortcode Embeds module incompatibility.
487
+ * New: URL parameters are now possible via URLs used for embeds (passed to iframe src).
488
+ * Changed: URL parameters to controll arve features are now 'arve[mode]=' style instead of 'arve-mode='.
489
+ * Improved: Enabled HTTPS support for Viddler and MyVideo.
490
+ * Improved: TED Talks shortcodes now support the 'lang' parameter.
491
+ * Improved: New embed URLs for MyVideo.
492
+ * Improved: Better Twitch support.
493
+ * Improved: Dailymotion HTTPS support.
494
+ * Improved: To reduce CSS and keep it simpler aspect ratios are now handled with inline styles.
495
+ * Improved: Moved to complete WP Settings API.
496
+ * Improved: Tabbed and extendable options page.
497
+ * Improved: Massive code improvements.
498
+ * Improved: Replaced all Admin Messages that caused bugs and annoyance for users with a dashboard Widget.
499
+
500
+ ### Pro Addon 1.0.1 ###
501
+
502
+ * New: link-lightbox mode creates a link the triggers a lightbox with a video on click.
503
+
504
+ ### Pro Addon 0.9.7 ###
505
+
506
+ * Fix: Lazyload videos not growing when global maxwidth setting was set.
507
+ * Improved: Finally got rid of the jQuery Colorbox depency, the Pro Addon now includes lity for lightboxes.
508
+
509
+ ### Pro Addon 0.9.5 ###
510
+
511
+ * Fix: Licensing Activation should now finally work correcty. (Multisite may need some tweaks)
512
+ * Fix: Pissibility of unwanted margins/paddings on the transparent button.
513
+
514
+ ### Pro Addon 0.9.0 ###
515
+
516
+ * Changed: 'Lazyload' mode now grows the video size after thumbnails are clicked.
517
+ * Changed: 'Thumbnail' mode is now called 'Lazyload -> Colorbox' and has a sightly different behavior.
518
+ * New: 'Lazyload -> Fullscreen' mode to instandly go Fullscreen after clicking the Lazyloaded preview image.
519
+ * New: 'Lazyload -> Fixed' Fullscreen/-window mode (extremly experimental) with ability to resize fixed video on screen while reading the page.
520
+ * New: 'thumbnail' parameter, take image URL or a ID to a media libray image to be used as thumbnail image.
521
+ * Improved: Enabled fake thumbnails for USTREAM and myvideo.de.
522
+ * 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.
523
+
524
+ ### 5.3.4 Beta - 2015/03/15 ###
525
+
526
+ * Fix: ID detection for youtu.be and dai.ly URLs, will now work with https://(www.) as well.
527
+ * Fix: Myvideo.de videos with 7 and 8 digit IDs.
528
+
529
+ ### 5.3.3 Beta ###
530
+
531
+ * 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.
532
+
533
+ ### 5.3.2 Beta ###
534
+
535
+ * Fix: Die 'Array' errors DIE!
536
+
537
+ ### 5.3.1 Beta ###
538
+
539
+ * Improved: Added shortcode example to youtube starttime examples.
540
+ * Improved: Clarified from who the admin messages come.
541
+
542
+ ### 5.3.0 Beta ###
543
+
544
+ * **If you get a error '... array ...' please reset your options on the options page and redo the options you had before**
545
+ * Fix: '... expected array' error when saving options on some cases. If you get a error please reset your
546
+ * Fix: ttp://youtu.be/... shortlinks are not detected correctly in the shortcode creator dialog.
547
+ * Improved: Ported code to WordPress Plugin Boilerplate 3.0 style.
548
+ * Improved: Switched vevo and xtube from object to iframe embeds.
549
+ * Improved: Lots of minor code enhancements.
550
+
551
+ ### 5.1.1 ###
552
+
553
+ * Fix: Removed mixed content warnungs for youtube and vimeo.
554
+ * Translation updates.
555
+
556
+ ### 5.1.0 ###
557
+
558
+ * New: Vimeo HTTPS support (works automatically if your site is HTTPS)
559
+
560
+ ### 5.0.2 Beta ###
561
+
562
+ * Improved: Marked as working with WP 4.0
563
+
564
+ ### 5.0.1 Beta ###
565
+
566
+ * Fix: Options var error
567
+
568
+ ### 5.0.0 Beta ###
569
+
570
+ * Fix: Max-width options should now work in all circumstances
571
+ * Improved: Various CSS improvements
572
+ * Improved: Changed play overlay image to a Google+ style image
573
+
574
+ ### 4.9.0 Beta ###
575
+
576
+ * 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.
577
+ * Fix: Removed autohide#1 from default YouTube Parameters since it causes a YouTube bug in the HTML5 player.
578
+
579
+ ### 4.8.0 ###
580
+
581
+ * Updated: Spanish translation now 80% complete. Thanks Xarkitu!
582
+ * Improved: Do not load admin dialog when doing AJAX
583
+
584
+ ### 4.7.0 ###
585
+
586
+ * Fix: Iframe code detection
587
+
588
+ ### 4.6.0 ###
589
+
590
+ * Improvement: PHP required version lowered to 5.2.4
591
+
592
+ ### 4.5.4 ###
593
+
594
+ * Fix: Save of custom URL parameters
595
+ * New: CHANGES.md file for github updater
596
+
597
+ ### 4.5.3 ###
598
+
599
+ * Fix: Fatal PHP Error on activation.
600
+ * Fix: Readme spellings.
601
+
602
+ ### 4.5.0 ###
603
+
604
+ * Fix: Minor options page spelling and field association fixes.
605
+ * Fix: Added Lazyload to mode select in the shortcode dialog.
606
+ * New: 4players.de support.
607
+ * New: Added parameter input to the shortcode dialog.
608
+ * Improved: Default options are no longer stored in the database.
609
+ * Improved: Transparency fade animation on thumbnail hover.
610
+ * Improved: No more ugly URL hash (#arve-load-video) after clicking links.
611
+ * Improved: Dropped IE 8 support for Lazyload mode.
612
+ * Improved: Lots of code improvements.
613
+
614
+ ### 4.3.0 ###
615
+
616
+ * New: Added Iframe examples.
617
+ * 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.
618
+ * 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.
619
+ * Improved: Redesigned the Shortcode Creator dialog. Less clutter, more compact and it now includes the recently introduced `aspect_ratio`.
620
+
621
+ ### 4.2.0 ###
622
+
623
+ * New: As requested: `aspect_ratio` parameter
624
+ * Fix: Vimeo playing problems in Firefox.
625
+
626
+ ### 4.1.1 ###
627
+
628
+ * Fix: Play button not showing.
629
+
630
+ ### 4.1.0 ###
631
+
632
+ * New: Vine support
633
+ * New: Support for starttime from youtube URLs
634
+ * Improved: Include play image inside CSS, -1 http request may speed things up
635
+ * Improved: Tests
636
+
637
+ ### 4.0.0 ###
638
+
639
+ * New: Trigger-able debug output.
640
+ * Improved: The `[arve_tests]` shortcode now includes alignment and maxwidth tests
641
+ * Fix: Thumbnail image now displayed when using lazyload with `maxwidth` parameter
642
+
643
+ ### 3.9.9 ###
644
+
645
+ * Improved: Allowing `maxwidth` parameter in `lazyload` mode
646
+
647
+ ### 3.9.8 ###
648
+
649
+ * Fix: Thumbnail not opening Colorbox
650
+
651
+ ### 3.9.7 ALPHA! ###
652
+
653
+ * 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.
654
+ * New: Added MPORA support
655
+ * New: Added (real) thumbnail support for Collegehumor, Twitch, FunnyOrDie, MPORA
656
+ * New: `[arve_tests]` shortcode that is used to test the plugin and provide examples.
657
+ * New: `[arve_supported]` shortcode probably of no use for users. It will generate the a list of providers with supported features.
658
+ * Improved: Enabled fake thumbnails for Comedycentral, Gametrailers and Spike
659
+ * Improved: Remote API calls and handling their errors.
660
+ * Improved: Get high resolution thumbnails from YouTube if available.
661
+ * 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.
662
+ * Improved: Lots of smaller code improvements.
663
+
664
+ ### 3.6.1 ###
665
+
666
+ * Fix: Register link in changelog.
667
+
668
+ ### 3.6.0 ###
669
+
670
+ * 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.
671
+ * Fix: Thumbnails for YouTube playlists.
672
+ * Fix: Shortcode creator ID detection for iframes (src URL)
673
+ * Fix: Updated Dailymoton docs link on Options page
674
+ * 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.
675
+
676
+ ### 3.5.2 ###
677
+
678
+ * New: Twitch.tv support
679
+ * New: Spanish Translation from Andrew Kurtis webhostinghub.com
680
+ * Improved: Support for `https://new.ted.com/...` URLs
681
+ * Improved: Some code improvements, among them IDs of hidden objects are now generated with a simple `static` counter instead of some random generated string.
682
+
683
+ ### 3.5.1 ###
684
+
685
+ * Fix: Bug causing the Shortcode Creator not detecting shortcode tags when customized
686
+ * Improved how embeds `<object>` embed codes are generated.
687
+ * Updated FAQ
688
+ * New: Xtube support (On request)
689
+
690
+ ### 3.5.0 ###
691
+
692
+ * New: Custom parameters!
693
+ * Fix: Youtube playlists now work correctly
694
+ * Fix: Translations are working again (incomplete German and French)
695
+ * 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"]`
696
+
697
+ ### 3.1.2 ###
698
+
699
+ * Fix: IE8 JavaScript errors
700
+ * Improved: The evil message at the admin.
701
+
702
+ ### 3.1.1 (github only) ###
703
+
704
+ * Improved: Added `px` suffix to values on options page
705
+
706
+ ### 3.1.0 (beta) ###
707
+
708
+ * New: Development versions now available via [Github Plugin Updater](https://github.com/afragen/github-updater) please install this to test cutting edge versions
709
+ * New: Introducing 'Align Maximal Width' option
710
+ * Fix: Invisible normal mode embeds with align
711
+ * Fix: Yahoo detection
712
+ * Fix: Kickstarter detection
713
+ * Fix: Daylimoition Playlist
714
+ * Fix: Colleghumor
715
+ * Improved: Screenshots updated
716
+ * Improved: Beginning process of provider based aspect ratios.
717
+ * Improved: Dailymotion playlists/jukeboxes now show Native thumbnails
718
+ * Improved: Iframe embed code detection with with single quoted `src#''`
719
+
720
+ ### 3.0.4 (beta) ###
721
+
722
+ * Javascript Fix
723
+
724
+ ### 3.0.0 (beta) ###
725
+
726
+ * New: Support for embedding via simply pasting of URLs into posts (need to be on their own line, no button or shortcodes needed)
727
+ * New: Thumbnails are now responsive
728
+ * New: Vevo support
729
+ * New: TED Talks support
730
+ * New: IGN support
731
+ * New: Kickstarter support
732
+ * Improved: request large thumbnail from vimeo instead of medium
733
+ * Improved: 'youtubelist' shortcode deprecated YouTube playlists are now handled via the normal youtube shortcode with support for starting video
734
+ * Improved: 'bliptv' shortcode deprecated on favor of 'blip' that uses the ids from blip.tv URLs instead of the ones from embed codes
735
+ * Improved: Moved code to newest Plugin Boilerplate
736
+ * Improved: Massive code improvements
737
+
738
+ ### 2.7.4 ###
739
+
740
+ * Fix: Dropped mb_detect_encoding now using just preg_match to support rare php setups.
741
+
742
+ ### 2.7.3 ###
743
+
744
+ * New: Added French Translation from Karel - neo7.fr
745
+
746
+ ### 2.7.2 ###
747
+
748
+ * Fix: Permissions for the button, now authors who
749
+
750
+ ### 2.7.0 ###
751
+
752
+ * Fix: Admin page capabilities
753
+ * Improved: Reintroduced the manual provider and ID input to be used then not detected correctly.
754
+
755
+ ### 2.6.4 ###
756
+
757
+ * Fix: Black bar issue. (Dropped IE6 hacks/workarounds)
758
+
759
+ ### 2.6.3 ###
760
+
761
+ * Fix: Normal embeds not sizing correctly
762
+ * New: Added scrolling#"no" to Iframes
763
+ * Improved: Init shortcodes at a late stage to dominate conflicts
764
+ * Improved: Improved Iframe parameter handling
765
+ * Improved: Metacafe, Myspace, Videojug are now handled via Iframe
766
+
767
+ ### 2.6.2 ###
768
+
769
+ * Fix: Objects open correctly in Colorbox
770
+ * Fix: Iframe autoplay parameters startign with '&'
771
+ * New: Added screenshot for options page
772
+ * 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.
773
+
774
+ ### 2.6.1 ###
775
+
776
+ * Fix: Colorbox args script not having colorbox in depenency array
777
+ * Fix: Maxwidth shortcode generator field now has default value#""
778
+ * Fix: Blip embed code detection
779
+
780
+ ### 2.6.0 ###
781
+
782
+ * Improved: Move to a class structure with help of the great https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate
783
+ * Improved: Some smaller Improvements
784
+ * New: Shortcode Dialog now has Autoplay option
785
+ * New: Guessing of autoplay parameters for the Iframe shortcodes.
786
+ * Hopefully fixed issues with other plugins and some themes, Javascript was messed up and is fine now.
787
+
788
+ ### 2.5 ###
789
+
790
+ * Fix: Objects in Colorboxes, now always have width and height 100%
791
+ * new shortcode attribute 'autoplay' for single videos
792
+ * support for start at given time for vimeo
793
+
794
+ ### 2.4 ###
795
+
796
+ * propper licence
797
+ * Class renamed
798
+
799
+ ### 2.3 beta ###
800
+
801
+ * fix for maxwidth wrapper no maxwidth option is set
802
+
803
+ ### 2.1 beta ###
804
+
805
+ * Security and general code improvements
806
+ * Added autoplay option
807
+
808
+ ### 2.0 beta ###
809
+
810
+ * added Yahoo!
811
+ * spike bugfix
812
+ * small improvements to code
813
+ * removed the fixed mode
814
+
815
+ ### 1.9 beta ###
816
+
817
+ * added youtubes modestbranding mode
818
+ * added missing veoh id detection
819
+ * fixed vimeo id detection
820
+ * added now custom thumbnail feature
821
+ * fixed the align class creation
822
+ * renamed the shortcode dialog
823
+ * removed the text field for teh fixed width option (beginning of the removal process)
824
+
825
+ ### 1.8 beta ###
826
+
827
+ * added new tinymce botton with dialog to detect ids from URL's and embed codes and automatically create shortcodes
828
+ * removed the image resizer (Faster and more secure for servers), now uses just CSS. Polyfill for for IE to support 'background-size' included.
829
+ * changed the play overlay image to a bigger one
830
+ * added comedycentral, spike
831
+ * removed google video, it died
832
+ * lots of improvements and fixes
833
+
834
+ ### 1.7 ###
835
+
836
+ * fixed gametrailers and collegehumor
837
+ * fixed options handling for updateded options
838
+ * added ustream support
839
+ * renamed a function to prevent issues with other plugins
840
+
841
+ ### 1.6 ###
842
+
843
+ * corrected readme errors, typos and added better description to shortcode options
844
+
845
+ ### 1.5 ###
846
+
847
+ * lots of code improvements, now uses wordpress settings api, and propper sanitising
848
+
849
+ ### 1.4.5 ###
850
+
851
+ * added flickr video, archive.org
852
+ * inproved how flashvars were implemented
853
+
854
+ ### 1.4.4 ###
855
+
856
+ * fixes
857
+
858
+ ### 1.4.2 ###
859
+
860
+ * Options dialog overhaul
861
+ * replaced Fancybox with Colorbox
862
+
863
+ ### 1.0 ###
864
+
865
+ * Removed Services that went down over the years
866
+ * Changed the way shortcodes were implemented from regexp to wordpress 'add shortcode' function
867
+
868
+ ### 0.1 ###
869
+
870
+ * Started by improving the Wordpress 'Video Embedder Plugin' but now complete new code
LICENSE.txt CHANGED
File without changes
admin/arve-admin.css CHANGED
@@ -2,6 +2,10 @@
2
width: 280px;
3
}
4
5
.arve-btn {
6
padding-left: 3px;
7
}
@@ -10,6 +14,10 @@
10
content: "\f236" !important; /* dashicon-video-alt */
11
}
12
13
.edit-shortcode-form-fields.shortcode-ui-edit-arve .field-block {
14
padding-top: .4em;
15
padding-bottom: .4em;
@@ -31,37 +39,3 @@
31
.edit-shortcode-form-fields.shortcode-ui-edit-arve .shortcode-ui-attribute-description input {
32
width: 700px;
33
}
34
-
35
- .arve-list-small {
36
- font-size: .85em;
37
- list-style: square;
38
- padding-left: 20px;
39
- }
40
-
41
- .arve-list-small li {
42
- margin-bottom: 2px;
43
- }
44
-
45
- .arve-settings-page-ad {
46
- margin: 0;
47
- padding-right: .7rem !important;
48
- }
49
-
50
- .arve-corner-spacer {
51
- float: right;
52
- width: 20px;
53
- height: 38px;
54
- }
55
-
56
- @media all and (min-width: 1024px) {
57
- .arve-settings-page-ad {
58
- position: absolute !important;
59
- right: 0;
60
- width: 320px;
61
- }
62
-
63
- .arve-options-wrap {
64
- padding-right: 350px;
65
- position: relative;
66
- }
67
- }
2
width: 280px;
3
}
4
5
+ [data-nj-notice-id] p {
6
+ font-size: 1.2em;
7
+ }
8
+
9
.arve-btn {
10
padding-left: 3px;
11
}
14
content: "\f236" !important; /* dashicon-video-alt */
15
}
16
17
+ .arve-options-wrap {
18
+ max-width: 1000px;
19
+ }
20
+
21
.edit-shortcode-form-fields.shortcode-ui-edit-arve .field-block {
22
padding-top: .4em;
23
padding-bottom: .4em;
39
.edit-shortcode-form-fields.shortcode-ui-edit-arve .shortcode-ui-attribute-description input {
40
width: 700px;
41
}
admin/arve-admin.js CHANGED
@@ -47,8 +47,8 @@
47
$(document).on( 'click', '[data-image-upload]', function(e) {
48
49
e.preventDefault();
50
- var target = $( this ).attr('data-image-upload');
51
- var image = wp.media({
52
title: 'Upload Image',
53
// mutiple: true if you want to upload multiple files at once
54
multiple: false
47
$(document).on( 'click', '[data-image-upload]', function(e) {
48
49
e.preventDefault();
50
+ var target = $( this ).attr('data-image-upload'),
51
+ image = wp.media({
52
title: 'Upload Image',
53
// mutiple: true if you want to upload multiple files at once
54
multiple: false
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-arve-admin-notice-factory.php CHANGED
@@ -25,11 +25,8 @@ class ARVE_Admin_Notice_Factory {
25
}
26
27
function action_admin_notices() {
28
-
29
- if ( apply_filters( 'nj_debug_admin_message', false ) ) {
30
- delete_user_meta( get_current_user_id(), $this->notice_id );
31
- delete_transient( $this->notice_id );
32
- }
33
34
$user_id = get_current_user_id();
35
$user_meta = get_user_meta( $user_id, $this->notice_id );
25
}
26
27
function action_admin_notices() {
28
+ #delete_user_meta( get_current_user_id(), $this->notice_id );
29
+ #delete_transient( $this->notice_id );
30
31
$user_id = get_current_user_id();
32
$user_meta = get_user_meta( $user_id, $this->notice_id );
admin/{class-nextgenthemes-plugin-updater.php → class-edd-sl-plugin-updater.php} RENAMED
@@ -7,9 +7,9 @@ if ( ! defined( 'ABSPATH' ) ) exit;
7
* Allows plugins to use their own update API.
8
*
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();
@@ -307,20 +307,18 @@ class Nextgenthemes_Plugin_Updater {
307
* @return object $array
308
*/
309
public function http_request_args( $args, $url ) {
310
-
311
- $verify_ssl = $this->verify_ssl();
312
if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
313
- $args['sslverify'] = $verify_ssl;
314
}
315
return $args;
316
-
317
}
318
319
/**
320
* Calls the API and, if successfull, returns the object delivered by the API.
321
*
322
* @uses get_bloginfo()
323
- * @uses wp_remote_post()
324
* @uses is_wp_error()
325
*
326
* @param string $_action The requested action.
@@ -353,8 +351,7 @@ class Nextgenthemes_Plugin_Updater {
353
'beta' => ! empty( $data['beta'] ),
354
);
355
356
- $verify_ssl = $this->verify_ssl();
357
- $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
358
359
if ( ! is_wp_error( $request ) ) {
360
$request = json_decode( wp_remote_retrieve_body( $request ) );
@@ -416,14 +413,12 @@ class Nextgenthemes_Plugin_Updater {
416
'beta' => ! empty( $data['beta'] )
417
);
418
419
- $verify_ssl = $this->verify_ssl();
420
- $request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => $verify_ssl, 'body' => $api_params ) );
421
422
if ( ! is_wp_error( $request ) ) {
423
$version_info = json_decode( wp_remote_retrieve_body( $request ) );
424
}
425
426
-
427
if ( ! empty( $version_info ) && isset( $version_info->sections ) ) {
428
$version_info->sections = maybe_unserialize( $version_info->sections );
429
} else {
@@ -474,18 +469,8 @@ class Nextgenthemes_Plugin_Updater {
474
'value' => json_encode( $value )
475
);
476
477
- update_option( $cache_key, $data, 'no' );
478
-
479
- }
480
481
- /**
482
- * Returns if the SSL of the store should be verified.
483
- *
484
- * @since 1.6.13
485
- * @return bool
486
- */
487
- private function verify_ssl() {
488
- return (bool) apply_filters( 'edd_sl_api_request_verify_ssl', true, $this );
489
}
490
491
}
7
* Allows plugins to use their own update API.
8
*
9
* @author Easy Digital Downloads
10
+ * @version 1.6.12
11
*/
12
+ class EDD_SL_Plugin_Updater {
13
14
private $api_url = '';
15
private $api_data = array();
307
* @return object $array
308
*/
309
public function http_request_args( $args, $url ) {
310
+ // If it is an https request and we are performing a package download, disable ssl verification
311
if ( strpos( $url, 'https://' ) !== false && strpos( $url, 'edd_action=package_download' ) ) {
312
+ $args['sslverify'] = true;
313
}
314
return $args;
315
}
316
317
/**
318
* Calls the API and, if successfull, returns the object delivered by the API.
319
*
320
* @uses get_bloginfo()
321
+ * @uses wp_remote_get()
322
* @uses is_wp_error()
323
*
324
* @param string $_action The requested action.
351
'beta' => ! empty( $data['beta'] ),
352
);
353
354
+ $request = wp_remote_get( $this->api_url, array( 'timeout' => 15, 'sslverify' => true, 'body' => $api_params ) );
355
356
if ( ! is_wp_error( $request ) ) {
357
$request = json_decode( wp_remote_retrieve_body( $request ) );
413
'beta' => ! empty( $data['beta'] )
414
);
415
416
+ $request = wp_remote_get( $this->api_url, array( 'timeout' => 15, 'sslverify' => true, 'body' => $api_params ) );
417
418
if ( ! is_wp_error( $request ) ) {
419
$version_info = json_decode( wp_remote_retrieve_body( $request ) );
420
}
421
422
if ( ! empty( $version_info ) && isset( $version_info->sections ) ) {
423
$version_info->sections = maybe_unserialize( $version_info->sections );
424
} else {
469
'value' => json_encode( $value )
470
);
471
472
+ update_option( $cache_key, $data );
473
474
}
475
476
}
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,17 +9,14 @@ 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
}
30
31
- if( arve_display_pro_ad() ) {
32
-
33
- $pro_ad_message = __( '<p>Hi, this is Nico(las Jonas) the author of the ARVE - Advanced Responsive Video Embedder plugin. If you are interrested in additional features and/or want to support the work I do on this plugin please consider buying the Pro Addon.</p>', ARVE_SLUG );
34
-
35
- $pro_ad_message .= file_get_contents( ARVE_PATH . 'admin/pro-ad.html' );
36
37
new ARVE_Admin_Notice_Factory( 'arve_dismiss_pro_notice', $pro_ad_message, true );
38
}
39
}
@@ -43,7 +26,7 @@ function arve_add_tinymce_plugin( $plugin_array ) {
43
return $plugin_array;
44
}
45
46
- function arve_display_pro_ad() {
47
48
$inst = (int) get_option( 'arve_install_date' );
49
@@ -51,52 +34,49 @@ function arve_display_pro_ad() {
51
return false;
52
}
53
54
- return true;
55
- }
56
-
57
- function arve_widget_text() {
58
59
- printf( '<big><strong><a href="%s">Hiring a Marketing Person</a></strong></big>', 'https://nextgenthemes.com/hiring-a-marketing-person/' );
60
61
- echo '<p>';
62
- printf( '<a href="%s">Documentation</a>, ', 'https://nextgenthemes.com/plugins/arve/documentation/' );
63
- printf( '<a href="%s">Support</a>, ', 'https://nextgenthemes.com/support/' );
64
- printf( '<a href="%s">%s</a>', admin_url( 'admin.php?page=advanced-responsive-video-embedder' ), __( 'Settings', ARVE_SLUG ) );
65
- echo '</p>';
66
-
67
- printf( '<a href="%s">ARVE Pro Addon Features</a>:', 'https://nextgenthemes.com/plugins/arve-pro/' );
68
69
- echo file_get_contents( ARVE_PATH . 'admin/pro-ad.html' );
70
}
71
72
function arve_add_dashboard_widget() {
73
74
- if( ! arve_display_pro_ad() ) {
75
return false;
76
}
77
78
wp_add_dashboard_widget(
79
'arve_dashboard_widget', // Widget slug.
80
'Advanced Responsive Video Embedder', // Title.
81
- 'arve_widget_text' // Display function.
82
);
83
84
- // Globalize the metaboxes array, this holds all the widgets for wp-admin.
85
global $wp_meta_boxes, $pagenow;
86
87
if( 'index.php' == $pagenow ) {
88
- // Get the regular dashboard widgets array.
89
- // (which has our new widget already but at the end).
90
$normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];
91
92
- // Backup and delete our new dashboard widget from the end of the array.
93
$arve_widget_backup = array( 'arve_dashboard_widget' => $normal_dashboard['arve_dashboard_widget'] );
94
unset( $normal_dashboard['arve_dashboard_widget'] );
95
96
- // Merge the two arrays together so our widget is at the beginning.
97
$sorted_dashboard = array_merge( $arve_widget_backup, $normal_dashboard );
98
99
- // Save the sorted array back into the original metaboxes.
100
$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;
101
}
102
}
@@ -150,7 +130,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 +159,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(
@@ -355,8 +335,8 @@ function arve_register_settings() {
355
$value['label'], // title
356
$callback_function, // callback
357
ARVE_SLUG, // page
358
- 'main_section', // section
359
- array( // args
360
'label_for' => ( 'radio' === $value['type'] ) ? null : "arve_options_main[{$value['attr']}]",
361
'input_attr' => $value['meta'] + array(
362
'type' => $value['type'],
@@ -503,10 +483,12 @@ 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 ),
509
- esc_url( 'https://nextgenthemes.com/arve/documentation' )
510
);
511
512
echo "<p>$desc</p>";
@@ -517,7 +499,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
}
@@ -568,43 +550,42 @@ function arve_debug_section_description() {
568
*/
569
function arve_validate_options_main( $input ) {
570
571
- // Storing the Options Section as a empty array will cause the plugin to use defaults
572
if( isset( $input['reset'] ) ) {
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' );
601
- // Store only the options in the database that are different from the defaults.
602
return array_diff_assoc( $output, $options_defaults );
603
}
604
605
function arve_validate_options_params( $input ) {
606
607
- // Storing the Options Section as a empty array will cause the plugin to use defaults
608
if( isset( $input['reset'] ) ) {
609
return array();
610
}
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
}
16
17
+ $pro_ad_message = arve_get_pro_ad();
18
19
+ if( $pro_ad_message ) {
20
new ARVE_Admin_Notice_Factory( 'arve_dismiss_pro_notice', $pro_ad_message, true );
21
}
22
}
26
return $plugin_array;
27
}
28
29
+ function arve_get_pro_ad() {
30
31
$inst = (int) get_option( 'arve_install_date' );
32
34
return false;
35
}
36
37
+ $pro_message = __( '<p>Hi, this is Nico(las Jonas) the author of the Advanced Responsive Video Embedder plugin. If you get easily offended by promotions on your admin please close this fast right now.</p>', ARVE_SLUG );
38
39
+ $pro_message .= file_get_contents( plugin_dir_path( dirname( __FILE__ ) ) . 'readme/html/20-description-features-pro.html' );
40
+ $pro_message = str_replace( '<ul ', '<ul style="list-style: square; padding-left: 20px;" ', $pro_message );
41
42
+ return $pro_message;
43
+ }
44
45
+ function arve_echo_pro_ad() {
46
+ echo arve_get_pro_ad();
47
}
48
49
function arve_add_dashboard_widget() {
50
51
+ $pro_ad_message = arve_get_pro_ad();
52
+
53
+ if( ! $pro_ad_message ) {
54
return false;
55
}
56
57
wp_add_dashboard_widget(
58
'arve_dashboard_widget', // Widget slug.
59
'Advanced Responsive Video Embedder', // Title.
60
+ 'arve_echo_pro_ad' // Display function.
61
);
62
63
+ // Globalize the metaboxes array, this holds all the widgets for wp-admin
64
global $wp_meta_boxes, $pagenow;
65
66
if( 'index.php' == $pagenow ) {
67
+
68
+ // Get the regular dashboard widgets array
69
+ // (which has our new widget already but at the end)
70
$normal_dashboard = $wp_meta_boxes['dashboard']['normal']['core'];
71
72
+ // Backup and delete our new dashboard widget from the end of the array
73
$arve_widget_backup = array( 'arve_dashboard_widget' => $normal_dashboard['arve_dashboard_widget'] );
74
unset( $normal_dashboard['arve_dashboard_widget'] );
75
76
+ // Merge the two arrays together so our widget is at the beginning
77
$sorted_dashboard = array_merge( $arve_widget_backup, $normal_dashboard );
78
79
+ // Save the sorted array back into the original metaboxes
80
$wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;
81
}
82
}
130
131
$extra_links['buy_pro_addon'] = sprintf(
132
'<a href="%s"><strong style="display: inline;">%s</strong></a>',
133
+ 'http://nextgenthemes.com/downloads/advanced-responsive-video-embedder',
134
__( 'Buy Pro Addon', ARVE_SLUG )
135
);
136
}
159
printf(
160
"<div id='arve-thickbox' style='display:none;'><p>$p1</p><p>$p2</p><p>$p3</p></div>",
161
nextgenthemes_admin_install_search_url( 'Shortcode+UI' ),
162
+ esc_url( 'https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/documentation/' )
163
);
164
165
printf(
335
$value['label'], // title
336
$callback_function, // callback
337
ARVE_SLUG, // page
338
+ 'main_section', // section
339
+ array( // args
340
'label_for' => ( 'radio' === $value['type'] ) ? null : "arve_options_main[{$value['attr']}]",
341
'input_attr' => $value['meta'] + array(
342
'type' => $value['type'],
483
484
function arve_params_section_description() {
485
486
+ $url = 'https://nextgenthemes.com/advanced-responsive-video-embedder-pro/documentation';
487
+
488
$desc = sprintf(
489
__( '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.',
490
ARVE_SLUG ),
491
+ esc_url( 'https://nextgenthemes.com/advanced-responsive-video-embedder-pro/documentation' )
492
);
493
494
echo "<p>$desc</p>";
499
<a target="_blank" href="https://developers.google.com/youtube/player_parameters">Youtube Parameters</a>,
500
<a target="_blank" href="http://www.dailymotion.com/doc/api/player.html#parameters">Dailymotion Parameters</a>,
501
<a target="_blank" href="https://developer.vimeo.com/player/embedding">Vimeo Parameters</a>,
502
+ <a target="_blank" href="https://nextgenthemes.com/advanced-responsive-video-embedder-pro/documentation">Vimeo Parameters</a>,
503
</p>
504
<?php
505
}
550
*/
551
function arve_validate_options_main( $input ) {
552
553
+ //* Storing the Options Section as a empty array will cause the plugin to use defaults
554
if( isset( $input['reset'] ) ) {
555
return array();
556
}
557
558
+ $output = array();
559
+
560
+ $output['align'] = sanitize_text_field( $input['align'] );
561
+ $output['mode'] = sanitize_text_field( $input['mode'] );
562
+ $output['last_settings_tab'] = sanitize_text_field( $input['last_settings_tab'] );
563
+ $output['controlslist'] = sanitize_text_field( $input['controlslist'] );
564
565
+ $output['autoplay'] = ( 'yes' == $input['autoplay'] ) ? true : false;
566
+ $output['promote_link'] = ( 'yes' == $input['promote_link'] ) ? true : false;
567
+ $output['wp_video_override'] = ( 'yes' == $input['wp_video_override'] ) ? true : false;
568
569
$output['wp_image_cache_time'] = (int) $input['wp_image_cache_time'];
570
571
if( (int) $input['video_maxwidth'] > 100 ) {
572
+ $output['video_maxwidth'] = (int) $input['video_maxwidth'];
573
} else {
574
+ $output['video_maxwidth'] = '';
575
}
576
577
if( (int) $input['align_maxwidth'] > 100 ) {
578
+ $output['align_maxwidth'] = (int) $input['align_maxwidth'];
579
}
580
581
$options_defaults = arve_get_options_defaults( 'main' );
582
+ //* Store only the options in the database that are different from the defaults.
583
return array_diff_assoc( $output, $options_defaults );
584
}
585
586
function arve_validate_options_params( $input ) {
587
588
+ //* Storing the Options Section as a empty array will cause the plugin to use defaults
589
if( isset( $input['reset'] ) ) {
590
return array();
591
}
admin/functions-licensing.php CHANGED
@@ -90,8 +90,7 @@ function nextgenthemes_ads_page() { ?>
90
margin-right: 1.7rem;
91
font-size: 1.2rem;
92
}
93
- #nextgenthemes-ads ul {
94
- list-style: square;
95
margin-left: 2.5rem;
96
margin-right: .7rem;
97
}
@@ -114,9 +113,23 @@ 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>
121
</a>
122
<?php endif; ?>
@@ -124,7 +137,16 @@ function nextgenthemes_ads_page() { ?>
124
<?php if ( ! defined( 'ARVE_AMP_VERSION' ) ) : ?>
125
<a href="https://nextgenthemes.com/plugins/arve-accelerated-mobile-pages-addon/">
126
<figure><img src="<?php echo $img_dir; ?>arve.svg" alt"ARVE"></figure>
127
- <?php nextgenthemes_feature_list_html( ARVE_PATH . 'readme/html/25-description-features-amp.html' ); ?>
128
<span>Paid</span>
129
</a>
130
<?php endif; ?>
@@ -142,10 +164,6 @@ function nextgenthemes_ads_page() { ?>
142
<?php
143
}
144
145
- function nextgenthemes_feature_list_html( $filepath ) {
146
- echo strip_tags( file_get_contents( $filepath ), '<ul></ul><li></li><h3></h3>' );
147
- }
148
-
149
function nextgenthemes_activation_notices() {
150
151
$products = nextgenthemes_get_products();
@@ -168,25 +186,16 @@ 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/',
190
)
191
);
192
@@ -209,16 +218,6 @@ function nextgenthemes_get_products() {
209
$products[ $key ]['file'] = constant( $file_define );
210
}
211
212
- $version_define = "\\nextgenthemes\\$key\\VERSION";
213
- $file_define = "\\nextgenthemes\\$key\\FILE";
214
-
215
- if( defined( $version_define ) ) {
216
- $products[ $key ]['version'] = constant( $version_define );
217
- }
218
- if( defined( $file_define ) ) {
219
- $products[ $key ]['file'] = constant( $file_define );
220
- }
221
-
222
if ( 'plugin' == $value['type'] ) {
223
224
$file_slug = str_replace( '_', '-', $key );
@@ -253,12 +252,36 @@ function nextgenthemes_is_plugin_installed( $plugin_basename ) {
253
*/
254
function nextgenthemes_menus() {
255
256
- $plugin_screen_hook_suffix = add_options_page(
257
- __( 'ARVE Licenses', ARVE_SLUG ),
258
- __( 'ARVE Licenses', ARVE_SLUG ),
259
- 'manage_options',
260
- 'nextgenthemes-licenses',
261
- 'nextgenthemes_licenses_page'
262
);
263
}
264
@@ -397,13 +420,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 +476,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 +492,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,47 +528,55 @@ 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' );
513
}
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
530
- if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
531
532
- if ( is_wp_error( $response ) ) {
533
- $message = $response->get_error_message();
534
- } else {
535
- $message = __( 'An error occurred, please try again.', ARVE_SLUG );
536
- }
537
538
} else {
539
540
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
541
542
- if ( false === $license_data->success ) {
543
544
switch( $license_data->error ) {
545
546
case 'expired' :
547
548
$message = sprintf(
549
- __( 'Your license key expired on %s.' ),
550
date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
551
);
552
break;
@@ -569,46 +599,30 @@ function nextgenthemes_api_action( $item_id, $key, $action ) {
569
570
case 'item_name_mismatch' :
571
572
- $message = sprintf( __( 'This appears to be an invalid license key for %s.' ), ARVE_SLUG );
573
break;
574
575
- case 'no_activations_left':
576
577
$message = __( 'Your license key has reached its activation limit.', ARVE_SLUG );
578
break;
579
580
default :
581
582
- $message = __( 'An error occurred, please try again.', ARVE_SLUG );
583
break;
584
}
585
- }
586
- }
587
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
- }
601
}
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
- }
90
margin-right: 1.7rem;
91
font-size: 1.2rem;
92
}
93
+ #nextgenthemes-ads ol {
94
margin-left: 2.5rem;
95
margin-right: .7rem;
96
}
113
<div id="nextgenthemes-ads">
114
115
<?php if ( ! defined( 'ARVE_PRO_VERSION' ) ) : ?>
116
+ <a href="https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/">
117
<figure><img src="<?php echo $img_dir; ?>arve.svg" alt"ARVE"></figure>
118
+ <h1>^ Pro Addon</h1>
119
+ <ol>
120
+ <li><strong>Feel good about yourself</strong><br>for supporting my long time work on this plugin. Tons of hours, weekends … always worked on improving it 4+ years.</li>
121
+ <li><strong>Disable links in embeds (killer feature!)</strong><br>For example: Clicking on a title in a YouTube embed will not open a new popup/tab/window. <strong>Prevent video hosters to lead your visitors away from your site!</strong> Note this also breaks sharing functionality and is not possible when the provider requires flash. Right click on links still works.</li>
122
+ <li><strong>Lazyload mode</strong><br>Make your site load <strong>faster</strong> by loading only a image instead of the entire video player on pageload. </li>
123
+ <li><strong>Lazyload -&gt; Lightbox</strong><br>Shows the Video in a Lightbox after clicking a preview image</li>
124
+ <li><strong>Link -&gt; Lightbox</strong><br>Use simple links as triggers for lightboxed videos</li>
125
+ <li>Show the latest video of a YouTube channel by using the channel URL (updated/cached hourly)</li>
126
+ <li>Automatic or custom thumbnail images</li>
127
+ <li>Automatic or custom titles on top of your thumbnails</li>
128
+ <li>&#39;Grow on click&#39; feature</li>
129
+ <li>3 hover styles</li>
130
+ <li>2 play icon styles to choose from</li>
131
+ <li>Responsive thumbnails using cutting edge HTML5 technology</li>
132
+ </ol>
133
<span>Paid</span>
134
</a>
135
<?php endif; ?>
137
<?php if ( ! defined( 'ARVE_AMP_VERSION' ) ) : ?>
138
<a href="https://nextgenthemes.com/plugins/arve-accelerated-mobile-pages-addon/">
139
<figure><img src="<?php echo $img_dir; ?>arve.svg" alt"ARVE"></figure>
140
+ <h3>^ AMP Addon</h3>
141
+ <ol>
142
+ <li>Requires the gratis plugins ARVE and AMP</li>
143
+ <li>Makes ARVE ready for Accelerated Mobile Pages (AMP)</li>
144
+ <li>It will display videos embedded with ARVE on AMP pages correctly</li>
145
+ <li>No options, just works</li>
146
+ <li>It creates &lt;amp-youtube&gt;, &lt;amp-vimeo&gt;, &lt;amp-dailymotion&gt; elements</li>
147
+ <li>For all other video hosts supported by ARVE &lt;amp-iframe&gt; element is used</li>
148
+ <li>HTML5 video files are also supported with &lt;amp-video&gt;</li>
149
+ </ol>
150
<span>Paid</span>
151
</a>
152
<?php endif; ?>
164
<?php
165
}
166
167
function nextgenthemes_activation_notices() {
168
169
$products = nextgenthemes_get_products();
186
187
$products = array(
188
'arve_pro' => array(
189
+ 'name' => 'Advanced Responsive Video Embedder Pro',
190
'type' => 'plugin',
191
'author' => 'Nicolas Jonas',
192
+ 'url' => 'https://nextgenthemes.com/plugins/advanced-responsive-video-embedder-pro/',
193
),
194
'arve_amp' => array(
195
+ 'name' => 'ARVE Accelerated Mobile Pages Addon',
196
'type' => 'plugin',
197
'author' => 'Nicolas Jonas',
198
+ 'url' => 'https://nextgenthemes.com/plugins/arve-accelerated-mobile-pages-addon/',
199
)
200
);
201
218
$products[ $key ]['file'] = constant( $file_define );
219
}
220
221
if ( 'plugin' == $value['type'] ) {
222
223
$file_slug = str_replace( '_', '-', $key );
252
*/
253
function nextgenthemes_menus() {
254
255
+ $plugin_screen_hook_suffix = add_menu_page(
256
+ __( 'Nextgenthemes', ARVE_SLUG ), # Page Title
257
+ __( 'Nextgenthemes', ARVE_SLUG ), # Menu Tile
258
+ 'manage_options', # capability
259
+ 'nextgenthemes', # menu-slug
260
+ 'nextgenthemes_ads_page', # function
261
+ 'dashicons-video-alt3', # icon_url
262
+ '80.892' # position
263
+ );
264
+
265
+ /*
266
+ add_submenu_page(
267
+ 'nextgenthemes', # parent_slug
268
+ __( 'Addons and Themes', ARVE_SLUG ), # Page Title
269
+ __( 'Addons and Themes', ARVE_SLUG ), # Menu Tile
270
+ 'manage_options', # capability
271
+ 'nextgenthemes', # menu-slug
272
+ function() {
273
+ require_once plugin_dir_path( __FILE__ ) . 'html-ad-page.php';
274
+ }
275
+ );
276
+ */
277
+
278
+ add_submenu_page(
279
+ 'nextgenthemes', # parent_slug
280
+ __( 'Licenses', ARVE_SLUG ), # Page Title
281
+ __( 'Licenses', ARVE_SLUG ), # Menu Tile
282
+ 'manage_options', # capability
283
+ 'nextgenthemes-licenses', # menu-slug
284
+ 'nextgenthemes_licenses_page' # function
285
);
286
}
287
420
update_option( "nextgenthemes_{$product}_key_status", $key );
421
}
422
function nextgenthemes_has_valid_key( $product ) {
423
+ return ( 'valid' == nextgenthemes_get_key_status( $product ) ) ? true : false;
424
}
425
426
function nextgenthemes_api_update_key_status( $product, $key, $action ) {
427
428
$products = nextgenthemes_get_products();
429
+ $key_status = nextgenthemes_api_action( $products[ $product ]['name'], $key, $action );
430
431
nextgenthemes_update_key_status( $product, $key_status );
432
}
476
function nextgenthemes_init_plugin_updater( $product ) {
477
478
// setup the updater
479
+ new EDD_SL_Plugin_Updater(
480
+ 'https://nextgenthemes.com',
481
$product['file'],
482
array(
483
+ 'version' => $product['version'],
484
+ 'license' => nextgenthemes_get_key( $product['slug'] ),
485
+ 'item_name' => $product['name'],
486
+ 'author' => $product['author']
487
)
488
);
489
}
492
493
new EDD_Theme_Updater(
494
array(
495
+ 'remote_api_url' => 'https://nextgenthemes.com',
496
+ 'version' => $product['version'],
497
+ 'license' => nextgenthemes_get_key( $product['slug'] ),
498
+ 'item_name' => $product['name'],
499
+ 'author' => $product['author'],
500
+ 'theme_slug' => $product['slug'],
501
+ 'download_id' => $product['download_id'], // Optional, used for generating a license renewal link
502
+ #'renew_url' => $product['renew_link'], // Optional, allows for a custom license renewal link
503
),
504
array(
505
'theme-license' => __( 'Theme License', ARVE_SLUG ),
528
);
529
}
530
531
+ function nextgenthemes_api_action( $item_name, $key, $action ) {
532
533
if ( ! in_array( $action, array( 'activate', 'deactivate', 'check' ) ) ) {
534
wp_die( 'invalid action' );
535
}
536
537
+ $wp_remote_args = array(
538
+ 'timeout' => 15,
539
+ 'sslverify' => true,
540
+ 'body' => array(
541
+ 'edd_action' => $action . '_license',
542
+ 'license' => sanitize_text_field( $key ),
543
+ 'item_name' => urlencode( $item_name ),
544
+ 'url' => home_url(),
545
+ )
546
);
547
548
+ $response = wp_remote_post( 'https://nextgenthemes.com', $wp_remote_args );
549
+ $response_code = wp_remote_retrieve_response_code( $response );
550
551
+ # retry with wp_remote_GET
552
+ if ( 200 !== $response_code ) {
553
+ $response = wp_remote_get( 'https://nextgenthemes.com', $wp_remote_args );
554
+ $response_code = wp_remote_retrieve_response_code( $response );
555
+ }
556
557
+ if ( 200 !== $response_code ) {
558
+
559
+ $message = sprintf(
560
+ __( 'Error: Response code should be 200 but was: %s.', ARVE_SLUG ),
561
+ $response_code
562
+ );
563
+
564
+ } elseif ( is_wp_error( $response ) ) {
565
+
566
+ $message = $response->get_error_message();
567
568
} else {
569
570
$license_data = json_decode( wp_remote_retrieve_body( $response ) );
571
572
+ if ( false === $license_data->success ) :
573
574
switch( $license_data->error ) {
575
576
case 'expired' :
577
578
$message = sprintf(
579
+ __( 'Your license key expired on %s.', ARVE_SLUG ),
580
date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )
581
);
582
break;
599
600
case 'item_name_mismatch' :
601
602
+ $message = sprintf( __( 'This appears to be an invalid license key for %s.', ARVE_SLUG ), $item_name );
603
break;
604
605
+ case 'no_activations_left' :
606
607
$message = __( 'Your license key has reached its activation limit.', ARVE_SLUG );
608
break;
609
610
default :
611
612
+ $message = sprintf(
613
+ __( 'Error: %s.', ARVE_SLUG ),
614
+ $license_data->error
615
+ );
616
+
617
break;
618
}
619
620
+ endif; // false === $license_data->success
621
+ }
622
623
+ if( empty( $message ) ) {
624
+ $message = $license_data->license;
625
}
626
627
return $message;
628
}
admin/html-debug-info.php CHANGED
File without changes
admin/html-settings-page.php CHANGED
@@ -13,54 +13,18 @@
13
*/
14
15
$options = arve_get_options();
16
?>
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">
23
-
24
- <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
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
-
58
- <?php endif; ?>
59
-
60
<h2><?php esc_html_e( get_admin_page_title() ); ?></h2>
61
62
- <h2 class="nav-tab-wrapper arve-settings-tabs"></h2>
63
64
<form class="arve-options-form" method="post" action="options.php">
65
66
<?php do_settings_sections( ARVE_SLUG ); ?>
13
*/
14
15
$options = arve_get_options();
16
+ $ad = arve_get_pro_ad();
17
?>
18
<div class="wrap arve-options-wrap">
19
20
<h2><?php esc_html_e( get_admin_page_title() ); ?></h2>
21
22
+ <?php
23
+ if ( $ad ) {
24
+ echo '<div class="notice is-dismissible updated">' . $ad . '</div>';
25
+ } ?>
26
27
+ <h2 class="nav-tab-wrapper arve-settings-tabs"></h2>
28
<form class="arve-options-form" method="post" action="options.php">
29
30
<?php do_settings_sections( ARVE_SLUG ); ?>
admin/index.php CHANGED
File without changes
admin/pro-ad.html DELETED
@@ -1,14 +0,0 @@
1
- <ul class="arve-list-small">
2
- <li><strong>Disable links in embeds</strong><br>
3
- 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.</li>
4
- <li><strong>Lazyload mode</strong><br>
5
- Make your site load <strong>faster</strong> by loading only a image instead of the entire video player on pageload. </li>
6
- <li><strong>Lazyload -> Lightbox</strong><br>
7
- Shows the Video in a Lightbox after clicking a preview image</li>
8
- <li><strong>Link -> Lightbox</strong><br>
9
- Use simple links as triggers for lightboxed videos</li>
10
- <li>Automatic or custom titles and thumbnails images</li>
11
- <li>'Expand on click' feature</li>
12
- <li>Show the latest video of a YouTube channel by using the channel URL (updated/cached hourly)</li>
13
- <li>And more, for a <strong><a href="https://nextgenthemes.com/plugins/arve-pro/">complete feature list</a></strong> and purchase please visit the <strong><a href="https://nextgenthemes.com/plugins/arve-pro/">official site</a></strong></li>
14
- </ul>
admin/product-images/arve.svg CHANGED
File without changes
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,16 +19,19 @@ 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__ ) );
26
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 +46,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';
@@ -65,7 +70,6 @@ function arve_init() {
65
ad