Skip to content

Commit

Permalink
Change Craft 4 mentions to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuapease committed Mar 29, 2024
1 parent 2ac239b commit 4df9217
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<p align="center"><img src="resources/icon.png" width="100"></p>

# Classnames plugin for Craft CMS 4.x
# Classnames plugin for Craft CMS 5.x

Classnames is a simple Twig function for conditionally joining css class names together in Twig templates, in a way that makes them much more readable. It's like Jed Watson's [Classnames](https://github.com/JedWatson/classnames) but for Twig in Craft.

This plugin is especially useful with Tailwind CSS projects.

## Requirements

This plugin requires Craft CMS 4.0.0 or later.
This plugin requires Craft CMS 5.0.0 or later.

For Craft 3 users, [view the v1 branch](https://github.com/vigetlabs/craft-classnames/tree/v1).
For Craft 4 users, [view the v2 branch](https://github.com/vigetlabs/craft-classnames/tree/v2).

## Installation

Expand Down
4 changes: 2 additions & 2 deletions src/Classnames.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Classnames plugin for Craft CMS 4.x
* Classnames plugin for Craft CMS 5.x
*
* @link https://www.viget.com/
* @copyright Copyright (c) 2022 Viget Labs
Expand Down Expand Up @@ -37,7 +37,7 @@ class Classnames extends Plugin
/**
* @var string
*/
public string $schemaVersion = '2.0.0';
public string $schemaVersion = '3.0.0';

// Public Methods
// =========================================================================
Expand Down
2 changes: 1 addition & 1 deletion src/translations/en/classnames.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Classnames plugin for Craft CMS 4.x
* Classnames plugin for Craft CMS 5.x
*
* @link https://www.viget.com/
* @copyright Copyright (c) 2022 Viget Labs
Expand Down
4 changes: 2 additions & 2 deletions src/twigextensions/ClassnamesTwigExtension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Classnames plugin for Craft CMS 4.x
* Classnames plugin for Craft CMS 5.x
*
* @link https://www.viget.com/
* @copyright Copyright (c) 2022 Viget Labs
Expand All @@ -22,7 +22,7 @@ class ClassnamesTwigExtension extends AbstractExtension
{
// Public Methods
// =========================================================================

public function getName(): string
{
return 'Classnames';
Expand Down

0 comments on commit 4df9217

Please sign in to comment.