Skip to content

Commit

Permalink
Add icons to fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Dec 13, 2024
1 parent c38f645 commit 6cfb424
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes for Campaign

## 3.5.9 - Unreleased

### Changed

- Changed the field icons for campaigns, contacts and mailing lists ([#509](https://github.com/putyourlightson/craft-campaign/issues/509)).

## 3.5.8 - 2024-12-09

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "putyourlightson/craft-campaign",
"description": "Send and manage email campaigns, contacts and mailing lists.",
"version": "3.5.8",
"version": "3.5.9",
"type": "craft-plugin",
"homepage": "https://putyourlightson.com/plugins/campaign",
"license": "proprietary",
Expand Down
8 changes: 8 additions & 0 deletions src/fields/CampaignsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ public static function displayName(): string
return Craft::t('campaign', 'Campaign Campaigns');
}

/**
* @inheritdoc
*/
public static function icon(): string
{
return 'file-lines';
}

/**
* @inheritdoc
*/
Expand Down
8 changes: 8 additions & 0 deletions src/fields/ContactsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ public static function displayName(): string
return Craft::t('campaign', 'Campaign Contacts');
}

/**
* @inheritdoc
*/
public static function icon(): string
{
return 'users';
}

/**
* @inheritdoc
*/
Expand Down
8 changes: 8 additions & 0 deletions src/fields/MailingListsField.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ public static function displayName(): string
return Craft::t('campaign', 'Campaign Mailing Lists');
}

/**
* @inheritdoc
*/
public static function icon(): string
{
return 'id-card';
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit 6cfb424

Please sign in to comment.