Black Studio TinyMCE Widget - Version 0.9

Version Description

  • Added support for WPML plugin (for multilanguage sites)
Download this release

Release Info

Developer marcochiesi
Plugin Icon 128x128 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 CHANGED
@@ -1 +1 @@
1
- eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''.replace(/^/,String)){while(c--){d[c]=k[c]||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}('34 22;34 47;34 52;8 53(1){2(\'#\'+1).41("57");15(12(10)=="13"&&12(10.29)=="8"){30(1);15(12(22.24[\'5-6-4-3\'])=="13"){22.24[1]=22.24[\'5-6-4-3\'];22.24[1]["58"]=1;64{4.59(4.62({},22.24[\'5-6-4-3\'],22.24[1]))}60(49){63(49)}}33{10.29("55",42,1)}}}8 30(1){15(12(10)=="13"&&12(10.29)=="8"){15(12(10.18(1))=="13"){45=10.18(1).56();10.29("78",42,1);2(\'16#\'+1).39(45)}}}8 37(1){2(\'7.3:26(#\'+1+\') 25[1^=3-5-6-4][1$=31][46=20]\').50(8(){15(2(\'7.3:26(#\'+1+\') :74\').73()==0&&12(10.18(1))!="13"&&2(\'#\'+1).35(\':36\')){2(\'17[1^=3-5-6-4][1$=20]\',2(9).11(\'7.3\')).23()}33 15(12(10.18(1))!="13"){43(8(){37(1);1=44},51)}})}8 40(1){2(\'7.3:26(#\'+1+\') 25[1^=3-5-6-4][1$=31][46=20]\').50(8(){15(2.28==0&&12(10.18(1))!="13"&&2(\'#\'+1).35(\':36\')){2(\'17[1^=3-5-6-4][1$=20]\',2(9).11(\'7.3\')).23()}33 15(2(\'7.3:26(#\'+1+\') 7.3-75\').35(\':36\')&&12(10.18(1))!="13"){43(8(){40(1);1=44},51)}})}2(76).77(8(){2(\'7.3:26(16[1^=3-5-6-4]) 17.3-72\').27(\'23\',8(14){14.32();21=2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\'));37(21.19(\'1\'));71 67});2(\'7.3[1*=5-6-4] 25[66=68]\').27(\'23\',8(14){14.32();21=2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\'));15(12(10.18(21.19(\'1\')))=="13"){30(21.19(\'1\'))}2(9).65(\'54\').54(8(14,70,69){21=2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\'));40(21.19(\'1\'))})});2(\'17[1^=3-5-6-4][1$=20]\').27(\'23\',8(14){14.32();2(\'25[1^=3-5-6-4][1$=31]\',2(9).11(\'7.3\')).39(\'20\');2(9).41(\'28\');2(\'17[1^=3-5-6-4][1$=38]\',2(9).11(\'7.3\')).48(\'28\');53(2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\')).19(\'1\'))});2(\'17[1^=3-5-6-4][1$=38]\').27(\'23\',8(14){14.32();2(\'25[1^=3-5-6-4][1$=31]\',2(9).11(\'7.3\')).39(\'38\');2(9).41(\'28\');2(\'17[1^=3-5-6-4][1$=20]\',2(9).11(\'7.3\')).48(\'28\');30(2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\')).19(\'1\'))});2(\'.61 17\').27(\'23\',8(){47=2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\')).18();52=2(\'16[1^=3-5-6-4]\',2(9).11(\'7.3\')).19(\'1\')})});',10,79,'|id|jQuery|widget|tinymce|black|studio|div|function|this|tinyMCE|closest|typeof|object|event|if|textarea|a|get|attr|visual|txt_area|tinyMCEPreInit|click|mceInit|input|has|live|active|execCommand|black_studio_deactivate_visual_editor|type|preventDefault|else|var|is|visible|black_studio_open_deferred_activate_visual_editor|html|val|black_studio_ajax_deferred_activate_visual_editor|addClass|false|setTimeout|null|content|value|edCanvas|removeClass|e|each|100|wpActiveEditor|black_studio_activate_visual_editor|ajaxSuccess|mceAddControl|getContent|mceEditor|elements|init|catch|editor_media_buttons|extend|alert|try|unbind|name|true|savewidget|settings|xhr|return|action|size|animated|inside|document|ready|mceRemoveControl'.split('|'),0,{}))
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.8.2
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.8.2"; // 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,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 = do_shortcode( apply_filters( 'widget_text', $instance['text'], $instance ) );
 
 
 
 
 
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.2
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