-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlibrary.php
executable file
·50 lines (42 loc) · 1.71 KB
/
library.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
<?php
/**
* Library
*
* Create a library of reusable terms (strings) and display their
* contents anywhere on your site with a shortcode.
*
* @package Library
* @author Patrick Daly <patrick@developdaly.com>
* @license GPL-2.0+
* @link http://wordpress.org/plugins/library/plugins/library
* @copyright 2014 Patrick Daly
*
* @wordpress-plugin
* Plugin Name: Library
* Plugin URI: http://wordpress.org/plugins/library
* Description: Create a library of reusable terms (strings) and display their contents anywhere on your site with a shortcode.
* Version: 1.1.0
* Author: Patrick Daly
* Author URI: http://developdaly.com
* Text Domain: library
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/developdaly/library
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/*----------------------------------------------------------------------------*
* Public-Facing Functionality
*----------------------------------------------------------------------------*/
require_once( plugin_dir_path( __FILE__ ) . 'public/class-library.php' );
add_action( 'plugins_loaded', Library::get_instance() );
/*----------------------------------------------------------------------------*
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-library-admin.php' );
add_action( 'plugins_loaded', Library_Admin::get_instance() );
}