Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace Hyde\Markdown\Contracts\FrontMatter\SubSchemas; |
6 | |
7 | use Hyde\Markdown\Contracts\FrontMatter\BlogPostSchema; |
8 | |
9 | /** |
10 | * @see \Hyde\Framework\Features\Blogging\Models\FeaturedImage |
11 | * @see \Hyde\Pages\MarkdownPost |
12 | */ |
13 | interface FeaturedImageSchema extends BlogPostSchema |
14 | { |
15 | public const FEATURED_IMAGE_SCHEMA = [ |
16 | 'source' => 'string', // Name of a file in _media/ or a remote URL (required) |
17 | 'altText' => 'string', // The alt text (important for accessibility) // todo: Support alt, description |
18 | 'titleText' => 'string', // The title text (hover tooltip & metadata) // todo: Support title, caption |
19 | 'licenseName' => 'string', // The name of the license (e.g. "CC BY 4.0") |
20 | 'licenseUrl' => 'string', // The URL of the license (e.g. "https://creativecommons.org/licenses/by/4.0/") |
21 | 'authorName' => 'string', // The name of the author/photographer of the image (e.g. "John Doe", Wikimedia Commons) |
22 | 'authorUrl' => 'string', // The URL of the author/photographer of the image (e.g. "https://commons.wikimedia.org/wiki/User:John_Doe", Wikimedia Commons) |
23 | 'copyright' => 'string', // The copyright text (e.g. "© 2023 John Doe") |
24 | ]; |
25 | } |