[wordpress插件] Add Ribbon Shortcode添加功能区简码

wordpress 插件 文章 2020-01-31 03:00 707 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Adds ribbon with labels to your div containers or image using shortcodes.

使用短代码将带有标签的功能区添加到div容器或图像中。

This is the implementation of CSS Portal ribbon generator.

这是CSS Portal功能区生成器的实现。

You can set the width , colors , backgrounds of ribbons you wanted to show.

您可以设置要显示的色带的宽度,颜色,背景。

You can email me directly for any plugin request or personal modification such as styles and templates at contact@sherkspear.com or

您可以直接通过电子邮件向我发送任何插件请求或个人修改信息,例如 contact@sherkspear.com

contact me at http://sherkspear.com/contact

请通过 http://sherkspear.com/contact 与我联系

Plugin URI: http://www.sherkspear.com/

插件URI: http://www.sherkspear.com/

Detailed Instructions

详细说明

After installation, check at Dashboard -> Tools -> Add Ribbon (/wp-admin/tools.php?page=add_ribbon_info)

安装后,在仪表板->工具->添加功能区上 (/ wp-admin / tools.php?page = add_ribbon_info)

for more detailed instructions.

有关更多详细说明。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. BACKUP everything before you install the plugin.
    2. 在安装插件之前备份所有内容。

    3. Upload add-ribbon directory to the ‘/wp-content/plugins/’ directory
    4. 将add-ribbon目录上传到“ / wp-content / plugins /”目录

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

    Adding Ribbon using Shortcode

    使用简码添加功能区

      1. Shortcode for Sherk Add Ribbon is in the format of

      2. Sherk Add Ribbon的简码格式为

        [ribbon id=”myribbon” padding=”10″ height=”100″ width=”100″ color=”#000″ bgcolor=”#FFF” label=”Featured” position=”right”]

        [ribbon id =” myribbon” padding =” 10” height =“ 100” width =” 100” color =”#000” bgcolor =”#FFF” label =”精选” position =” right”]

        />

        />

        This is a sample content

        这是示例内容

        [ibbon]

      3. [/ ribbon]

      4. Copy the shortcode, paste it to the content text editor and update the values of your shortcode parameters depends on what you need.
      5. 复制简码,将其粘贴到内容文本编辑器中,然后根据需要更新简码参数的值。

      Setting Ribbon for Image Content

      设置图像内容的功能区

        1. This is a way on adding ribbon using image as your content instead of text.
        2. 这是使用图像而不是文本作为内容添加功能区的一种方法。

        3. Set your padding into 0
        4. 将填充设置为0

        5. Set your ribbon width and height to the width and height of your image.
        6. 将色带的宽度和高度设置为图像的宽度和高度。

        7. Give the image a class value of ‘imgribbon’

        8. 为图像赋予“ imgribbon”类值。

          Ex.

          例如

          [ribbon id=”sherkid” padding=”0″ width=”190″ height=”190″ bgcolor=”#CCC” color=”#233″ label=”Sample”]

          [ribbon id =” sherkid” padding =” 0” width =” 190” height =” 190” bgcolor =”#CCC” color =”#233” label =” Sample”]

          < img class=”imgribbon” src=”images/landscape.jpg” alt=”” width=”190″ height=”190″ />

          “”

          [ibbon]

        9. [/ ribbon]

        Parameters Available

        可用参数

        id

        id

        Id of your ribbon, used in customizing ribbon styles

        功能区的ID,用于自定义功能区样式

        default: ”

        默认值:“

        option: string

        选项:字符串

        label

        标签

        Text label for your ribbon

        丝带的文字标签

        default: ‘Label’

        默认值:“标签”

        option: string

        选项:字符串

        wider

        更宽

        Wider ribbon

        宽丝带

        default: ‘false’

        默认值:“ false”

        option: boolean

        选项:布尔值

        position

        位置

        Position of the label of your ribbon

        色带标签的位置

        default: ‘left’

        默认值:“ left”

        option: left

        选项:左

        right

        padding

        填充

        Padding of your ribbon

        丝带的装饰

        default: ’10’

        默认值:“ 10”

        option: integer

        选项:整数

        width

        宽度

        Width of your ribbon

        色带宽度

        default: ‘200’

        默认值:“ 200”

        option: integer

        选项:整数

        height

        高度

        Height of your ribbon

        丝带的高度

        default: ‘200’

        默认值:“ 200”

        option: integer

        选项:整数

        color

        颜色

        Color of your text label

        文字标签的颜色

        default: ‘#FFF’

        默认值:“#FFF”

        option: Hex Color

        选项:十六进制颜色

        bgcolor

        bgcolor

        Background color of your text label

        文字标签的背景色

        default: ‘#000’

        默认值:“#000”

        option: Hex Color

        选项:十六进制颜色

下载地址

https://downloads.wordpress.org/plugin/add-ribbon.zip

https://downloads.wordpress.org/plugin/add-ribbon.zip

-EOF-

AI助手支持GPT4.0