-
Notifications
You must be signed in to change notification settings - Fork 5
/
arabic-webfonts.php
61 lines (52 loc) · 1.4 KB
/
arabic-webfonts.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Plugin Name: Arabic Webfonts
* Plugin URI: http://plugins.jozoor.com/arabic-webfonts/
* Description: An easy way to add Arabic fonts to any theme without coding using WordPress Customizer.
* Version: 1.4.6
* Author: Jozoor
* Author URI: https://codecanyon.net/user/jozoor/portfolio?ref=Jozoor
* License: GPL2
*
* Text Domain: arabic-webfonts
* Domain Path: /lang/
*
* @package Arabic_Webfonts
* @author Jozoor Team
* @since 1.0
*/
// If this file is called directly, abort.
if (!defined('ABSPATH')) {
exit;
}
/**
* Require once the Composer Autoload.
*
* @since 1.4.5
*/
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
// Load the core plugin class.
require_once plugin_dir_path(__FILE__) . 'includes/class-arabic-webfonts.php';
/**
* Run activation/deactivation hook.
*
* @since 1.0
*/
register_activation_hook(__FILE__, array('AWF_Arabic_Webfonts', 'activate'));
register_activation_hook(__FILE__, array('AWF_Arabic_Webfonts', 'deactivate'));
/**
* Begins execution of the plugin.
*
* @since 1.0
* @return object AWF_Arabic_Webfonts
*/
function awf_run_arabic_webfonts()
{
// load plugin textdomain.
load_plugin_textdomain('arabic-webfonts', false, dirname(plugin_basename(__FILE__)) . '/lang/');
// run the plugin
new AWF_Arabic_Webfonts();
}
add_action('plugins_loaded', 'awf_run_arabic_webfonts');