-
Notifications
You must be signed in to change notification settings - Fork 0
/
qa-plugin.php
29 lines (23 loc) · 926 Bytes
/
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
<?php
/*
Plugin Name: PrevNav
Plugin URI: https://github.com/arjunsuresh/prevnav
Plugin Update Check URI: https://raw.github.com/arjunsuresh/prevnav/master/qa-plugin.php
Plugin Description: Adds nav bar to sidepanel
Plugin Version: 1.0
Plugin Date: 2015-11-08
Plugin Author: Arjun
Plugin Author URI:
Plugin License: GPLv2
Plugin Minimum Question2Answer Version: 1.7
*/
if (!defined('QA_VERSION')) { // don't allow this page to be requested directly from browser
header('Location: ../../');
exit;
}
qa_register_plugin_layer('qa-prevnav-layer.php', 'Prev Nav Layer');
qa_register_plugin_module('module', 'qa-prevnav-admin.php', 'qa_prevnav_admin', 'PrevNav Admin');
qa_register_plugin_module('widget', 'qa-prevnav-widget.php', 'qa_prevnav_widget', 'Prev Nav Widget');
/*
Omit PHP closing tag to help avoid accidental output
*/