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 | ![]() |
Version | 1.4.12 |
Comparing to | |
See all releases |
Code changes from version 1.4.8 to 1.4.12
- Gruntfile.js +212 -212
- LICENSE.txt +338 -338
- README.md +362 -362
- README.txt +385 -373
- changelog.txt +3 -3
- css/admin-foogallery.css +461 -461
- css/admin-page-foogallery-extensions.css +296 -296
- css/admin-page-foogallery-help.css +2 -2
- css/admin-page-foogallery-settings.css +2 -2
- css/admin-tinymce.css +113 -113
- css/foogallery-foovideo-overrides.css +95 -95
- extensions/albums/admin/class-columns.php +73 -73
- extensions/albums/admin/class-metaboxes.php +576 -576
- extensions/albums/album-default.php +81 -81
- extensions/albums/album-stack.php +67 -67
- extensions/albums/class-albums-extension.php +111 -111
- extensions/albums/class-foogallery-album.php +256 -256
- extensions/albums/class-posttypes.php +108 -108
- extensions/albums/css/admin-foogallery-album.css +379 -379
- extensions/albums/css/album-default.css +102 -101
- extensions/albums/css/album-stack.css +289 -289
- extensions/albums/functions.php +360 -360
- extensions/albums/js/admin-foogallery-album.js +147 -147
- extensions/albums/js/album-stack.js +862 -862
- extensions/albums/public/class-foogallery-album-template-loader.php +184 -184
- extensions/albums/public/class-rewrite-rules.php +16 -16
- extensions/albums/public/class-shortcodes.php +48 -48
- extensions/default-templates/class-default-templates-extension.php +13 -13
- extensions/default-templates/class-default-templates.php +52 -52
- extensions/default-templates/default/class-default-gallery-template.php +219 -202
- extensions/default-templates/default/gallery-default.php +18 -22
- extensions/default-templates/default/js/admin-gallery-default.js +88 -88
- extensions/default-templates/functions.php +22 -22
- extensions/default-templates/image-viewer/class-image-viewer-gallery-template.php +297 -279
- extensions/default-templates/image-viewer/gallery-image-viewer.php +33 -42
- extensions/default-templates/image-viewer/js/admin-gallery-image-viewer.js +122 -122
- extensions/default-templates/justified/class-justified-gallery-template.php +269 -250
- extensions/default-templates/justified/gallery-justified.php +15 -21
- extensions/default-templates/masonry/class-masonry-gallery-template.php +330 -265
- extensions/default-templates/masonry/gallery-masonry.php +21 -25
- extensions/default-templates/masonry/js/admin-gallery-masonry.js +29 -29
- extensions/default-templates/shared/css/admin-foogallery.css +77 -77
- extensions/default-templates/shared/css/foogallery.css +2409 -2313
- extensions/default-templates/shared/css/foogallery.min.css +1 -1
- extensions/default-templates/shared/js/foogallery.js +7646 -7612
- extensions/default-templates/shared/js/foogallery.min.js +10 -10
- extensions/default-templates/simple-portfolio/class-simple-portfolio-gallery-template.php +310 -288
- extensions/default-templates/simple-portfolio/gallery-simple_portfolio.php +19 -26
- extensions/default-templates/thumbnail/class-thumbnail-gallery-template.php +213 -213
- extensions/default-templates/thumbnail/gallery-thumbnail.php +42 -42
- extensions/default-templates/thumbnail/js/admin-gallery-thumbnail.js +29 -29
- extensions/extensions.json.js +118 -118
- extensions/media-categories/class-media-categories-extension.php +236 -236
- extensions/nextgen-importer/class-nextgen-gallery-importer-extension.php +313 -171
- extensions/nextgen-importer/class-nextgen-helper.php +578 -578
- extensions/nextgen-importer/class-nextgen-import-progress-album.php +81 -81
- extensions/nextgen-importer/class-nextgen-import-progress.php +154 -154
- extensions/nextgen-importer/class-nextgen-pagination.php +212 -212
- extensions/nextgen-importer/view-importer.php +350 -280
- foogallery.php +55 -55
- freemius/LICENSE.txt +673 -673
- freemius/assets/css/admin/account.css +1 -1
- freemius/assets/css/admin/affiliation.css +1 -1
- freemius/assets/css/admin/common.css +2 -2
- freemius/assets/css/admin/connect.css +1 -1
- freemius/assets/css/customizer.css +1 -1
- freemius/assets/js/nojquery.ba-postmessage.js +139 -139
- freemius/assets/js/nojquery.ba-postmessage.min.js +11 -11
- freemius/assets/js/postmessage.js +134 -134
- freemius/assets/scss/_mixins.scss +269 -269
- freemius/assets/scss/admin/_themes.scss +20 -20
- freemius/assets/scss/admin/account.scss +255 -255
- freemius/assets/scss/admin/add-ons.scss +448 -448
- freemius/assets/scss/admin/affiliation.scss +96 -96
- freemius/assets/scss/customizer.scss +124 -124
- freemius/config.php +328 -328
- freemius/gulpfile.js +138 -138
- freemius/includes/class-freemius-abstract.php +596 -596
- freemius/includes/class-fs-logger.php +687 -687
- freemius/includes/class-fs-security.php +85 -85
- freemius/includes/customizer/class-fs-customizer-support-section.php +101 -101
- freemius/includes/customizer/class-fs-customizer-upsell-control.php +156 -156
- freemius/includes/debug/class-fs-debug-bar-panel.php +64 -64
- freemius/includes/debug/debug-bar-start.php +51 -51
- freemius/includes/entities/class-fs-affiliate-terms.php +127 -127
- freemius/includes/entities/class-fs-affiliate.php +83 -83
- freemius/includes/entities/class-fs-billing.php +94 -94
- freemius/includes/entities/class-fs-entity.php +148 -148
- freemius/includes/entities/class-fs-payment.php +93 -93
- freemius/includes/entities/class-fs-plugin-info.php +33 -33
- freemius/includes/entities/class-fs-plugin-license.php +224 -224
- freemius/includes/entities/class-fs-plugin-plan.php +144 -144
- freemius/includes/entities/class-fs-plugin-tag.php +23 -23
- freemius/includes/entities/class-fs-plugin.php +116 -116
- freemius/includes/entities/class-fs-pricing.php +140 -140
- freemius/includes/entities/class-fs-scope-entity.php +28 -28
- freemius/includes/entities/class-fs-site.php +147 -147
- freemius/includes/entities/class-fs-subscription.php +124 -124
- freemius/includes/entities/class-fs-user.php +61 -61
- freemius/includes/fs-core-functions.php +686 -686
- freemius/includes/fs-essential-functions.php +493 -493
- freemius/includes/l10n.php +268 -268
- freemius/includes/managers/class-fs-admin-menu-manager.php +849 -849
- freemius/includes/managers/class-fs-cache-manager.php +280 -280
- freemius/includes/managers/class-fs-key-value-storage.php +327 -327
- freemius/includes/managers/class-fs-license-manager.php +103 -103
- freemius/includes/managers/class-fs-option-manager.php +352 -352
- freemius/includes/managers/class-fs-plan-manager.php +161 -161
- freemius/includes/managers/class-fs-plugin-manager.php +219 -219
- freemius/includes/sdk/LICENSE.txt +340 -340
- freemius/includes/supplements/fs-essential-functions-1.1.7.1.php +47 -47
- freemius/languages/freemius-da_DK.po +1826 -1826
- freemius/languages/freemius-en.po +1824 -1824
- freemius/languages/freemius-he.po +1827 -1827
- freemius/languages/freemius-it_IT.po +1829 -1829
- freemius/languages/freemius-ja_JP.po +1827 -1827
- freemius/languages/freemius.pot +1821 -1821
- freemius/package.json +40 -40
- freemius/require.php +44 -44
- freemius/templates/account.php +744 -744
- freemius/templates/account/billing.php +425 -425
- freemius/templates/account/index.php +2 -2
- freemius/templates/account/payments.php +58 -58
- freemius/templates/add-ons.php +192 -192
- freemius/templates/add-trial-to-pricing.php +30 -30
- freemius/templates/admin-notice.php +46 -46
- freemius/templates/all-admin-notice.php +38 -38
- freemius/templates/auto-installation.php +244 -244
- freemius/templates/checkout-legacy.php +242 -242
- freemius/templates/checkout.php +320 -320
- freemius/templates/contact.php +123 -123
- freemius/templates/debug/api-calls.php +152 -152
- freemius/templates/debug/logger.php +65 -65
- freemius/templates/debug/plugins-themes-sync.php +68 -68
- freemius/templates/debug/scheduled-crons.php +129 -129
- freemius/templates/email.php +48 -48
- freemius/templates/firewall-issues-js.php +58 -58
- freemius/templates/forms/affiliation.php +475 -475
- freemius/templates/forms/deactivation/contact.php +20 -20
- freemius/templates/forms/deactivation/form.php +404 -404
- freemius/templates/forms/deactivation/retry-skip.php +23 -23
- freemius/templates/forms/license-activation.php +214 -214
- freemius/templates/forms/optout.php +266 -266
- freemius/templates/forms/resend-key.php +247 -247
- freemius/templates/forms/trial-start.php +179 -179
- freemius/templates/js/index.php +2 -2
- freemius/templates/js/jquery.content-change.php +46 -46
- freemius/templates/js/style-premium-theme.php +44 -44
- freemius/templates/plugin-icon.php +129 -129
- freemius/templates/plugin-info/description.php +77 -77
- freemius/templates/plugin-info/features.php +113 -113
- freemius/templates/plugin-info/screenshots.php +34 -34
- freemius/templates/powered-by.php +57 -57
- freemius/templates/pricing.php +163 -163
- freemius/templates/secure-https-header.php +37 -37
- freemius/templates/sticky-admin-notice-js.php +38 -38
- freemius/templates/tabs-capture-js.php +62 -62
- freemius/templates/tabs.php +178 -178
- includes/WPThumb/wpthumb.background-fill.php +146 -146
- includes/WPThumb/wpthumb.crop-from-position.php +85 -85
- includes/WPThumb/wpthumb.image-editor.php +46 -46
- includes/WPThumb/wpthumb.php +824 -824
- includes/WPThumb/wpthumb.shortcodes.php +49 -49
- includes/WPThumb/wpthumb.watermark.php +392 -392
- includes/admin/boilerplates/lightbox/css/lightbox-EXTSLUG.css +4 -4
- includes/admin/boilerplates/lightbox/foogallery-EXTSLUG-extension.txt +77 -77
- includes/admin/boilerplates/lightbox/foogallery-EXTSLUG-init.txt +31 -31
- includes/admin/boilerplates/lightbox/js/lightbox-EXTSLUG.js +5 -5
- includes/admin/boilerplates/template/css/gallery-EXTSLUG.css +28 -28
- includes/admin/boilerplates/template/foogallery-EXTSLUG-extension.txt +162 -162
- includes/admin/boilerplates/template/foogallery-EXTSLUG-init.txt +31 -31
- includes/admin/boilerplates/template/gallery-EXTSLUG.txt +20 -20
- includes/admin/boilerplates/template/js/admin-gallery-EXTSLUG.js +19 -19
- includes/admin/boilerplates/template/js/gallery-EXTSLUG.js +2 -2
- includes/admin/class-admin-css-load-optimizer.php +72 -72
- includes/admin/class-admin-notices.php +82 -82
- includes/admin/class-admin.php +85 -85
- includes/admin/class-attachment-fields.php +198 -198
- includes/admin/class-autoptimize-support.php +70 -70
- includes/admin/class-boilerplate-download-handler.php +88 -88
- includes/admin/class-boilerplate-zip-generator.php +140 -140
- includes/admin/class-columns.php +112 -112
- includes/admin/class-extensions.php +138 -138
- includes/admin/class-gallery-editor.php +421 -421
- includes/admin/class-gallery-metabox-fields.php +199 -199
- includes/admin/class-gallery-metabox-settings-helper.php +197 -197
- includes/admin/class-gallery-metabox-settings.php +66 -66
- includes/admin/class-gallery-metaboxes.php +630 -630
- includes/admin/class-menu.php +106 -106
- includes/admin/class-settings-image-optimization.php +43 -43
- includes/admin/class-settings.php +427 -427
- includes/admin/class-silent-installer-skin.php +17 -17
- includes/admin/view-extensions-build-your-own.php +164 -164
- includes/admin/view-extensions-popup.php +61 -61
- includes/admin/view-extensions.php +162 -162
- includes/admin/view-help.php +104 -104
- includes/admin/view-system-info.php +113 -113
- includes/class-attachment-filters.php +55 -55
- includes/class-foobox-support.php +136 -136
- includes/class-foogallery-animated-gif-support.php +38 -38
- includes/class-foogallery-attachment-custom-class.php +60 -60
- includes/class-foogallery-attachment.php +245 -245
- includes/class-foogallery-cache.php +249 -231
- includes/class-foogallery-common-fields.php +679 -679
- includes/class-foogallery-datasource-media_library.php +137 -137
- includes/class-foogallery-extensions-compatibility.php +41 -41
- includes/class-foogallery-lazyload.php +191 -191
- includes/class-foogallery-paging.php +382 -325
- includes/class-foogallery-upgrade.php +826 -826
- includes/class-foogallery-widget.php +111 -111
- includes/class-foogallery.php +477 -477
- includes/class-polylang-compatibility.php +104 -104
- includes/class-posttypes.php +109 -109
- includes/class-responsive-lightbox-dfactory-support.php +54 -54
- includes/class-retina.php +82 -82
- includes/class-thumbnail-dimensions.php +137 -137
- includes/class-thumbnails.php +148 -148
- includes/class-version-check.php +50 -50
- includes/class-wp-rocket-support.php +66 -66
- includes/class-wpthumb-enhancements.php +66 -66
- includes/constants.php +31 -31
- includes/extensions/class-extension.php +57 -57
- includes/extensions/class-extensions-api.php +823 -823
- includes/extensions/class-extensions-loader.php +46 -46
- includes/foopluginbase/README.md +4 -4
- includes/foopluginbase/bootstrapper.php +31 -31
- includes/foopluginbase/changelog.txt +20 -20
- includes/foopluginbase/classes/class-foo-friendly-dates.php +138 -138
- includes/foopluginbase/classes/class-foo-plugin-base.php +333 -333
- includes/foopluginbase/classes/class-foo-plugin-file-locator.php +170 -170
- includes/foopluginbase/classes/class-foo-plugin-metabox-sanity.php +101 -101
- includes/foopluginbase/classes/class-foo-plugin-options.php +142 -142
- includes/foopluginbase/classes/class-foo-plugin-settings.php +407 -407
- includes/foopluginbase/classes/class-foo-plugin-textdomain.php +54 -54
- includes/foopluginbase/functions/arrays.php +44 -44
- includes/foopluginbase/functions/dates.php +24 -24
- includes/foopluginbase/functions/general.php +60 -60
- includes/foopluginbase/functions/screen.php +51 -51
- includes/foopluginbase/functions/strings.php +66 -66
- includes/foopluginbase/js/admin-settings.js +110 -110
- includes/foopluginbase/tests/class-foo-friendly-dates-tests.php +194 -194
- includes/foopluginbase/views/settings.php +104 -104
- includes/functions.php +1035 -996
- includes/includes.php +85 -85
- includes/interface-foogallery-datasource.php +48 -48
- includes/public/class-admin-bar.php +49 -49
- includes/public/class-css-load-optimizer.php +153 -153
- includes/public/class-foogallery-template-loader.php +260 -251
- includes/public/class-public.php +19 -19
- includes/public/class-shortcodes.php +64 -64
- includes/public/class-yoast-seo-sitemaps.php +44 -44
- includes/render-functions.php +456 -294
- js/admin-foogallery-editor.js +101 -101
- js/admin-foogallery.js +494 -494
- js/admin-page-foogallery-extensions-modal.js +163 -163
- js/admin-page-foogallery-extensions.js +107 -107
- js/admin-page-foogallery-settings.js +268 -268
- js/admin-tinymce.js +154 -154
- js/admin-uploader.js +13 -13
- js/foogallery.admin.min.js +8 -8
- languages/foogallery-fa_IR.po +2535 -2535
- languages/foogallery-fr_FR.po +2650 -2650
- languages/foogallery.pot +2475 -2475
- lib/spectrum/spectrum.css +507 -507
- lib/spectrum/spectrum.js +2287 -2287
- package.json +35 -35
- 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: '[](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: '[](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 |
-

|
2 |
-
|
3 |
-
[](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 |
+

|
2 |
+
|
3 |
+
[](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 |
-
**
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
**
|
28 |
-
|
29 |
-
Foo Gallery now
|
30 |
-
|
31 |
-
**
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
**Built
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
**
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
*
|
46 |
-
*
|
47 |
-
*
|
48 |
-
*
|
49 |
-
*
|
50 |
-
*
|
51 |
-
*
|
52 |
-
*
|
53 |
-
*
|
54 |
-
*
|
55 |
-
*
|
56 |
-
*
|
57 |
-
*
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
*
|
62 |
-
*
|
63 |
-
*
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
*
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
*
|
72 |
-
*
|
73 |
-
*
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
*
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
*
|
82 |
-
*
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
*
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
*
|
93 |
-
*
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
* [
|
98 |
-
*
|
99 |
-
*
|
100 |
-
*
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
* [
|
105 |
-
* [
|
106 |
-
*
|
107 |
-
|
108 |
-
**
|
109 |
-
|
110 |
-
FooGallery
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
==
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
= 1.4.
|
157 |
-
|
158 |
-
*
|
159 |
-
*
|
160 |
-
*
|
161 |
-
* Update to latest client side JS
|
162 |
-
|
163 |
-
= 1.4.
|
164 |
-
|
165 |
-
*
|
166 |
-
*
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
*
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
*
|
178 |
-
*
|
179 |
-
*
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
* Fix :
|
188 |
-
* Fix :
|
189 |
-
*
|
190 |
-
*
|
191 |
-
*
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
*
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
*
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
*
|
204 |
-
*
|
205 |
-
*
|
206 |
-
* New :
|
207 |
-
*
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
*
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
*
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
* New :
|
224 |
-
*
|
225 |
-
* Fix :
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
* New :
|
237 |
-
*
|
238 |
-
*
|
239 |
-
*
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
*
|
244 |
-
* Fix :
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
*
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
* New :
|
254 |
-
*
|
255 |
-
*
|
256 |
-
*
|
257 |
-
* Fix :
|
258 |
-
|
259 |
-
= 1.2.
|
260 |
-
|
261 |
-
* Fix :
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
*
|
267 |
-
*
|
268 |
-
*
|
269 |
-
* Fix : Better
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
* Fix :
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
* Fix :
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
* New :
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
*
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
* Fix :
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
*
|
302 |
-
|
303 |
-
|
304 |
-
* New :
|
305 |
-
* New :
|
306 |
-
* New :
|
307 |
-
*
|
308 |
-
*
|
309 |
-
*
|
310 |
-
*
|
311 |
-
* Fix :
|
312 |
-
* Fix :
|
313 |
-
* Fix :
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
*
|
318 |
-
*
|
319 |
-
*
|
320 |
-
*
|
321 |
-
*
|
322 |
-
*
|
323 |
-
|
324 |
-
|
325 |
-
*
|
326 |
-
*
|
327 |
-
|
328 |
-
= 1.2.
|
329 |
-
*
|
330 |
-
* Updates
|
331 |
-
*
|
332 |
-
*
|
333 |
-
*
|
334 |
-
*
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
*
|
339 |
-
|
340 |
-
|
341 |
-
*
|
342 |
-
|
343 |
-
|
344 |
-
*
|
345 |
-
*
|
346 |
-
*
|
347 |
-
*
|
348 |
-
|
349 |
-
= 1.2.
|
350 |
-
*
|
351 |
-
*
|
352 |
-
*
|
353 |
-
*
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
*
|
358 |
-
*
|
359 |
-
*
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
* Fixed
|
364 |
-
|
365 |
-
|
366 |
-
*
|
367 |
-
|
368 |
-
= 1.
|
369 |
-
* Added
|
370 |
-
* Added
|
371 |
-
*
|
372 |
-
|
373 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|