Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navis Slideshow expand-on-click styles, again. #1695

Merged
merged 16 commits into from
Apr 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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