This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
455 lines (380 loc) · 16.8 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
=== DTRT Gallery ===
Contributors: dotherightthingnz
Donate link: http://dotherightthing.co.nz
Tags: gallery, video, audio, map
Requires at least: 5.3.3
Tested up to: 5.3.3
Requires PHP: 7.2.15
Stable tag: 2.0.11
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Gallery viewer which supports images, panoramas, maps, SoundCloud and Vimeo.
== Description ==
Gallery viewer which supports images, panoramas, maps, SoundCloud and Vimeo.
== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/wpdtrt-gallery` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Use the Settings->DTRT Gallery screen to configure the plugin
== Frequently Asked Questions ==
See [WordPress Usage](README.md#wordpress-usage).
== Changelog ==
= 2.0.11 =
* [6963cf2] Don't load generic wpdtrt-scss styles in plugins (dotherightthing/wpdtrt-scss#1)
= 2.0.10 =
* [c698052] Update wpdtrt-scss to 0.1.17
* [df196d6] Reduce height of iframe embed
* [f741214] Update wpdtrt-scss to 0.1.14
* [61a8abe] Refactor section wrappers to reflect updated wpdtrt-anchorlinks markup, shorten data attributes (dotherightthing/wpdtrt-anchorlinks#24, dotherightthing/wpdtrt-scss#2)
* [bcee430] Update wpdtrt-scss to 0.1.13
= 2.0.9 =
* [5a2cbb7] Update dependencies, update wpdtrt-plugin-boilerplate from 1.7.16 to 1.7.17
* [895e3ba] Add missing variable to resolve error
* [3cc5488] Remove redundant demo_shortcode_params (dotherightthing/wpdtrt-plugin-boilerplate#192)
= 2.0.8 =
* [ee6a003] Update wpdtrt-plugin-boilerplate from 1.7.15 to 1.7.16
* [86103bd] Remove redundant classes
= 2.0.7 =
* [968a947] Docs
* [fa880c9] Update wpdtrt-npm-scripts to 0.3.30
* [1f93115] Update dependencies
* [7a4f3ec] Update wpdtrt-scss
* [4d9128b] Docs
* [4a8c9b4] Update wpdtrt-plugin-boilerplate from 1.7.14 to 1.7.15
* [34e46c4] Document scaffolding for loading project-specific JavaScript
* [a1f0841] Update wpdtrt-plugin-boilerplate from 1.7.13 to 1.7.14
* [763c88c] Update wpdtrt-plugin-boilerplate from 1.7.12 to 1.7.13
* [256aa46] Remove reference to Travis CI
* [ed194e0] Fix documented path to CSS variables
* [0c6a33f] Add placeholders for string replacements
* [ae3a585] Load boilerplate JS, as it is not compiled by the boilerplate
= 2.0.6 =
* [8fb7571] Update wpdtrt-plugin-boilerplate from 1.7.7 to 1.7.12
* [bdbc5ba] Move styles to wpdtrt-scss
* [ca8ad09] Move styles to wpdtrt-scss
* [91e90dd] Ignore cypress config
* [184cafb] Remove cypress as it will be managed by wpdtrt-npm-scripts
* [fd2d407] Update cypress config
* [0767588] Update README.md
= 2.0.5 =
* [f1bc253] Update accessible-components to version 1.0.2
* [5351e54] Fix selectors
* [b2227c5] Remove mobile specific size override from gallery heading as mobile layout now accommodates larger text better
* [e3f4a80] Update accessible-components to version 1.0.1
* [971716b] Move theme-dependent gallery styling into wpdtrt-gallery by leveraging new theme classname, refactor to mobile-first
= 2.0.4 =
* [9058e5d] Lint PHP
* [7d0c06e] Fix horizontal jump on desktop expand button on expand
* [a703da0] Fix selector
* [0f2f08f] Distinguish hover and focus states, limit keyboard hints via JS-applied class
* [d252f6f] Scroll to header rather than section when viewer is expanded/collapsed
* [5980b8b] Update accessible-components to 1.0.0
* [7f4ac16] Fix infinite navigation of tablist by adding a wrapper and moving the title and tabhint into the wrapper (fixes #131)
* [384d12f] Housekeeping
* [e435480] Move expand button next to thumbnails at mobile breakpoint (fixes #130), increase vertical space around tab thumbnails to allow for Windows 10 overflow scrollbars
* [3491c7e] Fix BEM class names (fixes #120)
* [944a64e] Remove border from header in print view (fixes dotherightthing/wpdtrt-dbth#220)
* [54b889b] Move wpdtrt-gallery's laptop styles into the theme stylesheet, as they're dependent on the theme's grid layout, make mobile styles the default (dotherightthing/wpdtrt-dbth#221)
= 2.0.3 =
* [5b303cd] Housekeeping
* [a31f9ca] Housekeeping, rremove border below heading when [data-enabled='false'] (fixes #129)
= 2.0.2 =
* [94dcf02] Lint SCSS
* [f680826] Remove extra border above soundcloud iframe
* [627eba7] Manage focus outlines in theme
* [16f23f4] Allow user to drag panel image as the panorama mouseover pan has been removed
* [717c8c1] Manage outline offset in theme
* [3362669] Don't add a tabindex to the tabpanel when it contains an iframe containing focusable content controls
* [84c05a3] Replace JS panorama panning with keyboard panning-on-focus
* [ac4ca8d] Housekeeping
* [ef748bc] Improve mobile layout
* [3eeab85] Add class to last tab
= 2.0.1 =
* [3e86952] Remove broken script from package.json
* [f5e9047] Sync gallery shortcode filter to original shortcode in media.php (fixes #126)
* [6b80fff] Include name of function in source comment
* [1c52530] Remove debugging code
* [143629f] Hide keyboard hints from mouse/touch users (fixes #127) - excludes IE11
= 2.0.0 =
* Rebuild WordPress gallery shortcode to use keyboard-accessible WAI-ARIA Tabbed Carousel pattern
* Various UI improvements
* Various accessibility fixes
* Various IE11 fixes
= 1.9.9 =
* Use CSS variables, compile CSS variables to separate file
* Update wpdtrt-npm-scripts to fix release
* Update wpdtrt-plugin-boilerplate to 1.7.5 to support CSS variables
= 1.9.8 =
* Fix IntersectionObserver gallery init fallback (for IE11)
* Test DOMNodeList length property as it's not an array that can be counted
* Document local test failures
* Set alt of gallery thumbnail to reflect its role as a functional image
* Use caption for thumbnail alt attribute if no alt was provided (fixes #99)
* Update required WP and PHP versions
* Verify that heading sibling is a gallery before processing it as one (fixes #81, https://github.com/dotherightthing/wpdtrt-dbth/issues/156)
* Update Docs
= 1.9.7 =
* Update wpdtrt-npm-scripts to fix release job
= 1.9.6 =
* Remove tag name from release zip filename
= 1.9.5 =
* Fixed Github Action for tagged release
= 1.9.0 =
* CSS: Convert selectors to BEM
* CSS: Convert colours to CSS variables
* CSS: Remove wpdtrt-dbth .stack selectors, move theme specific styles to wpdtrt-dbth
* CSS: Scroll gallery thumbnails on mobile
* CSS: Fix video iframe dimensions
* CSS: Fix panorama width
* CSS: Replace floats and inline-block with flexbox
* CSS: Add loading bg color, fix embed bg color, convert colours to hsla
* CSS: Optimise number of breakpoints
* JS: Replace unreliable Waypoint detection with Intersection Observer
* JS: Scroll into view on expand and collapse to maintain button position
* JS: Disable expand button when viewer source is panorama or embed
* Replace wpdtrt-contentsections dependency with DOMDocument
* Replace wpdtrt-gulp with wpdtrt-npm-scripts
* Update tests to use DOMDocument
* Replace Travis CI with Github Actions
= 1.8.9 =
* Update wpdtrt-plugin-boilerplate, from 1.6.19 to 1.7.0
= 1.8.8 =
* Update wpdtrt-plugin-boilerplate, from 1.6.17 to 1.6.19
= 1.8.7 =
* Accessibility fixes (SortSite):
* Inject gallery viewer image, to fix invalid markup prior to lazy loading (#62)
* Apply width, height and allowfullscreen to iframe using JavaScript (#61)
* Remove iframe border & hide overflow using CSS rather than HTML (#61)
* Add dynamic title to gallery viewer iframe, remove JS populated src (#64)
* Remove JS populated id from viewer (#60)
* Hide items accessibly
* Replace `data-viewing` with `aria-expanded`
* Boilerplate / generator migration:
* Update wpdtrt-plugin-boilerplate from 1.5.3 to 1.6.17
* Sync with generator-wpdtrt-plugin-boilerplate 0.8.12 (migration)
* Remove boilerplate code and file
* Add missing attachment fields
* Add missing icon, image, content template files
* Add fallback array if no options sent to output template
* Fix type declaration for integer
* Fix type declaration for post object
* Use correct variable types (fixes #77)
* CI:
* Tell Travis to start MySQL as this no longer happens automatically
* Move database credentials into Travis settings
* Match PHP version to version used by Sitehost container (`7.2.20`)
* Dependencies:
* Fix casing of Composer dependency
* Fix name of `extra` key in `composer.json`
* Update Composer dependencies
* Update Yarn dependencies
* Documentation:
* Migrate PHPDoc to Natural Docs
* Exclude PHPDoc sniffs
* Don't install Mono on CI on dev branch (https://github.com/dotherightthing/wpdtrt-plugin-boilerplate/issues/173)
* Linting:
* Configure ESLint, suppress ESLint error jQuery noConflict iife
* Remove unsupported CSS property
* When validating an HTML fragment via Tenon, pass the relevant option (does not resolve #56)
* Clean up `tenonAnalyzeHtml` output
* Misc:
* Fix removeAttr typo
* Fix gallery viewer selector
* Show pointer cursor over gallery expand button
* Optimise `attr` and `removeAttr` for jQuery 1.7+
* Remove redundant attributes
* Only update the viewer if a different thumbnail was selected
* SEO:
* Only track clicks when these were initiated by the user, not by the setup script
* Unit testing:
* Add Cypress, add UI tests & several Gulp unit tests
* Increase Cypress' allowed response time, to allow loading of local WordPress pages via MAMP Pro (https://github.com/dotherightthing/generator-wpdtrt-plugin-boilerplate/issues/92)
* PHPUnit - update expected image dimensions, as images are slightly narrower on live, for some reason
* PHPUnit - Fix name of thumbnail size
* Add PHPUnit XML config file for generated plugin, as only the boilerplate tests were being run
* PHPUnit - Thumbnail links now store options as data attributes rather than URL params
* PHPUnit - Update expected gallery markup
* PHPUnit - Disable test without assertions
* PHPUnit - Format fixtures, move bulky fixture out of test, rename fixtures for readability
* PHPUnit - Ignore test images
* Cypress - Reinstate failing test (see #67)
= 1.8.6 =
* Travis: Tell Travis to start MySQL as this no longer happens automatically
* Composer: Fix casing of Composer dependency
* Linting: Configure ESLint, suppress ESLint error jQuery noConflict iife
* Travis: Move database credentials into Travis settings
* Docs: Migrate PHPDoc to Natural Docs
* Composer: Fix name of `extra` key in `composer.json`
* Boilerplate: Update wpdtrt-plugin-boilerplate from 1.5.3 to 1.6.12
* Boilerplate: Sync with generator-wpdtrt-plugin-boilerplate 0.8.12 (migration)
* Composer: Fix name of `extra` key in `composer.json`
* Composer/Yarn: Update dependencies
* Travis: Match PHP version to version used by Sitehost container (`7.2.20`)
* Boilerplate migration: Remove boilerplate code and file
* Boilerplate migration: Add missing attachment fields
* Boilerplate migration: Add missing icon, image, content template files
* Fix removeAttr typo
* Fix gallery viewer selector
* Linting: Remove unsupported CSS property
* Show pointer cursor over gallery expand button
* SortSite: Inject gallery viewer image, to fix invalid markup prior to lazy loading (#62)
* SortSite: Apply width, height and allowfullscreen to iframe using JavaScript (#61)
* SortSite: Remove iframe border & hide overflow using CSS rather than HTML (#61)
* SortSite: Add dynamic title to gallery viewer iframe, remove JS populated src (#64)
* SortSite: Remove JS populated id from viewer (#60)
* GTM: Only track clicks when these were initiated by the user, not by the setup script.
* Optimise `attr` and `removeAttr` for jQuery 1.7+
* Tenon: When validating an HTML fragment, pass the relevant option (does not resolve #56)
* Cypress: Increase the allowed response time, to allow loading of local WordPress pages via MAMP Pro (https://github.com/dotherightthing/generator-wpdtrt-plugin-boilerplate/issues/92)
* Tenon: Clean up `tenonAnalyzeHtml` output
* Cypress: Add Cypress, add UI tests & several Gulp unit tests
* Accessibility: Hide items accessibly
* Remove redundant attributes
* Accessibility: Replace data-viewing with aria-expanded
* Only update the viewer if a different thumbnail was selected
* Gulp: Add fallback array if no options sent to output template
= 1.8.5 =
* Update wpdtrt-plugin-boilerplate to 1.5.4
* Fix incorrect icons on non-image thumbnails
* Refactor thumbnail URL params to data attributes, to prevent clash with Imgix URL params
* Crop image in collapsed viewer, replace background position offset with crop (via Media Cloud plugin)
* Use the default WordPress (square) thumbnail size, to remove redundant thumbnail option from Media Cloud crop modal
* Ensure that panoramas use the full viewer height
* Copy data- attributes from the thumbnail image to the surrounding link (fixes #51)
* Update dependencies
* Fix linting error
= 1.8.4 =
* Fix incorrect icons on non-image thumbnails
* Fix Soundcloud embed URL (ES6 conversion error)
= 1.8.3 =
* ES6 fixes (event.target vs this)
* Add missing JS initialisation message
= 1.8.2 =
* Update wpdtrt-plugin-boilerplate to 1.5.3
* Sync with generator-wpdtrt-plugin-boilerplate 0.8.2
= 1.8.1 =
* Update wpdtrt-contentsections dependency
* Update wpdtrt-exif dependency
= 1.8.0 =
* Update wpdtrt-plugin-boilerplate to 1.5.0
* Sync with generator-wpdtrt-plugin-boilerplate 0.8.0
= 1.7.18 =
* Update wpdtrt-plugin-boilerplate to 1.4.39
* Sync with generator-wpdtrt-plugin-boilerplate 0.7.27
= 1.7.17 =
* Update wpdtrt-plugin-boilerplate to 1.4.38
* Sync with generator-wpdtrt-plugin-boilerplate 0.7.25
= 1.7.16 =
* Update TGMPA dependency version for wpdtrt-contentsections
* Update TGMPA dependency version for wpdtrt-exif
= 1.7.15 =
* Update wpdtrt-plugin-boilerplate to 1.4.25
* Sync with generator-wpdtrt-plugin-boilerplate 0.7.20
* Added Tenon.io Proof of Concept
= 1.7.14 =
* Update wpdtrt-contentsections to 0.1.4 in TGMPA config
* Update wpdtrt-exif to 0.1.8 in TGMPA config
= 1.7.13 =
* Update wpdtrt-plugin to wpdtrt-plugin-boilerplate
* Update wpdtrt-plugin-boilerplate to 1.4.24
* Fix TGMPA dependency fields for wpdtrt-exif, specify dependencies in config
* Update lock file
* Remove redundant functionality
* Enable required functionality
* Fixes for PHPCS
* Fix plugin references in changelog
* Update dependencies
* Prefer stable versions but allow dev versions
* Update wpdtrt-contentsections to 0.1.4
= 1.7.12 =
* Update wpdtrt-contentsections dependency
= 1.7.11 =
* Update wpdtrt-plugin to 1.4.15
= 1.7.10 =
* Clean composer files
= 1.7.9 =
* Update wpdtrt-contentsections
= 1.7.8 =
* Update wpdtrt-contentsections
= 1.7.7 =
* Update wpdtrt-plugin to 1.4.14
= 1.7.6 =
* Update wpdtrt-contentsections dependency
* Fix path to autoloader when loaded as a test dependency
* Pass flag to fix path to autoloader when loading test dependency
= 1.7.5 =
* Include release number in wpdtrt-plugin namespaces
* Update wpdtrt-plugin to 1.4.6
= 1.7.4 =
* Update wpdtrt-plugin to 1.3.6
= 1.7.3 =
* Migrate image quality settings from wpdtrt
* Migrate common wpdtrt-gallery styles into wpdtrt-plugin
* Migrate Bower & NPM to Yarn
* Update Node from 6.11.2 to 8.11.1
* Add messages required by shortcode demo
* Add SCSS partials for project-specific extends and variables
* Change tag badge to release badge
* Fix default .pot file
* Update wpdtrt-plugin to 1.3.1
= 1.7.2 =
* Scale media embeds using embedresponsively
* Migrate icons from wpdtrt-dbth theme
* Fix media embed icon position
* Rename data attributes
* Document dependencies
* Use Environmental Variables in build
* Update wpdtrt-plugin
= 1.7.1 =
* Use Private Packagist
* Test shortcode
* Fix build badge
= 1.7.0 =
* Adapt plugin to use the new wpdtrt-plugin system
= 1.6.10 =
* Add tests for 1.6.9
= 1.6.9 =
* Fix custom post meta not being saved with new posts
= 1.6.8 =
* match build/config to [wpdtrt-plugin](https://github.com/dotherightthing/wpdtrt-plugin) (which this is an older standalone version of)
* add unique API key for generating releases via Travis
= 1.6.0 =
* Run PHPUnit tests from Travis
= 1.5.0 =
* Display correct icons on SoundCloud & Vimeo thumbnails
* Display media icon behind loading SoundCloud & Vimeo embeds
* Limit height of SoundCloud & Vimeo embeds
= 1.4.8 =
* Added Continuous Integration via Travis
* A compiled release zip is generated by Travis
= 1.4.1 =
* Hide thumbnail when it is the only one in a gallery
* Update media query syntax
= 1.4.0 =
* Merge in styles from wpdtrt-dbth
* Finesse number of thumbnail columns on smaller breakpoints
* Add aria-expanded to viewer expand button
= 1.3.2 =
* Fixed focus bugs caused by updated panorama scripting
= 1.3.1 =
* Reduced dimensions of thumbnail image
* Set attachment defaults
* Simplify expand state management and favour JS over CSS
* Fixed panorama caption overlap
= 1.2.0 =
* Replaced buggy Paver panorama scroll with simpler solution
= 1.1.1 =
* Improve presentation of attachment fields
= 1.0.0 =
* Released with wpdtrt-dbth
= 0.4.0 =
* Fixes to core functionality
= 0.3.0 =
* Fixes to core functionality
* Improvements to display of fields in attachment modal
= 0.2.0 =
* Fixes to core functionality
= 0.1.0 =
* Initial version
== Upgrade Notice ==
= 0.1.0 =
* Initial release