Version Description
This release is to fix an issue with the WordPress plugin repository.
=
Download this release
Release Info
Developer | vanderwijk |
Plugin | Content Blocks (Custom Post Widget) |
Version | 1.8.5 |
Comparing to | |
See all releases |
Code changes from version 1.8.4 to 1.8.5
- trunk/custom-post-widget.php → custom-post-widget.php +2 -2
- {tags/1.8.1/images → images}/contentblock-13.png +0 -0
- {tags/1.5/images → images}/contentblock-32.png +0 -0
- {tags/1.5/images → images}/contentblock.png +0 -0
- {tags/1.4/languages → languages}/custom-post-widget-de_DE.mo +0 -0
- {tags/1.4/languages → languages}/custom-post-widget-de_DE.po +0 -0
- {tags/1.4/languages → languages}/custom-post-widget-nl_NL.mo +0 -0
- {tags/1.4/languages → languages}/custom-post-widget-nl_NL.po +0 -0
- {tags/1.5/languages → languages}/custom-post-widget.pot +0 -0
- trunk/popup.php → popup.php +0 -0
- trunk/post-widget.php → post-widget.php +0 -0
- trunk/readme.txt → readme.txt +6 -2
- trunk/screenshot-1.png → screenshot-1.png +0 -0
- trunk/screenshot-2.png → screenshot-2.png +0 -0
- tags/1.0/custom-post-widget.php +0 -134
- tags/1.0/readme.txt +0 -58
- tags/1.0/screenshot-1.PNG +0 -0
- tags/1.0/screenshot-2.PNG +0 -0
- tags/1.1.1/custom-post-widget.php +0 -134
- tags/1.1.1/readme.txt +0 -60
- tags/1.1.1/screenshot-1.png +0 -0
- tags/1.1.1/screenshot-2.png +0 -0
- tags/1.1/custom-post-widget.php +0 -134
- tags/1.1/readme.txt +0 -57
- tags/1.1/screenshot-1.png +0 -0
- tags/1.1/screenshot-2.png +0 -0
- tags/1.2.1/custom-post-widget.php +0 -150
- tags/1.2.1/readme.txt +0 -74
- tags/1.2.1/screenshot-1.png +0 -0
- tags/1.2.1/screenshot-2.png +0 -0
- tags/1.2/custom-post-widget.php +0 -155
- tags/1.2/readme.txt +0 -77
- tags/1.2/screenshot-1.png +0 -0
- tags/1.2/screenshot-2.png +0 -0
- tags/1.4/custom-post-widget.php +0 -56
- tags/1.4/languages/custom-post-widget-xx_XX.pot +0 -1
- tags/1.4/post-widget.php +0 -142
- tags/1.4/readme.txt +0 -79
- tags/1.4/screenshot-1.png +0 -0
- tags/1.4/screenshot-2.png +0 -0
- tags/1.5/custom-post-widget.php +0 -59
- tags/1.5/languages/custom-post-widget-de_DE.mo +0 -0
- tags/1.5/languages/custom-post-widget-de_DE.po +0 -171
- tags/1.5/languages/custom-post-widget-nl_NL.mo +0 -0
- tags/1.5/languages/custom-post-widget-nl_NL.po +0 -170
- tags/1.5/post-widget.php +0 -161
- tags/1.5/readme.txt +0 -103
- tags/1.5/screenshot-1.png +0 -0
- tags/1.5/screenshot-2.png +0 -0
- tags/1.6/custom-post-widget.php +0 -58
- tags/1.6/images/contentblock-32.png +0 -0
- tags/1.6/images/contentblock.png +0 -0
- tags/1.6/languages/custom-post-widget-de_DE.mo +0 -0
- tags/1.6/languages/custom-post-widget-de_DE.po +0 -171
- tags/1.6/languages/custom-post-widget-nl_NL.mo +0 -0
- tags/1.6/languages/custom-post-widget-nl_NL.po +0 -170
- tags/1.6/languages/custom-post-widget.pot +0 -157
- tags/1.6/post-widget.php +0 -157
- tags/1.6/readme.txt +0 -106
- tags/1.6/screenshot-1.png +0 -0
- tags/1.6/screenshot-2.png +0 -0
- tags/1.7/custom-post-widget.php +0 -58
- tags/1.7/images/contentblock-32.png +0 -0
- tags/1.7/images/contentblock.png +0 -0
- tags/1.7/languages/custom-post-widget-de_DE.mo +0 -0
- tags/1.7/languages/custom-post-widget-de_DE.po +0 -171
- tags/1.7/languages/custom-post-widget-nl_NL.mo +0 -0
- tags/1.7/languages/custom-post-widget-nl_NL.po +0 -170
- tags/1.7/languages/custom-post-widget.pot +0 -157
- tags/1.7/post-widget.php +0 -182
- tags/1.7/readme.txt +0 -108
- tags/1.7/screenshot-1.png +0 -0
- tags/1.7/screenshot-2.png +0 -0
- tags/1.8.1/custom-post-widget.php +0 -56
- tags/1.8.1/images/contentblock-32.png +0 -0
- tags/1.8.1/images/contentblock.png +0 -0
- tags/1.8.1/languages/custom-post-widget-de_DE.mo +0 -0
- tags/1.8.1/languages/custom-post-widget-de_DE.po +0 -171
- tags/1.8.1/languages/custom-post-widget-nl_NL.mo +0 -0
- tags/1.8.1/languages/custom-post-widget-nl_NL.po +0 -170
- tags/1.8.1/languages/custom-post-widget.pot +0 -157
- tags/1.8.1/popup.php +0 -51
- tags/1.8.1/post-widget.php +0 -201
- tags/1.8.1/readme.txt +0 -111
- tags/1.8.1/screenshot-1.png +0 -0
- tags/1.8.1/screenshot-2.png +0 -0
- tags/1.8.3/custom-post-widget.php +0 -56
- tags/1.8.3/images/contentblock-13.png +0 -0
- tags/1.8.3/images/contentblock-32.png +0 -0
- tags/1.8.3/images/contentblock.png +0 -0
- tags/1.8.3/languages/custom-post-widget-de_DE.mo +0 -0
- tags/1.8.3/languages/custom-post-widget-de_DE.po +0 -171
- tags/1.8.3/languages/custom-post-widget-nl_NL.mo +0 -0
- tags/1.8.3/languages/custom-post-widget-nl_NL.po +0 -170
- tags/1.8.3/languages/custom-post-widget.pot +0 -157
- tags/1.8.3/popup.php +0 -57
- tags/1.8.3/post-widget.php +0 -183
- tags/1.8.3/readme.txt +0 -117
- tags/1.8.3/screenshot-1.png +0 -0
- tags/1.8.3/screenshot-2.png +0 -0
- tags/1.8/custom-post-widget.php +0 -57
- tags/1.8/images/contentblock-13.png +0 -0
- tags/1.8/images/contentblock-32.png +0 -0
- tags/1.8/images/contentblock.png +0 -0
- tags/1.8/languages/custom-post-widget-de_DE.mo +0 -0
- tags/1.8/languages/custom-post-widget-de_DE.po +0 -203
- tags/1.8/languages/custom-post-widget-nl_NL.mo +0 -0
- tags/1.8/languages/custom-post-widget-nl_NL.po +0 -170
- tags/1.8/languages/custom-post-widget.pot +0 -157
- tags/1.8/popup.php +0 -51
- tags/1.8/post-widget.php +0 -201
- tags/1.8/readme.txt +0 -108
- tags/1.8/screenshot-1.png +0 -0
- tags/1.8/screenshot-2.png +0 -0
- trunk/images/contentblock-13.png +0 -0
- trunk/images/contentblock-32.png +0 -0
- trunk/images/contentblock.png +0 -0
- trunk/languages/custom-post-widget-de_DE.mo +0 -0
- trunk/languages/custom-post-widget-de_DE.po +0 -171
- trunk/languages/custom-post-widget-nl_NL.mo +0 -0
- trunk/languages/custom-post-widget-nl_NL.po +0 -170
- trunk/languages/custom-post-widget.pot +0 -157
trunk/custom-post-widget.php → custom-post-widget.php
RENAMED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: Custom Post Widget
|
4 |
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.8.
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
10 |
|
11 |
-
Release notes: Version 1.8.
|
12 |
|
13 |
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
|
3 |
Plugin Name: Custom Post Widget
|
4 |
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
+
Version: 1.8.5
|
7 |
Author: Johan van der Wijk
|
8 |
Author URI: http://www.vanderwijk.com
|
9 |
License: GPL2
|
10 |
|
11 |
+
Release notes: Version 1.8.5 Plugin repository fix.
|
12 |
|
13 |
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
|
{tags/1.8.1/images → images}/contentblock-13.png
RENAMED
File without changes
|
{tags/1.5/images → images}/contentblock-32.png
RENAMED
File without changes
|
{tags/1.5/images → images}/contentblock.png
RENAMED
File without changes
|
{tags/1.4/languages → languages}/custom-post-widget-de_DE.mo
RENAMED
File without changes
|
{tags/1.4/languages → languages}/custom-post-widget-de_DE.po
RENAMED
File without changes
|
{tags/1.4/languages → languages}/custom-post-widget-nl_NL.mo
RENAMED
File without changes
|
{tags/1.4/languages → languages}/custom-post-widget-nl_NL.po
RENAMED
File without changes
|
{tags/1.5/languages → languages}/custom-post-widget.pot
RENAMED
File without changes
|
trunk/popup.php → popup.php
RENAMED
File without changes
|
trunk/post-widget.php → post-widget.php
RENAMED
File without changes
|
trunk/readme.txt → readme.txt
RENAMED
@@ -4,8 +4,8 @@ Author URI: http://www.vanderwijk.com/
|
|
4 |
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
Tags: custom-post, widget, sidebar
|
6 |
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.
|
8 |
-
Stable tag: 1.8.
|
9 |
|
10 |
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
|
@@ -113,6 +113,10 @@ The widget now emulates the $post loop. This means you can now make use of WordP
|
|
113 |
Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
|
114 |
Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
|
115 |
|
|
|
|
|
|
|
|
|
116 |
== Upgrade Notice ==
|
117 |
|
118 |
= 1.8 =
|
4 |
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
Tags: custom-post, widget, sidebar
|
6 |
Requires at least: 2.9.2
|
7 |
+
Tested up to: 3.3
|
8 |
+
Stable tag: 1.8.5
|
9 |
|
10 |
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
|
113 |
Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
|
114 |
Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
|
115 |
|
116 |
+
= 1.8.5 =
|
117 |
+
This release is to fix an issue with the WordPress plugin repository.
|
118 |
+
|
119 |
+
|
120 |
== Upgrade Notice ==
|
121 |
|
122 |
= 1.8 =
|
trunk/screenshot-1.png → screenshot-1.png
RENAMED
File without changes
|
trunk/screenshot-2.png → screenshot-2.png
RENAMED
File without changes
|
tags/1.0/custom-post-widget.php
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.0
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
|
10 |
-
Release notes: 1.0 First version
|
11 |
-
|
12 |
-
*/
|
13 |
-
|
14 |
-
// First create the widget for the admin panel
|
15 |
-
class custom_post_widget extends WP_Widget
|
16 |
-
{
|
17 |
-
function custom_post_widget()
|
18 |
-
{
|
19 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget'));
|
20 |
-
$this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
|
21 |
-
}
|
22 |
-
|
23 |
-
function form($instance)
|
24 |
-
{
|
25 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
26 |
-
|
27 |
-
?>
|
28 |
-
<p>
|
29 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
|
30 |
-
<select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
31 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC');
|
32 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
33 |
-
$currentID = get_the_ID();
|
34 |
-
if($currentID == $custom_post_id)
|
35 |
-
$extra = 'selected';
|
36 |
-
else
|
37 |
-
$extra = '';
|
38 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
39 |
-
endwhile; else:
|
40 |
-
echo '<option value="empty">No content blocks available</option>';
|
41 |
-
endif;
|
42 |
-
wp_reset_query(); ?>
|
43 |
-
</select>
|
44 |
-
</label>
|
45 |
-
</p><?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
return $instance;
|
53 |
-
}
|
54 |
-
|
55 |
-
function widget($args, $instance)
|
56 |
-
{
|
57 |
-
extract($args);
|
58 |
-
|
59 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
|
60 |
-
|
61 |
-
// Output title & $before_widget
|
62 |
-
echo $title . $before_widget;
|
63 |
-
|
64 |
-
// Output the query to find the custom post
|
65 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
66 |
-
while (have_posts()) : the_post();
|
67 |
-
echo the_content();
|
68 |
-
endwhile;
|
69 |
-
wp_reset_query();
|
70 |
-
|
71 |
-
// Output $after_widget
|
72 |
-
echo $after_widget;
|
73 |
-
}
|
74 |
-
}
|
75 |
-
add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
|
76 |
-
|
77 |
-
// Create the Content Block custom post type
|
78 |
-
|
79 |
-
add_action('init', 'my_content_block_post_type_init');
|
80 |
-
|
81 |
-
function my_content_block_post_type_init()
|
82 |
-
{
|
83 |
-
$labels = array(
|
84 |
-
'name' => _x('Content Blocks', 'post type general name'),
|
85 |
-
'singular_name' => _x('Content Block', 'post type singular name'),
|
86 |
-
'add_new' => _x('Add Content Block', 'block'),
|
87 |
-
'add_new_item' => __('Add New Content Block'),
|
88 |
-
'edit_item' => __('Edit Content Block'),
|
89 |
-
'new_item' => __('New Content Block'),
|
90 |
-
'view_item' => __('View Content Block'),
|
91 |
-
'search_items' => __('Search Content Blocks'),
|
92 |
-
'not_found' => __('No Content Blocks Found'),
|
93 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash'),
|
94 |
-
'parent_item_colon' => ''
|
95 |
-
);
|
96 |
-
$options = array(
|
97 |
-
'labels' => $labels,
|
98 |
-
'public' => false,
|
99 |
-
'publicly_queryable' => false,
|
100 |
-
'exclude_from_search' => true,
|
101 |
-
'show_ui' => true,
|
102 |
-
'query_var' => true,
|
103 |
-
'rewrite' => true,
|
104 |
-
'capability_type' => 'post',
|
105 |
-
'hierarchical' => false,
|
106 |
-
'menu_position' => null,
|
107 |
-
'supports' => array('title','editor','revisions','thumbnail')
|
108 |
-
);
|
109 |
-
register_post_type('content_block',$options);
|
110 |
-
}
|
111 |
-
|
112 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
113 |
-
|
114 |
-
function content_block_messages( $messages ) {
|
115 |
-
|
116 |
-
$messages['content_block'] = array(
|
117 |
-
0 => '',
|
118 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
119 |
-
2 => __('Custom field updated.'),
|
120 |
-
3 => __('Custom field deleted.'),
|
121 |
-
4 => __('Content Block updated.'),
|
122 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
123 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
124 |
-
7 => __('Block saved.'),
|
125 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
126 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
|
127 |
-
date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
128 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
129 |
-
);
|
130 |
-
|
131 |
-
return $messages;
|
132 |
-
}
|
133 |
-
|
134 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/readme.txt
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Donate link: http://www.vanderwijk.com/
|
4 |
-
Tags: custom post, widget, sidebar
|
5 |
-
Requires at least: 2.9
|
6 |
-
Tested up to: 3.0.1
|
7 |
-
Stable tag: 1.0
|
8 |
-
|
9 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
10 |
-
|
11 |
-
== Description ==
|
12 |
-
|
13 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
14 |
-
|
15 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
16 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
17 |
-
|
18 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
19 |
-
|
20 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
21 |
-
|
22 |
-
== Screenshots ==
|
23 |
-
|
24 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
25 |
-
2. The widget has a select box to choose the content block.
|
26 |
-
|
27 |
-
|
28 |
-
== Installation ==
|
29 |
-
|
30 |
-
1. First you will have to upload the plugin to the plugin folder.
|
31 |
-
2. Then activate the plugin in the plugin panel.
|
32 |
-
You will see that a new custom post type has been added called Content Block.
|
33 |
-
3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
|
34 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
35 |
-
5. Select a Content Block from the drop-down list.
|
36 |
-
6. Click save.
|
37 |
-
|
38 |
-
== Frequently Asked Questions ==
|
39 |
-
|
40 |
-
= Why can't I use the default text-widget? =
|
41 |
-
|
42 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
43 |
-
|
44 |
-
= How can I show the content bock on a specific page? =
|
45 |
-
|
46 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
47 |
-
|
48 |
-
== Changelog ==
|
49 |
-
|
50 |
-
= 1.0 =
|
51 |
-
First release
|
52 |
-
|
53 |
-
== Upgrade Notice ==
|
54 |
-
|
55 |
-
= 1.0 =
|
56 |
-
First release
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.0/screenshot-1.PNG
DELETED
Binary file
|
tags/1.0/screenshot-2.PNG
DELETED
Binary file
|
tags/1.1.1/custom-post-widget.php
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.1.1
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
|
10 |
-
Release notes: 1.0 First version
|
11 |
-
|
12 |
-
*/
|
13 |
-
|
14 |
-
// First create the widget for the admin panel
|
15 |
-
class custom_post_widget extends WP_Widget
|
16 |
-
{
|
17 |
-
function custom_post_widget()
|
18 |
-
{
|
19 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget'));
|
20 |
-
$this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
|
21 |
-
}
|
22 |
-
|
23 |
-
function form($instance)
|
24 |
-
{
|
25 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
26 |
-
|
27 |
-
?>
|
28 |
-
<p>
|
29 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
|
30 |
-
<select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
31 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
32 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
33 |
-
$currentID = get_the_ID();
|
34 |
-
if($currentID == $custom_post_id)
|
35 |
-
$extra = 'selected';
|
36 |
-
else
|
37 |
-
$extra = '';
|
38 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
39 |
-
endwhile; else:
|
40 |
-
echo '<option value="empty">No content blocks available</option>';
|
41 |
-
endif;
|
42 |
-
wp_reset_query(); ?>
|
43 |
-
</select>
|
44 |
-
</label>
|
45 |
-
</p><?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
return $instance;
|
53 |
-
}
|
54 |
-
|
55 |
-
function widget($args, $instance)
|
56 |
-
{
|
57 |
-
extract($args);
|
58 |
-
|
59 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
|
60 |
-
|
61 |
-
// Output title & $before_widget
|
62 |
-
echo $title . $before_widget;
|
63 |
-
|
64 |
-
// Output the query to find the custom post
|
65 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
66 |
-
while (have_posts()) : the_post();
|
67 |
-
echo the_content();
|
68 |
-
endwhile;
|
69 |
-
wp_reset_query();
|
70 |
-
|
71 |
-
// Output $after_widget
|
72 |
-
echo $after_widget;
|
73 |
-
}
|
74 |
-
}
|
75 |
-
add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
|
76 |
-
|
77 |
-
// Create the Content Block custom post type
|
78 |
-
|
79 |
-
add_action('init', 'my_content_block_post_type_init');
|
80 |
-
|
81 |
-
function my_content_block_post_type_init()
|
82 |
-
{
|
83 |
-
$labels = array(
|
84 |
-
'name' => _x('Content Blocks', 'post type general name'),
|
85 |
-
'singular_name' => _x('Content Block', 'post type singular name'),
|
86 |
-
'add_new' => _x('Add Content Block', 'block'),
|
87 |
-
'add_new_item' => __('Add New Content Block'),
|
88 |
-
'edit_item' => __('Edit Content Block'),
|
89 |
-
'new_item' => __('New Content Block'),
|
90 |
-
'view_item' => __('View Content Block'),
|
91 |
-
'search_items' => __('Search Content Blocks'),
|
92 |
-
'not_found' => __('No Content Blocks Found'),
|
93 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash'),
|
94 |
-
'parent_item_colon' => ''
|
95 |
-
);
|
96 |
-
$options = array(
|
97 |
-
'labels' => $labels,
|
98 |
-
'public' => false,
|
99 |
-
'publicly_queryable' => false,
|
100 |
-
'exclude_from_search' => true,
|
101 |
-
'show_ui' => true,
|
102 |
-
'query_var' => true,
|
103 |
-
'rewrite' => true,
|
104 |
-
'capability_type' => 'post',
|
105 |
-
'hierarchical' => false,
|
106 |
-
'menu_position' => null,
|
107 |
-
'supports' => array('title','editor','revisions','thumbnail')
|
108 |
-
);
|
109 |
-
register_post_type('content_block',$options);
|
110 |
-
}
|
111 |
-
|
112 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
113 |
-
|
114 |
-
function content_block_messages( $messages ) {
|
115 |
-
|
116 |
-
$messages['content_block'] = array(
|
117 |
-
0 => '',
|
118 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
119 |
-
2 => __('Custom field updated.'),
|
120 |
-
3 => __('Custom field deleted.'),
|
121 |
-
4 => __('Content Block updated.'),
|
122 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
123 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
124 |
-
7 => __('Block saved.'),
|
125 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
126 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
|
127 |
-
date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
128 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
129 |
-
);
|
130 |
-
|
131 |
-
return $messages;
|
132 |
-
}
|
133 |
-
|
134 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.1/readme.txt
DELETED
@@ -1,60 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Donate link: http://www.vanderwijk.com/
|
4 |
-
Tags: custom post, widget, sidebar
|
5 |
-
Requires at least: 2.9
|
6 |
-
Tested up to: 3.0.1
|
7 |
-
Stable tag: 1.1.1
|
8 |
-
|
9 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
10 |
-
|
11 |
-
== Description ==
|
12 |
-
|
13 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
14 |
-
|
15 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
16 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
17 |
-
|
18 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
19 |
-
|
20 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
21 |
-
|
22 |
-
== Screenshots ==
|
23 |
-
|
24 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
25 |
-
2. The widget has a select box to choose the content block.
|
26 |
-
|
27 |
-
== Installation ==
|
28 |
-
|
29 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
30 |
-
2. Then activate the plugin in the plugin panel.
|
31 |
-
You will see that a new custom post type has been added called Content Block.
|
32 |
-
3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
|
33 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
34 |
-
5. Select a Content Block from the drop-down list.
|
35 |
-
6. Click save.
|
36 |
-
|
37 |
-
== Frequently Asked Questions ==
|
38 |
-
|
39 |
-
= Why can't I use the default text-widget? =
|
40 |
-
|
41 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
42 |
-
|
43 |
-
= How can I show the content bock on a specific page? =
|
44 |
-
|
45 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
46 |
-
|
47 |
-
== Changelog ==
|
48 |
-
|
49 |
-
= 1.0 =
|
50 |
-
First release
|
51 |
-
|
52 |
-
= 1.1.1 =
|
53 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
54 |
-
|
55 |
-
== Upgrade Notice ==
|
56 |
-
|
57 |
-
= 1.0 =
|
58 |
-
First release
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1.1/screenshot-1.png
DELETED
Binary file
|
tags/1.1.1/screenshot-2.png
DELETED
Binary file
|
tags/1.1/custom-post-widget.php
DELETED
@@ -1,134 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.0
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
|
10 |
-
Release notes: 1.0 First version
|
11 |
-
|
12 |
-
*/
|
13 |
-
|
14 |
-
// First create the widget for the admin panel
|
15 |
-
class custom_post_widget extends WP_Widget
|
16 |
-
{
|
17 |
-
function custom_post_widget()
|
18 |
-
{
|
19 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget'));
|
20 |
-
$this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
|
21 |
-
}
|
22 |
-
|
23 |
-
function form($instance)
|
24 |
-
{
|
25 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
26 |
-
|
27 |
-
?>
|
28 |
-
<p>
|
29 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
|
30 |
-
<select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
31 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC');
|
32 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
33 |
-
$currentID = get_the_ID();
|
34 |
-
if($currentID == $custom_post_id)
|
35 |
-
$extra = 'selected';
|
36 |
-
else
|
37 |
-
$extra = '';
|
38 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
39 |
-
endwhile; else:
|
40 |
-
echo '<option value="empty">No content blocks available</option>';
|
41 |
-
endif;
|
42 |
-
wp_reset_query(); ?>
|
43 |
-
</select>
|
44 |
-
</label>
|
45 |
-
</p><?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
return $instance;
|
53 |
-
}
|
54 |
-
|
55 |
-
function widget($args, $instance)
|
56 |
-
{
|
57 |
-
extract($args);
|
58 |
-
|
59 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
|
60 |
-
|
61 |
-
// Output title & $before_widget
|
62 |
-
echo $title . $before_widget;
|
63 |
-
|
64 |
-
// Output the query to find the custom post
|
65 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
66 |
-
while (have_posts()) : the_post();
|
67 |
-
echo the_content();
|
68 |
-
endwhile;
|
69 |
-
wp_reset_query();
|
70 |
-
|
71 |
-
// Output $after_widget
|
72 |
-
echo $after_widget;
|
73 |
-
}
|
74 |
-
}
|
75 |
-
add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
|
76 |
-
|
77 |
-
// Create the Content Block custom post type
|
78 |
-
|
79 |
-
add_action('init', 'my_content_block_post_type_init');
|
80 |
-
|
81 |
-
function my_content_block_post_type_init()
|
82 |
-
{
|
83 |
-
$labels = array(
|
84 |
-
'name' => _x('Content Blocks', 'post type general name'),
|
85 |
-
'singular_name' => _x('Content Block', 'post type singular name'),
|
86 |
-
'add_new' => _x('Add Content Block', 'block'),
|
87 |
-
'add_new_item' => __('Add New Content Block'),
|
88 |
-
'edit_item' => __('Edit Content Block'),
|
89 |
-
'new_item' => __('New Content Block'),
|
90 |
-
'view_item' => __('View Content Block'),
|
91 |
-
'search_items' => __('Search Content Blocks'),
|
92 |
-
'not_found' => __('No Content Blocks Found'),
|
93 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash'),
|
94 |
-
'parent_item_colon' => ''
|
95 |
-
);
|
96 |
-
$options = array(
|
97 |
-
'labels' => $labels,
|
98 |
-
'public' => false,
|
99 |
-
'publicly_queryable' => false,
|
100 |
-
'exclude_from_search' => true,
|
101 |
-
'show_ui' => true,
|
102 |
-
'query_var' => true,
|
103 |
-
'rewrite' => true,
|
104 |
-
'capability_type' => 'post',
|
105 |
-
'hierarchical' => false,
|
106 |
-
'menu_position' => null,
|
107 |
-
'supports' => array('title','editor','revisions','thumbnail')
|
108 |
-
);
|
109 |
-
register_post_type('content_block',$options);
|
110 |
-
}
|
111 |
-
|
112 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
113 |
-
|
114 |
-
function content_block_messages( $messages ) {
|
115 |
-
|
116 |
-
$messages['content_block'] = array(
|
117 |
-
0 => '',
|
118 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
119 |
-
2 => __('Custom field updated.'),
|
120 |
-
3 => __('Custom field deleted.'),
|
121 |
-
4 => __('Content Block updated.'),
|
122 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
123 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
124 |
-
7 => __('Block saved.'),
|
125 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
126 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
|
127 |
-
date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
128 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
129 |
-
);
|
130 |
-
|
131 |
-
return $messages;
|
132 |
-
}
|
133 |
-
|
134 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1/readme.txt
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Donate link: http://www.vanderwijk.com/
|
4 |
-
Tags: custom post, widget, sidebar
|
5 |
-
Requires at least: 2.9
|
6 |
-
Tested up to: 3.0.1
|
7 |
-
Stable tag: 1.0
|
8 |
-
|
9 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
10 |
-
|
11 |
-
== Description ==
|
12 |
-
|
13 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
14 |
-
|
15 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
16 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
17 |
-
|
18 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
19 |
-
|
20 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
21 |
-
|
22 |
-
== Screenshots ==
|
23 |
-
|
24 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
25 |
-
2. The widget has a select box to choose the content block.
|
26 |
-
|
27 |
-
== Installation ==
|
28 |
-
|
29 |
-
1. First you will have to upload the plugin to the plugin folder.
|
30 |
-
2. Then activate the plugin in the plugin panel.
|
31 |
-
You will see that a new custom post type has been added called Content Block.
|
32 |
-
3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
|
33 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
34 |
-
5. Select a Content Block from the drop-down list.
|
35 |
-
6. Click save.
|
36 |
-
|
37 |
-
== Frequently Asked Questions ==
|
38 |
-
|
39 |
-
= Why can't I use the default text-widget? =
|
40 |
-
|
41 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
42 |
-
|
43 |
-
= How can I show the content bock on a specific page? =
|
44 |
-
|
45 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
46 |
-
|
47 |
-
== Changelog ==
|
48 |
-
|
49 |
-
= 1.0 =
|
50 |
-
First release
|
51 |
-
|
52 |
-
== Upgrade Notice ==
|
53 |
-
|
54 |
-
= 1.0 =
|
55 |
-
First release
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.1/screenshot-1.png
DELETED
Binary file
|
tags/1.1/screenshot-2.png
DELETED
Binary file
|
tags/1.2.1/custom-post-widget.php
DELETED
@@ -1,150 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.2
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
|
10 |
-
Release notes: 1.2 Added the option for displaying the post title
|
11 |
-
|
12 |
-
*/
|
13 |
-
|
14 |
-
// First create the widget for the admin panel
|
15 |
-
class custom_post_widget extends WP_Widget
|
16 |
-
{
|
17 |
-
function custom_post_widget()
|
18 |
-
{
|
19 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget'));
|
20 |
-
$this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
|
21 |
-
}
|
22 |
-
|
23 |
-
function form($instance)
|
24 |
-
{
|
25 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
26 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
27 |
-
|
28 |
-
?>
|
29 |
-
<p>
|
30 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
|
31 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
32 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
33 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
34 |
-
$currentID = get_the_ID();
|
35 |
-
if($currentID == $custom_post_id)
|
36 |
-
$extra = 'selected';
|
37 |
-
else
|
38 |
-
$extra = '';
|
39 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
40 |
-
endwhile; else:
|
41 |
-
echo '<option value="empty">No content blocks available</option>';
|
42 |
-
endif;
|
43 |
-
wp_reset_query(); ?>
|
44 |
-
</select>
|
45 |
-
</label>
|
46 |
-
</p>
|
47 |
-
<p>
|
48 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
49 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title') ?></label>
|
50 |
-
</p>
|
51 |
-
|
52 |
-
<?php
|
53 |
-
}
|
54 |
-
|
55 |
-
function update($new_instance, $old_instance)
|
56 |
-
{
|
57 |
-
$instance = $old_instance;
|
58 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
59 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
60 |
-
|
61 |
-
return $instance;
|
62 |
-
}
|
63 |
-
|
64 |
-
function widget($args, $instance)
|
65 |
-
{
|
66 |
-
extract($args);
|
67 |
-
|
68 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
|
69 |
-
|
70 |
-
/* Our variables from the widget settings. */
|
71 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
72 |
-
|
73 |
-
/* Before widget (defined by themes). */
|
74 |
-
echo $before_widget;
|
75 |
-
|
76 |
-
// Output the query to find the custom post
|
77 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
78 |
-
while (have_posts()) : the_post();
|
79 |
-
|
80 |
-
if ( $show_custom_post_title )
|
81 |
-
echo the_title($before_title, $after_title); // This is the line that displays the title
|
82 |
-
|
83 |
-
echo the_content();
|
84 |
-
endwhile;
|
85 |
-
wp_reset_query();
|
86 |
-
|
87 |
-
// Output $after_widget
|
88 |
-
echo $after_widget;
|
89 |
-
}
|
90 |
-
}
|
91 |
-
add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
|
92 |
-
|
93 |
-
// Create the Content Block custom post type
|
94 |
-
|
95 |
-
add_action('init', 'my_content_block_post_type_init');
|
96 |
-
|
97 |
-
function my_content_block_post_type_init()
|
98 |
-
{
|
99 |
-
$labels = array(
|
100 |
-
'name' => _x('Content Blocks', 'post type general name'),
|
101 |
-
'singular_name' => _x('Content Block', 'post type singular name'),
|
102 |
-
'add_new' => _x('Add Content Block', 'block'),
|
103 |
-
'add_new_item' => __('Add New Content Block'),
|
104 |
-
'edit_item' => __('Edit Content Block'),
|
105 |
-
'new_item' => __('New Content Block'),
|
106 |
-
'view_item' => __('View Content Block'),
|
107 |
-
'search_items' => __('Search Content Blocks'),
|
108 |
-
'not_found' => __('No Content Blocks Found'),
|
109 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash'),
|
110 |
-
'parent_item_colon' => ''
|
111 |
-
);
|
112 |
-
$options = array(
|
113 |
-
'labels' => $labels,
|
114 |
-
'public' => false,
|
115 |
-
'publicly_queryable' => false,
|
116 |
-
'exclude_from_search' => true,
|
117 |
-
'show_ui' => true,
|
118 |
-
'query_var' => true,
|
119 |
-
'rewrite' => true,
|
120 |
-
'capability_type' => 'post',
|
121 |
-
'hierarchical' => false,
|
122 |
-
'menu_position' => null,
|
123 |
-
'supports' => array('title','editor','revisions','thumbnail')
|
124 |
-
);
|
125 |
-
register_post_type('content_block',$options);
|
126 |
-
}
|
127 |
-
|
128 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
129 |
-
|
130 |
-
function content_block_messages( $messages ) {
|
131 |
-
|
132 |
-
$messages['content_block'] = array(
|
133 |
-
0 => '',
|
134 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
135 |
-
2 => __('Custom field updated.'),
|
136 |
-
3 => __('Custom field deleted.'),
|
137 |
-
4 => __('Content Block updated.'),
|
138 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
139 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
140 |
-
7 => __('Block saved.'),
|
141 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
142 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
|
143 |
-
date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
144 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
145 |
-
);
|
146 |
-
|
147 |
-
return $messages;
|
148 |
-
}
|
149 |
-
|
150 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.2.1/readme.txt
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.0.3
|
8 |
-
Stable tag: 1.2.1
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
== Changelog ==
|
53 |
-
|
54 |
-
= 1.0 =
|
55 |
-
First release
|
56 |
-
|
57 |
-
= 1.1 =
|
58 |
-
Fixed screenshots for plugin directory
|
59 |
-
|
60 |
-
= 1.1.1 =
|
61 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
62 |
-
|
63 |
-
= 1.2 =
|
64 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
65 |
-
|
66 |
-
= 1.2.1 =
|
67 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
68 |
-
|
69 |
-
== Upgrade Notice ==
|
70 |
-
|
71 |
-
= 1.1.1 =
|
72 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.2.1/screenshot-1.png
DELETED
Binary file
|
tags/1.2.1/screenshot-2.png
DELETED
Binary file
|
tags/1.2/custom-post-widget.php
DELETED
@@ -1,155 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.3
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
|
10 |
-
Release notes: 1.3 Now the title of the content block is displayed in the admin widget
|
11 |
-
|
12 |
-
*/
|
13 |
-
|
14 |
-
// First create the widget for the admin panel
|
15 |
-
class custom_post_widget extends WP_Widget
|
16 |
-
{
|
17 |
-
function custom_post_widget()
|
18 |
-
{
|
19 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget'));
|
20 |
-
$this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
|
21 |
-
}
|
22 |
-
|
23 |
-
function form($instance)
|
24 |
-
{
|
25 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
26 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
27 |
-
|
28 |
-
?>
|
29 |
-
<p>
|
30 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
|
31 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
32 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
33 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
34 |
-
$currentID = get_the_ID();
|
35 |
-
if($currentID == $custom_post_id)
|
36 |
-
$extra = 'selected' and
|
37 |
-
$widgetExtraTitle = get_the_title();
|
38 |
-
else
|
39 |
-
$extra = '';
|
40 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
41 |
-
endwhile; else:
|
42 |
-
echo '<option value="empty">No content blocks available</option>';
|
43 |
-
endif;
|
44 |
-
?>
|
45 |
-
</select>
|
46 |
-
</label>
|
47 |
-
</p>
|
48 |
-
<?php ?>
|
49 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
50 |
-
<?php wp_reset_query(); ?>
|
51 |
-
|
52 |
-
<p>
|
53 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
54 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title') ?></label>
|
55 |
-
</p>
|
56 |
-
|
57 |
-
<?php
|
58 |
-
}
|
59 |
-
|
60 |
-
function update($new_instance, $old_instance)
|
61 |
-
{
|
62 |
-
$instance = $old_instance;
|
63 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
64 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
65 |
-
|
66 |
-
return $instance;
|
67 |
-
}
|
68 |
-
|
69 |
-
function widget($args, $instance)
|
70 |
-
{
|
71 |
-
extract($args);
|
72 |
-
|
73 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
|
74 |
-
|
75 |
-
/* Our variables from the widget settings. */
|
76 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
77 |
-
|
78 |
-
/* Before widget (defined by themes). */
|
79 |
-
echo $before_widget;
|
80 |
-
|
81 |
-
// Output the query to find the custom post
|
82 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
83 |
-
while (have_posts()) : the_post();
|
84 |
-
|
85 |
-
if ( $show_custom_post_title )
|
86 |
-
echo the_title($before_title, $after_title); // This is the line that displays the title
|
87 |
-
|
88 |
-
echo the_content();
|
89 |
-
endwhile;
|
90 |
-
wp_reset_query();
|
91 |
-
|
92 |
-
// Output $after_widget
|
93 |
-
echo $after_widget;
|
94 |
-
}
|
95 |
-
}
|
96 |
-
add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
|
97 |
-
|
98 |
-
// Create the Content Block custom post type
|
99 |
-
|
100 |
-
add_action('init', 'my_content_block_post_type_init');
|
101 |
-
|
102 |
-
function my_content_block_post_type_init()
|
103 |
-
{
|
104 |
-
$labels = array(
|
105 |
-
'name' => _x('Content Blocks', 'post type general name'),
|
106 |
-
'singular_name' => _x('Content Block', 'post type singular name'),
|
107 |
-
'add_new' => _x('Add Content Block', 'block'),
|
108 |
-
'add_new_item' => __('Add New Content Block'),
|
109 |
-
'edit_item' => __('Edit Content Block'),
|
110 |
-
'new_item' => __('New Content Block'),
|
111 |
-
'view_item' => __('View Content Block'),
|
112 |
-
'search_items' => __('Search Content Blocks'),
|
113 |
-
'not_found' => __('No Content Blocks Found'),
|
114 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash'),
|
115 |
-
'parent_item_colon' => ''
|
116 |
-
);
|
117 |
-
$options = array(
|
118 |
-
'labels' => $labels,
|
119 |
-
'public' => false,
|
120 |
-
'publicly_queryable' => false,
|
121 |
-
'exclude_from_search' => true,
|
122 |
-
'show_ui' => true,
|
123 |
-
'query_var' => true,
|
124 |
-
'rewrite' => true,
|
125 |
-
'capability_type' => 'post',
|
126 |
-
'hierarchical' => false,
|
127 |
-
'menu_position' => null,
|
128 |
-
'supports' => array('title','editor','revisions','thumbnail')
|
129 |
-
);
|
130 |
-
register_post_type('content_block',$options);
|
131 |
-
}
|
132 |
-
|
133 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
134 |
-
|
135 |
-
function content_block_messages( $messages ) {
|
136 |
-
|
137 |
-
$messages['content_block'] = array(
|
138 |
-
0 => '',
|
139 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
140 |
-
2 => __('Custom field updated.'),
|
141 |
-
3 => __('Custom field deleted.'),
|
142 |
-
4 => __('Content Block updated.'),
|
143 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
144 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
|
145 |
-
7 => __('Block saved.'),
|
146 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
147 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
|
148 |
-
date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
149 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
150 |
-
);
|
151 |
-
|
152 |
-
return $messages;
|
153 |
-
}
|
154 |
-
|
155 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.2/readme.txt
DELETED
@@ -1,77 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.0.4
|
8 |
-
Stable tag: 1.3
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
== Changelog ==
|
53 |
-
|
54 |
-
= 1.0 =
|
55 |
-
First release
|
56 |
-
|
57 |
-
= 1.1 =
|
58 |
-
Fixed screenshots for plugin directory
|
59 |
-
|
60 |
-
= 1.1.1 =
|
61 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
62 |
-
|
63 |
-
= 1.2 =
|
64 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
65 |
-
|
66 |
-
= 1.2.1 =
|
67 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
68 |
-
|
69 |
-
= 1.3 =
|
70 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
71 |
-
|
72 |
-
== Upgrade Notice ==
|
73 |
-
|
74 |
-
= 1.1.1 =
|
75 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
76 |
-
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.2/screenshot-1.png
DELETED
Binary file
|
tags/1.2/screenshot-2.png
DELETED
Binary file
|
tags/1.4/custom-post-widget.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.4
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: 1.4 Thanks to Caspar from GlückPress (http://glueckpress.com) the Custom Post Widget plugin is now fully localized.
|
12 |
-
|
13 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
-
|
15 |
-
This program is free software; you can redistribute it and/or modify
|
16 |
-
it under the terms of the GNU General Public License, version 2, as
|
17 |
-
published by the Free Software Foundation.
|
18 |
-
|
19 |
-
This program is distributed in the hope that it will be useful,
|
20 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
-
GNU General Public License for more details.
|
23 |
-
|
24 |
-
You should have received a copy of the GNU General Public License
|
25 |
-
along with this program; if not, write to the Free Software
|
26 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
-
*/
|
28 |
-
|
29 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
30 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
31 |
-
define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
|
32 |
-
|
33 |
-
/* Launch the plugin. */
|
34 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
35 |
-
|
36 |
-
/**
|
37 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
38 |
-
to run in the proper order and adds needed functions to the required hooks.
|
39 |
-
*/
|
40 |
-
function custom_post_widget_plugin_init() {
|
41 |
-
|
42 |
-
/* Load the translation of the plugin. */
|
43 |
-
load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
|
44 |
-
|
45 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
Loads the widgets packaged with the plugin.
|
50 |
-
*/
|
51 |
-
function custom_post_widget_load_widgets() {
|
52 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
53 |
-
register_widget( 'custom_post_widget' );
|
54 |
-
}
|
55 |
-
|
56 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.4/languages/custom-post-widget-xx_XX.pot
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit
|
|
tags/1.4/post-widget.php
DELETED
@@ -1,142 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget
|
5 |
-
{
|
6 |
-
function custom_post_widget()
|
7 |
-
{
|
8 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
|
9 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
|
10 |
-
}
|
11 |
-
|
12 |
-
function form($instance)
|
13 |
-
{
|
14 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
15 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
16 |
-
|
17 |
-
?>
|
18 |
-
<p>
|
19 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
|
20 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
21 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
22 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
23 |
-
$currentID = get_the_ID();
|
24 |
-
if($currentID == $custom_post_id)
|
25 |
-
$extra = 'selected' and
|
26 |
-
$widgetExtraTitle = get_the_title();
|
27 |
-
else
|
28 |
-
$extra = '';
|
29 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
30 |
-
endwhile; else:
|
31 |
-
echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
|
32 |
-
endif;
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
</label>
|
36 |
-
</p>
|
37 |
-
<?php ?>
|
38 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
39 |
-
<?php wp_reset_query(); ?>
|
40 |
-
<p>
|
41 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
42 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
|
43 |
-
</p>
|
44 |
-
|
45 |
-
<?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
53 |
-
|
54 |
-
return $instance;
|
55 |
-
}
|
56 |
-
|
57 |
-
function widget($args, $instance)
|
58 |
-
{
|
59 |
-
extract($args);
|
60 |
-
|
61 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
|
62 |
-
|
63 |
-
/* Our variables from the widget settings. */
|
64 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
65 |
-
|
66 |
-
/* Before widget (defined by themes). */
|
67 |
-
echo $before_widget;
|
68 |
-
|
69 |
-
// Output the query to find the custom post
|
70 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
71 |
-
while (have_posts()) : the_post();
|
72 |
-
|
73 |
-
if ( $show_custom_post_title )
|
74 |
-
echo the_title($before_title, $after_title); // This is the line that displays the title
|
75 |
-
echo the_content();
|
76 |
-
endwhile;
|
77 |
-
wp_reset_query();
|
78 |
-
|
79 |
-
// Output $after_widget
|
80 |
-
echo $after_widget;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
// Create the Content Block custom post type
|
85 |
-
|
86 |
-
add_action('init', 'my_content_block_post_type_init');
|
87 |
-
|
88 |
-
function my_content_block_post_type_init()
|
89 |
-
{
|
90 |
-
$labels = array(
|
91 |
-
'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
92 |
-
'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
93 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
94 |
-
'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
95 |
-
'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
96 |
-
'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
97 |
-
'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
98 |
-
'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
99 |
-
'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
100 |
-
'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
101 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
102 |
-
'parent_item_colon' => ''
|
103 |
-
);
|
104 |
-
$options = array(
|
105 |
-
'labels' => $labels,
|
106 |
-
'public' => false,
|
107 |
-
'publicly_queryable' => false,
|
108 |
-
'exclude_from_search' => true,
|
109 |
-
'show_ui' => true,
|
110 |
-
'query_var' => true,
|
111 |
-
'rewrite' => true,
|
112 |
-
'capability_type' => 'post',
|
113 |
-
'hierarchical' => false,
|
114 |
-
'menu_position' => null,
|
115 |
-
'supports' => array('title','editor','revisions','thumbnail')
|
116 |
-
);
|
117 |
-
register_post_type('content_block',$options);
|
118 |
-
}
|
119 |
-
|
120 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
121 |
-
|
122 |
-
function content_block_messages( $messages ) {
|
123 |
-
|
124 |
-
$messages['content_block'] = array(
|
125 |
-
0 => '',
|
126 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
|
127 |
-
2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
128 |
-
3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
129 |
-
4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
130 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
131 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
|
132 |
-
7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
133 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
134 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
135 |
-
date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
136 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
137 |
-
);
|
138 |
-
|
139 |
-
return $messages;
|
140 |
-
}
|
141 |
-
|
142 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.4/readme.txt
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.4
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
== Changelog ==
|
53 |
-
|
54 |
-
= 1.0 =
|
55 |
-
First release
|
56 |
-
|
57 |
-
= 1.1 =
|
58 |
-
Fixed screenshots for plugin directory
|
59 |
-
|
60 |
-
= 1.1.1 =
|
61 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
62 |
-
|
63 |
-
= 1.2 =
|
64 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
65 |
-
|
66 |
-
= 1.2.1 =
|
67 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
68 |
-
|
69 |
-
= 1.3 =
|
70 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
71 |
-
|
72 |
-
= 1.4 =
|
73 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
74 |
-
|
75 |
-
|
76 |
-
== Upgrade Notice ==
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.4/screenshot-1.png
DELETED
Binary file
|
tags/1.4/screenshot-2.png
DELETED
Binary file
|
tags/1.5/custom-post-widget.php
DELETED
@@ -1,59 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.5
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: 1.5 Thanks to Caspar from GlückPress (http://glueckpress.com) the plugin
|
12 |
-
now has its own icon and as requested by Stephen James the author field has been added
|
13 |
-
to the Content Block edit screen.
|
14 |
-
|
15 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
16 |
-
|
17 |
-
This program is free software; you can redistribute it and/or modify
|
18 |
-
it under the terms of the GNU General Public License, version 2, as
|
19 |
-
published by the Free Software Foundation.
|
20 |
-
|
21 |
-
This program is distributed in the hope that it will be useful,
|
22 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
23 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
24 |
-
GNU General Public License for more details.
|
25 |
-
|
26 |
-
You should have received a copy of the GNU General Public License
|
27 |
-
along with this program; if not, write to the Free Software
|
28 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
29 |
-
*/
|
30 |
-
|
31 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
32 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
33 |
-
define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
|
34 |
-
define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
|
35 |
-
|
36 |
-
/* Launch the plugin. */
|
37 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
38 |
-
|
39 |
-
/**
|
40 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
41 |
-
to run in the proper order and adds needed functions to the required hooks.
|
42 |
-
*/
|
43 |
-
function custom_post_widget_plugin_init() {
|
44 |
-
|
45 |
-
/* Load the translation of the plugin. */
|
46 |
-
load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
|
47 |
-
|
48 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
49 |
-
}
|
50 |
-
|
51 |
-
/**
|
52 |
-
Loads the widgets packaged with the plugin.
|
53 |
-
*/
|
54 |
-
function custom_post_widget_load_widgets() {
|
55 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
56 |
-
register_widget( 'custom_post_widget' );
|
57 |
-
}
|
58 |
-
|
59 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.5/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
tags/1.5/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,171 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: post-widget.php:31
|
38 |
-
#@ custom-post-widget
|
39 |
-
msgid "No content blocks available"
|
40 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
41 |
-
|
42 |
-
#: post-widget.php:43
|
43 |
-
#@ custom-post-widget
|
44 |
-
msgid "Show Post Title"
|
45 |
-
msgstr "Beitragstitel anzeigen"
|
46 |
-
|
47 |
-
#: post-widget.php:62
|
48 |
-
#@ custom-post-widget
|
49 |
-
msgid "Find"
|
50 |
-
msgstr "Finden"
|
51 |
-
|
52 |
-
#: post-widget.php:94
|
53 |
-
#@ custom-post-widget
|
54 |
-
msgctxt "post type general name"
|
55 |
-
msgid "Content Blocks"
|
56 |
-
msgstr "Inhaltsblöcke"
|
57 |
-
|
58 |
-
#: post-widget.php:95
|
59 |
-
#@ custom-post-widget
|
60 |
-
msgctxt "post type singular name"
|
61 |
-
msgid "Content Block"
|
62 |
-
msgstr "Inhaltsblock"
|
63 |
-
|
64 |
-
#: post-widget.php:97
|
65 |
-
#@ custom-post-widget
|
66 |
-
msgctxt "block"
|
67 |
-
msgid "Add Content Block"
|
68 |
-
msgstr "Inhaltsblock erstellen"
|
69 |
-
|
70 |
-
#: post-widget.php:98
|
71 |
-
#@ custom-post-widget
|
72 |
-
msgid "Add New Content Block"
|
73 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
#@ custom-post-widget
|
77 |
-
msgid "Edit Content Block"
|
78 |
-
msgstr "Inhaltsblock bearbeiten"
|
79 |
-
|
80 |
-
#: post-widget.php:100
|
81 |
-
#@ custom-post-widget
|
82 |
-
msgid "New Content Block"
|
83 |
-
msgstr "Neuer Inhaltsblock"
|
84 |
-
|
85 |
-
#: post-widget.php:101
|
86 |
-
#@ custom-post-widget
|
87 |
-
msgid "View Content Block"
|
88 |
-
msgstr "Inhaltsblock ansehen"
|
89 |
-
|
90 |
-
#: post-widget.php:102
|
91 |
-
#@ custom-post-widget
|
92 |
-
msgid "Search Content Blocks"
|
93 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
94 |
-
|
95 |
-
#: post-widget.php:103
|
96 |
-
#@ custom-post-widget
|
97 |
-
msgid "No Content Blocks Found"
|
98 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
99 |
-
|
100 |
-
#: post-widget.php:104
|
101 |
-
#@ custom-post-widget
|
102 |
-
msgid "No Content Blocks found in Trash"
|
103 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
104 |
-
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
#@ custom-post-widget
|
108 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
110 |
-
|
111 |
-
#: post-widget.php:130
|
112 |
-
#@ custom-post-widget
|
113 |
-
msgid "Custom field updated."
|
114 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
115 |
-
|
116 |
-
#: post-widget.php:131
|
117 |
-
#@ custom-post-widget
|
118 |
-
msgid "Custom field deleted."
|
119 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
120 |
-
|
121 |
-
#: post-widget.php:132
|
122 |
-
#@ custom-post-widget
|
123 |
-
msgid "Content Block updated."
|
124 |
-
msgstr "Inhaltsblock aktualisiert."
|
125 |
-
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
#@ custom-post-widget
|
129 |
-
msgid "Content Block restored to revision from %s"
|
130 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
131 |
-
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
#@ custom-post-widget
|
135 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
136 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
137 |
-
|
138 |
-
#: post-widget.php:135
|
139 |
-
#@ custom-post-widget
|
140 |
-
msgid "Block saved."
|
141 |
-
msgstr "Inhaltsblock gespeichert."
|
142 |
-
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
#@ custom-post-widget
|
146 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
147 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
148 |
-
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
#@ custom-post-widget
|
152 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
153 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
154 |
-
|
155 |
-
#: post-widget.php:138
|
156 |
-
#@ custom-post-widget
|
157 |
-
msgid "M j, Y @ G:i"
|
158 |
-
msgstr "j. M Y @ H:M"
|
159 |
-
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
#@ custom-post-widget
|
163 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
164 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
165 |
-
|
166 |
-
#: post-widget.php:96
|
167 |
-
#@ custom-post-widget
|
168 |
-
msgctxt "post type plural name"
|
169 |
-
msgid "Content Blocks"
|
170 |
-
msgstr "Inhaltsblöcke"
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.5/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
tags/1.5/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een inhoudsblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Inhoudsblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven inhoudsblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen inhoudsblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Inhoudsblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Inhoudsblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Inhoudsblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw inhoudsblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Inhoudsblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Inhoudsblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Inhoudsblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Inhoudsblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Inhoudsblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Inhoudsblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Inhoudsblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Inhoudsblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.5/post-widget.php
DELETED
@@ -1,161 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget
|
5 |
-
{
|
6 |
-
function custom_post_widget()
|
7 |
-
{
|
8 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
|
9 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
|
10 |
-
}
|
11 |
-
|
12 |
-
function form($instance)
|
13 |
-
{
|
14 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
15 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
16 |
-
|
17 |
-
?>
|
18 |
-
<p>
|
19 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
|
20 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
21 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
22 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
23 |
-
$currentID = get_the_ID();
|
24 |
-
if($currentID == $custom_post_id)
|
25 |
-
$extra = 'selected' and
|
26 |
-
$widgetExtraTitle = get_the_title();
|
27 |
-
else
|
28 |
-
$extra = '';
|
29 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
30 |
-
endwhile; else:
|
31 |
-
echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
|
32 |
-
endif;
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
</label>
|
36 |
-
</p>
|
37 |
-
<?php ?>
|
38 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
39 |
-
<?php wp_reset_query(); ?>
|
40 |
-
<p>
|
41 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
42 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
|
43 |
-
</p>
|
44 |
-
|
45 |
-
<?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
53 |
-
|
54 |
-
return $instance;
|
55 |
-
}
|
56 |
-
|
57 |
-
function widget($args, $instance)
|
58 |
-
{
|
59 |
-
extract($args);
|
60 |
-
|
61 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
|
62 |
-
|
63 |
-
/* Our variables from the widget settings. */
|
64 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
65 |
-
|
66 |
-
/* Before widget (defined by themes). */
|
67 |
-
echo $before_widget;
|
68 |
-
|
69 |
-
// Output the query to find the custom post
|
70 |
-
query_posts( 'post_type=content_block&p=' . $custom_post_id );
|
71 |
-
while (have_posts()) : the_post();
|
72 |
-
|
73 |
-
if ( $show_custom_post_title )
|
74 |
-
echo the_title($before_title, $after_title); // This is the line that displays the title
|
75 |
-
echo the_content();
|
76 |
-
endwhile;
|
77 |
-
wp_reset_query();
|
78 |
-
|
79 |
-
// Output $after_widget
|
80 |
-
echo $after_widget;
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
// Create the Content Block custom post type
|
85 |
-
|
86 |
-
add_action('init', 'my_content_block_post_type_init');
|
87 |
-
|
88 |
-
function my_content_block_post_type_init()
|
89 |
-
{
|
90 |
-
$labels = array(
|
91 |
-
'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
92 |
-
'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
93 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
94 |
-
'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
95 |
-
'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
96 |
-
'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
97 |
-
'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
98 |
-
'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
99 |
-
'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
100 |
-
'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
101 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
102 |
-
'parent_item_colon' => ''
|
103 |
-
);
|
104 |
-
$options = array(
|
105 |
-
'labels' => $labels,
|
106 |
-
'public' => false,
|
107 |
-
'publicly_queryable' => false,
|
108 |
-
'exclude_from_search' => true,
|
109 |
-
'show_ui' => true,
|
110 |
-
'query_var' => true,
|
111 |
-
'rewrite' => true,
|
112 |
-
'capability_type' => 'post',
|
113 |
-
'hierarchical' => false,
|
114 |
-
'menu_position' => null,
|
115 |
-
'supports' => array('title','editor','revisions','thumbnail','author')
|
116 |
-
);
|
117 |
-
register_post_type('content_block',$options);
|
118 |
-
}
|
119 |
-
|
120 |
-
|
121 |
-
// Add custom styles to admin screen and menu
|
122 |
-
|
123 |
-
add_action('admin_head', 'content_block_header');
|
124 |
-
|
125 |
-
function content_block_header() {
|
126 |
-
|
127 |
-
global $post_type; ?>
|
128 |
-
|
129 |
-
<style type="text/css"><!--
|
130 |
-
<?php if (($post_type == 'content_block')) : ?>
|
131 |
-
#icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
|
132 |
-
<?php endif; ?>
|
133 |
-
#adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
|
134 |
-
#adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
|
135 |
-
--></style><?php
|
136 |
-
|
137 |
-
}
|
138 |
-
|
139 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
140 |
-
|
141 |
-
function content_block_messages( $messages ) {
|
142 |
-
|
143 |
-
$messages['content_block'] = array(
|
144 |
-
0 => '',
|
145 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
|
146 |
-
2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
147 |
-
3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
148 |
-
4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
149 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
150 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
|
151 |
-
7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
152 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
153 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
154 |
-
date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
155 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
156 |
-
);
|
157 |
-
|
158 |
-
return $messages;
|
159 |
-
}
|
160 |
-
|
161 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.5/readme.txt
DELETED
@@ -1,103 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.5
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
= How can I display the featured image in the widget? =
|
53 |
-
|
54 |
-
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
55 |
-
|
56 |
-
`function InsertFeaturedImage($content) {
|
57 |
-
global $post;
|
58 |
-
$original_content = $content;
|
59 |
-
if (current_theme_supports('post-thumbnails')) {
|
60 |
-
if ('content_block' == get_post_type()) {
|
61 |
-
$content = the_post_thumbnail('medium');
|
62 |
-
$content .= $original_content;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
return $content;
|
66 |
-
}
|
67 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
68 |
-
|
69 |
-
|
70 |
-
== Changelog ==
|
71 |
-
|
72 |
-
= 1.0 =
|
73 |
-
First release
|
74 |
-
|
75 |
-
= 1.1 =
|
76 |
-
Fixed screenshots for plugin directory
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
80 |
-
|
81 |
-
= 1.2 =
|
82 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
83 |
-
|
84 |
-
= 1.2.1 =
|
85 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
86 |
-
|
87 |
-
= 1.3 =
|
88 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
89 |
-
|
90 |
-
= 1.4 =
|
91 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
92 |
-
|
93 |
-
= 1.5 =
|
94 |
-
Thanks to Caspar Huebinger the plugin
|
95 |
-
now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
|
96 |
-
|
97 |
-
|
98 |
-
== Upgrade Notice ==
|
99 |
-
|
100 |
-
= 1.1.1 =
|
101 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
102 |
-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.5/screenshot-1.png
DELETED
Binary file
|
tags/1.5/screenshot-2.png
DELETED
Binary file
|
tags/1.6/custom-post-widget.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.6
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: Version 1.6 of the Custom Post Widget plugin now uses the much more efficient
|
12 |
-
get_post instead of query_post to display the widget content.
|
13 |
-
|
14 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
15 |
-
|
16 |
-
This program is free software; you can redistribute it and/or modify
|
17 |
-
it under the terms of the GNU General Public License, version 2, as
|
18 |
-
published by the Free Software Foundation.
|
19 |
-
|
20 |
-
This program is distributed in the hope that it will be useful,
|
21 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
-
GNU General Public License for more details.
|
24 |
-
|
25 |
-
You should have received a copy of the GNU General Public License
|
26 |
-
along with this program; if not, write to the Free Software
|
27 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
-
*/
|
29 |
-
|
30 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
31 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
32 |
-
define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
|
33 |
-
define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
|
34 |
-
|
35 |
-
/* Launch the plugin. */
|
36 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
37 |
-
|
38 |
-
/**
|
39 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
40 |
-
to run in the proper order and adds needed functions to the required hooks.
|
41 |
-
*/
|
42 |
-
function custom_post_widget_plugin_init() {
|
43 |
-
|
44 |
-
/* Load the translation of the plugin. */
|
45 |
-
load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
|
46 |
-
|
47 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
Loads the widgets packaged with the plugin.
|
52 |
-
*/
|
53 |
-
function custom_post_widget_load_widgets() {
|
54 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
55 |
-
register_widget( 'custom_post_widget' );
|
56 |
-
}
|
57 |
-
|
58 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.6/images/contentblock-32.png
DELETED
Binary file
|
tags/1.6/images/contentblock.png
DELETED
Binary file
|
tags/1.6/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
tags/1.6/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,171 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: post-widget.php:31
|
38 |
-
#@ custom-post-widget
|
39 |
-
msgid "No content blocks available"
|
40 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
41 |
-
|
42 |
-
#: post-widget.php:43
|
43 |
-
#@ custom-post-widget
|
44 |
-
msgid "Show Post Title"
|
45 |
-
msgstr "Beitragstitel anzeigen"
|
46 |
-
|
47 |
-
#: post-widget.php:62
|
48 |
-
#@ custom-post-widget
|
49 |
-
msgid "Find"
|
50 |
-
msgstr "Finden"
|
51 |
-
|
52 |
-
#: post-widget.php:94
|
53 |
-
#@ custom-post-widget
|
54 |
-
msgctxt "post type general name"
|
55 |
-
msgid "Content Blocks"
|
56 |
-
msgstr "Inhaltsblöcke"
|
57 |
-
|
58 |
-
#: post-widget.php:95
|
59 |
-
#@ custom-post-widget
|
60 |
-
msgctxt "post type singular name"
|
61 |
-
msgid "Content Block"
|
62 |
-
msgstr "Inhaltsblock"
|
63 |
-
|
64 |
-
#: post-widget.php:97
|
65 |
-
#@ custom-post-widget
|
66 |
-
msgctxt "block"
|
67 |
-
msgid "Add Content Block"
|
68 |
-
msgstr "Inhaltsblock erstellen"
|
69 |
-
|
70 |
-
#: post-widget.php:98
|
71 |
-
#@ custom-post-widget
|
72 |
-
msgid "Add New Content Block"
|
73 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
#@ custom-post-widget
|
77 |
-
msgid "Edit Content Block"
|
78 |
-
msgstr "Inhaltsblock bearbeiten"
|
79 |
-
|
80 |
-
#: post-widget.php:100
|
81 |
-
#@ custom-post-widget
|
82 |
-
msgid "New Content Block"
|
83 |
-
msgstr "Neuer Inhaltsblock"
|
84 |
-
|
85 |
-
#: post-widget.php:101
|
86 |
-
#@ custom-post-widget
|
87 |
-
msgid "View Content Block"
|
88 |
-
msgstr "Inhaltsblock ansehen"
|
89 |
-
|
90 |
-
#: post-widget.php:102
|
91 |
-
#@ custom-post-widget
|
92 |
-
msgid "Search Content Blocks"
|
93 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
94 |
-
|
95 |
-
#: post-widget.php:103
|
96 |
-
#@ custom-post-widget
|
97 |
-
msgid "No Content Blocks Found"
|
98 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
99 |
-
|
100 |
-
#: post-widget.php:104
|
101 |
-
#@ custom-post-widget
|
102 |
-
msgid "No Content Blocks found in Trash"
|
103 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
104 |
-
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
#@ custom-post-widget
|
108 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
110 |
-
|
111 |
-
#: post-widget.php:130
|
112 |
-
#@ custom-post-widget
|
113 |
-
msgid "Custom field updated."
|
114 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
115 |
-
|
116 |
-
#: post-widget.php:131
|
117 |
-
#@ custom-post-widget
|
118 |
-
msgid "Custom field deleted."
|
119 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
120 |
-
|
121 |
-
#: post-widget.php:132
|
122 |
-
#@ custom-post-widget
|
123 |
-
msgid "Content Block updated."
|
124 |
-
msgstr "Inhaltsblock aktualisiert."
|
125 |
-
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
#@ custom-post-widget
|
129 |
-
msgid "Content Block restored to revision from %s"
|
130 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
131 |
-
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
#@ custom-post-widget
|
135 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
136 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
137 |
-
|
138 |
-
#: post-widget.php:135
|
139 |
-
#@ custom-post-widget
|
140 |
-
msgid "Block saved."
|
141 |
-
msgstr "Inhaltsblock gespeichert."
|
142 |
-
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
#@ custom-post-widget
|
146 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
147 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
148 |
-
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
#@ custom-post-widget
|
152 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
153 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
154 |
-
|
155 |
-
#: post-widget.php:138
|
156 |
-
#@ custom-post-widget
|
157 |
-
msgid "M j, Y @ G:i"
|
158 |
-
msgstr "j. M Y @ H:M"
|
159 |
-
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
#@ custom-post-widget
|
163 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
164 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
165 |
-
|
166 |
-
#: post-widget.php:96
|
167 |
-
#@ custom-post-widget
|
168 |
-
msgctxt "post type plural name"
|
169 |
-
msgid "Content Blocks"
|
170 |
-
msgstr "Inhaltsblöcke"
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.6/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
tags/1.6/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een inhoudsblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Inhoudsblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven inhoudsblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen inhoudsblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Inhoudsblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Inhoudsblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Inhoudsblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw inhoudsblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Inhoudsblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Inhoudsblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Inhoudsblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Inhoudsblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Inhoudsblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Inhoudsblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Inhoudsblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Inhoudsblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.6/languages/custom-post-widget.pot
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010 Custom Post Widget
|
2 |
-
# This file is distributed under the same license as the Custom Post Widget package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Custom Post Widget 1.4\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
|
7 |
-
"POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: post-widget.php:8
|
16 |
-
msgid "Displays custom post content in a widget"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: post-widget.php:9
|
20 |
-
msgid "Content Block"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: post-widget.php:19
|
24 |
-
msgid "Content Block to Display:"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: post-widget.php:31
|
28 |
-
msgid "No content blocks available"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: post-widget.php:42
|
32 |
-
msgid "Show Post Title"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: post-widget.php:61
|
36 |
-
msgid "Find"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: post-widget.php:91
|
40 |
-
msgctxt "post type general name"
|
41 |
-
msgid "Content Blocks"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: post-widget.php:92
|
45 |
-
msgctxt "post type singular name"
|
46 |
-
msgid "Content Block"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: post-widget.php:93
|
50 |
-
msgctxt "post type plural name"
|
51 |
-
msgid "Content Blocks"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: post-widget.php:94
|
55 |
-
msgctxt "block"
|
56 |
-
msgid "Add Content Block"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: post-widget.php:95
|
60 |
-
msgid "Add New Content Block"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: post-widget.php:96
|
64 |
-
msgid "Edit Content Block"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: post-widget.php:97
|
68 |
-
msgid "New Content Block"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: post-widget.php:98
|
72 |
-
msgid "View Content Block"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Search Content Blocks"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: post-widget.php:100
|
80 |
-
msgid "No Content Blocks Found"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: post-widget.php:101
|
84 |
-
msgid "No Content Blocks found in Trash"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: post-widget.php:126
|
88 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: post-widget.php:127
|
92 |
-
msgid "Custom field updated."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: post-widget.php:128
|
96 |
-
msgid "Custom field deleted."
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: post-widget.php:129
|
100 |
-
msgid "Content Block updated."
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: post-widget.php:130
|
104 |
-
msgid "Content Block restored to revision from %s"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: post-widget.php:131
|
108 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: post-widget.php:132
|
112 |
-
msgid "Block saved."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: post-widget.php:133
|
116 |
-
msgid ""
|
117 |
-
"Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
|
118 |
-
"Block</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: post-widget.php:134
|
122 |
-
msgid ""
|
123 |
-
"Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
|
124 |
-
"href=\"%2$s\">Preview block</a>"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: post-widget.php:135
|
128 |
-
msgid "M j, Y @ G:i"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: post-widget.php:136
|
132 |
-
msgid ""
|
133 |
-
"Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
134 |
-
"Content Block</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#. Plugin Name of the plugin/theme
|
138 |
-
msgid "Custom Post Widget"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#. Plugin URI of the plugin/theme
|
142 |
-
msgid ""
|
143 |
-
"http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#. Description of the plugin/theme
|
147 |
-
msgid ""
|
148 |
-
"Show the content of a custom post of the type 'content_block' in a widget."
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#. Author of the plugin/theme
|
152 |
-
msgid "Johan van der Wijk"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#. Author URI of the plugin/theme
|
156 |
-
msgid "http://www.vanderwijk.com"
|
157 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.6/post-widget.php
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget
|
5 |
-
{
|
6 |
-
function custom_post_widget()
|
7 |
-
{
|
8 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
|
9 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
|
10 |
-
}
|
11 |
-
|
12 |
-
function form($instance)
|
13 |
-
{
|
14 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
15 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
16 |
-
|
17 |
-
?>
|
18 |
-
<p>
|
19 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
|
20 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
21 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
22 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
23 |
-
$currentID = get_the_ID();
|
24 |
-
if($currentID == $custom_post_id)
|
25 |
-
$extra = 'selected' and
|
26 |
-
$widgetExtraTitle = get_the_title();
|
27 |
-
else
|
28 |
-
$extra = '';
|
29 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
30 |
-
endwhile; else:
|
31 |
-
echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
|
32 |
-
endif;
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
</label>
|
36 |
-
</p>
|
37 |
-
<?php ?>
|
38 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
39 |
-
<?php wp_reset_query(); ?>
|
40 |
-
<p>
|
41 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
42 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
|
43 |
-
</p>
|
44 |
-
|
45 |
-
<?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
53 |
-
|
54 |
-
return $instance;
|
55 |
-
}
|
56 |
-
|
57 |
-
function widget($args, $instance)
|
58 |
-
{
|
59 |
-
extract($args);
|
60 |
-
|
61 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
|
62 |
-
|
63 |
-
/* Variables from the widget settings. */
|
64 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
65 |
-
|
66 |
-
$content_post = get_post($custom_post_id);
|
67 |
-
$content = $content_post->post_content;
|
68 |
-
$content = apply_filters('the_content', $content);
|
69 |
-
$content = str_replace(']]>', ']]>', $content);
|
70 |
-
|
71 |
-
echo $before_widget;
|
72 |
-
if ( $show_custom_post_title )
|
73 |
-
{
|
74 |
-
echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
|
75 |
-
}
|
76 |
-
echo $content; // This is where the actual content of the custom post is being displayed
|
77 |
-
echo $after_widget;
|
78 |
-
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
// Create the Content Block custom post type
|
83 |
-
add_action('init', 'my_content_block_post_type_init');
|
84 |
-
|
85 |
-
function my_content_block_post_type_init()
|
86 |
-
{
|
87 |
-
$labels = array(
|
88 |
-
'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
89 |
-
'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
90 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
91 |
-
'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
92 |
-
'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
93 |
-
'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
94 |
-
'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
95 |
-
'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
96 |
-
'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
97 |
-
'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
98 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
99 |
-
'parent_item_colon' => ''
|
100 |
-
);
|
101 |
-
$options = array(
|
102 |
-
'labels' => $labels,
|
103 |
-
'public' => false,
|
104 |
-
'publicly_queryable' => false,
|
105 |
-
'exclude_from_search' => true,
|
106 |
-
'show_ui' => true,
|
107 |
-
'query_var' => true,
|
108 |
-
'rewrite' => true,
|
109 |
-
'capability_type' => 'post',
|
110 |
-
'hierarchical' => false,
|
111 |
-
'menu_position' => null,
|
112 |
-
'supports' => array('title','editor','revisions','thumbnail','author')
|
113 |
-
);
|
114 |
-
register_post_type('content_block',$options);
|
115 |
-
}
|
116 |
-
|
117 |
-
|
118 |
-
// Add custom styles to admin screen and menu
|
119 |
-
add_action('admin_head', 'content_block_header');
|
120 |
-
|
121 |
-
function content_block_header() {
|
122 |
-
|
123 |
-
global $post_type; ?>
|
124 |
-
|
125 |
-
<style type="text/css"><!--
|
126 |
-
<?php if (($post_type == 'content_block')) : ?>
|
127 |
-
#icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
|
128 |
-
<?php endif; ?>
|
129 |
-
#adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
|
130 |
-
#adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
|
131 |
-
--></style><?php
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
136 |
-
|
137 |
-
function content_block_messages( $messages ) {
|
138 |
-
|
139 |
-
$messages['content_block'] = array(
|
140 |
-
0 => '',
|
141 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
|
142 |
-
2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
143 |
-
3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
144 |
-
4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
145 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
146 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
|
147 |
-
7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
148 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
149 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
150 |
-
date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
|
151 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
|
152 |
-
);
|
153 |
-
|
154 |
-
return $messages;
|
155 |
-
}
|
156 |
-
|
157 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.6/readme.txt
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.6
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* It enables users to use the WYSIWYG editor for editing the content and adding images
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
= How can I display the featured image in the widget? =
|
53 |
-
|
54 |
-
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
55 |
-
|
56 |
-
`function InsertFeaturedImage($content) {
|
57 |
-
global $post;
|
58 |
-
$original_content = $content;
|
59 |
-
if (current_theme_supports('post-thumbnails')) {
|
60 |
-
if ('content_block' == get_post_type()) {
|
61 |
-
$content = the_post_thumbnail('medium');
|
62 |
-
$content .= $original_content;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
return $content;
|
66 |
-
}
|
67 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
68 |
-
|
69 |
-
|
70 |
-
== Changelog ==
|
71 |
-
|
72 |
-
= 1.0 =
|
73 |
-
First release
|
74 |
-
|
75 |
-
= 1.1 =
|
76 |
-
Fixed screenshots for plugin directory
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
80 |
-
|
81 |
-
= 1.2 =
|
82 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
83 |
-
|
84 |
-
= 1.2.1 =
|
85 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
86 |
-
|
87 |
-
= 1.3 =
|
88 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
89 |
-
|
90 |
-
= 1.4 =
|
91 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
92 |
-
|
93 |
-
= 1.5 =
|
94 |
-
Thanks to Caspar Huebinger the plugin
|
95 |
-
now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
|
96 |
-
|
97 |
-
= 1.6 =
|
98 |
-
The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
|
99 |
-
|
100 |
-
|
101 |
-
== Upgrade Notice ==
|
102 |
-
|
103 |
-
= 1.1.1 =
|
104 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
105 |
-
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.6/screenshot-1.png
DELETED
Binary file
|
tags/1.6/screenshot-2.png
DELETED
Binary file
|
tags/1.7/custom-post-widget.php
DELETED
@@ -1,58 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.7
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: Version 1.7 fixes all the error messages that Yoast discovered when reviewing this plugin.
|
12 |
-
It also adds the option to use the [content_block id= ] shortcode to insert a content block in a post.
|
13 |
-
|
14 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
15 |
-
|
16 |
-
This program is free software; you can redistribute it and/or modify
|
17 |
-
it under the terms of the GNU General Public License, version 2, as
|
18 |
-
published by the Free Software Foundation.
|
19 |
-
|
20 |
-
This program is distributed in the hope that it will be useful,
|
21 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
-
GNU General Public License for more details.
|
24 |
-
|
25 |
-
You should have received a copy of the GNU General Public License
|
26 |
-
along with this program; if not, write to the Free Software
|
27 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
-
*/
|
29 |
-
|
30 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
31 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
32 |
-
define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
|
33 |
-
define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
|
34 |
-
|
35 |
-
/* Launch the plugin. */
|
36 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
37 |
-
|
38 |
-
/**
|
39 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
40 |
-
to run in the proper order and adds needed functions to the required hooks.
|
41 |
-
*/
|
42 |
-
function custom_post_widget_plugin_init() {
|
43 |
-
|
44 |
-
/* Load the translation of the plugin. */
|
45 |
-
load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
|
46 |
-
|
47 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
Loads the widgets packaged with the plugin.
|
52 |
-
*/
|
53 |
-
function custom_post_widget_load_widgets() {
|
54 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
55 |
-
register_widget( 'custom_post_widget' );
|
56 |
-
}
|
57 |
-
|
58 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.7/images/contentblock-32.png
DELETED
Binary file
|
tags/1.7/images/contentblock.png
DELETED
Binary file
|
tags/1.7/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
tags/1.7/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,171 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: post-widget.php:31
|
38 |
-
#@ custom-post-widget
|
39 |
-
msgid "No content blocks available"
|
40 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
41 |
-
|
42 |
-
#: post-widget.php:43
|
43 |
-
#@ custom-post-widget
|
44 |
-
msgid "Show Post Title"
|
45 |
-
msgstr "Beitragstitel anzeigen"
|
46 |
-
|
47 |
-
#: post-widget.php:62
|
48 |
-
#@ custom-post-widget
|
49 |
-
msgid "Find"
|
50 |
-
msgstr "Finden"
|
51 |
-
|
52 |
-
#: post-widget.php:94
|
53 |
-
#@ custom-post-widget
|
54 |
-
msgctxt "post type general name"
|
55 |
-
msgid "Content Blocks"
|
56 |
-
msgstr "Inhaltsblöcke"
|
57 |
-
|
58 |
-
#: post-widget.php:95
|
59 |
-
#@ custom-post-widget
|
60 |
-
msgctxt "post type singular name"
|
61 |
-
msgid "Content Block"
|
62 |
-
msgstr "Inhaltsblock"
|
63 |
-
|
64 |
-
#: post-widget.php:97
|
65 |
-
#@ custom-post-widget
|
66 |
-
msgctxt "block"
|
67 |
-
msgid "Add Content Block"
|
68 |
-
msgstr "Inhaltsblock erstellen"
|
69 |
-
|
70 |
-
#: post-widget.php:98
|
71 |
-
#@ custom-post-widget
|
72 |
-
msgid "Add New Content Block"
|
73 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
#@ custom-post-widget
|
77 |
-
msgid "Edit Content Block"
|
78 |
-
msgstr "Inhaltsblock bearbeiten"
|
79 |
-
|
80 |
-
#: post-widget.php:100
|
81 |
-
#@ custom-post-widget
|
82 |
-
msgid "New Content Block"
|
83 |
-
msgstr "Neuer Inhaltsblock"
|
84 |
-
|
85 |
-
#: post-widget.php:101
|
86 |
-
#@ custom-post-widget
|
87 |
-
msgid "View Content Block"
|
88 |
-
msgstr "Inhaltsblock ansehen"
|
89 |
-
|
90 |
-
#: post-widget.php:102
|
91 |
-
#@ custom-post-widget
|
92 |
-
msgid "Search Content Blocks"
|
93 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
94 |
-
|
95 |
-
#: post-widget.php:103
|
96 |
-
#@ custom-post-widget
|
97 |
-
msgid "No Content Blocks Found"
|
98 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
99 |
-
|
100 |
-
#: post-widget.php:104
|
101 |
-
#@ custom-post-widget
|
102 |
-
msgid "No Content Blocks found in Trash"
|
103 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
104 |
-
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
#@ custom-post-widget
|
108 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
110 |
-
|
111 |
-
#: post-widget.php:130
|
112 |
-
#@ custom-post-widget
|
113 |
-
msgid "Custom field updated."
|
114 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
115 |
-
|
116 |
-
#: post-widget.php:131
|
117 |
-
#@ custom-post-widget
|
118 |
-
msgid "Custom field deleted."
|
119 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
120 |
-
|
121 |
-
#: post-widget.php:132
|
122 |
-
#@ custom-post-widget
|
123 |
-
msgid "Content Block updated."
|
124 |
-
msgstr "Inhaltsblock aktualisiert."
|
125 |
-
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
#@ custom-post-widget
|
129 |
-
msgid "Content Block restored to revision from %s"
|
130 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
131 |
-
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
#@ custom-post-widget
|
135 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
136 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
137 |
-
|
138 |
-
#: post-widget.php:135
|
139 |
-
#@ custom-post-widget
|
140 |
-
msgid "Block saved."
|
141 |
-
msgstr "Inhaltsblock gespeichert."
|
142 |
-
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
#@ custom-post-widget
|
146 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
147 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
148 |
-
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
#@ custom-post-widget
|
152 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
153 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
154 |
-
|
155 |
-
#: post-widget.php:138
|
156 |
-
#@ custom-post-widget
|
157 |
-
msgid "M j, Y @ G:i"
|
158 |
-
msgstr "j. M Y @ H:M"
|
159 |
-
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
#@ custom-post-widget
|
163 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
164 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
165 |
-
|
166 |
-
#: post-widget.php:96
|
167 |
-
#@ custom-post-widget
|
168 |
-
msgctxt "post type plural name"
|
169 |
-
msgid "Content Blocks"
|
170 |
-
msgstr "Inhaltsblöcke"
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.7/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
tags/1.7/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een inhoudsblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Inhoudsblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven inhoudsblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen inhoudsblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Inhoudsblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Inhoudsblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Inhoudsblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw inhoudsblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Inhoudsblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Inhoudsblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Inhoudsblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Inhoudsblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Inhoudsblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Inhoudsblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Inhoudsblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Inhoudsblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.7/languages/custom-post-widget.pot
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010 Custom Post Widget
|
2 |
-
# This file is distributed under the same license as the Custom Post Widget package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Custom Post Widget 1.4\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
|
7 |
-
"POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: post-widget.php:8
|
16 |
-
msgid "Displays custom post content in a widget"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: post-widget.php:9
|
20 |
-
msgid "Content Block"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: post-widget.php:19
|
24 |
-
msgid "Content Block to Display:"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: post-widget.php:31
|
28 |
-
msgid "No content blocks available"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: post-widget.php:42
|
32 |
-
msgid "Show Post Title"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: post-widget.php:61
|
36 |
-
msgid "Find"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: post-widget.php:91
|
40 |
-
msgctxt "post type general name"
|
41 |
-
msgid "Content Blocks"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: post-widget.php:92
|
45 |
-
msgctxt "post type singular name"
|
46 |
-
msgid "Content Block"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: post-widget.php:93
|
50 |
-
msgctxt "post type plural name"
|
51 |
-
msgid "Content Blocks"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: post-widget.php:94
|
55 |
-
msgctxt "block"
|
56 |
-
msgid "Add Content Block"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: post-widget.php:95
|
60 |
-
msgid "Add New Content Block"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: post-widget.php:96
|
64 |
-
msgid "Edit Content Block"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: post-widget.php:97
|
68 |
-
msgid "New Content Block"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: post-widget.php:98
|
72 |
-
msgid "View Content Block"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Search Content Blocks"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: post-widget.php:100
|
80 |
-
msgid "No Content Blocks Found"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: post-widget.php:101
|
84 |
-
msgid "No Content Blocks found in Trash"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: post-widget.php:126
|
88 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: post-widget.php:127
|
92 |
-
msgid "Custom field updated."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: post-widget.php:128
|
96 |
-
msgid "Custom field deleted."
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: post-widget.php:129
|
100 |
-
msgid "Content Block updated."
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: post-widget.php:130
|
104 |
-
msgid "Content Block restored to revision from %s"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: post-widget.php:131
|
108 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: post-widget.php:132
|
112 |
-
msgid "Block saved."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: post-widget.php:133
|
116 |
-
msgid ""
|
117 |
-
"Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
|
118 |
-
"Block</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: post-widget.php:134
|
122 |
-
msgid ""
|
123 |
-
"Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
|
124 |
-
"href=\"%2$s\">Preview block</a>"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: post-widget.php:135
|
128 |
-
msgid "M j, Y @ G:i"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: post-widget.php:136
|
132 |
-
msgid ""
|
133 |
-
"Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
134 |
-
"Content Block</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#. Plugin Name of the plugin/theme
|
138 |
-
msgid "Custom Post Widget"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#. Plugin URI of the plugin/theme
|
142 |
-
msgid ""
|
143 |
-
"http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#. Description of the plugin/theme
|
147 |
-
msgid ""
|
148 |
-
"Show the content of a custom post of the type 'content_block' in a widget."
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#. Author of the plugin/theme
|
152 |
-
msgid "Johan van der Wijk"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#. Author URI of the plugin/theme
|
156 |
-
msgid "http://www.vanderwijk.com"
|
157 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.7/post-widget.php
DELETED
@@ -1,182 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget
|
5 |
-
{
|
6 |
-
function custom_post_widget()
|
7 |
-
{
|
8 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
|
9 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
|
10 |
-
}
|
11 |
-
|
12 |
-
function form($instance)
|
13 |
-
{
|
14 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
15 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
16 |
-
|
17 |
-
?>
|
18 |
-
<p>
|
19 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
|
20 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
21 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
22 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
23 |
-
$currentID = get_the_ID();
|
24 |
-
if($currentID == $custom_post_id)
|
25 |
-
$extra = 'selected' and
|
26 |
-
$widgetExtraTitle = get_the_title();
|
27 |
-
else
|
28 |
-
$extra = '';
|
29 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
30 |
-
endwhile; else:
|
31 |
-
echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
|
32 |
-
endif;
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
</label>
|
36 |
-
</p>
|
37 |
-
<?php ?>
|
38 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
39 |
-
<?php wp_reset_query(); ?>
|
40 |
-
<p>
|
41 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
42 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
|
43 |
-
</p>
|
44 |
-
|
45 |
-
<?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
53 |
-
|
54 |
-
return $instance;
|
55 |
-
}
|
56 |
-
|
57 |
-
function widget($args, $instance)
|
58 |
-
{
|
59 |
-
extract($args);
|
60 |
-
|
61 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
|
62 |
-
|
63 |
-
/* Variables from the widget settings. */
|
64 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
65 |
-
|
66 |
-
$content_post = get_post($custom_post_id);
|
67 |
-
$content = $content_post->post_content;
|
68 |
-
$content = apply_filters('the_content', $content);
|
69 |
-
$content = str_replace(']]>', ']]>', $content);
|
70 |
-
|
71 |
-
echo $before_widget;
|
72 |
-
if ( $show_custom_post_title )
|
73 |
-
{
|
74 |
-
echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
|
75 |
-
}
|
76 |
-
echo $content; // This is where the actual content of the custom post is being displayed
|
77 |
-
echo $after_widget;
|
78 |
-
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
// Create the Content Block custom post type
|
83 |
-
add_action('init', 'my_content_block_post_type_init');
|
84 |
-
|
85 |
-
function my_content_block_post_type_init()
|
86 |
-
{
|
87 |
-
$labels = array(
|
88 |
-
'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
89 |
-
'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
90 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
91 |
-
'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
92 |
-
'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
93 |
-
'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
94 |
-
'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
95 |
-
'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
96 |
-
'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
97 |
-
'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
98 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
99 |
-
'parent_item_colon' => ''
|
100 |
-
);
|
101 |
-
$options = array(
|
102 |
-
'labels' => $labels,
|
103 |
-
'public' => false,
|
104 |
-
'publicly_queryable' => false,
|
105 |
-
'exclude_from_search' => true,
|
106 |
-
'show_ui' => true,
|
107 |
-
'query_var' => true,
|
108 |
-
'rewrite' => true,
|
109 |
-
'capability_type' => 'post',
|
110 |
-
'hierarchical' => false,
|
111 |
-
'menu_position' => null,
|
112 |
-
'supports' => array('title','editor','revisions','thumbnail','author')
|
113 |
-
);
|
114 |
-
register_post_type('content_block',$options);
|
115 |
-
}
|
116 |
-
|
117 |
-
|
118 |
-
// Add custom styles to admin screen and menu
|
119 |
-
add_action('admin_head', 'content_block_header');
|
120 |
-
|
121 |
-
function content_block_header() {
|
122 |
-
|
123 |
-
global $post_type; ?>
|
124 |
-
|
125 |
-
<style type="text/css"><!--
|
126 |
-
<?php if (($post_type == 'content_block')) : ?>
|
127 |
-
#icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
|
128 |
-
<?php endif; ?>
|
129 |
-
#adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
|
130 |
-
#adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
|
131 |
-
--></style><?php
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
136 |
-
|
137 |
-
function content_block_messages( $messages ) {
|
138 |
-
|
139 |
-
$messages['content_block'] = array(
|
140 |
-
0 => '',
|
141 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
142 |
-
2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
143 |
-
3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
144 |
-
4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
145 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
146 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
147 |
-
7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
|
148 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
149 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
150 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
151 |
-
);
|
152 |
-
|
153 |
-
return $messages;
|
154 |
-
}
|
155 |
-
|
156 |
-
// Add the ability to display the content block in a reqular post using a shortcode
|
157 |
-
function custom_post_widget_shortcode($atts) {
|
158 |
-
extract(shortcode_atts(array(
|
159 |
-
'id' => '',
|
160 |
-
), $atts));
|
161 |
-
|
162 |
-
$content = "";
|
163 |
-
|
164 |
-
if($id != "") {
|
165 |
-
$args = array(
|
166 |
-
'post__in' => array($id),
|
167 |
-
'post_type' => 'content_block',
|
168 |
-
);
|
169 |
-
|
170 |
-
$content_post = get_posts($args);
|
171 |
-
|
172 |
-
foreach( $content_post as $post ) :
|
173 |
-
$content .= apply_filters('the_content', $post->post_content);
|
174 |
-
endforeach;
|
175 |
-
}
|
176 |
-
|
177 |
-
return $content;
|
178 |
-
}
|
179 |
-
|
180 |
-
add_shortcode('content_block', 'custom_post_widget_shortcode');
|
181 |
-
|
182 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.7/readme.txt
DELETED
@@ -1,108 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.6
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
= How can I display the featured image in the widget? =
|
53 |
-
|
54 |
-
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
55 |
-
|
56 |
-
`function InsertFeaturedImage($content) {
|
57 |
-
global $post;
|
58 |
-
$original_content = $content;
|
59 |
-
if (current_theme_supports('post-thumbnails')) {
|
60 |
-
if ('content_block' == get_post_type()) {
|
61 |
-
$content = the_post_thumbnail('medium');
|
62 |
-
$content .= $original_content;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
return $content;
|
66 |
-
}
|
67 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
68 |
-
|
69 |
-
|
70 |
-
== Changelog ==
|
71 |
-
|
72 |
-
= 1.0 =
|
73 |
-
First release
|
74 |
-
|
75 |
-
= 1.1 =
|
76 |
-
Fixed screenshots for plugin directory
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
80 |
-
|
81 |
-
= 1.2 =
|
82 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
83 |
-
|
84 |
-
= 1.2.1 =
|
85 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
86 |
-
|
87 |
-
= 1.3 =
|
88 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
89 |
-
|
90 |
-
= 1.4 =
|
91 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
92 |
-
|
93 |
-
= 1.5 =
|
94 |
-
Thanks to Caspar Huebinger the plugin
|
95 |
-
now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
|
96 |
-
|
97 |
-
= 1.6 =
|
98 |
-
The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
|
99 |
-
|
100 |
-
= 1.7 =
|
101 |
-
This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
|
102 |
-
|
103 |
-
== Upgrade Notice ==
|
104 |
-
|
105 |
-
= 1.1.1 =
|
106 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.7/screenshot-1.png
DELETED
Binary file
|
tags/1.7/screenshot-2.png
DELETED
Binary file
|
tags/1.8.1/custom-post-widget.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.8.1
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: Version 1.8 Button added above content editor to easily insert the shortcode.
|
12 |
-
|
13 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
-
|
15 |
-
This program is free software; you can redistribute it and/or modify
|
16 |
-
it under the terms of the GNU General Public License, version 2, as
|
17 |
-
published by the Free Software Foundation.
|
18 |
-
|
19 |
-
This program is distributed in the hope that it will be useful,
|
20 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
-
GNU General Public License for more details.
|
23 |
-
|
24 |
-
You should have received a copy of the GNU General Public License
|
25 |
-
along with this program; if not, write to the Free Software
|
26 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
-
*/
|
28 |
-
|
29 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
30 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
31 |
-
define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
|
32 |
-
|
33 |
-
/* Launch the plugin. */
|
34 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
35 |
-
|
36 |
-
/**
|
37 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
38 |
-
to run in the proper order and adds needed functions to the required hooks.
|
39 |
-
*/
|
40 |
-
function custom_post_widget_plugin_init() {
|
41 |
-
|
42 |
-
/* Load the translation of the plugin. */
|
43 |
-
load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
|
44 |
-
|
45 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
Loads the widgets packaged with the plugin.
|
50 |
-
*/
|
51 |
-
function custom_post_widget_load_widgets() {
|
52 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
53 |
-
register_widget( 'custom_post_widget' );
|
54 |
-
}
|
55 |
-
|
56 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/images/contentblock-32.png
DELETED
Binary file
|
tags/1.8.1/images/contentblock.png
DELETED
Binary file
|
tags/1.8.1/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
tags/1.8.1/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,171 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: post-widget.php:31
|
38 |
-
#@ custom-post-widget
|
39 |
-
msgid "No content blocks available"
|
40 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
41 |
-
|
42 |
-
#: post-widget.php:43
|
43 |
-
#@ custom-post-widget
|
44 |
-
msgid "Show Post Title"
|
45 |
-
msgstr "Beitragstitel anzeigen"
|
46 |
-
|
47 |
-
#: post-widget.php:62
|
48 |
-
#@ custom-post-widget
|
49 |
-
msgid "Find"
|
50 |
-
msgstr "Finden"
|
51 |
-
|
52 |
-
#: post-widget.php:94
|
53 |
-
#@ custom-post-widget
|
54 |
-
msgctxt "post type general name"
|
55 |
-
msgid "Content Blocks"
|
56 |
-
msgstr "Inhaltsblöcke"
|
57 |
-
|
58 |
-
#: post-widget.php:95
|
59 |
-
#@ custom-post-widget
|
60 |
-
msgctxt "post type singular name"
|
61 |
-
msgid "Content Block"
|
62 |
-
msgstr "Inhaltsblock"
|
63 |
-
|
64 |
-
#: post-widget.php:97
|
65 |
-
#@ custom-post-widget
|
66 |
-
msgctxt "block"
|
67 |
-
msgid "Add Content Block"
|
68 |
-
msgstr "Inhaltsblock erstellen"
|
69 |
-
|
70 |
-
#: post-widget.php:98
|
71 |
-
#@ custom-post-widget
|
72 |
-
msgid "Add New Content Block"
|
73 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
#@ custom-post-widget
|
77 |
-
msgid "Edit Content Block"
|
78 |
-
msgstr "Inhaltsblock bearbeiten"
|
79 |
-
|
80 |
-
#: post-widget.php:100
|
81 |
-
#@ custom-post-widget
|
82 |
-
msgid "New Content Block"
|
83 |
-
msgstr "Neuer Inhaltsblock"
|
84 |
-
|
85 |
-
#: post-widget.php:101
|
86 |
-
#@ custom-post-widget
|
87 |
-
msgid "View Content Block"
|
88 |
-
msgstr "Inhaltsblock ansehen"
|
89 |
-
|
90 |
-
#: post-widget.php:102
|
91 |
-
#@ custom-post-widget
|
92 |
-
msgid "Search Content Blocks"
|
93 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
94 |
-
|
95 |
-
#: post-widget.php:103
|
96 |
-
#@ custom-post-widget
|
97 |
-
msgid "No Content Blocks Found"
|
98 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
99 |
-
|
100 |
-
#: post-widget.php:104
|
101 |
-
#@ custom-post-widget
|
102 |
-
msgid "No Content Blocks found in Trash"
|
103 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
104 |
-
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
#@ custom-post-widget
|
108 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
110 |
-
|
111 |
-
#: post-widget.php:130
|
112 |
-
#@ custom-post-widget
|
113 |
-
msgid "Custom field updated."
|
114 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
115 |
-
|
116 |
-
#: post-widget.php:131
|
117 |
-
#@ custom-post-widget
|
118 |
-
msgid "Custom field deleted."
|
119 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
120 |
-
|
121 |
-
#: post-widget.php:132
|
122 |
-
#@ custom-post-widget
|
123 |
-
msgid "Content Block updated."
|
124 |
-
msgstr "Inhaltsblock aktualisiert."
|
125 |
-
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
#@ custom-post-widget
|
129 |
-
msgid "Content Block restored to revision from %s"
|
130 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
131 |
-
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
#@ custom-post-widget
|
135 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
136 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
137 |
-
|
138 |
-
#: post-widget.php:135
|
139 |
-
#@ custom-post-widget
|
140 |
-
msgid "Block saved."
|
141 |
-
msgstr "Inhaltsblock gespeichert."
|
142 |
-
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
#@ custom-post-widget
|
146 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
147 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
148 |
-
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
#@ custom-post-widget
|
152 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
153 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
154 |
-
|
155 |
-
#: post-widget.php:138
|
156 |
-
#@ custom-post-widget
|
157 |
-
msgid "M j, Y @ G:i"
|
158 |
-
msgstr "j. M Y @ H:M"
|
159 |
-
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
#@ custom-post-widget
|
163 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
164 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
165 |
-
|
166 |
-
#: post-widget.php:96
|
167 |
-
#@ custom-post-widget
|
168 |
-
msgctxt "post type plural name"
|
169 |
-
msgid "Content Blocks"
|
170 |
-
msgstr "Inhaltsblöcke"
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
tags/1.8.1/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een inhoudsblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Inhoudsblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven inhoudsblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen inhoudsblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Inhoudsblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Inhoudsblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Inhoudsblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw inhoudsblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Inhoudsblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Inhoudsblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Inhoudsblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Inhoudsblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Inhoudsblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Inhoudsblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Inhoudsblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Inhoudsblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/languages/custom-post-widget.pot
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010 Custom Post Widget
|
2 |
-
# This file is distributed under the same license as the Custom Post Widget package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Custom Post Widget 1.4\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
|
7 |
-
"POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: post-widget.php:8
|
16 |
-
msgid "Displays custom post content in a widget"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: post-widget.php:9
|
20 |
-
msgid "Content Block"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: post-widget.php:19
|
24 |
-
msgid "Content Block to Display:"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: post-widget.php:31
|
28 |
-
msgid "No content blocks available"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: post-widget.php:42
|
32 |
-
msgid "Show Post Title"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: post-widget.php:61
|
36 |
-
msgid "Find"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: post-widget.php:91
|
40 |
-
msgctxt "post type general name"
|
41 |
-
msgid "Content Blocks"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: post-widget.php:92
|
45 |
-
msgctxt "post type singular name"
|
46 |
-
msgid "Content Block"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: post-widget.php:93
|
50 |
-
msgctxt "post type plural name"
|
51 |
-
msgid "Content Blocks"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: post-widget.php:94
|
55 |
-
msgctxt "block"
|
56 |
-
msgid "Add Content Block"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: post-widget.php:95
|
60 |
-
msgid "Add New Content Block"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: post-widget.php:96
|
64 |
-
msgid "Edit Content Block"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: post-widget.php:97
|
68 |
-
msgid "New Content Block"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: post-widget.php:98
|
72 |
-
msgid "View Content Block"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Search Content Blocks"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: post-widget.php:100
|
80 |
-
msgid "No Content Blocks Found"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: post-widget.php:101
|
84 |
-
msgid "No Content Blocks found in Trash"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: post-widget.php:126
|
88 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: post-widget.php:127
|
92 |
-
msgid "Custom field updated."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: post-widget.php:128
|
96 |
-
msgid "Custom field deleted."
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: post-widget.php:129
|
100 |
-
msgid "Content Block updated."
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: post-widget.php:130
|
104 |
-
msgid "Content Block restored to revision from %s"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: post-widget.php:131
|
108 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: post-widget.php:132
|
112 |
-
msgid "Block saved."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: post-widget.php:133
|
116 |
-
msgid ""
|
117 |
-
"Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
|
118 |
-
"Block</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: post-widget.php:134
|
122 |
-
msgid ""
|
123 |
-
"Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
|
124 |
-
"href=\"%2$s\">Preview block</a>"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: post-widget.php:135
|
128 |
-
msgid "M j, Y @ G:i"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: post-widget.php:136
|
132 |
-
msgid ""
|
133 |
-
"Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
134 |
-
"Content Block</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#. Plugin Name of the plugin/theme
|
138 |
-
msgid "Custom Post Widget"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#. Plugin URI of the plugin/theme
|
142 |
-
msgid ""
|
143 |
-
"http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#. Description of the plugin/theme
|
147 |
-
msgid ""
|
148 |
-
"Show the content of a custom post of the type 'content_block' in a widget."
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#. Author of the plugin/theme
|
152 |
-
msgid "Johan van der Wijk"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#. Author URI of the plugin/theme
|
156 |
-
msgid "http://www.vanderwijk.com"
|
157 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/popup.php
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
//Action target that displays the popup to insert a content block to a post/page
|
3 |
-
function add_mce_popup(){ ?>
|
4 |
-
|
5 |
-
<script>
|
6 |
-
function InsertContentBlockForm(){
|
7 |
-
var content_id = jQuery("#add_content_block_id").val();
|
8 |
-
if(content_id == ""){
|
9 |
-
alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
|
10 |
-
return;
|
11 |
-
}
|
12 |
-
|
13 |
-
var win = window.dialogArguments || opener || parent || top;
|
14 |
-
win.send_to_editor("[content_block id=" + content_id + "]");
|
15 |
-
}
|
16 |
-
</script>
|
17 |
-
|
18 |
-
<div id="select_form" style="display:none;">
|
19 |
-
<div class="wrap">
|
20 |
-
<div>
|
21 |
-
<div style="padding:15px 15px 0 15px;">
|
22 |
-
<h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert Content Block", 'custom-post-widget'); ?></h3>
|
23 |
-
<span><?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?></span>
|
24 |
-
</div>
|
25 |
-
<div style="padding:15px 15px 0 15px;">
|
26 |
-
<select id="add_content_block_id">
|
27 |
-
<option value=""><?php _e("Select a Content Block", 'custom-post-widget'); ?></option>
|
28 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
29 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
30 |
-
$currentID = get_the_ID();
|
31 |
-
if($currentID == $custom_post_id)
|
32 |
-
$extra = 'selected' and
|
33 |
-
$widgetExtraTitle = get_the_title();
|
34 |
-
else
|
35 |
-
$extra = '';
|
36 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
37 |
-
endwhile; else:
|
38 |
-
echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
|
39 |
-
endif;
|
40 |
-
?>
|
41 |
-
</select>
|
42 |
-
<br/>
|
43 |
-
<div style="padding:15px;">
|
44 |
-
<input type="button" class="button-primary" value="Insert Content Block" onclick="InsertContentBlockForm();"/>
|
45 |
-
<a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", 'custom-post-widget'); ?></a>
|
46 |
-
</div>
|
47 |
-
</div>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
<?php
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/post-widget.php
DELETED
@@ -1,201 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget
|
5 |
-
{
|
6 |
-
function custom_post_widget()
|
7 |
-
{
|
8 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
|
9 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
|
10 |
-
}
|
11 |
-
|
12 |
-
function form($instance)
|
13 |
-
{
|
14 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
15 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
16 |
-
|
17 |
-
?>
|
18 |
-
<p>
|
19 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
|
20 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
21 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
22 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
23 |
-
$currentID = get_the_ID();
|
24 |
-
if($currentID == $custom_post_id)
|
25 |
-
$extra = 'selected' and
|
26 |
-
$widgetExtraTitle = get_the_title();
|
27 |
-
else
|
28 |
-
$extra = '';
|
29 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
30 |
-
endwhile; else:
|
31 |
-
echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
|
32 |
-
endif;
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
</label>
|
36 |
-
</p>
|
37 |
-
<?php ?>
|
38 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
39 |
-
<?php wp_reset_query(); ?>
|
40 |
-
<p>
|
41 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
42 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
|
43 |
-
</p>
|
44 |
-
|
45 |
-
<?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
53 |
-
|
54 |
-
return $instance;
|
55 |
-
}
|
56 |
-
|
57 |
-
function widget($args, $instance)
|
58 |
-
{
|
59 |
-
extract($args);
|
60 |
-
|
61 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
|
62 |
-
|
63 |
-
/* Variables from the widget settings. */
|
64 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
65 |
-
|
66 |
-
$content_post = get_post($custom_post_id);
|
67 |
-
$content = $content_post->post_content;
|
68 |
-
$content = apply_filters('the_content', $content);
|
69 |
-
$content = str_replace(']]>', ']]>', $content);
|
70 |
-
|
71 |
-
echo $before_widget;
|
72 |
-
if ( $show_custom_post_title )
|
73 |
-
{
|
74 |
-
echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
|
75 |
-
}
|
76 |
-
echo $content; // This is where the actual content of the custom post is being displayed
|
77 |
-
echo $after_widget;
|
78 |
-
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
// Create the Content Block custom post type
|
83 |
-
add_action('init', 'my_content_block_post_type_init');
|
84 |
-
|
85 |
-
function my_content_block_post_type_init()
|
86 |
-
{
|
87 |
-
$labels = array(
|
88 |
-
'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
|
89 |
-
'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
|
90 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
|
91 |
-
'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
|
92 |
-
'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
|
93 |
-
'edit_item' => __('Edit Content Block', 'custom-post-widget'),
|
94 |
-
'new_item' => __('New Content Block', 'custom-post-widget'),
|
95 |
-
'view_item' => __('View Content Block', 'custom-post-widget'),
|
96 |
-
'search_items' => __('Search Content Blocks', 'custom-post-widget'),
|
97 |
-
'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
|
98 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
|
99 |
-
'parent_item_colon' => ''
|
100 |
-
);
|
101 |
-
$options = array(
|
102 |
-
'labels' => $labels,
|
103 |
-
'public' => false,
|
104 |
-
'publicly_queryable' => false,
|
105 |
-
'exclude_from_search' => true,
|
106 |
-
'show_ui' => true,
|
107 |
-
'query_var' => true,
|
108 |
-
'rewrite' => true,
|
109 |
-
'capability_type' => 'post',
|
110 |
-
'hierarchical' => false,
|
111 |
-
'menu_position' => null,
|
112 |
-
'supports' => array('title','editor','revisions','thumbnail','author')
|
113 |
-
);
|
114 |
-
register_post_type('content_block',$options);
|
115 |
-
}
|
116 |
-
|
117 |
-
|
118 |
-
// Add custom styles to admin screen and menu
|
119 |
-
add_action('admin_head', 'content_block_header');
|
120 |
-
|
121 |
-
function content_block_header() {
|
122 |
-
|
123 |
-
global $post_type; ?>
|
124 |
-
|
125 |
-
<style type="text/css"><!--
|
126 |
-
<?php if (($post_type == 'content_block')) : ?>
|
127 |
-
#icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
|
128 |
-
<?php endif; ?>
|
129 |
-
#adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
|
130 |
-
#adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
|
131 |
-
--></style><?php
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
136 |
-
|
137 |
-
function content_block_messages( $messages ) {
|
138 |
-
|
139 |
-
$messages['content_block'] = array(
|
140 |
-
0 => '',
|
141 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
142 |
-
2 => __('Custom field updated.', 'custom-post-widget'),
|
143 |
-
3 => __('Custom field deleted.', 'custom-post-widget'),
|
144 |
-
4 => __('Content Block updated.', 'custom-post-widget'),
|
145 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
146 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
147 |
-
7 => __('Block saved.', 'custom-post-widget'),
|
148 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
149 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
150 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
151 |
-
);
|
152 |
-
|
153 |
-
return $messages;
|
154 |
-
}
|
155 |
-
|
156 |
-
// Add the ability to display the content block in a reqular post using a shortcode
|
157 |
-
function custom_post_widget_shortcode($atts) {
|
158 |
-
extract(shortcode_atts(array(
|
159 |
-
'id' => '',
|
160 |
-
), $atts));
|
161 |
-
|
162 |
-
$content = "";
|
163 |
-
|
164 |
-
if($id != "")
|
165 |
-
{
|
166 |
-
$args = array(
|
167 |
-
'post__in' => array($id),
|
168 |
-
'post_type' => 'content_block',
|
169 |
-
);
|
170 |
-
|
171 |
-
$content_post = get_posts($args);
|
172 |
-
|
173 |
-
foreach( $content_post as $post ) :
|
174 |
-
$content .= apply_filters('the_content', $post->post_content);
|
175 |
-
endforeach;
|
176 |
-
}
|
177 |
-
|
178 |
-
return $content;
|
179 |
-
}
|
180 |
-
|
181 |
-
add_shortcode('content_block', 'custom_post_widget_shortcode');
|
182 |
-
|
183 |
-
// Add button above editor
|
184 |
-
function add_content_block_icon($initcontext) {
|
185 |
-
return $initcontext.
|
186 |
-
'<a id="add_content_block" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php#TB_inline?width=450&inlineId=select_form">
|
187 |
-
<img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
|
188 |
-
</a>';
|
189 |
-
}
|
190 |
-
|
191 |
-
add_filter('media_buttons_context', 'add_content_block_icon');
|
192 |
-
|
193 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
|
194 |
-
|
195 |
-
if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
|
196 |
-
define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
|
197 |
-
|
198 |
-
if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
|
199 |
-
add_action('admin_footer', 'add_mce_popup');
|
200 |
-
}
|
201 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/readme.txt
DELETED
@@ -1,111 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.8.1
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
= How can I display the featured image in the widget? =
|
53 |
-
|
54 |
-
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
55 |
-
|
56 |
-
`function InsertFeaturedImage($content) {
|
57 |
-
global $post;
|
58 |
-
$original_content = $content;
|
59 |
-
if (current_theme_supports('post-thumbnails')) {
|
60 |
-
if ('content_block' == get_post_type()) {
|
61 |
-
$content = the_post_thumbnail('medium');
|
62 |
-
$content .= $original_content;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
return $content;
|
66 |
-
}
|
67 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
68 |
-
|
69 |
-
|
70 |
-
== Changelog ==
|
71 |
-
|
72 |
-
= 1.0 =
|
73 |
-
First release
|
74 |
-
|
75 |
-
= 1.1 =
|
76 |
-
Fixed screenshots for plugin directory
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
80 |
-
|
81 |
-
= 1.2 =
|
82 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
83 |
-
|
84 |
-
= 1.2.1 =
|
85 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
86 |
-
|
87 |
-
= 1.3 =
|
88 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
89 |
-
|
90 |
-
= 1.4 =
|
91 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
92 |
-
|
93 |
-
= 1.5 =
|
94 |
-
Thanks to Caspar Huebinger the plugin
|
95 |
-
now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
|
96 |
-
|
97 |
-
= 1.6 =
|
98 |
-
The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
|
99 |
-
|
100 |
-
= 1.7 =
|
101 |
-
This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
|
102 |
-
|
103 |
-
= 1.8 =
|
104 |
-
Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
|
105 |
-
|
106 |
-
== Upgrade Notice ==
|
107 |
-
|
108 |
-
= 1.8 =
|
109 |
-
I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
|
110 |
-
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.1/screenshot-1.png
DELETED
Binary file
|
tags/1.8.1/screenshot-2.png
DELETED
Binary file
|
tags/1.8.3/custom-post-widget.php
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.8.3
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: Version 1.8.3 The widget now emulates the $post loop.
|
12 |
-
|
13 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
14 |
-
|
15 |
-
This program is free software; you can redistribute it and/or modify
|
16 |
-
it under the terms of the GNU General Public License, version 2, as
|
17 |
-
published by the Free Software Foundation.
|
18 |
-
|
19 |
-
This program is distributed in the hope that it will be useful,
|
20 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
21 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
22 |
-
GNU General Public License for more details.
|
23 |
-
|
24 |
-
You should have received a copy of the GNU General Public License
|
25 |
-
along with this program; if not, write to the Free Software
|
26 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
27 |
-
*/
|
28 |
-
|
29 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
30 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
31 |
-
define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
|
32 |
-
|
33 |
-
/* Launch the plugin. */
|
34 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
35 |
-
|
36 |
-
/**
|
37 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
38 |
-
to run in the proper order and adds needed functions to the required hooks.
|
39 |
-
*/
|
40 |
-
function custom_post_widget_plugin_init() {
|
41 |
-
|
42 |
-
/* Load the translation of the plugin. */
|
43 |
-
load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
|
44 |
-
|
45 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
Loads the widgets packaged with the plugin.
|
50 |
-
*/
|
51 |
-
function custom_post_widget_load_widgets() {
|
52 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
53 |
-
register_widget( 'custom_post_widget' );
|
54 |
-
}
|
55 |
-
|
56 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/images/contentblock-13.png
DELETED
Binary file
|
tags/1.8.3/images/contentblock-32.png
DELETED
Binary file
|
tags/1.8.3/images/contentblock.png
DELETED
Binary file
|
tags/1.8.3/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
tags/1.8.3/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,171 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: post-widget.php:31
|
38 |
-
#@ custom-post-widget
|
39 |
-
msgid "No content blocks available"
|
40 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
41 |
-
|
42 |
-
#: post-widget.php:43
|
43 |
-
#@ custom-post-widget
|
44 |
-
msgid "Show Post Title"
|
45 |
-
msgstr "Beitragstitel anzeigen"
|
46 |
-
|
47 |
-
#: post-widget.php:62
|
48 |
-
#@ custom-post-widget
|
49 |
-
msgid "Find"
|
50 |
-
msgstr "Finden"
|
51 |
-
|
52 |
-
#: post-widget.php:94
|
53 |
-
#@ custom-post-widget
|
54 |
-
msgctxt "post type general name"
|
55 |
-
msgid "Content Blocks"
|
56 |
-
msgstr "Inhaltsblöcke"
|
57 |
-
|
58 |
-
#: post-widget.php:95
|
59 |
-
#@ custom-post-widget
|
60 |
-
msgctxt "post type singular name"
|
61 |
-
msgid "Content Block"
|
62 |
-
msgstr "Inhaltsblock"
|
63 |
-
|
64 |
-
#: post-widget.php:97
|
65 |
-
#@ custom-post-widget
|
66 |
-
msgctxt "block"
|
67 |
-
msgid "Add Content Block"
|
68 |
-
msgstr "Inhaltsblock erstellen"
|
69 |
-
|
70 |
-
#: post-widget.php:98
|
71 |
-
#@ custom-post-widget
|
72 |
-
msgid "Add New Content Block"
|
73 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
#@ custom-post-widget
|
77 |
-
msgid "Edit Content Block"
|
78 |
-
msgstr "Inhaltsblock bearbeiten"
|
79 |
-
|
80 |
-
#: post-widget.php:100
|
81 |
-
#@ custom-post-widget
|
82 |
-
msgid "New Content Block"
|
83 |
-
msgstr "Neuer Inhaltsblock"
|
84 |
-
|
85 |
-
#: post-widget.php:101
|
86 |
-
#@ custom-post-widget
|
87 |
-
msgid "View Content Block"
|
88 |
-
msgstr "Inhaltsblock ansehen"
|
89 |
-
|
90 |
-
#: post-widget.php:102
|
91 |
-
#@ custom-post-widget
|
92 |
-
msgid "Search Content Blocks"
|
93 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
94 |
-
|
95 |
-
#: post-widget.php:103
|
96 |
-
#@ custom-post-widget
|
97 |
-
msgid "No Content Blocks Found"
|
98 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
99 |
-
|
100 |
-
#: post-widget.php:104
|
101 |
-
#@ custom-post-widget
|
102 |
-
msgid "No Content Blocks found in Trash"
|
103 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
104 |
-
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
#@ custom-post-widget
|
108 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
110 |
-
|
111 |
-
#: post-widget.php:130
|
112 |
-
#@ custom-post-widget
|
113 |
-
msgid "Custom field updated."
|
114 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
115 |
-
|
116 |
-
#: post-widget.php:131
|
117 |
-
#@ custom-post-widget
|
118 |
-
msgid "Custom field deleted."
|
119 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
120 |
-
|
121 |
-
#: post-widget.php:132
|
122 |
-
#@ custom-post-widget
|
123 |
-
msgid "Content Block updated."
|
124 |
-
msgstr "Inhaltsblock aktualisiert."
|
125 |
-
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
#@ custom-post-widget
|
129 |
-
msgid "Content Block restored to revision from %s"
|
130 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
131 |
-
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
#@ custom-post-widget
|
135 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
136 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
137 |
-
|
138 |
-
#: post-widget.php:135
|
139 |
-
#@ custom-post-widget
|
140 |
-
msgid "Block saved."
|
141 |
-
msgstr "Inhaltsblock gespeichert."
|
142 |
-
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
#@ custom-post-widget
|
146 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
147 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
148 |
-
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
#@ custom-post-widget
|
152 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
153 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
154 |
-
|
155 |
-
#: post-widget.php:138
|
156 |
-
#@ custom-post-widget
|
157 |
-
msgid "M j, Y @ G:i"
|
158 |
-
msgstr "j. M Y @ H:M"
|
159 |
-
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
#@ custom-post-widget
|
163 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
164 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
165 |
-
|
166 |
-
#: post-widget.php:96
|
167 |
-
#@ custom-post-widget
|
168 |
-
msgctxt "post type plural name"
|
169 |
-
msgid "Content Blocks"
|
170 |
-
msgstr "Inhaltsblöcke"
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
tags/1.8.3/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een inhoudsblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Inhoudsblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven inhoudsblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen inhoudsblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Inhoudsblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Inhoudsblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Inhoudsblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw inhoudsblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Inhoudsblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Inhoudsblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Inhoudsblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Inhoudsblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Inhoudsblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Inhoudsblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Inhoudsblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Inhoudsblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/languages/custom-post-widget.pot
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010 Custom Post Widget
|
2 |
-
# This file is distributed under the same license as the Custom Post Widget package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Custom Post Widget 1.4\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
|
7 |
-
"POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: post-widget.php:8
|
16 |
-
msgid "Displays custom post content in a widget"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: post-widget.php:9
|
20 |
-
msgid "Content Block"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: post-widget.php:19
|
24 |
-
msgid "Content Block to Display:"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: post-widget.php:31
|
28 |
-
msgid "No content blocks available"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: post-widget.php:42
|
32 |
-
msgid "Show Post Title"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: post-widget.php:61
|
36 |
-
msgid "Find"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: post-widget.php:91
|
40 |
-
msgctxt "post type general name"
|
41 |
-
msgid "Content Blocks"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: post-widget.php:92
|
45 |
-
msgctxt "post type singular name"
|
46 |
-
msgid "Content Block"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: post-widget.php:93
|
50 |
-
msgctxt "post type plural name"
|
51 |
-
msgid "Content Blocks"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: post-widget.php:94
|
55 |
-
msgctxt "block"
|
56 |
-
msgid "Add Content Block"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: post-widget.php:95
|
60 |
-
msgid "Add New Content Block"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: post-widget.php:96
|
64 |
-
msgid "Edit Content Block"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: post-widget.php:97
|
68 |
-
msgid "New Content Block"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: post-widget.php:98
|
72 |
-
msgid "View Content Block"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Search Content Blocks"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: post-widget.php:100
|
80 |
-
msgid "No Content Blocks Found"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: post-widget.php:101
|
84 |
-
msgid "No Content Blocks found in Trash"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: post-widget.php:126
|
88 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: post-widget.php:127
|
92 |
-
msgid "Custom field updated."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: post-widget.php:128
|
96 |
-
msgid "Custom field deleted."
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: post-widget.php:129
|
100 |
-
msgid "Content Block updated."
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: post-widget.php:130
|
104 |
-
msgid "Content Block restored to revision from %s"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: post-widget.php:131
|
108 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: post-widget.php:132
|
112 |
-
msgid "Block saved."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: post-widget.php:133
|
116 |
-
msgid ""
|
117 |
-
"Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
|
118 |
-
"Block</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: post-widget.php:134
|
122 |
-
msgid ""
|
123 |
-
"Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
|
124 |
-
"href=\"%2$s\">Preview block</a>"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: post-widget.php:135
|
128 |
-
msgid "M j, Y @ G:i"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: post-widget.php:136
|
132 |
-
msgid ""
|
133 |
-
"Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
134 |
-
"Content Block</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#. Plugin Name of the plugin/theme
|
138 |
-
msgid "Custom Post Widget"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#. Plugin URI of the plugin/theme
|
142 |
-
msgid ""
|
143 |
-
"http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#. Description of the plugin/theme
|
147 |
-
msgid ""
|
148 |
-
"Show the content of a custom post of the type 'content_block' in a widget."
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#. Author of the plugin/theme
|
152 |
-
msgid "Johan van der Wijk"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#. Author URI of the plugin/theme
|
156 |
-
msgid "http://www.vanderwijk.com"
|
157 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/popup.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php //Action target that displays the popup to insert a content block to a post/page
|
2 |
-
|
3 |
-
function add_mce_popup(){ ?>
|
4 |
-
|
5 |
-
<script>
|
6 |
-
function InsertContentBlockForm(){
|
7 |
-
var content_id = jQuery("#add_content_block_id").val();
|
8 |
-
if(content_id == ""){
|
9 |
-
alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
|
10 |
-
return;
|
11 |
-
}
|
12 |
-
var win = window.dialogArguments || opener || parent || top;
|
13 |
-
win.send_to_editor("[content_block id=" + content_id + "]");
|
14 |
-
}
|
15 |
-
</script>
|
16 |
-
|
17 |
-
<div id="select_form" style="display:none;">
|
18 |
-
<div class="wrap">
|
19 |
-
<div>
|
20 |
-
<div style="padding:15px 15px 0 15px;">
|
21 |
-
<h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
|
22 |
-
<?php _e("Insert Content Block", 'custom-post-widget'); ?>
|
23 |
-
</h3>
|
24 |
-
<span>
|
25 |
-
<?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
|
26 |
-
</span>
|
27 |
-
</div>
|
28 |
-
<div style="padding:15px 15px 0 15px;">
|
29 |
-
<select id="add_content_block_id">
|
30 |
-
<option value="">
|
31 |
-
<?php _e("Select a Content Block", 'custom-post-widget'); ?>
|
32 |
-
</option>
|
33 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
34 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
35 |
-
$currentID = get_the_ID();
|
36 |
-
if($currentID == $custom_post_id)
|
37 |
-
$extra = 'selected' and
|
38 |
-
$widgetExtraTitle = get_the_title();
|
39 |
-
else
|
40 |
-
$extra = '';
|
41 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
42 |
-
endwhile; else:
|
43 |
-
echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
|
44 |
-
endif; ?>
|
45 |
-
</select>
|
46 |
-
<br />
|
47 |
-
<div style="padding:15px;">
|
48 |
-
<input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
|
49 |
-
<a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
|
50 |
-
<?php _e("Cancel", 'custom-post-widget'); ?>
|
51 |
-
</a>
|
52 |
-
</div>
|
53 |
-
</div>
|
54 |
-
</div>
|
55 |
-
</div>
|
56 |
-
</div>
|
57 |
-
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/post-widget.php
DELETED
@@ -1,183 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget {
|
5 |
-
function custom_post_widget() {
|
6 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
|
7 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
|
8 |
-
}
|
9 |
-
|
10 |
-
function form($instance) {
|
11 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
12 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
|
13 |
-
|
14 |
-
<p>
|
15 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
|
16 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
17 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
18 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
19 |
-
$currentID = get_the_ID();
|
20 |
-
if($currentID == $custom_post_id)
|
21 |
-
$extra = 'selected' and
|
22 |
-
$widgetExtraTitle = get_the_title();
|
23 |
-
else
|
24 |
-
$extra = '';
|
25 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
26 |
-
endwhile; else:
|
27 |
-
echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
|
28 |
-
endif; ?>
|
29 |
-
</select>
|
30 |
-
</label>
|
31 |
-
</p>
|
32 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
33 |
-
<?php wp_reset_query(); ?>
|
34 |
-
<p>
|
35 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
36 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
|
37 |
-
</p> <?php
|
38 |
-
}
|
39 |
-
|
40 |
-
function update($new_instance, $old_instance) {
|
41 |
-
$instance = $old_instance;
|
42 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
43 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
44 |
-
return $instance;
|
45 |
-
}
|
46 |
-
|
47 |
-
function widget($args, $instance) {
|
48 |
-
global $post;
|
49 |
-
extract($args);
|
50 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
|
51 |
-
/* Variables from the widget settings. */
|
52 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
53 |
-
$old_post = &$post;
|
54 |
-
$post = $content_post = get_post($custom_post_id);
|
55 |
-
$content = $content_post->post_content;
|
56 |
-
$content = apply_filters('the_content', $content);
|
57 |
-
$content = str_replace(']]>', ']]>', $content);
|
58 |
-
echo $before_widget;
|
59 |
-
if ( $show_custom_post_title ) {
|
60 |
-
echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
|
61 |
-
}
|
62 |
-
echo $content; // This is where the actual content of the custom post is being displayed
|
63 |
-
echo $after_widget;
|
64 |
-
$post = &$old_post;
|
65 |
-
}
|
66 |
-
|
67 |
-
}
|
68 |
-
|
69 |
-
// Create the Content Block custom post type
|
70 |
-
add_action('init', 'my_content_block_post_type_init');
|
71 |
-
|
72 |
-
function my_content_block_post_type_init() {
|
73 |
-
$labels = array(
|
74 |
-
'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
|
75 |
-
'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
|
76 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
|
77 |
-
'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
|
78 |
-
'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
|
79 |
-
'edit_item' => __('Edit Content Block', 'custom-post-widget'),
|
80 |
-
'new_item' => __('New Content Block', 'custom-post-widget'),
|
81 |
-
'view_item' => __('View Content Block', 'custom-post-widget'),
|
82 |
-
'search_items' => __('Search Content Blocks', 'custom-post-widget'),
|
83 |
-
'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
|
84 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
|
85 |
-
'parent_item_colon' => ''
|
86 |
-
);
|
87 |
-
$options = array(
|
88 |
-
'labels' => $labels,
|
89 |
-
'public' => false,
|
90 |
-
'publicly_queryable' => false,
|
91 |
-
'exclude_from_search' => true,
|
92 |
-
'show_ui' => true,
|
93 |
-
'query_var' => true,
|
94 |
-
'rewrite' => true,
|
95 |
-
'capability_type' => 'post',
|
96 |
-
'hierarchical' => false,
|
97 |
-
'menu_position' => null,
|
98 |
-
'supports' => array('title','editor','revisions','thumbnail','author')
|
99 |
-
);
|
100 |
-
register_post_type('content_block',$options);
|
101 |
-
}
|
102 |
-
|
103 |
-
// Add custom styles to admin screen and menu
|
104 |
-
add_action('admin_head', 'content_block_header');
|
105 |
-
|
106 |
-
function content_block_header() {
|
107 |
-
global $post_type; ?>
|
108 |
-
<style type="text/css">
|
109 |
-
<!--
|
110 |
-
<?php if (($post_type == 'content_block')) : ?>
|
111 |
-
#icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
|
112 |
-
<?php endif; ?>
|
113 |
-
#adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
|
114 |
-
#adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
|
115 |
-
-->
|
116 |
-
</style>
|
117 |
-
<?php
|
118 |
-
}
|
119 |
-
|
120 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
121 |
-
|
122 |
-
function content_block_messages( $messages ) {
|
123 |
-
$messages['content_block'] = array(
|
124 |
-
0 => '',
|
125 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
126 |
-
2 => __('Custom field updated.', 'custom-post-widget'),
|
127 |
-
3 => __('Custom field deleted.', 'custom-post-widget'),
|
128 |
-
4 => __('Content Block updated.', 'custom-post-widget'),
|
129 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
130 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
131 |
-
7 => __('Block saved.', 'custom-post-widget'),
|
132 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
133 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
134 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
135 |
-
);
|
136 |
-
return $messages;
|
137 |
-
}
|
138 |
-
|
139 |
-
// Add the ability to display the content block in a reqular post using a shortcode
|
140 |
-
function custom_post_widget_shortcode($atts) {
|
141 |
-
extract(shortcode_atts(array(
|
142 |
-
'id' => '',
|
143 |
-
), $atts));
|
144 |
-
|
145 |
-
$content = "";
|
146 |
-
|
147 |
-
if($id != "")
|
148 |
-
{
|
149 |
-
$args = array(
|
150 |
-
'post__in' => array($id),
|
151 |
-
'post_type' => 'content_block',
|
152 |
-
);
|
153 |
-
|
154 |
-
$content_post = get_posts($args);
|
155 |
-
|
156 |
-
foreach( $content_post as $post ) :
|
157 |
-
$content .= apply_filters('the_content', $post->post_content);
|
158 |
-
endforeach;
|
159 |
-
}
|
160 |
-
|
161 |
-
return $content;
|
162 |
-
}
|
163 |
-
|
164 |
-
add_shortcode('content_block', 'custom_post_widget_shortcode');
|
165 |
-
|
166 |
-
// Add button above editor
|
167 |
-
function add_content_block_icon($initcontext) {
|
168 |
-
return $initcontext.
|
169 |
-
'<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_mce_popup&TB_inline=true&inlineId=select_form">
|
170 |
-
<img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
|
171 |
-
</a>';
|
172 |
-
}
|
173 |
-
|
174 |
-
add_filter('media_buttons_context', 'add_content_block_icon');
|
175 |
-
|
176 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
|
177 |
-
|
178 |
-
if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
|
179 |
-
define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
|
180 |
-
if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
|
181 |
-
add_action('admin_footer', 'add_mce_popup');
|
182 |
-
}
|
183 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/readme.txt
DELETED
@@ -1,117 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.2
|
8 |
-
Stable tag: 1.8.2
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
= How can I display the featured image in the widget? =
|
53 |
-
|
54 |
-
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
55 |
-
|
56 |
-
`function InsertFeaturedImage($content) {
|
57 |
-
global $post;
|
58 |
-
$original_content = $content;
|
59 |
-
if (current_theme_supports('post-thumbnails')) {
|
60 |
-
if ('content_block' == get_post_type()) {
|
61 |
-
$content = the_post_thumbnail('medium');
|
62 |
-
$content .= $original_content;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
return $content;
|
66 |
-
}
|
67 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
68 |
-
|
69 |
-
|
70 |
-
== Changelog ==
|
71 |
-
|
72 |
-
= 1.0 =
|
73 |
-
First release
|
74 |
-
|
75 |
-
= 1.1 =
|
76 |
-
Fixed screenshots for plugin directory
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
80 |
-
|
81 |
-
= 1.2 =
|
82 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
83 |
-
|
84 |
-
= 1.2.1 =
|
85 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
86 |
-
|
87 |
-
= 1.3 =
|
88 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
89 |
-
|
90 |
-
= 1.4 =
|
91 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
92 |
-
|
93 |
-
= 1.5 =
|
94 |
-
Thanks to Caspar Huebinger the plugin
|
95 |
-
now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
|
96 |
-
|
97 |
-
= 1.6 =
|
98 |
-
The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
|
99 |
-
|
100 |
-
= 1.7 =
|
101 |
-
This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
|
102 |
-
|
103 |
-
= 1.8 =
|
104 |
-
Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
|
105 |
-
|
106 |
-
= 1.8.2 =
|
107 |
-
Updated German translation and various bugfixes.
|
108 |
-
|
109 |
-
= 1.8.3 =
|
110 |
-
The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
|
111 |
-
|
112 |
-
== Upgrade Notice ==
|
113 |
-
|
114 |
-
= 1.8 =
|
115 |
-
I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8.3/screenshot-1.png
DELETED
Binary file
|
tags/1.8.3/screenshot-2.png
DELETED
Binary file
|
tags/1.8/custom-post-widget.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Post Widget
|
4 |
-
Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
|
5 |
-
Description: Show the content of a custom post of the type 'content_block' in a widget.
|
6 |
-
Version: 1.6
|
7 |
-
Author: Johan van der Wijk
|
8 |
-
Author URI: http://www.vanderwijk.com
|
9 |
-
License: GPL2
|
10 |
-
|
11 |
-
Release notes: Version 1.6 of the Custom Post Widget plugin now uses the much more efficient
|
12 |
-
get_post instead of query_post to display the widget content.
|
13 |
-
|
14 |
-
Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
|
15 |
-
|
16 |
-
This program is free software; you can redistribute it and/or modify
|
17 |
-
it under the terms of the GNU General Public License, version 2, as
|
18 |
-
published by the Free Software Foundation.
|
19 |
-
|
20 |
-
This program is distributed in the hope that it will be useful,
|
21 |
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
-
GNU General Public License for more details.
|
24 |
-
|
25 |
-
You should have received a copy of the GNU General Public License
|
26 |
-
along with this program; if not, write to the Free Software
|
27 |
-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
-
*/
|
29 |
-
|
30 |
-
/* Set constant path to the custom-post-widget plugin directory. */
|
31 |
-
define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
|
32 |
-
define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
|
33 |
-
|
34 |
-
/* Launch the plugin. */
|
35 |
-
add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
|
36 |
-
|
37 |
-
/**
|
38 |
-
Initialize the plugin. This function loads the required files needed for the plugin
|
39 |
-
to run in the proper order and adds needed functions to the required hooks.
|
40 |
-
*/
|
41 |
-
function custom_post_widget_plugin_init() {
|
42 |
-
|
43 |
-
/* Load the translation of the plugin. */
|
44 |
-
load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
|
45 |
-
|
46 |
-
add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
Loads the widgets packaged with the plugin.
|
51 |
-
*/
|
52 |
-
function custom_post_widget_load_widgets() {
|
53 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
|
54 |
-
register_widget( 'custom_post_widget' );
|
55 |
-
}
|
56 |
-
|
57 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/images/contentblock-13.png
DELETED
Binary file
|
tags/1.8/images/contentblock-32.png
DELETED
Binary file
|
tags/1.8/images/contentblock.png
DELETED
Binary file
|
tags/1.8/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
tags/1.8/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,203 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: popup.php:38
|
38 |
-
#: post-widget.php:31
|
39 |
-
#@ custom-post-widget
|
40 |
-
msgid "No content blocks available"
|
41 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
42 |
-
|
43 |
-
#: post-widget.php:42
|
44 |
-
#@ custom-post-widget
|
45 |
-
msgid "Show Post Title"
|
46 |
-
msgstr "Beitragstitel anzeigen"
|
47 |
-
|
48 |
-
#: post-widget.php:61
|
49 |
-
#@ custom-post-widget
|
50 |
-
msgid "Find"
|
51 |
-
msgstr "Finden"
|
52 |
-
|
53 |
-
#: post-widget.php:88
|
54 |
-
#@ custom-post-widget
|
55 |
-
msgctxt "post type general name"
|
56 |
-
msgid "Content Blocks"
|
57 |
-
msgstr "Inhaltsblöcke"
|
58 |
-
|
59 |
-
#: post-widget.php:89
|
60 |
-
#@ custom-post-widget
|
61 |
-
msgctxt "post type singular name"
|
62 |
-
msgid "Content Block"
|
63 |
-
msgstr "Inhaltsblock"
|
64 |
-
|
65 |
-
#: post-widget.php:91
|
66 |
-
#@ custom-post-widget
|
67 |
-
msgctxt "block"
|
68 |
-
msgid "Add Content Block"
|
69 |
-
msgstr "Inhaltsblock erstellen"
|
70 |
-
|
71 |
-
#: post-widget.php:92
|
72 |
-
#@ custom-post-widget
|
73 |
-
msgid "Add New Content Block"
|
74 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
75 |
-
|
76 |
-
#: post-widget.php:93
|
77 |
-
#@ custom-post-widget
|
78 |
-
msgid "Edit Content Block"
|
79 |
-
msgstr "Inhaltsblock bearbeiten"
|
80 |
-
|
81 |
-
#: post-widget.php:94
|
82 |
-
#@ custom-post-widget
|
83 |
-
msgid "New Content Block"
|
84 |
-
msgstr "Neuer Inhaltsblock"
|
85 |
-
|
86 |
-
#: post-widget.php:95
|
87 |
-
#@ custom-post-widget
|
88 |
-
msgid "View Content Block"
|
89 |
-
msgstr "Inhaltsblock ansehen"
|
90 |
-
|
91 |
-
#: post-widget.php:96
|
92 |
-
#@ custom-post-widget
|
93 |
-
msgid "Search Content Blocks"
|
94 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
95 |
-
|
96 |
-
#: post-widget.php:97
|
97 |
-
#@ custom-post-widget
|
98 |
-
msgid "No Content Blocks Found"
|
99 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
100 |
-
|
101 |
-
#: post-widget.php:98
|
102 |
-
#@ custom-post-widget
|
103 |
-
msgid "No Content Blocks found in Trash"
|
104 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
105 |
-
|
106 |
-
#: post-widget.php:141
|
107 |
-
#, php-format
|
108 |
-
#@ custom-post-widget
|
109 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
110 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
111 |
-
|
112 |
-
#: post-widget.php:142
|
113 |
-
#@ custom-post-widget
|
114 |
-
msgid "Custom field updated."
|
115 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
116 |
-
|
117 |
-
#: post-widget.php:143
|
118 |
-
#@ custom-post-widget
|
119 |
-
msgid "Custom field deleted."
|
120 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
121 |
-
|
122 |
-
#: post-widget.php:144
|
123 |
-
#@ custom-post-widget
|
124 |
-
msgid "Content Block updated."
|
125 |
-
msgstr "Inhaltsblock aktualisiert."
|
126 |
-
|
127 |
-
#: post-widget.php:145
|
128 |
-
#, php-format
|
129 |
-
#@ custom-post-widget
|
130 |
-
msgid "Content Block restored to revision from %s"
|
131 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
132 |
-
|
133 |
-
#: post-widget.php:146
|
134 |
-
#, php-format
|
135 |
-
#@ custom-post-widget
|
136 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
137 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
138 |
-
|
139 |
-
#: post-widget.php:147
|
140 |
-
#@ custom-post-widget
|
141 |
-
msgid "Block saved."
|
142 |
-
msgstr "Inhaltsblock gespeichert."
|
143 |
-
|
144 |
-
#: post-widget.php:148
|
145 |
-
#, php-format
|
146 |
-
#@ custom-post-widget
|
147 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
148 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
149 |
-
|
150 |
-
#: post-widget.php:149
|
151 |
-
#, php-format
|
152 |
-
#@ custom-post-widget
|
153 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
154 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
155 |
-
|
156 |
-
#: post-widget.php:149
|
157 |
-
#@ custom-post-widget
|
158 |
-
msgid "M j, Y @ G:i"
|
159 |
-
msgstr "j. M Y @ H:M"
|
160 |
-
|
161 |
-
#: post-widget.php:150
|
162 |
-
#, php-format
|
163 |
-
#@ custom-post-widget
|
164 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
165 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
166 |
-
|
167 |
-
#: post-widget.php:90
|
168 |
-
#@ custom-post-widget
|
169 |
-
msgctxt "post type plural name"
|
170 |
-
msgid "Content Blocks"
|
171 |
-
msgstr "Inhaltsblöcke"
|
172 |
-
|
173 |
-
#: popup.php:9
|
174 |
-
#@ custom-post-widget
|
175 |
-
msgid "Please select a Content Block"
|
176 |
-
msgstr "Bitte wähle einen Inhaltsblock aus."
|
177 |
-
|
178 |
-
#: popup.php:22
|
179 |
-
#@ custom-post-widget
|
180 |
-
msgid "Insert Content Block"
|
181 |
-
msgstr "Inhaltsblock einfügen"
|
182 |
-
|
183 |
-
#: popup.php:23
|
184 |
-
#@ custom-post-widget
|
185 |
-
msgid "Select a Content Block below to add it to your post or page."
|
186 |
-
msgstr "Wähle einen dieser Inhaltsblöcke aus, um ihn in deinen Beitrag oder deine Seite einzufügen."
|
187 |
-
|
188 |
-
#: popup.php:27
|
189 |
-
#@ custom-post-widget
|
190 |
-
msgid "Select a Content Block"
|
191 |
-
msgstr "Inhaltsblock auswählen"
|
192 |
-
|
193 |
-
#: popup.php:45
|
194 |
-
#@ custom-post-widget
|
195 |
-
msgid "Cancel"
|
196 |
-
msgstr "Abbrechen"
|
197 |
-
|
198 |
-
#: post-widget.php:186
|
199 |
-
#: post-widget.php:187
|
200 |
-
#@ custom-post-widget
|
201 |
-
msgid "Add Content Block"
|
202 |
-
msgstr "Inhaltsblock hinzufügen"
|
203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
tags/1.8/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <johan@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een tekstblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Tekstblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven tekstblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen tekstblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Tekstblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Tekstblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Tekstblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw tekstblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Tekstblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Tekstblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Tekstblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Tekstblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Tekstblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Tekstblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Tekstblok Bijgewerkt. <a href=\"%s\">Toon Tekstblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Tekstblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Tekstblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Tekstblok gepublicieerd. <a href=\"%s\">Bekijk Tekstblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Tekstblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Tekstblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Tekstblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Tekstblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Tekstblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/languages/custom-post-widget.pot
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010 Custom Post Widget
|
2 |
-
# This file is distributed under the same license as the Custom Post Widget package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Custom Post Widget 1.4\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
|
7 |
-
"POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: post-widget.php:8
|
16 |
-
msgid "Displays custom post content in a widget"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: post-widget.php:9
|
20 |
-
msgid "Content Block"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: post-widget.php:19
|
24 |
-
msgid "Content Block to Display:"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: post-widget.php:31
|
28 |
-
msgid "No content blocks available"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: post-widget.php:42
|
32 |
-
msgid "Show Post Title"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: post-widget.php:61
|
36 |
-
msgid "Find"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: post-widget.php:91
|
40 |
-
msgctxt "post type general name"
|
41 |
-
msgid "Content Blocks"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: post-widget.php:92
|
45 |
-
msgctxt "post type singular name"
|
46 |
-
msgid "Content Block"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: post-widget.php:93
|
50 |
-
msgctxt "post type plural name"
|
51 |
-
msgid "Content Blocks"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: post-widget.php:94
|
55 |
-
msgctxt "block"
|
56 |
-
msgid "Add Content Block"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: post-widget.php:95
|
60 |
-
msgid "Add New Content Block"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: post-widget.php:96
|
64 |
-
msgid "Edit Content Block"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: post-widget.php:97
|
68 |
-
msgid "New Content Block"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: post-widget.php:98
|
72 |
-
msgid "View Content Block"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Search Content Blocks"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: post-widget.php:100
|
80 |
-
msgid "No Content Blocks Found"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: post-widget.php:101
|
84 |
-
msgid "No Content Blocks found in Trash"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: post-widget.php:126
|
88 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: post-widget.php:127
|
92 |
-
msgid "Custom field updated."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: post-widget.php:128
|
96 |
-
msgid "Custom field deleted."
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: post-widget.php:129
|
100 |
-
msgid "Content Block updated."
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: post-widget.php:130
|
104 |
-
msgid "Content Block restored to revision from %s"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: post-widget.php:131
|
108 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: post-widget.php:132
|
112 |
-
msgid "Block saved."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: post-widget.php:133
|
116 |
-
msgid ""
|
117 |
-
"Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
|
118 |
-
"Block</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: post-widget.php:134
|
122 |
-
msgid ""
|
123 |
-
"Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
|
124 |
-
"href=\"%2$s\">Preview block</a>"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: post-widget.php:135
|
128 |
-
msgid "M j, Y @ G:i"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: post-widget.php:136
|
132 |
-
msgid ""
|
133 |
-
"Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
134 |
-
"Content Block</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#. Plugin Name of the plugin/theme
|
138 |
-
msgid "Custom Post Widget"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#. Plugin URI of the plugin/theme
|
142 |
-
msgid ""
|
143 |
-
"http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#. Description of the plugin/theme
|
147 |
-
msgid ""
|
148 |
-
"Show the content of a custom post of the type 'content_block' in a widget."
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#. Author of the plugin/theme
|
152 |
-
msgid "Johan van der Wijk"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#. Author URI of the plugin/theme
|
156 |
-
msgid "http://www.vanderwijk.com"
|
157 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/popup.php
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
//Action target that displays the popup to insert a content block to a post/page
|
3 |
-
function add_mce_popup(){ ?>
|
4 |
-
|
5 |
-
<script>
|
6 |
-
function InsertContentBlockForm(){
|
7 |
-
var content_id = jQuery("#add_content_block_id").val();
|
8 |
-
if(content_id == ""){
|
9 |
-
alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
|
10 |
-
return;
|
11 |
-
}
|
12 |
-
|
13 |
-
var win = window.dialogArguments || opener || parent || top;
|
14 |
-
win.send_to_editor("[content_block id=" + content_id + "]");
|
15 |
-
}
|
16 |
-
</script>
|
17 |
-
|
18 |
-
<div id="select_form" style="display:none;">
|
19 |
-
<div class="wrap">
|
20 |
-
<div>
|
21 |
-
<div style="padding:15px 15px 0 15px;">
|
22 |
-
<h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert Content Block", 'custom-post-widget'); ?></h3>
|
23 |
-
<span><?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?></span>
|
24 |
-
</div>
|
25 |
-
<div style="padding:15px 15px 0 15px;">
|
26 |
-
<select id="add_content_block_id">
|
27 |
-
<option value=""><?php _e("Select a Content Block", 'custom-post-widget'); ?></option>
|
28 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
29 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
30 |
-
$currentID = get_the_ID();
|
31 |
-
if($currentID == $custom_post_id)
|
32 |
-
$extra = 'selected' and
|
33 |
-
$widgetExtraTitle = get_the_title();
|
34 |
-
else
|
35 |
-
$extra = '';
|
36 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
37 |
-
endwhile; else:
|
38 |
-
echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
|
39 |
-
endif;
|
40 |
-
?>
|
41 |
-
</select>
|
42 |
-
<br/>
|
43 |
-
<div style="padding:15px;">
|
44 |
-
<input type="button" class="button-primary" value="Insert Content Block" onclick="InsertContentBlockForm();"/>
|
45 |
-
<a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", 'custom-post-widget'); ?></a>
|
46 |
-
</div>
|
47 |
-
</div>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
<?php
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/post-widget.php
DELETED
@@ -1,201 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
// First create the widget for the admin panel
|
4 |
-
class custom_post_widget extends WP_Widget
|
5 |
-
{
|
6 |
-
function custom_post_widget()
|
7 |
-
{
|
8 |
-
$widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
|
9 |
-
$this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
|
10 |
-
}
|
11 |
-
|
12 |
-
function form($instance)
|
13 |
-
{
|
14 |
-
$custom_post_id = esc_attr($instance['custom_post_id']);
|
15 |
-
$show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
|
16 |
-
|
17 |
-
?>
|
18 |
-
<p>
|
19 |
-
<label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
|
20 |
-
<select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
|
21 |
-
<?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
|
22 |
-
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
23 |
-
$currentID = get_the_ID();
|
24 |
-
if($currentID == $custom_post_id)
|
25 |
-
$extra = 'selected' and
|
26 |
-
$widgetExtraTitle = get_the_title();
|
27 |
-
else
|
28 |
-
$extra = '';
|
29 |
-
echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
|
30 |
-
endwhile; else:
|
31 |
-
echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
|
32 |
-
endif;
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
</label>
|
36 |
-
</p>
|
37 |
-
<?php ?>
|
38 |
-
<input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
|
39 |
-
<?php wp_reset_query(); ?>
|
40 |
-
<p>
|
41 |
-
<input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
|
42 |
-
<label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
|
43 |
-
</p>
|
44 |
-
|
45 |
-
<?php
|
46 |
-
}
|
47 |
-
|
48 |
-
function update($new_instance, $old_instance)
|
49 |
-
{
|
50 |
-
$instance = $old_instance;
|
51 |
-
$instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
|
52 |
-
$instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
|
53 |
-
|
54 |
-
return $instance;
|
55 |
-
}
|
56 |
-
|
57 |
-
function widget($args, $instance)
|
58 |
-
{
|
59 |
-
extract($args);
|
60 |
-
|
61 |
-
$custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
|
62 |
-
|
63 |
-
/* Variables from the widget settings. */
|
64 |
-
$show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
|
65 |
-
|
66 |
-
$content_post = get_post($custom_post_id);
|
67 |
-
$content = $content_post->post_content;
|
68 |
-
$content = apply_filters('the_content', $content);
|
69 |
-
$content = str_replace(']]>', ']]>', $content);
|
70 |
-
|
71 |
-
echo $before_widget;
|
72 |
-
if ( $show_custom_post_title )
|
73 |
-
{
|
74 |
-
echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
|
75 |
-
}
|
76 |
-
echo $content; // This is where the actual content of the custom post is being displayed
|
77 |
-
echo $after_widget;
|
78 |
-
|
79 |
-
}
|
80 |
-
}
|
81 |
-
|
82 |
-
// Create the Content Block custom post type
|
83 |
-
add_action('init', 'my_content_block_post_type_init');
|
84 |
-
|
85 |
-
function my_content_block_post_type_init()
|
86 |
-
{
|
87 |
-
$labels = array(
|
88 |
-
'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
|
89 |
-
'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
|
90 |
-
'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
|
91 |
-
'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
|
92 |
-
'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
|
93 |
-
'edit_item' => __('Edit Content Block', 'custom-post-widget'),
|
94 |
-
'new_item' => __('New Content Block', 'custom-post-widget'),
|
95 |
-
'view_item' => __('View Content Block', 'custom-post-widget'),
|
96 |
-
'search_items' => __('Search Content Blocks', 'custom-post-widget'),
|
97 |
-
'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
|
98 |
-
'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
|
99 |
-
'parent_item_colon' => ''
|
100 |
-
);
|
101 |
-
$options = array(
|
102 |
-
'labels' => $labels,
|
103 |
-
'public' => false,
|
104 |
-
'publicly_queryable' => false,
|
105 |
-
'exclude_from_search' => true,
|
106 |
-
'show_ui' => true,
|
107 |
-
'query_var' => true,
|
108 |
-
'rewrite' => true,
|
109 |
-
'capability_type' => 'post',
|
110 |
-
'hierarchical' => false,
|
111 |
-
'menu_position' => null,
|
112 |
-
'supports' => array('title','editor','revisions','thumbnail','author')
|
113 |
-
);
|
114 |
-
register_post_type('content_block',$options);
|
115 |
-
}
|
116 |
-
|
117 |
-
|
118 |
-
// Add custom styles to admin screen and menu
|
119 |
-
add_action('admin_head', 'content_block_header');
|
120 |
-
|
121 |
-
function content_block_header() {
|
122 |
-
|
123 |
-
global $post_type; ?>
|
124 |
-
|
125 |
-
<style type="text/css"><!--
|
126 |
-
<?php if (($post_type == 'content_block')) : ?>
|
127 |
-
#icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
|
128 |
-
<?php endif; ?>
|
129 |
-
#adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
|
130 |
-
#adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
|
131 |
-
--></style><?php
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
-
add_filter('post_updated_messages', 'content_block_messages');
|
136 |
-
|
137 |
-
function content_block_messages( $messages ) {
|
138 |
-
|
139 |
-
$messages['content_block'] = array(
|
140 |
-
0 => '',
|
141 |
-
1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
142 |
-
2 => __('Custom field updated.', 'custom-post-widget'),
|
143 |
-
3 => __('Custom field deleted.', 'custom-post-widget'),
|
144 |
-
4 => __('Content Block updated.', 'custom-post-widget'),
|
145 |
-
5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
|
146 |
-
6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
147 |
-
7 => __('Block saved.', 'custom-post-widget'),
|
148 |
-
8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
149 |
-
9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
|
150 |
-
10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
|
151 |
-
);
|
152 |
-
|
153 |
-
return $messages;
|
154 |
-
}
|
155 |
-
|
156 |
-
// Add the ability to display the content block in a reqular post using a shortcode
|
157 |
-
function custom_post_widget_shortcode($atts) {
|
158 |
-
extract(shortcode_atts(array(
|
159 |
-
'id' => '',
|
160 |
-
), $atts));
|
161 |
-
|
162 |
-
$content = "";
|
163 |
-
|
164 |
-
if($id != "")
|
165 |
-
{
|
166 |
-
$args = array(
|
167 |
-
'post__in' => array($id),
|
168 |
-
'post_type' => 'content_block',
|
169 |
-
);
|
170 |
-
|
171 |
-
$content_post = get_posts($args);
|
172 |
-
|
173 |
-
foreach( $content_post as $post ) :
|
174 |
-
$content .= apply_filters('the_content', $post->post_content);
|
175 |
-
endforeach;
|
176 |
-
}
|
177 |
-
|
178 |
-
return $content;
|
179 |
-
}
|
180 |
-
|
181 |
-
add_shortcode('content_block', 'custom_post_widget_shortcode');
|
182 |
-
|
183 |
-
// Add button above editor
|
184 |
-
function add_content_block_icon($initcontext) {
|
185 |
-
return $initcontext.
|
186 |
-
'<a id="add_content_block" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php#TB_inline?width=450&inlineId=select_form">
|
187 |
-
<img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
|
188 |
-
</a>';
|
189 |
-
}
|
190 |
-
|
191 |
-
add_filter('media_buttons_context', 'add_content_block_icon');
|
192 |
-
|
193 |
-
require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
|
194 |
-
|
195 |
-
if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
|
196 |
-
define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
|
197 |
-
|
198 |
-
if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
|
199 |
-
add_action('admin_footer', 'add_mce_popup');
|
200 |
-
}
|
201 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/readme.txt
DELETED
@@ -1,108 +0,0 @@
|
|
1 |
-
=== Custom Post Widget ===
|
2 |
-
Contributors: vanderwijk
|
3 |
-
Author URI: http://www.vanderwijk.com/
|
4 |
-
Donate link: http://www.vanderwijk.com/wordpress/support/
|
5 |
-
Tags: custom-post, widget, sidebar
|
6 |
-
Requires at least: 2.9.2
|
7 |
-
Tested up to: 3.1
|
8 |
-
Stable tag: 1.8
|
9 |
-
|
10 |
-
This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
|
15 |
-
|
16 |
-
Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
|
17 |
-
|
18 |
-
* If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
|
19 |
-
* The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
|
20 |
-
|
21 |
-
This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
|
22 |
-
|
23 |
-
To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
|
24 |
-
|
25 |
-
You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
|
26 |
-
|
27 |
-
== Screenshots ==
|
28 |
-
|
29 |
-
1. After activating the plugin a new post type called 'Content Blocks' is added.
|
30 |
-
2. The widget has a select box to choose the content block.
|
31 |
-
|
32 |
-
== Installation ==
|
33 |
-
|
34 |
-
1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
|
35 |
-
2. Then activate the plugin in the plugin panel.
|
36 |
-
You will see that a new custom post type has been added called Content Block.
|
37 |
-
3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
|
38 |
-
4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
|
39 |
-
5. Select a Content Block from the drop-down list.
|
40 |
-
6. Click save.
|
41 |
-
|
42 |
-
== Frequently Asked Questions ==
|
43 |
-
|
44 |
-
= Why can't I use the default text-widget? =
|
45 |
-
|
46 |
-
Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
|
47 |
-
|
48 |
-
= How can I show the content bock on a specific page? =
|
49 |
-
|
50 |
-
It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
|
51 |
-
|
52 |
-
= How can I display the featured image in the widget? =
|
53 |
-
|
54 |
-
This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
|
55 |
-
|
56 |
-
`function InsertFeaturedImage($content) {
|
57 |
-
global $post;
|
58 |
-
$original_content = $content;
|
59 |
-
if (current_theme_supports('post-thumbnails')) {
|
60 |
-
if ('content_block' == get_post_type()) {
|
61 |
-
$content = the_post_thumbnail('medium');
|
62 |
-
$content .= $original_content;
|
63 |
-
}
|
64 |
-
}
|
65 |
-
return $content;
|
66 |
-
}
|
67 |
-
add_filter('the_content', 'InsertFeaturedImage');`
|
68 |
-
|
69 |
-
|
70 |
-
== Changelog ==
|
71 |
-
|
72 |
-
= 1.0 =
|
73 |
-
First release
|
74 |
-
|
75 |
-
= 1.1 =
|
76 |
-
Fixed screenshots for plugin directory
|
77 |
-
|
78 |
-
= 1.1.1 =
|
79 |
-
Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
|
80 |
-
|
81 |
-
= 1.2 =
|
82 |
-
Added a checkbox in the widget to make it possible to show the custom post title in the widget area
|
83 |
-
|
84 |
-
= 1.2.1 =
|
85 |
-
The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
|
86 |
-
|
87 |
-
= 1.3 =
|
88 |
-
Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
|
89 |
-
|
90 |
-
= 1.4 =
|
91 |
-
The plugin has been translated into Dutch and German. Hat tip: Caspar Hübinger - glueckpress.com
|
92 |
-
|
93 |
-
= 1.5 =
|
94 |
-
Thanks to Caspar Huebinger the plugin
|
95 |
-
now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
|
96 |
-
|
97 |
-
= 1.6 =
|
98 |
-
The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
|
99 |
-
|
100 |
-
= 1.7 =
|
101 |
-
This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
|
102 |
-
|
103 |
-
== Upgrade Notice ==
|
104 |
-
|
105 |
-
= 1.1.1 =
|
106 |
-
Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
|
107 |
-
|
108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags/1.8/screenshot-1.png
DELETED
Binary file
|
tags/1.8/screenshot-2.png
DELETED
Binary file
|
trunk/images/contentblock-13.png
DELETED
Binary file
|
trunk/images/contentblock-32.png
DELETED
Binary file
|
trunk/images/contentblock.png
DELETED
Binary file
|
trunk/languages/custom-post-widget-de_DE.mo
DELETED
Binary file
|
trunk/languages/custom-post-widget-de_DE.po
DELETED
@@ -1,171 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: \n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: \n"
|
14 |
-
"X-Poedit-Country: \n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: \n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
22 |
-
#: post-widget.php:8
|
23 |
-
#@ custom-post-widget
|
24 |
-
msgid "Displays custom post content in a widget"
|
25 |
-
msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
|
26 |
-
|
27 |
-
#: post-widget.php:9
|
28 |
-
#@ custom-post-widget
|
29 |
-
msgid "Content Block"
|
30 |
-
msgstr "Inhaltsblock"
|
31 |
-
|
32 |
-
#: post-widget.php:19
|
33 |
-
#@ custom-post-widget
|
34 |
-
msgid "Content Block to Display:"
|
35 |
-
msgstr "Anzuzeigender Inhaltsblock"
|
36 |
-
|
37 |
-
#: post-widget.php:31
|
38 |
-
#@ custom-post-widget
|
39 |
-
msgid "No content blocks available"
|
40 |
-
msgstr "Keine Inhaltsblöcke verfügbar"
|
41 |
-
|
42 |
-
#: post-widget.php:43
|
43 |
-
#@ custom-post-widget
|
44 |
-
msgid "Show Post Title"
|
45 |
-
msgstr "Beitragstitel anzeigen"
|
46 |
-
|
47 |
-
#: post-widget.php:62
|
48 |
-
#@ custom-post-widget
|
49 |
-
msgid "Find"
|
50 |
-
msgstr "Finden"
|
51 |
-
|
52 |
-
#: post-widget.php:94
|
53 |
-
#@ custom-post-widget
|
54 |
-
msgctxt "post type general name"
|
55 |
-
msgid "Content Blocks"
|
56 |
-
msgstr "Inhaltsblöcke"
|
57 |
-
|
58 |
-
#: post-widget.php:95
|
59 |
-
#@ custom-post-widget
|
60 |
-
msgctxt "post type singular name"
|
61 |
-
msgid "Content Block"
|
62 |
-
msgstr "Inhaltsblock"
|
63 |
-
|
64 |
-
#: post-widget.php:97
|
65 |
-
#@ custom-post-widget
|
66 |
-
msgctxt "block"
|
67 |
-
msgid "Add Content Block"
|
68 |
-
msgstr "Inhaltsblock erstellen"
|
69 |
-
|
70 |
-
#: post-widget.php:98
|
71 |
-
#@ custom-post-widget
|
72 |
-
msgid "Add New Content Block"
|
73 |
-
msgstr "Neuen Inhaltsblock erstellen"
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
#@ custom-post-widget
|
77 |
-
msgid "Edit Content Block"
|
78 |
-
msgstr "Inhaltsblock bearbeiten"
|
79 |
-
|
80 |
-
#: post-widget.php:100
|
81 |
-
#@ custom-post-widget
|
82 |
-
msgid "New Content Block"
|
83 |
-
msgstr "Neuer Inhaltsblock"
|
84 |
-
|
85 |
-
#: post-widget.php:101
|
86 |
-
#@ custom-post-widget
|
87 |
-
msgid "View Content Block"
|
88 |
-
msgstr "Inhaltsblock ansehen"
|
89 |
-
|
90 |
-
#: post-widget.php:102
|
91 |
-
#@ custom-post-widget
|
92 |
-
msgid "Search Content Blocks"
|
93 |
-
msgstr "Inhaltsblöcke durchsuchen"
|
94 |
-
|
95 |
-
#: post-widget.php:103
|
96 |
-
#@ custom-post-widget
|
97 |
-
msgid "No Content Blocks Found"
|
98 |
-
msgstr "Keine Inhaltsblöcke gefunden"
|
99 |
-
|
100 |
-
#: post-widget.php:104
|
101 |
-
#@ custom-post-widget
|
102 |
-
msgid "No Content Blocks found in Trash"
|
103 |
-
msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
|
104 |
-
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
#@ custom-post-widget
|
108 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
|
110 |
-
|
111 |
-
#: post-widget.php:130
|
112 |
-
#@ custom-post-widget
|
113 |
-
msgid "Custom field updated."
|
114 |
-
msgstr "Benutzerdefiniertes Feld aktualisiert."
|
115 |
-
|
116 |
-
#: post-widget.php:131
|
117 |
-
#@ custom-post-widget
|
118 |
-
msgid "Custom field deleted."
|
119 |
-
msgstr "Benutzerdefiniertes Feld gelöscht."
|
120 |
-
|
121 |
-
#: post-widget.php:132
|
122 |
-
#@ custom-post-widget
|
123 |
-
msgid "Content Block updated."
|
124 |
-
msgstr "Inhaltsblock aktualisiert."
|
125 |
-
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
#@ custom-post-widget
|
129 |
-
msgid "Content Block restored to revision from %s"
|
130 |
-
msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
|
131 |
-
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
#@ custom-post-widget
|
135 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
136 |
-
msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
|
137 |
-
|
138 |
-
#: post-widget.php:135
|
139 |
-
#@ custom-post-widget
|
140 |
-
msgid "Block saved."
|
141 |
-
msgstr "Inhaltsblock gespeichert."
|
142 |
-
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
#@ custom-post-widget
|
146 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
147 |
-
msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
|
148 |
-
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
#@ custom-post-widget
|
152 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
153 |
-
msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
|
154 |
-
|
155 |
-
#: post-widget.php:138
|
156 |
-
#@ custom-post-widget
|
157 |
-
msgid "M j, Y @ G:i"
|
158 |
-
msgstr "j. M Y @ H:M"
|
159 |
-
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
#@ custom-post-widget
|
163 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
164 |
-
msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
|
165 |
-
|
166 |
-
#: post-widget.php:96
|
167 |
-
#@ custom-post-widget
|
168 |
-
msgctxt "post type plural name"
|
169 |
-
msgid "Content Blocks"
|
170 |
-
msgstr "Inhaltsblöcke"
|
171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/custom-post-widget-nl_NL.mo
DELETED
Binary file
|
trunk/languages/custom-post-widget-nl_NL.po
DELETED
@@ -1,170 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: Custom Post Widget\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: \n"
|
7 |
-
"Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
|
8 |
-
"Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: Dutch\n"
|
14 |
-
"X-Poedit-Country: NETHERLANDS\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Textdomain-Support: yes\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
|
21 |
-
#@ custom-post-widget
|
22 |
-
#: post-widget.php:8
|
23 |
-
msgid "Displays custom post content in a widget"
|
24 |
-
msgstr "Toont een inhoudsblok in een widget"
|
25 |
-
|
26 |
-
#@ custom-post-widget
|
27 |
-
#: post-widget.php:9
|
28 |
-
msgid "Content Block"
|
29 |
-
msgstr "Inhoudsblok"
|
30 |
-
|
31 |
-
#@ custom-post-widget
|
32 |
-
#: post-widget.php:19
|
33 |
-
msgid "Content Block to Display:"
|
34 |
-
msgstr "Weer te geven inhoudsblok:"
|
35 |
-
|
36 |
-
#@ custom-post-widget
|
37 |
-
#: post-widget.php:31
|
38 |
-
msgid "No content blocks available"
|
39 |
-
msgstr "Geen inhoudsblokken beschikbaar"
|
40 |
-
|
41 |
-
#@ custom-post-widget
|
42 |
-
#: post-widget.php:43
|
43 |
-
msgid "Show Post Title"
|
44 |
-
msgstr "Toon de titel"
|
45 |
-
|
46 |
-
#@ custom-post-widget
|
47 |
-
#: post-widget.php:62
|
48 |
-
msgid "Find"
|
49 |
-
msgstr "Zoeken"
|
50 |
-
|
51 |
-
#@ custom-post-widget
|
52 |
-
#: post-widget.php:94
|
53 |
-
msgctxt "post type general name"
|
54 |
-
msgid "Content Blocks"
|
55 |
-
msgstr "Inhoudsblokken"
|
56 |
-
|
57 |
-
#@ custom-post-widget
|
58 |
-
#: post-widget.php:95
|
59 |
-
msgctxt "post type singular name"
|
60 |
-
msgid "Content Block"
|
61 |
-
msgstr "Inhoudsblok"
|
62 |
-
|
63 |
-
#@ custom-post-widget
|
64 |
-
#: post-widget.php:97
|
65 |
-
msgctxt "block"
|
66 |
-
msgid "Add Content Block"
|
67 |
-
msgstr "Nieuw Inhoudsblok"
|
68 |
-
|
69 |
-
#@ custom-post-widget
|
70 |
-
#: post-widget.php:98
|
71 |
-
msgid "Add New Content Block"
|
72 |
-
msgstr "Nieuw inhoudsblok toevoegen"
|
73 |
-
|
74 |
-
#@ custom-post-widget
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Edit Content Block"
|
77 |
-
msgstr "Inhoudsblok Bewerken"
|
78 |
-
|
79 |
-
#@ custom-post-widget
|
80 |
-
#: post-widget.php:100
|
81 |
-
msgid "New Content Block"
|
82 |
-
msgstr "Nieuw Inhoudsblok"
|
83 |
-
|
84 |
-
#@ custom-post-widget
|
85 |
-
#: post-widget.php:101
|
86 |
-
msgid "View Content Block"
|
87 |
-
msgstr "Inhoudsblok Bekijken"
|
88 |
-
|
89 |
-
#@ custom-post-widget
|
90 |
-
#: post-widget.php:102
|
91 |
-
msgid "Search Content Blocks"
|
92 |
-
msgstr "Inhoudsblokken zoeken"
|
93 |
-
|
94 |
-
#@ custom-post-widget
|
95 |
-
#: post-widget.php:103
|
96 |
-
msgid "No Content Blocks Found"
|
97 |
-
msgstr "Geen Inhoudsblokken"
|
98 |
-
|
99 |
-
#@ custom-post-widget
|
100 |
-
#: post-widget.php:104
|
101 |
-
msgid "No Content Blocks found in Trash"
|
102 |
-
msgstr "Geen Inhoudsblokken in de Prullenbak"
|
103 |
-
|
104 |
-
#@ custom-post-widget
|
105 |
-
#: post-widget.php:129
|
106 |
-
#, php-format
|
107 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
108 |
-
msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
|
109 |
-
|
110 |
-
#@ custom-post-widget
|
111 |
-
#: post-widget.php:130
|
112 |
-
msgid "Custom field updated."
|
113 |
-
msgstr "Custom field bijgewerkt."
|
114 |
-
|
115 |
-
#@ custom-post-widget
|
116 |
-
#: post-widget.php:131
|
117 |
-
msgid "Custom field deleted."
|
118 |
-
msgstr "Custom field verwijderd."
|
119 |
-
|
120 |
-
#@ custom-post-widget
|
121 |
-
#: post-widget.php:132
|
122 |
-
msgid "Content Block updated."
|
123 |
-
msgstr "Inhoudsblok bijgewerkt."
|
124 |
-
|
125 |
-
#@ custom-post-widget
|
126 |
-
#: post-widget.php:133
|
127 |
-
#, php-format
|
128 |
-
msgid "Content Block restored to revision from %s"
|
129 |
-
msgstr "Inhoudsblok teruggezet naar revisie %s"
|
130 |
-
|
131 |
-
#@ custom-post-widget
|
132 |
-
#: post-widget.php:134
|
133 |
-
#, php-format
|
134 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
135 |
-
msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
|
136 |
-
|
137 |
-
#@ custom-post-widget
|
138 |
-
#: post-widget.php:135
|
139 |
-
msgid "Block saved."
|
140 |
-
msgstr "Inhoudsblok Opgeslagen."
|
141 |
-
|
142 |
-
#@ custom-post-widget
|
143 |
-
#: post-widget.php:136
|
144 |
-
#, php-format
|
145 |
-
msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
146 |
-
msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
|
147 |
-
|
148 |
-
#@ custom-post-widget
|
149 |
-
#: post-widget.php:137
|
150 |
-
#, php-format
|
151 |
-
msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
|
152 |
-
msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
|
153 |
-
|
154 |
-
#@ custom-post-widget
|
155 |
-
#: post-widget.php:138
|
156 |
-
msgid "M j, Y @ G:i"
|
157 |
-
msgstr "j. M Y @ H:M"
|
158 |
-
|
159 |
-
#@ custom-post-widget
|
160 |
-
#: post-widget.php:139
|
161 |
-
#, php-format
|
162 |
-
msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
|
163 |
-
msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
|
164 |
-
|
165 |
-
#@ custom-post-widget
|
166 |
-
#: post-widget.php:96
|
167 |
-
msgctxt "post type plural name"
|
168 |
-
msgid "Content Blocks"
|
169 |
-
msgstr "Inhoudsblokken"
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunk/languages/custom-post-widget.pot
DELETED
@@ -1,157 +0,0 @@
|
|
1 |
-
# Copyright (C) 2010 Custom Post Widget
|
2 |
-
# This file is distributed under the same license as the Custom Post Widget package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"Project-Id-Version: Custom Post Widget 1.4\n"
|
6 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
|
7 |
-
"POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
|
12 |
-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
-
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
-
|
15 |
-
#: post-widget.php:8
|
16 |
-
msgid "Displays custom post content in a widget"
|
17 |
-
msgstr ""
|
18 |
-
|
19 |
-
#: post-widget.php:9
|
20 |
-
msgid "Content Block"
|
21 |
-
msgstr ""
|
22 |
-
|
23 |
-
#: post-widget.php:19
|
24 |
-
msgid "Content Block to Display:"
|
25 |
-
msgstr ""
|
26 |
-
|
27 |
-
#: post-widget.php:31
|
28 |
-
msgid "No content blocks available"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: post-widget.php:42
|
32 |
-
msgid "Show Post Title"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: post-widget.php:61
|
36 |
-
msgid "Find"
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: post-widget.php:91
|
40 |
-
msgctxt "post type general name"
|
41 |
-
msgid "Content Blocks"
|
42 |
-
msgstr ""
|
43 |
-
|
44 |
-
#: post-widget.php:92
|
45 |
-
msgctxt "post type singular name"
|
46 |
-
msgid "Content Block"
|
47 |
-
msgstr ""
|
48 |
-
|
49 |
-
#: post-widget.php:93
|
50 |
-
msgctxt "post type plural name"
|
51 |
-
msgid "Content Blocks"
|
52 |
-
msgstr ""
|
53 |
-
|
54 |
-
#: post-widget.php:94
|
55 |
-
msgctxt "block"
|
56 |
-
msgid "Add Content Block"
|
57 |
-
msgstr ""
|
58 |
-
|
59 |
-
#: post-widget.php:95
|
60 |
-
msgid "Add New Content Block"
|
61 |
-
msgstr ""
|
62 |
-
|
63 |
-
#: post-widget.php:96
|
64 |
-
msgid "Edit Content Block"
|
65 |
-
msgstr ""
|
66 |
-
|
67 |
-
#: post-widget.php:97
|
68 |
-
msgid "New Content Block"
|
69 |
-
msgstr ""
|
70 |
-
|
71 |
-
#: post-widget.php:98
|
72 |
-
msgid "View Content Block"
|
73 |
-
msgstr ""
|
74 |
-
|
75 |
-
#: post-widget.php:99
|
76 |
-
msgid "Search Content Blocks"
|
77 |
-
msgstr ""
|
78 |
-
|
79 |
-
#: post-widget.php:100
|
80 |
-
msgid "No Content Blocks Found"
|
81 |
-
msgstr ""
|
82 |
-
|
83 |
-
#: post-widget.php:101
|
84 |
-
msgid "No Content Blocks found in Trash"
|
85 |
-
msgstr ""
|
86 |
-
|
87 |
-
#: post-widget.php:126
|
88 |
-
msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
|
89 |
-
msgstr ""
|
90 |
-
|
91 |
-
#: post-widget.php:127
|
92 |
-
msgid "Custom field updated."
|
93 |
-
msgstr ""
|
94 |
-
|
95 |
-
#: post-widget.php:128
|
96 |
-
msgid "Custom field deleted."
|
97 |
-
msgstr ""
|
98 |
-
|
99 |
-
#: post-widget.php:129
|
100 |
-
msgid "Content Block updated."
|
101 |
-
msgstr ""
|
102 |
-
|
103 |
-
#: post-widget.php:130
|
104 |
-
msgid "Content Block restored to revision from %s"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: post-widget.php:131
|
108 |
-
msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
|
109 |
-
msgstr ""
|
110 |
-
|
111 |
-
#: post-widget.php:132
|
112 |
-
msgid "Block saved."
|
113 |
-
msgstr ""
|
114 |
-
|
115 |
-
#: post-widget.php:133
|
116 |
-
msgid ""
|
117 |
-
"Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
|
118 |
-
"Block</a>"
|
119 |
-
msgstr ""
|
120 |
-
|
121 |
-
#: post-widget.php:134
|
122 |
-
msgid ""
|
123 |
-
"Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
|
124 |
-
"href=\"%2$s\">Preview block</a>"
|
125 |
-
msgstr ""
|
126 |
-
|
127 |
-
#: post-widget.php:135
|
128 |
-
msgid "M j, Y @ G:i"
|
129 |
-
msgstr ""
|
130 |
-
|
131 |
-
#: post-widget.php:136
|
132 |
-
msgid ""
|
133 |
-
"Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
134 |
-
"Content Block</a>"
|
135 |
-
msgstr ""
|
136 |
-
|
137 |
-
#. Plugin Name of the plugin/theme
|
138 |
-
msgid "Custom Post Widget"
|
139 |
-
msgstr ""
|
140 |
-
|
141 |
-
#. Plugin URI of the plugin/theme
|
142 |
-
msgid ""
|
143 |
-
"http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
|
144 |
-
msgstr ""
|
145 |
-
|
146 |
-
#. Description of the plugin/theme
|
147 |
-
msgid ""
|
148 |
-
"Show the content of a custom post of the type 'content_block' in a widget."
|
149 |
-
msgstr ""
|
150 |
-
|
151 |
-
#. Author of the plugin/theme
|
152 |
-
msgid "Johan van der Wijk"
|
153 |
-
msgstr ""
|
154 |
-
|
155 |
-
#. Author URI of the plugin/theme
|
156 |
-
msgid "http://www.vanderwijk.com"
|
157 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|