File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ A PHP class that can be used to add [Font Awesome 5+](https://fontawesome.com/)'
11
11
* Get the folder ` advanced-options/raw-svg ` and place it in your project
12
12
* Add ` svg-with-js/css/fa-svg-with-js ` to your document (or write your own CSS)
13
13
14
- ### Basic examples
14
+ ### Examples
15
15
16
16
```
17
17
// $dir = directory where SVG files are
@@ -38,6 +38,18 @@ Add `<title></title>`:
38
38
echo $FA->get_svg('fas fa-file', ['title' => 'My accessible icon']);
39
39
```
40
40
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
+
41
53
42
54
43
55
## Accessibility
You can’t perform that action at this time.
0 commit comments