PluginProbe
Custom Adobe Fonts (Typekit) / trunk
Custom Adobe Fonts (Typekit) vtrunk
trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.2.18 2.1.0 2.1.1
custom-typekit-fonts / custom-typekit-fonts.php

custom-typekit-fonts.php in Custom Adobe Fonts (Typekit) trunk, at custom-typekit-fonts.php

59 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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