-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqa-plugin.php
54 lines (49 loc) · 1.8 KB
/
qa-plugin.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: Payzone donation widget
Plugin URI: https://github.com/Sshuichi/q2a-donations-payzone
Plugin Description: Allows donations VIA payzone
Plugin Version: 1.0
Plugin Date: 2017-01-01
Plugin Author: Sshuicchi
Plugin Author URI:
Plugin License: GPLv2
Plugin Minimum Question2Answer Version: 1.7
Plugin Update Check URI:
*/
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../../');
exit;
}
qa_register_plugin_module(
'widget', // type of module
'qa-donations-payzone-widget.php', // PHP file containing module class
'qa_donations_payzone_widget', // module class name in that PHP file
'Payzone widget payments' // human-readable name of module
);
qa_register_plugin_layer(
'qa-donations-payzone-layer.php', // PHP file containing layer
'Donations Layer' // human-readable name of layer
);
qa_register_plugin_module(
'page', // type of module
'qa-donations-payzone-page.php', // PHP file containing module class
'qa_donations_payzone_page', // name of module class
'Pre donation page.' // human-readable name of module
);
qa_register_plugin_module(
'page', // type of module
'qa-donations-payzone-process.php', // PHP file containing module class
'qa_donations_payzone_process', // name of module class
'Process call back of plugin' // human-readable name of module
);
qa_register_plugin_module(
'page', // type of module
'qa-donations-payzone-thank.php', // PHP file containing module class
'qa_donations_payzone_thank', // name of module class
'Thank you page' // human-readable name of module
);
qa_register_plugin_phrases(
'qa-donations-payzone-lang-*.php', // pattern for language files
'plugin_donations_payzone' // prefix to retrieve phrases
);