[wordpress插件] Deviant Thumbs偏离拇指

wordpress 插件 文章 2020-04-16 06:41 534 0 全屏看文

AI助手支持GPT4.0

评分
70
描述

Display linked thumbnails from deviantART on your WordPress blog.

在您的WordPress博客上显示deviantART的链接缩略图。

Features:

功能:

    • Scrollable carousel: your thumbs can be displayed in a dA style carousel
    • 可滚动轮播:您的拇指可以以dA风格的轮播显示

    • Inline deviations: the code :thumb98765: inside a post becomes a thumbnail, just like on dA
    • 行内偏差:帖子内的代码:thumb98765:变成缩略图,就像在dA上一样

    • Multiple widget support
    • 多种小部件支持

    • Flexible template tags
    • 灵活的模板标签

    Links: Plugin News |

    链接:插件新闻 |

    Author’s Site

    作者的网站

安装步骤

Either use the plugin installer built into WP, or:

要么使用WP内置的插件安装程序,要么:

    1. Unzip and upload the deviant-thumbs directory to the /wp-content/plugins/ directory.
    2. deviant-thumbs 目录解压缩并上传到 / wp-content / plugins / 目录。

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

    Widget Usage

    小部件用法

      1. Add one or more Deviant Thumbs widgets to your sidebar.
      2. 在侧边栏中添加一个或多个Deviant Thumbs小部件。

      3. Set the desired settings for each widget.
      4. 为每个小部件设置所需的设置。

      5. Enjoy
      6. 享受

      Template tags

      模板标签

      These are meant to be used outside The Loop.

      这些应在The Loop之外使用。

      deviant_thumbs()

      deviant_thumbs()

        

        <?php if(function_exists('deviant_thumbs')):?>  

            

              

          <?php deviant_thumbs($ query ='您的查询',$ args ='rand = false&count = 10');

          ?>  

          ?>  

        <?php endif;

        ?>

        ?>

      Parameters:

      参数:

        • $query is a search string used on deviantART.

        • $ query 是在 deviantART 上使用的搜索字符串。

          Example: by:scribu in:photography

        • 示例:作者:scribu in:摄影

        • $args is a string of options for displaying the carousel:
        • $ args 是显示轮播的一系列选项:

          • *count* is the number of thumbs to display (The maximum is 24).

          • * count *是要显示的拇指数(最多24个)。

            Default: 6

          • 默认值:6

          • *rand* is a flag to randomise thumbs or not.

          • * rand *是一个标志,用于将拇指随机化或不随机化。

            (Can be *true* or *false*).

            (可以是* true *或* false *)。

            Default: true

          • 默认值:true

          • *cache* is the number of hours after which the thumb list has to be updated.

          • * cache *是必须更新拇指列表的小时数。

            Default: 6

          • 默认值:6

          • *before* is a string inserted before each thumb.

          • * before *是在每个拇指之前插入的字符串。

            Default: `

          • 默认值:`

          • `
          • `

          • *after* is a string inserted after each thumb.

          • * after *是每个拇指之后插入的字符串。

            Default: `

          • 默认值:`

            `

            `

          deviant_thumbs_carousel

          deviant_thumbs_carousel

              

            <?php if(function_exists('deviant_thumbs_carousel')):?>    

          <?php deviant_thumbs_carousel($ query ='您的查询',$ args ='count = 10&rand = false&id = my_carousel');

          ?>

          ?>

          <?php endif;

          ?>

          ?>

          Parameters:

          参数:

            • $query is a search string used on deviantART.
            • $ query 是在 deviantART 上使用的搜索字符串。

            • $args is a string of options for displaying the carousel:
            • $ args 是显示轮播的一系列选项:

              • *count* is the total number of thumbs.

              • * count *是指的总数。

                Default: 6

              • 默认值:6

              • *show* is the number of visible thumbs.

              • * show *是可见的拇指数。

                Default: 3

              • 默认值:3

              • *rand* is an option to show thumbs in a random order (Can be *true* or *false*).

              • * rand *是显示拇指以随机顺序显示的选项(可以是* true *或* false *)。

                Default: true

              • 默认值:true

              • *cache* is the number of hours after which the thumb list has to be updated.

              • * cache *是必须更新拇指列表的小时数。

                Default: 6

              • 默认值:6

              • *speed* is the speed of the sliding effect (Can be *fast*, *normal* or *slow*).

              • * speed *是滑动效果的速度(可以是* fast *,* normal *或* slow *)。

                Default: fast

              • 默认值:快速

下载地址
https://downloads.wordpress.org/plugin/deviant-thumbs.1.8.6.zip
-EOF-

AI助手支持GPT4.0