| 24 | |
| 25 | Illustrative example: Licensing |
| 26 | |
| 27 | In this example, a theme author would like to disclose the licenses that apply to the theme and its assets. |
| 28 | The author would include the following in a file named disclosures.json in the theme's main folder to indicate that: |
| 29 | - Their theme itself is licensed under the General Public License version 2; |
| 30 | - They make use of images, which are locally included in the theme, all of which they found on the "My Stock Photos" site; |
| 31 | - They make use of the Google Fonts CDN to serve the Andika, Cousine fonts and Ubuntu fonts. |
| 32 | |
| 33 | {{{#!php |
| 34 | <?php |
| 35 | { |
| 36 | "licenses": { |
| 37 | "code": [ |
| 38 | "https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html" |
| 39 | ], |
| 40 | "localAssets": [ |
| 41 | "https://creativecommons.org/publicdomain/zero/1.0/legalcode" |
| 42 | ], |
| 43 | "remoteAssets": [ |
| 44 | "https://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web", "http://www.apache.org/licenses/LICENSE-2.0.html", "https://ubuntu.com/legal/font-licence" |
| 45 | ] |
| 46 | } |
| 47 | } |
| 48 | }}} |