-
Notifications
You must be signed in to change notification settings - Fork 0
/
triage-algorithm.php
executable file
·43 lines (36 loc) · 1.67 KB
/
triage-algorithm.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
<?php
/*
Plugin Name: Triage Algorithm
Plugin URI: http://windwake.io
Description: Create a Triage Algorithm where Questions are asked for specific Topic and Answers translated into clinical decision support information.
Author: WindWake Healthcare Technologies LLC
Version: 7.0
Author URI: http://windwake.io
License: GPLv2 or later
Text domain: chained
*/
define( 'CHAINED_PATH', dirname( __FILE__ ) );
define( 'CHAINED_RELATIVE_PATH', dirname( plugin_basename( __FILE__ )));
define( 'CHAINED_URL', plugin_dir_url( __FILE__ ));
// require controllers and models
require_once(CHAINED_PATH.'/models/basic.php');
require_once(CHAINED_PATH.'/models/quiz.php');
require_once(CHAINED_PATH.'/models/result.php');
require_once(CHAINED_PATH.'/models/question.php');
require_once(CHAINED_PATH.'/controllers/quizzes.php');
require_once(CHAINED_PATH.'/controllers/results.php');
require_once(CHAINED_PATH.'/controllers/questions.php');
require_once(CHAINED_PATH.'/controllers/completed.php');
require_once(CHAINED_PATH.'/controllers/shortcodes.php');
require_once(CHAINED_PATH.'/controllers/ajax.php');
require_once(CHAINED_PATH.'/controllers/social-sharing.php');
require_once(CHAINED_PATH.'/helpers/htmlhelper.php');
add_action('init', array("ChainedQuiz", "init"));
register_activation_hook(__FILE__, array("ChainedQuiz", "install"));
add_action('admin_menu', array("ChainedQuiz", "menu"));
add_action('admin_enqueue_scripts', array("ChainedQuiz", "scripts"));
// show the things on the front-end
add_action( 'wp_enqueue_scripts', array("ChainedQuiz", "scripts"));
// other actions
add_action('wp_ajax_chainedquiz_ajax', 'chainedquiz_ajax');
add_action('wp_ajax_nopriv_chainedquiz_ajax', 'chainedquiz_ajax');