[wordpress插件] bxSlider integration for WordPressWordPress的bxSlider集成

wordpress 插件 文章 2020-03-14 23:00 485 0 全屏看文

AI助手支持GPT4.0

评分
88
描述

bxSlider for WordPress integrates the great responsive content slider bxSlider jQuery plugin in

bxSlider for WordPress在
中集成了出色的响应式内容滑块 bxSlider jQuery插件

your very own WordPress site.

您自己的WordPress网站。

Galleries are turned into beautiful sliders, but you can also roll you own sliders using

画廊变成了漂亮的滑块,但是您也可以使用
滚动自己的滑块

special shortcode.

特殊的简码。

The best thing is that you are not limited to the number of sliders or galleries per page, you can

最好的是,您不仅可以限制每页的滑块或画廊的数量,还可以

have as many as you want!

有你想要的!

Why should you use this slider?

为什么要使用此滑块?

I’ll quote the bxSlider’s website:

我将引用bxSlider的网站:

    • Fully responsive – will adapt to any device
    • 反应灵敏-可以适应任何设备

    • Horizontal, vertical, and fade modes
    • 水平,垂直和淡入淡出模式

    • Slides can contain images, video, or HTML content
    • 幻灯片可以包含图像,视频或HTML内容

    • Advanced touch / swipe support built-in
    • 内置的高级触摸/滑动支持

    • Uses CSS transitions for slide animation (native hardware acceleration!)
    • 对幻灯片动画使用CSS过渡(原生硬件加速!)

    • Full callback API and public methods
    • 完整的回调API和公共方法

    • Small file size, fully themed, simple to implement
    • 文件小,主题完整,易于实现

    • Browser support: Firefox, Chrome, Safari, iOS, Android, IE7+
    • 浏览器支持:Firefox,Chrome,Safari,iOS,Android,IE7 +

    Languages

    语言

    Easy Digital Downloads has been translated into the following languages:

    轻松数字下载已被翻译成以下语言:

    English (and British English)

    英语(和英式英语)

    German

    德语

    Spanish

    西班牙语

    Would you like to help translate the plugin into more languages?

    您想帮助将插件翻译成更多语言吗?

    Join our WP-Translations

    加入我们的WP-翻译

    Community.

    社区。

    Features

    功能

      • [gallery] and [bxgallery] shortcodes
      • [画廊]和[bxgallery]简码

      • [slider] and [bxslider] shortcodes
      • [slider]和[bxslider]简码

      • Template functions
      • 模板功能

      [gallery] and [bxgallery] shortcodes

      [画廊]和[bxgallery]简码

      You can use the default WordPress [gallery] shortcode or use the additional [bxgallery] shortcode to create awesome

      您可以使用默认的WordPress [gallery] 简码,也可以使用其他 [bxgallery] 简码来创建超棒的

      dynamic galleries.

      动态画廊。

      These shortcodes take the following parameters:

      这些短代码采用以下参数:

        • ids [a comma-separated list of image IDs]: This is usually inserted for you when you create the gallery from the

        • ID [图像ID的逗号分隔列表] :通常是在您从
          创建图库时为您插入的

          media box.

          媒体盒。

          If you omit this parameter, all the images you have uploaded along with the post will be included in the

          如果您忽略此参数,则您随帖子上传的所有图像都将包含在

          gallery.

          画廊。

        • exclude_featured [1 or 0]: if set to 1 and you did not specify specific ids as above, the post featured image

        • exclude_featured [1或0] :如果设置为1并且未指定上述特定ID,则该帖子会显示特色图片

          will be excluded from the gallery.

          将从画廊中排除。

          If you omit this parameter, it will default to the value set in the plugin settings

          如果忽略此参数,它将默认为插件设置中设置的值

          page.

          页。

        • hide_carousel [1 or 0]: if set to 1, the carousel with thumbnails will not be shown.

        • hide_carousel [1或0] :如果设置为1,则不会显示带有缩略图的轮播。

          If you omit this

          如果您省略此

          parameter, it will default to the value set in the plugin settings page.

          参数,它将默认为在插件设置页面中设置的值。

        • duration integer: the duration of slides in milliseconds
        • 持续时间 整数:幻灯片的持续时间(以毫秒为单位)

        • speed integer: the speed of transitions in milliseconds
        • 速度 整数:转换速度(以毫秒为单位)

        • extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to

        • extra_options 以逗号分隔的直接传递给bxSlider的javascript选项列表:这允许

          directly specify some options for bxSlider if those options are not yet provided as settings or shortcode parameters by

          如果
          这些选项尚未作为设置或简码参数提供,则直接为bxSlider指定一些选项

          our plugin.

          我们的插件。

          For instance: [bxgallery extra_options=”pager: false, “]

        • 例如:[bxgallery extra_options =” pager:false,”

        • transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides
        • 过渡 “淡入淡出”,“水平”或“垂直” :幻灯片之间的过渡类型

        • adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content

        • adaptive_height [1或0] :如果设置为1,则滑块/图库的高度将自动调整为内容

          of the current slide

        • 当前幻灯片的

        • auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded.
        • 自动启动 [1或0] :如果设置为1,则幻灯片将在页面加载后自动开始。

        • shuffle [1 or 0]: if set to 1, the images will be shown in random order
        • 随机播放 [1或0] :如果设置为1,则图像将以随机顺序显示

        [slider] and [bxslider] shortcodes

        [slider]和[bxslider]简码

        You can also build your own custom sliders, with any content you’d like in them.

        您还可以构建自己的自定义滑块,其中包含您想要的任何内容。

        Here is an example:

        这里是一个示例:

        [slider]    

          [滑块]    

        This is my first slide.

        这是我的第一张幻灯片。

        I can contain any html you like.

        我可以包含任何您喜欢的HTML。

        [next-slide]    

        [下一张幻灯片]    

        And the shortcode above has made this text be the second slider.

        上面的短代码使此文本成为第二个滑块。

        [next-slide]    

        [下一张幻灯片]    

        And thus we are now having the third slide of this slider.

        因此,我们现在有了此滑块的第三张幻灯片。

        Below we close the initial shortcode to notify the end    

        下面我们关闭初始简码以通知结束    

        of the slider.

        滑块的。

        Simple, isn't it?

        很简单,不是吗?

        [/slider]

        [/滑块]

        The shortcode accepts the following parameters:

        简码接受以下参数:

          • duration integer: the duration of slides in milliseconds
          • 持续时间 整数:幻灯片的持续时间(以毫秒为单位)

          • speed integer: the speed of transitions in milliseconds
          • 速度 整数:转换速度(以毫秒为单位)

          • extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to

          • extra_options 以逗号分隔的直接传递给bxSlider的javascript选项列表:这允许

            directly specify some options for bxSlider if those options are not yet provided as settings or shortcode parameters by

            如果
            这些选项尚未作为设置或简码参数提供,则直接为bxSlider指定一些选项

            our plugin.

            我们的插件。

            For instance: [bxgallery extra_options=”pager: false, “]

          • 例如:[bxgallery extra_options =” pager:false,”

          • transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides
          • 过渡 “淡入淡出”,“水平”或“垂直” :幻灯片之间的过渡类型

          • adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content

          • adaptive_height [1或0] :如果设置为1,则滑块/图库的高度将自动调整为内容

            of the current slide

          • 当前幻灯片的

          • auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded.
          • 自动启动 [1或0] :如果设置为1,则幻灯片将在页面加载后自动开始。

          Template functions

          模板功能

          The plugin also provides template functions to be used in your theme files.

          该插件还提供了可在主题文件中使用的模板功能。

          Those functions are all static methods of

          这些功能都是
          的静态方法

          the class BXSG_ThemeUtils.

          BXSG_ThemeUtils

          To be safe, in case the plugin is not active, you should check that the class exists

          为了安全起见,如果插件未激活,则应检查该类是否存在

          before calling the functions:

          在调用函数之前:

            <?php    

          if ( class_exists( 'BXSG_ThemeUtils' ) ) {        

          如果(class_exists('BXSG_ThemeUtils')){        

          // Do something with the BXSG_ThemeUtils class    

          //使用BXSG_ThemeUtils类进行操作    

          }

          }

          ?>

          ?>

          1.

          1。

          Post gallery

          帖子库

            <?php BXSG_ThemeUtils :: the_post_gallery(array(            

          'exclude_featured' => 1        

          'exclude_featured'=> 1        

          ) );

          ));

          ?>

          ?>

          Hint: you can pass the shortcode parameters as an array to customize the output

          提示:您可以将shortcode参数作为数组传递以自定义输出

安装步骤

Nothing special, just upload the files, activate and you can then visit the settings page if you want.

没什么特别的,只需上传文件,激活即可,然后您可以根据需要访问设置页面。

Really, it’s

真的是

just like any other simple plugin.

就像其他任何简单的插件一样。

下载地址
https://downloads.wordpress.org/plugin/bxslider-integration.1.7.2.zip
-EOF-

AI助手支持GPT4.0