AI助手支持GPT4.0
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!
有你想要的! p>
Why should you use this slider?
为什么要使用此滑块?
I’ll quote the bxSlider’s website:
我将引用bxSlider的网站: p>
ul>
Easy Digital Downloads has been translated into the following languages:
轻松数字下载已被翻译成以下语言: p>
English (and British English)
英语(和英式英语)
German
德语
Spanish
西班牙语 p>
Would you like to help translate the plugin into more languages?
您想帮助将插件翻译成更多语言吗?
Join our WP-Translations加入我们的WP-翻译Community.社区。 p>
加入我们的WP-翻译Community.
Community
社区
You can use the default WordPress [gallery] shortcode or use the additional [bxgallery] shortcode to create awesome
[gallery]
[bxgallery]
您可以使用默认的WordPress [gallery] code>简码,也可以使用其他 [bxgallery] code>简码来创建超棒的dynamic galleries.动态画廊。These shortcodes take the following parameters:这些短代码采用以下参数: p>ids [a comma-separated list of image IDs]: This is usually inserted for you when you create the gallery from the ID strong> [图像ID的逗号分隔列表] em>:通常是在您从创建图库时为您插入的media box.媒体盒。If you omit this parameter, all the images you have uploaded along with the post will be included in the如果您忽略此参数,则您随帖子上传的所有图像都将包含在中gallery.画廊。 li>exclude_featured [1 or 0]: if set to 1 and you did not specify specific ids as above, the post featured image exclude_featured strong> [1或0] em>:如果设置为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.页。 li>hide_carousel [1 or 0]: if set to 1, the carousel with thumbnails will not be shown. hide_carousel strong> [1或0] em>:如果设置为1,则不会显示带有缩略图的轮播。If you omit this如果您省略此parameter, it will default to the value set in the plugin settings page.参数,它将默认为在插件设置页面中设置的值。 li>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li>shuffle [1 or 0]: if set to 1, the images will be shown in random order 随机播放 strong>: [1或0] em>:如果设置为1,则图像将以随机顺序显示 li> ul>[slider] and [bxslider] shortcodes [slider]和[bxslider]简码 h4>You can also build your own custom sliders, with any content you’d like in them.您还可以构建自己的自定义滑块,其中包含您想要的任何内容。 p>Here is an example: 这里是一个示例: em> p>[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][/滑块] code> pre>The shortcode accepts the following parameters:简码接受以下参数: p>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li> ul>Template functions模板功能 h4>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 code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
[gallery] code>简码,也可以使用其他 [bxgallery] code>简码来创建超棒的dynamic galleries.动态画廊。These shortcodes take the following parameters:这些短代码采用以下参数: p>ids [a comma-separated list of image IDs]: This is usually inserted for you when you create the gallery from the ID strong> [图像ID的逗号分隔列表] em>:通常是在您从创建图库时为您插入的media box.媒体盒。If you omit this parameter, all the images you have uploaded along with the post will be included in the如果您忽略此参数,则您随帖子上传的所有图像都将包含在中gallery.画廊。 li>exclude_featured [1 or 0]: if set to 1 and you did not specify specific ids as above, the post featured image exclude_featured strong> [1或0] em>:如果设置为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.页。 li>hide_carousel [1 or 0]: if set to 1, the carousel with thumbnails will not be shown. hide_carousel strong> [1或0] em>:如果设置为1,则不会显示带有缩略图的轮播。If you omit this如果您省略此parameter, it will default to the value set in the plugin settings page.参数,它将默认为在插件设置页面中设置的值。 li>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li>shuffle [1 or 0]: if set to 1, the images will be shown in random order 随机播放 strong>: [1或0] em>:如果设置为1,则图像将以随机顺序显示 li> ul>[slider] and [bxslider] shortcodes [slider]和[bxslider]简码 h4>You can also build your own custom sliders, with any content you’d like in them.您还可以构建自己的自定义滑块,其中包含您想要的任何内容。 p>Here is an example: 这里是一个示例: em> p>[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][/滑块] code> pre>The shortcode accepts the following parameters:简码接受以下参数: p>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li> ul>Template functions模板功能 h4>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 code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
[bxgallery] code>简码来创建超棒的dynamic galleries.动态画廊。These shortcodes take the following parameters:这些短代码采用以下参数: p>ids [a comma-separated list of image IDs]: This is usually inserted for you when you create the gallery from the ID strong> [图像ID的逗号分隔列表] em>:通常是在您从创建图库时为您插入的media box.媒体盒。If you omit this parameter, all the images you have uploaded along with the post will be included in the如果您忽略此参数,则您随帖子上传的所有图像都将包含在中gallery.画廊。 li>exclude_featured [1 or 0]: if set to 1 and you did not specify specific ids as above, the post featured image exclude_featured strong> [1或0] em>:如果设置为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.页。 li>hide_carousel [1 or 0]: if set to 1, the carousel with thumbnails will not be shown. hide_carousel strong> [1或0] em>:如果设置为1,则不会显示带有缩略图的轮播。If you omit this如果您省略此parameter, it will default to the value set in the plugin settings page.参数,它将默认为在插件设置页面中设置的值。 li>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li>shuffle [1 or 0]: if set to 1, the images will be shown in random order 随机播放 strong>: [1或0] em>:如果设置为1,则图像将以随机顺序显示 li> ul>[slider] and [bxslider] shortcodes [slider]和[bxslider]简码 h4>You can also build your own custom sliders, with any content you’d like in them.您还可以构建自己的自定义滑块,其中包含您想要的任何内容。 p>Here is an example: 这里是一个示例: em> p>[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][/滑块] code> pre>The shortcode accepts the following parameters:简码接受以下参数: p>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li> ul>Template functions模板功能 h4>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 code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
dynamic galleries.
动态画廊。
These shortcodes take the following parameters:
这些短代码采用以下参数: p>
media box.
媒体盒。
If you omit this parameter, all the images you have uploaded along with the post will be included in the
如果您忽略此参数,则您随帖子上传的所有图像都将包含在中
gallery.
画廊。
li>
will be excluded from the gallery.
将从画廊中排除。
If you omit this parameter, it will default to the value set in the plugin settings
如果忽略此参数,它将默认为插件设置中设置的值
page.
页。
If you omit this
如果您省略此
parameter, it will default to the value set in the plugin settings page.
参数,它将默认为在插件设置页面中设置的值。
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,” li>
of the current slide
当前幻灯片的 li>
You can also build your own custom sliders, with any content you’d like in them.
您还可以构建自己的自定义滑块,其中包含您想要的任何内容。 p>
Here is an example:
这里是一个示例: em> p>[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][/滑块] code> pre>The shortcode accepts the following parameters:简码接受以下参数: p>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li> ul>Template functions模板功能 h4>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 code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
[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][/滑块] code> pre>The shortcode accepts the following parameters:简码接受以下参数: p>duration integer: the duration of slides in milliseconds 持续时间 strong> 整数 em>:幻灯片的持续时间(以毫秒为单位) li>speed integer: the speed of transitions in milliseconds 速度 strong> 整数 em>:转换速度(以毫秒为单位) li>extra_options comma-separated list of javascript options to be passed to bxSlider directly: this allows to extra_options strong> 以逗号分隔的直接传递给bxSlider的javascript选项列表 em>:这允许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,” li>transition ‘fade’, ‘horizontal’ or ‘vertical’: the type of transition between slides 过渡 strong> “淡入淡出”,“水平”或“垂直” em>:幻灯片之间的过渡类型 li>adaptive_height [1 or 0]: if set to 1, the height of the slider/gallery will automatically adjust to the content adaptive_height strong> [1或0] em>:如果设置为1,则滑块/图库的高度将自动调整为内容of the current slide当前幻灯片的 li>auto_start [1 or 0]: if set to 1, the slideshow will automatically start after the page has loaded. 自动启动 strong>: [1或0] em>:如果设置为1,则幻灯片将在页面加载后自动开始。 li> ul>Template functions模板功能 h4>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 code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
[滑块] 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][/滑块]
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.
上面的短代码使此文本成为第二个滑块。
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]
[/滑块]
code> pre>
The shortcode accepts the following parameters:
简码接受以下参数: p>
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
类 BXSG_ThemeUtils code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
BXSG_ThemeUtils code>。To be safe, in case the plugin is not active, you should check that the class exists为了安全起见,如果插件未激活,则应检查该类是否存在before calling the functions:在调用函数之前: p> <?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
To be safe, in case the plugin is not active, you should check that the class exists
为了安全起见,如果插件未激活,则应检查该类是否存在
before calling the functions:
在调用函数之前: p>
<?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?> code> pre>1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
<?php if ( class_exists( 'BXSG_ThemeUtils' ) ) { 如果(class_exists('BXSG_ThemeUtils')){ // Do something with the BXSG_ThemeUtils class //使用BXSG_ThemeUtils类进行操作 }}?>?>
if ( class_exists( 'BXSG_ThemeUtils' ) ) {
如果(class_exists('BXSG_ThemeUtils')){
// Do something with the BXSG_ThemeUtils class
//使用BXSG_ThemeUtils类进行操作
}
?>
?>
1. 1。Post gallery帖子库 em> p> <?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
1。Post gallery
Post gallery
帖子库 em> p>
<?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?> code> pre>Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
<?php BXSG_ThemeUtils :: the_post_gallery(array( 'exclude_featured' => 1 'exclude_featured'=> 1 ) );)); ?>?>
'exclude_featured' => 1
'exclude_featured'=> 1
) );
));
Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p> blockquote>
Hint: you can pass the shortcode parameters as an array to customize the output提示:您可以将shortcode参数作为数组传递以自定义输出 p>
Hint: you can pass the shortcode parameters as an array to customize the output
提示:您可以将shortcode参数作为数组传递以自定义输出 p>
blockquote>
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.
就像其他任何简单的插件一样。 p>
原文出处:http://www.sanshu.cn/a/6045.html
群主管理都是支付大佬