Skip to content

Commit

Permalink
Merge pull request #1695 from INN/1664-navis-post-1675
Browse files Browse the repository at this point in the history
Navis Slideshow expand-on-click styles, again.
  • Loading branch information
benlk authored Apr 25, 2019
2 parents 395412d + 8e70ad1 commit c41e28e
Show file tree
Hide file tree
Showing 15 changed files with 173 additions and 42 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
though this project doesn't succeed in adhering to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Largo 0.6.3](https://github.com/INN/largo/compare/v0.6.2...v0.6.3)

### Fixes and minor improvements

- Fixes several issues with magnification behavior of images. [Pull request #1695](https://github.com/INN/largo/pull/1695) for [issue #1664](https://github.com/INN/largo/issues/1664)

## [Largo 0.6.2](https://github.com/INN/largo/compare/v0.6.1...v0.6.2)

This release brings improved compatibility with the WordPress Block Editor. The CSS class names `type-pull-quote`, `type-aside`, `alignleft`, `alignright`, `aligncenter` and `half` provided by Largo's "Module Wrapper" function in the Classic Editor are now supported on blocks via the "Additional CSS Classes" control, enabling improved pull quote display.
Expand Down
4 changes: 2 additions & 2 deletions css/gutenberg.css

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

2 changes: 1 addition & 1 deletion css/gutenberg.min.css

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

14 changes: 11 additions & 3 deletions css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/style.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# built documents.
#
# The short X.Y version.
version = '0.6.2'
version = '0.6.3-pre'
# The full version, including alpha/beta/rc tags.
release = version

Expand Down
40 changes: 31 additions & 9 deletions inc/enqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,39 @@ function largo_enqueue_js() {
* @since 0.5.5.3
*/
function largo_gallery_enqueue() {
$slick_css = get_template_directory_uri() . '/lib/navis-slideshows/vendor/slick/slick.css';
wp_enqueue_style( 'navis-slick', $slick_css, array(), '1.0' );
$slick_css = '/lib/navis-slideshows/vendor/slick/slick.css';
wp_enqueue_style(
'navis-slick',
get_template_directory_uri() . $slick_css,
array(),
filemtime( get_template_directory() . $slick_css )
);

$slides_src = get_template_directory_uri() . '/lib/navis-slideshows/vendor/slick/slick.min.js';
wp_enqueue_script( 'jquery-slick', $slides_src, array( 'jquery' ), '3.0', true );
$slides_src = '/lib/navis-slideshows/vendor/slick/slick.min.js';
wp_enqueue_script(
'jquery-slick',
get_template_directory_uri() . $slides_src,
array( 'jquery' ),
filemtime( get_template_directory() . $slides_src ),
true
);

$slides_css = get_template_directory_uri() . '/lib/navis-slideshows/css/slides.css';
wp_enqueue_style( 'navis-slides', $slides_css, array(), '1.0' );
$slides_css = '/lib/navis-slideshows/css/slides.css';
wp_enqueue_style(
'navis-slides',
get_template_directory_uri() . $slides_css,
array(),
filemtime( get_template_directory() . $slides_css )
);

$show_src = get_template_directory_uri() . '/lib/navis-slideshows/js/navis-slideshows.js';
wp_enqueue_script( 'navis-slideshows', $show_src, array( 'jquery-slick' ), '0.11', true );
$show_src = '/lib/navis-slideshows/js/navis-slideshows.js';
wp_enqueue_script(
'navis-slideshows',
get_template_directory_uri() . $show_src,
array( 'jquery-slick' ),
filemtime( get_template_directory() . $show_src ),
true
);
}
add_action( 'wp_enqueue_scripts', 'largo_gallery_enqueue' );
}
Expand Down Expand Up @@ -289,7 +311,7 @@ function_exists( 'register_block_type' )
'largo-stylesheet-gutenberg',
get_template_directory_uri() . '/css/gutenberg' . $suffix . '.css',
array(),
$version
filemtime( get_template_directory() . '/css/gutenberg' . $suffix . '.css' )
);
}
}
Expand Down
Loading

0 comments on commit c41e28e

Please sign in to comment.