forked from blobaugh/wordpress-goodreads-bookshelf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookshelf.php
44 lines (33 loc) · 1.36 KB
/
bookshelf.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
<?php
/*
Plugin Name: WordPress Goodreads Bookshelf
Version: beta
Plugin URI: http://thoughtcramps.com/wordpress-goodreads-bookshelf/
Description: Display a custom list of books from your <a href="http://www.goodreads.com" target="_blank">Goodreads</a> bookshelves. You can choose from any one of your bookshelves including your custom shelves on Goodreads. Then you can stylize the display of the list however you want using your own HTML and CSS.
Author: Ben Lobaugh
Author URI: http://ben.lobaugh.net
Text Domain: wp-goodreads-bookshelf
*/
define( 'WPB_TEXTDOMAIN', 'wp-goodreads-bookshelf' );
define( 'WPB_PLUGIN_DIR', trailingslashit( dirname( __FILE__) ) );
define( 'WPB_PLUGIN_URL', trailingslashit ( WP_PLUGIN_URL . "/" . basename( __DIR__ ) ) );
define( 'WPB_PLUGIN_FILE', WPB_PLUGIN_DIR . basename( __DIR__ ) . ".php" );
define( 'WPB_GOODREADS_API_ENTRY', 'http://goodreads.com/' );
/*
* Global level connection for the Goodreads API
*/
require_once( WPB_PLUGIN_DIR . 'lib/WPBGoodreadsApi.class.php' );
$wpb_api = new WPBGoodreadsApi( );
/*
* Setup and manage options for system
*/
require_once( WPB_PLUGIN_DIR . 'lib/WPBOptions.class.php' );
$wpb_options = new WPBOptions();
/*
* Grab the widgets
*/
require_once( WPB_PLUGIN_DIR . 'lib/widgets/widgets.php' );
/*
* Grab the shortcodes
*/
require_once( WPB_PLUGIN_DIR . 'lib/shortcodes/shortcodes.php' );