studiobonito / silverstripe-typekit
Provide TypeKit integration for SilverStripe CMS.
Installs: 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 5
Open Issues: 1
Type:silverstripe-module
Requires
- php: >=5.3.0
- silverstripe/cms: >=3.1.2,<3.3
- silverstripe/framework: >=3.1.2,<3.3
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
- symfony/class-loader: ~2.3
This package is not auto-updated.
Last update: 2024-10-26 17:13:35 UTC
README
Overview
Provide TypeKit integration for SilverStripe CMS. Configure TypeKit ID via SiteConfig. Allow TypeKit fonts inside HTMLEditorField and provide $TypeKit template variable to inject javascript.
Requirements
- SilverStripe CMS 3.1.2 and newer or 3.2 and newer.
Install
Via Composer
Run the following to add this module as a requirement and install it via composer.
$ composer require studiobonito/silverstripe-typekit
Manual
Copy the 'typekit' folder to the root of your SilverStripe installation.
Usage
The module provides a global template variable $TypeKit
that can be used to insert the kit code into any
page template. This global variable uses the type kit ID specified in the CMS in the Setings > Services > Type Kit
tab.
TypeKit suggests placing kit code in your document <head>
as in the example below. However this module leaves that
choice to the developer.
<head> <title>Example.com</title> $TypeKit </head>
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email support@studiobonito.co.uk instead of using the issue tracker.
Credits
License
The BSD-2-Clause License. Please see License File for more information.