1 | <?php |
||
5 | class LaravelFontAwesome |
||
6 | { |
||
7 | public function icons($version = null) |
||
15 | |||
16 | public function icon($icon, $options = []) |
||
26 | |||
27 | /** |
||
28 | * Strip the default fa- prefix from the icon name if provider. |
||
29 | * |
||
30 | * @param $icon |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | protected function getIcon($icon) |
||
38 | |||
39 | /** |
||
40 | * Get the icon options. If no array is given cast the option to a |
||
41 | * string and assume it is an extra class name. |
||
42 | * |
||
43 | * @param $options |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | protected function getOptions($options) |
||
57 | |||
58 | /** |
||
59 | * Gets the list of class names to add to the icon element we are about to generate. |
||
60 | * |
||
61 | * @param $icon |
||
62 | * @param $extraClasses |
||
63 | * |
||
64 | * @return string |
||
65 | */ |
||
66 | protected function buildIconClasses($icon, $extraClasses) |
||
70 | |||
71 | /** |
||
72 | * Build the attribute list to add to the icon we are about to generate. |
||
73 | * |
||
74 | * @param $options |
||
75 | * @param $classes |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function buildAttributes($options, $classes) |
||
94 | |||
95 | /** |
||
96 | * Build the attribute. |
||
97 | * |
||
98 | * @param $attribute |
||
99 | * @param $value |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | protected function createAttribute($attribute, $value) |
||
107 | |||
108 | /** |
||
109 | * Build the icon with the correct attributes. |
||
110 | * |
||
111 | * @param $attributes |
||
112 | * |
||
113 | * @return string |
||
114 | */ |
||
115 | protected function buildIcon($attributes) |
||
119 | } |
||
120 |