-
Notifications
You must be signed in to change notification settings - Fork 12
/
simple-custom-css.php
51 lines (45 loc) · 1.71 KB
/
simple-custom-css.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
/**
* Plugin Name: Simple Custom CSS
* Plugin URI: http://johnregan3.github.io/simple-custom-css
* Description: The simple, solid way to add custom CSS to your WordPress website. Simple Custom CSS allows you to add your own styles or override the default CSS of a plugin or theme.
* Author: John Regan
* Author URI: http://regan.dev
* Version: 4.0.6
* Text Domain: simple-custom-css
*
* Copyright 2014-2022 John Regan (email : [email protected])
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* 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.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* @package SCCSS
* @author John Regan
* @version 4.0.6
*/
global $wp_version;
// Prevent direct file access.
if ( ! defined( 'ABSPATH' ) ) {
die();
}
define( 'SCCSS_FILE', __FILE__ );
define( 'SCCSS_OPTION', 'sccss_settings' );
if ( ! is_admin() ) {
include_once dirname( SCCSS_FILE ) . '/includes/public.php';
} elseif ( ! defined( 'DOING_AJAX' ) ) {
include_once dirname( SCCSS_FILE ) . '/includes/admin.php';
}
// Load the customizer control on later versions of WP.
if ( function_exists( 'wp_is_block_theme' ) && ! wp_is_block_theme() ) {
include_once dirname( SCCSS_FILE ) . '/includes/customizer.php';
}