diff --git a/LICENSE b/LICENSE index 41b1494..dba3266 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 AntoineFr +Copyright (c) 2024 AntoineFr Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 156b89c..0146ff7 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Run `composer require antoinefr/flarum-ext-bbcode-fa` in Flarum's folder. - Regular: `[far]circle[/far]` - Light: `[fal]circle[/fal]` - Brand: `[fab]github[/fab]` +- Other styles (thin, duotone, ...): see https://docs.fontawesome.com/web/setup/upgrade/whats-changed#full-style-names *Note: `[fa]` is still supported for compatibility reasons. It will use `[fas]`.* diff --git a/extend.php b/extend.php index e6d1beb..64c37cf 100644 --- a/extend.php +++ b/extend.php @@ -9,6 +9,19 @@ $config->BBCodes->addCustom('[FAS]{IDENTIFIER}[/FAS]', ''); $config->BBCodes->addCustom('[FAR]{IDENTIFIER}[/FAR]', ''); $config->BBCodes->addCustom('[FAL]{IDENTIFIER}[/FAL]', ''); + $config->BBCodes->addCustom('[FAT]{IDENTIFIER}[/FAT]', ''); + $config->BBCodes->addCustom('[FAD]{IDENTIFIER}[/FAD]', ''); + $config->BBCodes->addCustom('[FADR]{IDENTIFIER}[/FADR]', ''); + $config->BBCodes->addCustom('[FADL]{IDENTIFIER}[/FADL]', ''); + $config->BBCodes->addCustom('[FADT]{IDENTIFIER}[/FADT]', ''); + $config->BBCodes->addCustom('[FASS]{IDENTIFIER}[/FASS]', ''); + $config->BBCodes->addCustom('[FASR]{IDENTIFIER}[/FASR]', ''); + $config->BBCodes->addCustom('[FASL]{IDENTIFIER}[/FASL]', ''); + $config->BBCodes->addCustom('[FAST]{IDENTIFIER}[/FAST]', ''); + $config->BBCodes->addCustom('[FASDS]{IDENTIFIER}[/FASDS]', ''); + $config->BBCodes->addCustom('[FASDR]{IDENTIFIER}[/FASDR]', ''); + $config->BBCodes->addCustom('[FASDL]{IDENTIFIER}[/FASDL]', ''); + $config->BBCodes->addCustom('[FASDT]{IDENTIFIER}[/FASDT]', ''); $config->BBCodes->addCustom('[FAB]{IDENTIFIER}[/FAB]', ''); }) ;