forked from glebpineparks/job-postings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job-postings.php
75 lines (55 loc) · 2.27 KB
/
job-postings.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
/*
Plugin Name: Jobs for Wordpress
Plugin URI: https://wordpress.org/plugins/job-postings/
Description: WordPress plugin that make it easy to add job postings to your company’s website in a structured way.
Author: BlueGlass
Version: 2.3.0
Author URI: http://blueglass.ee/en/
Text Domain: job-postings
Domain Path: /languages
*/
if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
define('JOBPOSTINGSVERSION', '2.3.0');
define('JOBPOSTINGSPATH', plugin_dir_path( __FILE__ ));
define('JOBPOSTINGSURL', plugin_dir_url(__FILE__));
// Load text domain for translations
function job_postings_plugin_langs_init() {
load_plugin_textdomain( 'job-postings', false, basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action('init', 'job_postings_plugin_langs_init');
include_once('include/class-bg-analytics.php');
//do analytics
$BlueGlassAnalytics = new BG_Analytics();
/*
spl_autoload_register(function($className) {
$className = str_replace("\\", DIRECTORY_SEPARATOR, $className);
$file = JOBPOSTINGSPATH . 'include/class-' . $className . '.php';
if( file_exists($file) ) include_once $file;
});
*/
include_once('verify/class-jobs-module-verify.php');
include_once('include/class-job-security.php');
include_once('include/class-job-posting-helper.php');
include_once('include/class-job-settings.php');
include_once('include/class-job-post-type.php');
include_once('include/class-job-dependencies.php');
include_once('include/class-job-add-edit.php');
include_once('include/class-job-entry.php');
// Include main class
include_once('class-job-postings.php');
include_once('include/class-job-get-uploaded-file.php');
include_once('include/class-job-single-view.php');
include_once('include/class-job-apply-form.php');
include_once('include/class-job-notifications.php');
include_once('include/class-job-application-submit.php');
//Shortcodes
include_once('include/shortcodes/class-job-category.php');
include_once('include/shortcodes/class-job-search.php');
include_once('include/shortcodes/class-job-list.php');
include_once('include/shortcodes/class-job-single.php');
Job_Postings::load();
//add_action( 'init', array( 'Job_Postings', 'load' ), 100);
// Install defaults on plugin activation
register_activation_hook( __FILE__, array('Job_Postings', 'jobs_plugin_add_defaults') );
?>