-
Notifications
You must be signed in to change notification settings - Fork 1
/
mcninja-post-styles.php
50 lines (42 loc) · 1.34 KB
/
mcninja-post-styles.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
/**
* McNinja Post Styles
*
* @package McNinja_Post_Styles
* @author TomHarrigan
* @license GPL-2.0+
* @link http://thomasharrigan.com/mcninja-post-styles
*
* @wordpress-plugin
* Plugin Name: McNinja Post Styles
* Version: 2.0
* Author: TomHarrigan
* Plugin URI: http://thomasharrigan.com/mcninja-post-styles
* Description: Unleash the creativity of your content with custom post formats.
* Author URI: http://thomasharrigan.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: Post style
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
} // end if
require_once( plugin_dir_path( __FILE__ ) . 'class-post-styles.php' );
add_action( 'plugins_loaded', array( 'McNinja_Post_Styles', 'get_instance' ) );
function get_post_style() {
return McNinja_Post_Styles::get_instance()->get_post_style();
}
function has_post_style() {
return McNinja_Post_Styles::get_instance()->has_post_style();
}
function set_post_style() {
return McNinja_Post_Styles::get_instance()->set_post_style();
}
function get_post_style_link( $link ) {
return McNinja_Post_Styles::get_instance()->get_post_style_link( $link );
}
function get_post_style_string( $slug ) {
return McNinja_Post_Styles::get_instance()->get_post_style_string( $slug );
}