@@ -56,7 +56,7 @@ Or **install it manually**:
56
56
57
57
Available methods in this library:
58
58
59
- ### Add scripts or styles:
59
+ ### - Add scripts or styles:
60
60
61
61
``` php
62
62
Asset::add($type, $data);
@@ -77,7 +77,7 @@ Asset::add($type, $data);
77
77
78
78
** # Return** (boolean)
79
79
80
- ### Check if a particular style or script has been added:
80
+ ### - Check if a particular style or script has been added:
81
81
82
82
``` php
83
83
Asset::isAdded($type, $name);
@@ -90,7 +90,7 @@ Asset::isAdded($type, $name);
90
90
91
91
** # Return** (boolean)
92
92
93
- ### Remove script or style:
93
+ ### - Remove script or style:
94
94
95
95
``` php
96
96
Asset::remove($type, $name);
@@ -103,7 +103,7 @@ Asset::remove($type, $name);
103
103
104
104
** # Return** (boolean true)
105
105
106
- ### Sets whether to merge the content of files into a single file:
106
+ ### - Sets whether to merge the content of files into a single file:
107
107
108
108
``` php
109
109
Asset::unify($uniqueID, $params, $minify);
@@ -117,7 +117,7 @@ Asset::unify($uniqueID, $params, $minify);
117
117
118
118
** # Return** (boolean true)
119
119
120
- ### Output stylesheet:
120
+ ### - Output stylesheet:
121
121
122
122
``` php
123
123
Asset::outputStyles($output);
@@ -129,7 +129,7 @@ Asset::outputStyles($output);
129
129
130
130
** # Return** (string|false) → Output or false
131
131
132
- ### Output scripts:
132
+ ### - Output scripts:
133
133
134
134
``` php
135
135
Asset::outputScripts($place, $output);
@@ -165,7 +165,7 @@ use Josantonius\Asset\Asset;
165
165
166
166
Example of use for this library:
167
167
168
- ** Add styles:**
168
+ ### - Add styles:
169
169
170
170
``` php
171
171
Asset::add('style', [
@@ -180,7 +180,7 @@ Asset::add('style', [
180
180
]);
181
181
```
182
182
183
- ** Add scripts:**
183
+ ### - Add scripts:
184
184
185
185
``` php
186
186
Asset::add('script', [
@@ -197,33 +197,33 @@ Asset::add('script', [
197
197
]);
198
198
```
199
199
200
- ** Check if resources have been added correctly:**
200
+ ### - Check if resources have been added correctly:
201
201
202
202
``` php
203
203
Asset::isAdded('script', 'script-first'); // true
204
204
Asset::isAdded('style', 'style-first'); // true
205
205
```
206
206
207
- ** Delete added resources:**
207
+ ### - Delete added resources:
208
208
209
209
``` php
210
210
Asset::remove('style', 'style-first') // true
211
211
Asset::remove('script', 'script-first'); // true
212
212
```
213
213
214
- ** Unify:**
214
+ ### - Unify:
215
215
216
216
``` php
217
217
Asset::unify('UniqueID', 'http://josantonius.com/min/');
218
218
```
219
219
220
- ** Unify and minify:**
220
+ ### - Unify and minify:
221
221
222
222
``` php
223
223
Asset::unify('UniqueID', 'http://josantonius.com/min/', true);
224
224
```
225
225
226
- ** Unify specifying different url paths for styles and scripts:**
226
+ ### - Unify specifying different url paths for styles and scripts:
227
227
228
228
``` php
229
229
Asset::unify('UniqueID', [
@@ -233,7 +233,7 @@ Asset::unify('UniqueID', [
233
233
]);
234
234
```
235
235
236
- ** Unify and minify specifying different url paths for styles and scripts:**
236
+ ### - Unify and minify specifying different url paths for styles and scripts:
237
237
238
238
``` php
239
239
Asset::unify('UniqueID', [
@@ -244,19 +244,19 @@ Asset::unify('UniqueID', [
244
244
], true);
245
245
```
246
246
247
- ** Output styles:**
247
+ ### - Output styles:
248
248
249
249
``` php
250
250
echo Asset::outputStyles();
251
251
```
252
252
253
- ** Output footer scripts:**
253
+ ### - Output footer scripts:
254
254
255
255
``` php
256
256
echo Asset::outputScripts('footer');
257
257
```
258
258
259
- ** Output header scripts:**
259
+ ### - Output header scripts:
260
260
261
261
``` php
262
262
echo Asset::outputScripts('header');
0 commit comments