Version Description
- [Fixed] Hotfix for WordPress 5.5
Download this release
Release Info
Developer | tschutter |
Plugin | Column Shortcodes |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- assets/js/admin.js +1 -1
- column-shortcodes.php +9 -9
- readme.txt +7 -5
assets/js/admin.js
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
*
|
33 |
*/
|
34 |
function codepressShortcodes() {
|
35 |
-
$( '#cpsh .insert-shortcode' ).
|
36 |
|
37 |
var shortcode = $( this ).attr( 'rel' );
|
38 |
window.send_to_editor( shortcode );
|
32 |
*
|
33 |
*/
|
34 |
function codepressShortcodes() {
|
35 |
+
$( '#cpsh .insert-shortcode' ).on( 'click', function( e ) {
|
36 |
|
37 |
var shortcode = $( this ).attr( 'rel' );
|
38 |
window.send_to_editor( shortcode );
|
column-shortcodes.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Column Shortcodes
|
5 |
-
Version: 1.0
|
6 |
Description: Adds shortcodes to easily create columns in your posts or pages
|
7 |
Author: Codepress
|
8 |
Author URI: https://www.admincolumns.com/
|
@@ -11,7 +11,7 @@ Text Domain: column-shortcodes
|
|
11 |
Domain Path: /languages
|
12 |
License: GPLv2
|
13 |
|
14 |
-
Copyright 2011-
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License version 2 as published by
|
@@ -116,10 +116,10 @@ class Codepress_Column_Shortcodes {
|
|
116 |
*/
|
117 |
public function admin_styles() {
|
118 |
if ( $this->has_permissions() && $this->is_edit_screen() ) {
|
119 |
-
wp_enqueue_style( 'cpsh-admin', $this->get_url() . '
|
120 |
|
121 |
if ( is_rtl() ) {
|
122 |
-
wp_enqueue_style( 'cpsh-admin-rtl', $this->get_url() . '
|
123 |
}
|
124 |
}
|
125 |
}
|
@@ -133,8 +133,8 @@ class Codepress_Column_Shortcodes {
|
|
133 |
*/
|
134 |
public function admin_scripts( $plugins ) {
|
135 |
if ( $this->has_permissions() && $this->is_edit_screen() ) {
|
136 |
-
wp_enqueue_script( 'cpsh-admin', $this->get_url() . '
|
137 |
-
wp_enqueue_script( 'jquery-cookie', $this->get_url() . '
|
138 |
}
|
139 |
|
140 |
return $plugins;
|
@@ -147,7 +147,7 @@ class Codepress_Column_Shortcodes {
|
|
147 |
*/
|
148 |
public function admin_plugins_scripts() {
|
149 |
if ( $this->is_plugins_screen() ) {
|
150 |
-
wp_enqueue_script( 'cpsh-admin-plugins', $this->get_url() . '
|
151 |
}
|
152 |
}
|
153 |
|
@@ -159,9 +159,9 @@ class Codepress_Column_Shortcodes {
|
|
159 |
public function frontend_styles() {
|
160 |
if ( apply_filters( 'cpsh_load_styles', true ) ) {
|
161 |
if ( is_rtl() ) {
|
162 |
-
wp_enqueue_style( 'cpsh-shortcodes-rtl', $this->get_url() . '
|
163 |
} else {
|
164 |
-
wp_enqueue_style( 'cpsh-shortcodes', $this->get_url() . '
|
165 |
}
|
166 |
}
|
167 |
}
|
2 |
|
3 |
/*
|
4 |
Plugin Name: Column Shortcodes
|
5 |
+
Version: 1.0.1
|
6 |
Description: Adds shortcodes to easily create columns in your posts or pages
|
7 |
Author: Codepress
|
8 |
Author URI: https://www.admincolumns.com/
|
11 |
Domain Path: /languages
|
12 |
License: GPLv2
|
13 |
|
14 |
+
Copyright 2011-2023 Codepress info@codepress.nl
|
15 |
|
16 |
This program is free software; you can redistribute it and/or modify
|
17 |
it under the terms of the GNU General Public License version 2 as published by
|
116 |
*/
|
117 |
public function admin_styles() {
|
118 |
if ( $this->has_permissions() && $this->is_edit_screen() ) {
|
119 |
+
wp_enqueue_style( 'cpsh-admin', $this->get_url() . 'assets/css/admin.css', array(), $this->get_version(), 'all' );
|
120 |
|
121 |
if ( is_rtl() ) {
|
122 |
+
wp_enqueue_style( 'cpsh-admin-rtl', $this->get_url() . 'assets/css/admin-rtl.css', array(), $this->get_version(), 'all' );
|
123 |
}
|
124 |
}
|
125 |
}
|
133 |
*/
|
134 |
public function admin_scripts( $plugins ) {
|
135 |
if ( $this->has_permissions() && $this->is_edit_screen() ) {
|
136 |
+
wp_enqueue_script( 'cpsh-admin', $this->get_url() . 'assets/js/admin.js', array( 'jquery' ), $this->get_version() );
|
137 |
+
wp_enqueue_script( 'jquery-cookie', $this->get_url() . 'assets/js/jquery.ck.js', array( 'jquery' ), $this->get_version() );
|
138 |
}
|
139 |
|
140 |
return $plugins;
|
147 |
*/
|
148 |
public function admin_plugins_scripts() {
|
149 |
if ( $this->is_plugins_screen() ) {
|
150 |
+
wp_enqueue_script( 'cpsh-admin-plugins', $this->get_url() . 'assets/js/plugins.js', array( 'jquery' ), $this->get_version() );
|
151 |
}
|
152 |
}
|
153 |
|
159 |
public function frontend_styles() {
|
160 |
if ( apply_filters( 'cpsh_load_styles', true ) ) {
|
161 |
if ( is_rtl() ) {
|
162 |
+
wp_enqueue_style( 'cpsh-shortcodes-rtl', $this->get_url() . 'assets/css/shortcodes-rtl.css', array(), $this->get_version(), 'all' );
|
163 |
} else {
|
164 |
+
wp_enqueue_style( 'cpsh-shortcodes', $this->get_url() . 'assets/css/shortcodes.css', array(), $this->get_version(), 'all' );
|
165 |
}
|
166 |
}
|
167 |
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: codepress, tschutter, davidmosterd, dungengronovius
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
|
4 |
Tags: columns, column, shortcodes, shortcode, divider, layout, posts, editor, wp-admin, admin, codepress, wordpress
|
5 |
-
Requires at least:
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.0
|
8 |
|
9 |
Adds shortcodes to easily create columns in your posts or pages.
|
10 |
|
@@ -249,7 +249,6 @@ We would love to hear your feedback and suggestions on this. Just send an email
|
|
249 |
|
250 |
You will find a .po file in the languages folder which you can use. You can send the translation to <a href="mailto:info@codepress.nl">info@codepress.nl</a>.
|
251 |
|
252 |
-
|
253 |
== Screenshots ==
|
254 |
|
255 |
1. Editor with shortcode icon
|
@@ -259,8 +258,11 @@ You will find a .po file in the languages folder which you can use. You can send
|
|
259 |
|
260 |
== Changelog ==
|
261 |
|
|
|
|
|
|
|
262 |
= 1.0 =
|
263 |
-
* [Fixed] Compatible with WordPress 4.8
|
264 |
* [Fixed] Padding generator will automatically add 'px' to numbers
|
265 |
* [Added] Added filter to hide banner `add_filter( 'cpsh_show_banner', '__return_false' );`
|
266 |
* [Improved] UI improvements for better readability
|
2 |
Contributors: codepress, tschutter, davidmosterd, dungengronovius
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
|
4 |
Tags: columns, column, shortcodes, shortcode, divider, layout, posts, editor, wp-admin, admin, codepress, wordpress
|
5 |
+
Requires at least: 4.8
|
6 |
+
Tested up to: 6.0.2
|
7 |
+
Stable tag: 1.0.1
|
8 |
|
9 |
Adds shortcodes to easily create columns in your posts or pages.
|
10 |
|
249 |
|
250 |
You will find a .po file in the languages folder which you can use. You can send the translation to <a href="mailto:info@codepress.nl">info@codepress.nl</a>.
|
251 |
|
|
|
252 |
== Screenshots ==
|
253 |
|
254 |
1. Editor with shortcode icon
|
258 |
|
259 |
== Changelog ==
|
260 |
|
261 |
+
= 1.0.1 =
|
262 |
+
* [Fixed] Hotfix for WordPress 5.5
|
263 |
+
|
264 |
= 1.0 =
|
265 |
+
* [Fixed] Compatible with WordPress 4.8 and up
|
266 |
* [Fixed] Padding generator will automatically add 'px' to numbers
|
267 |
* [Added] Added filter to hide banner `add_filter( 'cpsh_show_banner', '__return_false' );`
|
268 |
* [Improved] UI improvements for better readability
|