Version Description
- 11/17/2017
- Tested to ensure WP 4.9 compatibility.
- Fixed icon to insert date/time.
- Fixed advanced link nofollow checkbox.
Download this release
Release Info
Developer | josh401 |
Plugin | WP Edit |
Version | 4.0.2 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.0.2
- main.php +1 -1
- plugins/advlink/includes/advlink.js +3 -3
- plugins/insertdatetime/plugin.min.js +1 -1
- readme.txt +9 -2
main.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: WP Edit
|
4 |
* Plugin URI: https://wpeditpro.com
|
5 |
* Description: Ultimate WordPress Content Editing.
|
6 |
-
* Version: 4.0.
|
7 |
* Author: Josh Lobe
|
8 |
* Author URI: https://wpeditpro.com
|
9 |
* License: GPL2
|
3 |
* Plugin Name: WP Edit
|
4 |
* Plugin URI: https://wpeditpro.com
|
5 |
* Description: Ultimate WordPress Content Editing.
|
6 |
+
* Version: 4.0.2
|
7 |
* Author: Josh Lobe
|
8 |
* Author URI: https://wpeditpro.com
|
9 |
* License: GPL2
|
plugins/advlink/includes/advlink.js
CHANGED
@@ -144,17 +144,17 @@ jQuery(document).ready(function($) {
|
|
144 |
|
145 |
|
146 |
// Style checkboxes with jquery UI button
|
147 |
-
|
148 |
|
149 |
// Adjust button text based on click state
|
150 |
$( "#advlink_nofollow" ).click(function() {
|
151 |
|
152 |
isset_advlink = $(this).is(':checked');
|
153 |
if(isset_advlink == true) {
|
154 |
-
$('#advlink_nofollow_label
|
155 |
}
|
156 |
else {
|
157 |
-
$('#advlink_nofollow_label
|
158 |
}
|
159 |
});
|
160 |
|
144 |
|
145 |
|
146 |
// Style checkboxes with jquery UI button
|
147 |
+
//$( "#advlink_nofollow" ).button();
|
148 |
|
149 |
// Adjust button text based on click state
|
150 |
$( "#advlink_nofollow" ).click(function() {
|
151 |
|
152 |
isset_advlink = $(this).is(':checked');
|
153 |
if(isset_advlink == true) {
|
154 |
+
$('#advlink_nofollow_label').html('On');
|
155 |
}
|
156 |
else {
|
157 |
+
$('#advlink_nofollow_label').html('Off');
|
158 |
}
|
159 |
});
|
160 |
|
plugins/insertdatetime/plugin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
tinymce.PluginManager.add("insertdatetime",function(e){function t(t,a){function n(e,t){if(e=""+e,e.length<t)for(var a=0;a<t-e.length;a++)e="0"+e;return e}return a=a||new Date,t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+a.getFullYear()),t=t.replace("%y",""+a.getYear()),t=t.replace("%m",n(a.getMonth()+1,2)),t=t.replace("%d",n(a.getDate(),2)),t=t.replace("%H",""+n(a.getHours(),2)),t=t.replace("%M",""+n(a.getMinutes(),2)),t=t.replace("%S",""+n(a.getSeconds(),2)),t=t.replace("%I",""+((a.getHours()+11)%12+1)),t=t.replace("%p",""+(a.getHours()<12?"AM":"PM")),t=t.replace("%B",""+e.translate(u[a.getMonth()])),t=t.replace("%b",""+e.translate(m[a.getMonth()])),t=t.replace("%A",""+e.translate(c[a.getDay()])),t=t.replace("%a",""+e.translate(i[a.getDay()])),t=t.replace("%%","%")}function a(a){var n=t(a);if(e.settings.insertdatetime_element){var r;r=/%[HMSIp]/.test(a)?t("%Y-%m-%dT%H:%M"):t("%Y-%m-%d"),n='<time datetime="'+r+'">'+n+"</time>";var i=e.dom.getParent(e.selection.getStart(),"time");if(i)return e.dom.setOuterHTML(i,n),void 0}e.insertContent(n)}var n,r,i="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),m="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" "),d=[];e.addCommand("mceInsertDate",function(){a(e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),e.addCommand("mceInsertTime",function(){a(e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S")))}),e.addButton("inserttime",{type:"splitbutton",title:"Insert time",onclick:function(){a(n||r)},menu:d}),tinymce.each(e.settings.insertdatetime_formats||["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"],function(e){r||(r=e),d.push({text:t(e),onclick:function(){n=e,a(e)}})}),e.addMenuItem("insertdatetime",{icon:"date",text:"Insert date/time",menu:d,context:"insert"})});
|
1 |
+
tinymce.PluginManager.add("insertdatetime",function(e){function t(t,a){function n(e,t){if(e=""+e,e.length<t)for(var a=0;a<t-e.length;a++)e="0"+e;return e}return a=a||new Date,t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+a.getFullYear()),t=t.replace("%y",""+a.getYear()),t=t.replace("%m",n(a.getMonth()+1,2)),t=t.replace("%d",n(a.getDate(),2)),t=t.replace("%H",""+n(a.getHours(),2)),t=t.replace("%M",""+n(a.getMinutes(),2)),t=t.replace("%S",""+n(a.getSeconds(),2)),t=t.replace("%I",""+((a.getHours()+11)%12+1)),t=t.replace("%p",""+(a.getHours()<12?"AM":"PM")),t=t.replace("%B",""+e.translate(u[a.getMonth()])),t=t.replace("%b",""+e.translate(m[a.getMonth()])),t=t.replace("%A",""+e.translate(c[a.getDay()])),t=t.replace("%a",""+e.translate(i[a.getDay()])),t=t.replace("%%","%")}function a(a){var n=t(a);if(e.settings.insertdatetime_element){var r;r=/%[HMSIp]/.test(a)?t("%Y-%m-%dT%H:%M"):t("%Y-%m-%d"),n='<time datetime="'+r+'">'+n+"</time>";var i=e.dom.getParent(e.selection.getStart(),"time");if(i)return e.dom.setOuterHTML(i,n),void 0}e.insertContent(n)}var n,r,i="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),m="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" "),d=[];e.addCommand("mceInsertDate",function(){a(e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),e.addCommand("mceInsertTime",function(){a(e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S")))}),e.addButton("inserttime",{icon:'insertdatetime',type:"splitbutton",title:"Insert time",onclick:function(){a(n||r)},menu:d}),tinymce.each(e.settings.insertdatetime_formats||["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"],function(e){r||(r=e),d.push({text:t(e),onclick:function(){n=e,a(e)}})}),e.addMenuItem("insertdatetime",{icon:"date",text:"Insert date/time",menu:d,context:"insert"})});
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: josh401
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9E5VNRBMVBCS
|
4 |
Tags: wpedit, wp edit, editor, buttons, button, add, font, font style, font select, table, tables, visual editor, search, replace, colors, color, anchor, advance, advanced, links, link, popup, javascript, upgrade, update, admin, image, images, citations, preview, html, custom css, borders, pages, posts, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, tinymce
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -106,6 +106,13 @@ OR...
|
|
106 |
|
107 |
== Changelog ==
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
= 4.0.1 =
|
110 |
* 04/20/2017
|
111 |
* Fixed warnings when plugin is network activated (pertaining to buttons options).
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9E5VNRBMVBCS
|
4 |
Tags: wpedit, wp edit, editor, buttons, button, add, font, font style, font select, table, tables, visual editor, search, replace, colors, color, anchor, advance, advanced, links, link, popup, javascript, upgrade, update, admin, image, images, citations, preview, html, custom css, borders, pages, posts, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, tinymce
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 4.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
106 |
|
107 |
== Changelog ==
|
108 |
|
109 |
+
= 4.0.2 =
|
110 |
+
* 11/17/2017
|
111 |
+
* Tested to ensure WP 4.9 compatibility.
|
112 |
+
* Fixed icon to insert date/time.
|
113 |
+
* Fixed advanced link nofollow checkbox.
|
114 |
+
|
115 |
+
|
116 |
= 4.0.1 =
|
117 |
* 04/20/2017
|
118 |
* Fixed warnings when plugin is network activated (pertaining to buttons options).
|