[wordpress插件] Ajax Post CarouselAjax Post轮播

wordpress 插件 文章 2020-02-14 01:00 618 0 全屏看文

AI助手支持GPT4.0

评分

70

70

描述

With Ajax Post Carousel you can display posts as a carousel using jQuery for animations.

使用Ajax Post Carousel,您可以使用jQuery动画将帖子显示为Carousel。

The widget only preloads a few posts and Ajax is used to load more posts as the carousel advances (this is very useful when you have hundreds of posts).

该小部件仅预载了几篇文章,而随着轮播的发展,Ajax用于装载更多的文章(当您有数百篇文章时,这非常有用)。

The featured thumbnail of each post is used for the carousel, so at least WordPress 2.9 is required.

每个帖子的精选缩略图都用于轮播,因此至少需要WordPress 2.9。

The widget can be totally customized using CSS.

可以使用CSS完全自定义小部件。

Only the basic styles are defined so the carousel works properly.

仅定义了基本样式,以便轮播正常工作。

Features

功能

    • Posts can be selected from a category, a custom taxonomy or a post type.
    • 可以从类别,自定义分类或帖子类型中选择帖子。

    • Configurable number of posts shown in the carousel and number of preloaded posts (visible posts + posts loaded in the background)
    • 轮播中显示的可配置帖子数和预加载的帖子数(可见帖子+后台加载的帖子)

    • Posts can be loaded in random order or using the default order (From most recent to oldest)
    • 帖子可以随机顺序或使用默认顺序(从最新到最早)加载

    • Carousel can be an endless loop
    • 轮播可能是一个无限循环

    • Title and excerpt can be shown.

    • 可以显示标题和摘录。

      Thumbnail is always shown.

    • 缩略图始终显示。

    • Can be used as a widget, a shortcode or a php function.
    • 可以用作小部件,简码或php函数。

    BETA

    BETA

    Be adviced we are releasing this software as beta software.

    请告知我们,该软件将作为Beta版发布。

    Our initial intention is to gather feedback and collaboration.

    我们的初衷是收集反馈和合作。

    After testing and approval the plugin will launch oficially.

    经过测试和批准后,插件将正式启动。

    Send us your comments to plugins@8manos.com

    将您的评论发送给我们plugins@8manos.com

    HOW TO

    如何

      • Carousels can be added using Widgets, Shortcodes or a PHP function.
      • 轮播可以使用Widget,简码或PHP函数添加。

      • You can use the default styles included in the plugin or use your own css.

      • 您可以使用插件中包含的默认样式,也可以使用自己的CSS。

        Explained below.

      • 在下面解释。

      Widget

      小部件

      This is the easiest way to add carousels to your site.

      这是向您的网站添加轮播的最简单方法。

      Just drag the “Ajax Post Carousel” widget to an available area and configure all settings.

      只需将“ Ajax Post Carousel”小部件拖动到可用区域并配置所有设置。

      Shortcode

      简码

      You can use it to include carousels in your posts or pages.

      您可以使用它在您的帖子或页面中包含轮播。

      Add [apc-carousel] to use the default values.

      添加[apc-carousel]以使用默认值。

      All the options in the widget can also be used with the shortcode:

      窗口小部件中的所有选项也可以与短代码一起使用:

        • random: Accepts 0 or 1. (default 0)
        • 随机:接受0或1。(默认为0)

        • visible_posts: Number of posts visible in the carousel.

        • visible_posts:轮播中可见的帖子数。

          (default 3)

        • (默认值为3)

        • init_posts: Number of preloaded posts.

        • init_posts:预加载的帖子数。

          Equals number of visible posts + number of posts in the background.

          等于可见帖子数+后台帖子数。

          (default 9)

        • (默认为9)

        • show_title: Whether to show the title of the post.

        • show_title:是否显示帖子标题。

          Accepts 0 or 1 (default 0)

        • 接受0或1(默认为0)

        • show_excerpt: Whether to show the excerpt of the post.

        • show_excerpt:是否显示帖子的摘录。

          Accepts 0 or 1 (default 0)

        • 接受0或1(默认为0)

        • loop: Accepts 0 or 1 (default 0)
        • 循环:接受0或1(默认为0)

        • post_type: Slug of the post type.

        • post_type:帖子类型的子弹。

          Accepts ‘post’, ‘page’, ‘all’ or any custom post type.

          接受“帖子”,“页面”,“全部”或任何自定义帖子类型。

          (default ‘post’)

        • (默认为“发布”)

        • category: Slug of the category.

        • 类别:该类别的子弹。

          (default ‘all’)

        • (默认为“全部”)

        • Posts can be filtered by taxonomy using: taxonomy-slug=term-slug
        • 可以使用以下方法按分类对帖子进行过滤:taxonomy-slug = term-slug

        Example:

        示例:

        [apc-carousel visible_posts=2 init_posts=8 show_title=1 show_excerpt=1 my-taxonomy=my-taxonomy-term]

        [apc-carousel visible_posts = 2 init_posts = 8 show_title = 1 show_excerpt = 1 my-taxonomy = my-taxonomy-term]

        PHP Function

        PHP函数

        The PHP function can be used in a theme template.

        可以在主题模板中使用PHP函数。

        The options and defaults are the same as in the Shortcode:

        选项和默认设置与“简码”中的相同:

        Ajax_Post_Carousel::show_carousel($random=0, $visible_posts=3, $init_posts=9, $show_title=0, $show_excerpt=0, $loop=0, $post_type='post', $category='all

        Ajax_Post_Carousel :: show_carousel($ random = 0,$ visible_posts = 3,$ init_posts = 9,$ show_title = 0,$ show_excerpt = 0,$ loop = 0,$ post_type ='post',$ category ='all

        ', $tax_filter=”)

        ',$ tax_filter =”)

        $tax_filter uses this format: ‘my-tax-1=my-term-1&my-tax-2=my-term-2’

        $ tax_filter使用以下格式:“ my-tax-1 = my-term-1&my-tax-2 = my-term-2”

        Example that returns the same output as the Shortcode example:

        示例返回与简码示例相同的输出:

        Use your own CSS

        使用您自己的CSS

        There are to ways to style the carousels using your own css.

        有多种方法可以使用自己的CSS设置轮播样式。

          1. Copy the css file from wp-content/plugins/ajax-post-carousel/ajax_post_carousel.css into your theme directory and edit the copy.
          2. 将ws-content / plugins / ajax-post-carousel / ajax_post_carousel.css中的css文件复制到主题目录中,然后编辑副本。

          3. Define your own styles in your theme stylesheet.

          4. 在主题样式表中定义自己的样式。

            Just use the carousel id, so your rules have a higher priority than the rules from the plugin (for example: #apc_carousel_0 .apc_thumb{border:none;})

          5. 只需使用轮播ID,所以您的规则比插件中的规则具有更高的优先级(例如:#apc_carousel_0 .apc_thumb {border:none;})

安装步骤

    1. Upload ajax-post-carousel folder to the /wp-content/plugins/ directory
    2. ajax-post-carousel 文件夹上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Create widgets anywhere, using the ‘Widgets’ menu in WordPress.

    6. 使用WordPress中的“小部件”菜单在任何地方创建小部件。

      Or use the shortcode in your posts.

      或在您的帖子中使用简码。

      Or use the php function in your theme templates.

    7. 或在主题模板中使用php函数。

下载地址

https://downloads.wordpress.org/plugin/ajax-post-carousel.0.3.2.zip

https://downloads.wordpress.org/plugin/ajax-post-carousel.0.3.2.zip

-EOF-

AI助手支持GPT4.0