-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqa-plugin.php
More file actions
36 lines (26 loc) · 1.57 KB
/
Copy pathqa-plugin.php
File metadata and controls
36 lines (26 loc) · 1.57 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
<?php
if (!defined('QA_VERSION')) {
header('Location: ../../');
exit;
}
// Make plugin directory available for other plugins to load SMP classes
define('SMP_PLUGIN_DIR', dirname(__FILE__) . '/');
// Register admin module
qa_register_plugin_module('process', 'SmpAdmin.php', 'SmpAdmin', 'Social Media Poster Admin');
// Register event handlers
qa_register_plugin_module('event', 'SmpEventQuestion.php', 'SmpEventQuestion', 'SMP Event Question');
qa_register_plugin_module('event', 'SmpEventExam.php', 'SmpEventExam', 'SMP Event Exam');
qa_register_plugin_module('event', 'SmpEventBlog.php', 'SmpEventBlog', 'SMP Event Blog');
qa_register_plugin_module('event', 'SmpEventJob.php', 'SmpEventJob', 'SMP Event Job');
// Register token expiry checker (runs daily)
qa_register_plugin_module('process', 'SmpTokenChecker.php', 'SmpTokenChecker', 'SMP Token Checker');
// Register daily poster (QOTD & Quote of the Day)
qa_register_plugin_module('process', 'SmpDailyPoster.php', 'SmpDailyPoster', 'SMP Daily Poster');
// Register auto-reply bot (spam detection + reply to social media comments)
qa_register_plugin_module('process', 'SmpAutoReply.php', 'SmpAutoReply', 'SMP Auto Reply Bot');
// Register Google OAuth callback page
qa_register_plugin_module('page', 'SmpOAuthCallback.php', 'SmpOAuthCallback', 'SMP OAuth Callback');
// Register layer for manual share checkboxes on post pages
qa_register_plugin_layer('SmpLayer.php', 'Social Media Poster Layer');
// Register layer for user profile Social Sharing tab
qa_register_plugin_layer('SmpUserPage.php', 'Social Media User Profile Layer');