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

Version Description

Download this release

Release Info

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

Code changes from version 8.9.5 to 8.2.3

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