-
Notifications
You must be signed in to change notification settings - Fork 801
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
Slideshows: If gallery has single image, slideshow is not displayed #20
Comments
Can we disable slideshows as an option unless they've selected two or more images? Or is it a shortcode and not done through the media modal? |
A slideshow can be created both through the shortcode or through the media modal; because of the shortcode, I think we'll need to prettify the single-image "gallery" output. |
Or just use the We only support current and current - 1 for core, so it only being introduced in 3.6 isn't an issue. |
I get conceptually what you mean, but coding it is a bit beyond me. I approve of your idea, however! One question: what would the result of "let internals take over" be? Displaying a single image as if it were an inserted image, without any of the slodeshow chrome (or missing chrome, as it were)? I'd be fine with that. |
@georgestephanis did you have more ideas for @richardmtl ? |
This is the line in question: https://github.com/Automattic/jetpack/blame/master/modules/shortcodes/slideshow.php#L139 |
I've been looking at this. It turns out that removing that special check causes problems because the slideshow JavaScript is broken with < 2 images. There is also a related bug in the slideshow widget code. |
@lezama, the related bug is that the widget has no special check, so with zero images it just displays a perpetual loading sign. I'll add a commit to your branch that fixes that. |
@cathyjf perfect, thanks! |
Can this be merged? If so, delay it for 3.1 -- since we're in beta now. |
I tested this a while ago and it's still a bit buggy, but it's not worse than the current version. |
Looks to be working fine in my userland tests. Lets merge :) |
Yay! |
Derp, mis-read. Merging. |
Wait, I can't read right now. Ignore me, my brain's fried. |
Closed in favor of #1046 |
Fixes #20 When installing the plugin via the zip file generated from GitHub, the directory name is jetpack-beta-master. We should use that naming convention in the plugin as well.
Travis should now send Slack notifications every time a build fails
Adjusts the 1&1 workaround to be more specific to the hosting platform to avoid false positives with other providers. Fixes #19
If you create a slideshow with a single image, the image appears but without the regular slideshow chrome, so it looks small and abandonded
If you change the gallery type to Squares or Circles, the resulting single image gallery shows up much larger and styled and looks better, than a single image slideshow.
The text was updated successfully, but these errors were encountered: