Skip to content

Commit 83c7c5f

Browse files
readme
1 parent e6093c9 commit 83c7c5f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A PHP class that can be used to add [Font Awesome 5+](https://fontawesome.com/)'
1111
* Get the folder `advanced-options/raw-svg` and place it in your project
1212
* Add `svg-with-js/css/fa-svg-with-js` to your document (or write your own CSS)
1313

14-
### Basic examples
14+
### Examples
1515

1616
```
1717
// $dir = directory where SVG files are
@@ -38,6 +38,18 @@ Add `<title></title>`:
3838
echo $FA->get_svg('fas fa-file', ['title' => 'My accessible icon']);
3939
```
4040

41+
Multiple options at once:
42+
43+
```
44+
echo $FA->get_svg('fas fa-file', [
45+
'class' => 'my-custom-class another-class',
46+
'default_class' => false,
47+
'title' => 'My title',
48+
'role' => 'img',
49+
]);
50+
```
51+
52+
4153

4254

4355
## Accessibility

0 commit comments

Comments
 (0)