-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensei-module-collapse.php
51 lines (46 loc) · 1.37 KB
/
sensei-module-collapse.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
<?php
/*
* Plugin Name: Pango Sensei Module Collapse
* Version: 1.2.6
* Plugin URI: http://pango.world
* Description: Add collapsible modules to your Sensei courses
* Author: Pango
* Author URI: http://pango.world
* Requires at least: 3.5
* Tested up to: 4.4
* @package WordPress
* @author Pango
* @since 1.0.0
*/
if ( ! defined('ABSPATH')) {
exit;
}
/**
* Functions used by plugins
*/
if ( ! class_exists('WooThemes_Sensei_Dependencies')) {
require_once 'woo-includes/class-woothemes-sensei-dependencies.php';
}
/**
* Sensei Detection
*/
if ( ! function_exists('is_sensei_active')) {
function is_sensei_active() {
return WooThemes_Sensei_Dependencies::sensei_active_check();
}
}
/**
* Include plugin class
*/
if (is_sensei_active()) {
require_once('classes/class-sensei-module-collapse.php');
global $sensei_module_collapse;
$sensei_module_collapse = new Sensei_Module_Collapse(__FILE__);
require_once('classes/class-sensei-module-collapse-settings.php');
global $sensei_module_collapse_settings;
$sensei_module_collapse_settings = new Sensei_Module_Collapse_Settings(__FILE__);
}
function sensei_collapse_load_scripts() {
wp_enqueue_style('font-awesome-css', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css' , array(), '1.0.0');
}
add_action('wp_enqueue_scripts', 'sensei_collapse_load_scripts');