-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathqa-plugin.php
38 lines (33 loc) · 1.2 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
<?php
/*
Plugin Name: Simple Social Sharing
Plugin URI: http://www.question2answer.org/qa/31585
Plugin Description: Adds Simple Clickable Social Sharing Buttons Below Questions
Plugin Version: 1.4
Plugin Date: 2014-02-01
Plugin Author: Digitizor Media
Plugin Author URI: http://digitizormedia.com
Plugin License: GPLv2
Plugin Minimum Question2Answer Version: 1.5
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_layer(
'qa-simple-social-sharing-layer.php', // PHP file containing layer
'Simple Social Sharing Layer' // human-readable name of layer
);
qa_register_plugin_module(
'module', // type of module
'qa-simple-social-sharing-module.php', // PHP file containing module class
'qa_simple_social_sharing_module', // name of module class
'Simple Social Sharing Options' // human-readable name of module
);
qa_register_plugin_module(
'widget', // type of module
'qa-simple-social-sharing-widget.php', // PHP file containing module class
'qa_simple_social_sharing_widget', // module class name in that PHP file
'Simple Social Sharing Widget' // human-readable name of module
);