forked from PressForward/pressforward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpressforward.php
57 lines (47 loc) · 1.73 KB
/
pressforward.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
<?php
/*
Plugin Name: PressForward
Plugin URI: http://pressforward.org/
Description: The PressForward Plugin is a tool by the Roy Rosenzweig Center for History and New Media for aggregating and curating web-based content within the WordPress dashboard.
Version: 5.2.2
GitHub Plugin URI: https://github.com/PressForward/pressforward
Author: Aram Zucker-Scharff, Boone B Gorges, Jeremy Boggs
Author URI: http://pressforward.org/about/team/
License: GPL2
Text Domain: pf
Domain Path: /languages
*/
// var_dump('2<pre>');
// Set up some constants
define( 'PF_SLUG', 'pf' );
define( 'PF_TITLE', 'PressForward' );
define( 'PF_MENU_SLUG', PF_SLUG . '-menu' );
define( 'PF_NOM_EDITOR', 'edit.php?post_type=nomination' );
define( 'PF_NOM_POSTER', 'post-new.php?post_type=nomination' );
define( 'PF_ROOT', dirname( __FILE__ ) );
define( 'PF_FILE_PATH', PF_ROOT . '/' . basename( __FILE__ ) );
define( 'PF_URL', plugins_url( '/', __FILE__ ) );
define( 'PF_VERSION', '5.2' );
// Protect File.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! class_exists( 'WPUpdatePHP' ) ) {
require 'Libraries/WPUpdatePHP.php';
}
if ( ! class_exists( 'MyCLabs\Enum\Enum' ) ) {
require 'Libraries/Enum.php';
}
$PHPCheck = new WPUpdatePHP( '5.3.0' );
$PHPCheck->set_plugin_name( 'PressForward' );
if ( (PHP_VERSION < 5.3) || ( ! $PHPCheck->does_it_meet_required_php_version( PHP_VERSION ) ) ) {
wp_die( 'As of version 3.9.0 PressForward requires at least PHP 5.3.' );
return;
} else {
require( 'init.php' );
}
function pressforward_load_plugin_textdomain() {
load_plugin_textdomain( 'pf', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
}
add_action( 'plugins_loaded', 'pressforward_load_plugin_textdomain' );
// call_user_func(array(new Application(__FILE__), 'boot'));