Global plugin update
-
Hi, you wrote 7 months ago, that you are planning to make a global plugin update. Just wanted to ask, if these plans are still in place? I would love to see a ‘spoilers inside a spoiler’ function.
-
Hi George,
Thank you for reminding me to get back to the development. I’ve already prepared beta version of a new release. In a couple of weeks I’ll be able to confirm it with the latest and previous versions of WordPress and it will be published.
Thanks, that’s great! Is it going to have a ‘spoilers inside a spoiler’ function? If yes, then will it support multispoilers (several levels of spoilers inside 1 spoiler)? Or will it have only 1 spoiler at max inside another spoiler?
Hey, finally I got a change to check everything with the new version. 2.0.0 just has released. Yes, it allows to add spoilers in spoilers as well as other Guttenberg blocks.
https://ww.wp.xz.cn/plugins/inline-spoilers/#description
Take a look at change log, because default html markup is changed.
@sergeykuzmich thanks, I updated the plugin and changed it’s styles back to normal! However, I noticed, that the spoilers open / close very fast, and not smoothly. In previous version, the spoilers worked slower, and with a smooth transition. Is there any way, how to return this effects?
And also I’ve just tried to add several spoilers with content inside 1 spoiler, but it doesn’t work properly: https://ibb.co/BVsVkVnL . I tried to experiment with closing [/spoiler] tags in several locations, but it didn’t help.
I don’t use Gutenberg, because I prefer to use a classic editor, so maybe that creates the problem? Is there any way, how to fix it? Just in case, you can look at my spoilers here: https://litfan.ru/vse-stati/
Ahh, I reproduced issue with broken animation. Styles & scripts are not loaded properly if no block on the page. I’ll be able to fix this pretty easy.
But with shortcode, unfortunately, there are limitations of WordPress & its content parsing.
But I can extend plugin a little bit to have a workaround for that. I can register one more shortcode that does the same, but since WordPress will see this as different shortcodes it could be possible to do like this, for example,
[shortcode title="Полезные ресурсы для писателей"]
[inner-shortcode title="Сайты"]
...
[/inner-shortcode]
[inner-shortcode title="Программы"]
...
[/inner-shortcode]
...
[/shortcode]This approach will allow to have one time nested shortcodes.
Ahh, I reproduced issue with broken animation. Styles & scripts are not loaded properly if no block on the page. I’ll be able to fix this pretty easy.
Thank you! I’ll test it right after update release. Please, let me know, when it will be ready.
But I can extend plugin a little bit to have a workaround for that. I can register one more shortcode that does the same, but since WordPress will see this as different shortcodes it could be possible to do like this, for example,
Yes, that would be great! I’m looking forward to it. Btw, it’s max depth will be 2 (several spoilers inside 1 spoiler)? Or it’ll be possible to go deeper with subcategories?
The update is released. Yes, you can do as much levels as you want with the new approach. Just remember, that spoilers with the same “variable” can’t be nested, so use any other value. There is no limitations on a shortcode “variable”, any letters, numbers & dashes are good.
Take a look to configuration section, this feature will require additional global variable, to enable it.
https://github.com/sergeykuzmich/inline-spoilers/releases/tag/2.1.0
I’ve just tested everything, and it seems to be working great! The only thing, that I’ve noticed, is when you close the main spoiler, then the spoilers inside are not automatically closed as well (if some of them were opened before). It’s a minor remark, but just in case, I wanted to let you know.
Спасибо большое, Сергей!
The topic ‘Global plugin update’ is closed to new replies.