FooGallery – Image Gallery WordPress Plugin - Version 1.4.12

Version Description

  • New : NextGen importer now includes shortcode replacement
  • New : Masonry gallery supports captions below thumbnails
  • New : Performance improvements for very large galleries (1000+ images)
  • Fix : Bugs fixes for paging, FooBox and more
  • Update to latest client side JS 1.0.18
Download this release

Release Info

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

Code changes from version 1.4.8 to 1.4.12

Files changed (267) hide show
  1. Gruntfile.js +212 -212
  2. LICENSE.txt +338 -338
  3. README.md +362 -362
  4. README.txt +385 -373
  5. changelog.txt +3 -3
  6. css/admin-foogallery.css +461 -461
  7. css/admin-page-foogallery-extensions.css +296 -296
  8. css/admin-page-foogallery-help.css +2 -2
  9. css/admin-page-foogallery-settings.css +2 -2
  10. css/admin-tinymce.css +113 -113
  11. css/foogallery-foovideo-overrides.css +95 -95
  12. extensions/albums/admin/class-columns.php +73 -73
  13. extensions/albums/admin/class-metaboxes.php +576 -576
  14. extensions/albums/album-default.php +81 -81
  15. extensions/albums/album-stack.php +67 -67
  16. extensions/albums/class-albums-extension.php +111 -111
  17. extensions/albums/class-foogallery-album.php +256 -256
  18. extensions/albums/class-posttypes.php +108 -108
  19. extensions/albums/css/admin-foogallery-album.css +379 -379
  20. extensions/albums/css/album-default.css +102 -101
  21. extensions/albums/css/album-stack.css +289 -289
  22. extensions/albums/functions.php +360 -360
  23. extensions/albums/js/admin-foogallery-album.js +147 -147
  24. extensions/albums/js/album-stack.js +862 -862
  25. extensions/albums/public/class-foogallery-album-template-loader.php +184 -184
  26. extensions/albums/public/class-rewrite-rules.php +16 -16
  27. extensions/albums/public/class-shortcodes.php +48 -48
  28. extensions/default-templates/class-default-templates-extension.php +13 -13
  29. extensions/default-templates/class-default-templates.php +52 -52
  30. extensions/default-templates/default/class-default-gallery-template.php +219 -202
  31. extensions/default-templates/default/gallery-default.php +18 -22
  32. extensions/default-templates/default/js/admin-gallery-default.js +88 -88
  33. extensions/default-templates/functions.php +22 -22
  34. extensions/default-templates/image-viewer/class-image-viewer-gallery-template.php +297 -279
  35. extensions/default-templates/image-viewer/gallery-image-viewer.php +33 -42
  36. extensions/default-templates/image-viewer/js/admin-gallery-image-viewer.js +122 -122
  37. extensions/default-templates/justified/class-justified-gallery-template.php +269 -250
  38. extensions/default-templates/justified/gallery-justified.php +15 -21
  39. extensions/default-templates/masonry/class-masonry-gallery-template.php +330 -265
  40. extensions/default-templates/masonry/gallery-masonry.php +21 -25
  41. extensions/default-templates/masonry/js/admin-gallery-masonry.js +29 -29
  42. extensions/default-templates/shared/css/admin-foogallery.css +77 -77
  43. extensions/default-templates/shared/css/foogallery.css +2409 -2313
  44. extensions/default-templates/shared/css/foogallery.min.css +1 -1
  45. extensions/default-templates/shared/js/foogallery.js +7646 -7612
  46. extensions/default-templates/shared/js/foogallery.min.js +10 -10
  47. extensions/default-templates/simple-portfolio/class-simple-portfolio-gallery-template.php +310 -288
  48. extensions/default-templates/simple-portfolio/gallery-simple_portfolio.php +19 -26
  49. extensions/default-templates/thumbnail/class-thumbnail-gallery-template.php +213 -213
  50. extensions/default-templates/thumbnail/gallery-thumbnail.php +42 -42
  51. extensions/default-templates/thumbnail/js/admin-gallery-thumbnail.js +29 -29
  52. extensions/extensions.json.js +118 -118
  53. extensions/media-categories/class-media-categories-extension.php +236 -236
  54. extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php +313 -171
  55. extensions/nextgen-importer/class-nextgen-helper.php +578 -578
  56. extensions/nextgen-importer/class-nextgen-import-progress-album.php +81 -81
  57. extensions/nextgen-importer/class-nextgen-import-progress.php +154 -154
  58. extensions/nextgen-importer/class-nextgen-pagination.php +212 -212
  59. extensions/nextgen-importer/view-importer.php +350 -280
  60. foogallery.php +55 -55
  61. freemius/LICENSE.txt +673 -673
  62. freemius/assets/css/admin/account.css +1 -1
  63. freemius/assets/css/admin/affiliation.css +1 -1
  64. freemius/assets/css/admin/common.css +2 -2
  65. freemius/assets/css/admin/connect.css +1 -1
  66. freemius/assets/css/customizer.css +1 -1
  67. freemius/assets/js/nojquery.ba-postmessage.js +139 -139
  68. freemius/assets/js/nojquery.ba-postmessage.min.js +11 -11
  69. freemius/assets/js/postmessage.js +134 -134
  70. freemius/assets/scss/_mixins.scss +269 -269
  71. freemius/assets/scss/admin/_themes.scss +20 -20
  72. freemius/assets/scss/admin/account.scss +255 -255
  73. freemius/assets/scss/admin/add-ons.scss +448 -448
  74. freemius/assets/scss/admin/affiliation.scss +96 -96
  75. freemius/assets/scss/customizer.scss +124 -124
  76. freemius/config.php +328 -328
  77. freemius/gulpfile.js +138 -138
  78. freemius/includes/class-freemius-abstract.php +596 -596
  79. freemius/includes/class-fs-logger.php +687 -687
  80. freemius/includes/class-fs-security.php +85 -85
  81. freemius/includes/customizer/class-fs-customizer-support-section.php +101 -101
  82. freemius/includes/customizer/class-fs-customizer-upsell-control.php +156 -156
  83. freemius/includes/debug/class-fs-debug-bar-panel.php +64 -64
  84. freemius/includes/debug/debug-bar-start.php +51 -51
  85. freemius/includes/entities/class-fs-affiliate-terms.php +127 -127
  86. freemius/includes/entities/class-fs-affiliate.php +83 -83
  87. freemius/includes/entities/class-fs-billing.php +94 -94
  88. freemius/includes/entities/class-fs-entity.php +148 -148
  89. freemius/includes/entities/class-fs-payment.php +93 -93
  90. freemius/includes/entities/class-fs-plugin-info.php +33 -33
  91. freemius/includes/entities/class-fs-plugin-license.php +224 -224
  92. freemius/includes/entities/class-fs-plugin-plan.php +144 -144
  93. freemius/includes/entities/class-fs-plugin-tag.php +23 -23
  94. freemius/includes/entities/class-fs-plugin.php +116 -116
  95. freemius/includes/entities/class-fs-pricing.php +140 -140
  96. freemius/includes/entities/class-fs-scope-entity.php +28 -28
  97. freemius/includes/entities/class-fs-site.php +147 -147
  98. freemius/includes/entities/class-fs-subscription.php +124 -124
  99. freemius/includes/entities/class-fs-user.php +61 -61
  100. freemius/includes/fs-core-functions.php +686 -686
  101. freemius/includes/fs-essential-functions.php +493 -493
  102. freemius/includes/l10n.php +268 -268
  103. freemius/includes/managers/class-fs-admin-menu-manager.php +849 -849
  104. freemius/includes/managers/class-fs-cache-manager.php +280 -280
  105. freemius/includes/managers/class-fs-key-value-storage.php +327 -327
  106. freemius/includes/managers/class-fs-license-manager.php +103 -103
  107. freemius/includes/managers/class-fs-option-manager.php +352 -352
  108. freemius/includes/managers/class-fs-plan-manager.php +161 -161
  109. freemius/includes/managers/class-fs-plugin-manager.php +219 -219
  110. freemius/includes/sdk/LICENSE.txt +340 -340
  111. freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +47 -47
  112. freemius/languages/freemius-da_DK.po +1826 -1826
  113. freemius/languages/freemius-en.po +1824 -1824
  114. freemius/languages/freemius-he.po +1827 -1827
  115. freemius/languages/freemius-it_IT.po +1829 -1829
  116. freemius/languages/freemius-ja_JP.po +1827 -1827
  117. freemius/languages/freemius.pot +1821 -1821
  118. freemius/package.json +40 -40
  119. freemius/require.php +44 -44
  120. freemius/templates/account.php +744 -744
  121. freemius/templates/account/billing.php +425 -425
  122. freemius/templates/account/index.php +2 -2
  123. freemius/templates/account/payments.php +58 -58
  124. freemius/templates/add-ons.php +192 -192
  125. freemius/templates/add-trial-to-pricing.php +30 -30
  126. freemius/templates/admin-notice.php +46 -46
  127. freemius/templates/all-admin-notice.php +38 -38
  128. freemius/templates/auto-installation.php +244 -244
  129. freemius/templates/checkout-legacy.php +242 -242
  130. freemius/templates/checkout.php +320 -320
  131. freemius/templates/contact.php +123 -123
  132. freemius/templates/debug/api-calls.php +152 -152
  133. freemius/templates/debug/logger.php +65 -65
  134. freemius/templates/debug/plugins-themes-sync.php +68 -68
  135. freemius/templates/debug/scheduled-crons.php +129 -129
  136. freemius/templates/email.php +48 -48
  137. freemius/templates/firewall-issues-js.php +58 -58
  138. freemius/templates/forms/affiliation.php +475 -475
  139. freemius/templates/forms/deactivation/contact.php +20 -20
  140. freemius/templates/forms/deactivation/form.php +404 -404
  141. freemius/templates/forms/deactivation/retry-skip.php +23 -23
  142. freemius/templates/forms/license-activation.php +214 -214
  143. freemius/templates/forms/optout.php +266 -266
  144. freemius/templates/forms/resend-key.php +247 -247
  145. freemius/templates/forms/trial-start.php +179 -179
  146. freemius/templates/js/index.php +2 -2
  147. freemius/templates/js/jquery.content-change.php +46 -46
  148. freemius/templates/js/style-premium-theme.php +44 -44
  149. freemius/templates/plugin-icon.php +129 -129
  150. freemius/templates/plugin-info/description.php +77 -77
  151. freemius/templates/plugin-info/features.php +113 -113
  152. freemius/templates/plugin-info/screenshots.php +34 -34
  153. freemius/templates/powered-by.php +57 -57
  154. freemius/templates/pricing.php +163 -163
  155. freemius/templates/secure-https-header.php +37 -37
  156. freemius/templates/sticky-admin-notice-js.php +38 -38
  157. freemius/templates/tabs-capture-js.php +62 -62
  158. freemius/templates/tabs.php +178 -178
  159. includes/WPThumb/wpthumb.background-fill.php +146 -146
  160. includes/WPThumb/wpthumb.crop-from-position.php +85 -85
  161. includes/WPThumb/wpthumb.image-editor.php +46 -46
  162. includes/WPThumb/wpthumb.php +824 -824
  163. includes/WPThumb/wpthumb.shortcodes.php +49 -49
  164. includes/WPThumb/wpthumb.watermark.php +392 -392
  165. includes/admin/boilerplates/lightbox/css/lightbox-EXTSLUG.css +4 -4
  166. includes/admin/boilerplates/lightbox/foogallery-EXTSLUG-extension.txt +77 -77
  167. includes/admin/boilerplates/lightbox/foogallery-EXTSLUG-init.txt +31 -31
  168. includes/admin/boilerplates/lightbox/js/lightbox-EXTSLUG.js +5 -5
  169. includes/admin/boilerplates/template/css/gallery-EXTSLUG.css +28 -28
  170. includes/admin/boilerplates/template/foogallery-EXTSLUG-extension.txt +162 -162
  171. includes/admin/boilerplates/template/foogallery-EXTSLUG-init.txt +31 -31
  172. includes/admin/boilerplates/template/gallery-EXTSLUG.txt +20 -20
  173. includes/admin/boilerplates/template/js/admin-gallery-EXTSLUG.js +19 -19
  174. includes/admin/boilerplates/template/js/gallery-EXTSLUG.js +2 -2
  175. includes/admin/class-admin-css-load-optimizer.php +72 -72
  176. includes/admin/class-admin-notices.php +82 -82
  177. includes/admin/class-admin.php +85 -85
  178. includes/admin/class-attachment-fields.php +198 -198
  179. includes/admin/class-autoptimize-support.php +70 -70
  180. includes/admin/class-boilerplate-download-handler.php +88 -88
  181. includes/admin/class-boilerplate-zip-generator.php +140 -140
  182. includes/admin/class-columns.php +112 -112
  183. includes/admin/class-extensions.php +138 -138
  184. includes/admin/class-gallery-editor.php +421 -421
  185. includes/admin/class-gallery-metabox-fields.php +199 -199
  186. includes/admin/class-gallery-metabox-settings-helper.php +197 -197
  187. includes/admin/class-gallery-metabox-settings.php +66 -66
  188. includes/admin/class-gallery-metaboxes.php +630 -630
  189. includes/admin/class-menu.php +106 -106
  190. includes/admin/class-settings-image-optimization.php +43 -43
  191. includes/admin/class-settings.php +427 -427
  192. includes/admin/class-silent-installer-skin.php +17 -17
  193. includes/admin/view-extensions-build-your-own.php +164 -164
  194. includes/admin/view-extensions-popup.php +61 -61
  195. includes/admin/view-extensions.php +162 -162
  196. includes/admin/view-help.php +104 -104
  197. includes/admin/view-system-info.php +113 -113
  198. includes/class-attachment-filters.php +55 -55
  199. includes/class-foobox-support.php +136 -136
  200. includes/class-foogallery-animated-gif-support.php +38 -38
  201. includes/class-foogallery-attachment-custom-class.php +60 -60
  202. includes/class-foogallery-attachment.php +245 -245
  203. includes/class-foogallery-cache.php +249 -231
  204. includes/class-foogallery-common-fields.php +679 -679
  205. includes/class-foogallery-datasource-media_library.php +137 -137
  206. includes/class-foogallery-extensions-compatibility.php +41 -41
  207. includes/class-foogallery-lazyload.php +191 -191
  208. includes/class-foogallery-paging.php +382 -325
  209. includes/class-foogallery-upgrade.php +826 -826
  210. includes/class-foogallery-widget.php +111 -111
  211. includes/class-foogallery.php +477 -477
  212. includes/class-polylang-compatibility.php +104 -104
  213. includes/class-posttypes.php +109 -109
  214. includes/class-responsive-lightbox-dfactory-support.php +54 -54
  215. includes/class-retina.php +82 -82
  216. includes/class-thumbnail-dimensions.php +137 -137
  217. includes/class-thumbnails.php +148 -148
  218. includes/class-version-check.php +50 -50
  219. includes/class-wp-rocket-support.php +66 -66
  220. includes/class-wpthumb-enhancements.php +66 -66
  221. includes/constants.php +31 -31
  222. includes/extensions/class-extension.php +57 -57
  223. includes/extensions/class-extensions-api.php +823 -823
  224. includes/extensions/class-extensions-loader.php +46 -46
  225. includes/foopluginbase/README.md +4 -4
  226. includes/foopluginbase/bootstrapper.php +31 -31
  227. includes/foopluginbase/changelog.txt +20 -20
  228. includes/foopluginbase/classes/class-foo-friendly-dates.php +138 -138
  229. includes/foopluginbase/classes/class-foo-plugin-base.php +333 -333
  230. includes/foopluginbase/classes/class-foo-plugin-file-locator.php +170 -170
  231. includes/foopluginbase/classes/class-foo-plugin-metabox-sanity.php +101 -101
  232. includes/foopluginbase/classes/class-foo-plugin-options.php +142 -142
  233. includes/foopluginbase/classes/class-foo-plugin-settings.php +407 -407
  234. includes/foopluginbase/classes/class-foo-plugin-textdomain.php +54 -54
  235. includes/foopluginbase/functions/arrays.php +44 -44
  236. includes/foopluginbase/functions/dates.php +24 -24
  237. includes/foopluginbase/functions/general.php +60 -60
  238. includes/foopluginbase/functions/screen.php +51 -51
  239. includes/foopluginbase/functions/strings.php +66 -66
  240. includes/foopluginbase/js/admin-settings.js +110 -110
  241. includes/foopluginbase/tests/class-foo-friendly-dates-tests.php +194 -194
  242. includes/foopluginbase/views/settings.php +104 -104
  243. includes/functions.php +1035 -996
  244. includes/includes.php +85 -85
  245. includes/interface-foogallery-datasource.php +48 -48
  246. includes/public/class-admin-bar.php +49 -49
  247. includes/public/class-css-load-optimizer.php +153 -153
  248. includes/public/class-foogallery-template-loader.php +260 -251
  249. includes/public/class-public.php +19 -19
  250. includes/public/class-shortcodes.php +64 -64
  251. includes/public/class-yoast-seo-sitemaps.php +44 -44
  252. includes/render-functions.php +456 -294
  253. js/admin-foogallery-editor.js +101 -101
  254. js/admin-foogallery.js +494 -494
  255. js/admin-page-foogallery-extensions-modal.js +163 -163
  256. js/admin-page-foogallery-extensions.js +107 -107
  257. js/admin-page-foogallery-settings.js +268 -268
  258. js/admin-tinymce.js +154 -154
  259. js/admin-uploader.js +13 -13
  260. js/foogallery.admin.min.js +8 -8
  261. languages/foogallery-fa_IR.po +2535 -2535
  262. languages/foogallery-fr_FR.po +2650 -2650
  263. languages/foogallery.pot +2475 -2475
  264. lib/spectrum/spectrum.css +507 -507
  265. lib/spectrum/spectrum.js +2287 -2287
  266. package.json +35 -35
  267. templates/where-are-the-templates.php +8 -8
