[wordpress插件] Ben's Slider for Gutenberg本古登堡的滑块

wordpress 插件 文章 2020-03-11 13:30 476 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

This is a plugin that adds sliders to the Gutenberg editor!

这是一个向Gutenberg编辑器添加滑块的插件!

It introduces two new blocks:

它引入了两个新的块:

    1. Gutenberg slider container
    2. Gutenberg滑块容器

    3. Gutenberg slider block
    4. Gutenberg滑块

    Gutenberg Slider Container

    古腾堡滑块容器

    This is the wrapper for the slider.

    这是滑块的包装。

    All blocks that are direct descendents of this wrapper block will be the slides.

    属于该包装器块的直接后代的所有块都是幻灯片。

    All block types are supported.

    支持所有块类型。

    There are a couple settings for the Slider Container block:

    “滑块容器”块有几个设置:

      1. Arrows: this is to set whether or not the slider has navigation arrows.
      2. 箭头:用于设置滑块是否具有导航箭头。

      3. Arrow Content: this is to set the content for the nav arrows (seperate settings for both arrows).

      4. 箭头内容:这是用于设置导航箭头的内容(两个箭头的单独设置)。

        Doesn’t apply when arrows aren’t displayed.

      5. 不显示箭头时不适用。

      6. Dots: Whether or not the slider has navigation dots.
      7. 点:滑块是否具有导航点。

      8. Dot Color: this is the color of the dots, doesn’t apply when dots aren’t displayed.
      9. 点颜色:这是点的颜色,当不显示点时不适用。

      10. Timer: Setting a value will add a timer for the slider to auto navigtate between slides.

      11. 计时器:设置一个值将为滑块添加一个计时器,以便在幻灯片之间自动导航。

        A value of “0” means there is no timer.

      12. 值为“ 0”表示没有计时器。

      Gutenberg Slider Block

      古腾堡滑块块

      A special block that is designed to be used in the slider container.

      专门用于滑块容器的特殊块。

      This contains a media selector, which you can use to select a background for the slider.

      它包含一个媒体选择器,可用于选择滑块的背景。

      There is also a section for adding child blocks, which will be the slider content displayed over the background.

      还有一个用于添加子块的部分,它将是在背景上显示的滑块内容。

      All options for child blocks (such as text settings) are honored.

      所有用于子块的选项(例如文本设置)均得到遵守。

      So you can still set color, font size, etc for your content to create rich content.

      因此,您仍然可以为内容设置颜色,字体大小等,以创建丰富的内容。

      This block can only be added to the Slider Container block, it will not be available anywhere else.

      此块只能添加到“滑块容器”块,在其他任何地方均不可用。

下载地址
https://downloads.wordpress.org/plugin/brg-gutenberg-slider.1.2.0.zip
-EOF-

AI助手支持GPT4.0