Version Description
- November 18, 2013 =
- Added: Italian translations, thanks to Tiziano D'Angelo
- Improved: Code loading
- Improved: added empty index.php files to prevent directory listings
- Improved: all default WordPress' post filters are now applied to the widget content as well.
Download this release
Release Info
Developer | DvanKooten |
Plugin | Widget Content Blocks |
Version | 2.3.3 |
Comparing to | |
See all releases |
Code changes from version 2.3.2 to 2.3.3
- includes/WYSIWYG_Widgets.php +0 -127
- includes/class-admin.php +67 -0
- includes/{WYSIWYG_Widgets_Widget.php → class-widget.php} +8 -4
- includes/index.php +3 -0
- includes/plugin.php +43 -0
- index.php +3 -0
- languages/index.php +3 -0
- languages/wysiwyg-widgets-it_IT.mo +0 -0
- languages/wysiwyg-widgets-it_IT.po +127 -0
- readme.txt +8 -1
- wysiwyg-widgets.php +11 -8
includes/WYSIWYG_Widgets.php
DELETED
@@ -1,127 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class WYSIWYG_Widgets
|
4 |
-
{
|
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,
|
37 |
-
'publicly_queryable' => false,
|
38 |
-
'show_in_nav_menus' => false,
|
39 |
-
'exclude_from_search' => true,
|
40 |
-
'labels' => $labels,
|
41 |
-
'has_archive' => false,
|
42 |
-
'supports' => array('title', 'editor'),
|
43 |
-
'rewrite' => false,
|
44 |
-
'map_meta_cap' => true
|
45 |
-
);
|
46 |
-
|
47 |
-
register_post_type( 'wysiwyg-widget', $args );
|
48 |
-
|
49 |
-
}
|
50 |
-
|
51 |
-
public function add_meta_box()
|
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()
|
95 |
-
{
|
96 |
-
register_widget('WYSIWYG_Widgets_Widget');
|
97 |
-
}
|
98 |
-
|
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 ★★★★★ 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>
|
123 |
-
</ul>
|
124 |
-
</div>
|
125 |
-
<?php
|
126 |
-
}
|
127 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/class-admin.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class WYSIWYG_Widgets_Admin
|
4 |
+
{
|
5 |
+
|
6 |
+
public function __construct()
|
7 |
+
{
|
8 |
+
add_action( 'add_meta_boxes', array($this, 'add_meta_box'), 20 );
|
9 |
+
}
|
10 |
+
|
11 |
+
public function add_meta_box()
|
12 |
+
{
|
13 |
+
add_meta_box(
|
14 |
+
'wysiwyg-widget-donate-box',
|
15 |
+
__('More..', 'wysiwyg-widgets'),
|
16 |
+
array($this, 'meta_donate_box'),
|
17 |
+
'wysiwyg-widget',
|
18 |
+
'side',
|
19 |
+
'low'
|
20 |
+
);
|
21 |
+
}
|
22 |
+
|
23 |
+
public function register_widget()
|
24 |
+
{
|
25 |
+
register_widget('WYSIWYG_Widgets_Widget');
|
26 |
+
}
|
27 |
+
|
28 |
+
public function meta_donate_box($post)
|
29 |
+
{
|
30 |
+
?>
|
31 |
+
<div>
|
32 |
+
<h4><?php _e('And now?', 'wysiwyg-widgets'); ?></h4>
|
33 |
+
<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>
|
34 |
+
</div>
|
35 |
+
|
36 |
+
<div>
|
37 |
+
<h4>Donate $10, $20 or $50</h4>
|
38 |
+
<p>I spent a lot of time developing this plugin and offering support for it. If you like it, consider supporting this plugin by <a href="http://dannyvankooten.com/donate/">donating a token of your appreciation</a>.</p>
|
39 |
+
|
40 |
+
<p>Some other ways to support this plugin</p>
|
41 |
+
<ul class="ul-square">
|
42 |
+
<li><a href="http://wordpress.org/support/view/plugin-reviews/wysiwyg-widgets?rate=5#postform" target="_blank"><?php _e('Leave a ★★★★★ review on WordPress.org', 'wysiwyg-widgets'); ?></a></li>
|
43 |
+
<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>
|
44 |
+
<li><a href="http://wordpress.org/plugins/wysiwyg-widgets/#compatibility"><?php _e('Vote "works" on the WordPress.org plugin page', 'wysiwyg-widgets'); ?></a></li>
|
45 |
+
</ul>
|
46 |
+
</div>
|
47 |
+
|
48 |
+
<div>
|
49 |
+
<h4><?php _e('Other useful plugins', 'wysiwyg-widgets'); ?></h4>
|
50 |
+
<ul class="ul-square">
|
51 |
+
<li><a href="http://wordpress.org/plugins/mailchimp-for-wp/">MailChimp for Wordpress</a></li>
|
52 |
+
<li><a href="http://wordpress.org/plugins/recent-facebook-posts/">Recent Facebook Posts</a></li>
|
53 |
+
<li><a href="http://wordpress.org/plugins/scroll-triggered-boxes/">Scroll Triggered Boxes</a></li>
|
54 |
+
</ul>
|
55 |
+
</div>
|
56 |
+
|
57 |
+
<div>
|
58 |
+
<h4>About the developer</h4>
|
59 |
+
<p>My name is <a href="http://dannyvankooten.com/">Danny van Kooten</a>. I develop WordPress plugins which help you build your websites. I love simplicity, happy customers and clean code.</p>
|
60 |
+
<p>Take a look at my other <a href="http://dannyvankooten.com/wordpress-plugins/">plugins for WordPress</a> or <em>like</em> my Facebook page to stay updated.</p>
|
61 |
+
<p><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FCodeToTheChase&width&layout=standard&action=like&show_faces=true&share=false&appId=225994527565061" scrolling="no" frameborder="0" style="border:none; width: 100%; overflow:hidden; height: 80px;" allowTransparency="true"></iframe></p>
|
62 |
+
<p>You can also follow me on twitter <a href="http://twitter.com/dannyvankooten">here</a>.</p>
|
63 |
+
</div>
|
64 |
+
|
65 |
+
<?php
|
66 |
+
}
|
67 |
+
}
|
includes/{WYSIWYG_Widgets_Widget.php → class-widget.php}
RENAMED
@@ -8,6 +8,13 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
|
|
8 |
'WYSIWYG Widget', // Name
|
9 |
array( 'description' => __('Displays one of your Widget Blocks.', 'wysiwyg-widgets') ) // Args
|
10 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
}
|
12 |
|
13 |
/**
|
@@ -36,10 +43,7 @@ class WYSIWYG_Widgets_Widget extends WP_Widget
|
|
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 |
|
8 |
'WYSIWYG Widget', // Name
|
9 |
array( 'description' => __('Displays one of your Widget Blocks.', 'wysiwyg-widgets') ) // Args
|
10 |
);
|
11 |
+
|
12 |
+
add_filter( 'ww_content', 'wptexturize') ;
|
13 |
+
add_filter( 'ww_content', 'convert_smilies' );
|
14 |
+
add_filter( 'ww_content', 'convert_chars' );
|
15 |
+
add_filter( 'ww_content', 'wpautop' );
|
16 |
+
add_filter( 'ww_content', 'do_shortcode' );
|
17 |
+
add_filter( 'ww_content', 'shortcode_unautop' );
|
18 |
}
|
19 |
|
20 |
/**
|
43 |
$title = apply_filters( 'widget_title', $title );
|
44 |
}
|
45 |
|
46 |
+
$content = apply_filters('ww_content', $post->post_content, $id);
|
|
|
|
|
|
|
47 |
|
48 |
?>
|
49 |
|
includes/index.php
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// empty index.php to prevent directory listing
|
includes/plugin.php
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wywi_load_textdomain() {
|
4 |
+
load_plugin_textdomain( 'wysiwyg-widgets', false, 'wysiwyg-widgets/languages/' );
|
5 |
+
}
|
6 |
+
|
7 |
+
add_action('plugins_loaded', 'wywi_load_textdomain');
|
8 |
+
|
9 |
+
|
10 |
+
function wywi_register_widget() {
|
11 |
+
require_once WYWI_PLUGIN_DIR . 'includes/class-widget.php';
|
12 |
+
register_widget('WYSIWYG_Widgets_Widget');
|
13 |
+
}
|
14 |
+
|
15 |
+
add_action( 'widgets_init', 'wywi_register_widget');
|
16 |
+
|
17 |
+
function wywi_register_post_type() {
|
18 |
+
$labels = array(
|
19 |
+
'name' => __('Widget Blocks', 'wysiwyg-widgets'),
|
20 |
+
'singular_name' => __('Widget Block', 'wysiwyg-widgets'),
|
21 |
+
'add_new' => __('New Widget Block', 'wysiwyg-widgets'),
|
22 |
+
'add_new_item' => __('Add New Widget Block', 'wysiwyg-widgets'),
|
23 |
+
'edit_item' => __('Edit Widget Block', 'wysiwyg-widgets'),
|
24 |
+
'new_item' => __('New Widget Block', 'wysiwyg-widgets'),
|
25 |
+
'all_items' => __('All Widget Blocks', 'wysiwyg-widgets'),
|
26 |
+
'view_item' => __('View Widget Block', 'wysiwyg-widgets'),
|
27 |
+
'search_items' => __('Search Widget Blocks', 'wysiwyg-widgets'),
|
28 |
+
'not_found' => __('No widget blocks found', 'wysiwyg-widgets'),
|
29 |
+
'not_found_in_trash' => __('No widget blocks found in Trash', 'wysiwyg-widgets'),
|
30 |
+
'menu_name' => __('Widget Blocks', 'wysiwyg-widgets')
|
31 |
+
);
|
32 |
+
$args = array(
|
33 |
+
'public' => false,
|
34 |
+
'show_ui' => true,
|
35 |
+
'labels' => $labels,
|
36 |
+
'supports' => array('title', 'editor'),
|
37 |
+
'map_meta_cap' => true
|
38 |
+
);
|
39 |
+
|
40 |
+
register_post_type( 'wysiwyg-widget', $args );
|
41 |
+
}
|
42 |
+
|
43 |
+
add_action('init', 'wywi_register_post_type');
|
index.php
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// empty index.php to prevent directory listing
|
languages/index.php
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// empty index.php to prevent directory listing
|
languages/wysiwyg-widgets-it_IT.mo
ADDED
Binary file
|
languages/wysiwyg-widgets-it_IT.po
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-16 23:48+0100\n"
|
6 |
+
"Last-Translator: Tiziano <tiziano@dangelos.it>\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 "Blocchi di widget"
|
19 |
+
|
20 |
+
#: .././includes/WYSIWYG_Widgets.php:23
|
21 |
+
msgid "Widget Block"
|
22 |
+
msgstr "Widget"
|
23 |
+
|
24 |
+
#: .././includes/WYSIWYG_Widgets.php:24 .././includes/WYSIWYG_Widgets.php:27
|
25 |
+
msgid "New Widget Block"
|
26 |
+
msgstr "Nuovo widget"
|
27 |
+
|
28 |
+
#: .././includes/WYSIWYG_Widgets.php:25
|
29 |
+
msgid "Add New Widget Block"
|
30 |
+
msgstr "Aggiungi nuovo widget"
|
31 |
+
|
32 |
+
#: .././includes/WYSIWYG_Widgets.php:26
|
33 |
+
msgid "Edit Widget Block"
|
34 |
+
msgstr "Modifica widget"
|
35 |
+
|
36 |
+
#: .././includes/WYSIWYG_Widgets.php:28
|
37 |
+
msgid "All Widget Blocks"
|
38 |
+
msgstr "Tutti i widget"
|
39 |
+
|
40 |
+
#: .././includes/WYSIWYG_Widgets.php:29
|
41 |
+
msgid "View Widget Block"
|
42 |
+
msgstr "Vedi il widget"
|
43 |
+
|
44 |
+
#: .././includes/WYSIWYG_Widgets.php:30
|
45 |
+
msgid "Search Widget Blocks"
|
46 |
+
msgstr "Cerca i widget"
|
47 |
+
|
48 |
+
#: .././includes/WYSIWYG_Widgets.php:31
|
49 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:109
|
50 |
+
msgid "No widget blocks found"
|
51 |
+
msgstr "Nessun widget trovato"
|
52 |
+
|
53 |
+
#: .././includes/WYSIWYG_Widgets.php:32
|
54 |
+
msgid "No widget blocks found in Trash"
|
55 |
+
msgstr "Nessun widget trovato nel cestino"
|
56 |
+
|
57 |
+
#: .././includes/WYSIWYG_Widgets.php:55
|
58 |
+
msgid "More.."
|
59 |
+
msgstr "Di più..."
|
60 |
+
|
61 |
+
#: .././includes/WYSIWYG_Widgets.php:103
|
62 |
+
msgid "And now?"
|
63 |
+
msgstr "E ora?"
|
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 |
+
"Per mostrare questo widget vai alla tua %swidgets page%s e sposta il Widget "
|
72 |
+
"WYSIWYG in una delle tue aree widget."
|
73 |
+
|
74 |
+
#: .././includes/WYSIWYG_Widgets.php:111
|
75 |
+
msgid "Show your appreciation"
|
76 |
+
msgstr "Mostra il tuo apprezzamento"
|
77 |
+
|
78 |
+
#: .././includes/WYSIWYG_Widgets.php:113
|
79 |
+
msgid "Leave a ★★★★★ review on WordPress.org"
|
80 |
+
msgstr ""
|
81 |
+
"Lascia una recensione ★★★★★ su WordPress.org"
|
82 |
+
|
83 |
+
#: .././includes/WYSIWYG_Widgets.php:114
|
84 |
+
msgid "Tweet about WYSIWYG Widgets"
|
85 |
+
msgstr "Twitta a proposito di WYSIWYG Widgets"
|
86 |
+
|
87 |
+
#: .././includes/WYSIWYG_Widgets.php:115
|
88 |
+
msgid "Vote \"works\" on the WordPress.org plugin page"
|
89 |
+
msgstr "Vota \"works\" sulla pagina Wordpress.org del plugin"
|
90 |
+
|
91 |
+
#: .././includes/WYSIWYG_Widgets.php:119
|
92 |
+
msgid "Other useful plugins"
|
93 |
+
msgstr "Altri plugin utili"
|
94 |
+
|
95 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:9
|
96 |
+
msgid "Displays one of your Widget Blocks."
|
97 |
+
msgstr "Mostra uno dei tuoi widget."
|
98 |
+
|
99 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:56
|
100 |
+
msgid "Please select a Widget Block to show in this area."
|
101 |
+
msgstr "Per favore seleziona un widget da mostrare in questa area."
|
102 |
+
|
103 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:58
|
104 |
+
#, php-format
|
105 |
+
msgid ""
|
106 |
+
"No widget block found with ID %d, please select an existing Widget Block in "
|
107 |
+
"the widget settings."
|
108 |
+
msgstr ""
|
109 |
+
"Nessun widget trovato con l'identificativo (ID) %d, per favore seleziona un "
|
110 |
+
"widget esistente nelle impostazioni del widget."
|
111 |
+
|
112 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:107
|
113 |
+
msgid "Widget Block to show:"
|
114 |
+
msgstr "Widget da mostrare:"
|
115 |
+
|
116 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:109
|
117 |
+
msgid "Select a widget block"
|
118 |
+
msgstr "Seleziona un widget"
|
119 |
+
|
120 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:117
|
121 |
+
msgid "Show title?"
|
122 |
+
msgstr "Mostra il titolo?"
|
123 |
+
|
124 |
+
#: .././includes/WYSIWYG_Widgets_Widget.php:120
|
125 |
+
#, php-format
|
126 |
+
msgid "Manage your widget blocks %shere%s"
|
127 |
+
msgstr "Gestisci i tuoi widget %shere%s"
|
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.1
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -31,6 +31,7 @@ You can create or edit the widget blocks just like you would edit any post or pa
|
|
31 |
|
32 |
- Dutch (nl_NL) - [Danny van Kooten](http://dannyvankooten.com/)
|
33 |
- Spanish (es_ES) - [Maria Ramos - WebHostingHub](http://webhostinghub.com/)
|
|
|
34 |
- Looking for more.. :)
|
35 |
|
36 |
If you have created your own language pack, or have an update of an existing one, you can send [gettext PO and MO files](http://codex.wordpress.org/Translating_WordPress) to me so that I can bundle it into WYSIWYG Widgets. You can [download the latest PO file here](http://plugins.svn.wordpress.org/wysiwyg-widgets/trunk/languages/wysiwyg-widgets.po).
|
@@ -78,6 +79,12 @@ Yes, totally. Donations are appreciated though!
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
= 2.3.2 - November 8, 2013 =
|
82 |
* Improved: When `show_title` is false, (empty) title tags will not be displayed.
|
83 |
|
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.1
|
7 |
+
Stable tag: 2.3.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
31 |
|
32 |
- Dutch (nl_NL) - [Danny van Kooten](http://dannyvankooten.com/)
|
33 |
- Spanish (es_ES) - [Maria Ramos - WebHostingHub](http://webhostinghub.com/)
|
34 |
+
- Italian (it_IT) - [Tiziano D'Angelo - Studio D'Angelo](http://www.dangelos.it/)
|
35 |
- Looking for more.. :)
|
36 |
|
37 |
If you have created your own language pack, or have an update of an existing one, you can send [gettext PO and MO files](http://codex.wordpress.org/Translating_WordPress) to me so that I can bundle it into WYSIWYG Widgets. You can [download the latest PO file here](http://plugins.svn.wordpress.org/wysiwyg-widgets/trunk/languages/wysiwyg-widgets.po).
|
79 |
|
80 |
== Changelog ==
|
81 |
|
82 |
+
= 2.3.3 - November 18, 2013 =
|
83 |
+
* Added: Italian translations, thanks to [Tiziano D'Angelo](http://www.dangelos.it/)
|
84 |
+
* Improved: Code loading
|
85 |
+
* Improved: added empty index.php files to prevent directory listings
|
86 |
+
* Improved: all default WordPress' post filters are now applied to the widget content as well.
|
87 |
+
|
88 |
= 2.3.2 - November 8, 2013 =
|
89 |
* Improved: When `show_title` is false, (empty) title tags will not be displayed.
|
90 |
|
wysiwyg-widgets.php
CHANGED
@@ -3,15 +3,15 @@
|
|
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 |
Text Domain: wysiwyg-widgets
|
10 |
Domain Path: /languages/
|
11 |
-
License: GPL v3
|
12 |
-
|
|
|
13 |
|
14 |
-
/*
|
15 |
Copyright (C) 2013, Danny van Kooten, hi@dannyvankooten.com
|
16 |
|
17 |
This program is free software: you can redistribute it and/or modify
|
@@ -30,10 +30,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
30 |
|
31 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
32 |
|
33 |
-
define("WYWI_VERSION_NUMBER", "2.3.
|
34 |
define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
|
35 |
|
36 |
-
require_once WYWI_PLUGIN_DIR . 'includes/
|
37 |
-
require_once WYWI_PLUGIN_DIR . 'includes/WYSIWYG_Widgets_Widget.php';
|
38 |
|
39 |
-
|
|
|
|
|
|
|
|
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.3
|
7 |
Author: Danny van Kooten
|
8 |
Author URI: http://DannyvanKooten.com
|
9 |
Text Domain: wysiwyg-widgets
|
10 |
Domain Path: /languages/
|
11 |
+
License: GPL v3 or later
|
12 |
+
|
13 |
+
WYSIWYG Widgets plugin
|
14 |
|
|
|
15 |
Copyright (C) 2013, Danny van Kooten, hi@dannyvankooten.com
|
16 |
|
17 |
This program is free software: you can redistribute it and/or modify
|
30 |
|
31 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
32 |
|
33 |
+
define("WYWI_VERSION_NUMBER", "2.3.3");
|
34 |
define("WYWI_PLUGIN_DIR", plugin_dir_path(__FILE__));
|
35 |
|
36 |
+
require_once WYWI_PLUGIN_DIR . 'includes/plugin.php';
|
|
|
37 |
|
38 |
+
// only load admin class for non-ajax requests to the admin section
|
39 |
+
if(is_admin() && (!defined("DOING_AJAX") || !DOING_AJAX)) {
|
40 |
+
require_once WYWI_PLUGIN_DIR . 'includes/class-admin.php';
|
41 |
+
new WYSIWYG_Widgets_Admin();
|
42 |
+
}
|