forked from grimicorn/wp-better-attachments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp-better-attachments.php
55 lines (48 loc) · 1.14 KB
/
wp-better-attachments.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
<?php
/**
* @package WP_Better_Attachments
* @version 1.3.4
*/
/*
Plugin Name: WP Better Attachments
Plugin URI: http://dholloran.github.io/wp-better-attachments
Description: Better Wordpress Attachments
Author: Dan Holloran
Version: 1.3.4
Author URI: http://danholloran.com/
*/
define( 'WPBA_VERSION', '1.3.3' );
define( 'WPBA_LANG', 'wpba' );
define( 'WPBA_PATH', plugin_dir_path(__FILE__) );
/*
* Pretty Print Debug Function
*
* Only on localhost
*/
if ( !function_exists( 'pp' ) ) {
function pp( $value )
{
if( $_SERVER['HTTP_HOST'] != 'localhost' ) return;
echo "<pre>";
if ( $value ) {
print_r( $value );
} else {
var_dump( $value );
}
echo "</pre>";
} // pp()
} // if()
/**
* Required Classes
*/
require_once "libs/wp-settings-api-bootstrap/class.wp-settings-api-bootstrap.php";
require_once "classes/class-wp-better-attachments.php";
require_once "classes/class-wpba-meta-box.php";
require_once "classes/class-wpba-crop-resize.php";
require_once "classes/class-wpba-ajax.php";
require_once "classes/class-wpba-settings.php";
require_once "classes/class-wpba-frontend.php";
/**
* Includes
*/
require_once "inc/shortcodes.inc.php";