FooGallery – Image Gallery WordPress Plugin - Version 1.3.29

Version Description

Update now to support FooVideo and many other improvements!

Download this release

Release Info

Developer bradvin
Plugin Icon 128x128 FooGallery – Image Gallery WordPress Plugin
Version 1.3.29
Comparing to
See all releases

Version 1.3.29

Files changed (379) hide show
  1. Gruntfile.js +212 -0
  2. LICENSE.txt +339 -0
  3. README.md +326 -0
  4. README.txt +323 -0
  5. assets/extension_bg.png +0 -0
  6. assets/foobot_small.png +0 -0
  7. assets/image-placeholder.png +0 -0
  8. assets/logo.png +0 -0
  9. assets/screenshots/admin-edit-gallery.jpg +0 -0
  10. assets/screenshots/admin-insert-shortcode.jpg +0 -0
  11. assets/screenshots/admin-nextgen-import.jpg +0 -0
  12. changelog.txt +4 -0
  13. css/admin-foogallery.css +462 -0
  14. css/admin-page-foogallery-extensions.css +297 -0
  15. css/admin-page-foogallery-settings.css +3 -0
  16. css/admin-tinymce.css +114 -0
  17. css/foogallery-foovideo-overrides.css +96 -0
  18. css/foogallery.admin.min.css +1 -0
  19. extensions/albums/admin/class-columns.php +73 -0
  20. extensions/albums/admin/class-metaboxes.php +576 -0
  21. extensions/albums/admin/index.php +1 -0
  22. extensions/albums/album-default.php +81 -0
  23. extensions/albums/album-stack.php +67 -0
  24. extensions/albums/class-albums-extension.php +111 -0
  25. extensions/albums/class-foogallery-album.php +256 -0
  26. extensions/albums/class-posttypes.php +108 -0
  27. extensions/albums/css/admin-foogallery-album.css +380 -0
  28. extensions/albums/css/album-default.css +102 -0
  29. extensions/albums/css/album-stack.css +290 -0
  30. extensions/albums/foogallery-albums.png +0 -0
  31. extensions/albums/functions.php +361 -0
  32. extensions/albums/js/admin-foogallery-album.js +148 -0
  33. extensions/albums/js/album-stack.js +863 -0
  34. extensions/albums/public/class-foogallery-album-template-loader.php +184 -0
  35. extensions/albums/public/class-rewrite-rules.php +17 -0
  36. extensions/albums/public/class-shortcodes.php +48 -0
  37. extensions/default-templates/class-default-templates-extension.php +47 -0
  38. extensions/default-templates/default/class-default-gallery-template.php +200 -0
  39. extensions/default-templates/default/gallery-default.php +22 -0
  40. extensions/default-templates/default/js/admin-gallery-default.js +89 -0
  41. extensions/default-templates/functions.php +22 -0
  42. extensions/default-templates/image-viewer/class-image-viewer-gallery-template.php +251 -0
  43. extensions/default-templates/image-viewer/gallery-image-viewer.php +41 -0
  44. extensions/default-templates/image-viewer/js/admin-gallery-image-viewer.js +123 -0
  45. extensions/default-templates/justified/class-justified-gallery-template.php +222 -0
  46. extensions/default-templates/justified/gallery-justified.php +21 -0
  47. extensions/default-templates/masonry/class-masonry-gallery-template.php +263 -0
  48. extensions/default-templates/masonry/gallery-masonry.php +26 -0
  49. extensions/default-templates/masonry/js/admin-gallery-masonry.js +30 -0
  50. extensions/default-templates/shared/css/admin-foogallery.css +78 -0
  51. extensions/default-templates/shared/css/foogallery.css +2305 -0
  52. extensions/default-templates/shared/css/foogallery.min.css +1 -0
  53. extensions/default-templates/shared/img/circle-plus.png +0 -0
  54. extensions/default-templates/shared/img/circle-plus@2x.png +0 -0
  55. extensions/default-templates/shared/img/circle-plus@3x.png +0 -0
  56. extensions/default-templates/shared/img/external.png +0 -0
  57. extensions/default-templates/shared/img/external@2x.png +0 -0
  58. extensions/default-templates/shared/img/external@3x.png +0 -0
  59. extensions/default-templates/shared/img/eye.png +0 -0
  60. extensions/default-templates/shared/img/eye@2x.png +0 -0
  61. extensions/default-templates/shared/img/eye@3x.png +0 -0
  62. extensions/default-templates/shared/img/image.png +0 -0
  63. extensions/default-templates/shared/img/image@2x.png +0 -0
  64. extensions/default-templates/shared/img/image@3x.png +0 -0
  65. extensions/default-templates/shared/img/plus.png +0 -0
  66. extensions/default-templates/shared/img/plus@2x.png +0 -0
  67. extensions/default-templates/shared/img/plus@3x.png +0 -0
  68. extensions/default-templates/shared/img/zoom.png +0 -0
  69. extensions/default-templates/shared/img/zoom2.png +0 -0
  70. extensions/default-templates/shared/img/zoom2@2x.png +0 -0
  71. extensions/default-templates/shared/img/zoom2@3x.png +0 -0
  72. extensions/default-templates/shared/img/zoom3.png +0 -0
  73. extensions/default-templates/shared/img/zoom3@2x.png +0 -0
  74. extensions/default-templates/shared/img/zoom3@3x.png +0 -0
  75. extensions/default-templates/shared/img/zoom@2x.png +0 -0
  76. extensions/default-templates/shared/img/zoom@3x.png +0 -0
  77. extensions/default-templates/shared/js/foogallery.js +7501 -0
  78. extensions/default-templates/shared/js/foogallery.min.js +10 -0
  79. extensions/default-templates/simple-portfolio/class-simple-portfolio-gallery-template.php +263 -0
  80. extensions/default-templates/simple-portfolio/gallery-simple_portfolio.php +27 -0
  81. extensions/default-templates/thumbnail/class-thumbnail-gallery-template.php +193 -0
  82. extensions/default-templates/thumbnail/gallery-thumbnail.php +40 -0
  83. extensions/default-templates/thumbnail/js/admin-gallery-thumbnail.js +30 -0
  84. extensions/extensions.json.js +118 -0
  85. extensions/media-categories/class-media-categories-extension.php +237 -0
  86. extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php +171 -0
  87. extensions/nextgen-importer/class-nextgen-helper.php +578 -0
  88. extensions/nextgen-importer/class-nextgen-import-progress-album.php +81 -0
  89. extensions/nextgen-importer/class-nextgen-import-progress.php +154 -0
  90. extensions/nextgen-importer/class-nextgen-pagination.php +213 -0
  91. extensions/nextgen-importer/view-importer.php +280 -0
  92. foogallery.php +306 -0
  93. freemius/.codeclimate.yml +19 -0
  94. freemius/.github/ISSUE_TEMPLATE.md +29 -0
  95. freemius/.travis.yml +11 -0
  96. freemius/LICENSE.txt +674 -0
  97. freemius/README.md +253 -0
  98. freemius/assets/css/admin/account.css +1 -0
  99. freemius/assets/css/admin/add-ons.css +2 -0
  100. freemius/assets/css/admin/checkout.css +1 -0
  101. freemius/assets/css/admin/common.css +2 -0
  102. freemius/assets/css/admin/connect.css +1 -0
  103. freemius/assets/css/admin/deactivation-feedback.css +1 -0
  104. freemius/assets/css/admin/debug.css +1 -0
  105. freemius/assets/css/admin/dialog-boxes.css +2 -0
  106. freemius/assets/css/admin/license-activation.css +1 -0
  107. freemius/assets/css/customizer.css +1 -0
  108. freemius/assets/img/foogallery.png +0 -0
  109. freemius/assets/img/plugin-icon.png +0 -0
  110. freemius/assets/img/theme-icon.png +0 -0
  111. freemius/assets/index.php +3 -0
  112. freemius/assets/js/nojquery.ba-postmessage.js +140 -0
  113. freemius/assets/js/nojquery.ba-postmessage.min.js +12 -0
  114. freemius/assets/js/postmessage.js +135 -0
  115. freemius/assets/scss/_colors.scss +65 -0
  116. freemius/assets/scss/_functions.scss +0 -0
  117. freemius/assets/scss/_load.scss +4 -0
  118. freemius/assets/scss/_mixins.scss +283 -0
  119. freemius/assets/scss/_start.scss +4 -0
  120. freemius/assets/scss/_vars.scss +6 -0
  121. freemius/assets/scss/admin/_ajax-loader.scss +49 -0
  122. freemius/assets/scss/admin/_auto-install.scss +33 -0
  123. freemius/assets/scss/admin/_deactivation-feedback.scss +55 -0
  124. freemius/assets/scss/admin/_license-activation.scss +7 -0
  125. freemius/assets/scss/admin/_license-key-resend.scss +68 -0
  126. freemius/assets/scss/admin/_modal-common.scss +186 -0
  127. freemius/assets/scss/admin/_themes.scss +21 -0
  128. freemius/assets/scss/admin/account.scss +256 -0
  129. freemius/assets/scss/admin/add-ons.scss +449 -0
  130. freemius/assets/scss/admin/checkout.scss +5 -0
  131. freemius/assets/scss/admin/common.scss +218 -0
  132. freemius/assets/scss/admin/connect.scss +520 -0
  133. freemius/assets/scss/admin/debug.scss +135 -0
  134. freemius/assets/scss/admin/dialog-boxes.scss +7 -0
  135. freemius/assets/scss/customizer.scss +125 -0
  136. freemius/composer.json +10 -0
  137. freemius/config.php +328 -0
  138. freemius/gulpfile.js +139 -0
  139. freemius/includes/class-freemius-abstract.php +597 -0
  140. freemius/includes/class-freemius.php +13647 -0
  141. freemius/includes/class-fs-api.php +558 -0
  142. freemius/includes/class-fs-logger.php +688 -0
  143. freemius/includes/class-fs-plugin-updater.php +714 -0
  144. freemius/includes/class-fs-security.php +85 -0
  145. freemius/includes/customizer/class-fs-customizer-support-section.php +102 -0
  146. freemius/includes/customizer/class-fs-customizer-upsell-control.php +157 -0
  147. freemius/includes/debug/class-fs-debug-bar-panel.php +64 -0
  148. freemius/includes/debug/debug-bar-start.php +52 -0
  149. freemius/includes/debug/index.php +3 -0
  150. freemius/includes/entities/class-fs-billing.php +95 -0
  151. freemius/includes/entities/class-fs-entity.php +149 -0
  152. freemius/includes/entities/class-fs-payment.php +94 -0
  153. freemius/includes/entities/class-fs-plugin-info.php +34 -0
  154. freemius/includes/entities/class-fs-plugin-license.php +224 -0
  155. freemius/includes/entities/class-fs-plugin-plan.php +145 -0
  156. freemius/includes/entities/class-fs-plugin-tag.php +24 -0
  157. freemius/includes/entities/class-fs-plugin.php +96 -0
  158. freemius/includes/entities/class-fs-pricing.php +141 -0
  159. freemius/includes/entities/class-fs-scope-entity.php +29 -0
  160. freemius/includes/entities/class-fs-site.php +148 -0
  161. freemius/includes/entities/class-fs-subscription.php +125 -0
  162. freemius/includes/entities/class-fs-user.php +62 -0
  163. freemius/includes/entities/index.php +3 -0
  164. freemius/includes/fs-core-functions.php +674 -0
  165. freemius/includes/fs-essential-functions.php +494 -0
  166. freemius/includes/fs-plugin-info-dialog.php +948 -0
  167. freemius/includes/i18n.php +549 -0
  168. freemius/includes/index.php +3 -0
  169. freemius/includes/l10n.php +268 -0
  170. freemius/includes/managers/class-fs-admin-menu-manager.php +849 -0
  171. freemius/includes/managers/class-fs-admin-notice-manager.php +324 -0
  172. freemius/includes/managers/class-fs-cache-manager.php +280 -0
  173. freemius/includes/managers/class-fs-key-value-storage.php +328 -0
  174. freemius/includes/managers/class-fs-license-manager.php +104 -0
  175. freemius/includes/managers/class-fs-option-manager.php +302 -0
  176. freemius/includes/managers/class-fs-plan-manager.php +162 -0
  177. freemius/includes/managers/class-fs-plugin-manager.php +220 -0
  178. freemius/includes/managers/index.php +3 -0
  179. freemius/includes/sdk/Exceptions/ArgumentNotExistException.php +9 -0
  180. freemius/includes/sdk/Exceptions/EmptyArgumentException.php +9 -0
  181. freemius/includes/sdk/Exceptions/Exception.php +74 -0
  182. freemius/includes/sdk/Exceptions/InvalidArgumentException.php +8 -0
  183. freemius/includes/sdk/Exceptions/OAuthException.php +12 -0
  184. freemius/includes/sdk/Exceptions/index.php +3 -0
  185. freemius/includes/sdk/FreemiusBase.php +215 -0
  186. freemius/includes/sdk/FreemiusWordPress.php +695 -0
  187. freemius/includes/sdk/LICENSE.txt +340 -0
  188. freemius/includes/sdk/index.php +3 -0
  189. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +47 -0
  190. freemius/includes/supplements/index.php +3 -0
  191. freemius/index.php +3 -0
  192. freemius/languages/freemius-da_DK.mo +0 -0
  193. freemius/languages/freemius-da_DK.po +1826 -0
  194. freemius/languages/freemius-en.mo +0 -0
  195. freemius/languages/freemius-en.po +1824 -0
  196. freemius/languages/freemius-he.mo +0 -0
  197. freemius/languages/freemius-he.po +1827 -0
  198. freemius/languages/freemius-it_IT.mo +0 -0
  199. freemius/languages/freemius-it_IT.po +1829 -0
  200. freemius/languages/freemius-ja_JP.mo +0 -0
  201. freemius/languages/freemius-ja_JP.po +1827 -0
  202. freemius/languages/freemius.pot +1821 -0
  203. freemius/languages/index.php +3 -0
  204. freemius/package.json +40 -0
  205. freemius/require.php +43 -0
  206. freemius/start.php +478 -0
  207. freemius/templates/account.php +745 -0
  208. freemius/templates/account/billing.php +426 -0
  209. freemius/templates/account/index.php +3 -0
  210. freemius/templates/account/payments.php +59 -0
  211. freemius/templates/add-ons.php +193 -0
  212. freemius/templates/add-trial-to-pricing.php +31 -0
  213. freemius/templates/admin-notice.php +46 -0
  214. freemius/templates/ajax-loader.php +1 -0
  215. freemius/templates/all-admin-notice.php +39 -0
  216. freemius/templates/auto-installation.php +244 -0
  217. freemius/templates/billing.php +506 -0
  218. freemius/templates/checkout-legacy.php +242 -0
  219. freemius/templates/checkout.php +321 -0
  220. freemius/templates/connect.php +498 -0
  221. freemius/templates/contact.php +124 -0
  222. freemius/templates/debug.php +614 -0
  223. freemius/templates/debug/api-calls.php +153 -0
  224. freemius/templates/debug/index.php +3 -0
  225. freemius/templates/debug/logger.php +66 -0
  226. freemius/templates/debug/plugins-themes-sync.php +68 -0
  227. freemius/templates/debug/scheduled-crons.php +129 -0
  228. freemius/templates/email.php +49 -0
  229. freemius/templates/firewall-issues-js.php +59 -0
  230. freemius/templates/forms/deactivation/contact.php +20 -0
  231. freemius/templates/forms/deactivation/form.php +404 -0
  232. freemius/templates/forms/deactivation/index.php +3 -0
  233. freemius/templates/forms/deactivation/retry-skip.php +24 -0
  234. freemius/templates/forms/index.php +3 -0
  235. freemius/templates/forms/license-activation.php +215 -0
  236. freemius/templates/forms/optout.php +266 -0
  237. freemius/templates/forms/resend-key.php +247 -0
  238. freemius/templates/forms/trial-start.php +179 -0
  239. freemius/templates/index.php +3 -0
  240. freemius/templates/js/index.php +3 -0
  241. freemius/templates/js/jquery.content-change.php +47 -0
  242. freemius/templates/js/style-premium-theme.php +45 -0
  243. freemius/templates/plugin-icon.php +130 -0
  244. freemius/templates/plugin-info/description.php +78 -0
  245. freemius/templates/plugin-info/features.php +114 -0
  246. freemius/templates/plugin-info/index.php +3 -0
  247. freemius/templates/plugin-info/screenshots.php +34 -0
  248. freemius/templates/powered-by.php +58 -0
  249. freemius/templates/pricing.php +164 -0
  250. freemius/templates/secure-https-header.php +38 -0
  251. freemius/templates/sticky-admin-notice-js.php +39 -0
  252. freemius/templates/tabs-capture-js.php +63 -0
  253. freemius/templates/tabs.php +179 -0
  254. includes/WPThumb/wpthumb.background-fill.php +146 -0
  255. includes/WPThumb/wpthumb.crop-from-position.php +85 -0
  256. includes/WPThumb/wpthumb.image-editor.php +46 -0
  257. includes/WPThumb/wpthumb.php +824 -0
  258. includes/WPThumb/wpthumb.shortcodes.php +49 -0
  259. includes/WPThumb/wpthumb.watermark.php +392 -0
  260. includes/admin/boilerplates/lightbox/assets/extension_bg.png +0 -0
  261. includes/admin/boilerplates/lightbox/css/lightbox-EXTSLUG.css +5 -0
  262. includes/admin/boilerplates/lightbox/foogallery-EXTSLUG-extension.txt +78 -0
  263. includes/admin/boilerplates/lightbox/foogallery-EXTSLUG-init.txt +32 -0
  264. includes/admin/boilerplates/lightbox/js/lightbox-EXTSLUG.js +5 -0
  265. includes/admin/boilerplates/template/assets/extension_bg.png +0 -0
  266. includes/admin/boilerplates/template/css/gallery-EXTSLUG.css +28 -0
  267. includes/admin/boilerplates/template/foogallery-EXTSLUG-extension.txt +163 -0
  268. includes/admin/boilerplates/template/foogallery-EXTSLUG-init.txt +32 -0
  269. includes/admin/boilerplates/template/gallery-EXTSLUG.txt +21 -0
  270. includes/admin/boilerplates/template/js/admin-gallery-EXTSLUG.js +20 -0
  271. includes/admin/boilerplates/template/js/gallery-EXTSLUG.js +2 -0
  272. includes/admin/class-admin-css-load-optimizer.php +72 -0
  273. includes/admin/class-admin-notices.php +83 -0
  274. includes/admin/class-admin.php +84 -0
  275. includes/admin/class-attachment-fields.php +199 -0
  276. includes/admin/class-boilerplate-download-handler.php +88 -0
  277. includes/admin/class-boilerplate-zip-generator.php +140 -0
  278. includes/admin/class-columns.php +112 -0
  279. includes/admin/class-extensions.php +138 -0
  280. includes/admin/class-gallery-editor.php +421 -0
  281. includes/admin/class-gallery-metabox-fields.php +199 -0
  282. includes/admin/class-gallery-metabox-settings-helper.php +205 -0
  283. includes/admin/class-gallery-metabox-settings.php +67 -0
  284. includes/admin/class-gallery-metaboxes.php +629 -0
  285. includes/admin/class-menu.php +106 -0
  286. includes/admin/class-settings-image-optimization.php +44 -0
  287. includes/admin/class-settings.php +419 -0
  288. includes/admin/class-silent-installer-skin.php +17 -0
  289. includes/admin/index.php +1 -0
  290. includes/admin/view-extensions-build-your-own.php +164 -0
  291. includes/admin/view-extensions-popup.php +61 -0
  292. includes/admin/view-extensions.php +162 -0
  293. includes/admin/view-help.php +104 -0
  294. includes/admin/view-system-info.php +114 -0
  295. includes/class-attachment-filters.php +55 -0
  296. includes/class-foobox-support.php +137 -0
  297. includes/class-foogallery-animated-gif-support.php +39 -0
  298. includes/class-foogallery-attachment-custom-class.php +61 -0
  299. includes/class-foogallery-attachment.php +245 -0
  300. includes/class-foogallery-cache.php +221 -0
  301. includes/class-foogallery-common-fields.php +664 -0
  302. includes/class-foogallery-datasource-media_library.php +138 -0
  303. includes/class-foogallery-extensions-compatibility.php +41 -0
  304. includes/class-foogallery-lazyload.php +95 -0
  305. includes/class-foogallery-paging.php +326 -0
  306. includes/class-foogallery-upgrade.php +831 -0
  307. includes/class-foogallery.php +477 -0
  308. includes/class-polylang-compatibility.php +105 -0
  309. includes/class-posttypes.php +109 -0
  310. includes/class-responsive-lightbox-dfactory-support.php +55 -0
  311. includes/class-retina.php +82 -0
  312. includes/class-thumbnail-dimensions.php +147 -0
  313. includes/class-thumbnails.php +148 -0
  314. includes/class-version-check.php +51 -0
  315. includes/class-wp-rocket-support.php +66 -0
  316. includes/class-wpthumb-enhancements.php +66 -0
  317. includes/constants.php +32 -0
  318. includes/extensions/class-extension.php +58 -0
  319. includes/extensions/class-extensions-api.php +838 -0
  320. includes/extensions/class-extensions-loader.php +46 -0
  321. includes/foopluginbase/README.md +4 -0
  322. includes/foopluginbase/bootstrapper.php +32 -0
  323. includes/foopluginbase/changelog.txt +21 -0
  324. includes/foopluginbase/classes/class-foo-friendly-dates.php +139 -0
  325. includes/foopluginbase/classes/class-foo-plugin-base.php +334 -0
  326. includes/foopluginbase/classes/class-foo-plugin-file-locator.php +170 -0
  327. includes/foopluginbase/classes/class-foo-plugin-metabox-sanity.php +102 -0
  328. includes/foopluginbase/classes/class-foo-plugin-options.php +143 -0
  329. includes/foopluginbase/classes/class-foo-plugin-settings.php +408 -0
  330. includes/foopluginbase/classes/class-foo-plugin-textdomain.php +55 -0
  331. includes/foopluginbase/classes/index.php +1 -0
  332. includes/foopluginbase/css/admin-settings.css +0 -0
  333. includes/foopluginbase/css/index.php +1 -0
  334. includes/foopluginbase/functions/arrays.php +45 -0
  335. includes/foopluginbase/functions/dates.php +24 -0
  336. includes/foopluginbase/functions/general.php +60 -0
  337. includes/foopluginbase/functions/index.php +1 -0
  338. includes/foopluginbase/functions/screen.php +52 -0
  339. includes/foopluginbase/functions/strings.php +67 -0
  340. includes/foopluginbase/index.php +1 -0
  341. includes/foopluginbase/js/admin-settings.js +110 -0
  342. includes/foopluginbase/js/index.php +1 -0
  343. includes/foopluginbase/tests/class-foo-friendly-dates-tests.php +194 -0
  344. includes/foopluginbase/views/index.php +1 -0
  345. includes/foopluginbase/views/settings.php +104 -0
  346. includes/functions.php +995 -0
  347. includes/includes.php +82 -0
  348. includes/index.php +1 -0
  349. includes/interface-foogallery-datasource.php +49 -0
  350. includes/public/class-admin-bar.php +50 -0
  351. includes/public/class-css-load-optimizer.php +154 -0
  352. includes/public/class-foogallery-template-loader.php +246 -0
  353. includes/public/class-public.php +19 -0
  354. includes/public/class-shortcodes.php +64 -0
  355. includes/public/class-yoast-seo-sitemaps.php +45 -0
  356. includes/public/index.php +1 -0
  357. includes/render-functions.php +294 -0
  358. index.html +0 -0
  359. js/admin-foogallery-editor.js +102 -0
  360. js/admin-foogallery.js +495 -0
  361. js/admin-page-foogallery-extensions-modal.js +164 -0
  362. js/admin-page-foogallery-extensions.js +108 -0
  363. js/admin-page-foogallery-settings.js +269 -0
  364. js/admin-tinymce.js +155 -0
  365. js/admin-uploader.js +13 -0
  366. js/foogallery.admin.min.js +9 -0
  367. languages/foogallery-fa_IR.mo +0 -0
  368. languages/foogallery-fa_IR.po +2535 -0
  369. languages/foogallery-fr_FR.mo +0 -0
  370. languages/foogallery-fr_FR.po +2650 -0
  371. languages/foogallery.mo +0 -0
  372. languages/foogallery.pot +2475 -0
  373. languages/index.php +1 -0
  374. lib/spectrum/spectrum.css +507 -0
  375. lib/spectrum/spectrum.js +2287 -0
  376. package.json +35 -0
  377. templates/index.php +1 -0
  378. templates/where-are-the-templates.php +8 -0
  379. views/index.php +1 -0
