-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPF_Zenodo.php
45 lines (45 loc) · 1.62 KB
/
PF_Zenodo.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
<?php
/*
Plugin Name: PressForward Zenodo Interface
Plugin URI: http://pressforward.org/
Description: TK
Version: 0.0.1
Author: Aram Zucker-Scharff,
Author URI: http://aramzs.me,
License: GPL2
*/
/*
Developed for Arce.li and PressForward
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
define( 'PF_A_ROOT', dirname( __FILE__ ) );
define( 'PF_A_FILE_PATH', PF_A_ROOT . '/' . basename( __FILE__ ) );
define( 'PF_A_URL', plugins_url( '/', __FILE__ ) );
/**
* Bootstrap
*
* You can also use this to get a value out of the global, eg
*
* $foo = pressforward_ab_subscriber()->bar;
*
* @since 1.0
*/
function pressforward_arceli() {
require dirname( __FILE__ ) . '/controllers/http/json_workers.php';
require dirname( __FILE__ ) . '/models/class-Submit_Object.php';
require dirname( __FILE__ ) . '/models/class-Zenodo_Metadata.php';
require dirname( __FILE__ ) . '/includes/wp-to-jats.php';
require dirname( __FILE__ ) . '/includes/wp-to-zenodo.php';
wp_to_jats();
// return PF_AB_Subscriber::init();
}
add_action( 'pressforward_init', 'pressforward_arceli' );