| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: Custom Adobe Fonts (Typekit) |
| 4 |
* Plugin URI: http://www.wpastra.com/ |
| 5 |
* Description: Custom Adobe Fonts allows you to extends the fonts supports from the Typekit. |
| 6 |
* Author: Brainstorm Force |
| 7 |
* Author URI: http://www.brainstormforce.com |
| 8 |
* Text Domain: custom-typekit-fonts |
| 9 |
* Version: 2.1.1 |
| 10 |
* |
| 11 |
* @package Typekit_Custom_Fonts |
| 12 |
*/ |
| 13 |
|
| 14 |
/** |
| 15 |
* Exit if accessed directly. |
| 16 |
*/ |
| 17 |
if ( ! defined( 'ABSPATH' ) ) { |
| 18 |
exit(); |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* Set constants. |
| 23 |
*/ |
| 24 |
define( 'CUSTOM_TYPEKIT_FONTS_FILE', __FILE__ ); |
| 25 |
define( 'CUSTOM_TYPEKIT_FONTS_BASE', plugin_basename( CUSTOM_TYPEKIT_FONTS_FILE ) ); |
| 26 |
define( 'CUSTOM_TYPEKIT_FONTS_DIR', plugin_dir_path( CUSTOM_TYPEKIT_FONTS_FILE ) ); |
| 27 |
define( 'CUSTOM_TYPEKIT_FONTS_URI', plugins_url( '/', CUSTOM_TYPEKIT_FONTS_FILE ) ); |
| 28 |
define( 'CUSTOM_TYPEKIT_FONTS_VER', '2.1.1' ); |
| 29 |
/** |
| 30 |
* BSF Custom Fonts |
| 31 |
*/ |
| 32 |
require_once CUSTOM_TYPEKIT_FONTS_DIR . 'classes/class-custom-typekit-fonts.php'; |
| 33 |
|
| 34 |
if ( is_admin() ) { |
| 35 |
|
| 36 |
/** |
| 37 |
* Admin Notice Library Settings |
| 38 |
*/ |
| 39 |
require_once CUSTOM_TYPEKIT_FONTS_DIR . 'lib/notices/class-astra-notices.php'; |
| 40 |
} |
| 41 |
|
| 42 |
// BSF Analytics library. |
| 43 |
if ( ! class_exists( 'BSF_Analytics_Loader' ) ) { |
| 44 |
require_once CUSTOM_TYPEKIT_FONTS_DIR . 'admin/bsf-analytics/class-bsf-analytics-loader.php'; |
| 45 |
} |
| 46 |
|
| 47 |
$bsf_analytics = BSF_Analytics_Loader::get_instance(); |
| 48 |
|
| 49 |
$bsf_analytics->set_entity( |
| 50 |
array( |
| 51 |
'bsf' => array( |
| 52 |
'product_name' => 'Custom Adobe Fonts (Typekit)', |
| 53 |
'path' => CUSTOM_TYPEKIT_FONTS_DIR . 'admin/bsf-analytics', |
| 54 |
'author' => 'Brainstorm Force', |
| 55 |
'time_to_display' => '+24 hours', |
| 56 |
), |
| 57 |
) |
| 58 |
); |
| 59 |
|