Version Description
- Added auto-versioning of the CSS and JavaScript files to avoid cache issues.
- CSS code in the file 'admin.css' is optimized.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | Head and Footer Scripts Inserter |
Version | 4.18 |
Comparing to | |
See all releases |
Code changes from version 4.17 to 4.18
- header-and-footer-scripts-inserter.php +1 -1
- inc/css/admin.css +24 -23
- inc/php/core.php +1 -1
- inc/php/enqueue.php +14 -13
- readme.txt +5 -1
header-and-footer-scripts-inserter.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
-
* Version: 4.
|
9 |
* License: GPL3
|
10 |
* Text Domain: header-and-footer-scripts-inserter
|
11 |
* Domain Path: /languages/
|
5 |
* Description: Easily add your scripts to the WordPress website's head and footer sections. This is a must have tool for authors and website's owners.
|
6 |
* Author: Space X-Chimp
|
7 |
* Author URI: https://www.spacexchimp.com
|
8 |
+
* Version: 4.18
|
9 |
* License: GPL3
|
10 |
* Text Domain: header-and-footer-scripts-inserter
|
11 |
* Domain Path: /languages/
|
inc/css/admin.css
CHANGED
@@ -31,7 +31,8 @@ h2 {
|
|
31 |
text-align: center;
|
32 |
text-transform: uppercase;
|
33 |
text-rendering: optimizeLegibility;
|
34 |
-
text-shadow:
|
|
|
35 |
0 1px 0 #2e2e2e,
|
36 |
0 2px 0 #2a2a2a,
|
37 |
0 3px 0 #262626,
|
@@ -40,7 +41,7 @@ h2 {
|
|
40 |
0 6px 0 #1a1a1a,
|
41 |
0 7px 0 #161616,
|
42 |
0 8px 0 #121212,
|
43 |
-
0 22px 30px #
|
44 |
letter-spacing: 0.1em;
|
45 |
line-height: 50px !important;
|
46 |
overflow: hidden;
|
@@ -153,7 +154,7 @@ h2 .version {
|
|
153 |
-moz-border-radius: 0.3rem;
|
154 |
border-radius: 0.3rem;
|
155 |
}
|
156 |
-
.tabs-nav
|
157 |
content: '';
|
158 |
display: block;
|
159 |
height: 0;
|
@@ -171,7 +172,7 @@ h2 .version {
|
|
171 |
-moz-border-radius: 3px 0 0 3px;
|
172 |
border-radius: 3px 0 0 3px;
|
173 |
}
|
174 |
-
.tabs-nav li.active
|
175 |
position: absolute;
|
176 |
content: '';
|
177 |
top: 0;
|
@@ -180,7 +181,7 @@ h2 .version {
|
|
180 |
width: 1px;
|
181 |
background: #f2f2f2;
|
182 |
}
|
183 |
-
.tabs-nav li.active
|
184 |
background-color: #f2f2f2;
|
185 |
position: absolute;
|
186 |
content: '';
|
@@ -295,21 +296,21 @@ h2 .version {
|
|
295 |
text-decoration: none;
|
296 |
}
|
297 |
.panel-title,
|
298 |
-
.panel-title
|
299 |
-
.panel-body
|
300 |
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
301 |
font-size: 16px;
|
302 |
font-weight: 400;
|
303 |
color: #6d6d6d;
|
304 |
text-shadow: 1px 1px 0 #fff;
|
305 |
}
|
306 |
-
.panel-title
|
307 |
content: "Q.";
|
308 |
display: inline-block;
|
309 |
color: red;
|
310 |
padding-right: 8px;
|
311 |
}
|
312 |
-
.panel-title
|
313 |
content: "\25BC";
|
314 |
float: right;
|
315 |
margin: 0;
|
@@ -321,7 +322,7 @@ h2 .version {
|
|
321 |
.panel-title > div {
|
322 |
display: inline;
|
323 |
}
|
324 |
-
.panel-body
|
325 |
content: "A.";
|
326 |
display: inline-block;
|
327 |
color: #00a5e2;
|
@@ -398,24 +399,24 @@ h2 .version {
|
|
398 |
-webkit-border-radius: 3px !important;
|
399 |
-moz-border-radius: 3px !important;
|
400 |
border-radius: 3px !important;
|
401 |
-
background-image: -moz-linear-gradient(rgba(255,255,255
|
402 |
-
background-image: -ms-linear-gradient(rgba(255,255,255
|
403 |
-
background-image: -o-linear-gradient(rgba(255,255,255
|
404 |
-
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255
|
405 |
-
background-image: -webkit-linear-gradient(rgba(255,255,255
|
406 |
-
background-image: linear-gradient(rgba(255,255,255
|
407 |
}
|
408 |
.button-labeled:hover,
|
409 |
.button-labeled:focus {
|
410 |
color: #32689a;
|
411 |
background-position: 0;
|
412 |
background-color: transparent;
|
413 |
-
background-image: -moz-linear-gradient(rgba(255,255,255
|
414 |
-
background-image: -ms-linear-gradient(rgba(255,255,255
|
415 |
-
background-image: -o-linear-gradient(rgba(255,255,255
|
416 |
-
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255,255,255
|
417 |
-
background-image: -webkit-linear-gradient(rgba(255,255,255
|
418 |
-
background-image: linear-gradient(rgba(255,255,255
|
419 |
}
|
420 |
.button-labeled .btn-label {
|
421 |
position: relative;
|
@@ -469,7 +470,7 @@ h2 .version {
|
|
469 |
.wp-color-result {
|
470 |
height: 30px;
|
471 |
}
|
472 |
-
.wp-color-result
|
473 |
line-height: 28px;
|
474 |
}
|
475 |
|
31 |
text-align: center;
|
32 |
text-transform: uppercase;
|
33 |
text-rendering: optimizeLegibility;
|
34 |
+
text-shadow:
|
35 |
+
0 -1px 0 #fff,
|
36 |
0 1px 0 #2e2e2e,
|
37 |
0 2px 0 #2a2a2a,
|
38 |
0 3px 0 #262626,
|
41 |
0 6px 0 #1a1a1a,
|
42 |
0 7px 0 #161616,
|
43 |
0 8px 0 #121212,
|
44 |
+
0 22px 30px #000;
|
45 |
letter-spacing: 0.1em;
|
46 |
line-height: 50px !important;
|
47 |
overflow: hidden;
|
154 |
-moz-border-radius: 0.3rem;
|
155 |
border-radius: 0.3rem;
|
156 |
}
|
157 |
+
.tabs-nav::after {
|
158 |
content: '';
|
159 |
display: block;
|
160 |
height: 0;
|
172 |
-moz-border-radius: 3px 0 0 3px;
|
173 |
border-radius: 3px 0 0 3px;
|
174 |
}
|
175 |
+
.tabs-nav li.active::before {
|
176 |
position: absolute;
|
177 |
content: '';
|
178 |
top: 0;
|
181 |
width: 1px;
|
182 |
background: #f2f2f2;
|
183 |
}
|
184 |
+
.tabs-nav li.active::after {
|
185 |
background-color: #f2f2f2;
|
186 |
position: absolute;
|
187 |
content: '';
|
296 |
text-decoration: none;
|
297 |
}
|
298 |
.panel-title,
|
299 |
+
.panel-title::before,
|
300 |
+
.panel-body::before {
|
301 |
font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
|
302 |
font-size: 16px;
|
303 |
font-weight: 400;
|
304 |
color: #6d6d6d;
|
305 |
text-shadow: 1px 1px 0 #fff;
|
306 |
}
|
307 |
+
.panel-title::before {
|
308 |
content: "Q.";
|
309 |
display: inline-block;
|
310 |
color: red;
|
311 |
padding-right: 8px;
|
312 |
}
|
313 |
+
.panel-title::after {
|
314 |
content: "\25BC";
|
315 |
float: right;
|
316 |
margin: 0;
|
322 |
.panel-title > div {
|
323 |
display: inline;
|
324 |
}
|
325 |
+
.panel-body::before {
|
326 |
content: "A.";
|
327 |
display: inline-block;
|
328 |
color: #00a5e2;
|
399 |
-webkit-border-radius: 3px !important;
|
400 |
-moz-border-radius: 3px !important;
|
401 |
border-radius: 3px !important;
|
402 |
+
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.1));
|
403 |
+
background-image: -ms-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.1));
|
404 |
+
background-image: -o-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.1));
|
405 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.1)), color-stop(49%, rgba(255, 255, 255, 0.05)), color-stop(51%, rgba(0, 0, 0, 0.05)), to(rgba(0, 0, 0, 0.1)));
|
406 |
+
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.1));
|
407 |
+
background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.05) 51%, rgba(0, 0, 0, 0.1));
|
408 |
}
|
409 |
.button-labeled:hover,
|
410 |
.button-labeled:focus {
|
411 |
color: #32689a;
|
412 |
background-position: 0;
|
413 |
background-color: transparent;
|
414 |
+
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.15) 49%, rgba(0, 0, 0, 0.1) 51%, rgba(0, 0, 0, 0.15));
|
415 |
+
background-image: -ms-linear-gradient(rgba(255, 255, 255, 0.15) 49%, rgba(0, 0, 0, 0.1) 51%, rgba(0, 0, 0, 0.15));
|
416 |
+
background-image: -o-linear-gradient(rgba(255, 255, 255, 0.15) 49%, rgba(0, 0, 0, 0.1) 51%, rgba(0, 0, 0, 0.15));
|
417 |
+
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.15)), color-stop(49%, rgba(255, 255, 255, 0.15)), color-stop(51%, rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.15)));
|
418 |
+
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.15) 49%, rgba(0, 0, 0, 0.1) 51%, rgba(0, 0, 0, 0.15));
|
419 |
+
background-image: linear-gradient(rgba(255, 255, 255, 0.15) 49%, rgba(0, 0, 0, 0.1) 51%, rgba(0, 0, 0, 0.15));
|
420 |
}
|
421 |
.button-labeled .btn-label {
|
422 |
position: relative;
|
470 |
.wp-color-result {
|
471 |
height: 30px;
|
472 |
}
|
473 |
+
.wp-color-result::after {
|
474 |
line-height: 28px;
|
475 |
}
|
476 |
|
inc/php/core.php
CHANGED
@@ -16,7 +16,7 @@ add_action( 'init', 'spacexchimp_p006_textdomain' );
|
|
16 |
/**
|
17 |
* Print direct link to plugin admin page
|
18 |
*
|
19 |
-
* Fetches array of links generated by
|
20 |
* and inserts a link to the plugin admin page
|
21 |
*/
|
22 |
function spacexchimp_p006_settings_link( $links ) {
|
16 |
/**
|
17 |
* Print direct link to plugin admin page
|
18 |
*
|
19 |
+
* Fetches array of links generated by WordPress Plugin admin page ( Deactivate | Edit )
|
20 |
* and inserts a link to the plugin admin page
|
21 |
*/
|
22 |
function spacexchimp_p006_settings_link( $links ) {
|
inc/php/enqueue.php
CHANGED
@@ -14,6 +14,7 @@ function spacexchimp_p006_load_scripts_admin( $hook ) {
|
|
14 |
$slug = SPACEXCHIMP_P006_SLUG;
|
15 |
$prefix = SPACEXCHIMP_P006_PREFIX;
|
16 |
$url = SPACEXCHIMP_P006_URL;
|
|
|
17 |
|
18 |
// Return if the page is not a settings page of this plugin
|
19 |
$settings_page = 'settings_page_' . $slug;
|
@@ -23,27 +24,27 @@ function spacexchimp_p006_load_scripts_admin( $hook ) {
|
|
23 |
wp_enqueue_script( 'jquery' );
|
24 |
|
25 |
// Bootstrap library
|
26 |
-
wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css' );
|
27 |
-
wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css' );
|
28 |
-
wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js' );
|
29 |
|
30 |
// Font Awesome library
|
31 |
-
wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', 'screen' );
|
32 |
|
33 |
// CodeMirror library
|
34 |
-
wp_enqueue_style( $prefix . '-codemirror-css', $url . 'inc/lib/codemirror/codemirror.css' );
|
35 |
-
wp_enqueue_script( $prefix . '-codemirror-js', $url . 'inc/lib/codemirror/codemirror.js' );
|
36 |
-
wp_enqueue_script( $prefix . '-codemirror-mode-htmlmixed-js', $url . 'inc/lib/codemirror/mode/htmlmixed.js' );
|
37 |
-
wp_enqueue_script( $prefix . '-codemirror-mode-javascript-js', $url . 'inc/lib/codemirror/mode/javascript.js' );
|
38 |
-
wp_enqueue_script( $prefix . '-codemirror-mode-xml-js', $url . 'inc/lib/codemirror/mode/xml.js' );
|
39 |
-
wp_enqueue_script( $prefix . '-codemirror-mode-css-js', $url . 'inc/lib/codemirror/mode/css.js' );
|
40 |
-
wp_enqueue_script( $prefix . '-codemirror-mode-active-line-js', $url . 'inc/lib/codemirror/addons/active-line.js' );
|
41 |
|
42 |
// Style sheet
|
43 |
-
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css' );
|
44 |
|
45 |
// JavaScript
|
46 |
-
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(),
|
47 |
|
48 |
}
|
49 |
add_action( 'admin_enqueue_scripts', 'spacexchimp_p006_load_scripts_admin' );
|
14 |
$slug = SPACEXCHIMP_P006_SLUG;
|
15 |
$prefix = SPACEXCHIMP_P006_PREFIX;
|
16 |
$url = SPACEXCHIMP_P006_URL;
|
17 |
+
$version = SPACEXCHIMP_P006_VERSION;
|
18 |
|
19 |
// Return if the page is not a settings page of this plugin
|
20 |
$settings_page = 'settings_page_' . $slug;
|
24 |
wp_enqueue_script( 'jquery' );
|
25 |
|
26 |
// Bootstrap library
|
27 |
+
wp_enqueue_style( $prefix . '-bootstrap-css', $url . 'inc/lib/bootstrap/bootstrap.css', array(), $version, 'all' );
|
28 |
+
wp_enqueue_style( $prefix . '-bootstrap-theme-css', $url . 'inc/lib/bootstrap/bootstrap-theme.css', array(), $version, 'all' );
|
29 |
+
wp_enqueue_script( $prefix . '-bootstrap-js', $url . 'inc/lib/bootstrap/bootstrap.js', array(), $version, false );
|
30 |
|
31 |
// Font Awesome library
|
32 |
+
wp_enqueue_style( $prefix . '-font-awesome-css', $url . 'inc/lib/font-awesome/css/font-awesome.css', array(), $version, 'screen' );
|
33 |
|
34 |
// CodeMirror library
|
35 |
+
wp_enqueue_style( $prefix . '-codemirror-css', $url . 'inc/lib/codemirror/codemirror.css', array(), $version, 'all' );
|
36 |
+
wp_enqueue_script( $prefix . '-codemirror-js', $url . 'inc/lib/codemirror/codemirror.js', array(), $version, false );
|
37 |
+
wp_enqueue_script( $prefix . '-codemirror-mode-htmlmixed-js', $url . 'inc/lib/codemirror/mode/htmlmixed.js', array(), $version, false );
|
38 |
+
wp_enqueue_script( $prefix . '-codemirror-mode-javascript-js', $url . 'inc/lib/codemirror/mode/javascript.js', array(), $version, false );
|
39 |
+
wp_enqueue_script( $prefix . '-codemirror-mode-xml-js', $url . 'inc/lib/codemirror/mode/xml.js', array(), $version, false );
|
40 |
+
wp_enqueue_script( $prefix . '-codemirror-mode-css-js', $url . 'inc/lib/codemirror/mode/css.js', array(), $version, false );
|
41 |
+
wp_enqueue_script( $prefix . '-codemirror-mode-active-line-js', $url . 'inc/lib/codemirror/addons/active-line.js', array(), $version, false );
|
42 |
|
43 |
// Style sheet
|
44 |
+
wp_enqueue_style( $prefix . '-admin-css', $url . 'inc/css/admin.css', array(), $version, 'all' );
|
45 |
|
46 |
// JavaScript
|
47 |
+
wp_enqueue_script( $prefix . '-admin-js', $url . 'inc/js/admin.js', array(), $version, true );
|
48 |
|
49 |
}
|
50 |
add_action( 'admin_enqueue_scripts', 'spacexchimp_p006_load_scripts_admin' );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: inject, insert, insert scripts, insert javascript, insert js, insert html,
|
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 4.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -187,6 +187,10 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
187 |
|
188 |
== Changelog ==
|
189 |
|
|
|
|
|
|
|
|
|
190 |
= 4.17 =
|
191 |
* Fixed the link "Settings", located in the plugin's meta row on the "Plugins" page. The suffix ".php" was deleted.
|
192 |
* Fixed information stored in the header of the translation files.
|
4 |
Donate link: https://www.spacexchimp.com/donate.html
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 4.18
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
187 |
|
188 |
== Changelog ==
|
189 |
|
190 |
+
= 4.18 =
|
191 |
+
* Added auto-versioning of the CSS and JavaScript files to avoid cache issues.
|
192 |
+
* CSS code in the file 'admin.css' is optimized.
|
193 |
+
|
194 |
= 4.17 =
|
195 |
* Fixed the link "Settings", located in the plugin's meta row on the "Plugins" page. The suffix ".php" was deleted.
|
196 |
* Fixed information stored in the header of the translation files.
|