-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshortcode-revolution.php
More file actions
45 lines (39 loc) · 1.87 KB
/
shortcode-revolution.php
File metadata and controls
45 lines (39 loc) · 1.87 KB
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
<?php
/*
Plugin Name: Shortcode Revolution
Plugin URI: http://calendarscripts.info/shortcode-revolution/
Description: Shortcode everything. The low code / no code tool for WordPress developers, designers, and power users.
Author: Kiboko Labs
Version: 0.4.2
Author URI: http://calendarscripts.info/
License: GPLv2 or later
Text domain: shortcode-revolution
*/
define( 'SREVO_PATH', dirname( __FILE__ ) );
define( 'SREVO_RELATIVE_PATH', dirname( plugin_basename( __FILE__ )));
define( 'SREVO_URL', plugin_dir_url( __FILE__ ));
// require controllers and models
require_once(SREVO_PATH.'/models/main.php');
require_once(SREVO_PATH.'/helpers/htmlhelper.php');
require_once(SREVO_PATH.'/controllers/shortcodes.php');
require_once(SREVO_PATH.'/controllers/ajax.php');
require_once(SREVO_PATH.'/controllers/posts.php');
require_once(SREVO_PATH.'/controllers/popups.php');
require_once(SREVO_PATH.'/controllers/grid.php');
require_once(SREVO_PATH.'/controllers/tabs.php');
require_once(SREVO_PATH.'/controllers/buttons.php');
require_once(SREVO_PATH.'/controllers/tables.php');
require_once(SREVO_PATH.'/controllers/flashcards.php');
require_once(SREVO_PATH.'/controllers/data.php');
require_once(SREVO_PATH.'/controllers/templates.php');
require_once(SREVO_PATH.'/controllers/generator.php');
require_once(SREVO_PATH.'/controllers/custom.php');
add_action('init', array("ShortcodeRevolution", "init"));
register_activation_hook(__FILE__, array("ShortcodeRevolution", "install"));
add_action('admin_menu', array("ShortcodeRevolution", "menu"));
add_action('admin_enqueue_scripts', array("ShortcodeRevolution", "admin_scripts"));
// show the things on the front-end
add_action( 'wp_enqueue_scripts', array("ShortcodeRevolution", "front_scripts"));
// other actions
add_action('wp_ajax_srevo_ajax', ['ShortcodeRevolutionAjax', 'main']);
add_action('wp_ajax_nopriv_srevo_ajax', ['ShortcodeRevolutionAjax', 'main']);