1 | <?php |
||
15 | class TemplatePlugin |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * This function will read meta configuration from `meta` and output the corresponding meta tags. |
||
20 | * |
||
21 | * @return string |
||
22 | */ |
||
23 | public function meta() { |
||
42 | |||
43 | /** |
||
44 | * This function will take a source path and an optional inline parameter. |
||
45 | * The CSS file will be copied from the source path to the public directory. |
||
46 | * If the `minify` option is set to true in config.yml, the output will be minified. |
||
47 | * |
||
48 | * If the inline parameter is set, the output won't be copied to a public file, |
||
49 | * but instead be outputted to an HTML string which can be included in a template. |
||
50 | * |
||
51 | * Files with the .scss and .sass extensions will be compiled to normal CSS files. |
||
52 | * |
||
53 | * @param string $src |
||
54 | * @param bool $inline |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function css($src, $inline = false) { |
||
88 | |||
89 | /** |
||
90 | * This function will take a source path and an optional inline parameter. |
||
91 | * The JS file will be copied from the source path to the public directory. |
||
92 | * If the `minify` option is set to true in config.yml, the output will be minified. |
||
93 | * |
||
94 | * If the inline parameter is set, the output won't be copied to a public file, |
||
95 | * but instead be outputted to an HTML string which can be included in a template. |
||
96 | * |
||
97 | * @param string $src |
||
98 | * @param bool $inline |
||
99 | * @param bool $async |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | public function js($src, $inline = false, $async = false) { |
||
137 | |||
138 | /** |
||
139 | * Create a responsive image using brendt\responsive-images. |
||
140 | * |
||
141 | * @param $src |
||
142 | * |
||
143 | * @return array |
||
144 | * |
||
145 | * @see \Brendt\Image\ResponsiveFactory |
||
146 | */ |
||
147 | public function image($src) { |
||
162 | |||
163 | /** |
||
164 | * Create a public file from the src directory and return its path. |
||
165 | * |
||
166 | * @param $src |
||
167 | * |
||
168 | * @return null|string |
||
169 | */ |
||
170 | public function file($src) { |
||
194 | |||
195 | } |
||
196 |