-
Notifications
You must be signed in to change notification settings - Fork 9
/
qa-plugin.php
40 lines (32 loc) · 1.17 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
<?php
/*
Plugin Name: Blog Post
Plugin URI: https://github.com/JacksiroKe/q2a-blog-post
Plugin Description: Allows registered users to maintain a blog on your Q2A site
Plugin Version: 5.0
Plugin Date: 2014-04-01
Plugin Author: JacksiroKe
Plugin Author URI: https://github.com/JacksiroKe
Plugin License: GPLv3
Plugin Minimum Question2Answer Version: 1.6
Plugin Update Check URI: https://github.com/JacksiroKe/q2a-blog-post/master/VERSION.txt
*/
if ( !defined('QA_VERSION') )
{
header('Location: ../../');
exit;
}
define( "QA_LIMIT_BLOG_POSTS", "BP");
define( "QA_LIMIT_BLOG_COMMENTS", "BC");
define( "QA_DB_RETRIEVE_PS_AS", 50 );
define( "QA_DB_RETRIEVE_WRITE_TAG_PS", 500 );
define( "QA_DB_MAX_EVENTS_PER_P", 5 );
$plugin_dir = dirname( __FILE__ ) . '/';
$plugin_url = qa_path_to_root().'qa-plugin/q2a-blog-post';
qa_register_layer('blog-admin.php', 'Blog Settings', $plugin_dir, $plugin_url );
qa_register_plugin_phrases('langs/blog-lang-*.php', 'bp_lang');
qa_register_plugin_module('page', 'blog-post.php', 'blog_post', 'Blog Post');
qa_register_plugin_layer('blog-layer.php', 'Blog Post: User Page');
/*
Omit PHP closing tag to help avoid accidental output
*/