-
Notifications
You must be signed in to change notification settings - Fork 1
/
grid-plus-modal.php
54 lines (41 loc) · 1.16 KB
/
grid-plus-modal.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
<?php
/*
Plugin Name: Grid plus modal
Plugin URI: https://github.com/TheBnl/Grid-plus-modal
Description: Modal toevoeging, speciaal voor Donna.
Author: Bram de Leeuw
Version: 0.1
Author URI: https://github.com/TheBnl
*/
// Derive the current path and load up Sanity
$plugin_path = dirname(__FILE__) . '/';
if (class_exists('SanityPluginFramework') != true) {
require_once($plugin_path . 'framework/sanity.php');
}
class GridPlusModal extends SanityPluginFramework
{
var $version = '0.1';
var $plugin_css = array(
'/js/thirdparty/fancybox/dist/jquery.fancybox'
);
var $plugin_js = array(
'/js/thirdparty/jquery/dist/jquery.min',
'/js/thirdparty/fancybox/dist/jquery.fancybox',
'/js/grid-plus-modal'
);
function __construct()
{
parent::__construct(__FILE__);
}
function activate()
{}
function initialize()
{
$this->load_plugin_scripts();
}
}
$gridPlusModal = new GridPlusModal();
// Add an activation hook
register_activation_hook(__FILE__, array(&$gridPlusModal, 'activate'));
// Run the plugins initialization method
add_action('init', array(&$gridPlusModal, 'initialize'));