File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,10 @@ public function get_svg($id, $opts=false) {
85
85
86
86
87
87
/**
88
+ * Get an icon's details from icon ID
88
89
*
90
+ * @param string $id icon ID e.g. fas fa-house
91
+ * @return array
89
92
*/
90
93
public function get_icon_details ($ id ) {
91
94
$ icon = array ();
@@ -109,10 +112,13 @@ public function get_icon_details($id) {
109
112
110
113
111
114
/**
115
+ * Get the directory that contains the SVG icon file
112
116
*
117
+ * @param string $style
118
+ * @return string
113
119
*/
114
- public function get_icon_dir ($ iconID ) {
115
- switch ($ iconID ) {
120
+ public function get_icon_dir ($ style ) {
121
+ switch ($ style ) {
116
122
case 'fas ' :
117
123
$ dir = 'solid ' ;
118
124
break ;
@@ -140,7 +146,10 @@ public function get_icon_dir($iconID) {
140
146
141
147
142
148
/**
149
+ * Get the icon's SVG file name
143
150
*
151
+ * @param string $icon_name
152
+ * @return string
144
153
*/
145
154
public function get_icon_filename ($ icon_name ) {
146
155
return str_replace ('fa- ' , '' , $ icon_name );
You can’t perform that action at this time.
0 commit comments