Gruntfile.js CHANGED
@@ -1,212 +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
- };
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 CHANGED
@@ -1,339 +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.
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 CHANGED
@@ -1,363 +1,363 @@
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, steveush, 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
- 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.
26
-
27
- [View the Foo Gallery Homepage & DEMO](http://foo.gallery/)
28
-
29
- **Major changes in 1.4.1!**
30
-
31
- There have been major updates to the gallery templates in v1.4.1. If you have updated, please test your galleries.
32
-
33
- **Retina Support**
34
-
35
- 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.
36
-
37
- **Video Support**
38
-
39
- 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!
40
-
41
- **Albums Built In**
42
-
43
- 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.
44
-
45
- **Built For Developers**
46
-
47
- 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.
48
-
49
- **Features**
50
-
51
- * Retina thumbnail support
52
- * Add videos to galleries (via the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo))
53
- * Albums built-in! (Activate the albums extension)
54
- * Gallery custom post type
55
- * Use built-in media library to manage images
56
- * Drag n Drop reordering of images and galleries
57
- * Built-in gallery templates
58
- * Built-in support for FooBox
59
- * Built-in Extensions Store
60
- * Built on an extension framework
61
- * Custom CSS for both galleries and albums
62
- * Copy to clipboard shortcodes
63
- * Visual shortcodes in rich text editor
64
- * Gallery picker to insert shortcode
65
- * Page usage metabox with one-click gallery page creation
66
- * NextGen importer tool (albums and galleries)
67
- * Multisite Support
68
- * plus many, many more
69
-
70
- **Gallery Demos**
71
-
72
- * Responsive Image Gallery - [demo](http://foo.gallery/demos/responsive-image-gallery/)
73
- * FooGrid Image Gallery - [light demo](http://foo.gallery/demos/foogrid-light/) - [dark demo](http://foo.gallery/demos/foogrid-dark/)
74
- * Image Viewer Gallery - [light demo](http://foo.gallery/demos/image-viewer-gallery/) - [dark demo](http://foo.gallery/demos/image-viewer-gallery-dark/)
75
- * Masonry Gallery - [demo](http://foo.gallery/demos/masonry-image-gallery/)
76
- * Simple Portfolio - [demo](http://foo.gallery/demos/simple-portfolio/)
77
- * Justified Gallery ([http://miromannino.github.io/Justified-Gallery](http://miromannino.github.io/Justified-Gallery/)) - [demo](http://foo.gallery/demos/justified-gallery/)
78
- * Single Thumbnail Gallery - [demo](http://foo.gallery/demos/single-thumbnail-gallery/)
79
- * Polaroid Gallery - [demo](http://foo.gallery/demos/polaroid-image-gallery/)
80
- * 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)
81
- * Mixed (Images + Videos) - [demo](http://foo.gallery/demos/mixed/)
82
-
83
- **Caption Demos**
84
-
85
- * Simple Hover Captions - [demo](http://foo.gallery/demos/captions-simple-hover/)
86
- * Always Visible Captions - [demo](http://foo.gallery/demos/responsive-image-gallery-captions/)
87
- * Drop Captions - [demo](http://foo.gallery/demos/captions-drop/)
88
- * Fade Captions - [demo](http://foo.gallery/demos/captions-fade/)
89
- * Push Captions - [demo](http://foo.gallery/demos/captions-push/)
90
-
91
- **Album Demos**
92
-
93
- * Responsive Album Layout - [demo](http://foo.gallery/demos/responsive-album-layout/)
94
- * All-in-one Stack Album - [demo](http://foo.gallery/demos/all-in-one-stack-album/)
95
-
96
- **Videos Demos**
97
-
98
- * Vertical Video Slider - [demo](http://foo.gallery/demos/video-slider-vertical/) - [full-width demo](http://foo.gallery/demos/video-slider-vertical-full-width/)
99
- * Horizontal Video Slider - [demo](http://foo.gallery/demos/video-slider-horizontal/) - [custom colors](http://foo.gallery/demos/video-slider-custom-theme/)
100
-
101
- **Extensions**
102
-
103
- * [FooVideo](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
104
- * Albums (bundled)
105
- * Default Gallery Templates (bundled)
106
- * NextGen Gallery and Album Importer (bundled)
107
- * [FooGrid Gallery](http://fooplugins.com/plugins/foogrid/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
108
- * [Cube Gallery](http://fooplugins.com/plugins/cube-gallery-template/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
109
- * [Custom Branding](http://fooplugins.com/plugins/foogallery-branding/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
110
- * [FooBox PRO Lightbox](http://fooplugins.com/plugins/foobox/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
111
- * [FooBox FREE Lightbox](http://wordpress.org/plugins/foobox-image-lightbox)
112
- * [Owl Carousel Template](http://wordpress.org/plugins/foogallery-owl-carousel-template/)
113
- * [ZOOM Template](http://wordpress.org/plugins/foogallery-zoom-template/)
114
- * [Thirsty Affiliates](http://wordpress.org/plugins/thirstyaffiliates-for-foogallery-extension/)
115
- * [Polaroid Template](https://github.com/fooplugins/foogallery-polaroid-template)
116
- * [Use Media Menu](https://github.com/fooplugins/foogallery-media-menu)
117
- * Build your own!!!
118
-
119
- **Documentation**
120
-
121
- * [FooGallery 101](http://docs.fooplugins.com/foogallery/foogallery-101/)
122
- * [Developer 101](http://docs.fooplugins.com/foogallery/foogallery-developers-101/)
123
- * [Actions and Filters](http://docs.fooplugins.com/foogallery/actions-filters/)
124
-
125
- **Contribute**
126
-
127
- 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).
128
-
129
- ## Installation ##
130
-
131
- 1. Upload `foogallery` folder to the `/wp-content/plugins/` directory
132
- 2. Activate the plugin through the 'Plugins' menu in WordPress
133
- 3. You will be redirected to the FooGallery Help page to get your started
134
-
135
- ## Frequently Asked Questions ##
136
-
137
- ### Why are my thumbnails so blurry? ###
138
-
139
- 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.
140
-
141
- ### Can I add videos to my galleries? ###
142
-
143
- Yes, you need to use the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
144
-
145
- ### How do I get albums working? ###
146
-
147
- 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.
148
-
149
- ### Can I build an extension? ###
150
-
151
- Hell, yes! Check out our [developer page](http://foo.gallery/developers/)
152
-
153
- ## Screenshots ##
154
-
155
- [View screenshots](https://wordpress.org/plugins/foogallery/screenshots/)
156
-
157
- ## Upgrade Notice ##
158
-
159
- Update now to support FooVideo and many other improvements!
160
-
161
- ## Changelog ##
162
-
163
- ### 1.4.5 ###
164
-
165
- * Fix : Lazy loading - scrolling galleries in certain scenarios were not loading thumbs
166
- * Fix : Galleries that were hidden on page load were not displaying correctly when shown
167
- * Fix : Default gallery settings were not being applied to new galleries
168
- * New : shortcode arguments applied to gallery for common fields
169
- * New : HTML caching is disabled by default now!
170
- * Updated to latest client side JS and CSS
171
-
172
- ### 1.4.4 ###
173
-
174
- * Fix : upgrade was calling underfined function
175
-
176
- ### 1.4.3 ###
177
-
178
- * Fix : Justify gallery template issues
179
- * Fix : Masonry gallery template issues
180
- * Fix : Caption description not hidden when supposed to
181
- * Fix : Complete rework of thumbnail dimension logic!
182
- * Fix : Redirection bug on activation
183
- * Fix : Added checks for galleries causing PHP warnings
184
- * New : Last Row setting in Justify gallery template
185
- * New : Alignment setting in Simple Portfolio gallery template
186
- * New : Added more checks after load to ensure gallery layout is correct
187
- * Updated to Freemius SDK 1.2.2.10
188
- * Updated to latest client side JS and CSS
189
-
190
- ### 1.3.28 ###
191
-
192
- * Complete rewrite of the built-in gallery templates
193
- * New : lazy loading
194
- * New : simple pagination
195
- * New : Live Previews when editing a gallery
196
- * 260+ updates, changes and bug fixes
197
-
198
- ### 1.3.8 ###
199
-
200
- * New : Built in support for FooBox, fixing a lot of issues where FooBox option is not available
201
- * Fix : More reliable extension active status on extensions listing
202
- * Fix : More obvious wording for 3rd party plugins when they are not installed
203
-
204
- ### 1.3.7 ###
205
-
206
- * Fix : Activation redirect bug showing "Sorry, you are not allowed to access this page."
207
-
208
- ### 1.3.6 ###
209
-
210
- * New : Freemius integration!
211
- * New : Added support for the Responsive Lightbox by dFactory
212
- * New : New custom class field for an attachment
213
- * New : Added more system info for better debugging when there are server issues
214
- * Fix : Visual editor FooGallery edit button
215
- * Fix : Image Viewer hover effect none now works as expected
216
- * Fix : Disable HTML caching for randomly ordered galleries
217
-
218
- ### 1.2.20 ###
219
-
220
- * New : Force Use Original thumb setting on gallery edit page
221
- * Fix : PHP warning from thumbnail class since 1.2.19
222
-
223
- ### 1.2.19 ###
224
-
225
- * New : Gallery output caching! Saves database requests improving load time
226
- * New : Gallery usage column in admin gallery listing
227
- * New : Better support for animated gifs
228
- * New : Hover icons retina support
229
- * New : Uninstall button on settings
230
- * New : Save thumb dimensions per attachment. (needed in future versions)
231
- * Fix : Extensions refactor and many issues resolved
232
- * Fix : Better retina support for all templates
233
- * Fix : Colorize / Greyscale CSS filters
234
- * Fix : Even better wpthumb compatibility
235
-
236
- ### 1.2.18 ###
237
-
238
- * Fix : Handle no settings in retina metabox
239
-
240
- ### 1.2.17 ###
241
-
242
- * New : Retina support - metabox per gallery and default settings
243
- * New : Attachment datasources - backend changes for how images are used in a gallery. (This will allow for new external sources in the future)
244
- * New : Caption color settings in Simple portfolio gallery template
245
- * New : Updated to latest Justified Gallery
246
- * Fix : Better wpthumb compatibility
247
-
248
- ### 1.2.16 ###
249
-
250
- * Fix : Yoast SEO Sitemaps fatal error with deleted galleries
251
- * Fix : Updating pages with deleted galleries throws php warnings
252
-
253
- ### 1.2.15 ###
254
-
255
- * Fix : Album admin CSS issues in WP 4.6
256
- * Fix : Masonry layout issues in WP 4.6
257
- * Fix : Media attachment fields not updating
258
- * Fix : Better support for IE10
259
- * New : Thumbnail generation test admin notice and settings
260
-
261
- ### 1.2.13 ###
262
-
263
- * Fix : Shortcode replacing content in visual editor
264
- * Fix : Gallery hover effect of None being ignored
265
- * New : ImageViewer language settings for 'Prev', 'Next' & 'of'
266
- * New : Setting to use original thumbnails if available
267
-
268
- ### 1.2.12 ###
269
-
270
- * Fix : Simple Portfolio missing captions fix
271
-
272
- ### 1.2.11 ###
273
-
274
- * Fix : Simple Portfolio undefined function fix
275
-
276
- ### 1.2.10 ###
277
-
278
- * New : support for multiple admin JS and CSS assets for gallery templates
279
- * New : Added setting to choose Caption Description source
280
- * New : Crop position can be chosen for attachments
281
- * New : Albums gallery details modal for setting a gallery URL
282
- * New : Better shortcode preview in editor
283
- * New : Editor button now supported if multiple editors exist
284
- * Fix : Better No-Link support for gallery templates
285
- * Fix : Compatible with Unyson plugin
286
- * Fix : Compatible with Advanced Custom Fields
287
- * Fix : Simple Portfolio fixes and tweaks
288
- * Fix : ImageViewer fixes and better browser compatibility
289
- * Fix : Changed assets enqueue version to rather use extension version
290
- * Fix : Album URL fix for permalinks with no trailing slashes
291
-
292
- ### 1.2.9 ###
293
- * New : Added Image Viewer gallery template
294
- * New : Caption support for default template
295
- * New : Yoast SEO gallery image support!
296
- * New : Responsive options for Masonry gallery
297
- * New : change gallery URL slug for albums
298
- * New : setting to turn off loading animation in default gallery
299
- * New : French translation
300
- * Fix : Support for WP 4.4
301
- * Fix : All templates - moved all jQuery ready events to vanilla JS
302
- * Fix : Many gallery template tweaks
303
- * Fix : allow no default to be chosen in settings
304
-
305
- ### 1.2.8 ###
306
- * Works now with Polylang translation plugin
307
- * CSS Updates & enhancements to all gallery templates
308
- * Password protected galleries now work as expected
309
- * Ability to hide WYSIWYG editor button
310
- * Updated WPThumb
311
- * Multiple bug fixes and improvements
312
-
313
- ### 1.2.7 ###
314
- * Bug fixes for 1.2.6 release
315
- * Added 2 new settings to Justified Gallery template (maxRowHeight + Caption Source)
316
-
317
- ### 1.2.6 ###
318
- * CSS load optimizations
319
- * Updates and tweaks on all built-in gallery templates
320
- * More robust extension loading
321
- * More robust upgrades to FooBox PRO
322
- * Improved copy-to-clipboard
323
- * Added more hover effects
324
- * Support for FooVideo
325
-
326
- ### 1.2.5 ###
327
- * Fix for extensions being empty
328
- * Added support for Multi-site
329
- * Added esc_url to all places where url is rendered
330
- * Updated to latest Justified Gallery v3.5.4
331
-
332
- ### 1.2.4 ###
333
- * Many album template updates, enhancements and fixes
334
- * Many gallery template tweaks and fixes
335
- * Sort order settings for galleries and albums
336
- * Added new Single Thumbnail Gallery template
337
-
338
- ### 1.2.1 ###
339
- * Added setting to choose default gallery to copy settings from
340
- * Fixed bug #45 - gallery fields not showing onload
341
- * replaced minicolors with spectrum colorpicker
342
- * Allow gallery fields to have a suffix
343
- * Added function to render galleries "foogallery_render_gallery( $gallery_id )"
344
-
345
- ### 1.2.0 ###
346
- * Added albums extension
347
- * Added custom CSS metaboxes
348
- * Updated Nextgen importer
349
- * Fixed many bugs
350
-
351
- ### 1.1.8.2 ###
352
- * Fixed "edit gallery" CSS with WP 4.0
353
-
354
- ### 1.1.8.1 ###
355
- * Fixed "insert gallery" CSS with WP 4.0
356
-
357
- ### 1.1.8 ###
358
- * Added 2 new gallery templates
359
- * Added 10+ actions and filters for more customization
360
- * Countless bug fixes and enhancements
361
-
362
- ### 1.1.7 ###
363
* first version!
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, steveush, 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
+ 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.
26
+
27
+ [View the Foo Gallery Homepage & DEMO](http://foo.gallery/)
28
+
29
+ **Major changes in 1.4.1!**
30
+
31
+ There have been major updates to the gallery templates in v1.4.1. If you have updated, please test your galleries.
32
+
33
+ **Retina Support**
34
+
35
+ 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.
36
+
37
+ **Video Support**
38
+
39
+ 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!
40
+
41
+ **Albums Built In**
42
+
43
+ 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.
44
+
45
+ **Built For Developers**
46
+
47
+ 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.
48
+
49
+ **Features**
50
+
51
+ * Retina thumbnail support
52
+ * Add videos to galleries (via the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo))
53
+ * Albums built-in! (Activate the albums extension)
54
+ * Gallery custom post type
55
+ * Use built-in media library to manage images
56
+ * Drag n Drop reordering of images and galleries
57
+ * Built-in gallery templates
58
+ * Built-in support for FooBox
59
+ * Built-in Extensions Store
60
+ * Built on an extension framework
61
+ * Custom CSS for both galleries and albums
62
+ * Copy to clipboard shortcodes
63
+ * Visual shortcodes in rich text editor
64
+ * Gallery picker to insert shortcode
65
+ * Page usage metabox with one-click gallery page creation
66
+ * NextGen importer tool (albums and galleries)
67
+ * Multisite Support
68
+ * plus many, many more
69
+
70
+ **Gallery Demos**
71
+
72
+ * Responsive Image Gallery - [demo](http://foo.gallery/demos/responsive-image-gallery/)
73
+ * FooGrid Image Gallery - [light demo](http://foo.gallery/demos/foogrid-light/) - [dark demo](http://foo.gallery/demos/foogrid-dark/)
74
+ * Image Viewer Gallery - [light demo](http://foo.gallery/demos/image-viewer-gallery/) - [dark demo](http://foo.gallery/demos/image-viewer-gallery-dark/)
75
+ * Masonry Gallery - [demo](http://foo.gallery/demos/masonry-image-gallery/)
76
+ * Simple Portfolio - [demo](http://foo.gallery/demos/simple-portfolio/)
77
+ * Justified Gallery ([http://miromannino.github.io/Justified-Gallery](http://miromannino.github.io/Justified-Gallery/)) - [demo](http://foo.gallery/demos/justified-gallery/)
78
+ * Single Thumbnail Gallery - [demo](http://foo.gallery/demos/single-thumbnail-gallery/)
79
+ * Polaroid Gallery - [demo](http://foo.gallery/demos/polaroid-image-gallery/)
80
+ * 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)
81
+ * Mixed (Images + Videos) - [demo](http://foo.gallery/demos/mixed/)
82
+
83
+ **Caption Demos**
84
+
85
+ * Simple Hover Captions - [demo](http://foo.gallery/demos/captions-simple-hover/)
86
+ * Always Visible Captions - [demo](http://foo.gallery/demos/responsive-image-gallery-captions/)
87
+ * Drop Captions - [demo](http://foo.gallery/demos/captions-drop/)
88
+ * Fade Captions - [demo](http://foo.gallery/demos/captions-fade/)
89
+ * Push Captions - [demo](http://foo.gallery/demos/captions-push/)
90
+
91
+ **Album Demos**
92
+
93
+ * Responsive Album Layout - [demo](http://foo.gallery/demos/responsive-album-layout/)
94
+ * All-in-one Stack Album - [demo](http://foo.gallery/demos/all-in-one-stack-album/)
95
+
96
+ **Videos Demos**
97
+
98
+ * Vertical Video Slider - [demo](http://foo.gallery/demos/video-slider-vertical/) - [full-width demo](http://foo.gallery/demos/video-slider-vertical-full-width/)
99
+ * Horizontal Video Slider - [demo](http://foo.gallery/demos/video-slider-horizontal/) - [custom colors](http://foo.gallery/demos/video-slider-custom-theme/)
100
+
101
+ **Extensions**
102
+
103
+ * [FooVideo](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
104
+ * Albums (bundled)
105
+ * Default Gallery Templates (bundled)
106
+ * NextGen Gallery and Album Importer (bundled)
107
+ * [FooGrid Gallery](http://fooplugins.com/plugins/foogrid/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
108
+ * [Cube Gallery](http://fooplugins.com/plugins/cube-gallery-template/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
109
+ * [Custom Branding](http://fooplugins.com/plugins/foogallery-branding/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
110
+ * [FooBox PRO Lightbox](http://fooplugins.com/plugins/foobox/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
111
+ * [FooBox FREE Lightbox](http://wordpress.org/plugins/foobox-image-lightbox)
112
+ * [Owl Carousel Template](http://wordpress.org/plugins/foogallery-owl-carousel-template/)
113
+ * [ZOOM Template](http://wordpress.org/plugins/foogallery-zoom-template/)
114
+ * [Thirsty Affiliates](http://wordpress.org/plugins/thirstyaffiliates-for-foogallery-extension/)
115
+ * [Polaroid Template](https://github.com/fooplugins/foogallery-polaroid-template)
116
+ * [Use Media Menu](https://github.com/fooplugins/foogallery-media-menu)
117
+ * Build your own!!!
118
+
119
+ **Documentation**
120
+
121
+ * [FooGallery 101](http://docs.fooplugins.com/foogallery/foogallery-101/)
122
+ * [Developer 101](http://docs.fooplugins.com/foogallery/foogallery-developers-101/)
123
+ * [Actions and Filters](http://docs.fooplugins.com/foogallery/actions-filters/)
124
+
125
+ **Contribute**
126
+
127
+ 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).
128
+
129
+ ## Installation ##
130
+
131
+ 1. Upload `foogallery` folder to the `/wp-content/plugins/` directory
132
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
133
+ 3. You will be redirected to the FooGallery Help page to get your started
134
+
135
+ ## Frequently Asked Questions ##
136
+
137
+ ### Why are my thumbnails so blurry? ###
138
+
139
+ 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.
140
+
141
+ ### Can I add videos to my galleries? ###
142
+
143
+ Yes, you need to use the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
144
+
145
+ ### How do I get albums working? ###
146
+
147
+ 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.
148
+
149
+ ### Can I build an extension? ###
150
+
151
+ Hell, yes! Check out our [developer page](http://foo.gallery/developers/)
152
+
153
+ ## Screenshots ##
154
+
155
+ [View screenshots](https://wordpress.org/plugins/foogallery/screenshots/)
156
+
157
+ ## Upgrade Notice ##
158
+
159
+ Update now to support FooVideo and many other improvements!
160
+
161
+ ## Changelog ##
162
+
163
+ ### 1.4.5 ###
164
+
165
+ * Fix : Lazy loading - scrolling galleries in certain scenarios were not loading thumbs
166
+ * Fix : Galleries that were hidden on page load were not displaying correctly when shown
167
+ * Fix : Default gallery settings were not being applied to new galleries
168
+ * New : shortcode arguments applied to gallery for common fields
169
+ * New : HTML caching is disabled by default now!
170
+ * Updated to latest client side JS and CSS
171
+
172
+ ### 1.4.4 ###
173
+
174
+ * Fix : upgrade was calling underfined function
175
+
176
+ ### 1.4.3 ###
177
+
178
+ * Fix : Justify gallery template issues
179
+ * Fix : Masonry gallery template issues
180
+ * Fix : Caption description not hidden when supposed to
181
+ * Fix : Complete rework of thumbnail dimension logic!
182
+ * Fix : Redirection bug on activation
183
+ * Fix : Added checks for galleries causing PHP warnings
184
+ * New : Last Row setting in Justify gallery template
185
+ * New : Alignment setting in Simple Portfolio gallery template
186
+ * New : Added more checks after load to ensure gallery layout is correct
187
+ * Updated to Freemius SDK 1.2.2.10
188
+ * Updated to latest client side JS and CSS
189
+
190
+ ### 1.3.28 ###
191
+
192
+ * Complete rewrite of the built-in gallery templates
193
+ * New : lazy loading
194
+ * New : simple pagination
195
+ * New : Live Previews when editing a gallery
196
+ * 260+ updates, changes and bug fixes
197
+
198
+ ### 1.3.8 ###
199
+
200
+ * New : Built in support for FooBox, fixing a lot of issues where FooBox option is not available
201
+ * Fix : More reliable extension active status on extensions listing
202
+ * Fix : More obvious wording for 3rd party plugins when they are not installed
203
+
204
+ ### 1.3.7 ###
205
+
206
+ * Fix : Activation redirect bug showing "Sorry, you are not allowed to access this page."
207
+
208
+ ### 1.3.6 ###
209
+
210
+ * New : Freemius integration!
211
+ * New : Added support for the Responsive Lightbox by dFactory
212
+ * New : New custom class field for an attachment
213
+ * New : Added more system info for better debugging when there are server issues
214
+ * Fix : Visual editor FooGallery edit button
215
+ * Fix : Image Viewer hover effect none now works as expected
216
+ * Fix : Disable HTML caching for randomly ordered galleries
217
+
218
+ ### 1.2.20 ###
219
+
220
+ * New : Force Use Original thumb setting on gallery edit page
221
+ * Fix : PHP warning from thumbnail class since 1.2.19
222
+
223
+ ### 1.2.19 ###
224
+
225
+ * New : Gallery output caching! Saves database requests improving load time
226
+ * New : Gallery usage column in admin gallery listing
227
+ * New : Better support for animated gifs
228
+ * New : Hover icons retina support
229
+ * New : Uninstall button on settings
230
+ * New : Save thumb dimensions per attachment. (needed in future versions)
231
+ * Fix : Extensions refactor and many issues resolved
232
+ * Fix : Better retina support for all templates
233
+ * Fix : Colorize / Greyscale CSS filters
234
+ * Fix : Even better wpthumb compatibility
235
+
236
+ ### 1.2.18 ###
237
+
238
+ * Fix : Handle no settings in retina metabox
239
+
240
+ ### 1.2.17 ###
241
+
242
+ * New : Retina support - metabox per gallery and default settings
243
+ * New : Attachment datasources - backend changes for how images are used in a gallery. (This will allow for new external sources in the future)
244
+ * New : Caption color settings in Simple portfolio gallery template
245
+ * New : Updated to latest Justified Gallery
246
+ * Fix : Better wpthumb compatibility
247
+
248
+ ### 1.2.16 ###
249
+
250
+ * Fix : Yoast SEO Sitemaps fatal error with deleted galleries
251
+ * Fix : Updating pages with deleted galleries throws php warnings
252
+
253
+ ### 1.2.15 ###
254
+
255
+ * Fix : Album admin CSS issues in WP 4.6
256
+ * Fix : Masonry layout issues in WP 4.6
257
+ * Fix : Media attachment fields not updating
258
+ * Fix : Better support for IE10
259
+ * New : Thumbnail generation test admin notice and settings
260
+
261
+ ### 1.2.13 ###
262
+
263
+ * Fix : Shortcode replacing content in visual editor
264
+ * Fix : Gallery hover effect of None being ignored
265
+ * New : ImageViewer language settings for 'Prev', 'Next' & 'of'
266
+ * New : Setting to use original thumbnails if available
267
+
268
+ ### 1.2.12 ###
269
+
270
+ * Fix : Simple Portfolio missing captions fix
271
+
272
+ ### 1.2.11 ###
273
+
274
+ * Fix : Simple Portfolio undefined function fix
275
+
276
+ ### 1.2.10 ###
277
+
278
+ * New : support for multiple admin JS and CSS assets for gallery templates
279
+ * New : Added setting to choose Caption Description source
280
+ * New : Crop position can be chosen for attachments
281
+ * New : Albums gallery details modal for setting a gallery URL
282
+ * New : Better shortcode preview in editor
283
+ * New : Editor button now supported if multiple editors exist
284
+ * Fix : Better No-Link support for gallery templates
285
+ * Fix : Compatible with Unyson plugin
286
+ * Fix : Compatible with Advanced Custom Fields
287
+ * Fix : Simple Portfolio fixes and tweaks
288
+ * Fix : ImageViewer fixes and better browser compatibility
289
+ * Fix : Changed assets enqueue version to rather use extension version
290
+ * Fix : Album URL fix for permalinks with no trailing slashes
291
+
292
+ ### 1.2.9 ###
293
+ * New : Added Image Viewer gallery template
294
+ * New : Caption support for default template
295
+ * New : Yoast SEO gallery image support!
296
+ * New : Responsive options for Masonry gallery
297
+ * New : change gallery URL slug for albums
298
+ * New : setting to turn off loading animation in default gallery
299
+ * New : French translation
300
+ * Fix : Support for WP 4.4
301
+ * Fix : All templates - moved all jQuery ready events to vanilla JS
302
+ * Fix : Many gallery template tweaks
303
+ * Fix : allow no default to be chosen in settings
304
+
305
+ ### 1.2.8 ###
306
+ * Works now with Polylang translation plugin
307
+ * CSS Updates & enhancements to all gallery templates
308
+ * Password protected galleries now work as expected
309
+ * Ability to hide WYSIWYG editor button
310
+ * Updated WPThumb
311
+ * Multiple bug fixes and improvements
312
+
313
+ ### 1.2.7 ###
314
+ * Bug fixes for 1.2.6 release
315
+ * Added 2 new settings to Justified Gallery template (maxRowHeight + Caption Source)
316
+
317
+ ### 1.2.6 ###
318
+ * CSS load optimizations
319
+ * Updates and tweaks on all built-in gallery templates
320
+ * More robust extension loading
321
+ * More robust upgrades to FooBox PRO
322
+ * Improved copy-to-clipboard
323
+ * Added more hover effects
324
+ * Support for FooVideo
325
+
326
+ ### 1.2.5 ###
327
+ * Fix for extensions being empty
328
+ * Added support for Multi-site
329
+ * Added esc_url to all places where url is rendered
330
+ * Updated to latest Justified Gallery v3.5.4
331
+
332
+ ### 1.2.4 ###
333
+ * Many album template updates, enhancements and fixes
334
+ * Many gallery template tweaks and fixes
335
+ * Sort order settings for galleries and albums
336
+ * Added new Single Thumbnail Gallery template
337
+
338
+ ### 1.2.1 ###
339
+ * Added setting to choose default gallery to copy settings from
340
+ * Fixed bug #45 - gallery fields not showing onload
341
+ * replaced minicolors with spectrum colorpicker
342
+ * Allow gallery fields to have a suffix
343
+ * Added function to render galleries "foogallery_render_gallery( $gallery_id )"
344
+
345
+ ### 1.2.0 ###
346
+ * Added albums extension
347
+ * Added custom CSS metaboxes
348
+ * Updated Nextgen importer
349
+ * Fixed many bugs
350
+
351
+ ### 1.1.8.2 ###
352
+ * Fixed "edit gallery" CSS with WP 4.0
353
+
354
+ ### 1.1.8.1 ###
355
+ * Fixed "insert gallery" CSS with WP 4.0
356
+
357
+ ### 1.1.8 ###
358
+ * Added 2 new gallery templates
359
+ * Added 10+ actions and filters for more customization
360
+ * Countless bug fixes and enhancements
361
+
362
+ ### 1.1.7 ###
363
* first version!
README.txt CHANGED
@@ -1,374 +1,386 @@
1
- === FooGallery - Image Gallery WordPress Plugin ===
2
- Contributors: bradvin, steveush, 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.9
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.4.1!**
20
-
21
- There have been major updates to the gallery templates in v1.4.1. 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.4.8 =
151
-
152
- * New : added custom ready event setting for overcoming 3rd party jQuery exceptions
153
- * New : added crop thumbnail option to ‘Single Thumbnail’ and ‘Image Viewer’ templates
154
- * Update to latest client side JS
155
-
156
- = 1.4.7 =
157
-
158
- * Fix : conflicts with WP Rocket CDN features
159
- * Fix : conflicts with themes or plugins deferring script loading
160
- * New : Auto-loading of default templates
161
- * Update to latest client side JS
162
-
163
- = 1.4.6 =
164
-
165
- * Fix : conflicts with other scripts or plugins using data-src attributes
166
- * Fix : script moved back to use jQuery ready event, to avoid some conflicts
167
- * New : Global setting to disable lazy loading for all galleries
168
- * New : FooGallery Widget!
169
- * New : Admin notice for Autoptomize users to delete cache on updates
170
- * Update to latest client side JS
171
-
172
- = 1.4.5 =
173
-
174
- * Fix : Lazy loading - scrolling galleries in certain scenarios were not loading thumbs
175
- * Fix : Galleries that were hidden on page load were not displaying correctly when shown
176
- * Fix : Default gallery settings were not being applied to new galleries
177
- * New : shortcode arguments applied to gallery for common fields
178
- * New : HTML caching is disabled by default now!
179
- * Updated to latest client side JS and CSS
180
-
181
- = 1.4.4 =
182
-
183
- * Fix : upgrade was calling underfined function
184
-
185
- = 1.4.3 =
186
-
187
- * Fix : Justify gallery template issues
188
- * Fix : Masonry gallery template issues
189
- * Fix : Caption description not hidden when supposed to
190
- * Fix : Complete rework of thumbnail dimension logic!
191
- * Fix : Redirection bug on activation
192
- * Fix : Added checks for galleries causing PHP warnings
193
- * Fix : Multisite warnings on activation
194
- * New : Last Row setting in Justify gallery template
195
- * New : Alignment setting in Simple Portfolio gallery template
196
- * New : Added more checks after load to ensure gallery layout is correct
197
- * New : Added lazy loading advanced setting
198
- * Updated to Freemius SDK 1.2.2.10
199
- * Updated to latest client side JS and CSS
200
-
201
- = 1.3.28 =
202
-
203
- * Complete rewrite of the built-in gallery templates
204
- * New : lazy loading
205
- * New : simple pagination
206
- * New : Live Previews when editing a gallery
207
- * 260+ updates, changes and bug fixes
208
-
209
- = 1.3.8 =
210
-
211
- * New : Built in support for FooBox, fixing a lot of issues where FooBox option is not available
212
- * Fix : More reliable extension active status on extensions listing
213
- * Fix : More obvious wording for 3rd party plugins when they are not installed
214
-
215
- = 1.3.7 =
216
-
217
- * Fix : Activation redirect bug showing "Sorry, you are not allowed to access this page."
218
-
219
- = 1.3.6 =
220
-
221
- * New : Freemius integration!
222
- * New : Added support for the Responsive Lightbox by dFactory
223
- * New : New custom class field for an attachment
224
- * New : Added more system info for better debugging when there are server issues
225
- * Fix : Visual editor FooGallery edit button
226
- * Fix : Image Viewer hover effect none now works as expected
227
- * Fix : Disable HTML caching for randomly ordered galleries
228
-
229
- = 1.2.20 =
230
-
231
- * New : Force Use Original thumb setting on gallery edit page
232
- * Fix : PHP warning from thumbnail class since 1.2.19
233
-
234
- = 1.2.19 =
235
-
236
- * New : Gallery output caching! Saves database requests improving load time
237
- * New : Gallery usage column in admin gallery listing
238
- * New : Better support for animated gifs
239
- * New : Hover icons retina support
240
- * New : Uninstall button on settings
241
- * New : Save thumb dimensions per attachment. (needed in future versions)
242
- * Fix : Extensions refactor and many issues resolved
243
- * Fix : Better retina support for all templates
244
- * Fix : Colorize / Greyscale CSS filters
245
- * Fix : Even better wpthumb compatibility
246
-
247
- = 1.2.18 =
248
-
249
- * Fix : Handle no settings in retina metabox
250
-
251
- = 1.2.17 =
252
-
253
- * New : Retina support - metabox per gallery and default settings
254
- * New : Attachment datasources - backend changes for how images are used in a gallery. (This will allow for new external sources in the future)
255
- * New : Caption color settings in Simple portfolio gallery template
256
- * New : Updated to latest Justified Gallery
257
- * Fix : Better wpthumb compatibility
258
-
259
- = 1.2.16 =
260
-
261
- * Fix : Yoast SEO Sitemaps fatal error with deleted galleries
262
- * Fix : Updating pages with deleted galleries throws php warnings
263
-
264
- = 1.2.15 =
265
-
266
- * Fix : Album admin CSS issues in WP 4.6
267
- * Fix : Masonry layout issues in WP 4.6
268
- * Fix : Media attachment fields not updating
269
- * Fix : Better support for IE10
270
- * New : Thumbnail generation test admin notice and settings
271
-
272
- = 1.2.13 =
273
-
274
- * Fix : Shortcode replacing content in visual editor
275
- * Fix : Gallery hover effect of None being ignored
276
- * New : ImageViewer language settings for 'Prev', 'Next' & 'of'
277
- * New : Setting to use original thumbnails if available
278
-
279
- = 1.2.12 =
280
-
281
- * Fix : Simple Portfolio missing captions fix
282
-
283
- = 1.2.11 =
284
-
285
- * Fix : Simple Portfolio undefined function fix
286
-
287
- = 1.2.10 =
288
-
289
- * New : support for multiple admin JS and CSS assets for gallery templates
290
- * New : Added setting to choose Caption Description source
291
- * New : Crop position can be chosen for attachments
292
- * New : Albums gallery details modal for setting a gallery URL
293
- * New : Better shortcode preview in editor
294
- * New : Editor button now supported if multiple editors exist
295
- * Fix : Better No-Link support for gallery templates
296
- * Fix : Compatible with Unyson plugin
297
- * Fix : Compatible with Advanced Custom Fields
298
- * Fix : Simple Portfolio fixes and tweaks
299
- * Fix : ImageViewer fixes and better browser compatibility
300
- * Fix : Changed assets enqueue version to rather use extension version
301
- * Fix : Album URL fix for permalinks with no trailing slashes
302
-
303
- = 1.2.9 =
304
- * New : Added Image Viewer gallery template
305
- * New : Caption support for default template
306
- * New : Yoast SEO gallery image support!
307
- * New : Responsive options for Masonry gallery
308
- * New : change gallery URL slug for albums
309
- * New : setting to turn off loading animation in default gallery
310
- * New : French translation
311
- * Fix : Support for WP 4.4
312
- * Fix : All templates - moved all jQuery ready events to vanilla JS
313
- * Fix : Many gallery template tweaks
314
- * Fix : allow no default to be chosen in settings
315
-
316
- = 1.2.8 =
317
- * Works now with Polylang translation plugin
318
- * CSS Updates & enhancements to all gallery templates
319
- * Password protected galleries now work as expected
320
- * Ability to hide WYSIWYG editor button
321
- * Updated WPThumb
322
- * Multiple bug fixes and improvements
323
-
324
- = 1.2.7 =
325
- * Bug fixes for 1.2.6 release
326
- * Added 2 new settings to Justified Gallery template (maxRowHeight + Caption Source)
327
-
328
- = 1.2.6 =
329
- * CSS load optimizations
330
- * Updates and tweaks on all built-in gallery templates
331
- * More robust extension loading
332
- * More robust upgrades to FooBox PRO
333
- * Improved copy-to-clipboard
334
- * Added more hover effects
335
- * Support for FooVideo
336
-
337
- = 1.2.5 =
338
- * Fix for extensions being empty
339
- * Added support for Multi-site
340
- * Added esc_url to all places where url is rendered
341
- * Updated to latest Justified Gallery v3.5.4
342
-
343
- = 1.2.4 =
344
- * Many album template updates, enhancements and fixes
345
- * Many gallery template tweaks and fixes
346
- * Sort order settings for galleries and albums
347
- * Added new Single Thumbnail Gallery template
348
-
349
- = 1.2.1 =
350
- * Added setting to choose default gallery to copy settings from
351
- * Fixed bug #45 - gallery fields not showing onload
352
- * replaced minicolors with spectrum colorpicker
353
- * Allow gallery fields to have a suffix
354
- * Added function to render galleries "foogallery_render_gallery( $gallery_id )"
355
-
356
- = 1.2.0 =
357
- * Added albums extension
358
- * Added custom CSS metaboxes
359
- * Updated Nextgen importer
360
- * Fixed many bugs
361
-
362
- = 1.1.8.2 =
363
- * Fixed "edit gallery" CSS with WP 4.0
364
-
365
- = 1.1.8.1 =
366
- * Fixed "insert gallery" CSS with WP 4.0
367
-
368
- = 1.1.8 =
369
- * Added 2 new gallery templates
370
- * Added 10+ actions and filters for more customization
371
- * Countless bug fixes and enhancements
372
-
373
- = 1.1.7 =
374
* first version!
1
+ === FooGallery - Image Gallery WordPress Plugin ===
2
+ Contributors: bradvin, steveush, 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.9.1
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.4.1!**
20
+
21
+ There have been major updates to the gallery templates in v1.4.1. If you have updated, please test your galleries.
22
+
23
+ **PHP 7 Compatible**
24
+
25
+ FooGallery has been tried and tested on servers running PHP 7.
26
+
27
+ **Retina Support**
28
+
29
+ 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.
30
+
31
+ **Video Support**
32
+
33
+ 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!
34
+
35
+ **Albums Built In**
36
+
37
+ 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.
38
+
39
+ **Built For Developers**
40
+
41
+ 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.
42
+
43
+ **Features**
44
+
45
+ * Lazy loading
46
+ * Simple Pagination (dots)
47
+ * Live previews in admin
48
+ * Retina thumbnail support
49
+ * Gallery Widget
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
+ * Use built-in media library to manage images
53
+ * Drag n Drop reordering of images and galleries
54
+ * Beautiful gallery templates
55
+ * Custom CSS for both galleries and albums
56
+ * Copy to clipboard shortcodes
57
+ * Visual shortcodes in rich text editor
58
+ * Gallery picker to insert shortcodes
59
+ * Page usage metabox with one-click gallery page creation
60
+ * NextGen importer tool (albums and galleries and shortcodes)
61
+ * Multisite Support
62
+ * PHP 7 compatible
63
+ * plus many, many more
64
+
65
+ **PRO Features**
66
+
67
+ * Polaroid PRO Gallery Template
68
+ * Grid PRO Gallery Template
69
+ * Advanced Pagination
70
+ * Infinite Scroll
71
+ * Multiple Loaded Effects
72
+ * Multiple hover effects presets
73
+ * More on the way!
74
+
75
+ **Gallery Demos**
76
+
77
+ * Responsive Image Gallery - [demo](http://foo.gallery/demos/responsive-image-gallery/)
78
+ * Image Viewer Gallery - [light demo](http://foo.gallery/demos/image-viewer-gallery/) - [dark demo](http://foo.gallery/demos/image-viewer-gallery-dark/)
79
+ * Masonry Gallery - [demo](http://foo.gallery/demos/masonry-image-gallery/)
80
+ * Simple Portfolio - [demo](http://foo.gallery/demos/simple-portfolio/)
81
+ * Justified Gallery - [demo](http://foo.gallery/demos/justified-gallery/)
82
+ * Single Thumbnail Gallery - [demo](http://foo.gallery/demos/single-thumbnail-gallery/)
83
+ * Mixed (Images + Videos) - [demo](http://foo.gallery/demos/mixed/)
84
+
85
+ **Album Demos**
86
+
87
+ * Responsive Album Layout - [demo](http://foo.gallery/demos/responsive-album-layout/)
88
+ * All-in-one Stack Album - [demo](http://foo.gallery/demos/all-in-one-stack-album/)
89
+
90
+ **Videos Demos**
91
+
92
+ * Vertical Video Slider - [demo](http://foo.gallery/demos/video-slider-vertical/) - [full-width demo](http://foo.gallery/demos/video-slider-vertical-full-width/)
93
+ * Horizontal Video Slider - [demo](http://foo.gallery/demos/video-slider-horizontal/) - [custom colors](http://foo.gallery/demos/video-slider-custom-theme/)
94
+
95
+ **Extensions**
96
+
97
+ * [FooVideo](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
98
+ * Albums (bundled)
99
+ * Default Gallery Templates (bundled)
100
+ * NextGen Gallery and Album Importer (bundled)
101
+ * [Custom Branding](http://fooplugins.com/plugins/foogallery-branding/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
102
+ * [FooBox PRO Lightbox](http://fooplugins.com/plugins/foobox/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
103
+ * [FooBox FREE Lightbox](http://wordpress.org/plugins/foobox-image-lightbox)
104
+ * [ZOOM Template](http://wordpress.org/plugins/foogallery-zoom-template/)
105
+ * [Use Media Menu](https://github.com/fooplugins/foogallery-media-menu)
106
+ * Build your own!!!
107
+
108
+ **Documentation**
109
+
110
+ * [FooGallery 101](http://docs.fooplugins.com/foogallery/foogallery-101/)
111
+ * [Developer 101](http://docs.fooplugins.com/foogallery/foogallery-developers-101/)
112
+ * [Actions and Filters](http://docs.fooplugins.com/foogallery/actions-filters/)
113
+
114
+ **Contribute**
115
+
116
+ 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).
117
+
118
+ == Installation ==
119
+
120
+ 1. Upload `foogallery` folder to the `/wp-content/plugins/` directory
121
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
122
+ 3. You will be redirected to the FooGallery Help page to get your started
123
+
124
+ == Frequently Asked Questions ==
125
+
126
+ = Why are my thumbnails so blurry? =
127
+
128
+ 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.
129
+
130
+ = Can I add videos to my galleries? =
131
+
132
+ Yes, you need to use the [FooVideo premium extension](http://fooplugins.com/plugins/foovideo/?utm_source=foogalleryplugin&utm_medium=foogallerylink&utm_campaign=foogallery_wprepo)
133
+
134
+ = How do I get albums working? =
135
+
136
+ 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.
137
+
138
+ = Can I build an extension? =
139
+
140
+ Hell, yes! Check out our [developer page](http://foo.gallery/developers/)
141
+
142
+ == Screenshots ==
143
+
144
+ 1. Gallery Edit Page
145
+ 2. Visual Shortcodes
146
+ 3. Gallery Picker
147
+ 4. Frontend example with default template
148
+ 5. Album Edit Page
149
+
150
+ == Upgrade Notice ==
151
+
152
+ Update now to support FooVideo and many other improvements!
153
+
154
+ == Changelog ==
155
+
156
+ = 1.4.12 =
157
+ * New : NextGen importer now includes shortcode replacement
158
+ * New : Masonry gallery supports captions below thumbnails
159
+ * New : Performance improvements for very large galleries (1000+ images)
160
+ * Fix : Bugs fixes for paging, FooBox and more
161
+ * Update to latest client side JS 1.0.18
162
+
163
+ = 1.4.8 =
164
+ * New : added custom ready event setting for overcoming 3rd party jQuery exceptions
165
+ * New : added crop thumbnail option to 'Single Thumbnail' and 'Image Viewer' templates
166
+ * Update to latest client side JS
167
+
168
+ = 1.4.7 =
169
+
170
+ * Fix : conflicts with WP Rocket CDN features
171
+ * Fix : conflicts with themes or plugins deferring script loading
172
+ * New : Auto-loading of default templates
173
+ * Update to latest client side JS
174
+
175
+ = 1.4.6 =
176
+
177
+ * Fix : conflicts with other scripts or plugins using data-src attributes
178
+ * Fix : script moved back to use jQuery ready event, to avoid some conflicts
179
+ * New : Global setting to disable lazy loading for all galleries
180
+ * New : FooGallery Widget!
181
+ * New : Admin notice for Autoptomize users to delete cache on updates
182
+ * Update to latest client side JS
183
+
184
+ = 1.4.5 =
185
+
186
+ * Fix : Lazy loading - scrolling galleries in certain scenarios were not loading thumbs
187
+ * Fix : Galleries that were hidden on page load were not displaying correctly when shown
188
+ * Fix : Default gallery settings were not being applied to new galleries
189
+ * New : shortcode arguments applied to gallery for common fields
190
+ * New : HTML caching is disabled by default now!
191
+ * Updated to latest client side JS and CSS
192
+
193
+ = 1.4.4 =
194
+
195
+ * Fix : upgrade was calling underfined function
196
+
197
+ = 1.4.3 =
198
+
199
+ * Fix : Justify gallery template issues
200
+ * Fix : Masonry gallery template issues
201
+ * Fix : Caption description not hidden when supposed to
202
+ * Fix : Complete rework of thumbnail dimension logic!
203
+ * Fix : Redirection bug on activation
204
+ * Fix : Added checks for galleries causing PHP warnings
205
+ * Fix : Multisite warnings on activation
206
+ * New : Last Row setting in Justify gallery template
207
+ * New : Alignment setting in Simple Portfolio gallery template
208
+ * New : Added more checks after load to ensure gallery layout is correct
209
+ * New : Added lazy loading advanced setting
210
+ * Updated to Freemius SDK 1.2.2.10
211
+ * Updated to latest client side JS and CSS
212
+
213
+ = 1.3.28 =
214
+
215
+ * Complete rewrite of the built-in gallery templates
216
+ * New : lazy loading
217
+ * New : simple pagination
218
+ * New : Live Previews when editing a gallery
219
+ * 260+ updates, changes and bug fixes
220
+
221
+ = 1.3.8 =
222
+
223
+ * New : Built in support for FooBox, fixing a lot of issues where FooBox option is not available
224
+ * Fix : More reliable extension active status on extensions listing
225
+ * Fix : More obvious wording for 3rd party plugins when they are not installed
226
+
227
+ = 1.3.7 =
228
+
229
+ * Fix : Activation redirect bug showing "Sorry, you are not allowed to access this page."
230
+
231
+ = 1.3.6 =
232
+
233
+ * New : Freemius integration!
234
+ * New : Added support for the Responsive Lightbox by dFactory
235
+ * New : New custom class field for an attachment
236
+ * New : Added more system info for better debugging when there are server issues
237
+ * Fix : Visual editor FooGallery edit button
238
+ * Fix : Image Viewer hover effect none now works as expected
239
+ * Fix : Disable HTML caching for randomly ordered galleries
240
+
241
+ = 1.2.20 =
242
+
243
+ * New : Force Use Original thumb setting on gallery edit page
244
+ * Fix : PHP warning from thumbnail class since 1.2.19
245
+
246
+ = 1.2.19 =
247
+
248
+ * New : Gallery output caching! Saves database requests improving load time
249
+ * New : Gallery usage column in admin gallery listing
250
+ * New : Better support for animated gifs
251
+ * New : Hover icons retina support
252
+ * New : Uninstall button on settings
253
+ * New : Save thumb dimensions per attachment. (needed in future versions)
254
+ * Fix : Extensions refactor and many issues resolved
255
+ * Fix : Better retina support for all templates
256
+ * Fix : Colorize / Greyscale CSS filters
257
+ * Fix : Even better wpthumb compatibility
258
+
259
+ = 1.2.18 =
260
+
261
+ * Fix : Handle no settings in retina metabox
262
+
263
+ = 1.2.17 =
264
+
265
+ * New : Retina support - metabox per gallery and default settings
266
+ * New : Attachment datasources - backend changes for how images are used in a gallery. (This will allow for new external sources in the future)
267
+ * New : Caption color settings in Simple portfolio gallery template
268
+ * New : Updated to latest Justified Gallery
269
+ * Fix : Better wpthumb compatibility
270
+
271
+ = 1.2.16 =
272
+
273
+ * Fix : Yoast SEO Sitemaps fatal error with deleted galleries
274
+ * Fix : Updating pages with deleted galleries throws php warnings
275
+
276
+ = 1.2.15 =
277
+
278
+ * Fix : Album admin CSS issues in WP 4.6
279
+ * Fix : Masonry layout issues in WP 4.6
280
+ * Fix : Media attachment fields not updating
281
+ * Fix : Better support for IE10
282
+ * New : Thumbnail generation test admin notice and settings
283
+
284
+ = 1.2.13 =
285
+
286
+ * Fix : Shortcode replacing content in visual editor
287
+ * Fix : Gallery hover effect of None being ignored
288
+ * New : ImageViewer language settings for 'Prev', 'Next' & 'of'
289
+ * New : Setting to use original thumbnails if available
290
+
291
+ = 1.2.12 =
292
+
293
+ * Fix : Simple Portfolio missing captions fix
294
+
295
+ = 1.2.11 =
296
+
297
+ * Fix : Simple Portfolio undefined function fix
298
+
299
+ = 1.2.10 =
300
+
301
+ * New : support for multiple admin JS and CSS assets for gallery templates
302
+ * New : Added setting to choose Caption Description source
303
+