Title: Link Badges
Author: Marcus Downing
Published: <strong>2013 年 6 月 5 日</strong>
Last modified: 2020 年 11 月 17 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/link-badges.svg)

# Link Badges

 作者：[Marcus Downing](https://profiles.wordpress.org/marcusdowning/)

[下载](https://downloads.wordpress.org/plugin/link-badges.zip)

 * [详情](https://cn.wordpress.org/plugins/link-badges/#description)
 * [评价](https://cn.wordpress.org/plugins/link-badges/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/link-badges/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/link-badges/#developers)

 [支持](https://wordpress.org/support/plugin/link-badges/)

## 描述

Whenever your content contains a link to a file, this plugin can display:

 * An icon for the link
 * The type of file
 * The size of the file

## 安装

 1. Upload the `link-badges` directory to your `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

## 常见问题

### How does this plugin know the size of a file?

If the file is on the same server, it looks at it directly on disk. If it’s on another
server somewhere on the internet, it tries to get the size by downloading the file.

The plugin has some memory of the file sizes, so it doesn’t need to do this every
time a page is loaded.

### Can I make it say ‘Kb’ rather than ‘kB’?

No. This plugin uses the correct units for file sizes.

There’s a setting in the options page to use SI units (based on multiples of 1000)
rather than traditional file size units (based on 1024).

### Can I use CSS to customise the way it’s displayed?

Yes.

    ```
    /* Icons */
    i.link-badge {
      ...
    }

    /* File sizes and types */
    span.link-badges-affix {
      ...
    }
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Marcus Downing ](https://profiles.wordpress.org/marcusdowning/)
 *   [ Dani Llewellyn ](https://profiles.wordpress.org/diddledan/)

[帮助将「Link Badges」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/link-badges)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/link-badges/)，查看[SVN仓库](https://plugins.svn.wordpress.org/link-badges/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/link-badges/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/link-badges/)。

## 更新日志

#### 1.4

 * Improved cache of file sizes
 * Don’t show file sizes for mail links
 * Options for showing decimals
 * Spaces in local vs remote
 * Resolve relative URLs

#### 1.2

 * Filling in missing icons in Font Awesome

#### 1.1

 * Add option to use icon fonts (Dashicons and Font Awesome)
 * More file formats
 * More CSS hook, filters and actions
 * Better i18n
 * Updated admin are to fit the WP 3.8 appearance

#### 1.0

 * First version

## 额外信息

 *  版本 **1.4**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.5.0**
 *  语言
 * [English (US)](https://wordpress.org/plugins/link-badges/)
 * 标签
 * [anchor](https://cn.wordpress.org/plugins/tags/anchor/)
 *  [高级视图](https://cn.wordpress.org/plugins/link-badges/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/link-badges/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/link-badges/reviews/)

## 贡献者

 *   [ Marcus Downing ](https://profiles.wordpress.org/marcusdowning/)
 *   [ Dani Llewellyn ](https://profiles.wordpress.org/diddledan/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/link-badges/)