Gruntfile.js ADDED
@@ -0,0 +1,212 @@
1
+ module.exports = function (grunt) {
2
+
3
+ require('load-grunt-tasks')(grunt);
4
+
5
+ // Project configuration.
6
+ grunt.initConfig({
7
+ pkg: grunt.file.readJSON('package.json'),
8
+ uglify: {
9
+ options: {
10
+ compress: {
11
+ global_defs: {
12
+ "EO_SCRIPT_DEBUG": false
13
+ },
14
+ dead_code: true
15
+ },
16
+ banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd HH:MM") %> */\n'
17
+ },
18
+ build: {
19
+ files: [
20
+ {
21
+ expand: true, // Enable dynamic expansion.
22
+ src: ['extensions/default-templates/js/*.js', '!extensions/default-templates/js/*.min.js' ], // Actual pattern(s) to match.
23
+ ext: '.min.js' // Dest filepaths will have this extension.
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ jshint: {
29
+ options: {
30
+ reporter: require('jshint-stylish'),
31
+ globals: {
32
+ "EO_SCRIPT_DEBUG": false
33
+ },
34
+ '-W099': true, //Mixed spaces and tabs
35
+ '-W083': true, //TODO Fix functions within loop
36
+ '-W082': true, //Todo Function declarations should not be placed in blocks
37
+ '-W020': true //Read only - error when assigning EO_SCRIPT_DEBUG a value.
38
+ },
39
+ all: [ 'js/*.js', '!js/*.min.js' ]
40
+ },
41
+
42
+ compress: {
43
+ //Compress build/foogallery
44
+ main: {
45
+ options: {
46
+ mode: 'zip',
47
+ archive: './dist/foogallery.zip'
48
+ },
49
+ expand: true,
50
+ cwd: 'dist/foogallery/',
51
+ src: ['**/*'],
52
+ dest: 'foogallery/'
53
+ },
54
+ version: {
55
+ options: {
56
+ mode: 'zip',
57
+ archive: './dist/foogallery-<%= pkg.version %>.zip'
58
+ },
59
+ expand: true,
60
+ cwd: 'dist/foogallery/',
61
+ src: ['**/*'],
62
+ dest: 'foogallery/'
63
+ }
64
+ },
65
+
66
+ clean: {
67
+ //Clean up build folder
68
+ main: ['dist/foogallery']
69
+ },
70
+
71
+ copy: {
72
+ // Copy the plugin to a versioned release directory
73
+ main: {
74
+ src: [
75
+ '**',
76
+ '!node_modules/**',
77
+ '!dist/**',
78
+ '!.git/**',
79
+ '!vendor/**',
80
+ '!Gruntfile.js',
81
+ '!package.json',
82
+ '!.gitignore',
83
+ '!.gitmodules',
84
+ '!*~',
85
+ '!CONTRIBUTING.md'
86
+ ],
87
+ dest: 'dist/foogallery/'
88
+ }
89
+ },
90
+
91
+ wp_readme_to_markdown: {
92
+ convert: {
93
+ files: {
94
+ 'readme.md': 'readme.txt'
95
+ }
96
+ },
97
+ options : {
98
+ banner: 'https://s3.amazonaws.com/foogallery/banner-772x250.jpg',
99
+ afterBannerMarkdown: '[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fooplugins/foogallery/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/fooplugins/foogallery/?branch=develop)',
100
+ screenshots: {
101
+ enabled: true,
102
+ prefix: 'https://s3.amazonaws.com/foogallery/screenshot-',
103
+ suffix: '.jpg'
104
+ }
105
+ }
106
+ },
107
+
108
+ checkrepo: {
109
+ deploy: {
110
+ tag: {
111
+ eq: '<%= pkg.version %>' // Check if highest repo tag is equal to pkg.version
112
+ },
113
+ tagged: true, // Check if last repo commit (HEAD) is not tagged
114
+ clean: true // Check if the repo working directory is clean
115
+ }
116
+ },
117
+
118
+ watch: {
119
+ readme: {
120
+ files: ['readme.txt'],
121
+ tasks: ['wp_readme_to_markdown'],
122
+ options: {
123
+ spawn: false
124
+ }
125
+ },
126
+ scripts: {
127
+ files: ['js/*.js'],
128
+ tasks: ['newer:jshint', 'newer:uglify'],
129
+ options: {
130
+ spawn: false
131
+ }
132
+ }
133
+ },
134
+
135
+ wp_deploy: {
136
+ deploy: {
137
+ options: {
138
+ svn_user: 'bradvin',
139
+ plugin_slug: 'foogallery',
140
+ build_dir: 'dist/foogallery/'
141
+ }
142
+ }
143
+ },
144
+
145
+ po2mo: {
146
+ files: {
147
+ src: 'languages/*.po',
148
+ expand: true
149
+ }
150
+ },
151
+
152
+ pot: {
153
+ options: {
154
+ text_domain: 'foogallery',
155
+ dest: 'languages/',
156
+ keywords: ['__', '_e', 'esc_html__', 'esc_html_e', 'esc_attr__', 'esc_attr_e', 'esc_attr_x', 'esc_html_x', 'ngettext', '_n', '_ex', '_nx' ]
157
+ },
158
+ files: {
159
+ src: [
160
+ '**/*.php',
161
+ '!node_modules/**',
162
+ '!dist/**',
163
+ '!vendor/**',
164
+ '!*~'
165
+ ],
166
+ expand: true
167
+ }
168
+ },
169
+
170
+ checktextdomain: {
171
+ options: {
172
+ text_domain: 'foogallery',
173
+ keywords: ['__:1,2d',
174
+ '_e:1,2d',
175
+ '_x:1,2c,3d',
176
+ 'esc_html__:1,2d',
177
+ 'esc_html_e:1,2d',
178
+ 'esc_html_x:1,2c,3d',
179
+ 'esc_attr__:1,2d',
180
+ 'esc_attr_e:1,2d',
181
+ 'esc_attr_x:1,2c,3d',
182
+ '_ex:1,2c,3d',
183
+ '_n:1,2,4d',
184
+ '_nx:1,2,4c,5d',
185
+ '_n_noop:1,2,3d',
186
+ '_nx_noop:1,2,3c,4d'
187
+ ]
188
+ },
189
+ files: {
190
+ src: [
191
+ '**/*.php',
192
+ '!node_modules/**',
193
+ '!dist/**',
194
+ '!vendor/**',
195
+ '!*~',
196
+ '!includes/foopluginbase/**'
197
+ ],
198
+ expand: true
199
+ }
200
+ }
201
+
202
+ });
203
+
204
+ grunt.registerTask('readme', [ 'wp_readme_to_markdown' ]);
205
+
206
+ grunt.registerTask('test', [ 'jshint' ]);
207
+
208
+ grunt.registerTask('build', [ 'test', 'pot', 'newer:po2mo', 'wp_readme_to_markdown', 'clean', 'copy' ]);
209
+
210
+ grunt.registerTask('deploy', [ 'checkbranch:master', 'checkrepo:deploy', 'build', 'wp_deploy', 'compress' ]);
211
+
212
+ };
LICENSE.txt ADDED
@@ -0,0 +1,339 @@
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+ Preamble
10
+
11
+ The licenses for most software are designed to take away your
12
+ freedom to share and change it. By contrast, the GNU General Public
13
+ License is intended to guarantee your freedom to share and change free
14
+ software--to make sure the software is free for all its users. This
15
+ General Public License applies to most of the Free Software
16
+ Foundation's software and to any other program whose authors commit to
17
+ using it. (Some other Free Software Foundation software is covered by
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
+ your programs, too.
20
+
21
+ When we speak of free software, we are referring to freedom, not
22
+ price. Our General Public Licenses are designed to make sure that you
23
+ have the freedom to distribute copies of free software (and charge for
24
+ this service if you wish), that you receive source code or can get it
25
+ if you want it, that you can change the software or use pieces of it
26
+ in new free programs; and that you know you can do these things.
27
+
28
+ To protect your rights, we need to make restrictions that forbid
29
+ anyone to deny you these rights or to ask you to surrender the rights.
30
+ These restrictions translate to certain responsibilities for you if you
31
+ distribute copies of the software, or if you modify it.
32
+
33
+ For example, if you distribute copies of such a program, whether
34
+ gratis or for a fee, you must give the recipients all the rights that
35
+ you have. You must make sure that they, too, receive or can get the
36
+ source code. And you must show them these terms so they know their
37
+ rights.
38
+
39
+ We protect your rights with two steps: (1) copyright the software, and
40
+ (2) offer you this license which gives you legal permission to copy,
41
+ distribute and/or modify the software.
42
+
43
+ Also, for each author's protection and ours, we want to make certain
44
+ that everyone understands that there is no warranty for this free
45
+ software. If the software is modified by someone else and passed on, we
46
+ want its recipients to know that what they have is not the original, so
47
+ that any problems introduced by others will not reflect on the original
48
+ authors' reputations.
49
+
50
+ Finally, any free program is threatened constantly by software
51
+ patents. We wish to avoid the danger that redistributors of a free
52
+ program will individually obtain patent licenses, in effect making the
53
+ program proprietary. To prevent this, we have made it clear that any
54
+ patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+ 0. This License applies to any program or other work which contains
63
+ a notice placed by the copyright holder saying it may be distributed
64
+ under the terms of this General Public License. The "Program", below,
65
+ refers to any such program or work, and a "work based on the Program"
66
+ means either the Program or any derivative work under copyright law:
67
+ that is to say, a work containing the Program or a portion of it,
68
+ either verbatim or with modifications and/or translated into another
69
+ language. (Hereinafter, translation is included without limitation in
70
+ the term "modification".) Each licensee is addressed as "you".
71
+
72
+ Activities other than copying, distribution and modification are not
73
+ covered by this License; they are outside its scope. The act of
74
+ running the Program is not restricted, and the output from the Program
75
+ is covered only if its contents constitute a work based on the
76
+ Program (independent of having been made by running the Program).
77
+ Whether that is true depends on what the Program does.
78
+
79
+ 1. You may copy and distribute verbatim copies of the Program's
80
+ source code as you receive it, in any medium, provided that you
81
+ conspicuously and appropriately publish on each copy an appropriate
82
+ copyright notice and disclaimer of warranty; keep intact all the
83
+ notices that refer to this License and to the absence of any warranty;
84
+ and give any other recipients of the Program a copy of this License
85
+ along with the Program.
86
+
87
+ You may charge a fee for the physical act of transferring a copy, and
88
+ you may at your option offer warranty protection in exchange for a fee.
89
+
90
+ 2. You may modify your copy or copies of the Program or any portion
91
+ of it, thus forming a work based on the Program, and copy and
92
+ distribute such modifications or work under the terms of Section 1
93
+ above, provided that you also meet all of these conditions:
94
+
95
+ a) You must cause the modified files to carry prominent notices
96
+ stating that you changed the files and the date of any change.
97
+
98
+ b) You must cause any work that you distribute or publish, that in
99
+ whole or in part contains or is derived from the Program or any
100
+ part thereof, to be licensed as a whole at no charge to all third
101
+ parties under the terms of this License.
102
+
103
+ c) If the modified program normally reads commands interactively
104
+ when run, you must cause it, when started running for such
105
+ interactive use in the most ordinary way, to print or display an
106
+ announcement including an appropriate copyright notice and a
107
+ notice that there is no warranty (or else, saying that you provide
108
+ a warranty) and that users may redistribute the program under
109
+ these conditions, and telling the user how to view a copy of this
110
+ License. (Exception: if the Program itself is interactive but
111
+ does not normally print such an announcement, your work based on
112
+ the Program is not required to print an announcement.)
113
+
114
+ These requirements apply to the modified work as a whole. If
115
+ identifiable sections of that work are not derived from the Program,
116
+ and can be reasonably considered independent and separate works in
117
+ themselves, then this License, and its terms, do not apply to those
118
+ sections when you distribute them as separate works. But when you
119
+ distribute the same sections as part of a whole which is a work based
120
+ on the Program, the distribution of the whole must be on the terms of
121
+ this License, whose permissions for other licensees extend to the
122
+ entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+ Thus, it is not the intent of this section to claim rights or contest
125
+ your rights to work written entirely by you; rather, the intent is to
126
+ exercise the right to control the distribution of derivative or
127
+ collective works based on the Program.
128
+
129
+ In addition, mere aggregation of another work not based on the Program
130
+ with the Program (or with a work based on the Program) on a volume of
131
+ a storage or distribution medium does not bring the other work under
132
+ the scope of this License.
133
+
134
+ 3. You may copy and distribute the Program (or a work based on it,
135
+ under Section 2) in object code or executable form under the terms of
136
+ Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+ a) Accompany it with the complete corresponding machine-readable
139
+ source code, which must be distributed under the terms of Sections
140
+ 1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+ b) Accompany it with a written offer, valid for at least three
143
+ years, to give any third party, for a charge no more than your
144
+ cost of physically performing source distribution, a complete
145
+ machine-readable copy of the corresponding source code, to be
146
+ distributed under the terms of Sections 1 and 2 above on a medium
147
+ customarily used for software interchange; or,
148
+
149
+ c) Accompany it with the information you received as to the offer
150
+ to distribute corresponding source code. (This alternative is
151
+ allowed only for noncommercial distribution and only if you
152
+ received the program in object code or executable form with such
153
+ an offer, in accord with Subsection b above.)
154
+
155
+ The source code for a work means the preferred form of the work for
156
+ making modifications to it. For an executable work, complete source
157
+ code means all the source code for all modules it contains, plus any
158
+ associated interface definition files, plus the scripts used to
159
+ control compilation and installation of the executable. However, as a
160
+ special exception, the source code distributed need not include
161
+ anything that is normally distributed (in either source or binary
162
+ form) with the major components (compiler, kernel, and so on) of the
163
+ operating system on which the executable runs, unless that component
164
+ itself accompanies the executable.
165
+
166
+ If distribution of executable or object code is made by offering
167
+ access to copy from a designated place, then offering equivalent
168
+ access to copy the source code from the same place counts as
169
+ distribution of the source code, even though third parties are not
170
+ compelled to copy the source along with the object code.
171
+
172
+ 4. You may not copy, modify, sublicense, or distribute the Program
173
+ except as expressly provided under this License. Any attempt
174
+ otherwise to copy, modify, sublicense or distribute the Program is
175
+ void, and will automatically terminate your rights under this License.
176
+ However, parties who have received copies, or rights, from you under
177
+ this License will not have their licenses terminated so long as such
178
+ parties remain in full compliance.
179
+
180
+ 5. You are not required to accept this License, since you have not
181
+ signed it. However, nothing else grants you permission to modify or
182
+ distribute the Program or its derivative works. These actions are
183
+ prohibited by law if you do not accept this License. Therefore, by
184
+ modifying or distributing the Program (or any work based on the
185
+ Program), you indicate your acceptance of this License to do so, and
186
+ all its terms and conditions for copying, distributing or modifying
187
+ the Program or works based on it.
188
+
189
+ 6. Each time you redistribute the Program (or any work based on the
190
+ Program), the recipient automatically receives a license from the
191
+ original licensor to copy, distribute or modify the Program subject to
192
+ these terms and conditions. You may not impose any further
193
+ restrictions on the recipients' exercise of the rights granted herein.
194
+ You are not responsible for enforcing compliance by third parties to
195
+ this License.
196
+
197
+ 7. If, as a consequence of a court judgment or allegation of patent
198
+ infringement or for any other reason (not limited to patent issues),
199
+ conditions are imposed on you (whether by court order, agreement or
200
+ otherwise) that contradict the conditions of this License, they do not
201
+ excuse you from the conditions of this License. If you cannot
202
+ distribute so as to satisfy simultaneously your obligations under this
203
+ License and any other pertinent obligations, then as a consequence you
204
+ may not distribute the Program at all. For example, if a patent
205
+ license would not permit royalty-free redistribution of the Program by
206
+ all those who receive copies directly or indirectly through you, then
207
+ the only way you could satisfy both it and this License would be to
208
+ refrain entirely from distribution of the Program.
209
+
210
+ If any portion of this section is held invalid or unenforceable under
211
+ any particular circumstance, the balance of the section is intended to
212
+ apply and the section as a whole is intended to apply in other
213
+ circumstances.
214
+
215
+ It is not the purpose of this section to induce you to infringe any
216
+ patents or other property right claims or to contest validity of any
217
+ such claims; this section has the sole purpose of protecting the
218
+ integrity of the free software distribution system, which is
219
+ implemented by public license practices. Many people have made
220
+ generous contributions to the wide range of software distributed
221
+ through that system in reliance on consistent application of that
222
+ system; it is up to the author/donor to decide if he or she is willing
223
+ to distribute software through any other system and a licensee cannot
224
+ impose that choice.
225
+
226
+ This section is intended to make thoroughly clear what is believed to
227
+ be a consequence of the rest of this License.
228
+
229
+ 8. If the distribution and/or use of the Program is restricted in
230
+ certain countries either by patents or by copyrighted interfaces, the
231
+ original copyright holder who places the Program under this License
232
+ may add an explicit geographical distribution limitation excluding
233
+ those countries, so that distribution is permitted only in or among
234
+ countries not thus excluded. In such case, this License incorporates
235
+ the limitation as if written in the body of this License.
236
+
237
+ 9. The Free Software Foundation may publish revised and/or new versions
238
+ of the General Public License from time to time. Such new versions will
239
+ be similar in spirit to the present version, but may differ in detail to
240
+ address new problems or concerns.
241
+
242
+ Each version is given a distinguishing version number. If the Program
243
+ specifies a version number of this License which applies to it and "any
244
+ later version", you have the option of following the terms and conditions
245
+ either of that version or of any later version published by the Free
246
+ Software Foundation. If the Program does not specify a version number of
247
+ this License, you may choose any version ever published by the Free Software
248
+ Foundation.
249
+
250
+ 10. If you wish to incorporate parts of the Program into other free
251
+ programs whose distribution conditions are different, write to the author
252
+ to ask for permission. For software which is copyrighted by the Free
253
+ Software Foundation, write to the Free Software Foundation; we sometimes
254
+ make exceptions for this. Our decision will be guided by the two goals
255
+ of preserving the free status of all derivatives of our free software and
256
+ of promoting the sharing and reuse of software generally.
257
+
258
+ NO WARRANTY
259
+
260
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+ FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262
+ OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+ PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266
+ TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267
+ PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+ REPAIR OR CORRECTION.
269
+
270
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+ REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+ INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+ OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+ TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+ POSSIBILITY OF SUCH DAMAGES.
279
+
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
+
284
+ If you develop a new program, and you want it to be of the greatest
285
+ possible use to the public, the best way to achieve this is to make it
286
+ free software which everyone can redistribute and change under these terms.
287
+
288
+ To do so, attach the following notices to the program. It is safest
289
+ to attach them to the start of each source file to most effectively
290
+ convey the exclusion of warranty; and each file should have at least
291
+ the "copyright" line and a pointer to where the full notice is found.
292
+
293
+ <one line to give the program's name and a brief idea of what it does.>
294
+ Copyright (C) <year> <name of author>
295
+
296
+ This program is free software; you can redistribute it and/or modify
297
+ it under the terms of the GNU General Public License as published by
298
+ the Free Software Foundation; either version 2 of the License, or
299
+ (at your option) any later version.
300
+
301
+ This program is distributed in the hope that it will be useful,
302
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
303
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
+ GNU General Public License for more details.
305
+
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309
+
310
+ Also add information on how to contact you by electronic and paper mail.
311
+
312
+ If the program is interactive, make it output a short notice like this
313
+ when it starts in an interactive mode:
314
+
315
+ Gnomovision version 69, Copyright (C) year name of author
316
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317
+ This is free software, and you are welcome to redistribute it
318
+ under certain conditions; type `show c' for details.
319
+
320
+ The hypothetical commands `show w' and `show c' should show the appropriate
321
+ parts of the General Public License. Of course, the commands you use may
322
+ be called something other than `show w' and `show c'; they could even be
323
+ mouse-clicks or menu items--whatever suits your program.
324
+
325
+ You should also get your employer (if you work as a programmer) or your
326
+ school, if any, to sign a "copyright disclaimer" for the program, if
327
+ necessary. Here is a sample; alter the names:
328
+
329
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
331
+
332
+ <signature of Ty Coon>, 1 April 1989
333
+ Ty Coon, President of Vice
334
+
335
+ This General Public License does not permit incorporating your program into
336
+ proprietary programs. If your program is a subroutine library, you may
337
+ consider it more useful to permit linking proprietary applications with the
338
+ library. If this is what you want to do, use the GNU Lesser General
339
+ Public License instead of this License.
README.md ADDED
@@ -0,0 +1,326 @@
1
+ ![Plugin Banner](https://s3.amazonaws.com/foogallery/banner-772x250.jpg)
2
+
3
+ [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/fooplugins/foogallery/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/fooplugins/foogallery/?branch=develop)
4
+ # FooGallery - Image Gallery WordPress Plugin #
5
+ **Contributors:** bradvin, fooplugins
6
+
7
+ **Donate link:** http://fooplugins.com
8
+
9
+ **Tags:** gallery, image gallery, photo gallery, responsive, album, media gallery, masonry gallery, portfolio, justified image gallery, video gallery, photography, photographer, retina
10
+
11
+ **Requires at least:** 3.9
12
+
13
+ **Tested up to:** 4.8.3
14
+
15
+ **Stable tag:** trunk
16
+
17
+ **License:** GPLv2 or later
18
+
19
+ **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
20
+
21
+ FooGallery is the best image gallery plugin for WordPress. Why? Stunning gallery layouts, responsive, retina-ready, lightning fast, easy to use.
22
+
23
+ ## Description ##
24
+
25
+ **Major changes in 1.3.28**
26
+
27
+ FooGallery is the best image gallery plugin for WordPress. Why? Stunning gallery layouts, responsive, retina-ready, lightning fast, easy to use. Built to be highly configurable and extensible for developers or freelancers.
28
+
29
+ [View the Foo Gallery Homepage & DEMO](http://foo.gallery/)
30
+
31
+ **Retina Support**
32
+
33
+ Foo Gallery now comes with built-in support for higher quality thumbnails on retina-enabled displays. No more blurry thumbnails, just crisp thumbnails that look amazing on all devices.
34
+
35
+ **Video Support**
36
+
37
+ Foo Gallery now supports the creation of video galleries with the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)! Create galleries with both images and videos mixed!
38
+
39
+ **Albums Built In**
40
+
41
+ Albums are now built in as an extension. Simply head over to the extensions page and activate the albums extension. A new menu item will appear that allows you to add albums just as easily as galleries.
42
+
43
+ **Built For Developers**
44
+
45
+ Foo Gallery was designed to be the most developer-friendly gallery plugin available for WordPress. It was also built on top of a solid extension framework, which means different functionality is separated out into different areas in the codebase. It also means the core plugin is lightweight, but still allowing for the most flexibility.
46
+
47
+ **Features**
48
+
49
+ * Retina thumbnail support
50
+ * Add videos to galleries (via the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo))
51
+ * Albums built-in! (Activate the albums extension)
52
+ * Gallery custom post type
53
+ * Use built-in media library to manage images
54
+ * Drag n Drop reordering of images and galleries
55
+ * Built-in gallery templates
56
+ * Built-in support for FooBox
57
+ * Built-in Extensions Store
58
+ * Built on an extension framework
59
+ * Custom CSS for both galleries and albums
60
+ * Copy to clipboard shortcodes
61
+ * Visual shortcodes in rich text editor
62
+ * Gallery picker to insert shortcode
63
+ * Page usage metabox with one-click gallery page creation
64
+ * NextGen importer tool (albums and galleries)
65
+ * Multisite Support
66
+ * plus many, many more
67
+
68
+ **Gallery Demos**
69
+
70
+ * Responsive Image Gallery - [demo](http://foo.gallery/demos/responsive-image-gallery/)
71
+ * FooGrid Image Gallery - [light demo](http://foo.gallery/demos/foogrid-light/) - [dark demo](http://foo.gallery/demos/foogrid-dark/)
72
+ * Image Viewer Gallery - [light demo](http://foo.gallery/demos/image-viewer-gallery/) - [dark demo](http://foo.gallery/demos/image-viewer-gallery-dark/)
73
+ * Masonry Gallery - [demo](http://foo.gallery/demos/masonry-image-gallery/)
74
+ * Simple Portfolio - [demo](http://foo.gallery/demos/simple-portfolio/)
75
+ * Justified Gallery ([http://miromannino.github.io/Justified-Gallery](http://miromannino.github.io/Justified-Gallery/)) - [demo](http://foo.gallery/demos/justified-gallery/)
76
+ * Single Thumbnail Gallery - [demo](http://foo.gallery/demos/single-thumbnail-gallery/)
77
+ * Polaroid Gallery - [demo](http://foo.gallery/demos/polaroid-image-gallery/)
78
+ * Cube Gallery - [demo](http://foo.gallery/demos/cube-gallery/) - [Buy Now!](http://fooplugins.com/plugins/cube-gallery-template/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
79
+ * Mixed (Images + Videos) - [demo](http://foo.gallery/demos/mixed/)
80
+
81
+ **Caption Demos**
82
+
83
+ * Simple Hover Captions - [demo](http://foo.gallery/demos/captions-simple-hover/)
84
+ * Always Visible Captions - [demo](http://foo.gallery/demos/responsive-image-gallery-captions/)
85
+ * Drop Captions - [demo](http://foo.gallery/demos/captions-drop/)
86
+ * Fade Captions - [demo](http://foo.gallery/demos/captions-fade/)
87
+ * Push Captions - [demo](http://foo.gallery/demos/captions-push/)
88
+
89
+ **Album Demos**
90
+
91
+ * Responsive Album Layout - [demo](http://foo.gallery/demos/responsive-album-layout/)
92
+ * All-in-one Stack Album - [demo](http://foo.gallery/demos/all-in-one-stack-album/)
93
+
94
+ **Videos Demos**
95
+
96
+ * Vertical Video Slider - [demo](http://foo.gallery/demos/video-slider-vertical/) - [full-width demo](http://foo.gallery/demos/video-slider-vertical-full-width/)
97
+ * Horizontal Video Slider - [demo](http://foo.gallery/demos/video-slider-horizontal/) - [custom colors](http://foo.gallery/demos/video-slider-custom-theme/)
98
+
99
+ **Extensions**
100
+
101
+ * [FooVideo](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
102
+ * Albums (bundled)
103
+ * Default Gallery Templates (bundled)
104
+ * NextGen Gallery and Album Importer (bundled)
105
+ * [FooGrid Gallery](http://fooplugins.com/plugins/foogrid/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
106
+ * [Cube Gallery](http://fooplugins.com/plugins/cube-gallery-template/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
107
+ * [Custom Branding](http://fooplugins.com/plugins/foogallery-branding/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
108
+ * [FooBox PRO Lightbox](http://fooplugins.com/plugins/foobox/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
109
+ * [FooBox FREE Lightbox](http://wordpress.org/plugins/foobox-image-lightbox)
110
+ * [Owl Carousel Template](http://wordpress.org/plugins/foogallery-owl-carousel-template/)
111
+ * [ZOOM Template](http://wordpress.org/plugins/foogallery-zoom-template/)
112
+ * [Thirsty Affiliates](http://wordpress.org/plugins/thirstyaffiliates-for-foogallery-extension/)
113
+ * [Polaroid Template](https://github.com/fooplugins/foogallery-polaroid-template)
114
+ * [Use Media Menu](https://github.com/fooplugins/foogallery-media-menu)
115
+ * Build your own!!!
116
+
117
+ **Documentation**
118
+
119
+ * [FooGallery 101](http://docs.fooplugins.com/foogallery/foogallery-101/)
120
+ * [Developer 101](http://docs.fooplugins.com/foogallery/foogallery-developers-101/)
121
+ * [Actions and Filters](http://docs.fooplugins.com/foogallery/actions-filters/)
122
+
123
+ **Contribute**
124
+
125
+ FooGallery is hosted on [GitHub](https://github.com/fooplugins/foogallery). If you find a bug, please [create an issue](https://github.com/fooplugins/foogallery/issues).
126
+
127
+ ## Installation ##
128
+
129
+ 1. Upload `foogallery` folder to the `/wp-content/plugins/` directory
130
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
131
+ 3. You will be redirected to the FooGallery Help page to get your started
132
+
133
+ ## Frequently Asked Questions ##
134
+
135
+ ### Why are my thumbnails so blurry? ###
136
+
137
+ Have you enabled retina support for your galleries? Displays with retina support can show better quality thumbnails when retina support is enabled. To enable retina support, edit the gallery and locate the Retina Support metabox.
138
+
139
+ ### Can I add videos to my galleries? ###
140
+
141
+ Yes, you need to use the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
142
+
143
+ ### How do I get albums working? ###
144
+
145
+ Simply go to the FooGallery extensions page and activate the Albums extension. If you do not see a button to activate the albums extension, reload the extensions list by clicking the reload button.
146
+
147
+ ### Can I build an extension? ###
148
+
149
+ Hell, yes! Check out our [developer page](http://foo.gallery/developers/)
150
+
151
+ ## Screenshots ##
152
+
153
+ [View screenshots](https://wordpress.org/plugins/foogallery/screenshots/)
154
+
155
+ ## Upgrade Notice ##
156
+
157
+ Update now to support FooVideo and many other improvements!
158
+
159
+ ## Changelog ##
160
+
161
+ ### 1.3.8 ###
162
+
163
+ * New : Built in support for FooBox, fixing a lot of issues where FooBox option is not available
164
+ * Fix : More reliable extension active status on extensions listing
165
+ * Fix : More obvious wording for 3rd party plugins when they are not installed
166
+
167
+ ### 1.3.7 ###
168
+
169
+ * Fix : Activation redirect bug showing "Sorry, you are not allowed to access this page."
170
+
171
+ ### 1.3.6 ###
172
+
173
+ * New : Freemius integration!
174
+ * New : Added support for the Responsive Lightbox by dFactory
175
+ * New : New custom class field for an attachment
176
+ * New : Added more system info for better debugging when there are server issues
177
+ * Fix : Visual editor FooGallery edit button
178
+ * Fix : Image Viewer hover effect none now works as expected
179
+ * Fix : Disable HTML caching for randomly ordered galleries
180
+
181
+ ### 1.2.20 ###
182
+
183
+ * New : Force Use Original thumb setting on gallery edit page
184
+ * Fix : PHP warning from thumbnail class since 1.2.19
185
+
186
+ ### 1.2.19 ###
187
+
188
+ * New : Gallery output caching! Saves database requests improving load time
189
+ * New : Gallery usage column in admin gallery listing
190
+ * New : Better support for animated gifs
191
+ * New : Hover icons retina support
192
+ * New : Uninstall button on settings
193
+ * New : Save thumb dimensions per attachment. (needed in future versions)
194
+ * Fix : Extensions refactor and many issues resolved
195
+ * Fix : Better retina support for all templates
196
+ * Fix : Colorize / Greyscale CSS filters
197
+ * Fix : Even better wpthumb compatibility
198
+
199
+ ### 1.2.18 ###
200
+
201
+ * Fix : Handle no settings in retina metabox
202
+
203
+ ### 1.2.17 ###
204
+
205
+ * New : Retina support - metabox per gallery and default settings
206
+ * New : Attachment datasources - backend changes for how images are used in a gallery. (This will allow for new external sources in the future)
207
+ * New : Caption color settings in Simple portfolio gallery template
208
+ * New : Updated to latest Justified Gallery
209
+ * Fix : Better wpthumb compatibility
210
+
211
+ ### 1.2.16 ###
212
+
213
+ * Fix : Yoast SEO Sitemaps fatal error with deleted galleries
214
+ * Fix : Updating pages with deleted galleries throws php warnings
215
+
216
+ ### 1.2.15 ###
217
+
218
+ * Fix : Album admin CSS issues in WP 4.6
219
+ * Fix : Masonry layout issues in WP 4.6
220
+ * Fix : Media attachment fields not updating
221
+ * Fix : Better support for IE10
222
+ * New : Thumbnail generation test admin notice and settings
223
+
224
+ ### 1.2.13 ###
225
+
226
+ * Fix : Shortcode replacing content in visual editor
227
+ * Fix : Gallery hover effect of None being ignored
228
+ * New : ImageViewer language settings for 'Prev', 'Next' & 'of'
229
+ * New : Setting to use original thumbnails if available
230
+
231
+ ### 1.2.12 ###
232
+
233
+ * Fix : Simple Portfolio missing captions fix
234
+
235
+ ### 1.2.11 ###
236
+
237
+ * Fix : Simple Portfolio undefined function fix
238
+
239
+ ### 1.2.10 ###
240
+
241
+ * New : support for multiple admin JS and CSS assets for gallery templates
242
+ * New : Added setting to choose Caption Description source
243
+ * New : Crop position can be chosen for attachments
244
+ * New : Albums gallery details modal for setting a gallery URL
245
+ * New : Better shortcode preview in editor
246
+ * New : Editor button now supported if multiple editors exist
247
+ * Fix : Better No-Link support for gallery templates
248
+ * Fix : Compatible with Unyson plugin
249
+ * Fix : Compatible with Advanced Custom Fields
250
+ * Fix : Simple Portfolio fixes and tweaks
251
+ * Fix : ImageViewer fixes and better browser compatibility
252
+ * Fix : Changed assets enqueue version to rather use extension version
253
+ * Fix : Album URL fix for permalinks with no trailing slashes
254
+
255
+ ### 1.2.9 ###
256
+ * New : Added Image Viewer gallery template
257
+ * New : Caption support for default template
258
+ * New : Yoast SEO gallery image support!
259
+ * New : Responsive options for Masonry gallery
260
+ * New : change gallery URL slug for albums
261
+ * New : setting to turn off loading animation in default gallery
262
+ * New : French translation
263
+ * Fix : Support for WP 4.4
264
+ * Fix : All templates - moved all jQuery ready events to vanilla JS
265
+ * Fix : Many gallery template tweaks
266
+ * Fix : allow no default to be chosen in settings
267
+
268
+ ### 1.2.8 ###
269
+ * Works now with Polylang translation plugin
270
+ * CSS Updates & enhancements to all gallery templates
271
+ * Password protected galleries now work as expected
272
+ * Ability to hide WYSIWYG editor button
273
+ * Updated WPThumb
274
+ * Multiple bug fixes and improvements
275
+
276
+ ### 1.2.7 ###
277
+ * Bug fixes for 1.2.6 release
278
+ * Added 2 new settings to Justified Gallery template (maxRowHeight + Caption Source)
279
+
280
+ ### 1.2.6 ###
281
+ * CSS load optimizations
282
+ * Updates and tweaks on all built-in gallery templates
283
+ * More robust extension loading
284
+ * More robust upgrades to FooBox PRO
285
+ * Improved copy-to-clipboard
286
+ * Added more hover effects
287
+ * Support for FooVideo
288
+
289
+ ### 1.2.5 ###
290
+ * Fix for extensions being empty
291
+ * Added support for Multi-site
292
+ * Added esc_url to all places where url is rendered
293
+ * Updated to latest Justified Gallery v3.5.4
294
+
295
+ ### 1.2.4 ###
296
+ * Many album template updates, enhancements and fixes
297
+ * Many gallery template tweaks and fixes
298
+ * Sort order settings for galleries and albums
299
+ * Added new Single Thumbnail Gallery template
300
+
301
+ ### 1.2.1 ###
302
+ * Added setting to choose default gallery to copy settings from
303
+ * Fixed bug #45 - gallery fields not showing onload
304
+ * replaced minicolors with spectrum colorpicker
305
+ * Allow gallery fields to have a suffix
306
+ * Added function to render galleries "foogallery_render_gallery( $gallery_id )"
307
+
308
+ ### 1.2.0 ###
309
+ * Added albums extension
310
+ * Added custom CSS metaboxes
311
+ * Updated Nextgen importer
312
+ * Fixed many bugs
313
+
314
+ ### 1.1.8.2 ###
315
+ * Fixed "edit gallery" CSS with WP 4.0
316
+
317
+ ### 1.1.8.1 ###
318
+ * Fixed "insert gallery" CSS with WP 4.0
319
+
320
+ ### 1.1.8 ###
321
+ * Added 2 new gallery templates
322
+ * Added 10+ actions and filters for more customization
323
+ * Countless bug fixes and enhancements
324
+
325
+ ### 1.1.7 ###
326
+ * first version!
README.txt ADDED
@@ -0,0 +1,323 @@
1
+ === FooGallery - Image Gallery WordPress Plugin ===
2
+ Contributors: bradvin, fooplugins, freemius
3
+ Donate link: http://fooplugins.com
4
+ Tags: gallery, image gallery, photo gallery, responsive, album, media gallery, masonry gallery, portfolio, justified image gallery, video gallery, photography, photographer, retina
5
+ Requires at least: 3.9
6
+ Tested up to: 4.8.3
7
+ Stable tag: trunk
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ FooGallery is the best image gallery plugin for WordPress. Why? Stunning gallery layouts, responsive, retina-ready, lightning fast, easy to use.
12
+
13
+ == Description ==
14
+
15
+ FooGallery is the best image gallery plugin for WordPress. Why? Stunning gallery layouts, responsive, retina-ready, lightning fast, easy to use. Built to be highly configurable and extensible for developers or freelancers.
16
+
17
+ [View the Foo Gallery Homepage & DEMO](http://foo.gallery/)
18
+
19
+ **Major changes in 1.3.28!**
20
+
21
+ There have been major updates to the gallery templates in v1.3.28. If you have updated, please test your galleries.
22
+
23
+ **Retina Support**
24
+
25
+ Foo Gallery now comes with built-in support for higher quality thumbnails on retina-enabled displays. No more blurry thumbnails, just crisp thumbnails that look amazing on all devices.
26
+
27
+ **Video Support**
28
+
29
+ Foo Gallery now supports the creation of video galleries with the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)! Create galleries with both images and videos mixed!
30
+
31
+ **Albums Built In**
32
+
33
+ Albums are now built in as an extension. Simply head over to the extensions page and activate the albums extension. A new menu item will appear that allows you to add albums just as easily as galleries.
34
+
35
+ **Built For Developers**
36
+
37
+ Foo Gallery was designed to be the most developer-friendly gallery plugin available for WordPress. It was also built on top of a solid extension framework, which means different functionality is separated out into different areas in the codebase. It also means the core plugin is lightweight, but still allowing for the most flexibility.
38
+
39
+ **Features**
40
+
41
+ * Lazy loading
42
+ * Simple Pagination (dots)
43
+ * Live previews in admin
44
+ * Retina thumbnail support
45
+ * Add videos to galleries (via the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo))
46
+ * Albums built-in! (Activate the albums extension)
47
+ * Use built-in media library to manage images
48
+ * Drag n Drop reordering of images and galleries
49
+ * Beautiful gallery templates
50
+ * Custom CSS for both galleries and albums
51
+ * Copy to clipboard shortcodes
52
+ * Visual shortcodes in rich text editor
53
+ * Gallery picker to insert shortcodes
54
+ * Page usage metabox with one-click gallery page creation
55
+ * NextGen importer tool (albums and galleries)
56
+ * Multisite Support
57
+ * plus many, many more
58
+
59
+ **PRO Features**
60
+
61
+ * Polaroid PRO Gallery Template
62
+ * Grid PRO Gallery Template
63
+ * Advanced Pagination
64
+ * Infinite Scroll
65
+ * Multiple Loaded Effects
66
+ * Multiple hover effects presets
67
+ * More on the way!
68
+
69
+ **Gallery Demos**
70
+
71
+ * Responsive Image Gallery - [demo](http://foo.gallery/demos/responsive-image-gallery/)
72
+ * Image Viewer Gallery - [light demo](http://foo.gallery/demos/image-viewer-gallery/) - [dark demo](http://foo.gallery/demos/image-viewer-gallery-dark/)
73
+ * Masonry Gallery - [demo](http://foo.gallery/demos/masonry-image-gallery/)
74
+ * Simple Portfolio - [demo](http://foo.gallery/demos/simple-portfolio/)
75
+ * Justified Gallery - [demo](http://foo.gallery/demos/justified-gallery/)
76
+ * Single Thumbnail Gallery - [demo](http://foo.gallery/demos/single-thumbnail-gallery/)
77
+ * Mixed (Images + Videos) - [demo](http://foo.gallery/demos/mixed/)
78
+
79
+ **Album Demos**
80
+
81
+ * Responsive Album Layout - [demo](http://foo.gallery/demos/responsive-album-layout/)
82
+ * All-in-one Stack Album - [demo](http://foo.gallery/demos/all-in-one-stack-album/)
83
+
84
+ **Videos Demos**
85
+
86
+ * Vertical Video Slider - [demo](http://foo.gallery/demos/video-slider-vertical/) - [full-width demo](http://foo.gallery/demos/video-slider-vertical-full-width/)
87
+ * Horizontal Video Slider - [demo](http://foo.gallery/demos/video-slider-horizontal/) - [custom colors](http://foo.gallery/demos/video-slider-custom-theme/)
88
+
89
+ **Extensions**
90
+
91
+ * [FooVideo](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
92
+ * Albums (bundled)
93
+ * Default Gallery Templates (bundled)
94
+ * NextGen Gallery and Album Importer (bundled)
95
+ * [Custom Branding](http://fooplugins.com/plugins/foogallery-branding/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
96
+ * [FooBox PRO Lightbox](http://fooplugins.com/plugins/foobox/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
97
+ * [FooBox FREE Lightbox](http://wordpress.org/plugins/foobox-image-lightbox)
98
+ * [ZOOM Template](http://wordpress.org/plugins/foogallery-zoom-template/)
99
+ * [Use Media Menu](https://github.com/fooplugins/foogallery-media-menu)
100
+ * Build your own!!!
101
+
102
+ **Documentation**
103
+
104
+ * [FooGallery 101](http://docs.fooplugins.com/foogallery/foogallery-101/)
105
+ * [Developer 101](http://docs.fooplugins.com/foogallery/foogallery-developers-101/)
106
+ * [Actions and Filters](http://docs.fooplugins.com/foogallery/actions-filters/)
107
+
108
+ **Contribute**
109
+
110
+ FooGallery is hosted on [GitHub](https://github.com/fooplugins/foogallery). If you find a bug, please [create an issue](https://github.com/fooplugins/foogallery/issues).
111
+
112
+ == Installation ==
113
+
114
+ 1. Upload `foogallery` folder to the `/wp-content/plugins/` directory
115
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
116
+ 3. You will be redirected to the FooGallery Help page to get your started
117
+
118
+ == Frequently Asked Questions ==
119
+
120
+ = Why are my thumbnails so blurry? =
121
+
122
+ Have you enabled retina support for your galleries? Displays with retina support can show better quality thumbnails when retina support is enabled. To enable retina support, edit the gallery and locate the Retina Support metabox.
123
+
124
+ = Can I add videos to my galleries? =
125
+
126
+ Yes, you need to use the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
127
+
128
+ = How do I get albums working? =
129
+
130
+ Simply go to the FooGallery extensions page and activate the Albums extension. If you do not see a button to activate the albums extension, reload the extensions list by clicking the reload button.
131
+
132
+ = Can I build an extension? =
133
+
134
+ Hell, yes! Check out our [developer page](http://foo.gallery/developers/)
135
+
136
+ == Screenshots ==
137
+
138
+ 1. Gallery Edit Page
139
+ 2. Visual Shortcodes
140
+ 3. Gallery Picker
141
+ 4. Frontend example with default template
142
+ 5. Album Edit Page
143
+
144
+ == Upgrade Notice ==
145
+
146
+ Update now to support FooVideo and many other improvements!
147
+
148
+ == Changelog ==
149
+
150
+ = 1.3.28 =
151
+
152
+ * Complete rewrite of the built-in gallery templates
153
+ * New : lazy loading
154
+ * New : simple pagination
155
+ * New : Live Previews when editing a gallery
156
+ * 260+ updates, changes and bug fixes
157
+
158
+ = 1.3.8 =
159
+
160
+ * New : Built in support for FooBox, fixing a lot of issues where FooBox option is not available
161
+ * Fix : More reliable extension active status on extensions listing
162
+ * Fix : More obvious wording for 3rd party plugins when they are not installed
163
+
164
+ = 1.3.7 =
165
+
166
+ * Fix : Activation redirect bug showing "Sorry, you are not allowed to access this page."
167
+
168
+ = 1.3.6 =
169
+
170
+ * New : Freemius integration!
171
+ * New : Added support for the Responsive Lightbox by dFactory
172
+ * New : New custom class field for an attachment
173
+ * New : Added more system info for better debugging when there are server issues
174
+ * Fix : Visual editor FooGallery edit button
175
+ * Fix : Image Viewer hover effect none now works as expected
176
+ * Fix : Disable HTML caching for randomly ordered galleries
177
+
178
+ = 1.2.20 =
179
+
180
+ * New : Force Use Original thumb setting on gallery edit page
181
+ * Fix : PHP warning from thumbnail class since 1.2.19
182
+
183
+ = 1.2.19 =
184
+
185
+ * New : Gallery output caching! Saves database requests improving load time
186
+ * New : Gallery usage column in admin gallery listing
187
+ * New : Better support for animated gifs
188
+ * New : Hover icons retina support
189
+ * New : Uninstall button on settings
190
+ * New : Save thumb dimensions per attachment. (needed in future versions)
191
+ * Fix : Extensions refactor and many issues resolved
192
+ * Fix : Better retina support for all templates
193
+ * Fix : Colorize / Greyscale CSS filters
194
+ * Fix : Even better wpthumb compatibility
195
+
196
+ = 1.2.18 =
197
+
198
+ * Fix : Handle no settings in retina metabox
199
+
200
+ = 1.2.17 =
201
+
202
+ * New : Retina support - metabox per gallery and default settings
203
+ * New : Attachment datasources - backend changes for how images are used in a gallery. (This will allow for new external sources in the future)
204
+ * New : Caption color settings in Simple portfolio gallery template
205
+ * New : Updated to latest Justified Gallery
206
+ * Fix : Better wpthumb compatibility
207
+
208
+ = 1.2.16 =
209
+
210
+ * Fix : Yoast SEO Sitemaps fatal error with deleted galleries
211
+ * Fix : Updating pages with deleted galleries throws php warnings
212
+
213
+ = 1.2.15 =
214
+
215
+ * Fix : Album admin CSS issues in WP 4.6
216
+ * Fix : Masonry layout issues in WP 4.6
217
+ * Fix : Media attachment fields not updating
218
+ * Fix : Better support for IE10
219
+ * New : Thumbnail generation test admin notice and settings
220
+
221
+ = 1.2.13 =
222
+
223
+ * Fix : Shortcode replacing content in visual editor
224
+ * Fix : Gallery hover effect of None being ignored
225
+ * New : ImageViewer language settings for 'Prev', 'Next' & 'of'
226
+ * New : Setting to use original thumbnails if available
227
+
228
+ = 1.2.12 =
229
+
230
+ * Fix : Simple Portfolio missing captions fix
231
+
232
+ = 1.2.11 =
233
+
234
+ * Fix : Simple Portfolio undefined function fix
235
+
236
+ = 1.2.10 =
237
+
238
+ * New : support for multiple admin JS and CSS assets for gallery templates
239
+ * New : Added setting to choose Caption Description source
240
+ * New : Crop position can be chosen for attachments
241
+ * New : Albums gallery details modal for setting a gallery URL
242
+ * New : Better shortcode preview in editor
243
+ * New : Editor button now supported if multiple editors exist
244
+ * Fix : Better No-Link support for gallery templates
245
+ * Fix : Compatible with Unyson plugin
246
+ * Fix : Compatible with Advanced Custom Fields
247
+ * Fix : Simple Portfolio fixes and tweaks
248
+ * Fix : ImageViewer fixes and better browser compatibility
249
+ * Fix : Changed assets enqueue version to rather use extension version
250
+ * Fix : Album URL fix for permalinks with no trailing slashes
251
+
252
+ = 1.2.9 =
253
+ * New : Added Image Viewer gallery template
254
+ * New : Caption support for default template
255
+ * New : Yoast SEO gallery image support!
256
+ * New : Responsive options for Masonry gallery
257
+ * New : change gallery URL slug for albums
258
+ * New : setting to turn off loading animation in default gallery
259
+ * New : French translation
260
+ * Fix : Support for WP 4.4
261
+ * Fix : All templates - moved all jQuery ready events to vanilla JS
262
+ * Fix : Many gallery template tweaks
263
+ * Fix : allow no default to be chosen in settings
264
+
265
+ = 1.2.8 =
266
+ * Works now with Polylang translation plugin
267
+ * CSS Updates & enhancements to all gallery templates
268
+ * Password protected galleries now work as expected
269
+ * Ability to hide WYSIWYG editor button
270
+ * Updated WPThumb
271
+ * Multiple bug fixes and improvements
272
+
273
+ = 1.2.7 =
274
+ * Bug fixes for 1.2.6 release
275
+ * Added 2 new settings to Justified Gallery template (maxRowHeight + Caption Source)
276
+
277
+ = 1.2.6 =
278
+ * CSS load optimizations
279
+ * Updates and tweaks on all built-in gallery templates
280
+ * More robust extension loading
281
+ * More robust upgrades to FooBox PRO
282
+ * Improved copy-to-clipboard
283
+ * Added more hover effects
284
+ * Support for FooVideo
285
+
286
+ = 1.2.5 =
287
+ * Fix for extensions being empty
288
+ * Added support for Multi-site
289
+ * Added esc_url to all places where url is rendered
290
+ * Updated to latest Justified Gallery v3.5.4
291
+
292
+ = 1.2.4 =
293
+ * Many album template updates, enhancements and fixes
294
+ * Many gallery template tweaks and fixes
295
+ * Sort order settings for galleries and albums
296
+ * Added new Single Thumbnail Gallery template
297
+
298
+ = 1.2.1 =
299
+ * Added setting to choose default gallery to copy settings from
300
+ * Fixed bug #45 - gallery fields not showing onload
301
+ * replaced minicolors with spectrum colorpicker
302
+ * Allow gallery fields to have a suffix
303
+ * Added function to render galleries "foogallery_render_gallery( $gallery_id )"
304
+
305
+ = 1.2.0 =
306
+ * Added albums extension
307
+ * Added custom CSS metaboxes
308
+ * Updated Nextgen importer
309
+ * Fixed many bugs
310
+
311
+ = 1.1.8.2 =
312
+ * Fixed "edit gallery" CSS with WP 4.0
313
+
314
+ = 1.1.8.1 =
315
+ * Fixed "insert gallery" CSS with WP 4.0
316
+
317
+ = 1.1.8 =
318
+ * Added 2 new gallery templates
319
+ * Added 10+ actions and filters for more customization
320
+ * Countless bug fixes and enhancements
321
+
322
+ = 1.1.7 =
323
+ * first version!
assets/extension_bg.png ADDED
Binary file
assets/foobot_small.png ADDED
Binary file
assets/image-placeholder.png ADDED
Binary file
assets/logo.png ADDED
Binary file
assets/screenshots/admin-edit-gallery.jpg ADDED
Binary file
assets/screenshots/admin-insert-shortcode.jpg ADDED
Binary file
assets/screenshots/admin-nextgen-import.jpg ADDED
Binary file
changelog.txt ADDED
@@ -0,0 +1,4 @@
1
+ FooGallery Changelog
2
+ ====================
3
+
4
+ See changelog in readme.txt
css/admin-foogallery.css ADDED
@@ -0,0 +1,462 @@
1
+ .foogallery-attachments-list .add-attachment {
2
+ background: #ddd;
3
+ box-shadow: 0 0 0 1px #ccc;
4
+ width: 150px;
5
+ position: relative;
6
+ float: left;
7
+ padding: 0;
8
+ color: #464646;
9
+ list-style: none;
10
+ text-align: center;
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ -ms-user-select: none;
14
+ -o-user-select: none;
15
+ user-select: none;
16
+ }
17
+
18
+ .foogallery-attachments-list .add-attachment a {
19
+ display: table-cell;
20
+ vertical-align: middle;
21
+ height: 150px;
22
+ text-align: center;
23
+ width: 150px;
24
+ height: 150px;
25
+ color:#666;
26
+ font-weight: bold;
27
+ text-decoration: none;
28
+ }
29
+
30
+ .foogallery-attachments-list .add-attachment a:hover {
31
+ color:#444;
32
+ }
33
+
34
+ .foogallery-attachments-list .add-attachment a div.dashicons {
35
+ font-size:50px;
36
+ width: 50px;
37
+ height: 50px;
38
+ }
39
+
40
+ .foogallery-attachments-list .add-attachment a span {
41
+ display: block;
42
+ }
43
+
44
+
45
+ .foogallery-attachments-list .attachment-preview,
46
+ .foogallery-attachments-list .attachment-preview .thumbnail {
47
+ width: 150px;
48
+ height: 150px;
49
+ cursor:move;
50
+ }
51
+
52
+ .foogallery-attachments-list .attachment {
53
+ border: transparent 1px solid;
54
+ box-shadow: none !important;
55
+ width: auto !important;
56
+ padding: 0 !important;
57
+ }
58
+
59
+ .foogallery-attachments-list .attachment.placeholder {
60
+ width: 150px !important;
61
+ height: 150px;
62
+ border: #1e8cbe 1px dashed;
63
+ background: #eee;
64
+ }
65
+
66
+ .foogallery-attachments-list li {
67
+ margin: 0px 10px 10px 0px !important;
68
+ }
69
+
70
+ .foogallery-attachments-list .attachment.ui-sortable-helper {
71
+ opacity: 0.5;
72
+ }
73
+
74
+ .foogallery-attachments-list .attachment.ui-sortable-helper:hover .close {
75
+ display: none;
76
+ }
77
+
78
+ .foogallery-attachments-list input.describe {
79
+ margin:0;
80
+ width: 150px;
81
+ font-size: 12px;
82
+ }
83
+
84
+ .foogallery-attachments-list .attachment .attachment-preview a {
85
+ display: none;
86
+ position: absolute;
87
+ padding: 0;
88
+ font-size: 20px;
89
+ line-height: 20px;
90
+ text-align: center;
91
+ text-decoration: none;
92
+ background-color: #444;
93
+ border-top-right-radius: 50%;
94
+ border-top-left-radius: 50%;
95
+ border-bottom-right-radius: 50%;
96
+ border-bottom-left-radius: 50%;
97
+ }
98
+
99
+ .foogallery-attachments-list .attachment .attachment-preview:hover a {
100
+ display: block;
101
+ }
102
+
103
+ .foogallery-attachments-list .attachment .attachment-preview a span {
104
+ color:#fff;
105
+ }
106
+
107
+ .foogallery-attachments-list .attachment .attachment-preview a:hover span {
108
+ color:#ddd;
109
+ }
110
+
111
+ .foogallery-attachments-list .attachment .attachment-preview a.remove {
112
+ top: 5px;
113
+ right: 5px;
114
+ }
115
+
116
+ .foogallery-attachments-list .attachment .attachment-preview a.info {
117
+ top: 5px;
118
+ left: 5px;
119
+ }
120
+
121
+ .spacer {
122
+ display: inline-block;
123
+ width:30px;
124
+ }
125
+
126
+ .foogallery_template_field td {
127
+ padding-bottom: 20px;
128
+ }
129
+
130
+ .foogallery_template_field th {
131
+ vertical-align: top;
132
+ text-align: left;
133
+ padding-top: 0.3em;
134
+ padding-right: 10px;
135
+ }
136
+
137
+ .foogallery_template_field textarea {
138
+ min-width: 500px;
139
+ min-height: 100px;
140
+ }
141
+
142
+ .foogallery_template_field.foogallery_template_field_type-help {
143
+ border-bottom: none;
144
+ }
145
+
146
+ .foogallery_template_field.foogallery_template_field_type-help td {
147
+ padding-bottom: 0;
148
+ }
149
+
150
+ .foogallery_template_field.foogallery_template_field_type-icon td {
151
+ padding-bottom: 0;
152
+ }
153
+
154
+ .foogallery_metabox_field-icon label {
155
+ display:inline-block;
156
+ margin-right:10px;
157
+ border:solid 3px transparent;
158
+ background:#aaa;
159
+ border-radius: 3px;
160
+ -moz-border-radius: 3px;
161
+ -webkit-border-radius: 3px;
162
+ padding:5px;
163
+ line-height: 0;
164
+ margin-bottom: 10px;
165
+ }
166
+
167
+ .foogallery_metabox_field-icon input:checked + label {
168
+ border:solid 3px #444;
169
+ background: #888;
170
+ }
171
+
172
+ .foogallery_metabox_field-icon label:hover {
173
+ border:solid 3px #444;
174
+ }
175
+
176
+ .foogallery_template_field.foogallery_template_field_type-htmlicon td {
177
+ padding-bottom: 0;
178
+ }
179
+
180
+ .foogallery_metabox_field-htmlicon label {
181
+ display:inline-block;
182
+ margin-right:10px;
183
+ border:solid 3px transparent;
184
+ background:#aaa;
185
+ border-radius: 3px;
186
+ -moz-border-radius: 3px;
187
+ -webkit-border-radius: 3px;
188
+ padding:5px;
189
+ line-height: 0;
190
+ margin-bottom: 10px;
191
+