Version Description
Download this release
Release Info
Developer | hearken |
Plugin | Custom CSS and Javascript |
Version | 2.0.6 |
Comparing to | |
See all releases |
Code changes from version 2.0.5 to 2.0.6
- custom-css-and-javascript.php +11 -5
- readme.txt +10 -1
custom-css-and-javascript.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Custom CSS and Javascript
|
4 |
* Description: Easily add custom CSS and Javascript code to your WordPress site.
|
5 |
-
* Version: 2.0.
|
6 |
* Author: Potent Plugins
|
7 |
* Author URI: http://potentplugins.com/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-author-uri
|
8 |
* License: GNU General Public License version 2 or later
|
@@ -273,10 +273,6 @@ function hm_custom_js_page() {
|
|
273 |
}
|
274 |
|
275 |
function hm_custom_css_js_page($mode) {
|
276 |
-
$uploadDir = wp_upload_dir();
|
277 |
-
$codeFile = $uploadDir['basedir'].'/hm_custom_css_js/custom.'.($mode == 'CSS' ? 'css' : 'js');
|
278 |
-
$code = (file_exists($codeFile) ? json_encode(file_get_contents($codeFile)) : '""');
|
279 |
-
|
280 |
echo('
|
281 |
<div class="wrap">
|
282 |
<h2>Custom '.$mode.'</h2>
|
@@ -284,6 +280,16 @@ function hm_custom_css_js_page($mode) {
|
|
284 |
<div>
|
285 |
<div id="hm_custom_code_editor" style="margin-top: 15px;">
|
286 |
<div style="width: 200px; height: 100%; overflow: auto; float: right; padding: 0 20px;">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
<h4 style="margin: 0; margin-bottom: 5px;">Revisions:</h4>
|
288 |
<button class="button-secondary hm-custom-css-js-delete-revisions-btn">Delete All</button>
|
289 |
<ul id="hm_custom_css_js_revisions">
|
2 |
/**
|
3 |
* Plugin Name: Custom CSS and Javascript
|
4 |
* Description: Easily add custom CSS and Javascript code to your WordPress site.
|
5 |
+
* Version: 2.0.6
|
6 |
* Author: Potent Plugins
|
7 |
* Author URI: http://potentplugins.com/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-author-uri
|
8 |
* License: GNU General Public License version 2 or later
|
273 |
}
|
274 |
|
275 |
function hm_custom_css_js_page($mode) {
|
|
|
|
|
|
|
|
|
276 |
echo('
|
277 |
<div class="wrap">
|
278 |
<h2>Custom '.$mode.'</h2>
|
280 |
<div>
|
281 |
<div id="hm_custom_code_editor" style="margin-top: 15px;">
|
282 |
<div style="width: 200px; height: 100%; overflow: auto; float: right; padding: 0 20px;">
|
283 |
+
<div style="background-color: #fff; padding: 10px; margin-bottom: 20px;">
|
284 |
+
<a href="http://potentplugins.com/downloads/custom-css-javascript-developers-edition-wordpress-plugin/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-upgrade-link" target="_blank"><strong>Custom CSS and Javascript<br />Developer\'s Edition</strong></a>
|
285 |
+
<ul>
|
286 |
+
<li>Divide your CSS and Javascript into multiple virtual files</li>
|
287 |
+
<li>Supports Sassy CSS (SCSS)</li>
|
288 |
+
<li>Upload and download CSS and JS files</li>
|
289 |
+
<li>No developer logo or review/donate links on the editor page</li>
|
290 |
+
</ul>
|
291 |
+
<a href="http://potentplugins.com/downloads/custom-css-javascript-developers-edition-wordpress-plugin/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-upgrade-link" target="_blank">Learn More ></a>
|
292 |
+
</div>
|
293 |
<h4 style="margin: 0; margin-bottom: 5px;">Revisions:</h4>
|
294 |
<button class="button-secondary hm-custom-css-js-delete-revisions-btn">Delete All</button>
|
295 |
<ul id="hm_custom_css_js_revisions">
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://potentplugins.com/donate/?utm_source=custom-css-and-javascr
|
|
4 |
Tags: css, custom css, styles, custom styles, stylesheet, custom stylesheet, javascript, custom javascript, js, custom js
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.5.3
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -22,6 +22,15 @@ Features:
|
|
22 |
* Automatically minify your custom CSS and Jasascript code to reduce file size.
|
23 |
* For the public, custom CSS and Javascript code is served from the filesystem instead of the database for optimal performance.
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
If you like this plugin, please consider [making a donation](https://potentplugins.com/donate/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-repo-donate-link).
|
26 |
|
27 |
== Installation ==
|
4 |
Tags: css, custom css, styles, custom styles, stylesheet, custom stylesheet, javascript, custom javascript, js, custom js
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.5.3
|
7 |
+
Stable tag: 2.0.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
22 |
* Automatically minify your custom CSS and Jasascript code to reduce file size.
|
23 |
* For the public, custom CSS and Javascript code is served from the filesystem instead of the database for optimal performance.
|
24 |
|
25 |
+
Coming soon! [Custom CSS and Javascript Developer's Edition](https://potentplugins.com/downloads/custom-css-javascript-developers-edition-wordpress-plugin/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-repo-upgrade-link):
|
26 |
+
|
27 |
+
* Divide your CSS and Javascript into multiple virtual files to keep your code organized (the code is still served as one CSS and one JS file on the front-end for efficiency).
|
28 |
+
* Supports Sassy CSS (SCSS)!
|
29 |
+
* Upload and download CSS and Javascript files, individually or in ZIP files.
|
30 |
+
* The developer logo and review/donation links are removed from the editor page in the WordPress admin.
|
31 |
+
|
32 |
+
[Click here](https://potentplugins.com/downloads/custom-css-javascript-developers-edition-wordpress-plugin/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-repo-upgrade-link) to sign up for a launch notification and receive 25% off your first year's subscription!
|
33 |
+
|
34 |
If you like this plugin, please consider [making a donation](https://potentplugins.com/donate/?utm_source=custom-css-and-javascript&utm_medium=link&utm_campaign=wp-plugin-repo-donate-link).
|
35 |
|
36 |
== Installation ==
|