-
Notifications
You must be signed in to change notification settings - Fork 2
/
lb-colorbox.php
54 lines (53 loc) · 1.93 KB
/
lb-colorbox.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
/**
* Plugin Name: LB ColorBox
* Plugin URI: http://literalbarrage.org/blog/code/colorbox
* Description: Store custom color swatches as custom posts for fun and profit (and use in themes!).
* Version: 0.6
* Author: Doug Stewart
* Author URI: http://literalbarrage.org/blog/
*
* Copyright (c) 2012 Doug Stewart. All rights reserved.
*
* Released under the GPL license
* http://www.opensource.org/licenses/gpl-license.php
*
* This is an add-on for WordPress
* http://wordpress.org/
*
* **********************************************************************
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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.
* **********************************************************************
*
* LB Colorbox Main
*
* @package LB-Colorbox
* @copyright Copyright (c) 2012, Doug Stewart
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
*
* @since LB-Colorbox 0.5
*
* Stubbed-out loader.
*/
if( is_admin() ){
include( 'include/lbcb-options.php' );
include( 'include/lbcb-list-table.php' );
include( 'include/lbcb-ajax.php' );
}
include( 'include/lbcb-cpt.php' );
include( 'include/KulerPHP/Kuler/Api.php' );
include( 'include/lbcb-kuler.php' );
include( 'include/lbcb-output.php' );
function lbcb_enqueue_styles(){
wp_enqueue_style( 'lb-colorbox', plugin_dir_url(__FILE__) . 'include/css/lbcb-core.css', '', '', 'screen' );
}
add_action( 'wp_enqueue_scripts', 'lbcb_enqueue_styles', 11 );
add_action( 'admin_print_styles', 'lbcb_enqueue_styles', 11 );