Title: Badges
Author: eroux
Published: <strong>28 janvāris, 2011</strong>
Last modified: 3 maijs, 2024

---

Meklēt spraudņus

Šī spraudnis **nav atjaunināts vairāk kā divus gadus**. Varbūt, tas vairs netiek
uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress
versijām.

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

# Badges

 Autors [eroux](https://profiles.wordpress.org/eroux/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/badges.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/badges/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/badges/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/badges/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/badges/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/badges/)

## Apraksts

Display “Badges” (which are really no more than HTML snippets) from a set of files
in a specified directory off the root of the blog. The directory will default to“./
badges” and the Zip file contains both that directory as well as a “Sample” badge.

Using the Widget you can choose whether to:

 1. enable “Display Badge in a Box” (enabled by default, uses internal CSS)
 2. enable “Display a Drop-Shadow” (probably best used with “Box Mode”)

as well as

 1. decide whether you would like to use a Title
 2. define the directory of the badges.

## Ekrānuzņēmumi

[⌊Configuring the widget to read badges from damn-badges and display them as "Badges".⌉⌊
Configuring the widget to read badges from damn-badges and display them as "Badges"
.⌉[

Configuring the widget to read badges from `damn-badges` and display them as “Badges”.

[⌊The default configuration of the widget, displaying the default path (badges).⌉⌊
The default configuration of the widget, displaying the default path (badges).⌉[

The default configuration of the widget, displaying the default path (badges).

[⌊Badges displayed Padded and Boxed, but with Drop-Shadows disabled.⌉⌊Badges displayed
Padded and Boxed, but with Drop-Shadows disabled.⌉[

Badges displayed Padded and Boxed, but with Drop-Shadows disabled.

## Uzstādīšana

**Install**

 1. Unzip the `badges.zip` file.
 2. Upload `badges.php` to the `/wp-content/plugins/` directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Use the “Badges” widget.

**Upgrade**

 1. Follow your normal installation process
 2. Open the Widget Control Panel for “Badges” and confirm settings.
 3. Sit back and enjoy…

**Use the WordPress Plug-in System**

 1. Select “Upgrade and Activate”
 2. Congratulate yourself on a sterling job.

## BUJ

### Which naming convention is used for the badges

All badges needs to be named `XXname.inc`, where “XX” is a number (used to determine
ordering) and the “.inc” is required.

### What is the format of the “Badge” files?

You could view the included “demo” file: `00testbadge.inc`, but here’s another, 
slightly simpler, example:

    ```
    <!-- Support CC -->
    <div id="badge-supportcc-inner" onclick="location.href='http://creativecommons.org';" style="cursor: pointer;">
    <img width=88 height=31 alt="http://creativecommons.org" title="Support the Creative Commons!"
        src="http://creativecommons.org/images/support/2010/cc-support.png" />
    <br />
        Support the Creative Commons!
    </div>
    <!-- /Support CC -->
    ```

### How do I style the badges using CSS?

Quite simply by using the `div.badgegroup` class to style a set of badges. To style
them individually, use the `div.badge` class.

### How do I limit the styling to a set of badges?

Look for the relevant “Badge Group’s” ID and then use the `div#badge-ID > div.badge`
CSS selector.

### How do I style a single badge?

Easiest yet: every badge gets a unique ID generated by the plug-in based on the 
badge’s file-name and the directory. Simply use that (you’ll have to inspect the
source to see what the id is; by example the ID generated by my Site-Licence badge
is “badge-damn-licencing-licencing”).

## Atsauksmes

Par šo spraudni nav atsauksmju.

## Autori un izstrādātāji

“Badges” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

 *   [ eroux ](https://profiles.wordpress.org/eroux/)

[Tulkot “Badges&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/badges)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/badges/), apmeklējiet
[ SVN krātuvi ](https://plugins.svn.wordpress.org/badges/)vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/badges/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/badges/?limit=100&mode=stop_on_copy&format=rss).

## Izmaiņu žurnāls

#### 2.3

 * Give groupings of badges a different class than badges

#### 2.2

 * Moved to a ‘<div>’ based layout instead of using Lists
 * Split Boxing and Padding into two separate options

#### 2.1

 * Fixed the HTML generated to be cleaner and identify the badge class better
 * Simplified the examples slightly

#### 2.0

 * Cosmetic changes
 * Added (better) examples to the documentation

#### 1.0

 * Initial Public Release

## Meta

 *  Versija **2.5**
 *  Pēdējo reizi atjaunots: **pirms 2 gadiem**
 *  Aktīvās instalācijas: **10+**
 *  WordPress versija ** 6.0 vai jaunāka **
 *  Pārbaudīts līdz: **6.5.8**
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/badges/)
 * Birkas:
 * [admin](https://lv.wordpress.org/plugins/tags/admin/)[administration](https://lv.wordpress.org/plugins/tags/administration/)
   [books](https://lv.wordpress.org/plugins/tags/books/)[read](https://lv.wordpress.org/plugins/tags/read/)
   [reading](https://lv.wordpress.org/plugins/tags/reading/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/badges/advanced/)

## Vērtējumi

Vēl nav iesniegta neviena atsauksme.

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

[Skatīt visas atsauksmes](https://wordpress.org/support/plugin/badges/reviews/)

## Līdzdalībnieki

 *   [ eroux ](https://profiles.wordpress.org/eroux/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/badges/)