PHPackages                             martyfriedel/les-mills-class-types - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. martyfriedel/les-mills-class-types

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

martyfriedel/les-mills-class-types
==================================

A custom button for Bard in Statamic to allow a span with a class to be added to selected text. In this instance, Les Mills group fitness class types.

3.0.0(11mo ago)102092MITJavaScript

Since May 27Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/martyf/les-mills-class-types)[ Packagist](https://packagist.org/packages/martyfriedel/les-mills-class-types)[ RSS](/packages/martyfriedel-les-mills-class-types/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (1)Versions (9)Used By (0)

Bard add-on for Statamic 6 for adding a span and class to selected content
==========================================================================

[](#bard-add-on-for-statamic-6-for-adding-a-span-and-class-to-selected-content)

[![Statamic 6.0+](https://camo.githubusercontent.com/e2d97a60f0486aada69d7bf68516cff0f0ed6d2ad2f935e8dc54767eefb3295d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/e2d97a60f0486aada69d7bf68516cff0f0ed6d2ad2f935e8dc54767eefb3295d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)

This is an example Bard addon for Statamic 6 that adds a span with a class to selected content. In this example, you can select from a number of Les Mills group fitness classes.

**This addon has been updated for Statamic 6**.

It will no longer work on Statamic 3, 4 or 5. However,

- for Statamic 3, use [1.x](https://github.com/martyf/les-mills-class-types/releases/tag/1.2)
- for Statamic 4 or 5, use [2.x](https://github.com/martyf/les-mills-class-types/tree/2.x)

While this has a personal purpose for my own use, it also shows a simple working example of how to wrap selected content with an element, and add a class. Something that does have many use cases beyond something as trivial as this example.

Personally, I'll use this package as is... but for others, it is a simple and working example of how to write your own addon for Bard in Statamic.

Installation
------------

[](#installation)

Install it via the composer command

```
composer require martyfriedel/les-mills-class-types

```

In your Bard editor instances (note, *not* the configuration view), you'll see the new button added.

Select some text, click the new icon, and select a class type, and voilà!

Output
------

[](#output)

When output, the markup will be a span with a class attached.

```
This is my text with BodyAttack highlighted using the addon.
```

Use on the front end
--------------------

[](#use-on-the-front-end)

Styles have been included for a handful of programs (the ones I teach, funnily enough), and will style the selected text within the Statamic administration area.

You will need to add classes to your front end stylesheets to see them come through there too.

Essentially it will add a generic class `les-mills-class` followed by the program name - so this way you can target all class types, and then tweak per program.

A finished class might be `les-mills-class bodyattack` for example.

Your CSS for your frontend can then target that specific class.

```
.les-mills-class {
    text-transform: uppercase !important;
    font-weight: bold !important;

    &.bodyattack {
        color: #FCC500 !important;
    }

    /* more class types */
}
```

License
-------

[](#license)

This addon is licensed under the MIT license.

Les Mils
--------

[](#les-mils)

Les Mills are an awesome company based on New Zealand, who make the best group fitness classes in the world, including BODYPUMP - I've been trained in 5 of their programs, and teaching Les Mills group fitness classes for over 14 years. Their "L" letter has been used for the button for this plugin purely for demonstration purposes.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance50

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~222 days

Recently: every ~205 days

Total

8

Last Release

352d ago

Major Versions

1.2 → 2.0.02023-06-02

2.x-dev → 3.0.02025-08-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2976debe9dcc11f8ffb47e0ce048ac7297dec8d9be9e525e65d398469ffa417?d=identicon)[martyf](/maintainers/martyf)

---

Top Contributors

[![martyf](https://avatars.githubusercontent.com/u/1491079?v=4)](https://github.com/martyf "martyf (16 commits)")

---

Tags

statamicbard

### Embed Badge

![Health badge](/badges/martyfriedel-les-mills-class-types/health.svg)

```
[![Health](https://phpackages.com/badges/martyfriedel-les-mills-class-types/health.svg)](https://phpackages.com/packages/martyfriedel-les-mills-class-types)
```

###  Alternatives

[statamic/seo-pro

71548.3k](/packages/statamic-seo-pro)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20122.4k](/packages/visuellverstehen-statamic-classify)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23122.2k16](/packages/marcorieser-statamic-livewire)[aerni/advanced-seo

Comprehensive SEO addon for Statamic with flexibility in mind

1818.9k](/packages/aerni-advanced-seo)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

15134.1k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
