@@ -132,7 +132,7 @@ |
||
| 132 | 132 | $this->options = array_merge([ |
| 133 | 133 | 'drafts' => false, // build drafts or not |
| 134 | 134 | 'dry-run' => false, // if dry-run is true, generated files are not saved |
| 135 | - 'page' => '', // specific page to build |
|
| 135 | + 'page' => '', // specific page to build |
|
| 136 | 136 | ], $options); |
| 137 | 137 | |
| 138 | 138 | // process each step |
@@ -78,22 +78,22 @@ |
||
| 78 | 78 | } |
| 79 | 79 | }); |
| 80 | 80 | $this->data = [ |
| 81 | - 'file' => '', // absolute file path |
|
| 82 | - 'files' => [], // array of files path (if bundle) |
|
| 83 | - 'filename' => '', // filename |
|
| 84 | - 'path_source' => '', // public path to the file, before transformations |
|
| 85 | - 'path' => '', // public path to the file, after transformations |
|
| 86 | - 'url' => null, // URL of a remote image |
|
| 81 | + 'file' => '', // absolute file path |
|
| 82 | + 'files' => [], // array of files path (if bundle) |
|
| 83 | + 'filename' => '', // filename |
|
| 84 | + 'path_source' => '', // public path to the file, before transformations |
|
| 85 | + 'path' => '', // public path to the file, after transformations |
|
| 86 | + 'url' => null, // URL of a remote image |
|
| 87 | 87 | 'missing' => false, // if file not found, but missing ollowed 'missing' is true |
| 88 | - 'ext' => '', // file extension |
|
| 89 | - 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
| 90 | - 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
| 91 | - 'size' => 0, // file size (in bytes) |
|
| 92 | - 'content_source' => '', // file content, before transformations |
|
| 93 | - 'content' => '', // file content, after transformations |
|
| 94 | - 'width' => 0, // width (in pixels) in case of an image |
|
| 95 | - 'height' => 0, // height (in pixels) in case of an image |
|
| 96 | - 'exif' => [], // exif data |
|
| 88 | + 'ext' => '', // file extension |
|
| 89 | + 'type' => '', // file type (e.g.: image, audio, video, etc.) |
|
| 90 | + 'subtype' => '', // file media type (e.g.: image/png, audio/mp3, etc.) |
|
| 91 | + 'size' => 0, // file size (in bytes) |
|
| 92 | + 'content_source' => '', // file content, before transformations |
|
| 93 | + 'content' => '', // file content, after transformations |
|
| 94 | + 'width' => 0, // width (in pixels) in case of an image |
|
| 95 | + 'height' => 0, // height (in pixels) in case of an image |
|
| 96 | + 'exif' => [], // exif data |
|
| 97 | 97 | ]; |
| 98 | 98 | |
| 99 | 99 | // handles options |
@@ -61,8 +61,8 @@ |
||
| 61 | 61 | |
| 62 | 62 | // handles options |
| 63 | 63 | $canonical = null; // if true, add prefix URL with baseurl |
| 64 | - $format = null; // set output format |
|
| 65 | - $language = null; // force language |
|
| 64 | + $format = null; // set output format |
|
| 65 | + $language = null; // force language |
|
| 66 | 66 | extract(\is_array($options) ? $options : [], EXTR_IF_EXISTS); |
| 67 | 67 | |
| 68 | 68 | // canonical URL? |