Widget Content Blocks - Version 2.3

Version Description

Plugin is now translation-ready. Included Dutch translations, looking for more translators!

Download this release

Release Info

Developer DvanKooten
Plugin Icon wp plugin Widget Content Blocks
Version 2.3
Comparing to
See all releases

Code changes from version 2.2.6 to 2.3

includes/WYSIWYG_Widgets.php CHANGED
@@ -5,27 +5,32 @@ class WYSIWYG_Widgets
5
 
6
  public function __construct()
7
  {
8
- add_action('init', array($this, 'on_init_action'));
 
9
  add_action( 'widgets_init', array($this, 'register_widget'));
10
  add_action( 'add_meta_boxes', array($this, 'add_meta_box'), 20 );
 
11
  }
12
 
13
- public function on_init_action()
 
 
 
 
14
  {
15
  $labels = array(
16
- 'name' => 'Widget Blocks',
17
- 'singular_name' => 'Widget Block',
18
- 'add_new' => 'Add New',
19
- 'add_new_item' => 'Add New Widget Block',
20
- 'edit_item' => 'Edit Widget Block',
21
- 'new_item' => 'New Widget Block',
22
- 'all_items' => 'Widget Blocks',
23
- 'view_item' => 'View Widget Block',
24
- 'search_items' => 'Search Widget Blocks',
25
- 'not_found' => 'No widget blocks found',
26
- 'not_found_in_trash' => 'No widget blocks found in Trash',
27
- 'parent_item_colon' => '',
28
- 'menu_name' => 'Widget Blocks'
29
  );
30
  $args = array(
31
  'public' => true,
@@ -47,13 +52,43 @@ class WYSIWYG_Widgets
47
  {
48
  add_meta_box(
49
  'wysiwyg-widget-donate-box',
50
- 'More..',
51
  array($this, 'meta_donate_box'),
52
  'wysiwyg-widget',
53
  'side',
54
  'low'
55
  );
56
- remove_meta_box('wpseo_meta', 'wysiwyg-widget', 'normal');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
58
 
59
  public function register_widget()
@@ -64,21 +99,24 @@ class WYSIWYG_Widgets
64
  public function meta_donate_box($post)
65
  {
66
  ?>
67
- <div style=" background: #222; color:#eee; padding:20px; ">
68
- <h4 style="margin-top:0;">Donate a token of your appreciation</h4>
69
- <p>I spent many hours developing and supporting this plugin.</p>
70
- <p>If you like it, consider <a href="http://dannyvankooten.com/donate/">donating $10, $20 or $50</a> as a token of your appreciation.</p>
 
 
 
71
  </div>
72
  <div>
73
- <h4>Other ways to show your appreciation</h4>
74
  <ul class="ul-square">
75
- <li><a href="http://wordpress.org/support/view/plugin-reviews/wysiwyg-widgets?rate=5#postform" target="_blank">Leave a &#9733;&#9733;&#9733;&#9733;&#9733; review on WordPress.org</a></li>
76
- <li><a href="http://twitter.com/?status=I%20use%20the%20WYSIWYG%20Widgets%20plugin%20by%20%40DannyvanKooten%20on%20my%20%23WordPress%20site%20to%20show%20beautiful%20widgets%20-%20love%20it!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fwysiwyg-widgets%2F" target="_blank">Tweet about WYSIWYG Widgets</a></li>
77
- <li><a href="http://wordpress.org/plugins/wysiwyg-widgets/#compatibility">Vote "works" on the WordPress.org plugin page</a></li>
78
  </ul>
79
  </div>
80
  <div>
81
- <h4>Other useful plugins</h4>
82
  <ul class="ul-square">
83
  <li><a href="http://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for Wordpress</a></li>
84
  <li><a href="http://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
5
 
6
  public function __construct()
7
  {
8
+ add_action('init', array($this, 'register_post_type'));
9
+ add_action('plugins_loaded', array($this, 'load_textdomain'));
10
  add_action( 'widgets_init', array($this, 'register_widget'));
11
  add_action( 'add_meta_boxes', array($this, 'add_meta_box'), 20 );
12
+ add_action('do_meta_boxes', array($this, 'remove_meta_boxes'));
13
  }
14
 
15
+ public function load_textdomain() {
16
+ load_plugin_textdomain( 'wysiwyg-widgets', false, 'wysiwyg-widgets/languages/' );
17
+ }
18
+
19
+ public function register_post_type()
20
  {
21
  $labels = array(
22
+ 'name' => __('Widget Blocks', 'wysiwyg-widgets'),
23
+ 'singular_name' => __('Widget Block', 'wysiwyg-widgets'),
24
+ 'add_new' => __('New Widget Block', 'wysiwyg-widgets'),
25
+ 'add_new_item' => __('Add New Widget Block', 'wysiwyg-widgets'),
26
+ 'edit_item' => __('Edit Widget Block', 'wysiwyg-widgets'),
27
+ 'new_item' => __('New Widget Block', 'wysiwyg-widgets'),
28
+ 'all_items' => __('All Widget Blocks', 'wysiwyg-widgets'),
29
+ 'view_item' => __('View Widget Block', 'wysiwyg-widgets'),
30
+ 'search_items' => __('Search Widget Blocks', 'wysiwyg-widgets'),
31
+ 'not_found' => __('No widget blocks found', 'wysiwyg-widgets'),
32
+ 'not_found_in_trash' => __('No widget blocks found in Trash', 'wysiwyg-widgets'),
33
+ 'menu_name' => __('Widget Blocks', 'wysiwyg-widgets')
 
34
  );
35
  $args = array(
36
  'public' => true,
52
  {
53
  add_meta_box(
54
  'wysiwyg-widget-donate-box',
55
+ __('More..', 'wysiwyg-widgets'),
56
  array($this, 'meta_donate_box'),
57
  'wysiwyg-widget',
58
  'side',
59
  'low'
60
  );
61
+ }
62
+
63
+
64
+ /**
65
+ * Remove all metaboxes except "submitdiv".
66
+ * Also removes all metaboxes added by other plugins..
67
+ */
68
+ public function remove_meta_boxes() {
69
+ global $wp_meta_boxes;
70
+
71
+ if ( isset( $wp_meta_boxes["wysiwyg-widget"] ) && is_array( $wp_meta_boxes["wysiwyg-widget"] ) ) {
72
+ $meta_boxes = $wp_meta_boxes["wysiwyg-widget"];
73
+ $allowed_meta_boxes = array( 'submitdiv' );
74
+
75
+ foreach ( $meta_boxes as $context => $context_boxes ) {
76
+ if ( ! is_array( $context_boxes ) ) { continue; }
77
+
78
+ foreach ( $context_boxes as $priority => $priority_boxes ) {
79
+ if ( !is_array( $priority_boxes ) ) { continue; }
80
+
81
+ foreach ( $priority_boxes as $meta_box_id => $meta_box_args ) {
82
+ if ( stristr( $meta_box_id, 'wysiwyg-widget' ) === false && !in_array( strtolower($meta_box_id), $allowed_meta_boxes ) ) {
83
+
84
+ remove_meta_box($meta_box_id, 'wysiwyg-widget', $priority);
85
+
86
+ //unset( $wp_meta_boxes["wysiwyg-widget"][$context][$priority][$meta_box_id] );
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
  }
93
 
94
  public function register_widget()
99
  public function meta_donate_box($post)
100
  {
101
  ?>
102
+ <div>
103
+ <h4><?php _e('And now?', 'wysiwyg-widgets'); ?></h4>
104
+ <p><?php printf(__('Show this widget block by going to your %swidgets page%s and then dragging the WYSIWYG Widget to one of your widget areas.', 'wysiwyg-widgets'), '<a href="'. admin_url('widgets.php') .'">', '</a>'); ?></p>
105
+ </div>
106
+ <div style="margin:1.33em 0; background: #222; color:#eee; padding:20px; ">
107
+ <h4 style="margin:0;">Donate a token of your appreciation</h4>
108
+ <p>If you like this plugin, consider <a href="http://dannyvankooten.com/donate/">donating $10, $20 or $50</a> as a token of your appreciation.</p>
109
  </div>
110
  <div>
111
+ <h4><?php _e('Show your appreciation', 'wysiwyg-widgets'); ?></h4>
112
  <ul class="ul-square">
113
+ <li><a href="http://wordpress.org/support/view/plugin-reviews/wysiwyg-widgets?rate=5#postform" target="_blank"><?php _e('Leave a &#9733;&#9733;&#9733;&#9733;&#9733; review on WordPress.org', 'wysiwyg-widgets'); ?></a></li>
114
+ <li><a href="http://twitter.com/?status=I%20use%20the%20WYSIWYG%20Widgets%20plugin%20by%20%40DannyvanKooten%20on%20my%20%23WordPress%20site%20to%20show%20beautiful%20widgets%20-%20love%20it!%20http%3A%2F%2Fwordpress.org%2Fplugins%2Fwysiwyg-widgets%2F" target="_blank"><?php _e('Tweet about WYSIWYG Widgets', 'wysiwyg-widgets'); ?></a></li>
115
+ <li><a href="http://wordpress.org/plugins/wysiwyg-widgets/#compatibility"><?php _e('Vote "works" on the WordPress.org plugin page', 'wysiwyg-widgets'); ?></a></li>
116
  </ul>
117
  </div>
118
  <div>
119
+ <h4><?php _e('Other useful plugins', 'wysiwyg-widgets'); ?></h4>
120
  <ul class="ul-square">
121
  <li><a href="http://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for Wordpress</a></li>
122
  <li><a href="http://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
includes/WYSIWYG_Widgets_Widget.php CHANGED
@@ -6,7 +6,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
6
  parent::__construct(
7
  'wysiwyg_widgets_widget', // Base ID
8
  'WYSIWYG Widget', // Name
9
- array( 'description' => 'Displays one of your Widget Blocks.' ) // Args
10
  );
11
  }
12
 
@@ -20,28 +20,43 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
20
  */
21
  public function widget( $args, $instance ) {
22
  extract( $args );
23
- $id = $instance['wysiwyg-widget-id'];
24
 
25
- $title = apply_filters( 'widget_title', $instance['title'] );
26
  $show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
27
  $post = get_post($id);
28
 
29
  echo $before_widget;
30
 
31
- if($show_title) { echo $before_title . $title . $after_title; }
 
 
 
 
 
 
 
32
 
33
- if($post && !empty($id)) {
34
  $content = $post->post_content;
35
  $content = do_shortcode($content);
36
- $content = "\n<!-- Widget by WYSIWYG Widgets v". WYWI_VERSION_NUMBER ." - http://wordpress.org/plugins/wysiwyg-widgets/ -->\n" . wpautop($content) . "\n<!-- / WYSIWYG Widgets -->\n";
37
- echo apply_filters('ww_content', $content, $id);
 
 
 
 
 
 
 
 
 
 
38
  } elseif(current_user_can('manage_options')) { ?>
39
  <p>
40
- <?php if(empty($id)) { ?>
41
- Please select a widget block to show in this area.
42
- <?php } else { ?>
43
- No widget block found with ID <?php echo $id; ?>, please select an existing widget block in the widget settings.
44
- <?php } ?>
45
  </p>
46
  <?php
47
  }
@@ -63,18 +78,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
63
  public function update( $new_instance, $old_instance ) {
64
  $instance = array();
65
  $instance['wysiwyg-widget-id'] = $new_instance['wysiwyg-widget-id'];
66
- $instance['title'] = strip_tags($new_instance['title']);
67
  $instance['show_title'] = (isset($new_instance['show_title']) && $new_instance['show_title'] == 1) ? 1 : 0;
68
-
69
- // grab title from widget block
70
- if($instance['wysiwyg-widget-id']) {
71
- $post = get_post($instance['wysiwyg-widget-id']);
72
-
73
- if($post) {
74
- $instance['title'] = $post->post_title;
75
- }
76
- }
77
-
78
  return $instance;
79
  }
80
 
@@ -92,17 +96,17 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
92
  'numberposts' => -1
93
  ));
94
 
95
- $title = isset($instance['title']) ? $instance['title'] : '';
96
  $show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
97
  $selected_widget_id = (isset($instance['wysiwyg-widget-id'])) ? $instance['wysiwyg-widget-id'] : 0;
 
98
  ?>
99
 
100
  <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="hidden" value="<?php echo esc_attr( $title ); ?>" />
101
 
102
  <p>
103
- <label for="<?php echo $this->get_field_id( 'wysiwyg-widget-id' ); ?>"><?php _e( 'Widget Block to show:' ); ?></label>
104
- <select class="widefat" id="<?php echo $this->get_field_id('wysiwyg-widget-id'); ?>" name="<?php echo $this->get_field_name( 'wysiwyg-widget-id' ); ?>">
105
- <option value="0" disabled <?php selected($selected_widget_id, 0); ?>><?php if(empty($posts)) { ?>No widget blocks found.<?php } else { ?>Select a widget block..<?php } ?></option>
106
  <?php foreach($posts as $p) { ?>
107
  <option value="<?php echo $p->ID; ?>" <?php selected($selected_widget_id, $p->ID); ?>><?php echo $p->post_title; ?></option>
108
  <?php } ?>
@@ -113,7 +117,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
113
  <label><input type="checkbox" id="<?php echo $this->get_field_id('show_title'); ?>" name="<?php echo $this->get_field_name('show_title'); ?>" value="1" <?php checked($show_title, 1); ?> /> <?php _e("Show title?", "wysiwyg-widgets"); ?></label>
114
  </p>
115
 
116
- <p class="help">Manage your widget blocks <a href="edit.php?post_type=wysiwyg-widget">here</a></p>
117
  <?php
118
  }
119
 
6
  parent::__construct(
7
  'wysiwyg_widgets_widget', // Base ID
8
  'WYSIWYG Widget', // Name
9
+ array( 'description' => __('Displays one of your Widget Blocks.', 'wysiwyg-widgets') ) // Args
10
  );
11
  }
12
 
20
  */
21
  public function widget( $args, $instance ) {
22
  extract( $args );
23
+ $id = ($instance['wysiwyg-widget-id']) ? $instance['wysiwyg-widget-id'] : 0;
24
 
 
25
  $show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
26
  $post = get_post($id);
27
 
28
  echo $before_widget;
29
 
30
+ if(!empty($id) && $post) {
31
+
32
+ if($show_title) {
33
+ // first check $instance['title'] so titles are not changes for people upgrading from an older version of the plugin
34
+ // titles WILL change when they re-save their widget..
35
+ $title = (isset($instance['title'])) ? $instance['title'] : $post->post_title;
36
+ $title = apply_filters( 'widget_title', $title );
37
+ }
38
 
 
39
  $content = $post->post_content;
40
  $content = do_shortcode($content);
41
+ $content = wpautop($content);
42
+ $content = apply_filters('ww_content', $content, $id);
43
+
44
+ ?>
45
+
46
+ <!-- Widget by WYSIWYG Widgets v<?php echo WYWI_VERSION_NUMBER ?> - http://wordpress.org/plugins/wysiwyg-widgets/ -->
47
+ <?php echo $before_title . $title . $after_title; ?>
48
+ <?php echo $content; ?>
49
+ <!-- / WYSIWYG Widgets -->
50
+
51
+ <?php
52
+
53
  } elseif(current_user_can('manage_options')) { ?>
54
  <p>
55
+ <?php if(empty($id)) {
56
+ _e('Please select a Widget Block to show in this area.', 'wysiwyg-widgets');
57
+ } else {
58
+ printf(__('No widget block found with ID %d, please select an existing Widget Block in the widget settings.', 'wysiwyg-widgets'), $id);
59
+ } ?>
60
  </p>
61
  <?php
62
  }
78
  public function update( $new_instance, $old_instance ) {
79
  $instance = array();
80
  $instance['wysiwyg-widget-id'] = $new_instance['wysiwyg-widget-id'];
 
81
  $instance['show_title'] = (isset($new_instance['show_title']) && $new_instance['show_title'] == 1) ? 1 : 0;
 
 
 
 
 
 
 
 
 
 
82
  return $instance;
83
  }
84
 
96
  'numberposts' => -1
97
  ));
98
 
 
99
  $show_title = (isset($instance['show_title'])) ? $instance['show_title'] : 1;
100
  $selected_widget_id = (isset($instance['wysiwyg-widget-id'])) ? $instance['wysiwyg-widget-id'] : 0;
101
+ $title = ($selected_widget_id) ? get_the_title($selected_widget_id) : 'No widget block selected.';
102
  ?>
103
 
104
  <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="hidden" value="<?php echo esc_attr( $title ); ?>" />
105
 
106
  <p>
107
+ <label for="<?php echo $this->get_field_id( 'wysiwyg-widget-id' ); ?>"><?php _e( 'Widget Block to show:', 'wysiwyg-widgets' ); ?></label>
108
+ <select class="widefat" id="<?php echo $this->get_field_id('wysiwyg-widget-id'); ?>" name="<?php echo $this->get_field_name( 'wysiwyg-widget-id' ); ?>" required>
109
+ <option value="0" disabled <?php selected($selected_widget_id, 0); ?>><?php if(empty($posts)) { _e('No widget blocks found', 'wysiwyg-widgets'); } else { _e('Select a widget block', 'wysiwyg-widgets'); } ?></option>
110
  <?php foreach($posts as $p) { ?>
111
  <option value="<?php echo $p->ID; ?>" <?php selected($selected_widget_id, $p->ID); ?>><?php echo $p->post_title; ?></option>
112
  <?php } ?>
117
  <label><input type="checkbox" id="<?php echo $this->get_field_id('show_title'); ?>" name="<?php echo $this->get_field_name('show_title'); ?>" value="1" <?php checked($show_title, 1); ?> /> <?php _e("Show title?", "wysiwyg-widgets"); ?></label>
118
  </p>
119
 
120
+ <p class="help"><?php printf(__('Manage your widget blocks %shere%s', 'wysiwyg-widgets'), '<a href="'. admin_url('edit.php?post_type=wysiwyg-widget') .'">', '</a>'); ?></p>
121
  <?php
122
  }
123
 
languages/wysiwyg-widgets-nl_NL.mo ADDED
Binary file
languages/wysiwyg-widgets-nl_NL.po ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WYSIWYG Widgets\n"
4
+ "POT-Creation-Date: 2013-11-05 11:41+0100\n"
5
+ "PO-Revision-Date: 2013-11-05 11:42+0100\n"
6
+ "Last-Translator: Danny van Kooten <hi@dannyvankooten.com>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: __;_e;_n\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: ../.\n"
15
+
16
+ #: .././includes/WYSIWYG_Widgets.php:22 .././includes/WYSIWYG_Widgets.php:33
17
+ msgid "Widget Blocks"
18
+ msgstr "Widget Blokken"
19
+
20
+ #: .././includes/WYSIWYG_Widgets.php:23
21
+ msgid "Widget Block"
22
+ msgstr "Widget Blok"
23
+
24
+ #: .././includes/WYSIWYG_Widgets.php:24 .././includes/WYSIWYG_Widgets.php:27
25
+ msgid "New Widget Block"
26
+ msgstr "Nieuw Widget Blok"
27
+
28
+ #: .././includes/WYSIWYG_Widgets.php:25
29
+ msgid "Add New Widget Block"
30
+ msgstr "Nieuw Widget Blok Toevoegen"
31
+
32
+ #: .././includes/WYSIWYG_Widgets.php:26
33
+ msgid "Edit Widget Block"
34
+ msgstr "Wijzig Widget Blok"
35
+
36
+ #: .././includes/WYSIWYG_Widgets.php:28
37
+ msgid "All Widget Blocks"
38
+ msgstr "Alle Widget Blokken"
39
+
40
+ #: .././includes/WYSIWYG_Widgets.php:29
41
+ msgid "View Widget Block"
42
+ msgstr "Bekijk Widget Blok"
43
+
44
+ #: .././includes/WYSIWYG_Widgets.php:30
45
+ msgid "Search Widget Blocks"
46
+ msgstr "Doorzoek Widget Blokken"
47
+
48
+ #: .././includes/WYSIWYG_Widgets.php:31
49
+ #: .././includes/WYSIWYG_Widgets_Widget.php:109
50
+ msgid "No widget blocks found"
51
+ msgstr "Geen widget blokken gevonden"
52
+
53
+ #: .././includes/WYSIWYG_Widgets.php:32
54
+ msgid "No widget blocks found in Trash"
55
+ msgstr "Geen widget blokken gevonden in de prullenbak"
56
+
57
+ #: .././includes/WYSIWYG_Widgets.php:55
58
+ msgid "More.."
59
+ msgstr "Meer.."
60
+
61
+ #: .././includes/WYSIWYG_Widgets.php:103
62
+ msgid "And now?"
63
+ msgstr "En nu?"
64
+
65
+ #: .././includes/WYSIWYG_Widgets.php:104
66
+ #, php-format
67
+ msgid ""
68
+ "Show this widget block by going to your %swidgets page%s and then dragging "
69
+ "the WYSIWYG Widget to one of your widget areas."
70
+ msgstr ""
71
+ "Toon dit widget blok door naar je %swidgets pagina%s te gaan en de WYSIWYG "
72
+ "Widget naar een van je widget gebieden te slepen."
73
+
74
+ #: .././includes/WYSIWYG_Widgets.php:107
75
+ #, fuzzy
76
+ msgid "Donate a token of your appreciation"
77
+ msgstr "Toon je waardering"
78
+
79
+ #: .././includes/WYSIWYG_Widgets.php:108
80
+ #, php-format
81
+ msgid ""
82
+ "If you like this plugin, consider %sdonating $10, $20 or $50%s as a token of "
83
+ "your appreciation."
84
+ msgstr ""
85
+
86
+ #: .././includes/WYSIWYG_Widgets.php:111
87
+ msgid "Show your appreciation"
88
+ msgstr "Toon je waardering"
89
+
90
+ #: .././includes/WYSIWYG_Widgets.php:113
91
+ msgid "Leave a &#9733;&#9733;&#9733;&#9733;&#9733; review on WordPress.org"
92
+ msgstr "Geef een &#9733;&#9733;&#9733;&#9733;&#9733; review op WordPress.org"
93
+
94
+ #: .././includes/WYSIWYG_Widgets.php:114
95
+ msgid "Tweet about WYSIWYG Widgets"
96
+ msgstr "Tweet over WYSIWYG Widgets"
97
+
98
+ #: .././includes/WYSIWYG_Widgets.php:115
99
+ msgid "Vote \"works\" on the WordPress.org plugin page"
100
+ msgstr "Stem \"works\" op de WordPress.org plugin pagina"
101
+
102
+ #: .././includes/WYSIWYG_Widgets.php:119
103
+ msgid "Other useful plugins"
104
+ msgstr "Andere handige plugins"
105
+
106
+ #: .././includes/WYSIWYG_Widgets_Widget.php:9
107
+ msgid "Displays one of your Widget Blocks."
108
+ msgstr "Toont een van je Widget Blokken."
109
+
110
+ #: .././includes/WYSIWYG_Widgets_Widget.php:56
111
+ msgid "Please select a Widget Block to show in this area."
112
+ msgstr "Selecteer een Widget Blok om in dit widget gebied te tonen."
113
+
114
+ #: .././includes/WYSIWYG_Widgets_Widget.php:58
115
+ #, php-format
116
+ msgid ""
117
+ "No widget block found with ID %d, please select an existing Widget Block in "
118
+ "the widget settings."
119
+ msgstr ""
120
+ "Geen widget blok gevonden met Id %d, selecteer een bestaand Widget Blok in "
121
+ "de widget instellingen."
122
+
123
+ #: .././includes/WYSIWYG_Widgets_Widget.php:107
124
+ msgid "Widget Block to show:"
125
+ msgstr "Widget Blok om te tonen:"
126
+
127
+ #: .././includes/WYSIWYG_Widgets_Widget.php:109
128
+ msgid "Select a widget block"
129
+ msgstr "Selecteer een widget blok"
130
+
131
+ #: .././includes/WYSIWYG_Widgets_Widget.php:117
132
+ msgid "Show title?"
133
+ msgstr "Toon titel?"
134
+
135
+ #: .././includes/WYSIWYG_Widgets_Widget.php:120
136
+ #, php-format
137
+ msgid "Manage your widget blocks %shere%s"
138
+ msgstr "Beheer je Widget Blokken %shier%s"
139
+
140
+ #~ msgid "New Block"
141
+ #~ msgstr "Nieuw Blok"
142
+
143
+ #~ msgid "No widget blocks found."
144
+ #~ msgstr "Geen widget blokken gevonden."
languages/wysiwyg-widgets.mo ADDED
Binary file
languages/wysiwyg-widgets.po ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WYSIWYG Widgets\n"
4
+ "POT-Creation-Date: 2013-11-05 11:43+0100\n"
5
+ "PO-Revision-Date: 2013-11-05 11:43+0100\n"
6
+ "Last-Translator: Danny van Kooten <hi@dannyvankooten.com>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: __;_e;_n\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: ../.\n"
15
+
16
+ #: .././includes/WYSIWYG_Widgets.php:22 .././includes/WYSIWYG_Widgets.php:33
17
+ msgid "Widget Blocks"
18
+ msgstr ""
19
+
20
+ #: .././includes/WYSIWYG_Widgets.php:23
21
+ msgid "Widget Block"
22
+ msgstr ""
23
+
24
+ #: .././includes/WYSIWYG_Widgets.php:24 .././includes/WYSIWYG_Widgets.php:27
25
+ msgid "New Widget Block"
26
+ msgstr ""
27
+
28
+ #: .././includes/WYSIWYG_Widgets.php:25
29
+ msgid "Add New Widget Block"
30
+ msgstr ""
31
+
32
+ #: .././includes/WYSIWYG_Widgets.php:26
33
+ msgid "Edit Widget Block"
34
+ msgstr ""
35
+
36
+ #: .././includes/WYSIWYG_Widgets.php:28
37
+ msgid "All Widget Blocks"
38
+ msgstr ""
39
+
40
+ #: .././includes/WYSIWYG_Widgets.php:29
41
+ msgid "View Widget Block"
42
+ msgstr ""
43
+
44
+ #: .././includes/WYSIWYG_Widgets.php:30
45
+ msgid "Search Widget Blocks"
46
+ msgstr ""
47
+
48
+ #: .././includes/WYSIWYG_Widgets.php:31
49
+ #: .././includes/WYSIWYG_Widgets_Widget.php:109
50
+ msgid "No widget blocks found"
51
+ msgstr ""
52
+
53
+ #: .././includes/WYSIWYG_Widgets.php:32
54
+ msgid "No widget blocks found in Trash"
55
+ msgstr ""
56
+
57
+ #: .././includes/WYSIWYG_Widgets.php:55
58
+ msgid "More.."
59
+ msgstr ""
60
+
61
+ #: .././includes/WYSIWYG_Widgets.php:103
62
+ msgid "And now?"
63
+ msgstr ""
64
+
65
+ #: .././includes/WYSIWYG_Widgets.php:104
66
+ #, php-format
67
+ msgid ""
68
+ "Show this widget block by going to your %swidgets page%s and then dragging "
69
+ "the WYSIWYG Widget to one of your widget areas."
70
+ msgstr ""
71
+
72
+ #: .././includes/WYSIWYG_Widgets.php:111
73
+ msgid "Show your appreciation"
74
+ msgstr ""
75
+
76
+ #: .././includes/WYSIWYG_Widgets.php:113
77
+ msgid "Leave a &#9733;&#9733;&#9733;&#9733;&#9733; review on WordPress.org"
78
+ msgstr ""
79
+
80
+ #: .././includes/WYSIWYG_Widgets.php:114
81
+ msgid "Tweet about WYSIWYG Widgets"
82
+ msgstr ""
83
+
84
+ #: .././includes/WYSIWYG_Widgets.php:115
85
+ msgid "Vote \"works\" on the WordPress.org plugin page"
86
+ msgstr ""
87
+
88
+ #: .././includes/WYSIWYG_Widgets.php:119
89
+ msgid "Other useful plugins"
90
+ msgstr ""
91
+
92
+ #: .././includes/WYSIWYG_Widgets_Widget.php:9
93
+ msgid "Displays one of your Widget Blocks."
94
+ msgstr ""
95
+
96
+ #: .././includes/WYSIWYG_Widgets_Widget.php:56
97
+ msgid "Please select a Widget Block to show in this area."
98
+ msgstr ""
99
+
100
+ #: .././includes/WYSIWYG_Widgets_Widget.php:58
101
+ #, php-format
102
+ msgid ""
103
+ "No widget block found with ID %d, please select an existing Widget Block in "
104
+ "the widget settings."
105
+ msgstr ""
106
+
107
+ #: .././includes/WYSIWYG_Widgets_Widget.php:107
108
+ msgid "Widget Block to show:"
109
+ msgstr ""
110
+
111
+ #: .././includes/WYSIWYG_Widgets_Widget.php:109
112
+ msgid "Select a widget block"
113
+ msgstr ""
114
+
115
+ #: .././includes/WYSIWYG_Widgets_Widget.php:117
116
+ msgid "Show title?"
117
+ msgstr ""
118
+
119
+ #: .././includes/WYSIWYG_Widgets_Widget.php:120
120
+ #, php-format
121
+ msgid "Manage your widget blocks %shere%s"
122
+ msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://dannyvankooten.com/donate/
4
  Tags: visual,tinymce,fckeditor,widget,widgets,rich text,wysiwyg,image widget,visual editor,html
5
  Requires at least: 3.1
6
  Tested up to: 3.7
7
- Stable tag: 2.2.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -66,6 +66,14 @@ Yes, totally. Donations are appreciated though!
66
  3. Drag the WYSIWYG Widget to one of your widget areas and select the Widget Block to show.
67
 
68
  == Changelog ==
 
 
 
 
 
 
 
 
69
  = 2.2.6 - October 30, 2013 =
70
  * Fixed: Show title checkbox now defaults to a checked state.
71
 
@@ -160,5 +168,8 @@ Yes, totally. Donations are appreciated though!
160
 
161
  == Upgrade Notice ==
162
 
 
 
 
163
  = 2.0 =
164
  No backwards compatibility, please back-up your existing widgets before upgrading!
4
  Tags: visual,tinymce,fckeditor,widget,widgets,rich text,wysiwyg,image widget,visual editor,html
5
  Requires at least: 3.1
6
  Tested up to: 3.7
7
+ Stable tag: 2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
66
  3. Drag the WYSIWYG Widget to one of your widget areas and select the Widget Block to show.
67
 
68
  == Changelog ==
69
+
70
+ = 2.3 - November 5, 2013 =
71
+ * Improved: Title now changes with the Widget Block, no widget re-save necessary
72
+ * Improved: Minor code improvements
73
+ * Improved: Removed all third-party meta boxes from Edit Widget Block screen.
74
+ * Improved: Plugin is now translation ready
75
+ * Added: Dutch translation
76
+
77
  = 2.2.6 - October 30, 2013 =
78
  * Fixed: Show title checkbox now defaults to a checked state.
79
 
168
 
169
  == Upgrade Notice ==
170
 
171
+ = 2.3 =
172
+ Plugin is now translation-ready. Included Dutch translations, looking for more translators!
173
+
174
  = 2.0 =
175
  No backwards compatibility, please back-up your existing widgets before upgrading!
wysiwyg-widgets.php CHANGED
@@ -3,13 +3,13 @@
3
  Plugin Name: WYSIWYG Widgets
4
  Plugin URI: http://DannyvanKooten.com/wordpress-plugins/wysiwyg-widgets/
5
  Description: Adds a WYSIWYG Widget with a rich text editor and media upload functions.
6
- Version: 2.2.6
7
  Author: Danny van Kooten
8
  Author URI: http://DannyvanKooten.com
9
  License: GPL2
10
  */
11
 
12
- /* Copyright 2011 Danny van Kooten (email : danny@vkimedia.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
@@ -25,7 +25,7 @@ License: GPL2
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
- define("WYWI_VERSION_NUMBER", "2.2.6");
29
  define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
30
 
31
  require_once WYWI_PLUGIN_DIR . 'includes/WYSIWYG_Widgets.php';
3
  Plugin Name: WYSIWYG Widgets
4
  Plugin URI: http://DannyvanKooten.com/wordpress-plugins/wysiwyg-widgets/
5
  Description: Adds a WYSIWYG Widget with a rich text editor and media upload functions.
6
+ Version: 2.3
7
  Author: Danny van Kooten
8
  Author URI: http://DannyvanKooten.com
9
  License: GPL2
10
  */
11
 
12
+ /* Copyright 2013 Danny van Kooten (email : danny@vkimedia.com)
13
 
14
  This program is free software; you can redistribute it and/or modify
15
  it under the terms of the GNU General Public License, version 2, as
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
+ define("WYWI_VERSION_NUMBER", "2.3");
29
  define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
30
 
31
  require_once WYWI_PLUGIN_DIR . 'includes/WYSIWYG_Widgets.php';