-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
33 lines (30 loc) · 1001 Bytes
/
functions.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
<?php
/**
* Amarkal Core
*
* The core module of the Amarkal framework.
*
* @package amarkal-core
* @author Askupa Software <[email protected]>
* @link https://github.com/amarkal/amarkal-core
* @copyright 2017 Askupa Software
*/
// Prevent direct file access
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
/**
* Prevent loading the library more than once
*/
if( defined( 'AMARKAL_CORE' ) ) return false;
define( 'AMARKAL_CORE', true );
if(!function_exists('amarkal_core_enqueue_scripts'))
{
/**
* Enqueue Amarkal Core styles & scripts.
*/
function amarkal_core_enqueue_scripts()
{
\wp_enqueue_script('amarkal-core',Amarkal\Core\Utility::path_to_url(__DIR__.'/assets/js/dist/amarkal-core.min.js'),array('jquery'),false,true);
\wp_enqueue_style('amarkal-core',Amarkal\Core\Utility::path_to_url(__DIR__.'/assets/css/dist/amarkal-core.min.css'),array());
}
\add_action('admin_init','amarkal_core_enqueue_scripts');
}