Skip to content

Commit

Permalink
Merge branch 'release-2.7.0' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
archetyped committed Jun 8, 2018
2 parents f64f3a5 + ccfa8a7 commit d784f4d
Show file tree
Hide file tree
Showing 29 changed files with 4,107 additions and 355 deletions.
319 changes: 319 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,319 @@
= 2.7.0 =

* Fix: Remove reference to deprecated `screen_icon()` function (The Icon of Finnegan Island)
* Add: Validate requirements before initialization.
* Optimize: PHP 7.2+ Compatibility
* Optimize: Internal code optimizations
* Themes
* Add: RTL Support
* Update: Load font locally

= 2.6.0 =

* Add: Activate links in native WordPress navigation menus (enable in admin settings)
* Add: Group menu links separately (enable in admin settings)
* Optimize: Fallback lightbox title text retrieval (link text)
* Fix: Undefined variable in `Utilities::get_plugin_base_file()` (The Lost Temple of Xavivars)

= 2.5.3 =

* Optimize: Entity handling in URIs for different server environments

= 2.5.2 =

* Fix: Activation when Home page set to static page (Lyra's Static Cling)
* Optimize: Prep for WordPress language packs

= 2.5.1 =

* Update: Client-side Utilities library
* Optimize: Request processing

= 2.5.0 =

* Fix: Query string removed from URI (A Stern Query)
* Optimize: Key-based asset data storage/retrieval
* Optimize: Improved cache usage when processing links
* Optimize: Refactor image URI detection

= 2.4.1 =

* Fix: Ungrouped items in empty group (Robert & The Lost Group)
* Fix: IE8 Support (S.Franzis' Legacy)
* Optimize: Widget support
* Optimize: Relative and internal URI handling
* Optimize: Link activation performance

= 2.4.0 =

* Update: WordPress version compatibility (v4.2.1)
* Optimize: Standardize code
* Optimize: Do not process excerpt content
* Optimize: Client-side libraries (Phase 1)
* Add: Set group via `slb_activate()`
* Add: Set group via `activate_links()`
* Add: `slb_is_enabled` filter

= 2.3.1 =

* Fix: WordPress version requirement
* Optimize: Field collection group parsing

= 2.3.0 =
[Full Release Notes](http://archetyped.com/lab/slb-2-3-0 "Simple Lightbox 2.3.0")

* Update: WordPress 3.9 support
* Update: Support URI, content
* Add: Enhanced grouping support
* Add: Shortcode: `[slb_group]`
* Add: Shortcode: `[slb_exclude]`
* Add: Filter: `slb_pre_process_links`
* Add: Filter: `slb_post_process_links`
* Add: Filter: `slb_process_link_attributes`
* Add: Filter: `slb_media_item_properties`
* Add: Filter: `slb_pre_exclude_content`
* Add: Filter: `slb_exclude_shortcodes`
* Add: Filter: `slb_group_shortcodes`
* Add: Template Tag: `slb_activate()` - Manually activate content
* Add: Option to enable/disable usage of WordPress-generated media title
* Add: Dev mode
* Add: Theme breakpoints
* Optimize: Remove deprecated code
* Optimize: Remove deprecated legacy support
* Optimize: Content exclusion performance
* Optimize: Content grouping performance
* Optimize: Harden code against third-party post query modifications
* Optimize: Utility code
* Optimize: Loading process
* Optimize: Client-side code
* Optimize: Client-side: Code loading
* Optimize: Client-side: Simplified dependency detection
* Optimize: Client-side: Default Theme transitions
* Optimize: Grunt: Cleanup
* Optimize: Grunt: Path abstraction
* Optimize: Grunt: Task loading
* Optimize: Grunt: Selective file compilation

= 2.2.2 =

* Optimize: Widget processing
* Optimize: Remove call-time-pass-by-references

= 2.2.1 =

* Fix: Enable/Disable lightbox on certain requests (Danny the Enabler)
* Fix: Widget links grouped with post links (Rafa's Widgetarian Adventure)
* Optimize: Client-side loading
* Optimize: Theme validation
* Optimize: Widget processing

= 2.2.0 =

* Update: WordPress 3.8 support
* Add: Add-on support
* Add: Load external data for item
* Add: Unloading process for viewer
* Add: Relative links marked as "internal"
* Add: Grunt build workflow
* Optimize: Initialization process
* Optimize: Client-side output (JavaScript, CSS)
* Optimize: Improved URI handling (variants, query strings, etc.)
* Optimize: Improved support for content types (video, etc.)
* Optimize: Improved File contents retrieval
* Optimize: Plugin metadata cleanup
* Optimize: Use absolute paths for file includes (props k3davis)

= 2.1.3 =

* Fix: PHP configuration issue on some web hosts (Tim's got (config) issues)
* Optimize: Hide overlapping elements when lightbox is displayed (e.g. Flash, etc.)

= 2.1.2 =

* Fix: Incorrect paths when WP in subdirectory (Kim's Van Repair)

= 2.1.1 =

* Fix: Automatic resizing
* Fix: Compatibility with non-standard wp-content location (On the Path of the Wijdemans)
* Optimize: jQuery dependency handling
* Optimize: Plugin initialization
* Optimize: Deferred component stylesheet loading
* Optimize: Code cleanup

= 2.1 =

* Update: Finalized Theme API
* Update: Finalized Content Handler API
* Update: Finalized Template Tag API
* Update: Administration framework
* Add: Baseline theme
* Add: Hook for extending image link matching
* Optimize: Link validation
* Optimize: Intelligent client-side loading
* Optimize: Server-side processing
* Optimize: Default theme display
* Fix: False positive link activation (What's eating Gilbert's links?)
* Fix: Gallery post format compatibility (Just Juan problem with galleries)

= 2.0 =

* Completely rewritten lightbox code
* Add: Automatically resize lightbox to fit window
* Add: APIs for third-party add-ons
* Add: Flexible theme support
* Add: Flexible content handler support
* Add: Mobile-optimized responsive themes (2)
* Optimize: PHP class autoloading
* Optimize: Improved performance and compatibility
* Optimize: Full internationalization support

= 1.6 =

* Add: Widget support
* Add: WordPress 3.3 support
* Add: Localization support
* Add: Option to group gallery links separately (supports WordPress & NextGen galleries)
* Add: Upgrade notice
* Optimize: WP 3.3 compatibility
* Optimize: Improved compatibility with URI case-sensitivity
* Optimize: Activation processing
* Optimize: Image grouping
* Optimize: Image metadata loading performance
* Optimize: File loading
* Optimize: Improved safeguards against interference by bugs in other plugins
* Optimize: Link processing performance
* Optimize: Lightbox styling isolated from site styles
* Optimize: Improved link processing performance
* Optimize: Improved image metadata support
* Optimize: Improved support for HTTP/HTTPS requests
* Fix: SLB is not defined in JS (Jezz Hands)
* Fix: Boolean case-sensitivity (78 Truths)
* Fix: YouTube embed using iFrame overlaps lightbox (Elena in Hiding)
* Fix: Issue when scanning links without valid URLs (McCloskey Iteration)
* Fix: Image activation is case-sensitive (Sensitive Tanya)
* Fix: Visible lightbox overlay edges when image larger than browser window (Chibi Overlay)
* Fix: Options availability for some users
* Fix: Inconsistent loading of image metadata
* Fix: Links not fully processed when group is set manually

= 1.5.6 =

* Add: Display image description in lightbox (with HTML support)
* Add: Support for W3 Total Cache plugin
* Add: Initial support for NextGEN galleries
* Update: **Important:** [System Requirements](http://wordpress.org/about/requirements/) aligned with WP 3.2.1
* Optimize: Improved support for small images in default template
* Optimize: Support for non-English text in user options
* Optimize: Improved IE compatibility
* Optimize: Improved data handling
* Optimize: Skin loading performance
* Optimize: Skin CSS Cleanup
* Optimize: Caption support for galleries
* Optimize: Options code cleanup (Juga Sweep)
* Fix: User-defined UI text not used (Ivan gets Even (cooler))
* Fix: Options reset after update (KRazy Donna)

= 1.5.5.1 =

* Fix: Disabled links not being disabled (Disabling Sascha)

= 1.5.5 =

* Add: Distinct link activation (will not affect other lightboxes)
* Add: Backwards compatibility with legacy lightbox links (optional)
* Add: Support for WordPress 3.2
* Add: Support for links added after page load (e.g. via AJAX, etc.)
* Add: Admin option to enable/disable attachment links
* Add: Support for image attachment links
* Update: Options management overhaul
* Update: Additional WordPress 3.2 support (Gallery)
* Update: Cache-management for enqueued files
* Update: Improved UI consistency
* Update: Improved compatibility for older versions of PHP
* Update: Internal optimizations
* Update: Improved URL handling
* Fix: Improved options migration from old versions (Hutchison Migration)
* Fix: XHTML Validation (Hajo Validation)

= 1.5.4 =

* Add: Optional Link validation
* Add: Keyboard Navigation
* Add: Option to enable/disable image caption
* Add: `rel` attribute supported again
* Add: Use `slb_off` in link's `rel` attribute to disable automatic activation for link
* Fix: HTTPS compatibility (Jürgen Protocol)
* Fix: Enabling SLB on Pages issue
* Fix: Zmanu is_single
* Fix: Image order is sometimes incorrect
* Optimize: Filter double clicks
* Optimize: Separate options to enable/disable SLB on Posts and Pages
* Optimize: Better grouping support

= 1.5.3 =

* Fix: Caption may not display under certain circumstances (Caption Erin)
* Fix: Images not grouped when "separate by post" option is activated (Logical Ross)
* Update: Lightbox will not be activated for links that already have `rel` attribute set

= 1.5.2 =

* Fix: Slideshow loops out of control (Mirage of Wallentin)
* Fix: Lightbox fails when group by posts disabled (Lange Find)
* Add: Option to use the image's URI as caption when link title not set (Under UI options)

= 1.5.1 =

* Add: WP Gallery support
* Fix: Navigation hidden when only one image
* Fix: Use user-defined UI text

= 1.5 =

* Add: Theme support
* Optimize: JavaScript cleanup and file size reductions
* Optimize: CSS cleanup

= 1.4 =

* Update: Integrated with jQuery
* Optimize: JavaScript file size 9x smaller
* Add: Close lightbox by clicking to left/right outside of image (an oft-requested feature)

= 1.3.2 =

* Add: Option to enable/disable lightbox resizing animation (thanks Maria!)

= 1.3.1 =

* Update: Utilities code (internal)

= 1.3 =

* Add: Customizable UI label text (close, next, and previous button images can be replaced in `images` directory)
* Add: Group image links by Post (separate slideshow for each post)
* Add: Reset settings link on plugin listings page
* Optimize: Organized settings page

= 1.2.1 =

* Fixed: Image title given higher precedence than Image alt (more compatible w/WP workflow)

= 1.2 =

* Added: Option to group automatically activated links
* Optimized: Lightbox caption retrieval

= 1.1 =

* Added: Enable/disable lightbox functionality by page type (Home, Pages/Posts, Archive, etc.)
* Added: Automatically activate lightbox functionality for image links
* Added: Link to settings menu on plugin listing page
* Optimized: Options menu field building
* Optimized: Loading of default values for plugin options
* Optimized: General code optimizations

= 1.0 =

* Initial release
2 changes: 1 addition & 1 deletion client/css/admin.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions client/js/dev/lib.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2321,10 +2321,15 @@ var Viewer = {

keys_control: function(ev) {
var handlers = {
27: this.close,
37: this.item_prev,
39: this.item_next
27: this.close, /* esc */
37: this.item_prev, /* left-arrow */
39: this.item_next, /* right-arrow */
};
// Swap next/prev keys on RTL pages
if ('rtl' === document.documentElement.getAttribute('dir')) {
handlers[37] = this.item_next; /* left-arrow */
handlers[39] = this.item_prev; /* right-arrow */
}
if ( ev.which in handlers ) {
handlers[ev.which].call(this);
return false;
Expand Down
3 changes: 1 addition & 2 deletions client/js/prod/lib.view.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions client/sass/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@
float: right;
}
}
}

.slb_admin_action_reset {
color: #a00;
&:hover {
color: #dc3232;
border: none;
}
}
20 changes: 11 additions & 9 deletions controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function admin_menus() {
// Add Actions
$lbls_reset = array (
'title' => __('Reset', 'simple-lightbox'),
'confirm' => __('Are you sure you want to reset settings?', 'simple-lightbox'),
'confirm' => __('Are you sure you want to reset Simple Lightbox\'s settings?', 'simple-lightbox'),
'success' => __('Settings have been reset', 'simple-lightbox'),
'failure' => __('Settings were not reset', 'simple-lightbox')
);
Expand Down Expand Up @@ -1635,16 +1635,18 @@ function has_attribute($attrs, $attr, $value = null, $internal = true) {
* Build JS object of UI strings when initializing lightbox
* @return array UI strings
*/
function build_labels() {
private function build_labels() {
$ret = array();
// Get all UI options
$prefix = 'txt_';
$opt_strings = array_filter(array_keys($this->options->get_items()), create_function('$opt', 'return ( strpos($opt, "' . $prefix . '") === 0 );'));
if ( count($opt_strings) ) {
// Build array of UI options
/* Get all UI options */
$prefix = 'txt_';
$opt_strings = array_filter( array_keys( $this->options->get_items() ), function ( $opt ) use ( $prefix ) {
return ( strpos( $opt, $prefix ) === 0 );
} );
if ( count( $opt_strings ) ) {
/* Build array of UI options */
foreach ( $opt_strings as $key ) {
$name = substr($key, strlen($prefix));
$ret[$name] = $this->options->get_value($key);
$name = substr( $key, strlen( $prefix ) );
$ret[ $name ] = $this->options->get_value( $key );
}
}
return $ret;
Expand Down
Loading

0 comments on commit d784f4d

Please sign in to comment.