该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Mimo Carousel

描述

Creates a shortcode to display Carousels with custom loops. Use the shortcode like this: [mimo_carousel id=”the carousel id”] , you can use this plugin with Woocommerce to make a products carusel. Mimo Carousel plugin is completely compatible with Page Builder by Siteorigin plugin.

With its widget or shortcode, this plugin can be used to create a woocommerce products slider with 1,2,3,4 or more columns. with more than 1 column it has a carousel view that works perfectly to showcase your products or posts.

Set different options

Loop options

  1. -offset
  2. -Categories to show
  3. 文章数量
  4. Image size to use
  5. Custom Post Type to use, you can use Woocommerce products for example in the Carousels
  6. Exclude Post
  7. 订阅
  8. 排序方式

Design Options

  1. Hide Title of posts
  2. Hide Excerpt of posts
  3. Hide images of posts
  4. Use your own theme templates, for theme developers, see developer instructions

Carousel Options

  1. Show/Hide dots
  2. Show/Hide arrows
  3. Accessibility: Enables tabbing and arrow key navigation
  4. Adaptive Height: Enables adaptive height for single slide horizontal carousels.
  5. 自动播放
  6. Autoplay Speed
  7. As Nav for: Set the slider to be the navigation of other slider (Class or ID Name)
  8. draggable
  9. Kind of easing
  10. lazyLoad
  11. pauseOnHover
  12. mobileFirst : Responsive settings use mobile first calculation
  13. pauseOnDotsHover
  14. rows
  15. slidesPerRow
  16. slidesToShow: Number of posts to show
  17. slidesToScroll: In each horizontal scroll
  18. speed
  19. touchMove
  20. vertical
  21. rtl
  22. variableWidth: Variable width slides

 

Usage instructions

Create your Carousels in WordPress Dashboard/Carousels

Use shortcode [mimo_carousel id=”the carousel post id”] to display carousels or use Mimo Carousel Widget

Developer instructions

Apart from the options inside widget you can manipulate the before/after loop and articles content with this actions:

do_action(‘mimo_carousel_before_content’); // The beginnning of content inside each article
do_action(‘mimo_carousel_after_content’); // The end of content inside each article
do_action(‘mimo_carousel_before_loop’); // Out of the loop
do_action(‘mimo_carousel_after_loop’); // Out of the loop

Create a folder in your theme called ‘mimo-carousel’ and inside a folder called ‘partials’, then create a file insise, called ‘mimo-carousel-content.php’, to overwrite content template for posts. You can especify here which template to use for the posts view inside carousel. This would be normally the template called content.php in your theme.

Example of file ‘mimo-carousel-content.php’ :

[Example 1][markdown syntax]

if(class_exists('Woocommerce') && get_post_type() == 'product' ) {
    //Use woocommerce template of theme
    get_template_part( 'woocommerce/content','product');  

} else {
    //Use post template of theme
    get_template_part( 'template-parts/content');  
}

[markdown syntax]

Find plugin and issues solved at Mimo Studio

屏幕截图

  • Shows the widget in action just showing some products of Woocommerce plugin

安装

  1. Upload mimo-carousel folder to the /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Use shortcode [mimo_carousel id=”the carousel post id”] to display carousels

常见问题

It supports any custom post type ?

Yes.

评价

2016 年 9 月 14 日 1 回复
Plugin under development is what shows when I actually get into the options settings. The settings nav on the plugin page doesn’t even go to the right place and wordpress says “you do not have permission to view this page” on the broken link.
阅读所有1条评价

贡献者及开发者

「Mimo Carousel」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Mimo Carousel」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • First Release

1.2

-Improved settings for each carousel

1.3

-Loop construction issues solved
-Solved small css issues

1.3.1

-Loop construction issues solved

1.3.2

-Loop construction issues solved
-Added templating

1.3.3

Loop construction issues solved

1.3.4

Loop construction issues solved

1.3.5

Added responsive behavior