Version Description
- Feb 26, 2016 =
- Support WordPress 4.4.2
- Change text domain to
theme-junkie-custom-css
Download this release
Release Info
Developer | themejunkie |
Plugin | TJ Custom CSS |
Version | 0.1.6 |
Comparing to | |
See all releases |
Code changes from version 0.1.5 to 0.1.6
- admin/admin.php +19 -19
- admin/customize-control-textarea.php +4 -4
- admin/customize.php +5 -5
- inc/functions.php +4 -4
- languages/{tjcc.pot → theme-junkie-custom-css.pot} +19 -15
- readme.txt +11 -7
- tj-custom-css.php +10 -10
admin/admin.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Custom CSS setting.
|
4 |
-
*
|
5 |
* @package Theme_Junkie_Custom_CSS
|
6 |
* @since 0.1.0
|
7 |
* @author Theme Junkie
|
8 |
-
* @copyright Copyright (c) 2014, Theme Junkie
|
9 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
11 |
|
@@ -19,8 +19,8 @@ function tjcc_custom_css_menu() {
|
|
19 |
|
20 |
/* Add Custom CSS menu under the Appearance. */
|
21 |
$setting = add_theme_page(
|
22 |
-
__( 'TJ Custom CSS', '
|
23 |
-
__( 'Custom CSS', '
|
24 |
'edit_theme_options',
|
25 |
'tj-custom-css',
|
26 |
'tjcc_custom_css_page'
|
@@ -37,7 +37,7 @@ add_action( 'admin_menu', 'tjcc_custom_css_menu', 20 );
|
|
37 |
|
38 |
/**
|
39 |
* Load scripts and styles for the custom css page.
|
40 |
-
*
|
41 |
* @since 0.1.0
|
42 |
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script
|
43 |
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_style
|
@@ -86,17 +86,17 @@ function tjcc_custom_css_page() {
|
|
86 |
|
87 |
<div class="wrap">
|
88 |
|
89 |
-
<h2><?php _e( 'TJ Custom CSS', '
|
90 |
-
<p><?php _e( 'Hi There, thanks for using our plugin we hope you enjoy it.', '
|
91 |
|
92 |
<?php settings_errors(); ?>
|
93 |
-
|
94 |
<div id="post-body" class="tjcc-custom-css metabox-holder columns-2">
|
95 |
-
|
96 |
<div id="post-body-content">
|
97 |
|
98 |
<form action="options.php" method="post">
|
99 |
-
|
100 |
<?php settings_fields( 'tj_custom_css' ); ?>
|
101 |
|
102 |
<div class="tjcc-custom-css-container">
|
@@ -104,11 +104,11 @@ function tjcc_custom_css_page() {
|
|
104 |
</div>
|
105 |
|
106 |
<p class="description">
|
107 |
-
<?php printf( __( '%1$sGetting started with CSS%2$s.', '
|
108 |
</p>
|
109 |
-
|
110 |
-
<?php submit_button( esc_attr__( 'Save', '
|
111 |
-
|
112 |
</form>
|
113 |
|
114 |
</div><!-- .post-body-content -->
|
@@ -117,16 +117,16 @@ function tjcc_custom_css_page() {
|
|
117 |
<div>
|
118 |
|
119 |
<div class="postbox">
|
120 |
-
<h3 class="hndle"><span><?php _e( 'Premium Themes', '
|
121 |
<div class="inside">
|
122 |
-
<p><?php printf( __( 'Get our
|
123 |
</div>
|
124 |
</div>
|
125 |
|
126 |
<div class="postbox">
|
127 |
-
<h3 class="hndle"><span><?php _e( 'Live Preview', '
|
128 |
<div class="inside">
|
129 |
-
<p><?php printf( __( 'If you want to add custom css and see the live preview, please go to the %1$sCustomize%2$s page and open the Custom CSS section.', '
|
130 |
</div>
|
131 |
</div>
|
132 |
|
@@ -147,4 +147,4 @@ function tjcc_custom_css_page() {
|
|
147 |
function tj_custom_css_setting_validate( $input ) {
|
148 |
$input['custom_css'] = wp_kses( $input['custom_css'], array( '\'', '\"', '>', '+' ) );
|
149 |
return $input;
|
150 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
* Custom CSS setting.
|
4 |
+
*
|
5 |
* @package Theme_Junkie_Custom_CSS
|
6 |
* @since 0.1.0
|
7 |
* @author Theme Junkie
|
8 |
+
* @copyright Copyright (c) 2014 - 2016, Theme Junkie
|
9 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
11 |
|
19 |
|
20 |
/* Add Custom CSS menu under the Appearance. */
|
21 |
$setting = add_theme_page(
|
22 |
+
__( 'TJ Custom CSS', 'theme-junkie-custom-css' ),
|
23 |
+
__( 'Custom CSS', 'theme-junkie-custom-css' ),
|
24 |
'edit_theme_options',
|
25 |
'tj-custom-css',
|
26 |
'tjcc_custom_css_page'
|
37 |
|
38 |
/**
|
39 |
* Load scripts and styles for the custom css page.
|
40 |
+
*
|
41 |
* @since 0.1.0
|
42 |
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_script
|
43 |
* @link http://codex.wordpress.org/Function_Reference/wp_enqueue_style
|
86 |
|
87 |
<div class="wrap">
|
88 |
|
89 |
+
<h2><?php _e( 'TJ Custom CSS', 'theme-junkie-custom-css' ) ?></h2>
|
90 |
+
<p><?php _e( 'Hi There, thanks for using our plugin we hope you enjoy it.', 'theme-junkie-custom-css' ); ?></p>
|
91 |
|
92 |
<?php settings_errors(); ?>
|
93 |
+
|
94 |
<div id="post-body" class="tjcc-custom-css metabox-holder columns-2">
|
95 |
+
|
96 |
<div id="post-body-content">
|
97 |
|
98 |
<form action="options.php" method="post">
|
99 |
+
|
100 |
<?php settings_fields( 'tj_custom_css' ); ?>
|
101 |
|
102 |
<div class="tjcc-custom-css-container">
|
104 |
</div>
|
105 |
|
106 |
<p class="description">
|
107 |
+
<?php printf( __( '%1$sGetting started with CSS%2$s.', 'theme-junkie-custom-css' ), '<a href="https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started" target="_blank">', '</a>' ); ?>
|
108 |
</p>
|
109 |
+
|
110 |
+
<?php submit_button( esc_attr__( 'Save', 'theme-junkie-custom-css' ), 'primary large' ); ?>
|
111 |
+
|
112 |
</form>
|
113 |
|
114 |
</div><!-- .post-body-content -->
|
117 |
<div>
|
118 |
|
119 |
<div class="postbox">
|
120 |
+
<h3 class="hndle"><span><?php _e( 'Premium Themes', 'theme-junkie-custom-css' ); ?></span></h3>
|
121 |
<div class="inside">
|
122 |
+
<p><?php printf( __( 'Get our 65 premium WordPress themes for only $99! %1$sGet it now%2$s.', 'theme-junkie-custom-css' ), '<a href="http://www.theme-junkie.com/themes/?utm_source=Custom%20CSS%20Sidebar&utm_medium=text&utm_campaign=plugin%20option%20convertion" target="_blank">', '</a>' ); ?></p>
|
123 |
</div>
|
124 |
</div>
|
125 |
|
126 |
<div class="postbox">
|
127 |
+
<h3 class="hndle"><span><?php _e( 'Live Preview', 'theme-junkie-custom-css' ); ?></span></h3>
|
128 |
<div class="inside">
|
129 |
+
<p><?php printf( __( 'If you want to add custom css and see the live preview, please go to the %1$sCustomize%2$s page and open the Custom CSS section.', 'theme-junkie-custom-css' ), '<a href="' . esc_url( admin_url( 'customize.php' ) ) . '">', '</a>' ); ?></p>
|
130 |
</div>
|
131 |
</div>
|
132 |
|
147 |
function tj_custom_css_setting_validate( $input ) {
|
148 |
$input['custom_css'] = wp_kses( $input['custom_css'], array( '\'', '\"', '>', '+' ) );
|
149 |
return $input;
|
150 |
+
}
|
admin/customize-control-textarea.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* The textarea customize control extends the WP_Customize_Control class. This class allows
|
4 |
* developers to create textarea settings within the WordPress theme customizer.
|
5 |
*
|
6 |
* @package Theme_Junkie_Custom_CSS
|
7 |
* @since 0.1.0
|
8 |
* @author Theme Junkie
|
9 |
-
* @copyright Copyright (c) 2014, Theme Junkie
|
10 |
* @link http://otto42.com/bj
|
11 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
@@ -39,5 +39,5 @@ class Tj_Customize_Control_Textarea extends WP_Customize_Control {
|
|
39 |
</div>
|
40 |
</label>
|
41 |
<?php }
|
42 |
-
|
43 |
-
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* The textarea customize control extends the WP_Customize_Control class. This class allows
|
4 |
* developers to create textarea settings within the WordPress theme customizer.
|
5 |
*
|
6 |
* @package Theme_Junkie_Custom_CSS
|
7 |
* @since 0.1.0
|
8 |
* @author Theme Junkie
|
9 |
+
* @copyright Copyright (c) 2014 - 2016, Theme Junkie
|
10 |
* @link http://otto42.com/bj
|
11 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
39 |
</div>
|
40 |
</label>
|
41 |
<?php }
|
42 |
+
|
43 |
+
}
|
admin/customize.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Customizer setting.
|
4 |
-
*
|
5 |
* @package Theme_Junkie_Custom_CSS
|
6 |
* @since 0.1.0
|
7 |
* @author Theme Junkie
|
8 |
-
* @copyright Copyright (c) 2014, Theme Junkie
|
9 |
* @link https://codex.wordpress.org/Theme_Customization_API
|
10 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
@@ -31,8 +31,8 @@ function tjcc_register_customize( $wp_customize ) {
|
|
31 |
|
32 |
$wp_customize->add_section( 'tj_custom_css_section',
|
33 |
array(
|
34 |
-
'title' => esc_html__( 'Custom CSS', '
|
35 |
-
'description' => esc_html__( 'Add your custom css code below.', '
|
36 |
'priority' => 150,
|
37 |
)
|
38 |
);
|
@@ -54,4 +54,4 @@ function tjcc_register_customize( $wp_customize ) {
|
|
54 |
) );
|
55 |
|
56 |
}
|
57 |
-
add_action( 'customize_register', 'tjcc_register_customize' );
|
1 |
<?php
|
2 |
/**
|
3 |
* Customizer setting.
|
4 |
+
*
|
5 |
* @package Theme_Junkie_Custom_CSS
|
6 |
* @since 0.1.0
|
7 |
* @author Theme Junkie
|
8 |
+
* @copyright Copyright (c) 2014 - 2016, Theme Junkie
|
9 |
* @link https://codex.wordpress.org/Theme_Customization_API
|
10 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
*/
|
31 |
|
32 |
$wp_customize->add_section( 'tj_custom_css_section',
|
33 |
array(
|
34 |
+
'title' => esc_html__( 'Custom CSS', 'theme-junkie-custom-css' ),
|
35 |
+
'description' => esc_html__( 'Add your custom css code below.', 'theme-junkie-custom-css' ),
|
36 |
'priority' => 150,
|
37 |
)
|
38 |
);
|
54 |
) );
|
55 |
|
56 |
}
|
57 |
+
add_action( 'customize_register', 'tjcc_register_customize' );
|
inc/functions.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Custom functions needed by the plugin.
|
4 |
-
*
|
5 |
* @package Theme_Junkie_Custom_CSS
|
6 |
* @since 0.1.0
|
7 |
* @author Theme Junkie
|
8 |
-
* @copyright Copyright (c) 2014, Theme Junkie
|
9 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
11 |
|
@@ -27,10 +27,10 @@ function tjcc_get_custom_css() {
|
|
27 |
$css .= '<style>' . "\n";
|
28 |
$css .= $output . "\n";
|
29 |
$css .= '</style>' . "\n";
|
30 |
-
$css .= '<!--
|
31 |
|
32 |
echo $css;
|
33 |
}
|
34 |
|
35 |
}
|
36 |
-
add_action( 'wp_head', 'tjcc_get_custom_css', 20 );
|
1 |
<?php
|
2 |
/**
|
3 |
* Custom functions needed by the plugin.
|
4 |
+
*
|
5 |
* @package Theme_Junkie_Custom_CSS
|
6 |
* @since 0.1.0
|
7 |
* @author Theme Junkie
|
8 |
+
* @copyright Copyright (c) 2014 - 2016, Theme Junkie
|
9 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
11 |
|
27 |
$css .= '<style>' . "\n";
|
28 |
$css .= $output . "\n";
|
29 |
$css .= '</style>' . "\n";
|
30 |
+
$css .= '<!-- Generated by https://wordpress.org/plugins/theme-junkie-custom-css/ -->' . "\n";
|
31 |
|
32 |
echo $css;
|
33 |
}
|
34 |
|
35 |
}
|
36 |
+
add_action( 'wp_head', 'tjcc_get_custom_css', 20 );
|
languages/{tjcc.pot → theme-junkie-custom-css.pot}
RENAMED
@@ -1,17 +1,17 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the TJ Custom CSS package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: TJ Custom CSS 0.1.
|
6 |
"Report-Msgid-Bugs-To: http://www.theme-junkie.com/support/\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: Theme Junkie (support@theme-junkie.com)\n"
|
13 |
"Language-Team: Theme Junkie (support@theme-junkie.com)\n"
|
14 |
-
"X-Generator: grunt-wp-i18n 0.5.
|
15 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
"X-Poedit-Basepath: ..\n"
|
17 |
"X-Poedit-Language: English\n"
|
@@ -31,31 +31,31 @@ msgstr ""
|
|
31 |
msgid "Custom CSS"
|
32 |
msgstr ""
|
33 |
|
34 |
-
#: admin/admin.php:
|
35 |
msgid "Hi There, thanks for using our plugin we hope you enjoy it."
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: admin/admin.php:
|
39 |
msgid "%1$sGetting started with CSS%2$s."
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: admin/admin.php:
|
43 |
msgid "Save"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: admin/admin.php:
|
47 |
msgid "Premium Themes"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: admin/admin.php:
|
51 |
-
msgid "Get our
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: admin/admin.php:
|
55 |
msgid "Live Preview"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: admin/admin.php:
|
59 |
msgid ""
|
60 |
"If you want to add custom css and see the live preview, please go to the "
|
61 |
"%1$sCustomize%2$s page and open the Custom CSS section."
|
@@ -65,8 +65,8 @@ msgstr ""
|
|
65 |
msgid "Add your custom css code below."
|
66 |
msgstr ""
|
67 |
|
68 |
-
#.
|
69 |
-
msgid "
|
70 |
msgstr ""
|
71 |
|
72 |
#. Description of the plugin/theme
|
@@ -75,4 +75,8 @@ msgstr ""
|
|
75 |
|
76 |
#. Author of the plugin/theme
|
77 |
msgid "Theme Junkie"
|
|
|
|
|
|
|
|
|
78 |
msgstr ""
|
1 |
+
# Copyright (C) 2016 Theme Junkie
|
2 |
# This file is distributed under the same license as the TJ Custom CSS package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: TJ Custom CSS 0.1.6\n"
|
6 |
"Report-Msgid-Bugs-To: http://www.theme-junkie.com/support/\n"
|
7 |
+
"POT-Creation-Date: 2016-02-26 06:18:01+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: Theme Junkie (support@theme-junkie.com)\n"
|
13 |
"Language-Team: Theme Junkie (support@theme-junkie.com)\n"
|
14 |
+
"X-Generator: grunt-wp-i18n 0.5.4\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
16 |
"X-Poedit-Basepath: ..\n"
|
17 |
"X-Poedit-Language: English\n"
|
31 |
msgid "Custom CSS"
|
32 |
msgstr ""
|
33 |
|
34 |
+
#: admin/admin.php:90
|
35 |
msgid "Hi There, thanks for using our plugin we hope you enjoy it."
|
36 |
msgstr ""
|
37 |
|
38 |
+
#: admin/admin.php:107
|
39 |
msgid "%1$sGetting started with CSS%2$s."
|
40 |
msgstr ""
|
41 |
|
42 |
+
#: admin/admin.php:110
|
43 |
msgid "Save"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: admin/admin.php:120
|
47 |
msgid "Premium Themes"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: admin/admin.php:122
|
51 |
+
msgid "Get our 65 premium WordPress themes for only $99! %1$sGet it now%2$s."
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: admin/admin.php:127
|
55 |
msgid "Live Preview"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: admin/admin.php:129
|
59 |
msgid ""
|
60 |
"If you want to add custom css and see the live preview, please go to the "
|
61 |
"%1$sCustomize%2$s page and open the Custom CSS section."
|
65 |
msgid "Add your custom css code below."
|
66 |
msgstr ""
|
67 |
|
68 |
+
#. Plugin URI of the plugin/theme
|
69 |
+
msgid "https://www.theme-junkie.com/plugins/theme-junkie-custom-css/"
|
70 |
msgstr ""
|
71 |
|
72 |
#. Description of the plugin/theme
|
75 |
|
76 |
#. Author of the plugin/theme
|
77 |
msgid "Theme Junkie"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#. Author URI of the plugin/theme
|
81 |
+
msgid "https://www.theme-junkie.com/"
|
82 |
msgstr ""
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: themejunkie
|
3 |
Tags: custom css, customizer, css, style, theme, child theme
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 0.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -11,14 +11,14 @@ Easily to add any Custom CSS code to your WordPress website.
|
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
-
This plugin will enable a custom css manager on administration page to add Custom CSS code to your WordPress website. It will automatically override any theme or plugin default styles. It also very useful if you want to add customization to your website but do not want to edit your theme or plugin css files.
|
15 |
|
16 |
It comes with two ways to add the custom css code:
|
17 |
|
18 |
-
**1. Setting**
|
19 |
You can go to Appearance → Custom CSS, then you will see a big box/textarea. Put your css code there.
|
20 |
|
21 |
-
**2. Customizer - Live Preview**
|
22 |
If you want to see the live preview while you adding the custom css code, then you can go to Appearance → Customize, after that open the Custom CSS section tab.
|
23 |
|
24 |
= Features Include: =
|
@@ -30,7 +30,7 @@ If you want to see the live preview while you adding the custom css code, then y
|
|
30 |
* Uninstall procedure
|
31 |
|
32 |
= Plugin Info =
|
33 |
-
* Developed by [Theme Junkie](
|
34 |
* Check out the [Github](https://github.com/themejunkie/theme-junkie-custom-css) repo to contribute.
|
35 |
|
36 |
== Installation ==
|
@@ -59,6 +59,10 @@ If you want to see the live preview while you adding the custom css code, then y
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
62 |
= 0.1.5 - 9/08/2015 =
|
63 |
* Fixed some selecter being striped
|
64 |
|
@@ -77,4 +81,4 @@ If you want to see the live preview while you adding the custom css code, then y
|
|
77 |
* Allow html entities in css selector eg. `#id > .class`
|
78 |
|
79 |
= 0.1 - 4/20/2014 =
|
80 |
-
* Initial Release
|
2 |
Contributors: themejunkie
|
3 |
Tags: custom css, customizer, css, style, theme, child theme
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.4.2
|
6 |
+
Stable tag: 0.1.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
This plugin will enable a [custom css manager](https://www.theme-junkie.com/plugins/theme-junkie-custom-css/) on administration page to add Custom CSS code to your WordPress website. It will automatically override any theme or plugin default styles. It also very useful if you want to add customization to your website but do not want to edit your theme or plugin css files.
|
15 |
|
16 |
It comes with two ways to add the custom css code:
|
17 |
|
18 |
+
**1. Setting**
|
19 |
You can go to Appearance → Custom CSS, then you will see a big box/textarea. Put your css code there.
|
20 |
|
21 |
+
**2. Customizer - Live Preview**
|
22 |
If you want to see the live preview while you adding the custom css code, then you can go to Appearance → Customize, after that open the Custom CSS section tab.
|
23 |
|
24 |
= Features Include: =
|
30 |
* Uninstall procedure
|
31 |
|
32 |
= Plugin Info =
|
33 |
+
* Developed by [Theme Junkie](https://www.theme-junkie.com/?utm_source=wporg&utm_medium=text_link&utm_campaign=Site%20Promotion)
|
34 |
* Check out the [Github](https://github.com/themejunkie/theme-junkie-custom-css) repo to contribute.
|
35 |
|
36 |
== Installation ==
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
= 0.1.6 - Feb 26, 2016 =
|
63 |
+
* Support WordPress 4.4.2
|
64 |
+
* Change text domain to `theme-junkie-custom-css`
|
65 |
+
|
66 |
= 0.1.5 - 9/08/2015 =
|
67 |
* Fixed some selecter being striped
|
68 |
|
81 |
* Allow html entities in css selector eg. `#id > .class`
|
82 |
|
83 |
= 0.1 - 4/20/2014 =
|
84 |
+
* Initial Release
|
tj-custom-css.php
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: TJ Custom CSS
|
4 |
-
* Plugin URI:
|
5 |
* Description: Easily to add custom css code to your site.
|
6 |
-
* Version: 0.1.
|
7 |
* Author: Theme Junkie
|
8 |
-
* Author URI:
|
9 |
* Author Email: support@theme-junkie.com
|
10 |
*
|
11 |
-
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
12 |
-
* General Public License as published by the Free Software Foundation; either version 2 of the License,
|
13 |
* or (at your option) any later version.
|
14 |
*
|
15 |
-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
16 |
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
17 |
*
|
18 |
-
* You should have received a copy of the GNU General Public License along with this program; if not, write
|
19 |
* to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
20 |
*
|
21 |
* @package Theme_Junkie_Custom_CSS
|
22 |
* @since 0.1.0
|
23 |
* @author Theme Junkie
|
24 |
-
* @copyright Copyright (c) 2014, Theme Junkie
|
25 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
26 |
*/
|
27 |
|
@@ -81,7 +81,7 @@ class Tj_Custom_CSS {
|
|
81 |
* @since 0.1.0
|
82 |
*/
|
83 |
public function i18n() {
|
84 |
-
load_plugin_textdomain( '
|
85 |
}
|
86 |
|
87 |
/**
|
@@ -106,4 +106,4 @@ class Tj_Custom_CSS {
|
|
106 |
|
107 |
}
|
108 |
|
109 |
-
new Tj_Custom_CSS;
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: TJ Custom CSS
|
4 |
+
* Plugin URI: https://www.theme-junkie.com/plugins/theme-junkie-custom-css/
|
5 |
* Description: Easily to add custom css code to your site.
|
6 |
+
* Version: 0.1.6
|
7 |
* Author: Theme Junkie
|
8 |
+
* Author URI: https://www.theme-junkie.com/
|
9 |
* Author Email: support@theme-junkie.com
|
10 |
*
|
11 |
+
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
|
12 |
+
* General Public License as published by the Free Software Foundation; either version 2 of the License,
|
13 |
* or (at your option) any later version.
|
14 |
*
|
15 |
+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
|
16 |
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
17 |
*
|
18 |
+
* You should have received a copy of the GNU General Public License along with this program; if not, write
|
19 |
* to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
20 |
*
|
21 |
* @package Theme_Junkie_Custom_CSS
|
22 |
* @since 0.1.0
|
23 |
* @author Theme Junkie
|
24 |
+
* @copyright Copyright (c) 2014 - 2016, Theme Junkie
|
25 |
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
26 |
*/
|
27 |
|
81 |
* @since 0.1.0
|
82 |
*/
|
83 |
public function i18n() {
|
84 |
+
load_plugin_textdomain( 'theme-junkie-custom-css', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
85 |
}
|
86 |
|
87 |
/**
|
106 |
|
107 |
}
|
108 |
|
109 |
+
new Tj_Custom_CSS;
|