Version Description
- Added support for WPML plugin (for multilanguage sites)
Download this release
Release Info
Developer | marcochiesi |
Plugin | Black Studio TinyMCE Widget |
Version | 0.9 |
Comparing to | |
See all releases |
Code changes from version 0.8.2 to 0.9
- black-studio-tinymce-widget.js +1 -1
- black-studio-tinymce-widget.php +12 -3
- readme.txt +5 -1
black-studio-tinymce-widget.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
eval(function(p,a,c,k,e,d){e=function(c){return
|
1 |
+
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('H n;H U;H V;8 T(1){2(\'#\'+1).J("15");i(f(b)=="h"&&f(b.x)=="8"){z(1);i(f(n.p[\'6-5-4-3\'])=="h"){n.p[1]=n.p[\'6-5-4-3\'];n.p[1]["16"]=1;17{4.13(4.12({},n.p[\'6-5-4-3\'],n.p[1]))}Z(e){10(e)}}D{b.x("11",P,1)}}}8 z(1){i(f(b)=="h"&&f(b.x)=="8"){i(f(b.k(1))=="h"){Q=b.k(1).19();b.x("1g",P,1);2(\'g#\'+1).I(Q)}}}8 C(1){2(\'7.3:r(#\'+1+\') q[1^=3-6-5-4][1$=y][O=l]\').K(8(){i(2(\'7.3:r(#\'+1+\') :1e\').1a()==0&&f(b.k(1))!="h"&&2(\'#\'+1).B(\':E\')){2(\'a[1^=3-6-5-4][1$=l]\',2(9).c(\'7.3\')).d()}D i(f(b.k(1))!="h"){N(8(){C(1);1=M},L)}})}8 G(1){2(\'7.3:r(#\'+1+\') q[1^=3-6-5-4][1$=y][O=l]\').K(8(){i(2.t==0&&f(b.k(1))!="h"&&2(\'#\'+1).B(\':E\')){2(\'a[1^=3-6-5-4][1$=l]\',2(9).c(\'7.3\')).d()}D i(2(\'7.3:r(#\'+1+\') 7.3-18\').B(\':E\')&&f(b.k(1))!="h"){N(8(){G(1);1=M},L)}})}2(s).1i(8(){2(\'7.3:r(g[1^=3-6-5-4]) a.3-14\').u(\'d\',8(j){j.A();o=2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\'));C(o.m(\'1\'))});2(s).v("w").d.W(2(s).v("w").d.S());2(\'7.3[1*=6-5-4] q[Y=1f]\').u(\'d\',8(j){j.A();o=2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\'));i(f(b.k(o.m(\'1\')))=="h"){z(o.m(\'1\'))}2(9).1b(\'R\').R(8(j,1c,1d){o=2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\'));G(o.m(\'1\'))})});2(s).v("w").d.W(2(s).v("w").d.S());2(\'a[1^=3-6-5-4][1$=l]\').u(\'d\',8(j){j.A();2(\'q[1^=3-6-5-4][1$=y]\',2(9).c(\'7.3\')).I(\'l\');2(9).J(\'t\');2(\'a[1^=3-6-5-4][1$=F]\',2(9).c(\'7.3\')).X(\'t\');T(2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\')).m(\'1\'))});2(\'a[1^=3-6-5-4][1$=F]\').u(\'d\',8(j){j.A();2(\'q[1^=3-6-5-4][1$=y]\',2(9).c(\'7.3\')).I(\'F\');2(9).J(\'t\');2(\'a[1^=3-6-5-4][1$=l]\',2(9).c(\'7.3\')).X(\'t\');z(2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\')).m(\'1\'))});2(\'.1h a\').u(\'d\',8(){U=2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\')).k();V=2(\'g[1^=3-6-5-4]\',2(9).c(\'7.3\')).m(\'1\')})});',62,81,'|id|jQuery|widget|tinymce|studio|black|div|function|this||tinyMCE|closest|click||typeof|textarea|object|if|event|get|visual|attr|tinyMCEPreInit|txt_area|mceInit|input|has|document|active|live|data|events|execCommand|type|black_studio_deactivate_visual_editor|preventDefault|is|black_studio_open_deferred_activate_visual_editor|else|visible|html|black_studio_ajax_deferred_activate_visual_editor|var|val|addClass|each|100|null|setTimeout|value|false|content|ajaxSuccess|pop|black_studio_activate_visual_editor|edCanvas|wpActiveEditor|unshift|removeClass|name|catch|alert|mceAddControl|extend|init|action|mceEditor|elements|try|inside|getContent|size|unbind|xhr|settings|animated|savewidget|mceRemoveControl|editor_media_buttons|ready'.split('|'),0,{}))
|
black-studio-tinymce-widget.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
Plugin Name: Black Studio TinyMCE Widget
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/black-studio-tinymce-widget/
|
5 |
Description: Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
|
6 |
-
Version: 0.
|
7 |
Author: Black Studio
|
8 |
Author URI: http://www.blackstudio.it
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
global $black_studio_tinymce_widget_version;
|
13 |
-
$black_studio_tinymce_widget_version = "0.
|
14 |
|
15 |
/* Widget class */
|
16 |
class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
|
@@ -24,7 +24,12 @@ class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
|
|
24 |
function widget( $args, $instance ) {
|
25 |
extract($args);
|
26 |
$title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
|
27 |
-
$text =
|
|
|
|
|
|
|
|
|
|
|
28 |
echo $before_widget;
|
29 |
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
|
30 |
<div class="textwidget"><?php echo $text; ?></div>
|
@@ -40,6 +45,10 @@ class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
|
|
40 |
else
|
41 |
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
|
42 |
$instance['type'] = strip_tags($new_instance['type']);
|
|
|
|
|
|
|
|
|
43 |
return $instance;
|
44 |
}
|
45 |
|
3 |
Plugin Name: Black Studio TinyMCE Widget
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/black-studio-tinymce-widget/
|
5 |
Description: Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
|
6 |
+
Version: 0.9
|
7 |
Author: Black Studio
|
8 |
Author URI: http://www.blackstudio.it
|
9 |
License: GPL2
|
10 |
*/
|
11 |
|
12 |
global $black_studio_tinymce_widget_version;
|
13 |
+
$black_studio_tinymce_widget_version = "0.9"; // This is used internally - should be the same reported on the plugin header
|
14 |
|
15 |
/* Widget class */
|
16 |
class WP_Widget_Black_Studio_TinyMCE extends WP_Widget {
|
24 |
function widget( $args, $instance ) {
|
25 |
extract($args);
|
26 |
$title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
|
27 |
+
$text = apply_filters( 'widget_text', $instance['text'], $instance );
|
28 |
+
if( function_exists( 'icl_t' )) {
|
29 |
+
$title = icl_t( "Widgets", 'widget title - ' . md5 ( $title ), $title, $hasTranslation, true );
|
30 |
+
$text = icl_t( "Widgets", 'widget body - ' . $this->id_base . '-' . $this->number /*md5 ( $text )*/, $text, $hasTranslation, true );
|
31 |
+
}
|
32 |
+
$text = do_shortcode( $text );
|
33 |
echo $before_widget;
|
34 |
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
|
35 |
<div class="textwidget"><?php echo $text; ?></div>
|
45 |
else
|
46 |
$instance['text'] = stripslashes( wp_filter_post_kses( addslashes($new_instance['text']) ) ); // wp_filter_post_kses() expects slashed
|
47 |
$instance['type'] = strip_tags($new_instance['type']);
|
48 |
+
if( function_exists( 'icl_register_string' )) {
|
49 |
+
//icl_register_string( "Widgets", 'widget title - ' . $this->id_base . '-' . $this->number /* md5 ( apply_filters( 'widget_title', $instance['title'] ))*/, apply_filters( 'widget_title', $instance['title'] )); // This is handled automatically by WPML
|
50 |
+
icl_register_string( "Widgets", 'widget body - ' . $this->id_base . '-' . $this->number /* md5 ( apply_filters( 'widget_text', $instance['text'] ))*/, apply_filters( 'widget_text', $instance['text'] ));
|
51 |
+
}
|
52 |
return $instance;
|
53 |
}
|
54 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.blackstudio.it/pagamento/
|
|
4 |
Tags: wysiwyg, widget, tinymce, editor, image, media, rich text, rich text editor, visual editor, wysiwyg editor, tinymce editor, widget editor, html editor, wysiwyg widget, html widget, editor widget, text widget, rich text widget, enhanced text widget, tinymce widget, visual widget, image widget, media widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3
|
7 |
-
Stable tag: 0.
|
8 |
|
9 |
Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
|
10 |
|
@@ -19,6 +19,7 @@ This plugin adds a WYSIWYG text widget based on the standard TinyMCE WordPress v
|
|
19 |
* Insert links to existing Wordpress pages/posts
|
20 |
* Fullscreen editing mode supported
|
21 |
* Wordpress networks (Multisite) supported
|
|
|
22 |
* No annoying ads/nag-screens
|
23 |
|
24 |
== Installation ==
|
@@ -37,6 +38,9 @@ This section describes how to install the plugin and get it working.
|
|
37 |
|
38 |
== Changelog ==
|
39 |
|
|
|
|
|
|
|
40 |
= 0.8.2 =
|
41 |
* Added support for shortcodes in widget text
|
42 |
|
4 |
Tags: wysiwyg, widget, tinymce, editor, image, media, rich text, rich text editor, visual editor, wysiwyg editor, tinymce editor, widget editor, html editor, wysiwyg widget, html widget, editor widget, text widget, rich text widget, enhanced text widget, tinymce widget, visual widget, image widget, media widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 0.9
|
8 |
|
9 |
Adds a WYSIWYG widget based on the standard TinyMCE WordPress visual editor.
|
10 |
|
19 |
* Insert links to existing Wordpress pages/posts
|
20 |
* Fullscreen editing mode supported
|
21 |
* Wordpress networks (Multisite) supported
|
22 |
+
* WPML (Multilanguage) supported
|
23 |
* No annoying ads/nag-screens
|
24 |
|
25 |
== Installation ==
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 0.9 =
|
42 |
+
* Added support for WPML plugin (for multilanguage sites)
|
43 |
+
|
44 |
= 0.8.2 =
|
45 |
* Added support for shortcodes in widget text
|
46 |
|