Members - Version 0.2.2

Version Description

Download this release

Release Info

Developer greenshady
Plugin Icon 128x128 Members
Version 0.2.2
Comparing to
See all releases

Code changes from version 0.2.1 to 0.2.2

admin/meta-box-plugin-settings.php CHANGED
@@ -1,172 +1,172 @@
1
- <?php
2
- /**
3
- * Creates and adds the meta boxes to the Members Settings page in the admin.
4
- *
5
- * @package Members
6
- * @subpackage Admin
7
- */
8
-
9
- /* Add the meta boxes for the settings page on the 'add_meta_boxes' hook. */
10
- add_action( 'add_meta_boxes', 'members_settings_page_create_meta_boxes' );
11
-
12
- /**
13
- * Adds the meta boxes to the Members plugin settings page.
14
- *
15
- * @since 0.2.0
16
- */
17
- function members_settings_page_create_meta_boxes() {
18
- global $members;
19
-
20
- /* Add the 'About' meta box. */
21
- add_meta_box( 'members-about', _x( 'About', 'meta box', 'members' ), 'members_meta_box_display_about', $members->settings_page, 'side', 'default' );
22
-
23
- /* Add the 'Donate' meta box. */
24
- add_meta_box( 'members-donate', _x( 'Like this plugin?', 'meta box', 'members' ), 'members_meta_box_display_donate', $members->settings_page, 'side', 'high' );
25
-
26
- /* Add the 'Support' meta box. */
27
- add_meta_box( 'members-support', _x( 'Support', 'meta box', 'members' ), 'members_meta_box_display_support', $members->settings_page, 'side', 'low' );
28
-
29
- /* Add the 'Role Manager' meta box. */
30
- add_meta_box( 'members-role-manager', _x( 'Role Manager', 'meta box', 'members' ), 'members_meta_box_display_role_manager', $members->settings_page, 'normal', 'high' );
31
-
32
- /* Add the 'Content Permissions' meta box. */
33
- add_meta_box( 'members-content-permissions', _x( 'Content Permissions', 'meta box', 'members' ), 'members_meta_box_display_content_permissions', $members->settings_page, 'normal', 'high' );
34
-
35
- /* Add the 'Sidebar Widgets' meta box. */
36
- add_meta_box( 'members-widgets', _x( 'Sidebar Widgets', 'meta box', 'members' ), 'members_meta_box_display_widgets', $members->settings_page, 'normal', 'high' );
37
-
38
- /* Add the 'Private Site' meta box. */
39
- add_meta_box( 'members-private-site', _x( 'Private Site', 'meta box', 'members' ), 'members_meta_box_display_private_site', $members->settings_page, 'normal', 'high' );
40
- }
41
-
42
- /**
43
- * Displays the about plugin meta box.
44
- *
45
- * @since 0.2.0
46
- */
47
- function members_meta_box_display_about( $object, $box ) {
48
-
49
- $plugin_data = get_plugin_data( MEMBERS_DIR . 'members.php' ); ?>
50
-
51
- <p>
52
- <strong><?php _e( 'Version:', 'members' ); ?></strong> <?php echo $plugin_data['Version']; ?>
53
- </p>
54
- <p>
55
- <strong><?php _e( 'Description:', 'members' ); ?></strong>
56
- </p>
57
- <p>
58
- <?php echo $plugin_data['Description']; ?>
59
- </p>
60
- <?php }
61
-
62
- /**
63
- * Displays the donation meta box.
64
- *
65
- * @since 0.2.0
66
- */
67
- function members_meta_box_display_donate( $object, $box ) { ?>
68
-
69
- <p><?php _e( "Here's how you can give back:", 'members' ); ?></p>
70
-
71
- <ul>
72
- <li><a href="http://wordpress.org/extend/plugins/members" title="<?php esc_attr_e( 'Members on the WordPress plugin repository', 'members' ); ?>"><?php _e( 'Give the plugin a good rating.', 'members' ); ?></a></li>
73
- <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=3687060" title="<?php esc_attr_e( 'Donate via PayPal', 'members' ); ?>"><?php _e( 'Donate a few dollars.', 'members' ); ?></a></li>
74
- <li><a href="http://amzn.com/w/31ZQROTXPR9IS" title="<?php esc_attr_e( "Justin Tadlock's Amazon Wish List", 'members' ); ?>"><?php _e( 'Get me something from my wish list.', 'members' ); ?></a></li>
75
- </ul>
76
- <?php
77
- }
78
-
79
- /**
80
- * Displays the support meta box.
81
- *
82
- * @since 0.2.0
83
- */
84
- function members_meta_box_display_support( $object, $box ) { ?>
85
- <p>
86
- <?php printf( __( 'Support for this plugin is provided via the support forums at %1$s. If you need any help using it, please ask your support questions there.', 'members' ), '<a href="http://themehybrid.com/support" title="' . esc_attr__( 'Theme Hybrid Support Forums', 'members' ) . '">' . __( 'Theme Hybrid', 'members' ) . '</a>' ); ?>
87
- </p>
88
- <?php }
89
-
90
- /**
91
- * Displays the role manager meta box.
92
- *
93
- * @since 0.2.0
94
- */
95
- function members_meta_box_display_role_manager( $object, $box ) { ?>
96
-
97
- <p>
98
- <input type="checkbox" name="members_settings[role_manager]" id="members_settings-role_manager" value="1" <?php checked( 1, members_get_setting( 'role_manager' ) ); ?> />
99
- <label for="members_settings-role_manager"><?php _e( 'Enable the role manager.', 'members' ); ?></label>
100
- </p>
101
- <p>
102
- <span class="howto"><?php _e( 'Your roles and capabilities will not revert back to their previous settings after deactivating or uninstalling this plugin, so use this feature wisely.', 'members' ); ?></span>
103
- </p>
104
-
105
- <?php }
106
-
107
- /**
108
- * Displays the content permissions meta box.
109
- *
110
- * @since 0.2.0
111
- */
112
- function members_meta_box_display_content_permissions( $object, $box ) { ?>
113
-
114
- <p>
115
- <input type="checkbox" name="members_settings[content_permissions]" id="members_settings-content_permissions" value="1" <?php checked( 1, members_get_setting( 'content_permissions' ) ); ?> />
116
- <label for="members_settings-content_permissions"><?php _e( 'Enable the content permissions feature.', 'members' ); ?></label>
117
- </p>
118
-
119
- <p>
120
- <label for="members_settings-content_permissions_error"><?Php _e( 'Default post error message:', 'members' ); ?></label>
121
- <textarea name="members_settings[content_permissions_error]" id="members_settings-content_permissions_error"><?php echo esc_textarea( members_get_setting( 'content_permissions_error' ) ); ?></textarea>
122
- <label for="members_settings-content_permissions_error"><?php _e( 'You can use <abbr title="Hypertext Markup Language">HTML</abbr> and/or shortcodes to create a custom error message for users that don\'t have permission to view posts.', 'members' ); ?></label>
123
- </p>
124
-
125
- <?php }
126
-
127
- /**
128
- * Displays the widgets meta box.
129
- *
130
- * @since 0.2.0
131
- */
132
- function members_meta_box_display_widgets( $object, $box ) { ?>
133
-
134
- <p>
135
- <input type="checkbox" name="members_settings[login_form_widget]" id="members_settings-login_form_widget" value="1" <?php checked( 1, members_get_setting( 'login_form_widget' ) ); ?> />
136
- <label for="members_settings-login_form_widget"><?php _e( 'Enable the login form widget.', 'members' ); ?></label>
137
- </p>
138
-
139
- <p>
140
- <input type="checkbox" name="members_settings[users_widget]" id="members_settings-users_widget" value="1" <?php checked( 1, members_get_setting( 'users_widget' ) ); ?> />
141
- <label for="members_settings-users_widget"><?php _e( 'Enable the users widget.', 'members' ); ?></label>
142
- </p>
143
-
144
- <?php }
145
-
146
- /**
147
- * Displays the private site meta box.
148
- *
149
- * @since 0.2.0
150
- */
151
- function members_meta_box_display_private_site( $object, $box ) { ?>
152
-
153
- <p>
154
- <input type="checkbox" name="members_settings[private_blog]" id="members_settings-private_blog" value="1" <?php checked( 1, members_get_setting( 'private_blog' ) ); ?> />
155
- <label for="members_settings-private_blog"><?php _e( 'Redirect all logged-out users to the login page before allowing them to view the site.', 'members' ); ?></label>
156
- </p>
157
-
158
- <p>
159
- <input type="checkbox" name="members_settings[private_feed]" id="members_settings-private_feed" value="1" <?php checked( 1, members_get_setting( 'private_feed' ) ); ?> />
160
- <label for="members_settings-private_feed"><?php _e( 'Show error message for feed items.', 'members' ); ?></label>
161
- </p>
162
-
163
- <p>
164
- <label for="members_settings-private_feed_error"><?php _e( 'Feed error message:', 'members' ); ?></label>
165
- <textarea name="members_settings[private_feed_error]" id="members_settings-private_feed_error"><?php echo esc_textarea( members_get_setting( 'private_feed_error' ) ); ?></textarea>
166
- <br />
167
- <label for="members_settings-private_feed_error"><?php _e( 'You can use <abbr title="Hypertext Markup Language">HTML</abbr> and/or shortcodes to create a custom error message to display instead of feed item content.', 'members' ); ?></label>
168
- </p>
169
-
170
- <?php }
171
-
172
  ?>
1
+ <?php
2
+ /**
3
+ * Creates and adds the meta boxes to the Members Settings page in the admin.
4
+ *
5
+ * @package Members
6
+ * @subpackage Admin
7
+ */
8
+
9
+ /* Add the meta boxes for the settings page on the 'add_meta_boxes' hook. */
10
+ add_action( 'add_meta_boxes', 'members_settings_page_create_meta_boxes' );
11
+
12
+ /**
13
+ * Adds the meta boxes to the Members plugin settings page.
14
+ *
15
+ * @since 0.2.0
16
+ */
17
+ function members_settings_page_create_meta_boxes() {
18
+ global $members;
19
+
20
+ /* Add the 'About' meta box. */
21
+ add_meta_box( 'members-about', _x( 'About', 'meta box', 'members' ), 'members_meta_box_display_about', $members->settings_page, 'side', 'default' );
22
+
23
+ /* Add the 'Donate' meta box. */
24
+ add_meta_box( 'members-donate', _x( 'Like this plugin?', 'meta box', 'members' ), 'members_meta_box_display_donate', $members->settings_page, 'side', 'high' );
25
+
26
+ /* Add the 'Support' meta box. */
27
+ add_meta_box( 'members-support', _x( 'Support', 'meta box', 'members' ), 'members_meta_box_display_support', $members->settings_page, 'side', 'low' );
28
+
29
+ /* Add the 'Role Manager' meta box. */
30
+ add_meta_box( 'members-role-manager', _x( 'Role Manager', 'meta box', 'members' ), 'members_meta_box_display_role_manager', $members->settings_page, 'normal', 'high' );
31
+
32
+ /* Add the 'Content Permissions' meta box. */
33
+ add_meta_box( 'members-content-permissions', _x( 'Content Permissions', 'meta box', 'members' ), 'members_meta_box_display_content_permissions', $members->settings_page, 'normal', 'high' );
34
+
35
+ /* Add the 'Sidebar Widgets' meta box. */
36
+ add_meta_box( 'members-widgets', _x( 'Sidebar Widgets', 'meta box', 'members' ), 'members_meta_box_display_widgets', $members->settings_page, 'normal', 'high' );
37
+
38
+ /* Add the 'Private Site' meta box. */
39
+ add_meta_box( 'members-private-site', _x( 'Private Site', 'meta box', 'members' ), 'members_meta_box_display_private_site', $members->settings_page, 'normal', 'high' );
40
+ }
41
+
42
+ /**
43
+ * Displays the about plugin meta box.
44
+ *
45
+ * @since 0.2.0
46
+ */
47
+ function members_meta_box_display_about( $object, $box ) {
48
+
49
+ $plugin_data = get_plugin_data( MEMBERS_DIR . 'members.php' ); ?>
50
+
51
+ <p>
52
+ <strong><?php _e( 'Version:', 'members' ); ?></strong> <?php echo $plugin_data['Version']; ?>
53
+ </p>
54
+ <p>
55
+ <strong><?php _e( 'Description:', 'members' ); ?></strong>
56
+ </p>
57
+ <p>
58
+ <?php echo $plugin_data['Description']; ?>
59
+ </p>
60
+ <?php }
61
+
62
+ /**
63
+ * Displays the donation meta box.
64
+ *
65
+ * @since 0.2.0
66
+ */
67
+ function members_meta_box_display_donate( $object, $box ) { ?>
68
+
69
+ <p><?php _e( "Here's how you can give back:", 'members' ); ?></p>
70
+
71
+ <ul>
72
+ <li><a href="http://wordpress.org/extend/plugins/members" title="<?php esc_attr_e( 'Members on the WordPress plugin repository', 'members' ); ?>"><?php _e( 'Give the plugin a good rating.', 'members' ); ?></a></li>
73
+ <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=3687060" title="<?php esc_attr_e( 'Donate via PayPal', 'members' ); ?>"><?php _e( 'Donate a few dollars.', 'members' ); ?></a></li>
74
+ <li><a href="http://amzn.com/w/31ZQROTXPR9IS" title="<?php esc_attr_e( "Justin Tadlock's Amazon Wish List", 'members' ); ?>"><?php _e( 'Get me something from my wish list.', 'members' ); ?></a></li>
75
+ </ul>
76
+ <?php
77
+ }
78
+
79
+ /**
80
+ * Displays the support meta box.
81
+ *
82
+ * @since 0.2.0
83
+ */
84
+ function members_meta_box_display_support( $object, $box ) { ?>
85
+ <p>
86
+ <?php printf( __( 'Support for this plugin is provided via the support forums at %1$s. If you need any help using it, please ask your support questions there.', 'members' ), '<a href="http://themehybrid.com/support" title="' . esc_attr__( 'Theme Hybrid Support Forums', 'members' ) . '">' . __( 'Theme Hybrid', 'members' ) . '</a>' ); ?>
87
+ </p>
88
+ <?php }
89
+
90
+ /**
91
+ * Displays the role manager meta box.
92
+ *
93
+ * @since 0.2.0
94
+ */
95
+ function members_meta_box_display_role_manager( $object, $box ) { ?>
96
+
97
+ <p>
98
+ <input type="checkbox" name="members_settings[role_manager]" id="members_settings-role_manager" value="1" <?php checked( 1, members_get_setting( 'role_manager' ) ); ?> />
99
+ <label for="members_settings-role_manager"><?php _e( 'Enable the role manager.', 'members' ); ?></label>
100
+ </p>
101
+ <p>
102
+ <span class="howto"><?php _e( 'Your roles and capabilities will not revert back to their previous settings after deactivating or uninstalling this plugin, so use this feature wisely.', 'members' ); ?></span>
103
+ </p>
104
+
105
+ <?php }
106
+
107
+ /**
108
+ * Displays the content permissions meta box.
109
+ *
110
+ * @since 0.2.0
111
+ */
112
+ function members_meta_box_display_content_permissions( $object, $box ) { ?>
113
+
114
+ <p>
115
+ <input type="checkbox" name="members_settings[content_permissions]" id="members_settings-content_permissions" value="1" <?php checked( 1, members_get_setting( 'content_permissions' ) ); ?> />
116
+ <label for="members_settings-content_permissions"><?php _e( 'Enable the content permissions feature.', 'members' ); ?></label>
117
+ </p>
118
+
119
+ <p>
120
+ <label for="members_settings-content_permissions_error"><?Php _e( 'Default post error message:', 'members' ); ?></label>
121
+ <textarea name="members_settings[content_permissions_error]" id="members_settings-content_permissions_error"><?php echo esc_textarea( members_get_setting( 'content_permissions_error' ) ); ?></textarea>
122
+ <label for="members_settings-content_permissions_error"><?php _e( 'You can use <abbr title="Hypertext Markup Language">HTML</abbr> and/or shortcodes to create a custom error message for users that don\'t have permission to view posts.', 'members' ); ?></label>
123
+ </p>
124
+
125
+ <?php }
126
+
127
+ /**
128
+ * Displays the widgets meta box.
129
+ *
130
+ * @since 0.2.0
131
+ */
132
+ function members_meta_box_display_widgets( $object, $box ) { ?>
133
+
134
+ <p>
135
+ <input type="checkbox" name="members_settings[login_form_widget]" id="members_settings-login_form_widget" value="1" <?php checked( 1, members_get_setting( 'login_form_widget' ) ); ?> />
136
+ <label for="members_settings-login_form_widget"><?php _e( 'Enable the login form widget.', 'members' ); ?></label>
137
+ </p>
138
+
139
+ <p>
140
+ <input type="checkbox" name="members_settings[users_widget]" id="members_settings-users_widget" value="1" <?php checked( 1, members_get_setting( 'users_widget' ) ); ?> />
141
+ <label for="members_settings-users_widget"><?php _e( 'Enable the users widget.', 'members' ); ?></label>
142
+ </p>
143
+
144
+ <?php }
145
+
146
+ /**
147
+ * Displays the private site meta box.
148
+ *
149
+ * @since 0.2.0
150
+ */
151
+ function members_meta_box_display_private_site( $object, $box ) { ?>
152
+
153
+ <p>
154
+ <input type="checkbox" name="members_settings[private_blog]" id="members_settings-private_blog" value="1" <?php checked( 1, members_get_setting( 'private_blog' ) ); ?> />
155
+ <label for="members_settings-private_blog"><?php _e( 'Redirect all logged-out users to the login page before allowing them to view the site.', 'members' ); ?></label>
156
+ </p>
157
+
158
+ <p>
159
+ <input type="checkbox" name="members_settings[private_feed]" id="members_settings-private_feed" value="1" <?php checked( 1, members_get_setting( 'private_feed' ) ); ?> />
160
+ <label for="members_settings-private_feed"><?php _e( 'Show error message for feed items.', 'members' ); ?></label>
161
+ </p>
162
+
163
+ <p>
164
+ <label for="members_settings-private_feed_error"><?php _e( 'Feed error message:', 'members' ); ?></label>
165
+ <textarea name="members_settings[private_feed_error]" id="members_settings-private_feed_error"><?php echo esc_textarea( members_get_setting( 'private_feed_error' ) ); ?></textarea>
166
+ <br />
167
+ <label for="members_settings-private_feed_error"><?php _e( 'You can use <abbr title="Hypertext Markup Language">HTML</abbr> and/or shortcodes to create a custom error message to display instead of feed item content.', 'members' ); ?></label>
168
+ </p>
169
+
170
+ <?php }
171
+
172
  ?>
admin/role-edit.php CHANGED
@@ -1,133 +1,133 @@
1
- <?php
2
- /**
3
- * This file handles the display of the edit role form and the updates submitted by the user for the role.
4
- *
5
- * @package Members
6
- * @subpackage Admin
7
- */
8
-
9
- /* Get the current role object to edit. */
10
- $role = get_role( esc_attr( strip_tags( $_GET['role'] ) ) );
11
-
12
- /* Get all the capabilities */
13
- $capabilities = members_get_capabilities();
14
-
15
- /* Check if the current user can edit roles and the form has been submitted. */
16
- if ( current_user_can( 'edit_roles' ) && ( isset( $_POST['role-caps'] ) || isset( $_POST['new-cap'] ) ) ) {
17
-
18
- /* Verify the nonce. */
19
- check_admin_referer( members_get_nonce( 'edit-roles' ) );
20
-
21
- /* Set the $role_updated variable to true. */
22
- $role_updated = true;
23
-
24
- /* Loop through all available capabilities. */
25
- foreach ( $capabilities as $cap ) {
26
-
27
- /* Get the posted capability. */
28
- $posted_cap = isset( $_POST['role-caps']["{$role->name}-{$cap}"] ) ? $_POST['role-caps']["{$role->name}-{$cap}"] : false;
29
-
30
- /* If the role doesn't have the capability and it was selected, add it. */
31
- if ( !$role->has_cap( $cap ) && !empty( $posted_cap ) )
32
- $role->add_cap( $cap );
33
-
34
- /* If the role has the capability and it wasn't selected, remove it. */
35
- elseif ( $role->has_cap( $cap ) && empty( $posted_cap ) )
36
- $role->remove_cap( $cap );
37
-
38
- } // End loop through existing capabilities
39
-
40
- /* If new caps were added and are in an array, we need to add them. */
41
- if ( !empty( $_POST['new-cap'] ) && is_array( $_POST['new-cap'] ) ) {
42
-
43
- /* Loop through each new capability from the edit roles form. */
44
- foreach ( $_POST['new-cap'] as $new_cap ) {
45
-
46
- /* Sanitize the new capability to remove any unwanted characters. */
47
- $new_cap = sanitize_key( $new_cap );
48
-
49
- /* Run one more check to make sure the new capability exists. Add the cap to the role. */
50
- if ( !empty( $new_cap ) && !$role->has_cap( $new_cap ) )
51
- $role->add_cap( $new_cap );
52
-
53
- } // End loop through new capabilities
54
-
55
- /* If new caps are added, we need to reset the $capabilities array. */
56
- $capabilities = members_get_capabilities();
57
-
58
- } // End check for new capabilities
59
-
60
- } // End check for form submission ?>
61
-
62
- <div class="wrap">
63
-
64
- <?php screen_icon(); ?>
65
-
66
- <h2>
67
- <?php _e( 'Edit Role', 'members' ); ?>
68
- <?php if ( current_user_can( 'create_roles' ) ) echo '<a href="' . admin_url( 'users.php?page=role-new' ) . '" class="add-new-h2">' . __( 'Add New', 'members' ) . '</a>'; ?>
69
- </h2>
70
-
71
- <?php if ( !empty( $role_updated ) ) echo '<div class="updated"><p><strong>' . __( 'Role updated.', 'members' ) . '</strong></p><p><a href="' . admin_url( 'users.php?page=roles' ) . '">' . __( '&larr; Back to Roles', 'members' ) . '</a></p></div>'; ?>
72
-
73
- <?php do_action( 'members_pre_edit_role_form' ); //Available pre-form hook for displaying messages. ?>
74
-
75
- <div id="poststuff">
76
-
77
- <form name="form0" method="post" action="<?php echo admin_url( esc_url( "users.php?page=roles&amp;action=edit&amp;role={$role->name}" ) ); ?>">
78
-
79
- <?php wp_nonce_field( members_get_nonce( 'edit-roles' ) ); ?>
80
-
81
- <table class="form-table">
82
-
83
- <tr>
84
- <th>
85
- <?php _e( 'Role Name', 'members' ); ?>
86
- </th>
87
- <td>
88
- <input type="text" disabled="disabled" readonly="readonly" value="<?php echo esc_attr( $role->name ); ?>" />
89
- </td>
90
- </tr>
91
-
92
- <tr>
93
- <th>
94
- <?php _e( 'Capabilities', 'members' ); ?>
95
- </th>
96
-
97
- <td>
98
- <?php $i = -1; foreach ( $capabilities as $cap ) { ?>
99
-
100
- <div class="members-role-checkbox <?php if ( ++$i % 3 == 0 ) echo 'clear'; ?>">
101
- <?php $has_cap = ( $role->has_cap( $cap ) ? true : false ); ?>
102
- <input type="checkbox" name="<?php echo esc_attr( "role-caps[{$role->name}-{$cap}]" ); ?>" id="<?php echo esc_attr( "{$role->name}-{$cap}" ); ?>" <?php checked( true, $has_cap ); ?> value="true" />
103
- <label for="<?php echo esc_attr( "{$role->name}-{$cap}" ); ?>" class="<?php echo ( $has_cap ? 'has-cap' : 'has-cap-not' ); ?>"><?php echo $cap; ?></label>
104
- </div>
105
-
106
- <?php } // Endforeach ?>
107
- </td>
108
- </tr>
109
-
110
- <tr>
111
- <th>
112
- <?php _e( 'Custom Capabilities', 'members' ); ?>
113
- </th>
114
- <td>
115
-
116
- <p class="members-add-new-cap-wrap clear hide-if-no-js">
117
- <a class="button-secondary" id="members-add-new-cap"><?php _e( 'Add New Capability', 'members' ); ?></a>
118
- </p>
119
- <p class="new-cap-holder">
120
- <input type="text" class="new-cap hide-if-js" name="new-cap[]" value="" size="20" />
121
- </p>
122
- </td>
123
- </tr>
124
-
125
- </table><!-- .form-table -->
126
-
127
- <?php submit_button( esc_attr__( 'Update Role', 'members' ) ); ?>
128
-
129
- </form>
130
-
131
- </div><!-- #poststuff -->
132
-
133
  </div><!-- .wrap -->
1
+ <?php
2
+ /**
3
+ * This file handles the display of the edit role form and the updates submitted by the user for the role.
4
+ *
5
+ * @package Members
6
+ * @subpackage Admin
7
+ */
8
+
9
+ /* Get the current role object to edit. */
10
+ $role = get_role( esc_attr( strip_tags( $_GET['role'] ) ) );
11
+
12
+ /* Get all the capabilities */
13
+ $capabilities = members_get_capabilities();
14
+
15
+ /* Check if the current user can edit roles and the form has been submitted. */
16
+ if ( current_user_can( 'edit_roles' ) && ( isset( $_POST['role-caps'] ) || isset( $_POST['new-cap'] ) ) ) {
17
+
18
+ /* Verify the nonce. */
19
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
20
+
21
+ /* Set the $role_updated variable to true. */
22
+ $role_updated = true;
23
+
24
+ /* Loop through all available capabilities. */
25
+ foreach ( $capabilities as $cap ) {
26
+
27
+ /* Get the posted capability. */
28
+ $posted_cap = isset( $_POST['role-caps']["{$role->name}-{$cap}"] ) ? $_POST['role-caps']["{$role->name}-{$cap}"] : false;
29
+
30
+ /* If the role doesn't have the capability and it was selected, add it. */
31
+ if ( !$role->has_cap( $cap ) && !empty( $posted_cap ) )
32
+ $role->add_cap( $cap );
33
+
34
+ /* If the role has the capability and it wasn't selected, remove it. */
35
+ elseif ( $role->has_cap( $cap ) && empty( $posted_cap ) )
36
+ $role->remove_cap( $cap );
37
+
38
+ } // End loop through existing capabilities
39
+
40
+ /* If new caps were added and are in an array, we need to add them. */
41
+ if ( !empty( $_POST['new-cap'] ) && is_array( $_POST['new-cap'] ) ) {
42
+
43
+ /* Loop through each new capability from the edit roles form. */
44
+ foreach ( $_POST['new-cap'] as $new_cap ) {
45
+
46
+ /* Sanitize the new capability to remove any unwanted characters. */
47
+ $new_cap = sanitize_key( $new_cap );
48
+
49
+ /* Run one more check to make sure the new capability exists. Add the cap to the role. */
50
+ if ( !empty( $new_cap ) && !$role->has_cap( $new_cap ) )
51
+ $role->add_cap( $new_cap );
52
+
53
+ } // End loop through new capabilities
54
+
55
+ /* If new caps are added, we need to reset the $capabilities array. */
56
+ $capabilities = members_get_capabilities();
57
+
58
+ } // End check for new capabilities
59
+
60
+ } // End check for form submission ?>
61
+
62
+ <div class="wrap">
63
+
64
+ <?php screen_icon(); ?>
65
+
66
+ <h2>
67
+ <?php _e( 'Edit Role', 'members' ); ?>
68
+ <?php if ( current_user_can( 'create_roles' ) ) echo '<a href="' . admin_url( 'users.php?page=role-new' ) . '" class="add-new-h2">' . __( 'Add New', 'members' ) . '</a>'; ?>
69
+ </h2>
70
+
71
+ <?php if ( !empty( $role_updated ) ) echo '<div class="updated"><p><strong>' . __( 'Role updated.', 'members' ) . '</strong></p><p><a href="' . admin_url( 'users.php?page=roles' ) . '">' . __( '&larr; Back to Roles', 'members' ) . '</a></p></div>'; ?>
72
+
73
+ <?php do_action( 'members_pre_edit_role_form' ); //Available pre-form hook for displaying messages. ?>
74
+
75
+ <div id="poststuff">
76
+
77
+ <form name="form0" method="post" action="<?php echo admin_url( esc_url( "users.php?page=roles&amp;action=edit&amp;role={$role->name}" ) ); ?>">
78
+
79
+ <?php wp_nonce_field( members_get_nonce( 'edit-roles' ) ); ?>
80
+
81
+ <table class="form-table">
82
+
83
+ <tr>
84
+ <th>
85
+ <?php _e( 'Role Name', 'members' ); ?>
86
+ </th>
87
+ <td>
88
+ <input type="text" disabled="disabled" readonly="readonly" value="<?php echo esc_attr( $role->name ); ?>" />
89
+ </td>
90
+ </tr>
91
+
92
+ <tr>
93
+ <th>
94
+ <?php _e( 'Capabilities', 'members' ); ?>
95
+ </th>
96
+
97
+ <td>
98
+ <?php $i = -1; foreach ( $capabilities as $cap ) { ?>
99
+
100
+ <div class="members-role-checkbox <?php if ( ++$i % 3 == 0 ) echo 'clear'; ?>">
101
+ <?php $has_cap = ( $role->has_cap( $cap ) ? true : false ); ?>
102
+ <input type="checkbox" name="<?php echo esc_attr( "role-caps[{$role->name}-{$cap}]" ); ?>" id="<?php echo esc_attr( "{$role->name}-{$cap}" ); ?>" <?php checked( true, $has_cap ); ?> value="true" />
103
+ <label for="<?php echo esc_attr( "{$role->name}-{$cap}" ); ?>" class="<?php echo ( $has_cap ? 'has-cap' : 'has-cap-not' ); ?>"><?php echo $cap; ?></label>
104
+ </div>
105
+
106
+ <?php } // Endforeach ?>
107
+ </td>
108
+ </tr>
109
+
110
+ <tr>
111
+ <th>
112
+ <?php _e( 'Custom Capabilities', 'members' ); ?>
113
+ </th>
114
+ <td>
115
+
116
+ <p class="members-add-new-cap-wrap clear hide-if-no-js">
117
+ <a class="button-secondary" id="members-add-new-cap"><?php _e( 'Add New Capability', 'members' ); ?></a>
118
+ </p>
119
+ <p class="new-cap-holder">
120
+ <input type="text" class="new-cap hide-if-js" name="new-cap[]" value="" size="20" />
121
+ </p>
122
+ </td>
123
+ </tr>
124
+
125
+ </table><!-- .form-table -->
126
+
127
+ <?php submit_button( esc_attr__( 'Update Role', 'members' ) ); ?>
128
+
129
+ </form>
130
+
131
+ </div><!-- #poststuff -->
132
+
133
  </div><!-- .wrap -->
admin/role-new.php CHANGED
@@ -1,108 +1,108 @@
1
- <?php
2
- /**
3
- * Displays and processes the 'Add New Role' page in the admin.
4
- *
5
- * @package Members
6
- * @subpackage Admin
7
- */
8
-
9
- /* Check if the current user can create roles and the form has been submitted. */
10
- if ( current_user_can( 'create_roles' ) && isset( $_POST['role-name'] ) && isset( $_POST['role-label'] ) ) {
11
-
12
- /* Verify the nonce. */
13
- check_admin_referer( members_get_nonce( 'new-role' ) );
14
-
15
- /* Check if any capabilities were selected. */
16
- if ( !empty( $_POST['capabilities'] ) && is_array( $_POST['capabilities'] ) )
17
- $new_role_caps = array_map( 'esc_attr', $_POST['capabilities'] );
18
-
19
- /* If no capabilities were selected, set the variable to null. */
20
- else
21
- $new_role_caps = null;
22
-
23
- /* Check if both a role name and role were submitted. */
24
- if ( !empty( $_POST['role-name'] ) && !empty( $_POST['role-label'] ) ) {
25
-
26
- /* Sanitize the new role, removing any unwanted characters. */
27
- $new_role_name = sanitize_key( $_POST['role-name'] );
28
-
29
- /* Sanitize the new role name/label. We just want to strip any tags here. */
30
- $new_role_label = strip_tags( $_POST['role-label'] );
31
-
32
- /* Add a new role with the data input. */
33
- if ( !empty( $new_role_name ) && !empty( $new_role_label ) )
34
- $new_role_added = add_role( $new_role_name, $new_role_label, $new_role_caps );
35
-
36
- } // End check for role and role name
37
-
38
- } // End check for form submit ?>
39
-
40
- <div class="wrap">
41
-
42
- <?php screen_icon(); ?>
43
-
44
- <h2><?php _e( 'Add New Role', 'members' ); ?></h2>
45
-
46
- <?php if ( !empty( $new_role_added ) ) members_admin_message( '', sprintf( __( 'The %s role has been created.', 'members' ), esc_html( $_POST['role-name'] ) ) ); ?>
47
-
48
- <?php do_action( 'members_pre_new_role_form' ); // Available action hook for displaying messages. ?>
49
-
50
- <div id="poststuff">
51
-
52
- <form name="form0" method="post" action="<?php echo admin_url( 'users.php?page=role-new' ); ?>">
53
-
54
- <?php wp_nonce_field( members_get_nonce( 'new-role' ) ); ?>
55
-
56
- <table class="form-table">
57
-
58
- <tr>
59
- <th>
60
- <label for="role-name"><?php _e( 'Role Name', 'members' ); ?></label>
61
- </th>
62
- <td>
63
- <input type="text" id="role-name" name="role-name" value="" size="30" />
64
- <br />
65
- <label for="role-name"><?php _e( "<strong>Required:</strong> The role name should be unique and contain only alphanumeric characters and underscores.", 'members' ); ?></label>
66
- </td>
67
- </tr>
68
-
69
- <tr>
70
- <th>
71
- <label for="role-label"><?php _e( 'Role Label', 'members' ); ?></label>
72
- </th>
73
- <td>
74
- <input type="text" id="role-label" name="role-label" value="" size="30" />
75
- <br />
76
- <label for="role-label"><?php _e( '<strong>Required:</strong> The role label is used to represent your role in the WordPress admin.', 'members' ); ?></label>
77
- </td>
78
- </tr>
79
-
80
- <tr>
81
- <th>
82
- <?php _e( 'Role Capabilities', 'members' ); ?>
83
- </th>
84
- <td>
85
- <p>
86
- <?php _e( '<strong>Optional:</strong> Select the capabilities this role should have. These may be updated later.', 'members' ); ?>
87
- </p>
88
-
89
- <?php $i = -1; foreach ( members_get_capabilities() as $cap ) { ?>
90
-
91
- <div class="members-role-checkbox <?php if ( ++$i % 3 == 0 ) echo 'clear'; ?>">
92
- <input type="checkbox" name="capabilities[<?php echo esc_attr( $cap ); ?>]" id="capabilities-<?php echo esc_attr( $cap ); ?>" <?php checked( true, in_array( $cap, members_new_role_default_capabilities() ) ); ?> value="true" />
93
- <label for="capabilities-<?php echo esc_attr( $cap ); ?>" class="<?php echo ( in_array( $cap, members_new_role_default_capabilities() ) ? 'has-cap' : 'has-cap-not' ); ?>"><?php echo $cap; ?></label>
94
- </div>
95
-
96
- <?php } // Endforeach ?>
97
- </td>
98
- </tr>
99
-
100
- </table><!-- .form-table -->
101
-
102
- <?php submit_button( esc_attr__( 'Add Role', 'members' ) ); ?>
103
-
104
- </form>
105
-
106
- </div><!-- #poststuff -->
107
-
108
  </div><!-- .poststuff -->
1
+ <?php
2
+ /**
3
+ * Displays and processes the 'Add New Role' page in the admin.
4
+ *
5
+ * @package Members
6
+ * @subpackage Admin
7
+ */
8
+
9
+ /* Check if the current user can create roles and the form has been submitted. */
10
+ if ( current_user_can( 'create_roles' ) && isset( $_POST['role-name'] ) && isset( $_POST['role-label'] ) ) {
11
+
12
+ /* Verify the nonce. */
13
+ check_admin_referer( members_get_nonce( 'new-role' ) );
14
+
15
+ /* Check if any capabilities were selected. */
16
+ if ( !empty( $_POST['capabilities'] ) && is_array( $_POST['capabilities'] ) )
17
+ $new_role_caps = array_map( 'esc_attr', $_POST['capabilities'] );
18
+
19
+ /* If no capabilities were selected, set the variable to null. */
20
+ else
21
+ $new_role_caps = null;
22
+
23
+ /* Check if both a role name and role were submitted. */
24
+ if ( !empty( $_POST['role-name'] ) && !empty( $_POST['role-label'] ) ) {
25
+
26
+ /* Sanitize the new role, removing any unwanted characters. */
27
+ $new_role_name = sanitize_key( $_POST['role-name'] );
28
+
29
+ /* Sanitize the new role name/label. We just want to strip any tags here. */
30
+ $new_role_label = strip_tags( $_POST['role-label'] );
31
+
32
+ /* Add a new role with the data input. */
33
+ if ( !empty( $new_role_name ) && !empty( $new_role_label ) )
34
+ $new_role_added = add_role( $new_role_name, $new_role_label, $new_role_caps );
35
+
36
+ } // End check for role and role name
37
+
38
+ } // End check for form submit ?>
39
+
40
+ <div class="wrap">
41
+
42
+ <?php screen_icon(); ?>
43
+
44
+ <h2><?php _e( 'Add New Role', 'members' ); ?></h2>
45
+
46
+ <?php if ( !empty( $new_role_added ) ) members_admin_message( '', sprintf( __( 'The %s role has been created.', 'members' ), esc_html( $_POST['role-name'] ) ) ); ?>
47
+
48
+ <?php do_action( 'members_pre_new_role_form' ); // Available action hook for displaying messages. ?>
49
+
50
+ <div id="poststuff">
51
+
52
+ <form name="form0" method="post" action="<?php echo admin_url( 'users.php?page=role-new' ); ?>">
53
+
54
+ <?php wp_nonce_field( members_get_nonce( 'new-role' ) ); ?>
55
+
56
+ <table class="form-table">
57
+
58
+ <tr>
59
+ <th>
60
+ <label for="role-name"><?php _e( 'Role Name', 'members' ); ?></label>
61
+ </th>
62
+ <td>
63
+ <input type="text" id="role-name" name="role-name" value="" size="30" />
64
+ <br />
65
+ <label for="role-name"><?php _e( "<strong>Required:</strong> The role name should be unique and contain only alphanumeric characters and underscores.", 'members' ); ?></label>
66
+ </td>
67
+ </tr>
68
+
69
+ <tr>
70
+ <th>
71
+ <label for="role-label"><?php _e( 'Role Label', 'members' ); ?></label>
72
+ </th>
73
+ <td>
74
+ <input type="text" id="role-label" name="role-label" value="" size="30" />
75
+ <br />
76
+ <label for="role-label"><?php _e( '<strong>Required:</strong> The role label is used to represent your role in the WordPress admin.', 'members' ); ?></label>
77
+ </td>
78
+ </tr>
79
+
80
+ <tr>
81
+ <th>
82
+ <?php _e( 'Role Capabilities', 'members' ); ?>
83
+ </th>
84
+ <td>
85
+ <p>
86
+ <?php _e( '<strong>Optional:</strong> Select the capabilities this role should have. These may be updated later.', 'members' ); ?>
87
+ </p>
88
+
89
+ <?php $i = -1; foreach ( members_get_capabilities() as $cap ) { ?>
90
+
91
+ <div class="members-role-checkbox <?php if ( ++$i % 3 == 0 ) echo 'clear'; ?>">
92
+ <input type="checkbox" name="capabilities[<?php echo esc_attr( $cap ); ?>]" id="capabilities-<?php echo esc_attr( $cap ); ?>" <?php checked( true, in_array( $cap, members_new_role_default_capabilities() ) ); ?> value="true" />
93
+ <label for="capabilities-<?php echo esc_attr( $cap ); ?>" class="<?php echo ( in_array( $cap, members_new_role_default_capabilities() ) ? 'has-cap' : 'has-cap-not' ); ?>"><?php echo $cap; ?></label>
94
+ </div>
95
+
96
+ <?php } // Endforeach ?>
97
+ </td>
98
+ </tr>
99
+
100
+ </table><!-- .form-table -->
101
+
102
+ <?php submit_button( esc_attr__( 'Add Role', 'members' ) ); ?>
103
+
104
+ </form>
105
+
106
+ </div><!-- #poststuff -->
107
+
108
  </div><!-- .poststuff -->
admin/roles-list-table.php CHANGED
@@ -1,241 +1,238 @@
1
- <?php
2
- /**
3
- * This file handles the display of the 'Roles' page in the admin.
4
- *
5
- * @package Members
6
- * @subpackage Admin
7
- */
8
-
9
- /* Get the global $wp_roles variable. */
10
- global $wp_roles;
11
-
12
- /* Get a count of all the roles available. */
13
- $roles_count = members_count_roles();
14
-
15
- /* Get all of the active and inactive roles. */
16
- $active_roles = members_get_active_roles();
17
- $inactive_roles = members_get_inactive_roles();
18
-
19
- /* Get a count of the active and inactive roles. */
20
- $active_roles_count = count( $active_roles );
21
- $inactive_roles_count = count( $inactive_roles );
22
-
23
- /* If we're viewing 'active' or 'inactive' roles. */
24
- if ( !empty( $_GET['role_status'] ) && in_array( $_GET['role_status'], array( 'active', 'inactive' ) ) ) {
25
-
26
- /* Get the role status ('active' or 'inactive'). */
27
- $role_status = esc_attr( $_GET['role_status'] );
28
-
29
- /* Set up the roles array. */
30
- $list_roles = ( ( 'active' == $role_status ) ? $active_roles : $inactive_roles );
31
-
32
- /* Set the current page URL. */
33
- $current_page = admin_url( "users.php?page=roles&role_status={$role_status}" );
34
- }
35
-
36
- /* If viewing the regular role list table. */
37
- else {
38
-
39
- /* Get the role status ('active' or 'inactive'). */
40
- $role_status = 'all';
41
-
42
- /* Set up the roles array. */
43
- $list_roles = $wp_roles->role_names;
44
-
45
- /* Set the current page URL. */
46
- $current_page = $current_page = admin_url( 'users.php?page=roles' );
47
- }
48
-
49
- /* Sort the roles array into alphabetical order. */
50
- ksort( $list_roles ); ?>
51
-
52
- <div class="wrap">
53
-
54
- <?php screen_icon(); ?>
55
-
56
- <h2>
57
- <?php _e( 'Roles', 'members' ); ?>
58
- <?php if ( current_user_can( 'create_roles' ) ) echo '<a href="' . admin_url( 'users.php?page=role-new' ) . '" class="add-new-h2">' . __( 'Add New', 'members' ) . '</a>'; ?>
59
- </h2>
60
-
61
- <?php do_action( 'members_pre_edit_roles_form' ); // Available action hook for displaying messages. ?>
62
-
63
- <div id="poststuff">
64
-
65
- <form id="roles" action="<?php echo $current_page; ?>" method="post">
66
-
67
- <?php wp_nonce_field( members_get_nonce( 'edit-roles' ) ); ?>
68
-
69
- <ul class="subsubsub">
70
- <li><a <?php if ( 'all' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles' ) ); ?>"><?php _e( 'All', 'members' ); ?> <span class="count">(<span id="all_count"><?php echo $roles_count; ?></span>)</span></a> | </li>
71
- <li><a <?php if ( 'active' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&amp;role_status=active' ) ); ?>"><?php _e( 'Has Users', 'members' ); ?> <span class="count">(<span id="active_count"><?php echo $active_roles_count; ?></span>)</span></a> | </li>
72
- <li><a <?php if ( 'inactive' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&amp;role_status=inactive' ) ); ?>"><?php _e( 'No Users', 'members' ); ?> <span class="count">(<span id="inactive_count"><?php echo $inactive_roles_count; ?></span>)</span></a></li>
73
- </ul><!-- .subsubsub -->
74
-
75
- <div class="tablenav">
76
-
77
- <?php if ( current_user_can( 'delete_roles' ) ) { ?>
78
-
79
- <div class="alignleft actions">
80
-
81
- <select name="bulk-action">
82
-
83
- <option value="" selected="selected"><?php _e( 'Bulk Actions', 'members' ); ?></option>
84
-
85
- <?php if ( current_user_can( 'delete_roles' ) ) { ?>
86
- <option value="delete"><?php esc_html_e( 'Delete', 'members' ); ?></option>
87
- <?php } ?>
88
-
89
- </select>
90
-
91
- <?php submit_button( esc_attr__( 'Apply', 'members' ), 'button-secondary action', 'roles-bulk-action', false ); ?>
92
-
93
- </div><!-- .alignleft .actions -->
94
-
95
- <?php } // End cap check ?>
96
-
97
- <div class='tablenav-pages one-page'>
98
- <span class="displaying-num"><?php printf( _n( '%s item', '%s items', count( $list_roles ), 'members' ), count( $list_roles ) ); ?></span>
99
- </div>
100
-
101
- <br class="clear" />
102
-
103
- </div><!-- .tablenav -->
104
-
105
- <table class="widefat fixed" cellspacing="0">
106
-
107
- <thead>
108
- <tr>
109
- <th class='check-column'><input type='checkbox' /></th>
110
- <th class='name-column'><?php _e( 'Role Label', 'members' ); ?></th>
111
- <th><?php _e( 'Role Name', 'members' ); ?></th>
112
- <th><?php _e( 'Users', 'members' ); ?></th>
113
- <th><?php _e( 'Capabilities', 'members' ); ?></th>
114
- </tr>
115
- </thead>
116
-
117
- <tfoot>
118
- <tr>
119
- <th class='check-column'><input type='checkbox' /></th>
120
- <th class='name-column'><?php _e( 'Role Label', 'members' ); ?></th>
121
- <th><?php _e( 'Role', 'members' ); ?></th>
122
- <th><?php _e( 'Users', 'members' ); ?></th>
123
- <th><?php _e( 'Capabilities', 'members' ); ?></th>
124
- </tr>
125
- </tfoot>
126
-
127
- <tbody id="users" class="list:user user-list plugins">
128
-
129
- <?php foreach ( $list_roles as $role => $name ) { ?>
130
-
131
- <tr valign="top" class="<?php echo ( isset( $active_roles[$role] ) ? 'active' : 'inactive' ); ?>">
132
-
133
- <th class="manage-column column-cb check-column">
134
-
135
- <?php if ( ( is_multisite() && is_super_admin() && $role !== get_option( 'default_role' ) ) || ( !current_user_can( $role ) && $role !== get_option( 'default_role' ) ) ) { ?>
136
- <input type="checkbox" name="roles[<?php echo esc_attr( $role ); ?>]" id="<?php echo esc_attr( $role ); ?>" value="<?php echo esc_attr( $role ); ?>" />
137
- <?php } ?>
138
-
139
- </th><!-- .manage-column .column-cb .check-column -->
140
-
141
- <td class="plugin-title">
142
-
143
- <?php $edit_link = admin_url( wp_nonce_url( "users.php?page=roles&amp;action=edit&amp;role={$role}", members_get_nonce( 'edit-roles' ) ) ); ?>
144
-
145
- <?php if ( current_user_can( 'edit_roles' ) ) { ?>
146
- <a href="<?php echo esc_url( $edit_link ); ?>" title="<?php printf( esc_attr__( 'Edit the %s role', 'members' ), $name ); ?>"><strong><?php echo esc_html( $name ); ?></strong></a>
147
- <?php } else { ?>
148
- <strong><?php echo esc_html( $name ); ?></strong>
149
- <?php } ?>
150
-
151
- <div class="row-actions">
152
-
153
- <?php if ( current_user_can( 'edit_roles' ) ) { ?>
154
- <a href="<?php echo esc_url( $edit_link ); ?>" title="<?php printf( esc_attr__( 'Edit the %s role', 'members' ), $name ); ?>"><?php _e( 'Edit', 'members' ); ?></a>
155
- <?php } ?>
156
-
157
- <?php if ( ( is_multisite() && is_super_admin() && $role !== get_option( 'default_role' ) ) || ( current_user_can( 'delete_roles' ) && $role !== get_option( 'default_role' ) && !current_user_can( $role ) ) ) { ?>
158
- | <a href="<?php echo admin_url( wp_nonce_url( "users.php?page=roles&amp;action=delete&amp;role={$role}", members_get_nonce( 'edit-roles' ) ) ); ?>" title="<?php printf( esc_attr__( 'Delete the %s role', 'members' ), $name ); ?>"><?php _e( 'Delete', 'members' ); ?></a>
159
- <?php } ?>
160
-
161
- <?php if ( current_user_can( 'manage_options' ) && $role == get_option( 'default_role' ) ) { ?>
162
- | <a href="<?php echo admin_url( ( 'options-general.php' ) ); ?>" title="<?php _e( 'Change default role', 'members' ); ?>"><?php _e( 'Default Role', 'members' ); ?></a>
163
- <?php } ?>
164
-
165
- <?php if ( current_user_can( 'list_users' ) ) { ?>
166
- | <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( esc_attr__( 'View all users with the %s role', 'members' ), $name ); ?>"><?php _e( 'View Users', 'members' ); ?></a>
167
- <?php } ?>
168
-
169
- </div><!-- .row-actions -->
170
-
171
- </td><!-- .plugin-title -->
172
-
173
- <td class="desc">
174
- <p>
175
- <?php echo $role; ?>
176
- </p>
177
- </td><!-- .desc -->
178
-
179
- <td class="desc">
180
- <p>
181
- <?php if ( current_user_can( 'list_users' ) ) { ?>
182
- <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( __( 'View all users with the %s role', 'members' ), $name ); ?>"><?php printf( _n( '%s User', '%s Users', members_get_role_user_count( $role ), 'members' ), members_get_role_user_count( $role ) ); ?></a>
183
- <?php } else { ?>
184
- <?php printf( _n( '%s User', '%s Users', members_get_role_user_count( $role ), 'members' ), members_get_role_user_count( $role ) ); ?>
185
- <?php } ?>
186
- </p>
187
- </td><!-- .desc -->
188
-
189
- <td class="desc">
190
- <p>
191
- <?php
192
- $role_object = get_role( $role );
193
- $cap_count = count( $role_object->capabilities );
194
- printf( _n( '%s Capability', '%s Capabilities', $cap_count, 'members' ), $cap_count );
195
- ?>
196
- </p>
197
- </td><!-- .desc -->
198
-
199
- </tr><!-- .active .inactive -->
200
-
201
- <?php } // End foreach ?>
202
-
203
- </tbody><!-- #users .list:user .user-list .plugins -->
204
-
205
- </table><!-- .widefat .fixed -->
206
-
207
- <div class="tablenav">
208
-
209
- <?php if ( current_user_can( 'delete_roles' ) ) { ?>
210
-
211
- <div class="alignleft actions">
212
-
213
- <select name="bulk-action-2">
214
-
215
- <option value="" selected="selected"><?php _e( 'Bulk Actions', 'members' ); ?></option>
216
-
217
- <?php if ( current_user_can( 'delete_roles' ) ) { ?>
218
- <option value="delete"><?php _e( 'Delete', 'members' ); ?></option>
219
- <?php } ?>
220
-
221
- </select>
222
-
223
- <?php submit_button( esc_attr__( 'Apply', 'members' ), 'button-secondary action', 'roles-bulk-action-2', false ); ?>
224
-
225
- </div><!-- .alignleft .actions -->
226
-
227
- <?php } // End cap check ?>
228
-
229
- <div class='tablenav-pages one-page'>
230
- <span class="displaying-num"><?php printf( _n( '%s item', '%s items', count( $list_roles ), 'members' ), count( $list_roles ) ); ?></span>
231
- </div>
232
-
233
- <br class="clear" />
234
-
235
- </div><!-- .tablenav -->
236
-
237
- </form><!-- #roles -->
238
-
239
- </div><!-- #poststuff -->
240
-
241
  </div><!-- .wrap -->
1
+ <?php
2
+ /**
3
+ * This file handles the display of the 'Roles' page in the admin.
4
+ *
5
+ * @package Members
6
+ * @subpackage Admin
7
+ */
8
+
9
+ /* Get a count of all the roles available. */
10
+ $roles_count = members_count_roles();
11
+
12
+ /* Get all of the active and inactive roles. */
13
+ $active_roles = members_get_active_roles();
14
+ $inactive_roles = members_get_inactive_roles();
15
+
16
+ /* Get a count of the active and inactive roles. */
17
+ $active_roles_count = count( $active_roles );
18
+ $inactive_roles_count = count( $inactive_roles );
19
+
20
+ /* If we're viewing 'active' or 'inactive' roles. */
21
+ if ( !empty( $_GET['role_status'] ) && in_array( $_GET['role_status'], array( 'active', 'inactive' ) ) ) {
22
+
23
+ /* Get the role status ('active' or 'inactive'). */
24
+ $role_status = esc_attr( $_GET['role_status'] );
25
+
26
+ /* Set up the roles array. */
27
+ $list_roles = ( ( 'active' == $role_status ) ? $active_roles : $inactive_roles );
28
+
29
+ /* Set the current page URL. */
30
+ $current_page = admin_url( "users.php?page=roles&role_status={$role_status}" );
31
+ }
32
+
33
+ /* If viewing the regular role list table. */
34
+ else {
35
+
36
+ /* Get the role status ('active' or 'inactive'). */
37
+ $role_status = 'all';
38
+
39
+ /* Set up the roles array. */
40
+ $list_roles = array_merge( $active_roles, $inactive_roles );
41
+
42
+ /* Set the current page URL. */
43
+ $current_page = $current_page = admin_url( 'users.php?page=roles' );
44
+ }
45
+
46
+ /* Sort the roles array into alphabetical order. */
47
+ ksort( $list_roles ); ?>
48
+
49
+ <div class="wrap">
50
+
51
+ <?php screen_icon(); ?>
52
+
53
+ <h2>
54
+ <?php _e( 'Roles', 'members' ); ?>
55
+ <?php if ( current_user_can( 'create_roles' ) ) echo '<a href="' . admin_url( 'users.php?page=role-new' ) . '" class="add-new-h2">' . __( 'Add New', 'members' ) . '</a>'; ?>
56
+ </h2>
57
+
58
+ <?php do_action( 'members_pre_edit_roles_form' ); // Available action hook for displaying messages. ?>
59
+
60
+ <div id="poststuff">
61
+
62
+ <form id="roles" action="<?php echo $current_page; ?>" method="post">
63
+
64
+ <?php wp_nonce_field( members_get_nonce( 'edit-roles' ) ); ?>
65
+
66
+ <ul class="subsubsub">
67
+ <li><a <?php if ( 'all' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles' ) ); ?>"><?php _e( 'All', 'members' ); ?> <span class="count">(<span id="all_count"><?php echo $roles_count; ?></span>)</span></a> | </li>
68
+ <li><a <?php if ( 'active' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&amp;role_status=active' ) ); ?>"><?php _e( 'Has Users', 'members' ); ?> <span class="count">(<span id="active_count"><?php echo $active_roles_count; ?></span>)</span></a> | </li>
69
+ <li><a <?php if ( 'inactive' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&amp;role_status=inactive' ) ); ?>"><?php _e( 'No Users', 'members' ); ?> <span class="count">(<span id="inactive_count"><?php echo $inactive_roles_count; ?></span>)</span></a></li>
70
+ </ul><!-- .subsubsub -->
71
+
72
+ <div class="tablenav">
73
+
74
+ <?php if ( current_user_can( 'delete_roles' ) ) { ?>
75
+
76
+ <div class="alignleft actions">
77
+
78
+ <select name="bulk-action">
79
+
80
+ <option value="" selected="selected"><?php _e( 'Bulk Actions', 'members' ); ?></option>
81
+
82
+ <?php if ( current_user_can( 'delete_roles' ) ) { ?>
83
+ <option value="delete"><?php esc_html_e( 'Delete', 'members' ); ?></option>
84
+ <?php } ?>
85
+
86
+ </select>
87
+
88
+ <?php submit_button( esc_attr__( 'Apply', 'members' ), 'button-secondary action', 'roles-bulk-action', false ); ?>
89
+
90
+ </div><!-- .alignleft .actions -->
91
+
92
+ <?php } // End cap check ?>
93
+
94
+ <div class='tablenav-pages one-page'>
95
+ <span class="displaying-num"><?php printf( _n( '%s item', '%s items', count( $list_roles ), 'members' ), count( $list_roles ) ); ?></span>
96
+ </div>
97
+
98
+ <br class="clear" />
99
+
100
+ </div><!-- .tablenav -->
101
+
102
+ <table class="widefat fixed" cellspacing="0">
103
+
104
+ <thead>
105
+ <tr>
106
+ <th class='check-column'><input type='checkbox' /></th>
107
+ <th class='name-column'><?php _e( 'Role Label', 'members' ); ?></th>
108
+ <th><?php _e( 'Role Name', 'members' ); ?></th>
109
+ <th><?php _e( 'Users', 'members' ); ?></th>
110
+ <th><?php _e( 'Capabilities', 'members' ); ?></th>
111
+ </tr>
112
+ </thead>
113
+
114
+ <tfoot>
115
+ <tr>
116
+ <th class='check-column'><input type='checkbox' /></th>
117
+ <th class='name-column'><?php _e( 'Role Label', 'members' ); ?></th>
118
+ <th><?php _e( 'Role', 'members' ); ?></th>
119
+ <th><?php _e( 'Users', 'members' ); ?></th>
120
+ <th><?php _e( 'Capabilities', 'members' ); ?></th>
121
+ </tr>
122
+ </tfoot>
123
+
124
+ <tbody id="users" class="list:user user-list plugins">
125
+
126
+ <?php foreach ( $list_roles as $role => $name ) { ?>
127
+
128
+ <tr valign="top" class="<?php echo ( isset( $active_roles[$role] ) ? 'active' : 'inactive' ); ?>">
129
+
130
+ <th class="manage-column column-cb check-column">
131
+
132
+ <?php if ( ( is_multisite() && is_super_admin() && $role !== get_option( 'default_role' ) ) || ( !current_user_can( $role ) && $role !== get_option( 'default_role' ) ) ) { ?>
133
+ <input type="checkbox" name="roles[<?php echo esc_attr( $role ); ?>]" id="<?php echo esc_attr( $role ); ?>" value="<?php echo esc_attr( $role ); ?>" />
134
+ <?php } ?>
135
+
136
+ </th><!-- .manage-column .column-cb .check-column -->
137
+
138
+ <td class="plugin-title">
139
+
140
+ <?php $edit_link = admin_url( wp_nonce_url( "users.php?page=roles&amp;action=edit&amp;role={$role}", members_get_nonce( 'edit-roles' ) ) ); ?>
141
+
142
+ <?php if ( current_user_can( 'edit_roles' ) ) { ?>
143
+ <a href="<?php echo esc_url( $edit_link ); ?>" title="<?php printf( esc_attr__( 'Edit the %s role', 'members' ), $name ); ?>"><strong><?php echo esc_html( $name ); ?></strong></a>
144
+ <?php } else { ?>
145
+ <strong><?php echo esc_html( $name ); ?></strong>
146
+ <?php } ?>
147
+
148
+ <div class="row-actions">
149
+
150
+ <?php if ( current_user_can( 'edit_roles' ) ) { ?>
151
+ <a href="<?php echo esc_url( $edit_link ); ?>" title="<?php printf( esc_attr__( 'Edit the %s role', 'members' ), $name ); ?>"><?php _e( 'Edit', 'members' ); ?></a>
152
+ <?php } ?>
153
+
154
+ <?php if ( ( is_multisite() && is_super_admin() && $role !== get_option( 'default_role' ) ) || ( current_user_can( 'delete_roles' ) && $role !== get_option( 'default_role' ) && !current_user_can( $role ) ) ) { ?>
155
+ | <a href="<?php echo admin_url( wp_nonce_url( "users.php?page=roles&amp;action=delete&amp;role={$role}", members_get_nonce( 'edit-roles' ) ) ); ?>" title="<?php printf( esc_attr__( 'Delete the %s role', 'members' ), $name ); ?>"><?php _e( 'Delete', 'members' ); ?></a>
156
+ <?php } ?>
157
+
158
+ <?php if ( current_user_can( 'manage_options' ) && $role == get_option( 'default_role' ) ) { ?>
159
+ | <a href="<?php echo admin_url( ( 'options-general.php' ) ); ?>" title="<?php _e( 'Change default role', 'members' ); ?>"><?php _e( 'Default Role', 'members' ); ?></a>
160
+ <?php } ?>
161
+
162
+ <?php if ( current_user_can( 'list_users' ) ) { ?>
163
+ | <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( esc_attr__( 'View all users with the %s role', 'members' ), $name ); ?>"><?php _e( 'View Users', 'members' ); ?></a>
164
+ <?php } ?>
165
+
166
+ </div><!-- .row-actions -->
167
+
168
+ </td><!-- .plugin-title -->
169
+
170
+ <td class="desc">
171
+ <p>
172
+ <?php echo $role; ?>
173
+ </p>
174
+ </td><!-- .desc -->
175
+
176
+ <td class="desc">
177
+ <p>
178
+ <?php if ( current_user_can( 'list_users' ) ) { ?>
179
+ <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( __( 'View all users with the %s role', 'members' ), $name ); ?>"><?php printf( _n( '%s User', '%s Users', members_get_role_user_count( $role ), 'members' ), members_get_role_user_count( $role ) ); ?></a>
180
+ <?php } else { ?>
181
+ <?php printf( _n( '%s User', '%s Users', members_get_role_user_count( $role ), 'members' ), members_get_role_user_count( $role ) ); ?>
182
+ <?php } ?>
183
+ </p>
184
+ </td><!-- .desc -->
185
+
186
+ <td class="desc">
187
+ <p>
188
+ <?php
189
+ $role_object = get_role( $role );
190
+ $cap_count = count( $role_object->capabilities );
191
+ printf( _n( '%s Capability', '%s Capabilities', $cap_count, 'members' ), $cap_count );
192
+ ?>
193
+ </p>
194
+ </td><!-- .desc -->
195
+
196
+ </tr><!-- .active .inactive -->
197
+
198
+ <?php } // End foreach ?>
199
+
200
+ </tbody><!-- #users .list:user .user-list .plugins -->
201
+
202
+ </table><!-- .widefat .fixed -->
203
+
204
+ <div class="tablenav">
205
+
206
+ <?php if ( current_user_can( 'delete_roles' ) ) { ?>
207
+
208
+ <div class="alignleft actions">
209
+
210
+ <select name="bulk-action-2">
211
+
212
+ <option value="" selected="selected"><?php _e( 'Bulk Actions', 'members' ); ?></option>
213
+
214
+ <?php if ( current_user_can( 'delete_roles' ) ) { ?>
215
+ <option value="delete"><?php _e( 'Delete', 'members' ); ?></option>
216
+ <?php } ?>
217
+
218
+ </select>
219
+
220
+ <?php submit_button( esc_attr__( 'Apply', 'members' ), 'button-secondary action', 'roles-bulk-action-2', false ); ?>
221
+
222
+ </div><!-- .alignleft .actions -->
223
+
224
+ <?php } // End cap check ?>
225
+
226
+ <div class='tablenav-pages one-page'>
227
+ <span class="displaying-num"><?php printf( _n( '%s item', '%s items', count( $list_roles ), 'members' ), count( $list_roles ) ); ?></span>
228
+ </div>
229
+
230
+ <br class="clear" />
231
+
232
+ </div><!-- .tablenav -->
233
+
234
+ </form><!-- #roles -->
235
+
236
+ </div><!-- #poststuff -->
237
+
 
 
 
238
  </div><!-- .wrap -->
admin/roles.php CHANGED
@@ -1,111 +1,111 @@
1
- <?php
2
- /**
3
- * Handles the 'Roles' page in the admin. This file checks $_POST and $_GET data to decide which file should
4
- * be loaded.
5
- *
6
- * @package Members
7
- * @subpackage Admin
8
- */
9
-
10
- /* Get the current action performed by the user. */
11
- $action = isset( $_REQUEST['action'] ) ? esc_attr( $_REQUEST['action'] ) : false;
12
-
13
- /* If the bulk delete has been selected. */
14
- if ( ( isset( $_POST['bulk-action'] ) && 'delete' == $_POST['bulk-action'] ) || ( isset( $_POST['bulk-action-2'] ) && 'delete' == $_POST['bulk-action-2'] ) )
15
- $action = 'bulk-delete';
16
-
17
- /* Choose which actions to perform and pages to load according to the $action variable. */
18
- switch( $action ) {
19
-
20
- /* If the bulk delete was selected. */
21
- case 'bulk-delete' :
22
-
23
- /* Get all roles checked for deletion. */
24
- $delete_roles = $_POST['roles'];
25
-
26
- /* If roles were selected, let's delete some roles. */
27
- if ( current_user_can( 'delete_roles' ) && is_array( $delete_roles ) ) {
28
-
29
- /* Verify the nonce. */
30
- check_admin_referer( members_get_nonce( 'edit-roles' ) );
31
-
32
- /* Send through roles deleted message. */
33
- add_action( 'members_pre_edit_roles_form', 'members_message_roles_deleted' );
34
-
35
- /* Loop through each of the selected roles. */
36
- foreach ( $delete_roles as $role ) {
37
-
38
- /* Get the role we want to delete. */
39
- $role = esc_attr( strip_tags( $role ) );
40
-
41
- /* Delete the role and move its users to the default role. */
42
- if ( !empty( $role ) )
43
- members_delete_role( $role );
44
- }
45
- }
46
-
47
- /* Load the edit roles page. */
48
- require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
49
-
50
- /* Break out of switch statement. */
51
- break;
52
-
53
- /* If a single role has been chosen to be deleted. */
54
- case 'delete' :
55
-
56
- /* Make sure the current user can delete roles. */
57
- if ( current_user_can( 'delete_roles' ) ) {
58
-
59
- /* Verify the referer. */
60
- check_admin_referer( members_get_nonce( 'edit-roles' ) );
61
-
62
- /* Send role deleted message. */
63
- add_action( 'members_pre_edit_roles_form', 'members_message_role_deleted' );
64
-
65
- /* Get the role we want to delete. */
66
- $role = esc_attr( strip_tags( $_GET['role'] ) );
67
-
68
- /* Delete the role and move its users to the default role. */
69
- if ( !empty( $role ) )
70
- members_delete_role( $role );
71
- }
72
-
73
- /* Load the edit roles page. */
74
- require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
75
-
76
- /* Break out of switch statement. */
77
- break;
78
-
79
- /* If a role has been selected to be edited. */
80
- case 'edit' :
81
-
82
- /* Make sure the current user can edit roles. */
83
- if ( current_user_can( 'edit_roles' ) ) {
84
-
85
- /* Verify the referer. */
86
- check_admin_referer( members_get_nonce( 'edit-roles' ) );
87
-
88
- /* Load the edit role form. */
89
- require_once( MEMBERS_ADMIN . 'role-edit.php' );
90
- }
91
-
92
- /* If the user can't edit roles. */
93
- else {
94
- /* Load the edit roles page.*/
95
- require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
96
- }
97
-
98
- /* Break out of switch statement. */
99
- break;
100
-
101
- /* The default page is the edit roles page. */
102
- default :
103
-
104
- /* Load the edit roles page.*/
105
- require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
106
-
107
- /* Break out of switch statement. */
108
- break;
109
- }
110
-
111
  ?>
1
+ <?php
2
+ /**
3
+ * Handles the 'Roles' page in the admin. This file checks $_POST and $_GET data to decide which file should
4
+ * be loaded.
5
+ *
6
+ * @package Members
7
+ * @subpackage Admin
8
+ */
9
+
10
+ /* Get the current action performed by the user. */
11
+ $action = isset( $_REQUEST['action'] ) ? esc_attr( $_REQUEST['action'] ) : false;
12
+
13
+ /* If the bulk delete has been selected. */
14
+ if ( ( isset( $_POST['bulk-action'] ) && 'delete' == $_POST['bulk-action'] ) || ( isset( $_POST['bulk-action-2'] ) && 'delete' == $_POST['bulk-action-2'] ) )
15
+ $action = 'bulk-delete';
16
+
17
+ /* Choose which actions to perform and pages to load according to the $action variable. */
18
+ switch( $action ) {
19
+
20
+ /* If the bulk delete was selected. */
21
+ case 'bulk-delete' :
22
+
23
+ /* Get all roles checked for deletion. */
24
+ $delete_roles = $_POST['roles'];
25
+
26
+ /* If roles were selected, let's delete some roles. */
27
+ if ( current_user_can( 'delete_roles' ) && is_array( $delete_roles ) ) {
28
+
29
+ /* Verify the nonce. */
30
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
31
+
32
+ /* Send through roles deleted message. */
33
+ add_action( 'members_pre_edit_roles_form', 'members_message_roles_deleted' );
34
+
35
+ /* Loop through each of the selected roles. */
36
+ foreach ( $delete_roles as $role ) {
37
+
38
+ /* Get the role we want to delete. */
39
+ $role = esc_attr( strip_tags( $role ) );
40
+
41
+ /* Delete the role and move its users to the default role. */
42
+ if ( !empty( $role ) )
43
+ members_delete_role( $role );
44
+ }
45
+ }
46
+
47
+ /* Load the edit roles page. */
48
+ require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
49
+
50
+ /* Break out of switch statement. */
51
+ break;
52
+
53
+ /* If a single role has been chosen to be deleted. */
54
+ case 'delete' :
55
+
56
+ /* Make sure the current user can delete roles. */
57
+ if ( current_user_can( 'delete_roles' ) ) {
58
+
59
+ /* Verify the referer. */
60
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
61
+
62
+ /* Send role deleted message. */
63
+ add_action( 'members_pre_edit_roles_form', 'members_message_role_deleted' );
64
+
65
+ /* Get the role we want to delete. */
66
+ $role = esc_attr( strip_tags( $_GET['role'] ) );
67
+
68
+ /* Delete the role and move its users to the default role. */
69
+ if ( !empty( $role ) )
70
+ members_delete_role( $role );
71
+ }
72
+
73
+ /* Load the edit roles page. */
74
+ require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
75
+
76
+ /* Break out of switch statement. */
77
+ break;
78
+
79
+ /* If a role has been selected to be edited. */
80
+ case 'edit' :
81
+
82
+ /* Make sure the current user can edit roles. */
83
+ if ( current_user_can( 'edit_roles' ) ) {
84
+
85
+ /* Verify the referer. */
86
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
87
+
88
+ /* Load the edit role form. */
89
+ require_once( MEMBERS_ADMIN . 'role-edit.php' );
90
+ }
91
+
92
+ /* If the user can't edit roles. */
93
+ else {
94
+ /* Load the edit roles page.*/
95
+ require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
96
+ }
97
+
98
+ /* Break out of switch statement. */
99
+ break;
100
+
101
+ /* The default page is the edit roles page. */
102
+ default :
103
+
104
+ /* Load the edit roles page.*/
105
+ require_once( MEMBERS_ADMIN . 'roles-list-table.php' );
106
+
107
+ /* Break out of switch statement. */
108
+ break;
109
+ }
110
+
111
  ?>
admin/settings.php CHANGED
@@ -1,180 +1,180 @@
1
- <?php
2
- /**
3
- * Creates and handles all of the functionality needed for the 'Members Settings' page in the WordPress admin.
4
- *
5
- * @package Members
6
- * @subpackage Admin
7
- */
8
-
9
- /* Set up the administration functionality. */
10
- add_action( 'admin_menu', 'members_settings_page_setup' );
11
-
12
- /**
13
- * Initializes and sets up the main plugin settings page.
14
- *
15
- * @since 0.2.0
16
- */
17
- function members_settings_page_setup() {
18
- global $members;
19
-
20
- /* If no settings are available, add the default settings to the database. */
21
- if ( false === get_option( 'members_settings' ) )
22
- add_option( 'members_settings', members_get_default_settings(), '', 'yes' );
23
-
24
- /* Register the plugin settings. */
25
- add_action( 'admin_init', 'members_register_settings' );
26
-
27
- /* Add Members settings page. */
28
- $members->settings_page = add_submenu_page( 'options-general.php', esc_attr__( 'Members Settings', 'members' ), esc_attr__( 'Members', 'members' ), apply_filters( 'members_settings_capability', 'manage_options' ), 'members-settings', 'members_settings_page' );
29
-
30
- /* Add media for the settings page. */
31
- add_action( 'admin_enqueue_scripts', 'members_admin_enqueue_style' );
32
- add_action( 'admin_enqueue_scripts', 'members_settings_page_media' );
33
- add_action( "admin_head-{$members->settings_page}", 'members_settings_page_scripts' );
34
-
35
- /* Load the meta boxes. */
36
- add_action( "load-{$members->settings_page}", 'members_settings_page_load_meta_boxes' );
37
-
38
- /* Create a hook for adding meta boxes. */
39
- add_action( "load-{$members->settings_page}", 'members_settings_page_add_meta_boxes' );
40
- }
41
-
42
- /**
43
- * Registers the Members plugin settings with WordPress.
44
- *
45
- * @since 0.2.0
46
- */
47
- function members_register_settings() {
48
- register_setting( 'members_settings', 'members_settings', 'members_validate_settings' );
49
- }
50
-
51
- /**
52
- * Executes the 'add_meta_boxes' action hook because WordPress doesn't fire this on custom admin pages.
53
- *
54
- * @since 0.2.0
55
- */
56
- function members_settings_page_add_meta_boxes() {
57
- global $members;
58
- $plugin_data = get_plugin_data( MEMBERS_DIR . 'members.php' );
59
- do_action( 'add_meta_boxes', $members->settings_page, $plugin_data );
60
- }
61
-
62
- /**
63
- * Loads the plugin settings page meta boxes.
64
- *
65
- * @since 0.2.0
66
- */
67
- function members_settings_page_load_meta_boxes() {
68
- require_once( MEMBERS_ADMIN . 'meta-box-plugin-settings.php' );
69
- }
70
-
71
- /**
72
- * Function for validating the settings input from the plugin settings page.
73
- *
74
- * @since 0.2.0
75
- */
76
- function members_validate_settings( $input ) {
77
-
78
- /* Check if the role manager is active. */
79
- $settings['role_manager'] = ( isset( $input['role_manager'] ) ? 1 : 0 );
80
-
81
- /* Check if the content permissions feature is active. */
82
- $settings['content_permissions'] = ( isset( $input['content_permissions'] ) ? 1 : 0 );
83
-
84
- /* Set the content permissions error text and kill evil scripts. */
85
- if ( current_user_can( 'unfiltered_html' ) && isset( $input['content_permissions_error'] ) )
86
- $settings['content_permissions_error'] = stripslashes( wp_filter_post_kses( addslashes( $input['content_permissions_error'] ) ) );
87
-
88
- elseif ( isset( $input['content_permissions_error'] ) )
89
- $settings['content_permissions_error'] = $input['content_permissions_error'];
90
-
91
- /* Check if the login form and users widgets are active. */
92
- $settings['login_form_widget'] = ( isset( $input['login_form_widget'] ) ? 1 : 0 );
93
- $settings['users_widget'] = ( isset( $input['users_widget'] ) ? 1 : 0 );
94
-
95
- /* Check if the private blog and private feed features are active. */
96
- $settings['private_blog'] = ( isset( $input['private_blog'] ) ? 1 : 0 );
97
- $settings['private_feed'] = ( isset( $input['private_feed'] ) ? 1 : 0 );
98
-
99
- /* Set the private feed error text and kill evil scripts. */
100
- if ( current_user_can( 'unfiltered_html' ) && isset( $input['private_feed_error'] ) )
101
- $settings['private_feed_error'] = stripslashes( wp_filter_post_kses( addslashes( $input['private_feed_error'] ) ) );
102
-
103
- elseif ( isset( $input['private_feed_error'] ) )
104
- $settings['private_feed_error'] = $input['private_feed_error'];
105
-
106
- /* Return the validated/sanitized settings. */
107
- return $settings;
108
- }
109
-
110
- /**
111
- * Displays the HTML and meta boxes for the plugin settings page.
112
- *
113
- * @since 0.2.0
114
- */
115
- function members_settings_page() {
116
- global $members; ?>
117
-
118
- <div class="wrap">
119
-
120
- <?php screen_icon(); ?>
121
-
122
- <h2><?php _e( 'Members Plugin Settings', 'members' ); ?></h2>
123
-
124
- <div id="poststuff">
125
-
126
- <form method="post" action="options.php">
127
-
128
- <?php settings_fields( 'members_settings' ); ?>
129
- <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
130
- <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
131
-
132
- <div class="metabox-holder">
133
- <div class="post-box-container column-1 normal"><?php do_meta_boxes( $members->settings_page, 'normal', null ); ?></div>
134
- <div class="post-box-container column-2 side"><?php do_meta_boxes( $members->settings_page, 'side', null ); ?></div>
135
- </div>
136
-
137
- <?php submit_button( esc_attr__( 'Update Settings', 'members' ) ); ?>
138
-
139
- </form>
140
-
141
- </div><!-- #poststuff -->
142
-
143
- </div><!-- .wrap --><?php
144
- }
145
-
146
- /**
147
- * Loads needed JavaScript files for handling the meta boxes on the settings page.
148
- *
149
- * @since 0.2.0
150
- * @param string $hook_suffix The hook for the current page in the admin.
151
- */
152
- function members_settings_page_media( $hook_suffix ) {
153
- global $members;
154
-
155
- if ( isset( $members->settings_page ) && $hook_suffix == $members->settings_page ) {
156
- wp_enqueue_script( 'common' );
157
- wp_enqueue_script( 'wp-lists' );
158
- wp_enqueue_script( 'postbox' );
159
- }
160
- }
161
-
162
- /**
163
- * Loads JavaScript for handling the open/closed state of each meta box.
164
- *
165
- * @since 0.2.0
166
- * @global $members The path of the settings page.
167
- */
168
- function members_settings_page_scripts() {
169
- global $members; ?>
170
- <script type="text/javascript">
171
- //<![CDATA[
172
- jQuery(document).ready( function($) {
173
- $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
174
- postboxes.add_postbox_toggles( '<?php echo $members->settings_page; ?>' );
175
- });
176
- //]]>
177
- </script>
178
- <?php }
179
-
180
  ?>
1
+ <?php
2
+ /**
3
+ * Creates and handles all of the functionality needed for the 'Members Settings' page in the WordPress admin.
4
+ *
5
+ * @package Members
6
+ * @subpackage Admin
7
+ */
8
+
9
+ /* Set up the administration functionality. */
10
+ add_action( 'admin_menu', 'members_settings_page_setup' );
11
+
12
+ /**
13
+ * Initializes and sets up the main plugin settings page.
14
+ *
15
+ * @since 0.2.0
16
+ */
17
+ function members_settings_page_setup() {
18
+ global $members;
19
+
20
+ /* If no settings are available, add the default settings to the database. */
21
+ if ( false === get_option( 'members_settings' ) )
22
+ add_option( 'members_settings', members_get_default_settings(), '', 'yes' );
23
+
24
+ /* Register the plugin settings. */
25
+ add_action( 'admin_init', 'members_register_settings' );
26
+
27
+ /* Add Members settings page. */
28
+ $members->settings_page = add_submenu_page( 'options-general.php', esc_attr__( 'Members Settings', 'members' ), esc_attr__( 'Members', 'members' ), apply_filters( 'members_settings_capability', 'manage_options' ), 'members-settings', 'members_settings_page' );
29
+
30
+ /* Add media for the settings page. */
31
+ add_action( 'admin_enqueue_scripts', 'members_admin_enqueue_style' );
32
+ add_action( 'admin_enqueue_scripts', 'members_settings_page_media' );
33
+ add_action( "admin_head-{$members->settings_page}", 'members_settings_page_scripts' );
34
+
35
+ /* Load the meta boxes. */
36
+ add_action( "load-{$members->settings_page}", 'members_settings_page_load_meta_boxes' );
37
+
38
+ /* Create a hook for adding meta boxes. */
39
+ add_action( "load-{$members->settings_page}", 'members_settings_page_add_meta_boxes' );
40
+ }
41
+
42
+ /**
43
+ * Registers the Members plugin settings with WordPress.
44
+ *
45
+ * @since 0.2.0
46
+ */
47
+ function members_register_settings() {
48
+ register_setting( 'members_settings', 'members_settings', 'members_validate_settings' );
49
+ }
50
+
51
+ /**
52
+ * Executes the 'add_meta_boxes' action hook because WordPress doesn't fire this on custom admin pages.
53
+ *
54
+ * @since 0.2.0
55
+ */
56
+ function members_settings_page_add_meta_boxes() {
57
+ global $members;
58
+ $plugin_data = get_plugin_data( MEMBERS_DIR . 'members.php' );
59
+ do_action( 'add_meta_boxes', $members->settings_page, $plugin_data );
60
+ }
61
+
62
+ /**
63
+ * Loads the plugin settings page meta boxes.
64
+ *
65
+ * @since 0.2.0
66
+ */
67
+ function members_settings_page_load_meta_boxes() {
68
+ require_once( MEMBERS_ADMIN . 'meta-box-plugin-settings.php' );
69
+ }
70
+
71
+ /**
72
+ * Function for validating the settings input from the plugin settings page.
73
+ *
74
+ * @since 0.2.0
75
+ */
76
+ function members_validate_settings( $input ) {
77
+
78
+ /* Check if the role manager is active. */
79
+ $settings['role_manager'] = ( isset( $input['role_manager'] ) ? 1 : 0 );
80
+
81
+ /* Check if the content permissions feature is active. */
82
+ $settings['content_permissions'] = ( isset( $input['content_permissions'] ) ? 1 : 0 );
83
+
84
+ /* Set the content permissions error text and kill evil scripts. */
85
+ if ( current_user_can( 'unfiltered_html' ) && isset( $input['content_permissions_error'] ) )
86
+ $settings['content_permissions_error'] = stripslashes( wp_filter_post_kses( addslashes( $input['content_permissions_error'] ) ) );
87
+
88
+ elseif ( isset( $input['content_permissions_error'] ) )
89
+ $settings['content_permissions_error'] = $input['content_permissions_error'];
90
+
91
+ /* Check if the login form and users widgets are active. */
92
+ $settings['login_form_widget'] = ( isset( $input['login_form_widget'] ) ? 1 : 0 );
93
+ $settings['users_widget'] = ( isset( $input['users_widget'] ) ? 1 : 0 );
94
+
95
+ /* Check if the private blog and private feed features are active. */
96
+ $settings['private_blog'] = ( isset( $input['private_blog'] ) ? 1 : 0 );
97
+ $settings['private_feed'] = ( isset( $input['private_feed'] ) ? 1 : 0 );
98
+
99
+ /* Set the private feed error text and kill evil scripts. */
100
+ if ( current_user_can( 'unfiltered_html' ) && isset( $input['private_feed_error'] ) )
101
+ $settings['private_feed_error'] = stripslashes( wp_filter_post_kses( addslashes( $input['private_feed_error'] ) ) );
102
+
103
+ elseif ( isset( $input['private_feed_error'] ) )
104
+ $settings['private_feed_error'] = $input['private_feed_error'];
105
+
106
+ /* Return the validated/sanitized settings. */
107
+ return $settings;
108
+ }
109
+
110
+ /**
111
+ * Displays the HTML and meta boxes for the plugin settings page.
112
+ *
113
+ * @since 0.2.0
114
+ */
115
+ function members_settings_page() {
116
+ global $members; ?>
117
+
118
+ <div class="wrap">
119
+
120
+ <?php screen_icon(); ?>
121
+
122
+ <h2><?php _e( 'Members Plugin Settings', 'members' ); ?></h2>
123
+
124
+ <div id="poststuff">
125
+
126
+ <form method="post" action="options.php">
127
+
128
+ <?php settings_fields( 'members_settings' ); ?>
129
+ <?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
130
+ <?php wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?>
131
+
132
+ <div class="metabox-holder">
133
+ <div class="post-box-container column-1 normal"><?php do_meta_boxes( $members->settings_page, 'normal', null ); ?></div>
134
+ <div class="post-box-container column-2 side"><?php do_meta_boxes( $members->settings_page, 'side', null ); ?></div>
135
+ </div>
136
+
137
+ <?php submit_button( esc_attr__( 'Update Settings', 'members' ) ); ?>
138
+
139
+ </form>
140
+
141
+ </div><!-- #poststuff -->
142
+
143
+ </div><!-- .wrap --><?php
144
+ }
145
+
146
+ /**
147
+ * Loads needed JavaScript files for handling the meta boxes on the settings page.
148
+ *
149
+ * @since 0.2.0
150
+ * @param string $hook_suffix The hook for the current page in the admin.
151
+ */
152
+ function members_settings_page_media( $hook_suffix ) {
153
+ global $members;
154
+
155
+ if ( isset( $members->settings_page ) && $hook_suffix == $members->settings_page ) {
156
+ wp_enqueue_script( 'common' );
157
+ wp_enqueue_script( 'wp-lists' );
158
+ wp_enqueue_script( 'postbox' );
159
+ }
160
+ }
161
+
162
+ /**
163
+ * Loads JavaScript for handling the open/closed state of each meta box.
164
+ *
165
+ * @since 0.2.0
166
+ * @global $members The path of the settings page.
167
+ */
168
+ function members_settings_page_scripts() {
169
+ global $members; ?>
170
+ <script type="text/javascript">
171
+ //<![CDATA[
172
+ jQuery(document).ready( function($) {
173
+ $('.if-js-closed').removeClass('if-js-closed').addClass('closed');
174
+ postboxes.add_postbox_toggles( '<?php echo $members->settings_page; ?>' );
175
+ });
176
+ //]]>
177
+ </script>
178
+ <?php }
179
+
180
  ?>
components/content-permissions/comments.php ADDED
@@ -0,0 +1 @@
 
1
+ <?php /* Life is sweet. */ ?>
components/content-permissions/content-permissions.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Content Permissions component was created so that access to specific parts of a site
4
+ * can be granted or denied. This is the component that gives truly fine-grained control over
5
+ * who can see what content on the front end of the site.
6
+ *
7
+ * Current features of the Content Permissions component:
8
+ * - Block content on a post-by-post (or page) basis according to user role.
9
+ *
10
+ * This feature set should eventually include the ability to block access to taxonomies and
11
+ * attachments to be truly useful.
12
+ *
13
+ * @todo Check and test feeds and filter if necessary.
14
+ * @todo Make sure comments aren't shown anywhere.
15
+ * @todo Remove pages from wp_list_pages() and wp_page_menu().
16
+ * @todo Cover ALL the bases. If something's restricted, make sure it stays that way.
17
+ *
18
+ * @package Members
19
+ * @subpackage Components
20
+ */
21
+
22
+ /**
23
+ * Adds the content permissions meta box to the post/page edit screen
24
+ * if the current user has the 'restrict_content' capability.
25
+ */
26
+ add_action( 'admin_menu', 'members_content_permissions_create_meta_box' );
27
+
28
+ /* Saves the content permissions metabox data to a custom field. */
29
+ add_action( 'save_post', 'members_content_permissions_save_meta', 1, 2 );
30
+
31
+ /* Add messages to the components form. */
32
+ add_action( 'members_pre_components_form', 'members_message_no_restrict_content' );
33
+
34
+ /* Filter the content and exerpts. */
35
+ add_filter( 'the_content', 'members_content_permissions_protect' );
36
+ add_filter( 'get_the_excerpt', 'members_content_permissions_protect' );
37
+ add_filter( 'the_excerpt', 'members_content_permissions_protect' );
38
+
39
+ /* Filter the comments template to make sure comments aren't shown to users without access. */
40
+ add_filter( 'comments_template', 'members_content_permissions_comments' );
41
+
42
+ /**
43
+ * Disables the comments template if the current post has been restricted, unless
44
+ * the user has the role needed to view the content of the post.
45
+ *
46
+ * @todo Allow users to override the "no comments" template if in their theme.
47
+ *
48
+ * @since 0.1
49
+ * @param $template string File URL of the template to display.
50
+ * @return $template string File URL of the template to display.
51
+ */
52
+ function members_content_permissions_comments( $template ) {
53
+ global $wp_query;
54
+
55
+ $roles = get_post_meta( $wp_query->post->ID, '_role', false );
56
+
57
+ if ( !empty( $roles ) && is_array( $roles ) ) {
58
+ foreach( $roles as $role ) {
59
+ if ( !is_feed() && ( current_user_can( $role ) || current_user_can( 'restrict_content' ) ) )
60
+ return $template;
61
+ }
62
+ $template = MEMBERS_COMPONENTS . '/content-permissions/comments.php';
63
+ }
64
+ return $template;
65
+ }
66
+
67
+ /**
68
+ * Displays a message if the Content Permissions component is active but no role
69
+ * has been given the capability of 'restrict_content', which is a required capability to
70
+ * use the component.
71
+ *
72
+ * @since 0.1
73
+ * @uses is_active_members_component() Checks if the content_permissions component is active.
74
+ * @uses members_check_form_cap() Checks if the restrict_content capability has been given to a role.
75
+ */
76
+ function members_message_no_restrict_content() {
77
+ if ( is_active_members_component( 'content_permissions' ) && !members_check_for_cap( 'restrict_content' ) ) {
78
+ $message = __('No role currently has the <code>restrict_content</code> capability. To use the <em>Content Permissions</em> component, at least one role must have this capability.', 'members');
79
+ members_admin_message( '', $message );
80
+ }
81
+ }
82
+
83
+ /**
84
+ * Disables content passed through the $content variable given the current user's role. The
85
+ * function checks for a custom field key of "Role" and loops through its values, checking
86
+ * if the current user has that particular role.
87
+ *
88
+ * Users with the rescrict_content capability should also be able to see the content.
89
+ *
90
+ * @since 0.1
91
+ * @uses get_post_meta() Gets the meta values of the "_role" custom field key.
92
+ * @uses current_user_can() Checks if the current user has a particular role (capability).
93
+ * @param $content string The current post's content/excerpt.
94
+ * @return $content string Either the current post's content/excerpt or a content inaccessible message.
95
+ */
96
+ function members_content_permissions_protect( $content ) {
97
+ global $post;
98
+
99
+ $roles = get_post_meta( $post->ID, '_role', false );
100
+
101
+ if ( !empty( $roles ) && is_array( $roles ) ) {
102
+ foreach( $roles as $role ) {
103
+ if ( !is_feed() && ( current_user_can( $role ) || current_user_can( 'restrict_content' ) ) )
104
+ return $content;
105
+ }
106
+ $content = '<p class="restricted alert warning">' . __('Sorry, but you do not have permission to view this content.', 'members') . '</p>';
107
+ }
108
+
109
+ return $content;
110
+ }
111
+
112
+ ?>
components/content-permissions/meta-box.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adds the meta box for the Content Permissions component. This allows users with
4
+ * the 'restrict_content' capability to restrict posts/pages on a post/page basis. Roles
5
+ * with the 'restrict_content' capability should be able to see all content, regardless
6
+ * of the settings.
7
+ *
8
+ * @package Members
9
+ * @subpackage Components
10
+ */
11
+
12
+ /**
13
+ * Adds the meta box to the post/page edit screen if the current user has
14
+ * the 'restrict_content' capability.
15
+ *
16
+ * @since 0.1
17
+ * @uses add_meta_box() Creates an additiona meta box.
18
+ */
19
+ function members_content_permissions_create_meta_box() {
20
+ if ( current_user_can( 'restrict_content' ) ) {
21
+ add_meta_box( 'content-permissions-meta-box', 'Content Permissions', 'members_content_permissions_meta_box', 'post', 'advanced', 'high' );
22
+ add_meta_box( 'content-permissions-meta-box', 'Content Permissions', 'members_content_permissions_meta_box', 'page', 'advanced', 'high' );
23
+ }
24
+ }
25
+
26
+ /**
27
+ * Controls the display of the content permissions meta box. This allows users
28
+ * to select roles that should have access to an individual post/page.
29
+ *
30
+ * @since 0.1
31
+ * @global $post
32
+ * @global $wp_roles
33
+ * @param $object
34
+ * @param $box
35
+ */
36
+ function members_content_permissions_meta_box( $object, $box ) {
37
+ global $post, $wp_roles; ?>
38
+
39
+ <input type="hidden" name="content_permissions_meta_nonce" value="<?php echo wp_create_nonce(plugin_basename(__FILE__)); ?>" />
40
+
41
+ <p>
42
+ <label for="roles"><?php _e('<strong>Roles:</strong> Restrict the content to these roles on the front end of the site. If all boxes are left unchecked, everyone can view the content.', 'members'); ?></label>
43
+ </p>
44
+
45
+ <div style="overflow: hidden;">
46
+
47
+ <?php
48
+
49
+ /* Get the 'Role' meta key. */
50
+ $meta = get_post_meta( $post->ID, '_role', false );
51
+
52
+ /* Loop through each of the available roles. */
53
+ foreach ( $wp_roles->role_names as $role => $name ) {
54
+ $checked = false;
55
+
56
+ /* If the role has been selected, make sure it's checked. */
57
+ if ( is_array( $meta ) && in_array( $role, $meta ) )
58
+ $checked = ' checked="checked" '; ?>
59
+
60
+ <p style="width: 32%; float: left; margin-right: 0;">
61
+ <label for="role-<?php echo $role; ?>">
62
+ <input type="checkbox" name="role[<?php echo $role; ?>]" id="role-<?php echo $role; ?>" <?php echo $checked; ?> value="<?php echo $role; ?>" />
63
+ <?php echo str_replace( '|User role', '', $name ); ?>
64
+ </label>
65
+ </p>
66
+ <?php } ?>
67
+
68
+ </div><?php
69
+ }
70
+
71
+ /**
72
+ * Saves the content permissions metabox data to a custom field.
73
+ *
74
+ * @since 0.1
75
+ */
76
+ function members_content_permissions_save_meta( $post_id, $post ) {
77
+ global $wp_roles;
78
+
79
+ /* Only allow users that can edit the current post to submit data. */
80
+ if ( 'post' == $post->post_type && !current_user_can( 'edit_posts', $post_id ) )
81
+ return;
82
+
83
+ /* Only allow users that can edit the current page to submit data. */
84
+ elseif ( 'page' == $post->post_type && !current_user_can( 'edit_pages', $post_id ) )
85
+ return;
86
+
87
+ /* Don't save if the post is only a revision. */
88
+ if ( 'revision' == $post->post_type )
89
+ return;
90
+
91
+ /* Loop through each of the site's available roles. */
92
+ foreach ( $wp_roles->role_names as $role => $name ) {
93
+
94
+ /* Get post metadata for the custom field key 'Role'. */
95
+ $meta = (array)get_post_meta( $post_id, '_role', false );
96
+
97
+ /* Check if the role was selected. */
98
+ if ( $_POST['role'][$role] ) {
99
+
100
+ /* If selected and already saved, continue looping through the roles and do nothing for this role. */
101
+ if ( in_array( $role, $meta ) )
102
+ continue;
103
+
104
+ /* If the role was seleted and not already saved, add the role as a new value to the 'Role' custom field. */
105
+ else
106
+ $add = add_post_meta( $post_id, '_role', $role, false );
107
+ }
108
+
109
+ /* If role not selected, delete. */
110
+ else
111
+ $delete = delete_post_meta( $post_id, '_role', $role );
112
+
113
+ } // End loop through site's roles.
114
+ }
115
+
116
+ ?>
components/private-blog/default.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Private Blog component is for making your site completely private to people that are
4
+ * not logged into the site. If not logged in, it will redirect all people to the 'wp-login.php' page.
5
+ *
6
+ * @todo Make sure 'blog_public' is set to true.
7
+ * @todo Disable content from feeds or add an additional feed component.
8
+ *
9
+ * @package Members
10
+ * @subpackage Components
11
+ */
12
+
13
+ /* Redirects users to the login page. */
14
+ add_action( 'template_redirect', 'members_please_log_in' );
15
+
16
+ /**
17
+ * Redirects users that are not logged in to the 'wp-login.php' page.
18
+ *
19
+ * @since 0.1
20
+ * @uses is_user_logged_in() Checks if the current user is logged in.
21
+ * @uses auth_redirect() Redirects people that are not logged in to the login page.
22
+ */
23
+ function members_please_log_in() {
24
+ if ( !is_user_logged_in() && !strpos( $_SERVER['SCRIPT_NAME'], 'wp-login.php' ) )
25
+ auth_redirect();
26
+ }
27
+
28
+ ?>
components/role-manager/default.php ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Role Manager component allows users to create, edit, and delete roles for use on
4
+ * their site.
5
+ *
6
+ * @package Members
7
+ * @subpackage Components
8
+ */
9
+
10
+ /* Add the Edit Roles and New Roles page to the admin. */
11
+ add_action( 'admin_menu', 'members_component_load_role_manager' );
12
+
13
+ /* Add message when no role has the 'create_roles' capability. */
14
+ add_action( 'members_pre_components_form', 'members_message_no_create_roles' );
15
+ add_action( 'members_pre_new_role_form', 'members_message_no_create_roles' );
16
+
17
+ /* Actions added by the Edit Roles component. */
18
+ add_action( 'members_pre_components_form', 'members_message_no_edit_roles' );
19
+ add_action( 'members_pre_edit_role_form', 'members_message_no_edit_roles' );
20
+ add_action( 'members_pre_edit_roles_form', 'members_message_no_edit_roles' );
21
+
22
+ /**
23
+ * Loads the settings pages for the Roles and New Roles components. For a logged-in
24
+ * user to see the New Roles page, they must have the 'create_roles' capability.
25
+ * In order to gain this capability, one should edit a role to give it this capability
26
+ *
27
+ * @since 0.2
28
+ * @global $members
29
+ * @uses add_submenu_page() Adds a submenu to the users menu.
30
+ */
31
+ function members_component_load_role_manager() {
32
+ global $members;
33
+
34
+ /* Capability to manage roles. Users need to change this on initial setup by giving at least one role the 'edit_roles' capability. */
35
+ if ( members_check_for_cap( 'edit_roles' ) )
36
+ $edit_roles_cap = 'edit_roles';
37
+ else
38
+ $edit_roles_cap = 'edit_users';
39
+
40
+ /* Create the Manage Roles page. */
41
+ $members->edit_roles_page = add_submenu_page( 'users.php', __('Roles', 'members'), __('Roles', 'members'), $edit_roles_cap, 'roles', 'members_edit_roles_page' );
42
+
43
+ /* Create the New Role page. */
44
+ $members->new_roles_page = add_submenu_page( 'users.php', __('New Role', 'members'), __('New Role', 'members'), 'create_roles', 'new-role', 'members_new_role_page' );
45
+ }
46
+
47
+ /**
48
+ * Loads the Manage Roles page.
49
+ * @since 0.1
50
+ */
51
+ function members_edit_roles_page() {
52
+ require_once( MEMBERS_COMPONENTS . '/role-manager/manage-roles.php' );
53
+ }
54
+
55
+ /**
56
+ * Loads the New Role page when its needed.
57
+ *
58
+ * @since 0.1
59
+ */
60
+ function members_new_role_page() {
61
+ require_once( MEMBERS_COMPONENTS . '/role-manager/new-role.php' );
62
+ }
63
+
64
+ /**
65
+ * Returns an array of capabilities that should be set on the New Role admin screen.
66
+ * By default, the only capability checked is 'read' because it's fairly common.
67
+ *
68
+ * @since 0.1
69
+ * @return $capabilities array Default capabilities for new roles.
70
+ */
71
+ function members_new_role_default_capabilities() {
72
+
73
+ $capabilities = array( 'read' );
74
+
75
+ /* Filters should return an array. */
76
+ return apply_filters( 'members_new_role_default_capabilities', $capabilities );
77
+ }
78
+
79
+ /**
80
+ * Message to show when a single role has been deleted.
81
+ * @since 0.1
82
+ */
83
+ function members_message_role_deleted() {
84
+ $message = __('Role deleted.', 'members');
85
+ members_admin_message( '', $message );
86
+ }
87
+
88
+ /**
89
+ * Message to show when multiple roles have been deleted (bulk delete).
90
+ * @since 0.1
91
+ */
92
+ function members_message_roles_deleted() {
93
+ $message = __('Selected roles deleted.', 'members');
94
+ members_admin_message( '', $message );
95
+ }
96
+
97
+ /**
98
+ * Message to show when no role has the 'edit_roles' capability.
99
+ * @since 0.1
100
+ */
101
+ function members_message_no_edit_roles() {
102
+ if ( is_active_members_component( 'edit_roles' ) && !members_check_for_cap( 'edit_roles' ) ) {
103
+ $message = __('No role currently has the <code>edit_roles</code> capability. Please add this to each role that should be able to manage/edit roles. If you do not change this, any user that has the <code>edit_users</code> capability will be able to edit roles.', 'members');
104
+ members_admin_message( '', $message );
105
+ }
106
+ }
107
+
108
+ /**
109
+ * Displays a message if the New Roles component is active and no
110
+ * roles have the 'create_roles' capability.
111
+ *
112
+ * @since 0.1
113
+ */
114
+ function members_message_no_create_roles() {
115
+ if ( is_active_members_component( 'new_roles' ) && !members_check_for_cap( 'create_roles' ) ) {
116
+ $message = __('To create new roles, you must give the <code>create_roles</code> capability to at least one role.', 'members');
117
+ members_admin_message( '', $message );
118
+ }
119
+ }
120
+
121
+ ?>
components/role-manager/edit-role-form.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Edit Role form is for editing individual roles. The role to edit must
4
+ * have been selected on the Edit Roles page.
5
+ *
6
+ * @package Members
7
+ * @subpackage Components
8
+ */
9
+
10
+ /* Get the current role object to edit. */
11
+ $role = get_role( $role );
12
+
13
+ /* Get all the capabilities */
14
+ $capabilities = members_get_capabilities();
15
+
16
+ /* Check if the form has been submitted. */
17
+ if ( isset($_POST['edit-role-saved']) && 'Y' == $_POST['edit-role-saved'] ) {
18
+
19
+ /* Verify the nonce. */
20
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
21
+
22
+ /* Set the $role_updated variable to true. */
23
+ $role_updated = true;
24
+
25
+ /* Loop through all available capabilities. */
26
+ foreach ( $capabilities as $cap ) {
27
+
28
+ /* Get the posted capability. */
29
+ $posted_cap = isset($_POST['role-caps']["{$role->name}-{$cap}"]) ? $_POST['role-caps']["{$role->name}-{$cap}"] : false;
30
+
31
+ /* If the role doesn't have the capability and it was selected, add it. */
32
+ if ( !$role->has_cap( $cap ) && $posted_cap )
33
+ $role->add_cap( $cap );
34
+
35
+ /* If the role has the capability and it wasn't selected, remove it. */
36
+ elseif ( $role->has_cap( $cap ) && !$posted_cap )
37
+ $role->remove_cap( $cap );
38
+
39
+ } // End loop through existing capabilities
40
+
41
+ /* If new caps were added and are in an array, we need to add them. */
42
+ if ( !empty( $_POST['new-cap'] ) && is_array( $_POST['new-cap'] ) ) {
43
+
44
+ /* Loop through each new capability from the edit roles form. */
45
+ foreach ( $_POST['new-cap'] as $new_cap ) {
46
+
47
+ /* Sanitize the new capability to remove any unwanted characters. */
48
+ $new_cap = strip_tags( $new_cap );
49
+ $new_cap = str_replace( array( '-', ' ', '&nbsp;' ) , '_', $new_cap );
50
+ $new_cap = preg_replace('/[^A-Za-z0-9_]/', '', $new_cap );
51
+ $new_cap = strtolower( $new_cap );
52
+
53
+ /* Run one more check to make sure the new capability exists. Add the cap to the role. */
54
+ if ( $new_cap && !$role->has_cap( $new_cap ) )
55
+ $role->add_cap( $new_cap );
56
+
57
+ } // End loop through new capabilities
58
+
59
+ } // End check for new capabilities
60
+
61
+ } // End check for form submission ?>
62
+
63
+ <div class="wrap">
64
+
65
+ <h2><?php printf(__('Edit the %1$s role', 'members'), $role->name ); ?></h2>
66
+
67
+ <?php if ( isset($role_updated) and $role_updated ) members_admin_message( '', __('Role updated.', 'members') ); ?>
68
+
69
+ <?php do_action( 'members_pre_edit_role_form' ); //Available pre-form hook for displaying messages. ?>
70
+
71
+ <div id="poststuff">
72
+
73
+ <form name="form0" method="post" action="<?php echo admin_url( esc_url( "users.php?page=roles&amp;action=edit&amp;role={$role->name}" ) ); ?>" style="border:none;background:transparent;">
74
+
75
+ <?php wp_nonce_field( members_get_nonce( 'edit-roles' ) ); ?>
76
+
77
+ <div class="postbox open">
78
+
79
+ <h3><?php printf( __('<strong>Role:</strong> %1$s', 'members'), $role->name ); ?></h3>
80
+
81
+ <div class="inside">
82
+
83
+ <table class="form-table">
84
+
85
+ <tr>
86
+ <th style="width: 20%;">
87
+ <strong><?php _e('Capabilities', 'members'); ?></strong>
88
+ </th>
89
+
90
+ <td>
91
+ <?php _e('Select which capabilities this role should have. Make sure you understand what the capability does before giving it to just any role. This is a powerful feature, but it can cause you some grief if you give regular ol\' Joe more capabilities than yourself.', 'members'); ?>
92
+ <br /><br />
93
+ <?php
94
+
95
+ /* Looop through each available capability. */
96
+ foreach ( $capabilities as $cap ) {
97
+
98
+ /* If the role has the capability, set the checkbox to 'checked'. */
99
+ if ( $role->has_cap( $cap ) )
100
+ $checked = " checked='checked' ";
101
+
102
+ /* If the role doesn't have the the capability, set the checkbox value to false. */
103
+ else
104
+ $checked = ''; ?>
105
+
106
+ <div style='overflow: hidden; margin: 0 0 5px 0; float:left; width: 32.67%;'>
107
+ <input name='<?php echo "role-caps[{$role->name}-{$cap}]"; ?>' id='<?php echo "{$role->name}-{$cap}"; ?>' <?php echo $checked; ?> type='checkbox' value='true' />
108
+ <label for="<?php echo "{$role->name}-{$cap}"; ?>"><?php if ( $checked ) echo "<strong>$cap</strong>"; else echo "<em>$cap</em>"; ?></label>
109
+ </div>
110
+
111
+ <?php } // Endforeach ?>
112
+ </td>
113
+ </tr>
114
+
115
+ <tr>
116
+ <th style="width: 20%;">
117
+ <strong><?php _e('New Capabilities', 'members'); ?></strong>
118
+ </th>
119
+
120
+ <td>
121
+ <?php _e('Add up to six new capabilities with this form for this role (more can be added later). Please only use letters, numbers, and underscores.', 'members'); ?>
122
+ <br /><br />
123
+ <p style="margin: 0 0 5px 0; float:left; width: 32.67%;">
124
+ <input type="text" id="new-cap-1" name="new-cap[]" value="" size="20" />
125
+ </p>
126
+ <p style="margin: 0 0 5px 0; float:left; width: 32.67%;">
127
+ <input type="text" id="new-cap-2" name="new-cap[]" value="" size="20" />
128
+ </p>
129
+ <p style="margin: 0 0 5px 0; float:left; width: 32.67%;">
130
+ <input type="text" id="new-cap-3" name="new-cap[]" value="" size="20" />
131
+ </p>
132
+ <p style="margin: 0 0 5px 0; float:left; width: 32.67%;">
133
+ <input type="text" id="new-cap-4" name="new-cap[]" value="" size="20" />
134
+ </p>
135
+ <p style="margin: 0 0 5px 0; float:left; width: 32.67%;">
136
+ <input type="text" id="new-cap-5" name="new-cap[]" value="" size="20" />
137
+ </p>
138
+ <p style="margin: 0 0 5px 0; float:left; width: 32.67%;">
139
+ <input type="text" id="new-cap-6" name="new-cap[]" value="" size="20" />
140
+ </p>
141
+
142
+ </td>
143
+ </tr>
144
+
145
+ </table><!-- .form-table -->
146
+
147
+ </div><!-- .inside -->
148
+
149
+ </div><!-- .postbox .open -->
150
+
151
+ <p class="submit" style="clear:both;">
152
+ <input type="submit" name="Submit" class="button-primary" value="<?php _e('Update Role', 'members') ?>" />
153
+ <input type="hidden" name="edit-role-saved" value="Y" />
154
+ </p><!-- .submit -->
155
+
156
+ </form>
157
+
158
+ </div><!-- #poststuff -->
159
+
160
+ </div><!-- .wrap -->
components/role-manager/edit-roles.php ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Edit Roles page displays all of the site's roles in an easy-to-read manner. Along with
4
+ * each role, the number of users and capabilities are displayed. Roles without users are
5
+ * considered "inactive" roles within this plugin's system.
6
+ *
7
+ * All roles can be edited. However, the current user's role and the default role cannot be
8
+ * deleted. To delete the current user's role, another logged-in user with the 'delete_roles'
9
+ * capability and a different role must perform this action. To delete the default role, the
10
+ * default must be changed under the General Options page in the WordPress admin.
11
+ *
12
+ * Users of roles that are deleted will be given the default role (typically 'Subscriber'). It
13
+ * is advisable to not make such a change with a large number of users because a new user
14
+ * object must be created to change each individual user.
15
+ *
16
+ * @todo Test deleting a role with 100s (even 1,000s) of users to see what sort of strain this has.
17
+ *
18
+ * @package Members
19
+ * @subpackage Components
20
+ */
21
+
22
+ /* Get the global $members variable. */
23
+ global $members;
24
+
25
+ /* Current user in the admin. */
26
+ $user = new WP_User( $members->current_user->ID );
27
+
28
+ /* Set the available roles array.*/
29
+ $avail_roles = array();
30
+
31
+ /* Get all the users of the current blog. */
32
+ $users_of_blog = get_users_of_blog();
33
+
34
+ /* Loop through each user. */
35
+ foreach ( (array) $users_of_blog as $blog_user ) {
36
+
37
+ $meta_values = unserialize( $blog_user->meta_value );
38
+
39
+ foreach ( (array) $meta_values as $role => $value ) {
40
+ if ( !isset( $avail_roles[$role] ) )
41
+ $avail_roles[$role] = 0;
42
+
43
+ ++$avail_roles[$role];
44
+ }
45
+ }
46
+
47
+ /* Destroy the $users_of_blog variable. */
48
+ unset( $users_of_blog );
49
+
50
+ /* Can the current user delete_roles? */
51
+ if ( current_user_can( 'delete_roles' ) )
52
+ $delete_roles = true;
53
+
54
+ /* Get the default role. */
55
+ $default_role = get_option( 'default_role' );
56
+
57
+ /* Sort out the roles, active roles, and inactive roles. */
58
+ $all_roles = $active_roles = $inactive_roles = 0;
59
+
60
+ $active_roles_arr = $inactive_roles_arr = array();
61
+
62
+ /* Loop through all of the roles, adding each role to its respective category (active, inactive). */
63
+ foreach ( $wp_roles->role_names as $role => $name ) {
64
+ $all_roles++;
65
+ if ( isset($avail_roles[$role]) ) {
66
+ $active_roles++;
67
+ $active_roles_arr[$role] = $name;
68
+ }
69
+ else {
70
+ $inactive_roles++;
71
+ $inactive_roles_arr[$role] = $name;
72
+ }
73
+ }
74
+
75
+ $role_status = isset( $_GET['role_status'] ) ? $_GET['role_status'] : 'all';
76
+
77
+ /* Set variables for when role_status is active. */
78
+ if ( 'active' == $role_status ) {
79
+ $roles_loop_array = $active_roles_arr;
80
+ $title = __('Edit Active Roles', 'members');
81
+ $current_page = admin_url( esc_url( 'users.php?page=roles&role_status=active' ) );
82
+ }
83
+
84
+ /* Set variables for when role_status is inactive. */
85
+ elseif ( 'inactive' == $role_status ) {
86
+ $roles_loop_array = $inactive_roles_arr;
87
+ $title = __('Edit Inactive Roles', 'members');
88
+ $current_page = admin_url( esc_url( 'users.php?page=roles&role_status=inactive' ) );
89
+ }
90
+
91
+ /* Set default variables for when role_status is neither active nor inactive. */
92
+ else {
93
+ $roles_loop_array = $wp_roles->role_names;
94
+ $title = __('Edit Roles', 'members');
95
+ $current_page = admin_url( esc_url( "users.php?page=roles" ) );
96
+ }
97
+
98
+ /* Sort the roles array into alphabetical order. */
99
+ ksort( $roles_loop_array ); ?>
100
+
101
+ <div class="wrap">
102
+
103
+ <h2><?php echo $title; ?></h2>
104
+
105
+ <?php do_action( 'members_pre_edit_roles_form' ); // Available action hook for displaying messages. ?>
106
+
107
+ <div id="poststuff">
108
+
109
+ <form id="roles" action="<?php echo $current_page; ?>" method="post">
110
+
111
+ <?php wp_nonce_field( members_get_nonce( 'edit-roles' ) ); ?>
112
+
113
+ <ul class="subsubsub">
114
+ <li><a <?php if ( 'all' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles' ) ); ?>"><?php _e('All', 'members'); ?> <span class="count">(<span id="all_count"><?php echo $all_roles; ?></span>)</span></a> | </li>
115
+ <li><a <?php if ( 'active' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&amp;role_status=active' ) ); ?>"><?php _e('Active', 'members'); ?> <span class="count">(<span id="active_count"><?php echo $active_roles; ?></span>)</span></a> | </li>
116
+ <li><a <?php if ( 'inactive' == $role_status ) echo 'class="current"'; ?> href="<?php echo admin_url( esc_url( 'users.php?page=roles&amp;role_status=inactive' ) ); ?>"><?php _e('Inactive', 'members'); ?> <span class="count">(<span id="inactive_count"><?php echo $inactive_roles; ?></span>)</span></a></li>
117
+ </ul><!-- .subsubsub -->
118
+
119
+ <div class="tablenav">
120
+
121
+ <div class="alignleft actions">
122
+ <select name="action">
123
+ <option value="" selected="selected"><?php _e('Bulk Actions', 'members'); ?></option>
124
+ <?php if ( $delete_roles ) echo '<option value="delete">' . __('Delete', 'members') . '</option>'; ?>
125
+ </select>
126
+ <input type="submit" value="<?php _e('Apply', 'members'); ?>" name="doaction" id="doaction" class="button-secondary action" />
127
+ </div><!-- .alignleft .actions -->
128
+
129
+ <br class="clear" />
130
+
131
+ </div><!-- .tablenav -->
132
+
133
+ <table class="widefat fixed" cellspacing="0">
134
+ <thead>
135
+ <tr>
136
+ <th class='check-column'><input type='checkbox' /></th>
137
+ <th class='name-column'><?php _e('Role Name', 'members'); ?></th>
138
+ <th><?php _e('Role', 'members'); ?></th>
139
+ <th><?php _e('Users', 'members'); ?></th>
140
+ <th><?php _e('Capabilities', 'members'); ?></th>
141
+ </tr>
142
+ </thead>
143
+
144
+ <tfoot>
145
+ <tr>
146
+ <th class='check-column'><input type='checkbox' /></th>
147
+ <th class='name-column'><?php _e('Role Name', 'members'); ?></th>
148
+ <th><?php _e('Role', 'members'); ?></th>
149
+ <th><?php _e('Users', 'members'); ?></th>
150
+ <th><?php _e('Capabilities', 'members'); ?></th>
151
+ </tr>
152
+ </tfoot>
153
+
154
+ <tbody id="users" class="list:user user-list plugins">
155
+
156
+ <?php foreach ( $roles_loop_array as $role => $name ) { ?>
157
+
158
+ <?php $name = str_replace( '|User role', '', $name ); ?>
159
+
160
+ <tr valign="top" class="<?php if ( isset($avail_roles[$role]) ) echo 'active'; else echo 'inactive'; ?>">
161
+
162
+ <th class="manage-column column-cb check-column">
163
+ <?php if ( $role !== $default_role && !$user->has_cap( $role ) ) { ?>
164
+ <input name="roles[<?php echo $role; ?>]" id="<?php echo $role; ?>" type="checkbox" value="<?php echo $role; ?>" />
165
+ <?php } ?>
166
+ </th><!-- .manage-column .column-cb .check-column -->
167
+
168
+ <td class="plugin-title">
169
+ <?php $edit_link = admin_url( wp_nonce_url( "users.php?page=roles&amp;action=edit&amp;role={$role}", members_get_nonce( 'edit-roles' ) ) ); ?>
170
+
171
+ <a href="<?php echo $edit_link; ?>" title="<?php printf( __('Edit the %1$s role', 'members'), $name ); ?>"><strong><?php echo $name; ?></strong></a>
172
+
173
+ <div class="row-actions">
174
+ <a href="<?php echo $edit_link; ?>" title="<?php printf( __('Edit the %1$s role', 'members'), $name ); ?>"><?php _e('Edit', 'members'); ?></a>
175
+
176
+ <?php /* Delete role link. */
177
+ if ( $delete_roles && $role !== $default_role && !$user->has_cap( $role ) ) {
178
+ $delete_link = admin_url( wp_nonce_url( "users.php?page=roles&amp;action=delete&amp;role={$role}", members_get_nonce( 'edit-roles' ) ) ); ?>
179
+ | <a href="<?php echo $delete_link; ?>" title="<?php printf( __('Delete the %1$s role', 'members'), $name ); ?>"><?php _e('Delete', 'members'); ?></a>
180
+ <?php }
181
+
182
+ /* Link to change the default role Options General. */
183
+ if ( $role == $default_role ) { ?>
184
+ | <a href="<?php echo admin_url( ( 'options-general.php' ) ); ?>" title="<?php _e('Change default role', 'members'); ?>"><?php _e('Default Role', 'members'); ?></a>
185
+ <?php }
186
+
187
+ /* If there are users, provide a link to the users page of that role. */
188
+ if ( isset($avail_roles[$role]) ) { ?>
189
+ | <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( __('View all users with the %1$s role', 'members'), $name ); ?>"><?php _e('View Users', 'members'); ?></a>
190
+ <?php } ?>
191
+
192
+ </div><!-- .row-actions -->
193
+
194
+ </td><!-- .plugin-title -->
195
+
196
+ <td class="desc">
197
+ <p><?php echo $role; ?></p>
198
+ </td><!-- .desc -->
199
+
200
+ <td class="desc">
201
+ <p><?php /* Check if any users are assigned to the role. If so, display a link to the role's users page. */
202
+ if ( isset($avail_roles[$role]) && 1 < $avail_roles[$role] )
203
+ echo '<a href="' . admin_url( esc_url( "users.php?role={$role}" ) ) . '" title="' . sprintf( __('View all users with the %1$s role', 'members'), $name ) . '">' . sprintf( __('%1$s Users', 'members'), $avail_roles[$role] ) . '</a>';
204
+ elseif ( isset($avail_roles[$role]) && 1 == $avail_roles[$role] )
205
+ echo '<a href="' . admin_url( esc_url( "users.php?role={$role}" ) ) . '" title="' . sprintf( __('View all users with the %1$s role', 'members'), $name ) . '">' . __('1 User', 'members') . '</a>';
206
+ else
207
+ echo '<em>' . __('No users have this role.', 'members') . '</em>';
208
+ ?></p>
209
+ </td><!-- .desc -->
210
+
211
+ <td class="desc">
212
+ <p>
213
+ <?php /* Check if the role has any capabilities. */
214
+
215
+ $role_2 = get_role( $role );
216
+
217
+ if ( is_array( $role_2->capabilities ) ) {
218
+ $cap_count = count( $role_2->capabilities );
219
+ if ( 1 < $cap_count ) printf( __('%1$s Capabilities', 'members'), $cap_count );
220
+ elseif ( 1 == $cap_count ) _e('1 Capability', 'members');
221
+ }
222
+ else
223
+ echo '<em>' . __('This role has no capabilities', 'members') . '</em>'; ?>
224
+ </p>
225
+ </td><!-- .desc -->
226
+
227
+ </tr><!-- .active .inactive -->
228
+
229
+ <?php } // End foreach ?>
230
+
231
+ </tbody><!-- #users .list:user .user-list .plugins -->
232
+
233
+ </table><!-- .widefat .fixed -->
234
+
235
+ <div class="tablenav">
236
+
237
+ <div class="alignleft actions">
238
+ <select name="action2">
239
+ <option value="" selected="selected"><?php _e('Bulk Actions', 'members'); ?></option>
240
+ <?php if ( $delete_roles ) echo '<option value="delete">' . __('Delete', 'members') . '</option>'; ?>
241
+ </select>
242
+ <input type="submit" value="<?php _e('Apply', 'members'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
243
+ </div><!-- .alignleft .actions -->
244
+
245
+ <br class="clear" />
246
+
247
+ </div><!-- .tablenav -->
248
+
249
+ </form><!-- #roles -->
250
+
251
+ </div><!-- #poststuff -->
252
+
253
+ </div><!-- .wrap -->
components/role-manager/manage-roles.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The main file of the Edit Roles component. This is where we run checks to see which page
4
+ * needs to be loaded. It also checks if actions have been performed on the Edit Roles page.
5
+ *
6
+ * @package Members
7
+ * @subpackage Components
8
+ */
9
+
10
+ /* Get the $wp_roles variable and $wpdb. Do we need $wpdb (need to check)? */
11
+ global $wp_roles, $wpdb;
12
+
13
+ /* Get the current action performed by the user. */
14
+ $action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : false;
15
+
16
+ /* If a role has been updated, set the action to 'role-updated'. */
17
+ if ( isset($_POST['edit-role-saved']) and $_POST['edit-role-saved'] == 'Y' )
18
+ $action = 'role-updated';
19
+
20
+ /* If the bulk delete (first submit) has been selected. */
21
+ elseif ( 'delete' == $action && ( isset( $_POST['doaction'] ) && __('Apply', 'members') == $_POST['doaction']) )
22
+ $action = 'bulk-delete';
23
+
24
+ /* If the bulk delete (second submit) has been selected. */
25
+ elseif ( 'delete' == $action && ( isset($_POST['doaction2']) && __('Apply', 'members') == $_POST['doaction2']) )
26
+ $action = 'bulk-delete';
27
+
28
+ /* Choose which actions to perform and pages to load according to the $action variable. */
29
+ switch( $action ) {
30
+
31
+ /* If the bulk delete was selected. */
32
+ case 'bulk-delete' :
33
+
34
+ /* Get the default role (we don't want to delete this). */
35
+ $default_role = get_option( 'default_role' );
36
+
37
+ /* Get all roles checked for deletion. */
38
+ $delete_roles = $_POST['roles'];
39
+
40
+ /* If no roles were selected, break. Just load up the edit roles page. */
41
+ if ( !is_array( $delete_roles ) ) {
42
+ require_once( 'edit-roles.php' );
43
+ break;
44
+ }
45
+
46
+ /* If roles were selected, let's delete some roles. */
47
+ else {
48
+
49
+ /* Verify the nonce. */
50
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
51
+
52
+ /* Send through roles deleted message. */
53
+ add_action( 'members_pre_edit_roles_form', 'members_message_roles_deleted' );
54
+
55
+ /* Loop through each of the selected roles. */
56
+ foreach ( $delete_roles as $role ) {
57
+
58
+ /* Get all users with the current role of the loop. */
59
+ $wp_user_search = new WP_User_Search( '', '', $role );
60
+ $change_users = $wp_user_search->get_results();
61
+
62
+ /* If there are users with the role, let's delete them and give them the default role. */
63
+ if ( isset( $change_users ) && is_array( $change_users ) ) {
64
+
65
+ /* Loop through each of the users we need to change. */
66
+ foreach( $change_users as $move_user ) {
67
+ $new_user = new WP_User( $move_user );
68
+
69
+ /* If the user has the role, remove it and set the default role. Do we need this additional check? */
70
+ if ( $new_user->has_cap( $role ) ) {
71
+ $new_user->remove_role( $role );
72
+ $new_user->set_role( $default_role );
73
+ }
74
+ }
75
+ }
76
+
77
+ /* Remove the role. */
78
+ remove_role( $role );
79
+ }
80
+
81
+ /* Load the edit roles page. */
82
+ require_once( 'edit-roles.php' );
83
+ break;
84
+ }
85
+ break;
86
+
87
+ /* If a single role has been chosen to be deleted. */
88
+ case 'delete' :
89
+
90
+ /* Verify the referer. */
91
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
92
+
93
+ /* Send role deleted message. */
94
+ add_action( 'members_pre_edit_roles_form', 'members_message_role_deleted' );
95
+
96
+ /* Get the default role. */
97
+ $default_role = get_option( 'default_role' );
98
+
99
+ /* Get the role we want to delete. */
100
+ $role = $_GET['role'];
101
+
102
+ /* Get all users with the role to be deleted. */
103
+ $wp_user_search = new WP_User_Search( '', '', $role );
104
+ $change_users = $wp_user_search->get_results();
105
+
106
+ /* If there are users with the role we're deleting, loop through them, remove the role, and set the default role. */
107
+ if ( isset( $change_users ) && is_array( $change_users ) ) {
108
+ foreach( $change_users as $move_user ) {
109
+ $new_user = new WP_User( $move_user );
110
+
111
+ /* If the user has the role, remove it and set the default. Do we need this check? */
112
+ if ( $new_user->has_cap( $role ) ) {
113
+ $new_user->remove_role( $role );
114
+ $new_user->set_role( $default_role );
115
+ }
116
+ }
117
+ }
118
+
119
+ /* Remove the role. */
120
+ remove_role( $role );
121
+
122
+ /* Load the edit roles page. */
123
+ require_once( 'edit-roles.php' );
124
+ break;
125
+
126
+ /* If a role has been updated. Is this needed still? */
127
+ case 'role-updated' :
128
+
129
+ /* Set some default variables. */
130
+ $title = __('Edit Role', 'members');
131
+ $role = $_GET['role'];
132
+
133
+ /* Load the edit role form. */
134
+ require_once( 'edit-role-form.php' );
135
+ break;
136
+
137
+ /* If a role has been selected to be edited. */
138
+ case 'edit' :
139
+
140
+ /* Verify the referer. */
141
+ check_admin_referer( members_get_nonce( 'edit-roles' ) );
142
+
143
+ /* Set some default variables. */
144
+ $title = __('Edit Role', 'members');
145
+ $role = $_GET['role'];
146
+
147
+ /* Load the edit role form. */
148
+ require_once( 'edit-role-form.php' );
149
+
150
+ break;
151
+
152
+ /* The default page is the edit roles page. */
153
+ default :
154
+
155
+ /* Load the edit roles page.*/
156
+ require_once( 'edit-roles.php' );
157
+ break;
158
+ }
159
+
160
+ ?>
components/role-manager/new-role.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Page for creating new roles. Displays the new role form and creates
4
+ * a new role if a new role has been submitted.
5
+ *
6
+ * @package Members
7
+ * @subpackage Components
8
+ */
9
+
10
+ /* Check if the form has been submitted. */
11
+ if ( isset($_POST['new-role-submit']) && 'Y' == $_POST['new-role-submit'] ) {
12
+
13
+ /* Verify the nonce. */
14
+ check_admin_referer( members_get_nonce( 'new-role' ) );
15
+
16
+ /* Check if any capabilities were selected. */
17
+ if ( !empty( $_POST['capabilities'] ) && is_array( $_POST['capabilities'] ) )
18
+ $new_user_caps = $_POST['capabilities'];
19
+
20
+ /* If no capabilities were selected, set the variable to null. */
21
+ else
22
+ $new_user_caps = null;
23
+
24
+ /* Check if both a role name and role were submitted. */
25
+ if ( isset($_POST['role-name']) && isset($_POST['role-id']) ) {
26
+
27
+ /* Sanitize the new role, removing any unwanted characters. */
28
+ $new_role = strip_tags( $_POST['role-id'] );
29
+ $new_role = str_replace( array( '-', ' ', '&nbsp;' ) , '_', $new_role );
30
+ $new_role = preg_replace('/[^A-Za-z0-9_]/', '', $new_role );
31
+ $new_role = strtolower( $new_role );
32
+
33
+ /* Sanitize the new role name/label. We just want to strip any tags here. */
34
+ $new_role_name = strip_tags( $_POST['role-name'] ); // Should we use something like the WP user sanitation method?
35
+
36
+ /* Add a new role with the data input. */
37
+ $new_role_added = add_role( $new_role, $new_role_name, $new_user_caps );
38
+
39
+ } // End check for role and role name
40
+
41
+ } // End check for form submit ?>
42
+
43
+ <div class="wrap">
44
+
45
+ <h2><?php _e('Add a new user role', 'members'); ?></h2>
46
+
47
+ <?php if ( isset($new_role_added) and $new_role_added ) members_admin_message( '', sprintf( __('The %1$s role has been created.', 'members'), $_POST['role-name'] ) ); ?>
48
+
49
+ <?php do_action( 'members_pre_new_role_form' ); // Available action hook for displaying messages. ?>
50
+
51
+ <div id="poststuff">
52
+
53
+ <form name="form0" method="post" action="<?php echo admin_url( "users.php?page=new-role" ); ?>" style="border:none;background:transparent;">
54
+
55
+ <?php wp_nonce_field( members_get_nonce( 'new-role' ) ); ?>
56
+
57
+ <div class="postbox open">
58
+
59
+ <h3><?php _e('Create a new user role', 'members'); ?></h3>
60
+
61
+ <div class="inside">
62
+
63
+ <table class="form-table">
64
+ <tr>
65
+ <th style="width: 20%;">
66
+ <strong><?php _e('About:', 'members'); ?></strong>
67
+ </th>
68
+ <td>
69
+ <?php printf( __('Here you can create as many new roles as you\'d like. Roles are a way of grouping your users. You can give individual users a role from the <a href="%1$s" title="Manage Users">user management</a> screen. This will allow you to do specific things for users with a specific role. Once you\'ve created a new role, you can manage it with the <em>Edit Roles</em> component.', 'members'), admin_url( 'users.php' ) ); ?>
70
+ </td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <th style="width: 20%;">
75
+ <label for="role-id"><strong><?php _e('Role:', 'members'); ?></strong></label>
76
+ </th>
77
+ <td>
78
+ <?php _e('<strong>Required:</strong> Enter the name of your role. This is a unique key that should only contain numbers, letters, and underscores. Please don\'t add spaces or other odd characters.', 'members'); ?>
79
+ <br />
80
+ <input type="text" id="role-id" name="role-id" value="" size="30" />
81
+ </td>
82
+ </tr>
83
+
84
+ <tr>
85
+ <th style="width: 20%;">
86
+ <label for="role-name"><strong><?php _e('Role Label:', 'members'); ?></strong></label>
87
+ </th>
88
+ <td>
89
+ <?php _e('<strong>Required:</strong> Enter a label your role. This will be the title that is displayed in most cases.', 'members'); ?>
90
+ <br />
91
+ <input type="text" id="role-name" name="role-name" value="" size="30" />
92
+ </td>
93
+ </tr>
94
+
95
+ <tr>
96
+ <th style="width: 20%;">
97
+ <strong><?php _e('Capabilities:', 'members'); ?></strong>
98
+ </th>
99
+ <td>
100
+ <?php _e('<strong>Optional:</strong> Select which capabilities your new role should have. These may be changed later using the <em>Edit Roles</em> component.', 'members'); ?>
101
+ <br /><br />
102
+ <?php foreach ( members_get_capabilities() as $cap ) : ?>
103
+ <div style="float: left; width: 32.67%; margin: 0 0 5px 0;">
104
+ <input name='capabilities[<?php echo $cap; ?>]' id='capabilities-<?php echo $cap; ?>' type="checkbox" value='<?php echo $cap; ?>' <?php if ( in_array( $cap, members_new_role_default_capabilities() ) ) echo "checked='checked'"; ?> />
105
+ <label for="capabilities-<?php echo $cap; ?>"><?php if ( in_array( $cap, members_new_role_default_capabilities() ) ) echo "<strong>$cap</strong>"; else echo $cap; ?></label>
106
+ </div>
107
+ <?php endforeach; ?>
108
+ </td>
109
+ </tr>
110
+
111
+ </table><!-- .form-table -->
112
+
113
+ </div><!-- .inside -->
114
+
115
+ </div><!-- .postbox -->
116
+
117
+ <p class="submit">
118
+ <input type="submit" name="Submit" class="button-primary" value="<?php _e('Create Role', 'members') ?>" />
119
+ <input type="hidden" name="new-role-submit" value="Y" />
120
+ </p><!-- .submit -->
121
+
122
+ </form>
123
+
124
+ </div><!-- #poststuff -->
125
+
126
+ </div><!-- .poststuff -->
components/shortcodes/shortcodes.php ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Shortcodes component provides additional [shortcodes] for use within posts/pages
4
+ * and any other shortcode-capable area.
5
+ *
6
+ * @todo need a [hide] shortcode or allow [access] to do the opposite.
7
+ *
8
+ * @package Members
9
+ * @subpackage Components
10
+ */
11
+
12
+ /* Add shortcodes. */
13
+ add_action( 'init', 'members_component_shortcodes_register_shortcodes' );
14
+
15
+ /**
16
+ * Registers shortcodes for the shortcodes component.
17
+ *
18
+ * @since 0.2.0
19
+ */
20
+ function members_component_shortcodes_register_shortcodes() {
21
+ add_shortcode( 'login-form', 'members_login_form_shortcode' );
22
+ add_shortcode( 'access', 'members_access_check_shortcode' );
23
+ add_shortcode( 'feed', 'members_access_check_shortcode' );
24
+ add_shortcode( 'is_user_logged_in', 'members_is_user_logged_in_shortcode' );
25
+ add_shortcode( 'get_avatar', 'members_get_avatar_shortcode' );
26
+ add_shortcode( 'avatar', 'members_get_avatar_shortcode' );
27
+ }
28
+
29
+ /**
30
+ * Displays an avatar for any user. At the very least, an ID or email must
31
+ * be input. Otherwise, we can't know which avatar to grab.
32
+ *
33
+ * Users should input the code as [get_avatar id="30" alt="Justin Tadlock"].
34
+ *
35
+ * @since 0.1
36
+ * @uses get_avatar() Grabs the users avatar.
37
+ * @param $attr array The shortcode attributes.
38
+ */
39
+ function members_get_avatar_shortcode( $attr ) {
40
+
41
+ /* Set up our default attributes. */
42
+ $defaults = array(
43
+ 'id' => '',
44
+ 'email' => '',
45
+ 'size' => 96,
46
+ 'default' => '',
47
+ 'alt' => ''
48
+ );
49
+
50
+ /* Merge the input attributes and the defaults. */
51
+ extract( shortcode_atts( $defaults, $attr ) );
52
+
53
+ /* If an email was input, use it. */
54
+ if ( $email )
55
+ $id_or_email = $email;
56
+
57
+ /* If no email was input, use the ID. */
58
+ else
59
+ $id_or_email = $id;
60
+
61
+ /* Return the avatar. */
62
+ return get_avatar( $id_or_email, $size, $default, $alt );
63
+ }
64
+
65
+ /**
66
+ * Displays content if the user viewing it is currently logged in. This also blocks
67
+ * content from showing in feeds.
68
+ *
69
+ * Content needs to be wrapped with this shortcode like
70
+ * [is_user_logged_in]This is content.[/is_user_logged_in].
71
+ *
72
+ * @todo Provide a filter hook for displaying a "please log in to view" message.
73
+ *
74
+ * @since 0.1
75
+ * @uses is_feed() Checks if the content is currently being shown in a feed.
76
+ * @uses is_user_logged_in() Checks if the current user is logged in.
77
+ * @param $attr array Attributes for the shortcode (not usefule here).
78
+ * @param $content string The content located between the opening and closing of the shortcode.
79
+ * @return $content string The content to be shown.
80
+ */
81
+ function members_is_user_logged_in_shortcode( $attr, $content = null ) {
82
+
83
+ /* If it is a feed or the user is not logged in, return nothing. */
84
+ if ( !is_feed() || !is_user_logged_in() )
85
+ return '';
86
+
87
+ /* Return the content. */
88
+ return do_shortcode( $content );
89
+ }
90
+
91
+ /**
92
+ * Content that should only be shown in feed readers. Can be useful for
93
+ * displaying feed-specific items.
94
+ *
95
+ * Content should be wrapped like [feed]This is content.[/feed].
96
+ *
97
+ * @since 0.1
98
+ * @uses is_feed() Checks if the content is currently being shown in a feed.
99
+ * @uses is_null() Checks if there is any content.
100
+ * @param $attr array Attributes for the shortcode (not currently useful but may later add a $display/$show parameter).
101
+ * @param $content string The content located between the opening and closing of the shortcode.
102
+ * @return $content string The content to be shown.
103
+ */
104
+ function members_feed_shortcode( $attr, $content = null ) {
105
+
106
+ /* If not feed or no content exists, return nothing. */
107
+ if ( !is_feed() || is_null( $content ) )
108
+ return '';
109
+
110
+ /* Return the content. */
111
+ return do_shortcode( $content );
112
+ }
113
+
114
+ /**
115
+ * Provide/restrict access to specific roles or capabilities. This content should
116
+ * not be shown in feeds.
117
+ *
118
+ * @todo Allow multiple roles and capabilities to be input (comma-separated).
119
+ *
120
+ * Content should be wrapped like [access role="editor"]This is content.[/access].
121
+ *
122
+ * @since 0.1
123
+ * @uses current_user_can() Checks if the current user has the role or capability.
124
+ * @uses is_feed() Checks if we're currently viewing a feed.
125
+ * @param $attr array The shortcode attributes.
126
+ * @param $content string The content that should be shown/restricted.
127
+ * @return $content string The content if it should be shown. Else, return nothing.
128
+ */
129
+ function members_access_check_shortcode( $attr, $content = null ) {
130
+
131
+ /* Set up the default attributes. */
132
+ $defaults = array(
133
+ 'capability' => '',
134
+ 'role' => '',
135
+ 'feed' => false,
136
+ );
137
+
138
+ /* Merge the input attributes and the defaults. */
139
+ extract( shortcode_atts( $defaults, $attr ) );
140
+
141
+ /* If the current user has the input capability, show the content. */
142
+ if ( $capability && current_user_can( $capability ) )
143
+ return do_shortcode( $content );
144
+
145
+ /* If the current user has the input role, show the content. */
146
+ elseif ( $role && current_user_can( $role ) )
147
+ return do_shortcode( $content );
148
+
149
+ /* If $feed was set to true and we're currently displaying a feed, show the content. */
150
+ elseif ( $feed && 'false' !== $feed && is_feed() )
151
+ return do_shortcode( $content );
152
+
153
+ /* If there is no content, return nothing. */
154
+ elseif ( !is_null( $content ) )
155
+ return '';
156
+
157
+ /* Return nothing if none of the conditions have been met. */
158
+ return '';
159
+ }
160
+
161
+ /**
162
+ * Displays a login form.
163
+ *
164
+ * @since 0.1
165
+ * @uses wp_login_form() Displays the login form.
166
+ */
167
+ function members_login_form_shortcode() {
168
+ return wp_login_form( array( 'echo' => false ) );
169
+ }
170
+
171
+ ?>
components/statistics/default.php ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Stats package for the plugin. This component displays stats for individual roles. On the main stats
4
+ * page, each role is listed. Each role then has its own stats page, which lists users by month. Each
5
+ * month should list all of the users that signed up for that particular month for with that role.
6
+ *
7
+ * To view the stats page, a user must have a role with the 'view_stats' capability.
8
+ *
9
+ * @package Members
10
+ * @subpackage Components
11
+ */
12
+
13
+ /* Add the stats page to the admin. */
14
+ add_action( 'admin_menu', 'members_component_add_stats_page' );
15
+
16
+ /* Additional capabilities required by the component. */
17
+ add_filter( 'members_get_capabilities', 'members_component_stats_capabilities' );
18
+
19
+ /**
20
+ * Adds the stats page to the admin menu.
21
+ *
22
+ * @since 0.2
23
+ */
24
+ function members_component_add_stats_page() {
25
+ global $members;
26
+
27
+ $members->stats_page = add_submenu_page( 'users.php', __( 'Members Statistics', 'members' ), __( 'Members Stats', 'members' ), 'view_stats', 'stats', 'members_component_stats_page' );
28
+ }
29
+
30
+ /**
31
+ * Loads the stats page.
32
+ *
33
+ * @since 0.2
34
+ */
35
+ function members_component_stats_page() {
36
+
37
+ $stats = get_option( 'members_statistics' );
38
+
39
+ if ( empty( $stats ) )
40
+ members_component_stats_create_initial_stats();
41
+
42
+ require_once( MEMBERS_COMPONENTS . '/statistics/statistics.php' );
43
+ }
44
+
45
+ /**
46
+ * Adds additional capabilities required by the stats component.
47
+ *
48
+ * @since 0.2
49
+ */
50
+ function members_component_stats_capabilities( $capabilities ) {
51
+
52
+ $capabilities['view_stats'] = 'view_stats';
53
+
54
+ return $capabilities;
55
+ }
56
+
57
+ add_action( 'user_register', 'update_stats_package' );
58
+
59
+ function update_stats_package( $user_id ) {
60
+
61
+ $stats = get_option( 'members_statistics' );
62
+ $new_user = new WP_User( $user_id );
63
+
64
+ if ( is_array( $new_user->roles ) )
65
+ $role = $new_user->roles[0];
66
+
67
+ $stats[$role][$new_user->ID] = array(
68
+ 'id' => $new_user->ID,
69
+ 'role' => $role,
70
+ 'date' => $new_user->user_registered,
71
+ 'year' => mysql2date( 'Y', $new_user->user_registered ),
72
+ 'month' => mysql2date( 'm', $new_user->user_registered ),
73
+ 'day' => mysql2date( 'd', $new_user->user_registered ),
74
+ );
75
+
76
+ update_option( 'members_statistics', $stats );
77
+ }
78
+
79
+
80
+ /**
81
+ * If the stats package was previously unused, this means that prior users stats were
82
+ * not tracked. So, we're going to create some default stats based on the user registration
83
+ * date and user role.
84
+ *
85
+ * @since 0.2
86
+ */
87
+ function members_component_stats_create_initial_stats() {
88
+ global $wp_roles;
89
+
90
+ $stats = array();
91
+
92
+ foreach ( $wp_roles->role_objects as $key => $role ) {
93
+
94
+ $sta = array();
95
+
96
+ $search = new WP_User_Search( '', '', $role->name );
97
+
98
+ $users = $search->get_results();
99
+
100
+ if ( isset( $users ) && is_array( $users ) ) {
101
+
102
+ foreach ( $users as $user ) {
103
+ $new_user = new WP_User( $user );
104
+
105
+ $sta[$new_user->ID] = array(
106
+ 'id' => $new_user->ID,
107
+ 'role' => $role->name,
108
+ 'date' => $new_user->user_registered,
109
+ 'year' => mysql2date( 'Y', $new_user->user_registered ),
110
+ 'month' => mysql2date( 'm', $new_user->user_registered ),
111
+ 'day' => mysql2date( 'd', $new_user->user_registered ),
112
+ );
113
+
114
+ }
115
+ }
116
+
117
+ $stats[$role->name] = $sta;
118
+ }
119
+
120
+ add_option( 'members_statistics', $stats );
121
+
122
+ }
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ ?>
components/statistics/statistics.php ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Stats page displays all of the site's roles and each role's stats.
4
+ *
5
+ * To view this page, a user must have a role with the capability of 'view_stats'.
6
+ *
7
+ * @package Members
8
+ * @subpackage Components
9
+ */
10
+
11
+
12
+ /* Get the current action performed by the user. */
13
+ //$view_role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : false;
14
+ //$view_stats = isset( $_REQUEST['view'] ) ? $_REQUEST['view'] : false;
15
+
16
+ if ( isset( $_REQUEST['role'] ) && isset( $_REQUEST['view'] ) ) {
17
+
18
+ /* Verify the referer. */
19
+ check_admin_referer( members_get_nonce( 'view-stats' ) );
20
+
21
+ /* Set some default variables. */
22
+ $role = $_REQUEST['role'];
23
+ $view = $_REQUEST['view'];
24
+
25
+ /* Load the edit role form. */
26
+ require_once( 'view-stats.php' );
27
+ }
28
+
29
+ else {
30
+
31
+
32
+ /* Get the global $members variable. */
33
+ global $members, $wp_roles;
34
+
35
+ /* Current user in the admin. */
36
+ $user = new WP_User( $members->current_user->ID );
37
+
38
+ /* Set the available roles array.*/
39
+ $avail_roles = array();
40
+
41
+ /* Get all the users of the current blog. */
42
+ $users_of_blog = get_users_of_blog();
43
+
44
+ /* Loop through each user. */
45
+ foreach ( (array) $users_of_blog as $blog_user ) {
46
+
47
+ $meta_values = unserialize( $blog_user->meta_value );
48
+
49
+ foreach ( ( array) $meta_values as $role => $value ) {
50
+
51
+ if ( !isset( $avail_roles[$role] ) )
52
+ $avail_roles[$role] = 0;
53
+
54
+ ++$avail_roles[$role];
55
+ }
56
+ }
57
+
58
+ /* Destroy the $users_of_blog variable. */
59
+ unset( $users_of_blog );
60
+
61
+ /* Sort out the roles, active roles, and inactive roles. */
62
+ $all_roles = $active_roles = $inactive_roles = 0;
63
+
64
+ /* Loop through all of the roles, adding each role to its respective category (active, inactive). */
65
+ foreach ( $wp_roles->role_names as $role => $name ) {
66
+ $all_roles++;
67
+ if ( isset($avail_roles[$role]) ) {
68
+ $active_roles++;
69
+ $active_roles_arr[$role] = $name;
70
+ }
71
+ else {
72
+ $inactive_roles++;
73
+ $inactive_roles_arr[$role] = $name;
74
+ }
75
+ }
76
+
77
+ $roles_loop_array = $wp_roles->role_names;
78
+
79
+ /* Sort the roles array into alphabetical order. */
80
+ ksort( $roles_loop_array ); ?>
81
+
82
+ <div class="wrap">
83
+
84
+ <h2><?php _e( 'Statistics', 'members' ); ?></h2>
85
+
86
+ <?php do_action( 'members_pre_stats_form' ); // Available action hook for displaying messages. ?>
87
+
88
+ <div id="poststuff">
89
+
90
+ <form id="roles" action="<?php echo admin_url( 'users.php?page=stats' ); ?>" method="post">
91
+
92
+ <?php wp_nonce_field( members_get_nonce( 'view-stats' ) ); ?>
93
+
94
+ <table class="widefat fixed" cellspacing="0">
95
+ <thead>
96
+ <tr>
97
+ <th class='name-column'><?php _e( 'Role', 'members' ); ?></th>
98
+ <th><?php _e( 'Users', 'members' ); ?></th>
99
+ <th><?php _e( 'Stats', 'members' ); ?></th>
100
+ </tr>
101
+ </thead>
102
+
103
+ <tfoot>
104
+ <tr>
105
+ <th class='name-column'><?php _e( 'Role', 'members' ); ?></th>
106
+ <th><?php _e( 'Users', 'members' ); ?></th>
107
+ <th><?php _e( 'Stats', 'members' ); ?></th>
108
+ </tr>
109
+ </tfoot>
110
+
111
+ <tbody id="users" class="list:user user-list plugins">
112
+
113
+ <?php foreach ( $roles_loop_array as $role => $name ) { ?>
114
+
115
+ <?php $name = str_replace( '|User role', '', $name ); ?>
116
+
117
+ <tr valign="top" class="<?php if ( isset($avail_roles[$role]) ) echo 'active'; else echo 'inactive'; ?>">
118
+
119
+ <td class='plugin-title'>
120
+ <?php $view_link = admin_url( wp_nonce_url( "users.php?page=stats&amp;role={$role}&amp;view=month", members_get_nonce( 'view-stats' ) ) ); ?>
121
+
122
+ <a href="<?php echo $view_link; ?>" title="<?php printf( __( 'View stats for the %1$s role', 'members' ), $name ); ?>"><strong><?php echo $name; ?></strong></a>
123
+
124
+ <div class="row-actions">
125
+ <a href="<?php echo $view_link; ?>" title="<?php printf( __( 'View stats for the %1$s role', 'members' ), $name ); ?>"><?php _e( 'Stats', 'members' ); ?></a>
126
+
127
+ <?php
128
+ /* If there are users, provide a link to the users page of that role. */
129
+ if ( isset($avail_roles[$role]) ) { ?>
130
+ | <a href="<?php echo admin_url( esc_url( "users.php?role={$role}" ) ); ?>" title="<?php printf( __( 'View all users with the %1$s role', 'members' ), $name ); ?>"><?php _e( 'View Users', 'members' ); ?></a>
131
+ <?php } ?>
132
+
133
+ </div><!-- .row-actions -->
134
+
135
+ </td><!-- .plugin-title -->
136
+
137
+ <td class='desc'>
138
+ <p><?php /* Check if any users are assigned to the role. If so, display a link to the role's users page. */
139
+ if ( isset($avail_roles[$role]) && 1 < $avail_roles[$role] )
140
+ echo '<a href="' . admin_url( esc_url( "users.php?role={$role}" ) ) . '" title="' . sprintf( __( 'View all users with the %1$s role', 'members' ), $name ) . '">' . sprintf( __( '%1$s Users', 'members' ), $avail_roles[$role] ) . '</a>';
141
+ elseif ( isset($avail_roles[$role]) && 1 == $avail_roles[$role] )
142
+ echo '<a href="' . admin_url( esc_url( "users.php?role={$role}" ) ) . '" title="' . sprintf( __( 'View all users with the %1$s role', 'members' ), $name ) . '">' . __( '1 User', 'members' ) . '</a>';
143
+ else
144
+ echo '<em>' . __( 'No users have this role.', 'members' ) . '</em>';
145
+ ?></p>
146
+ </td><!-- .desc -->
147
+
148
+ <td class='desc'>
149
+ <p>
150
+ <a href="#" title="<?php printf( __( 'View the yearly stats for the %1$s role', 'members' ), $name ); ?>"><?php _e( 'Yearly', 'members' ); ?></a> |
151
+ <a href="#" title="<?php printf( __( 'View the monthly stats for the %1$s role', 'members' ), $name ); ?>"><?php _e( 'Monthly', 'members' ); ?></a> |
152
+ <a href="#" title="<?php printf( __( 'View the daily stats for the %1$s role', 'members' ), $name ); ?>"><?php _e( 'Daily', 'members' ); ?></a>
153
+ </p>
154
+ </td><!-- .desc -->
155
+
156
+ </tr><!-- .active .inactive -->
157
+
158
+ <?php } // End foreach ?>
159
+
160
+ </tbody><!-- #users .list:user .user-list .plugins -->
161
+
162
+ </table><!-- .widefat .fixed -->
163
+
164
+ </form><!-- #roles -->
165
+
166
+ </div><!-- #poststuff -->
167
+
168
+ </div><!-- .wrap -->
169
+
170
+ <?php } ?>
components/statistics/view-stats.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ $stats = get_option( 'members_statistics' );
5
+
6
+ $stats_view = $stats[$role];
7
+
8
+ $overall = array();
9
+
10
+ foreach ( $stats_view as $user ) {
11
+ //$together = $user['date'];
12
+
13
+ $together = $user['year'] . $user['month'];
14
+ //echo $together;
15
+
16
+ ++$overall[$together];
17
+ }
18
+
19
+ ksort( $overall ); ?>
20
+
21
+ <div class="wrap">
22
+
23
+ <h2><?php _e( 'Statistics', 'members' ); ?></h2>
24
+
25
+ <?php //do_action( 'members_pre_stats_form' ); // Available action hook for displaying messages. ?>
26
+
27
+ <div id="poststuff">
28
+
29
+ <?php //wp_nonce_field( members_get_nonce( 'view-stats' ) ); ?>
30
+
31
+ <table class="widefat fixed" cellspacing="0">
32
+ <thead>
33
+ <tr>
34
+ <th class='name-column'><?php _e( 'Date', 'members' ); ?></th>
35
+ <th><?php _e( 'Users', 'members' ); ?></th>
36
+ </tr>
37
+ </thead>
38
+
39
+ <tfoot>
40
+ <tr>
41
+ <th class='name-column'><?php _e( 'Date', 'members' ); ?></th>
42
+ <th><?php _e( 'Users', 'members' ); ?></th>
43
+ </tr>
44
+ </tfoot>
45
+
46
+ <tbody id="users" class="list:user user-list plugins">
47
+
48
+
49
+ <?php foreach ( $overall as $month => $num ) {
50
+
51
+ $date = $month;
52
+
53
+ //$date = str_split( $month, 4 ); ?>
54
+ <tr>
55
+ <td><?php echo mysql2date( 'F', $date ) . ' ' . mysql2date( 'Y', $date ); ?></td>
56
+ <td><?php echo $num; ?>
57
+ </tr>
58
+
59
+ <?php
60
+ } ?>
61
+ </tbody>
62
+ </table>
63
+ </div>
64
+ </div><?php
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+ ?>
components/template-tags/template-tags.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Template Tags component is for adding functions that could be useful within the
4
+ * template files of a WordPress theme.
5
+ *
6
+ * @todo Add members_count_users( $role = '' )
7
+ *
8
+ * @package Members
9
+ * @subpackage Components
10
+ */
11
+
12
+ /**
13
+ * Use to put an author box at the end/beginning of a post. This template
14
+ * tag should be used within The Loop.
15
+ *
16
+ * @since 0.1
17
+ * @uses get_avatar() Gets the current author's avatar.
18
+ * @uses get_the_author_meta() Grabs information about the author.
19
+ */
20
+ function members_author_profile() { ?>
21
+ <div class="author-profile vcard">
22
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), '100', '', get_the_author_meta( 'display_name' ) ); ?>
23
+ <h4 class="author-name fn n"><?php the_author_posts_link(); ?></h4>
24
+ <p class="author-description author-bio">
25
+ <?php the_author_meta( 'description' ); ?>
26
+ </p>
27
+ </div>
28
+ <?php
29
+ }
30
+
31
+ if ( !function_exists( 'has_role' ) ) {
32
+
33
+ /**
34
+ * Checks if a given ID of a user has a specific role.
35
+ *
36
+ * @since 0.1
37
+ * @uses WP_User() Gets a user object based on an ID.
38
+ * @param $role string Role to check for against the user.
39
+ * @param $user_id int The ID of the user to check.
40
+ * @return true|false bool Whether the user has the role.
41
+ */
42
+ function has_role( $role = '', $user_id = '' ) {
43
+
44
+ /* If no role or user ID was added, return false. */
45
+ if ( !$role || !$user_id )
46
+ return false;
47
+
48
+ /* Make sure the ID is an integer. */
49
+ $user_id = (int)$user_id;
50
+
51
+ /* Get the user object. */
52
+ $user = new WP_User( $user_id );
53
+
54
+ /* If the user has the role, return true. */
55
+ if ( $user->has_cap( $role ) )
56
+ return true;
57
+
58
+ /* Return false if the user doesn't have the role. */
59
+ return false;
60
+ }
61
+ }
62
+
63
+ if ( !function_exists( 'current_user_has_role' ) ) {
64
+
65
+ /**
66
+ * Checks if the currently logged-in user has a specific role.
67
+ *
68
+ * @since 0.1
69
+ * @uses current_user_can() Checks whether the user has the given role.
70
+ * @param $role string The role to check for.
71
+ * @return true|false bool Whether the user has the role.
72
+ */
73
+ function current_user_has_role( $role = '' ) {
74
+
75
+ /* If no role was input, return false. */
76
+ if ( !$role )
77
+ return false;
78
+
79
+ /* If the current user has the role, return true. */
80
+ if ( current_user_can( $role ) )
81
+ return true;
82
+
83
+ /* If the current user doesn't have the role, return false. */
84
+ return false;
85
+ }
86
+ }
87
+
88
+ ?>
components/widgets/login.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Creates a widget that allows users to add a login form to a widget area.
4
+ *
5
+ * @package Members
6
+ * @subpackage Components
7
+ */
8
+
9
+ class Members_Widget_Login extends WP_Widget {
10
+
11
+ function Members_Widget_Login() {
12
+ $widget_ops = array( 'classname' => 'login', 'description' => __('A widget that allows users to log into your site.', 'widgets-reloaded') );
13
+ $control_ops = array( 'width' => 700, 'height' => 350, 'id_base' => 'members-widget-login' );
14
+ $this->WP_Widget( 'members-widget-login', __('Login Form', 'widgets-reloaded'), $widget_ops, $control_ops );
15
+ }
16
+
17
+ function widget( $args, $instance ) {
18
+ global $user_identity, $user_ID;
19
+
20
+ extract( $args );
21
+
22
+ $title = apply_filters( 'widget_title', $instance['title'] );
23
+
24
+ $username_label = $instance['username_label'];
25
+ $password_label = $instance['password_label'];
26
+ $submit_text = $instance['submit_text'];
27
+ $remember_text = $instance['remember_text'];
28
+
29
+ $logged_in_text = apply_filters( 'widget_text', $instance['logged_in_text'] );
30
+ $logged_out_text = apply_filters( 'widget_text', $instance['logged_out_text'] );
31
+
32
+ $show_avatar = isset( $instance['show_avatar'] ) ? $instance['show_avatar'] : false;
33
+
34
+ echo $before_widget;
35
+
36
+ if ( $title )
37
+ echo "\n\t\t\t" . $before_title . $title . $after_title;
38
+
39
+ if ( is_user_logged_in() ) {
40
+
41
+ if ( $show_avatar )
42
+ echo get_avatar( $user_ID );
43
+
44
+ if ( $logged_in_text )
45
+ echo $logged_in_text;
46
+
47
+ }
48
+ else {
49
+ if ( $show_avatar )
50
+ echo get_avatar( $user_ID );
51
+
52
+ if ( $logged_out_text )
53
+ echo $logged_out_text;
54
+
55
+ $login = '<div class="clear log-in login-form">';
56
+
57
+ $login .= '<form class="log-in" action="' . get_bloginfo( 'wpurl' ) . '/wp-login.php" method="post">';
58
+
59
+ $login .= '<p class="text-input">';
60
+ $login .= '<label class="text" for="log">' . $username_label . '</label>';
61
+ $login .= '<input class="field" type="text" name="log" id="log" value="' . esc_attr( $user_login ) . '" size="23" />';
62
+ $login .= '</p>';
63
+
64
+ $login .= '<p class="text-input">';
65
+ $login .= '<label class="text" for="pwd">' . $password_label . '</label>';
66
+ $login .= '<input class="field" type="password" name="pwd" id="pwd" size="23" />';
67
+ $login .= '</p>';
68
+
69
+ $login .= '<div class="clear">';
70
+ $login .= '<input type="submit" name="submit" value="' . $submit_text . '" class="log-in" />';
71
+ $login .= '<label class="remember"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> ' . $remember_text . '</label>';
72
+ $login .= '<input type="hidden" name="redirect_to" value="' . $_SERVER['REQUEST_URI'] . '"/>';
73
+ $login .= '</div>';
74
+
75
+ $login .= '</form>';
76
+
77
+ $login .= '</div>';
78
+
79
+ echo $login;
80
+ }
81
+
82
+ echo $after_widget;
83
+ }
84
+
85
+ function update( $new_instance, $old_instance ) {
86
+ $instance = $old_instance;
87
+ $instance['title'] = strip_tags( $new_instance['title'] );
88
+ $instance['username_label'] = strip_tags( $new_instance['username_label'] );
89
+ $instance['password_label'] = strip_tags( $new_instance['password_label'] );
90
+ $instance['submit_text'] = strip_tags( $new_instance['submit_text'] );
91
+ $instance['remember_text'] = strip_tags( $new_instance['remember_text'] );
92
+ $instance['show_avatar'] = $new_instance['show_avatar'];
93
+
94
+ if ( current_user_can('unfiltered_html') ) {
95
+ $instance['logged_in_text'] = $new_instance['logged_in_text'];
96
+ $instance['logged_out_text'] = $new_instance['logged_out_text'];
97
+ }
98
+ else {
99
+ $instance['logged_in_text'] = wp_filter_post_kses( $new_instance['logged_in_text'] );
100
+ $instance['logged_out_text'] = wp_filter_post_kses( $new_instance['logged_out_text'] );
101
+ }
102
+
103
+ return $instance;
104
+ }
105
+
106
+ function form( $instance ) {
107
+
108
+ //Defaults
109
+ $defaults = array(
110
+ 'title' => __('Log In', 'widgets-reloaded'),
111
+ 'username_label' => __('Username:', 'members'),
112
+ 'password_label' => __('Password', 'members'),
113
+ 'submit_text' => __('Log In', 'members'),
114
+ 'remember_text' => __('Remember me?', 'members'),
115
+ 'show_avatar' => true,
116
+ 'logged_out_text' => __('Please log into the site.', 'members'),
117
+ 'logged_in_text' => __('You are currently logged in.', 'members')
118
+ );
119
+
120
+ $instance = wp_parse_args( (array) $instance, $defaults );
121
+ $logged_in_text = format_to_edit( $instance['logged_in_text'] );
122
+ $logged_out_text = format_to_edit( $instance['logged_out_text'] ); ?>
123
+
124
+ <div style="float: left; width: 48%;">
125
+ <p>
126
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'widgets-reloaded'); ?></label>
127
+ <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
128
+ </p>
129
+
130
+ <p>
131
+ <label for="<?php echo $this->get_field_id( 'logged_out_text' ); ?>"><?php _e('Logged out text:', 'members'); ?></label>
132
+ <textarea class="widefat" rows="3" cols="20" id="<?php echo $this->get_field_id('logged_out_text'); ?>" name="<?php echo $this->get_field_name('logged_out_text'); ?>" style="width:100%;"><?php echo $logged_out_text; ?></textarea>
133
+ </p>
134
+
135
+ <p>
136
+ <label for="<?php echo $this->get_field_id( 'logged_in_text' ); ?>"><?php _e('Logged in text:', 'members'); ?></label>
137
+ <textarea class="widefat" rows="3" cols="20" id="<?php echo $this->get_field_id('logged_in_text'); ?>" name="<?php echo $this->get_field_name('logged_in_text'); ?>" style="width:100%;"><?php echo $logged_in_text; ?></textarea>
138
+ </p>
139
+ </div>
140
+
141
+ <div style="float: right; width: 48%;">
142
+
143
+ <p>
144
+ <label for="<?php echo $this->get_field_id( 'show_avatar' ); ?>">
145
+ <input class="checkbox" type="checkbox" <?php checked( $instance['show_avatar'], true ); ?> id="<?php echo $this->get_field_id( 'show_avatar' ); ?>" name="<?php echo $this->get_field_name( 'show_avatar' ); ?>" /> <?php _e('Display avatar?', 'widgets-reloaded'); ?></label>
146
+ </p>
147
+ <p>
148
+ <label for="<?php echo $this->get_field_id( 'username_label' ); ?>"><?php _e('Username Label:', 'widgets-reloaded'); ?></label>
149
+ <input id="<?php echo $this->get_field_id( 'username_label' ); ?>" name="<?php echo $this->get_field_name( 'username_label' ); ?>" value="<?php echo $instance['username_label']; ?>" style="width:100%;" />
150
+ </p>
151
+ <p>
152
+ <label for="<?php echo $this->get_field_id( 'password_label' ); ?>"><?php _e('Password Label:', 'widgets-reloaded'); ?></label>
153
+ <input id="<?php echo $this->get_field_id( 'password_label' ); ?>" name="<?php echo $this->get_field_name( 'password_label' ); ?>" value="<?php echo $instance['password_label']; ?>" style="width:100%;" />
154
+ </p>
155
+
156
+ <p>
157
+ <label for="<?php echo $this->get_field_id( 'submit_text' ); ?>"><?php _e('Submit Text:', 'widgets-reloaded'); ?></label>
158
+ <input id="<?php echo $this->get_field_id( 'submit_text' ); ?>" name="<?php echo $this->get_field_name( 'submit_text' ); ?>" value="<?php echo $instance['submit_text']; ?>" style="width:100%;" />
159
+ </p>
160
+ <p>
161
+ <label for="<?php echo $this->get_field_id( 'remember_text' ); ?>"><?php _e('Remember User Text:', 'widgets-reloaded'); ?></label>
162
+ <input id="<?php echo $this->get_field_id( 'remember_text' ); ?>" name="<?php echo $this->get_field_name( 'remember_text' ); ?>" value="<?php echo $instance['remember_text']; ?>" style="width:100%;" />
163
+ </p>
164
+ </div>
165
+
166
+ <div>
167
+
168
+ </div>
169
+ <div style="clear:both;">&nbsp;</div>
170
+ <?php
171
+ }
172
+ }
173
+
174
+ ?>
components/widgets/users.php ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Creates a widget that allows users to list users of their site.
4
+ *
5
+ * @package Members
6
+ * @subpackage Components
7
+ */
8
+
9
+ class Members_Widget_Users extends WP_Widget {
10
+
11
+ function Members_Widget_Users() {
12
+ $widget_ops = array( 'classname' => 'users', 'description' => __('An advanced widget that gives you total control over the output of your user lists.','members') );
13
+ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'members-widget-users' );
14
+ $this->WP_Widget( 'members-widget-users', __('Users', 'members'), $widget_ops, $control_ops );
15
+ }
16
+
17
+ function widget( $args, $instance ) {
18
+
19
+ extract( $args, EXTR_SKIP );
20
+
21
+ $title = apply_filters('widget_title', $instance['title'] );
22
+ $limit = $instance['limit'];
23
+ $order = $instance['order'];
24
+ $orderby = $instance['orderby'];
25
+ $exclude = $instance['exclude'];
26
+ $include = $instance['include'];
27
+ $show_fullname = isset( $instance['show_fullname'] ) ? $instance['show_fullname'] : false;
28
+
29
+ $users = array(
30
+ 'limit' => $limit,
31
+ 'order' => $order,
32
+ 'orderby' => $orderby,
33
+ 'include' => $include,
34
+ 'exclude' => $exclude,
35
+ 'show_fullname' => $show_fullname,
36
+ 'echo' => 0,
37
+ );
38
+
39
+ echo $before_widget;
40
+
41
+ if ( $title )
42
+ echo "\n\t\t\t" . $before_title . $title . $after_title;
43
+
44
+ echo "\n\t\t\t" . '<ul class="xoxo users">';
45
+
46
+ echo "\n\t\t\t\t" . str_replace( array( "\r", "\n", "\t" ), '', members_list_users( $users ) );
47
+
48
+ echo "\n\t\t\t" . '</ul><!-- .xoxo .users -->';
49
+
50
+ echo $after_widget;
51
+ }
52
+
53
+ function update( $new_instance, $old_instance ) {
54
+ $instance = $old_instance;
55
+ $instance['title'] = strip_tags( $new_instance['title'] );
56
+ $instance['limit'] = strip_tags( $new_instance['limit'] );
57
+ $instance['include'] = strip_tags( $new_instance['include'] );
58
+ $instance['exclude'] = strip_tags( $new_instance['exclude'] );
59
+ $instance['order'] = $new_instance['order'];
60
+ $instance['orderby'] = $new_instance['orderby'];
61
+ $instance['show_fullname'] = $new_instance['show_fullname'];
62
+
63
+ return $instance;
64
+ }
65
+
66
+ function form( $instance ) {
67
+
68
+ //Defaults
69
+ $defaults = array( 'title' => __('Users', 'members'), 'show_fullname' => true, 'order' => 'ASC', 'orderby' => 'display_name' );
70
+ $instance = wp_parse_args( (array) $instance, $defaults ); ?>
71
+
72
+ <p>
73
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'members'); ?></label>
74
+ <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:99%;" />
75
+ </p>
76
+ <p>
77
+ <label for="<?php echo $this->get_field_id( 'limit' ); ?>"><?php _e('Limit:', 'members'); ?> <code>limit</code></label>
78
+ <input id="<?php echo $this->get_field_id( 'limit' ); ?>" name="<?php echo $this->get_field_name( 'limit' ); ?>" value="<?php echo $instance['limit']; ?>" style="width:99%;" />
79
+ </p>
80
+ <p>
81
+ <label for="<?php echo $this->get_field_id( 'order' ); ?>"><?php _e('Order:', 'widgets-reloaded'); ?> <code>order</code></label>
82
+ <select id="<?php echo $this->get_field_id( 'order' ); ?>" name="<?php echo $this->get_field_name( 'order' ); ?>" class="widefat" style="width:100%;">
83
+ <option <?php if ( 'ASC' == $instance['order'] ) echo 'selected="selected"'; ?>>ASC</option>
84
+ <option <?php if ( 'DESC' == $instance['order'] ) echo 'selected="selected"'; ?>>DESC</option>
85
+ </select>
86
+ </p>
87
+ <p>
88
+ <label for="<?php echo $this->get_field_id( 'orderby' ); ?>"><?php _e('Order By:', 'widgets-reloaded'); ?> <code>orderby</code></label>
89
+ <select id="<?php echo $this->get_field_id( 'orderby' ); ?>" name="<?php echo $this->get_field_name( 'orderby' ); ?>" class="widefat" style="width:100%;">
90
+ <option <?php if ( 'display_name' == $instance['orderby'] ) echo 'selected="selected"'; ?>>display_name</option>
91
+ <option <?php if ( 'ID' == $instance['orderby'] ) echo 'selected="selected"'; ?>>ID</option>
92
+ <option <?php if ( 'user_login' == $instance['orderby'] ) echo 'selected="selected"'; ?>>user_login</option>
93
+ </select>
94
+ </p>
95
+ <p>
96
+ <label for="<?php echo $this->get_field_id( 'include' ); ?>"><?php _e('Include:', 'members'); ?> <code>include</code></label>
97
+ <input id="<?php echo $this->get_field_id( 'include' ); ?>" name="<?php echo $this->get_field_name( 'include' ); ?>" value="<?php echo $instance['include']; ?>" style="width:99%;" />
98
+ </p>
99
+ <p>
100
+ <label for="<?php echo $this->get_field_id( 'exclude' ); ?>"><?php _e('Exclude:', 'members'); ?> <code>exclude</code></label>
101
+ <input id="<?php echo $this->get_field_id( 'exclude' ); ?>" name="<?php echo $this->get_field_name( 'exclude' ); ?>" value="<?php echo $instance['exclude']; ?>" style="width:99%;" />
102
+ </p>
103
+ <p>
104
+ <label for="<?php echo $this->get_field_id( 'show_fullname' ); ?>">
105
+ <input class="checkbox" type="checkbox" <?php checked( $instance['show_fullname'], true ); ?> id="<?php echo $this->get_field_id( 'show_fullname' ); ?>" name="<?php echo $this->get_field_name( 'show_fullname' ); ?>" /> <?php _e('Show full name?', 'members'); ?> <code>show_fullname</code></label>
106
+ </p>
107
+
108
+ <div style="clear:both;">&nbsp;</div>
109
+ <?php
110
+ }
111
+ }
112
+
113
+ ?>
docs/readme.html CHANGED
@@ -234,7 +234,7 @@ else {
234
 
235
  <h2 id="plugin-support">Plugin support</h2>
236
 
237
- <p>I run a WordPress community called <a href="http://themehybrid.com" title="Theme Hybrid">Theme Hybrid</a>, which is where I fully support all of my WordPress projects, including plugins. You can sign up for an account to get plugin support for a small yearly fee ($25 <acronym title="United States Dollars">USD</acronym> at the time of writing).</p>
238
 
239
  <p>I know. I know. You might not want to pay for support, but just consider it a donation to the project. To continue making cool, <acronym title="GNU General Public License">GPL</acronym>-licensed plugins and having the time to support them, I must pay the bills.</p>
240
 
@@ -244,7 +244,7 @@ else {
244
 
245
  <p>This plugin is copyrighted to <a href="http://justintadlock.com" title="Justin Tadlock">Justin Tadlock</a>.</p>
246
 
247
- <p>2009&thinsp;&ndash;&thinsp;2011 &copy; Justin Tadlock</p>
248
 
249
  </body>
250
  </html>
234
 
235
  <h2 id="plugin-support">Plugin support</h2>
236
 
237
+ <p>I run a WordPress community called <a href="http://themehybrid.com" title="Theme Hybrid">Theme Hybrid</a>, which is where I fully support all of my WordPress projects, including plugins. You can sign up for an account to get plugin support for a small yearly fee ($29 <acronym title="United States Dollars">USD</acronym> at the time of writing).</p>
238
 
239
  <p>I know. I know. You might not want to pay for support, but just consider it a donation to the project. To continue making cool, <acronym title="GNU General Public License">GPL</acronym>-licensed plugins and having the time to support them, I must pay the bills.</p>
240
 
244
 
245
  <p>This plugin is copyrighted to <a href="http://justintadlock.com" title="Justin Tadlock">Justin Tadlock</a>.</p>
246
 
247
+ <p>2009&thinsp;&ndash;&thinsp;2012 &copy; Justin Tadlock</p>
248
 
249
  </body>
250
  </html>
includes/admin-bar.php CHANGED
@@ -1,36 +1,36 @@
1
- <?php
2
- /**
3
- * Functions for modifying the WordPress admin bar.
4
- *
5
- * @package Members
6
- * @subpackage Functions
7
- */
8
-
9
- /* Hook the members admin bar to 'wp_before_admin_bar_render'. */
10
- add_action( 'wp_before_admin_bar_render', 'members_admin_bar' );
11
-
12
- /**
13
- * Adds new menu items to the WordPress admin bar.
14
- *
15
- * @since 0.2.0
16
- * @global object $wp_admin_bar
17
- */
18
- function members_admin_bar() {
19
- global $wp_admin_bar;
20
-
21
- /* Check if the current user can 'create_roles'. */
22
- if ( current_user_can( 'create_roles' ) ) {
23
-
24
- /* Add a 'Role' menu item as a sub-menu item of the new content menu. */
25
- $wp_admin_bar->add_menu(
26
- array(
27
- 'id' => 'members-new-role',
28
- 'parent' => 'new-content',
29
- 'title' => esc_attr__( 'Role', 'members' ),
30
- 'href' => admin_url( 'users.php?page=role-new' )
31
- )
32
- );
33
- }
34
- }
35
-
36
  ?>
1
+ <?php
2
+ /**
3
+ * Functions for modifying the WordPress admin bar.
4
+ *
5
+ * @package Members
6
+ * @subpackage Functions
7
+ */
8
+
9
+ /* Hook the members admin bar to 'wp_before_admin_bar_render'. */
10
+ add_action( 'wp_before_admin_bar_render', 'members_admin_bar' );
11
+
12
+ /**
13
+ * Adds new menu items to the WordPress admin bar.
14
+ *
15
+ * @since 0.2.0
16
+ * @global object $wp_admin_bar
17
+ */
18
+ function members_admin_bar() {
19
+ global $wp_admin_bar;
20
+
21
+ /* Check if the current user can 'create_roles'. */
22
+ if ( current_user_can( 'create_roles' ) ) {
23
+
24
+ /* Add a 'Role' menu item as a sub-menu item of the new content menu. */
25
+ $wp_admin_bar->add_menu(
26
+ array(
27
+ 'id' => 'members-new-role',
28
+ 'parent' => 'new-content',
29
+ 'title' => esc_attr__( 'Role', 'members' ),
30
+ 'href' => admin_url( 'users.php?page=role-new' )
31
+ )
32
+ );
33
+ }
34
+ }
35
+
36
  ?>
includes/capabilities.php CHANGED
@@ -1,245 +1,245 @@
1
- <?php
2
- /**
3
- * @package Members
4
- * @subpackage Includes
5
- */
6
-
7
- /* Disables the old levels from being seen. If you need them, use remove_filter() to add display back. */
8
- add_filter( 'members_get_capabilities', 'members_remove_old_levels' );
9
-
10
- /**
11
- * The function that makes this plugin what it is. It returns all of our capabilities in a nicely-formatted,
12
- * alphabetized array with no duplicate capabilities. It pulls from three different functions to make sure
13
- * we get all of the capabilities that we need for use in the plugin components.
14
- *
15
- * @since 0.1.0
16
- * @uses members_get_default_capabilities() Gets an array of WP's default capabilities.
17
- * @uses members_get_role_capabilities() Gets an array of all the capabilities currently mapped to a role.
18
- * @uses members_get_additional_capabilities() Gets an array of capabilities added by the plugin.
19
- * @return array $capabilities An array containing all of the capabilities.
20
- */
21
- function members_get_capabilities() {
22
-
23
- /* Capabilities array. */
24
- $capabilities = array();
25
-
26
- /* Grab the default capabilities (these are set by the plugin so the user doesn't lose them). */
27
- $default_caps = members_get_default_capabilities();
28
-
29
- /* Get the user capabilities that are already set. */
30
- $role_caps = members_get_role_capabilities();
31
-
32
- /* Gets capabilities added by the plugin. */
33
- $plugin_caps = members_get_additional_capabilities();
34
-
35
- /* Merge all the capability arrays (current role caps, plugin caps, and default WP caps) together. */
36
- $capabilities = array_merge( $default_caps, $role_caps, $plugin_caps );
37
-
38
- /* Apply filters to the array of capabilities. Devs should respect the available capabilities and return an array. */
39
- $capabilities = apply_filters( 'members_get_capabilities', $capabilities );
40
-
41
- /* Sort the capabilities by name so they're easier to read when shown on the screen. */
42
- sort( $capabilities );
43
-
44
- /* Return the array of capabilities, making sure we have no duplicates. */
45
- return array_unique( $capabilities );
46
- }
47
-
48
- /**
49
- * Gets an array of capabilities according to each user role. Each role will return its caps, which are then
50
- * added to the overall $capabilities array.
51
- *
52
- * Note that if no role has the capability, it technically no longer exists. Since this could be a problem with
53
- * folks accidentally deleting the default WordPress capabilities, the members_default_capabilities() will
54
- * return all the defaults.
55
- *
56
- * @since 0.1.0
57
- * @return array $capabilities All the capabilities of all the user roles.
58
- * @global array $wp_roles Holds all the roles for the installation.
59
- */
60
- function members_get_role_capabilities() {
61
- global $wp_roles;
62
-
63
- /* Set up an empty capabilities array. */
64
- $capabilities = array();
65
-
66
- /* Loop through each role object because we need to get the caps. */
67
- foreach ( $wp_roles->role_objects as $key => $role ) {
68
-
69
- /* Roles without capabilities will cause an error, so we need to check if $role->capabilities is an array. */
70
- if ( is_array( $role->capabilities ) ) {
71
-
72
- /* Loop through the role's capabilities and add them to the $capabilities array. */
73
- foreach ( $role->capabilities as $cap => $grant )
74
- $capabilities[$cap] = $cap;
75
- }
76
- }
77
-
78
- /* Return the capabilities array, making sure there are no duplicates. */
79
- return array_unique( $capabilities );
80
- }
81
-
82
- /**
83
- * Additional capabilities provided by the Members plugin that gives users permissions to handle certain features
84
- * of the plugin.
85
- *
86
- * @todo Integrate 'edit_roles' into the settings. It should be a priority on initial setup.
87
- * @todo Move each capability within its component. Use the 'members_get_capabilities' filter hook to add them.
88
- *
89
- * @since 0.1.0
90
- * @return array $capabilities
91
- */
92
- function members_get_additional_capabilities() {
93
-
94
- $capabilities = array(
95
- 'list_roles', // Ability to view roles list
96
- 'create_roles', // Ability to create new roles
97
- 'delete_roles', // Ability to delete roles
98
- 'edit_roles', // Ability to edit a role's caps
99
- 'restrict_content' // Ability to restrict content (content permissions component)
100
- );
101
-
102
- return $capabilities;
103
- }
104
-
105
- /**
106
- * Make sure we keep the default capabilities in case users screw 'em up. A user could easily remove a
107
- * useful WordPress capability from all roles. When this happens, the capability is no longer stored in any of
108
- * the roles, so it basically doesn't exist. This function will house all of the default WordPress capabilities in
109
- * case this scenario comes into play.
110
- *
111
- * For those reading this note, yes, I did "accidentally" remove all capabilities from my administrator account
112
- * when developing this plugin. And yes, that was fun putting back together. ;)
113
- *
114
- * The Codex has a list of all the defaults:
115
- * @link http://codex.wordpress.org/Roles_and_Capabilities#Capabilities
116
- *
117
- * @since 0.1
118
- * @return array $defaults All the default WordPress capabilities.
119
- */
120
- function members_get_default_capabilities() {
121
-
122
- /* Create an array of all the default WordPress capabilities so the user doesn't accidentally get rid of them. */
123
- $defaults = array(
124
- 'activate_plugins',
125
- 'add_users',
126
- 'create_users',
127
- 'delete_others_pages',
128
- 'delete_others_posts',
129
- 'delete_pages',
130
- 'delete_plugins',
131
- 'delete_posts',
132
- 'delete_private_pages',
133
- 'delete_private_posts',
134
- 'delete_published_pages',
135
- 'delete_published_posts',
136
- 'delete_users',
137
- 'edit_dashboard',
138
- 'edit_files',
139
- 'edit_others_pages',
140
- 'edit_others_posts',
141
- 'edit_pages',
142
- 'edit_plugins',
143
- 'edit_posts',
144
- 'edit_private_pages',
145
- 'edit_private_posts',
146
- 'edit_published_pages',
147
- 'edit_published_posts',
148
- 'edit_theme_options',
149
- 'edit_themes',
150
- 'edit_users',
151
- 'import',
152
- 'install_plugins',
153
- 'install_themes',
154
- 'list_users',
155
- 'manage_categories',
156
- 'manage_links',
157
- 'manage_options',
158
- 'moderate_comments',
159
- 'promote_users',
160
- 'publish_pages',
161
- 'publish_posts',
162
- 'read',
163
- 'read_private_pages',
164
- 'read_private_posts',
165
- 'remove_users',
166
- 'switch_themes',
167
- 'unfiltered_html',
168
- 'unfiltered_upload',
169
- 'update_core',
170
- 'update_plugins',
171
- 'update_themes',
172
- 'upload_files'
173
- );
174
-
175
- /* Return the array of default capabilities. */
176
- return $defaults;
177
- }
178
-
179
- /**
180
- * Checks if a specific capability has been given to at least one role. If it has, return true. Else, return false.
181
- *
182
- * @since 0.1.0
183
- * @uses members_get_role_capabilities() Checks for capability in array of role caps.
184
- * @param string $cap Name of the capability to check for.
185
- * @return true|false bool Whether the capability has been given to a role.
186
- */
187
- function members_check_for_cap( $cap = '' ) {
188
-
189
- /* Without a capability, we have nothing to check for. Just return false. */
190
- if ( !$cap )
191
- return false;
192
-
193
- /* Gets capabilities that are currently mapped to a role. */
194
- $caps = members_get_role_capabilities();
195
-
196
- /* If the capability has been given to at least one role, return true. */
197
- if ( in_array( $cap, $caps ) )
198
- return true;
199
-
200
- /* If no role has been given the capability, return false. */
201
- return false;
202
- }
203
-
204
- /**
205
- * Old WordPress levels system. This is mostly useful for filtering out the levels when shown in admin
206
- * screen. Plugins shouldn't rely on these levels to create permissions for users. They should move to the
207
- * newer system of checking for a specific capability instead.
208
- *
209
- * @since 0.1.0
210
- * @return array Old user levels.
211
- */
212
- function members_get_old_levels() {
213
- return array( 'level_0', 'level_1', 'level_2', 'level_3', 'level_4', 'level_5', 'level_6', 'level_7', 'level_8', 'level_9', 'level_10' );
214
- }
215
-
216
- /**
217
- * Get rid of levels since these are mostly useless in newer versions of WordPress.
218
- *
219
- * To remove this filter:
220
- * remove_filter( 'members_get_capabilities', 'members_remove_old_levels' );
221
- *
222
- * @since 0.1.0
223
- * @param $capabilities array All of the combined capabilities.
224
- * @return $capabilities array Capabilities with old user levels removed.
225
- */
226
- function members_remove_old_levels( $capabilities ) {
227
- return array_diff( $capabilities, members_get_old_levels() );
228
- }
229
-
230
- /**
231
- * Returns an array of capabilities that should be set on the New Role admin screen. By default, the only
232
- * capability checked is 'read' because it's needed for users of the role to view their profile in the admin.
233
- *
234
- * @since 0.1.0
235
- * @return $capabilities array Default capabilities for new roles.
236
- */
237
- function members_new_role_default_capabilities() {
238
-
239
- $capabilities = array( 'read' );
240
-
241
- /* Filters should return an array. */
242
- return apply_filters( 'members_new_role_default_capabilities', $capabilities );
243
- }
244
-
245
  ?>
1
+ <?php
2
+ /**
3
+ * @package Members
4
+ * @subpackage Includes
5
+ */
6
+
7
+ /* Disables the old levels from being seen. If you need them, use remove_filter() to add display back. */
8
+ add_filter( 'members_get_capabilities', 'members_remove_old_levels' );
9
+
10
+ /**
11
+ * The function that makes this plugin what it is. It returns all of our capabilities in a nicely-formatted,
12
+ * alphabetized array with no duplicate capabilities. It pulls from three different functions to make sure
13
+ * we get all of the capabilities that we need for use in the plugin components.
14
+ *
15
+ * @since 0.1.0
16
+ * @uses members_get_default_capabilities() Gets an array of WP's default capabilities.
17
+ * @uses members_get_role_capabilities() Gets an array of all the capabilities currently mapped to a role.
18
+ * @uses members_get_additional_capabilities() Gets an array of capabilities added by the plugin.
19
+ * @return array $capabilities An array containing all of the capabilities.
20
+ */
21
+ function members_get_capabilities() {
22
+
23
+ /* Capabilities array. */
24
+ $capabilities = array();
25
+
26
+ /* Grab the default capabilities (these are set by the plugin so the user doesn't lose them). */
27
+ $default_caps = members_get_default_capabilities();
28
+
29
+ /* Get the user capabilities that are already set. */
30
+ $role_caps = members_get_role_capabilities();
31
+
32
+ /* Gets capabilities added by the plugin. */
33
+ $plugin_caps = members_get_additional_capabilities();
34
+
35
+ /* Merge all the capability arrays (current role caps, plugin caps, and default WP caps) together. */
36
+ $capabilities = array_merge( $default_caps, $role_caps, $plugin_caps );
37
+
38
+ /* Apply filters to the array of capabilities. Devs should respect the available capabilities and return an array. */
39
+ $capabilities = apply_filters( 'members_get_capabilities', $capabilities );
40
+
41
+ /* Sort the capabilities by name so they're easier to read when shown on the screen. */
42
+ sort( $capabilities );
43
+
44
+ /* Return the array of capabilities, making sure we have no duplicates. */
45
+ return array_unique( $capabilities );
46
+ }
47
+
48
+ /**
49
+ * Gets an array of capabilities according to each user role. Each role will return its caps, which are then
50
+ * added to the overall $capabilities array.
51
+ *
52
+ * Note that if no role has the capability, it technically no longer exists. Since this could be a problem with
53
+ * folks accidentally deleting the default WordPress capabilities, the members_default_capabilities() will
54
+ * return all the defaults.
55
+ *
56
+ * @since 0.1.0
57
+ * @return array $capabilities All the capabilities of all the user roles.
58
+ * @global array $wp_roles Holds all the roles for the installation.
59
+ */
60
+ function members_get_role_capabilities() {
61
+ global $wp_roles;
62
+
63
+ /* Set up an empty capabilities array. */
64
+ $capabilities = array();
65
+
66
+ /* Loop through each role object because we need to get the caps. */
67
+ foreach ( $wp_roles->role_objects as $key => $role ) {
68
+
69
+ /* Roles without capabilities will cause an error, so we need to check if $role->capabilities is an array. */
70
+ if ( is_array( $role->capabilities ) ) {
71
+
72
+ /* Loop through the role's capabilities and add them to the $capabilities array. */
73
+ foreach ( $role->capabilities as $cap => $grant )
74
+ $capabilities[$cap] = $cap;
75
+ }
76
+ }
77
+
78
+ /* Return the capabilities array, making sure there are no duplicates. */
79
+ return array_unique( $capabilities );
80
+ }
81
+
82
+ /**
83
+ * Additional capabilities provided by the Members plugin that gives users permissions to handle certain features
84
+ * of the plugin.
85
+ *
86
+ * @todo Integrate 'edit_roles' into the settings. It should be a priority on initial setup.
87
+ * @todo Move each capability within its component. Use the 'members_get_capabilities' filter hook to add them.
88
+ *
89
+ * @since 0.1.0
90
+ * @return array $capabilities
91
+ */
92
+ function members_get_additional_capabilities() {
93
+
94
+ $capabilities = array(
95
+ 'list_roles', // Ability to view roles list
96
+ 'create_roles', // Ability to create new roles
97
+ 'delete_roles', // Ability to delete roles
98
+ 'edit_roles', // Ability to edit a role's caps
99
+ 'restrict_content' // Ability to restrict content (content permissions component)
100
+ );
101
+
102
+ return $capabilities;
103
+ }
104
+
105
+ /**
106
+ * Make sure we keep the default capabilities in case users screw 'em up. A user could easily remove a
107
+ * useful WordPress capability from all roles. When this happens, the capability is no longer stored in any of
108
+ * the roles, so it basically doesn't exist. This function will house all of the default WordPress capabilities in
109
+ * case this scenario comes into play.
110
+ *
111
+ * For those reading this note, yes, I did "accidentally" remove all capabilities from my administrator account
112
+ * when developing this plugin. And yes, that was fun putting back together. ;)
113
+ *
114
+ * The Codex has a list of all the defaults:
115
+ * @link http://codex.wordpress.org/Roles_and_Capabilities#Capabilities
116
+ *
117
+ * @since 0.1
118
+ * @return array $defaults All the default WordPress capabilities.
119
+ */
120
+ function members_get_default_capabilities() {
121
+
122
+ /* Create an array of all the default WordPress capabilities so the user doesn't accidentally get rid of them. */
123
+ $defaults = array(
124
+ 'activate_plugins',
125
+ 'add_users',
126
+ 'create_users',
127
+ 'delete_others_pages',
128
+ 'delete_others_posts',
129
+ 'delete_pages',
130
+ 'delete_plugins',
131
+ 'delete_posts',
132
+ 'delete_private_pages',
133
+ 'delete_private_posts',
134
+ 'delete_published_pages',
135
+ 'delete_published_posts',
136
+ 'delete_users',
137
+ 'edit_dashboard',
138
+ 'edit_files',
139
+ 'edit_others_pages',
140
+ 'edit_others_posts',
141
+ 'edit_pages',
142
+ 'edit_plugins',
143
+ 'edit_posts',
144
+ 'edit_private_pages',
145
+ 'edit_private_posts',
146
+ 'edit_published_pages',
147
+ 'edit_published_posts',
148
+ 'edit_theme_options',
149
+ 'edit_themes',
150
+ 'edit_users',
151
+ 'import',
152
+ 'install_plugins',
153
+ 'install_themes',
154
+ 'list_users',
155
+ 'manage_categories',
156
+ 'manage_links',
157
+ 'manage_options',
158
+ 'moderate_comments',
159
+ 'promote_users',
160
+ 'publish_pages',
161
+ 'publish_posts',
162
+ 'read',
163
+ 'read_private_pages',
164
+ 'read_private_posts',
165
+ 'remove_users',
166
+ 'switch_themes',
167
+ 'unfiltered_html',
168
+ 'unfiltered_upload',
169
+ 'update_core',
170
+ 'update_plugins',
171
+ 'update_themes',
172
+ 'upload_files'
173
+ );
174
+
175
+ /* Return the array of default capabilities. */
176
+ return $defaults;
177
+ }
178
+
179
+ /**
180
+ * Checks if a specific capability has been given to at least one role. If it has, return true. Else, return false.
181
+ *
182
+ * @since 0.1.0
183
+ * @uses members_get_role_capabilities() Checks for capability in array of role caps.
184
+ * @param string $cap Name of the capability to check for.
185
+ * @return true|false bool Whether the capability has been given to a role.
186
+ */
187
+ function members_check_for_cap( $cap = '' ) {
188
+
189
+ /* Without a capability, we have nothing to check for. Just return false. */
190
+ if ( !$cap )
191
+ return false;
192
+
193
+ /* Gets capabilities that are currently mapped to a role. */
194
+ $caps = members_get_role_capabilities();
195
+
196
+ /* If the capability has been given to at least one role, return true. */
197
+ if ( in_array( $cap, $caps ) )
198
+ return true;
199
+
200
+ /* If no role has been given the capability, return false. */
201
+ return false;
202
+ }
203
+
204
+ /**
205
+ * Old WordPress levels system. This is mostly useful for filtering out the levels when shown in admin
206
+ * screen. Plugins shouldn't rely on these levels to create permissions for users. They should move to the
207
+ * newer system of checking for a specific capability instead.
208
+ *
209
+ * @since 0.1.0
210
+ * @return array Old user levels.
211
+ */
212
+ function members_get_old_levels() {
213
+ return array( 'level_0', 'level_1', 'level_2', 'level_3', 'level_4', 'level_5', 'level_6', 'level_7', 'level_8', 'level_9', 'level_10' );
214
+ }
215
+
216
+ /**
217
+ * Get rid of levels since these are mostly useless in newer versions of WordPress.
218
+ *
219
+ * To remove this filter:
220
+ * remove_filter( 'members_get_capabilities', 'members_remove_old_levels' );
221
+ *
222
+ * @since 0.1.0
223
+ * @param $capabilities array All of the combined capabilities.
224
+ * @return $capabilities array Capabilities with old user levels removed.
225
+ */
226
+ function members_remove_old_levels( $capabilities ) {
227
+ return array_diff( $capabilities, members_get_old_levels() );
228
+ }
229
+
230
+ /**
231
+ * Returns an array of capabilities that should be set on the New Role admin screen. By default, the only
232
+ * capability checked is 'read' because it's needed for users of the role to view their profile in the admin.
233
+ *
234
+ * @since 0.1.0
235
+ * @return $capabilities array Default capabilities for new roles.
236
+ */
237
+ function members_new_role_default_capabilities() {
238
+
239
+ $capabilities = array( 'read' );
240
+
241
+ /* Filters should return an array. */
242
+ return apply_filters( 'members_new_role_default_capabilities', $capabilities );
243
+ }
244
+
245
  ?>
includes/content-permissions.php CHANGED
@@ -1,152 +1,152 @@
1
- <?php
2
- /**
3
- * Handles permissions for post content, post excerpts, and post comments. This is based on whether a user
4
- * has permission to view a post according to the settings provided by the plugin.
5
- *
6
- * @package Members
7
- * @subpackage Functions
8
- */
9
-
10
- /* Enable the content permissions features. */
11
- add_action( 'after_setup_theme', 'members_enable_content_permissions', 1 );
12
-
13
- /**
14
- * Adds required filters for the content permissions feature if it is active.
15
- *
16
- * @since 0.2.0
17
- */
18
- function members_enable_content_permissions() {
19
-
20
- /* Only add filters if the content permissions feature is enabled and we're not in the admin. */
21
- if ( members_get_setting( 'content_permissions' ) && !is_admin() ) {
22
-
23
- /* Filter the content and exerpts. */
24
- add_filter( 'the_content', 'members_content_permissions_protect' );
25
- add_filter( 'get_the_excerpt', 'members_content_permissions_protect' );
26
- add_filter( 'the_excerpt', 'members_content_permissions_protect' );
27
- add_filter( 'the_content_feed', 'members_content_permissions_protect' );
28
- add_filter( 'comment_text_rss', 'members_content_permissions_protect' );
29
-
30
- /* Filter the comments template to make sure comments aren't shown to users without access. */
31
- add_filter( 'comments_template', 'members_content_permissions_comments' );
32
-
33
- /* Use WP formatting filters on the post error message. */
34
- add_filter( 'members_post_error_message', 'wptexturize' );
35
- add_filter( 'members_post_error_message', 'convert_smilies' );
36
- add_filter( 'members_post_error_message', 'convert_chars' );
37
- add_filter( 'members_post_error_message', 'wpautop' );
38
- add_filter( 'members_post_error_message', 'shortcode_unautop' );
39
- add_filter( 'members_post_error_message', 'do_shortcode' );
40
- }
41
- }
42
-
43
- /**
44
- * Denies/Allows access to view post content depending on whether a user has permission to view the content.
45
- *
46
- * @since 0.1.0
47
- * @param string $content The content of a post.
48
- * @param string $content The content of a post or an error message.
49
- */
50
- function members_content_permissions_protect( $content ) {
51
-
52
- /* If the current user can view the post, return the post content. */
53
- if ( members_can_current_user_view_post( get_the_ID() ) )
54
- return $content;
55
-
56
- /* Return an error message at this point. */
57
- return members_get_post_error_message( get_the_ID() );
58
- }
59
-
60
- /**
61
- * Disables the comments template if a user doesn't have permission to view the post the comments are
62
- * associated with.
63
- *
64
- * @since 0.1.0
65
- * @param string $template The Comments template.
66
- * @return string $template
67
- */
68
- function members_content_permissions_comments( $template ) {
69
-
70
- /* Check if the current user has permission to view the comments' post. */
71
- if ( !members_can_current_user_view_post( get_queried_object_id() ) ) {
72
-
73
- /* Look for a 'comments-no-access.php' template in the parent and child theme. */
74
- $has_template = locate_template( array( 'comments-no-access.php' ) );
75
-
76
- /* If the template was found, use it. Otherwise, fall back to the Members comments.php template. */
77
- $template = ( !empty( $has_template ) ? $has_template : MEMBERS_INCLUDES . 'comments.php' );
78
-
79
- /* Allow devs to overwrite the comments template. */
80
- $template = apply_filters( 'members_comments_template', $template );
81
- }
82
-
83
- /* Return the comments template filename. */
84
- return $template;
85
- }
86
-
87
- /**
88
- * Gets the error message to display for users who do not have access to view the given post. The function first
89
- * checks to see if a custom error message has been written for the specific post. If not, it loads the error
90
- * message set on the plugins settings page.
91
- *
92
- * @since 0.2.0
93
- * @param int $post_id The ID of the post to get the error message for.
94
- * @return string $return The error message.
95
- */
96
- function members_get_post_error_message( $post_id ) {
97
-
98
- /* Get the error message for the specific post. */
99
- $error_message = get_post_meta( $post_id, '_members_access_error', true );
100
-
101
- /* If an error message is found, return it. */
102
- if ( !empty( $error_message ) )
103
- $return = $error_message;
104
-
105
- /* If no error message is found, return the default message. */
106
- else
107
- $return = members_get_setting( 'content_permissions_error' );
108
-
109
- /* Return the error message. */
110
- return apply_filters( 'members_post_error_message', $return );
111
- }
112
-
113
- /**
114
- * Converts the meta values of the old '_role' post meta key to the newer '_members_access_role' meta
115
- * key. The reason for this change is to avoid any potential conflicts with other plugins/themes. We're
116
- * now using a meta key that is extremely specific to the Members plugin.
117
- *
118
- * @since 0.2.0
119
- * @param int $post_id The ID of the post to convert the post meta for.
120
- * @return array|bool $old_roles|false Returns the array of old roles or false for everything else.
121
- */
122
- function members_convert_old_post_meta( $post_id ) {
123
-
124
- /* Check if there are any meta values for the '_role' meta key. */
125
- $old_roles = get_post_meta( $post_id, '_role', false );
126
-
127
- /* If roles were found, let's convert them. */
128
- if ( !empty( $old_roles ) ) {
129
-
130
- /* Delete the old '_role' post meta. */
131
- delete_post_meta( $post_id, '_role' );
132
-
133
- /* Check if there are any roles for the '_members_access_role' meta key. */
134
- $new_roles = get_post_meta( $post_id, '_members_access_role', false );
135
-
136
- /* If new roles were found, don't do any conversion. */
137
- if ( empty( $new_roles ) ) {
138
-
139
- /* Loop through the old meta values for '_role' and add them to the new '_members_access_role' meta key. */
140
- foreach ( $old_roles as $role )
141
- add_post_meta( $post_id, '_members_access_role', $role, false );
142
-
143
- /* Return the array of roles. */
144
- return $old_roles;
145
- }
146
- }
147
-
148
- /* Return false if we get to this point. */
149
- return false;
150
- }
151
-
152
  ?>
1
+ <?php
2
+ /**
3
+ * Handles permissions for post content, post excerpts, and post comments. This is based on whether a user
4
+ * has permission to view a post according to the settings provided by the plugin.
5
+ *
6
+ * @package Members
7
+ * @subpackage Functions
8
+ */
9
+
10
+ /* Enable the content permissions features. */
11
+ add_action( 'after_setup_theme', 'members_enable_content_permissions', 1 );
12
+
13
+ /**
14
+ * Adds required filters for the content permissions feature if it is active.
15
+ *
16
+ * @since 0.2.0
17
+ */
18
+ function members_enable_content_permissions() {
19
+
20
+ /* Only add filters if the content permissions feature is enabled and we're not in the admin. */
21
+ if ( members_get_setting( 'content_permissions' ) && !is_admin() ) {
22
+
23
+ /* Filter the content and exerpts. */
24
+ add_filter( 'the_content', 'members_content_permissions_protect' );
25
+ add_filter( 'get_the_excerpt', 'members_content_permissions_protect' );
26
+ add_filter( 'the_excerpt', 'members_content_permissions_protect' );
27
+ add_filter( 'the_content_feed', 'members_content_permissions_protect' );
28
+ add_filter( 'comment_text_rss', 'members_content_permissions_protect' );
29
+
30
+ /* Filter the comments template to make sure comments aren't shown to users without access. */
31
+ add_filter( 'comments_template', 'members_content_permissions_comments' );
32
+
33
+ /* Use WP formatting filters on the post error message. */
34
+ add_filter( 'members_post_error_message', 'wptexturize' );
35
+ add_filter( 'members_post_error_message', 'convert_smilies' );
36
+ add_filter( 'members_post_error_message', 'convert_chars' );
37
+ add_filter( 'members_post_error_message', 'wpautop' );
38
+ add_filter( 'members_post_error_message', 'shortcode_unautop' );
39
+ add_filter( 'members_post_error_message', 'do_shortcode' );
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Denies/Allows access to view post content depending on whether a user has permission to view the content.
45
+ *
46
+ * @since 0.1.0
47
+ * @param string $content The content of a post.
48
+ * @param string $content The content of a post or an error message.
49
+ */
50
+ function members_content_permissions_protect( $content ) {
51
+
52
+ /* If the current user can view the post, return the post content. */
53
+ if ( members_can_current_user_view_post( get_the_ID() ) )
54
+ return $content;
55
+
56
+ /* Return an error message at this point. */
57
+ return members_get_post_error_message( get_the_ID() );
58
+ }
59
+
60
+ /**
61
+ * Disables the comments template if a user doesn't have permission to view the post the comments are
62
+ * associated with.
63
+ *
64
+ * @since 0.1.0
65
+ * @param string $template The Comments template.
66
+ * @return string $template
67
+ */
68
+ function members_content_permissions_comments( $template ) {
69
+
70
+ /* Check if the current user has permission to view the comments' post. */
71
+ if ( !members_can_current_user_view_post( get_queried_object_id() ) ) {
72
+
73
+ /* Look for a 'comments-no-access.php' template in the parent and child theme. */
74
+ $has_template = locate_template( array( 'comments-no-access.php' ) );
75
+
76
+ /* If the template was found, use it. Otherwise, fall back to the Members comments.php template. */
77
+ $template = ( !empty( $has_template ) ? $has_template : MEMBERS_INCLUDES . 'comments.php' );
78
+
79
+ /* Allow devs to overwrite the comments template. */
80
+ $template = apply_filters( 'members_comments_template', $template );
81
+ }
82
+
83
+ /* Return the comments template filename. */
84
+ return $template;
85
+ }
86
+
87
+ /**
88
+ * Gets the error message to display for users who do not have access to view the given post. The function first
89
+ * checks to see if a custom error message has been written for the specific post. If not, it loads the error
90
+ * message set on the plugins settings page.
91
+ *
92
+ * @since 0.2.0
93
+ * @param int $post_id The ID of the post to get the error message for.
94
+ * @return string $return The error message.
95
+ */
96
+ function members_get_post_error_message( $post_id ) {
97
+
98
+ /* Get the error message for the specific post. */
99
+ $error_message = get_post_meta( $post_id, '_members_access_error', true );
100
+
101
+ /* If an error message is found, return it. */
102
+ if ( !empty( $error_message ) )
103
+ $return = $error_message;
104
+
105
+ /* If no error message is found, return the default message. */
106
+ else
107
+ $return = members_get_setting( 'content_permissions_error' );
108
+
109
+ /* Return the error message. */
110
+ return apply_filters( 'members_post_error_message', $return );
111
+ }
112
+
113
+ /**
114
+ * Converts the meta values of the old '_role' post meta key to the newer '_members_access_role' meta
115
+ * key. The reason for this change is to avoid any potential conflicts with other plugins/themes. We're
116
+ * now using a meta key that is extremely specific to the Members plugin.
117
+ *
118
+ * @since 0.2.0
119
+ * @param int $post_id The ID of the post to convert the post meta for.
120
+ * @return array|bool $old_roles|false Returns the array of old roles or false for everything else.
121
+ */
122
+ function members_convert_old_post_meta( $post_id ) {
123
+
124
+ /* Check if there are any meta values for the '_role' meta key. */
125
+ $old_roles = get_post_meta( $post_id, '_role', false );
126
+
127
+ /* If roles were found, let's convert them. */
128
+ if ( !empty( $old_roles ) ) {
129
+
130
+ /* Delete the old '_role' post meta. */
131
+ delete_post_meta( $post_id, '_role' );
132
+
133
+ /* Check if there are any roles for the '_members_access_role' meta key. */
134
+ $new_roles = get_post_meta( $post_id, '_members_access_role', false );
135
+
136
+ /* If new roles were found, don't do any conversion. */
137
+ if ( empty( $new_roles ) ) {
138
+
139
+ /* Loop through the old meta values for '_role' and add them to the new '_members_access_role' meta key. */
140
+ foreach ( $old_roles as $role )
141
+ add_post_meta( $post_id, '_members_access_role', $role, false );
142
+
143
+ /* Return the array of roles. */
144
+ return $old_roles;
145
+ }
146
+ }
147
+
148
+ /* Return false if we get to this point. */
149
+ return false;
150
+ }
151
+
152
  ?>
includes/deprecated.php CHANGED
@@ -1,98 +1,98 @@
1
- <?php
2
- /**
3
- * Deprecated functions that are being phased out completely or should be replaced with other functions.
4
- *
5
- * @package Members
6
- * @subpackage Functions
7
- */
8
-
9
- /**
10
- * @since 0.1.0
11
- * @deprecated 0.2.0 This is theme functionality. Let's just leave it to themes.
12
- */
13
- function members_author_profile() {
14
- _deprecated_function( __FUNCTION__, '0.2.0', '' ); ?>
15
-
16
- <div class="author-profile vcard">
17
- <?php echo get_avatar( get_the_author_meta( 'user_email' ), '100', '', get_the_author_meta( 'display_name' ) ); ?>
18
- <h4 class="author-name fn n"><?php the_author_posts_link(); ?></h4>
19
- <p class="author-description author-bio">
20
- <?php echo the_author_meta( 'description' ); ?>
21
- </p>
22
- </div>
23
- <?php
24
- }
25
-
26
- /**
27
- * @since 0.1.0
28
- * @deprecated 0.2.0 Use wp_login_form() instead.
29
- */
30
- function members_login_form() {
31
- _deprecated_function( __FUNCTION__, '0.2.0', 'wp_login_form' );
32
-
33
- wp_login_form( array( 'echo' => true ) );
34
- }
35
-
36
- /**
37
- * @since 0.1.0
38
- * @deprecated 0.2.0
39
- */
40
- function members_get_login_form() {
41
- _deprecated_function( __FUNCTION__, '0.2.0', 'wp_login_form' );
42
-
43
- wp_login_form( array( 'echo' => false ) );
44
- }
45
-
46
- if ( !function_exists( 'has_role' ) ) {
47
-
48
- /**
49
- * @since 0.1.0
50
- * @deprecated 0.2.0
51
- */
52
- function has_role( $role, $user_id ) {
53
- _deprecated_function( __FUNCTION__, '0.2.0', 'user_can' );
54
-
55
- return user_can( $user_id, $role );
56
- }
57
- }
58
-
59
- if ( !function_exists( 'current_user_has_role' ) ) {
60
-
61
- /**
62
- * @since 0.1.0
63
- * @deprecated 0.2.0
64
- */
65
- function current_user_has_role() {
66
- _deprecated_function( __FUNCTION__, '0.2.0', 'current_user_can' );
67
-
68
- return current_user_can( $role );
69
- }
70
- }
71
-
72
- /**
73
- * @since 0.1.0
74
- * @deprecated 0.2.0
75
- */
76
- function members_get_avatar_shortcode( $attr ) {
77
- _deprecated_function( __FUNCTION__, '0.2.0', '' );
78
-
79
- /* Set up our default attributes. */
80
- $defaults = array(
81
- 'id' => '',
82
- 'email' => '',
83
- 'size' => 96,
84
- 'default' => '',
85
- 'alt' => ''
86
- );
87
-
88
- /* Merge the input attributes and the defaults. */
89
- extract( shortcode_atts( $defaults, $attr ) );
90
-
91
- /* If an email was input, use it. Else, use the ID. */
92
- $id_or_email = ( !empty( $email ) ? $email : $id );
93
-
94
- /* Return the avatar. */
95
- return get_avatar( $id_or_email, $size, $default, $alt );
96
- }
97
-
98
  ?>
1
+ <?php
2
+ /**
3
+ * Deprecated functions that are being phased out completely or should be replaced with other functions.
4
+ *
5
+ * @package Members
6
+ * @subpackage Functions
7
+ */
8
+
9
+ /**
10
+ * @since 0.1.0
11
+ * @deprecated 0.2.0 This is theme functionality. Let's just leave it to themes.
12
+ */
13
+ function members_author_profile() {
14
+ _deprecated_function( __FUNCTION__, '0.2.0', '' ); ?>
15
+
16
+ <div class="author-profile vcard">
17
+ <?php echo get_avatar( get_the_author_meta( 'user_email' ), '100', '', get_the_author_meta( 'display_name' ) ); ?>
18
+ <h4 class="author-name fn n"><?php the_author_posts_link(); ?></h4>
19
+ <p class="author-description author-bio">
20
+ <?php echo the_author_meta( 'description' ); ?>
21
+ </p>
22
+ </div>
23
+ <?php
24
+ }
25
+
26
+ /**
27
+ * @since 0.1.0
28
+ * @deprecated 0.2.0 Use wp_login_form() instead.
29
+ */
30
+ function members_login_form() {
31
+ _deprecated_function( __FUNCTION__, '0.2.0', 'wp_login_form' );
32
+
33
+ wp_login_form( array( 'echo' => true ) );
34
+ }
35
+
36
+ /**
37
+ * @since 0.1.0
38
+ * @deprecated 0.2.0
39
+ */
40
+ function members_get_login_form() {
41
+ _deprecated_function( __FUNCTION__, '0.2.0', 'wp_login_form' );
42
+
43
+ wp_login_form( array( 'echo' => false ) );
44
+ }
45
+
46
+ if ( !function_exists( 'has_role' ) ) {
47
+
48
+ /**
49
+ * @since 0.1.0
50
+ * @deprecated 0.2.0
51
+ */
52
+ function has_role( $role, $user_id ) {
53
+ _deprecated_function( __FUNCTION__, '0.2.0', 'user_can' );
54
+
55
+ return user_can( $user_id, $role );
56
+ }
57
+ }
58
+
59
+ if ( !function_exists( 'current_user_has_role' ) ) {
60
+
61
+ /**
62
+ * @since 0.1.0
63
+ * @deprecated 0.2.0
64
+ */
65
+ function current_user_has_role() {
66
+ _deprecated_function( __FUNCTION__, '0.2.0', 'current_user_can' );
67
+
68
+ return current_user_can( $role );
69
+ }
70
+ }
71
+
72
+ /**
73
+ * @since 0.1.0
74
+ * @deprecated 0.2.0
75
+ */
76
+ function members_get_avatar_shortcode( $attr ) {
77
+ _deprecated_function( __FUNCTION__, '0.2.0', '' );
78
+
79
+ /* Set up our default attributes. */
80
+ $defaults = array(
81
+ 'id' => '',
82
+ 'email' => '',
83
+ 'size' => 96,
84
+ 'default' => '',
85
+ 'alt' => ''
86
+ );
87
+
88
+ /* Merge the input attributes and the defaults. */
89
+ extract( shortcode_atts( $defaults, $attr ) );
90
+
91
+ /* If an email was input, use it. Else, use the ID. */
92
+ $id_or_email = ( !empty( $email ) ? $email : $id );
93
+
94
+ /* Return the avatar. */
95
+ return get_avatar( $id_or_email, $size, $default, $alt );
96
+ }
97
+
98
  ?>
includes/functions.php CHANGED
@@ -35,7 +35,7 @@ function members_count_roles() {
35
  global $wp_roles;
36
 
37
  if ( !empty( $wp_roles->role_names ) )
38
- return count( $wp_roles->role_names );
39
 
40
  return false;
41
  }
@@ -52,7 +52,7 @@ function members_get_active_roles() {
52
 
53
  $active = array();
54
 
55
- foreach ( $wp_roles->role_names as $role => $name ) {
56
 
57
  $count = members_get_role_user_count( $role );
58
 
@@ -78,7 +78,7 @@ function members_get_inactive_roles() {
78
 
79
  $inactive = array();
80
 
81
- foreach ( $wp_roles->role_names as $role => $name ) {
82
 
83
  $count = members_get_role_user_count( $role );
84
 
35
  global $wp_roles;
36
 
37
  if ( !empty( $wp_roles->role_names ) )
38
+ return count( apply_filters( 'editable_roles', $wp_roles->role_names ) );
39
 
40
  return false;
41
  }
52
 
53
  $active = array();
54
 
55
+ foreach ( apply_filters( 'editable_roles', $wp_roles->role_names ) as $role => $name ) {
56
 
57
  $count = members_get_role_user_count( $role );
58
 
78
 
79
  $inactive = array();
80
 
81
+ foreach ( apply_filters( 'editable_roles', $wp_roles->role_names ) as $role => $name ) {
82
 
83
  $count = members_get_role_user_count( $role );
84
 
includes/shortcodes.php CHANGED
@@ -1,144 +1,144 @@
1
- <?php
2
- /**
3
- * Shortcodes for use within posts and other shortcode-aware areas.
4
- *
5
- * @package Members
6
- * @subpackage Functions
7
- */
8
-
9
- /* Add shortcodes. */
10
- add_action( 'init', 'members_register_shortcodes' );
11
-
12
- /**
13
- * Registers shortcodes.
14
- *
15
- * @since 0.2.0
16
- */
17
- function members_register_shortcodes() {
18
-
19
- /* Add the [login-form] shortcode. */
20
- add_shortcode( 'login-form', 'members_login_form_shortcode' );
21
-
22
- /* Add the [access] shortcode. */
23
- add_shortcode( 'access', 'members_access_check_shortcode' );
24
-
25
- /* Add the [feed] shortcode. */
26
- add_shortcode( 'feed', 'members_access_check_shortcode' );
27
-
28
- /* Add the [is_user_logged_in] shortcode. */
29
- add_shortcode( 'is_user_logged_in', 'members_is_user_logged_in_shortcode' );
30
-
31
- /* @deprecated 0.2.0. */
32
- add_shortcode( 'get_avatar', 'members_get_avatar_shortcode' );
33
- add_shortcode( 'avatar', 'members_get_avatar_shortcode' );
34
- /* === */
35
- }
36
-
37
- /**
38
- * Displays content if the user viewing it is currently logged in. This also blocks content from showing
39
- * in feeds.
40
- *
41
- * @since 0.1.0
42
- * @param $attr array Attributes for the shortcode (not used).
43
- * @param $content string The content located between the opening and closing of the shortcode.
44
- * @return $content string The content to be shown.
45
- */
46
- function members_is_user_logged_in_shortcode( $attr, $content = null ) {
47
-
48
- /* If it is a feed or the user is not logged in, return nothing. */
49
- if ( is_feed() || !is_user_logged_in() || is_null( $content ) )
50
- return '';
51
-
52
- /* Return the content. */
53
- return do_shortcode( $content );
54
- }
55
-
56
- /**
57
- * Content that should only be shown in feed readers. Can be useful for displaying feed-specific items.
58
- *
59
- * @since 0.1.0
60
- * @param $attr array Attributes for the shortcode (not used).
61
- * @param $content string The content located between the opening and closing of the shortcode.
62
- * @return $content string The content to be shown.
63
- */
64
- function members_feed_shortcode( $attr, $content = null ) {
65
-
66
- /* If not feed or no content exists, return nothing. */
67
- if ( !is_feed() || is_null( $content ) )
68
- return '';
69
-
70
- /* Return the content. */
71
- return do_shortcode( $content );
72
- }
73
-
74
- /**
75
- * Provide/restrict access to specific roles or capabilities. This content should not be shown in feeds. Note that
76
- * capabilities are checked first. If a capability matches, any roles added will *not* be checked. Users should
77
- * choose between using either capabilities or roles for the check rather than both. The best option is to always
78
- * use a capability
79
- *
80
- * @since 0.1.0
81
- * @param $attr array The shortcode attributes.
82
- * @param $content string The content that should be shown/restricted.
83
- * @return $content string The content if it should be shown. Else, return nothing.
84
- */
85
- function members_access_check_shortcode( $attr, $content = null ) {
86
-
87
- /* Set up the default attributes. */
88
- $defaults = array(
89
- 'capability' => '', // Single capability or comma-separated multiple capabilities
90
- 'role' => '', // Single role or comma-separated multiple roles
91
- );
92
-
93
- /* Merge the input attributes and the defaults. */
94
- extract( shortcode_atts( $defaults, $attr ) );
95
-
96
- /* If there's no content or if viewing a feed, return an empty string. */
97
- if ( is_null( $content ) || is_feed() )
98
- return '';
99
-
100
- /* If the current user has the capability, show the content. */
101
- if ( !empty( $capability ) ) {
102
-
103
- /* Get the capabilities. */
104
- $caps = explode( ',', $capability );
105
-
106
- /* Loop through each capability. */
107
- foreach ( $caps as $cap ) {
108
-
109
- /* If the current user can perform the capability, return the content. */
110
- if ( current_user_can( trim( $cap ) ) )
111
- return do_shortcode( $content );
112
- }
113
- }
114
-
115
- /* If the current user has the role, show the content. */
116
- if ( !empty( $role ) ) {
117
-
118
- /* Get the roles. */
119
- $roles = explode( ',', $role );
120
-
121
- /* Loop through each of the roles. */
122
- foreach ( $roles as $role ) {
123
-
124
- /* If the current user has the role, return the content. */
125
- if ( current_user_can( trim( $role ) ) )
126
- return do_shortcode( $content );
127
- }
128
- }
129
-
130
- /* Return an empty string if we've made it to this point. */
131
- return '';
132
- }
133
-
134
- /**
135
- * Displays a login form.
136
- *
137
- * @since 0.1.0
138
- * @uses wp_login_form() Displays the login form.
139
- */
140
- function members_login_form_shortcode() {
141
- return wp_login_form( array( 'echo' => false ) );
142
- }
143
-
144
  ?>
1
+ <?php
2
+ /**
3
+ * Shortcodes for use within posts and other shortcode-aware areas.
4
+ *
5
+ * @package Members
6
+ * @subpackage Functions
7
+ */
8
+
9
+ /* Add shortcodes. */
10
+ add_action( 'init', 'members_register_shortcodes' );
11
+
12
+ /**
13
+ * Registers shortcodes.
14
+ *
15
+ * @since 0.2.0
16
+ */
17
+ function members_register_shortcodes() {
18
+
19
+ /* Add the [login-form] shortcode. */
20
+ add_shortcode( 'login-form', 'members_login_form_shortcode' );
21
+
22
+ /* Add the [access] shortcode. */
23
+ add_shortcode( 'access', 'members_access_check_shortcode' );
24
+
25
+ /* Add the [feed] shortcode. */
26
+ add_shortcode( 'feed', 'members_access_check_shortcode' );
27
+
28
+ /* Add the [is_user_logged_in] shortcode. */
29
+ add_shortcode( 'is_user_logged_in', 'members_is_user_logged_in_shortcode' );
30
+
31
+ /* @deprecated 0.2.0. */
32
+ add_shortcode( 'get_avatar', 'members_get_avatar_shortcode' );
33
+ add_shortcode( 'avatar', 'members_get_avatar_shortcode' );
34
+ /* === */
35
+ }
36
+
37
+ /**
38
+ * Displays content if the user viewing it is currently logged in. This also blocks content from showing
39
+ * in feeds.
40
+ *
41
+ * @since 0.1.0
42
+ * @param $attr array Attributes for the shortcode (not used).
43
+ * @param $content string The content located between the opening and closing of the shortcode.
44
+ * @return $content string The content to be shown.
45
+ */
46
+ function members_is_user_logged_in_shortcode( $attr, $content = null ) {
47
+
48
+ /* If it is a feed or the user is not logged in, return nothing. */
49
+ if ( is_feed() || !is_user_logged_in() || is_null( $content ) )
50
+ return '';
51
+
52
+ /* Return the content. */
53
+ return do_shortcode( $content );
54
+ }
55
+
56
+ /**
57
+ * Content that should only be shown in feed readers. Can be useful for displaying feed-specific items.
58
+ *
59
+ * @since 0.1.0
60
+ * @param $attr array Attributes for the shortcode (not used).
61
+ * @param $content string The content located between the opening and closing of the shortcode.
62
+ * @return $content string The content to be shown.
63
+ */
64
+ function members_feed_shortcode( $attr, $content = null ) {
65
+
66
+ /* If not feed or no content exists, return nothing. */
67
+ if ( !is_feed() || is_null( $content ) )
68
+ return '';
69
+
70
+ /* Return the content. */
71
+ return do_shortcode( $content );
72
+ }
73
+
74
+ /**
75
+ * Provide/restrict access to specific roles or capabilities. This content should not be shown in feeds. Note that
76
+ * capabilities are checked first. If a capability matches, any roles added will *not* be checked. Users should
77
+ * choose between using either capabilities or roles for the check rather than both. The best option is to always
78
+ * use a capability
79
+ *
80
+ * @since 0.1.0
81
+ * @param $attr array The shortcode attributes.
82
+ * @param $content string The content that should be shown/restricted.
83
+ * @return $content string The content if it should be shown. Else, return nothing.
84
+ */
85
+ function members_access_check_shortcode( $attr, $content = null ) {
86
+
87
+ /* Set up the default attributes. */
88
+ $defaults = array(
89
+ 'capability' => '', // Single capability or comma-separated multiple capabilities
90
+ 'role' => '', // Single role or comma-separated multiple roles
91
+ );
92
+
93
+ /* Merge the input attributes and the defaults. */
94
+ extract( shortcode_atts( $defaults, $attr ) );
95
+
96
+ /* If there's no content or if viewing a feed, return an empty string. */
97
+ if ( is_null( $content ) || is_feed() )
98
+ return '';
99
+
100
+ /* If the current user has the capability, show the content. */
101
+ if ( !empty( $capability ) ) {
102
+
103
+ /* Get the capabilities. */
104
+ $caps = explode( ',', $capability );
105
+
106
+ /* Loop through each capability. */
107
+ foreach ( $caps as $cap ) {
108
+
109
+ /* If the current user can perform the capability, return the content. */
110
+ if ( current_user_can( trim( $cap ) ) )
111
+ return do_shortcode( $content );
112
+ }
113
+ }
114
+
115
+ /* If the current user has the role, show the content. */
116
+ if ( !empty( $role ) ) {
117
+
118
+ /* Get the roles. */
119
+ $roles = explode( ',', $role );
120
+
121
+ /* Loop through each of the roles. */
122
+ foreach ( $roles as $role ) {
123
+
124
+ /* If the current user has the role, return the content. */
125
+ if ( current_user_can( trim( $role ) ) )
126
+ return do_shortcode( $content );
127
+ }
128
+ }
129
+
130
+ /* Return an empty string if we've made it to this point. */
131
+ return '';
132
+ }
133
+
134
+ /**
135
+ * Displays a login form.
136
+ *
137
+ * @since 0.1.0
138
+ * @uses wp_login_form() Displays the login form.
139
+ */
140
+ function members_login_form_shortcode() {
141
+ return wp_login_form( array( 'echo' => false ) );
142
+ }
143
+
144
  ?>
includes/template.php CHANGED
@@ -1,107 +1,107 @@
1
- <?php
2
- /**
3
- * @package Members
4
- * @subpackage Functions
5
- */
6
-
7
- /**
8
- * Conditional tag to check if a user can view a specific post. A user cannot view a post if their user role has
9
- * not been selected in the 'Content Permissions' meta box on the edit post screen in the admin. Non-logged in
10
- * site visitors cannot view posts if roles were seletected. If no roles were selected, all users and site visitors
11
- * can view the content.
12
- *
13
- * There are exceptions to this rule though. The post author, any user with the 'restrict_content' capability,
14
- * and users that have the ability to edit the post can always view the post, even if their role was not granted
15
- * permission to view it.
16
- *
17
- * @todo See how feasible it is to just use the normal user_can() WordPress function to check against a meta
18
- * capability such as 'members_view_post' while hooking into 'map_meta_cap' or 'user_has_cap' to roll custom
19
- * plugin handling for this. This would just be a wrapper tag.
20
- *
21
- * @since 0.2.0
22
- * @param int $user_id The ID of the user to check.
23
- * @param int $post_id The ID of the post to check.
24
- * @return bool True if the user can view the post. False if the user cannot view the post.
25
- */
26
- function members_can_user_view_post( $user_id, $post_id = '' ) {
27
-
28
- /* If no post ID is given, assume we're in The Loop and get the current post's ID. */
29
- if ( empty( $post_id ) )
30
- $post_id = get_the_ID();
31
-
32
- /* Assume the user can view the post at this point. */
33
- $can_view = true;
34
-
35
- /**
36
- * The plugin is only going to handle permissions if the 'content permissions' feature is active. If
37
- * not active, the user can always view the post. However, developers can roll their own handling of
38
- * this and filter 'members_can_user_view_post'.
39
- */
40
- if ( members_get_setting( 'content_permissions' ) ) {
41
-
42
- /* Get the roles selected by the user. */
43
- $roles = get_post_meta( $post_id, '_members_access_role', false );
44
-
45
- /* Check if there are any old roles with the '_role' meta key. */
46
- if ( empty( $roles ) )
47
- $roles = members_convert_old_post_meta( $post_id );
48
-
49
- /* If we have an array of roles, let's get to work. */
50
- if ( !empty( $roles ) && is_array( $roles ) ) {
51
-
52
- /**
53
- * Since specific roles were given, let's assume the user can't view the post at
54
- * this point. The rest of this functionality should try to disprove this.
55
- */
56
- $can_view = false;
57
-
58
- /* Get the post object. */
59
- $post = get_post( $post_id );
60
-
61
- /* Get the post type object. */
62
- $post_type = get_post_type_object( $post->post_type );
63
-
64
- /* If viewing a feed or if the user's not logged in, assume it's blocked at this point. */
65
- if ( is_feed() || !is_user_logged_in() ) {
66
- $can_view = false;
67
- }
68
-
69
- /* If the post author, the current user can edit the post, or the current user can 'restrict_content', return true. */
70
- elseif ( $post->post_author == $user_id || user_can( $user_id, 'restrict_content' ) || user_can( $user_id, $post_type->cap->edit_post, $post_id ) ) {
71
- $can_view = true;
72
- }
73
-
74
- /* Else, let's check the user's role against the selected roles. */
75
- else {
76
-
77
- /* Loop through each role and set $can_view to true if the user has one of the roles. */
78
- foreach ( $roles as $role ) {
79
- if ( user_can( $user_id, $role ) )
80
- $can_view = true;
81
- }
82
- }
83
- }
84
- }
85
-
86
- /* Allow developers to overwrite the final return value. */
87
- return apply_filters( 'members_can_user_view_post', $can_view, $user_id, $post_id );
88
- }
89
-
90
- /**
91
- * Wrapper function for the members_can_user_view_post() function. This function checks if the currently
92
- * logged-in user can view the content of a specific post.
93
- *
94
- * @since 0.2.0
95
- * @param int $post_id The ID of the post to check.
96
- * @return bool True if the user can view the post. False if the user cannot view the post.
97
- */
98
- function members_can_current_user_view_post( $post_id = '' ) {
99
-
100
- /* Get the current user object. */
101
- $current_user = wp_get_current_user();
102
-
103
- /* Return the members_can_user_view_post() function, which returns true/false. */
104
- return members_can_user_view_post( $current_user->ID, $post_id );
105
- }
106
-
107
  ?>
1
+ <?php
2
+ /**
3
+ * @package Members
4
+ * @subpackage Functions
5
+ */
6
+
7
+ /**
8
+ * Conditional tag to check if a user can view a specific post. A user cannot view a post if their user role has
9
+ * not been selected in the 'Content Permissions' meta box on the edit post screen in the admin. Non-logged in
10
+ * site visitors cannot view posts if roles were seletected. If no roles were selected, all users and site visitors
11
+ * can view the content.
12
+ *
13
+ * There are exceptions to this rule though. The post author, any user with the 'restrict_content' capability,
14
+ * and users that have the ability to edit the post can always view the post, even if their role was not granted
15
+ * permission to view it.
16
+ *
17
+ * @todo See how feasible it is to just use the normal user_can() WordPress function to check against a meta
18
+ * capability such as 'members_view_post' while hooking into 'map_meta_cap' or 'user_has_cap' to roll custom
19
+ * plugin handling for this. This would just be a wrapper tag.
20
+ *
21
+ * @since 0.2.0
22
+ * @param int $user_id The ID of the user to check.
23
+ * @param int $post_id The ID of the post to check.
24
+ * @return bool True if the user can view the post. False if the user cannot view the post.
25
+ */
26
+ function members_can_user_view_post( $user_id, $post_id = '' ) {
27
+
28
+ /* If no post ID is given, assume we're in The Loop and get the current post's ID. */
29
+ if ( empty( $post_id ) )
30
+ $post_id = get_the_ID();
31
+
32
+ /* Assume the user can view the post at this point. */
33
+ $can_view = true;
34
+
35
+ /**
36
+ * The plugin is only going to handle permissions if the 'content permissions' feature is active. If
37
+ * not active, the user can always view the post. However, developers can roll their own handling of
38
+ * this and filter 'members_can_user_view_post'.
39
+ */
40
+ if ( members_get_setting( 'content_permissions' ) ) {
41
+
42
+ /* Get the roles selected by the user. */
43
+ $roles = get_post_meta( $post_id, '_members_access_role', false );
44
+
45
+ /* Check if there are any old roles with the '_role' meta key. */
46
+ if ( empty( $roles ) )
47
+ $roles = members_convert_old_post_meta( $post_id );
48
+
49
+ /* If we have an array of roles, let's get to work. */
50
+ if ( !empty( $roles ) && is_array( $roles ) ) {
51
+
52
+ /**
53
+ * Since specific roles were given, let's assume the user can't view the post at
54
+ * this point. The rest of this functionality should try to disprove this.
55
+ */
56
+ $can_view = false;
57
+
58
+ /* Get the post object. */
59
+ $post = get_post( $post_id );
60
+
61
+ /* Get the post type object. */
62
+ $post_type = get_post_type_object( $post->post_type );
63
+
64
+ /* If viewing a feed or if the user's not logged in, assume it's blocked at this point. */
65
+ if ( is_feed() || !is_user_logged_in() ) {
66
+ $can_view = false;
67
+ }
68
+
69
+ /* If the post author, the current user can edit the post, or the current user can 'restrict_content', return true. */
70
+ elseif ( $post->post_author == $user_id || user_can( $user_id, 'restrict_content' ) || user_can( $user_id, $post_type->cap->edit_post, $post_id ) ) {
71
+ $can_view = true;
72
+ }
73
+
74
+ /* Else, let's check the user's role against the selected roles. */
75
+ else {
76
+
77
+ /* Loop through each role and set $can_view to true if the user has one of the roles. */
78
+ foreach ( $roles as $role ) {
79
+ if ( user_can( $user_id, $role ) )
80
+ $can_view = true;
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ /* Allow developers to overwrite the final return value. */
87
+ return apply_filters( 'members_can_user_view_post', $can_view, $user_id, $post_id );
88
+ }
89
+
90
+ /**
91
+ * Wrapper function for the members_can_user_view_post() function. This function checks if the currently
92
+ * logged-in user can view the content of a specific post.
93
+ *
94
+ * @since 0.2.0
95
+ * @param int $post_id The ID of the post to check.
96
+ * @return bool True if the user can view the post. False if the user cannot view the post.
97
+ */
98
+ function members_can_current_user_view_post( $post_id = '' ) {
99
+
100
+ /* Get the current user object. */
101
+ $current_user = wp_get_current_user();
102
+
103
+ /* Return the members_can_user_view_post() function, which returns true/false. */
104
+ return members_can_user_view_post( $current_user->ID, $post_id );
105
+ }
106
+
107
  ?>
includes/widget-login-form.php CHANGED
@@ -1,262 +1,262 @@
1
- <?php
2
- /**
3
- * Creates a widget that allows users to add a login form to a widget area.
4
- *
5
- * @package Members
6
- * @subpackage Includes
7
- */
8
-
9
- /**
10
- * Login form widget class.
11
- *
12
- * @since 0.1.0
13
- */
14
- class Members_Widget_Login extends WP_Widget {
15
-
16
- /**
17
- * Set up the widget's unique name, ID, class, description, and other options.
18
- *
19
- * @since 0.1.0
20
- */
21
- function Members_Widget_Login() {
22
-
23
- /* Set up the widget options. */
24
- $widget_options = array(
25
- 'classname' => 'login',
26
- 'description' => esc_html__( 'A widget that allows users to log into your site.', 'members' )
27
- );
28
-
29
- /* Set up the widget control options. */
30
- $control_options = array(
31
- 'width' => 800,
32
- 'height' => 350,
33
- 'id_base' => 'members-widget-login'
34
- );
35
-
36
- /* Create the widget. */
37
- $this->WP_Widget( 'members-widget-login', esc_attr__( 'Login Form', 'members' ), $widget_options, $control_options );
38
- }
39
-
40
- /**
41
- * Outputs the widget based on the arguments input through the widget controls.
42
- *
43
- * @since 0.1.0
44
- */
45
- function widget( $args, $instance ) {
46
- global $user_identity, $user_ID;
47
-
48
- extract( $args );
49
-
50
- /* Set up the arguments for wp_login_form(). */
51
- $args = array(
52
- 'form_id' => !empty( $instance['form_id'] ) ? esc_attr( $instance['form_id'] ) : 'loginform',
53
- 'label_username' => esc_html( $instance['label_username'] ),
54
- 'label_password' => esc_html( $instance['label_password'] ),
55
- 'label_remember' => esc_html( $instance['label_remember'] ),
56
- 'label_log_in' => esc_html( $instance['label_log_in'] ),
57
- 'id_username' => esc_attr( $instance['id_username'] ),
58
- 'id_password' => esc_attr( $instance['id_password'] ),
59
- 'id_remember' => esc_attr( $instance['id_submit'] ),
60
- 'id_submit' => esc_attr( $instance['remember'] ),
61
- 'remember' => !empty( $instance['remember'] ) ? true : false,
62
- 'value_username' => esc_attr( $instance['value_username'] ),
63
- 'value_remember' => !empty( $instance['value_remember'] ) ? true : false,
64
- 'echo' => false,
65
- );
66
-
67
- if ( !empty( $instance['redirect'] ) )
68
- $args['redirect'] = esc_url( $instance['redirect'] );
69
-
70
- /* Get the logged in/out text. */
71
- $logged_in_text = apply_filters( 'widget_text', $instance['logged_in_text'] );
72
- $logged_out_text = apply_filters( 'widget_text', $instance['logged_out_text'] );
73
-
74
- $show_avatar = !empty( $instance['show_avatar'] ) ? true : false;
75
-
76
- /* Output the theme's $before_widget wrapper. */
77
- echo $before_widget;
78
-
79
- /* If a title was input by the user, display it. */
80
- if ( !empty( $instance['title'] ) )
81
- echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title;
82
-
83
- /* If the current user is logged in. */
84
- if ( is_user_logged_in() ) {
85
-
86
- /* Show avatar if enabled. */
87
- if ( !empty( $show_avatar ) )
88
- echo get_avatar( $user_ID );
89
-
90
- /* Show logged in text if any is written. */
91
- if ( !empty( $logged_in_text ) )
92
- echo do_shortcode( shortcode_unautop( wpautop( $logged_in_text ) ) );
93
- }
94
-
95
- /* If the current user is not logged in. */
96
- else {
97
-
98
- /* Show avatar if enabled. */
99
- if ( $show_avatar )
100
- echo get_avatar( $user_ID );
101
-
102
- /* Show logged out text if any is written. */
103
- if ( $logged_out_text )
104
- echo do_shortcode( shortcode_unautop( wpautop( $logged_out_text ) ) );
105
-
106
- /* Output the login form. */
107
- echo '<div class="members-login-form">' . wp_login_form( $args ) . '</div>';
108
- }
109
-
110
- /* Close the theme's widget wrapper. */
111
- echo $after_widget;
112
- }
113
-
114
- /**
115
- * Updates the widget control options for the particular instance of the widget.
116
- *
117
- * @since 0.1.0
118
- */
119
- function update( $new_instance, $old_instance ) {
120
- $instance = $old_instance;
121
-
122
- $instance['title'] = strip_tags( $new_instance['title'] );
123
- $instance['label_username'] = strip_tags( $new_instance['label_username'] );
124
- $instance['label_password'] = strip_tags( $new_instance['label_password'] );
125
- $instance['label_remember'] = strip_tags( $new_instance['label_remember'] );
126
- $instance['label_log_in'] = strip_tags( $new_instance['label_log_in'] );
127
- $instance['id_username'] = strip_tags( $new_instance['id_username'] );
128
- $instance['id_password'] = strip_tags( $new_instance['id_password'] );
129
- $instance['id_remember'] = strip_tags( $new_instance['id_remember'] );
130
- $instance['id_submit'] = strip_tags( $new_instance['id_submit'] );
131
- $instance['value_username'] = strip_tags( $new_instance['value_username'] );
132
-
133
- $instance['remember'] = ( isset( $new_instance['remember'] ) ? 1 : 0 );
134
- $instance['value_remember'] = ( isset( $new_instance['value_remember'] ) ? 1 : 0 );
135
- $instance['show_avatar'] = ( isset( $new_instance['show_avatar'] ) ? 1 : 0 );
136
-
137
- if ( current_user_can('unfiltered_html') ) {
138
- $instance['logged_in_text'] = $new_instance['logged_in_text'];
139
- $instance['logged_out_text'] = $new_instance['logged_out_text'];
140
- }
141
- else {
142
- $instance['logged_in_text'] = wp_filter_post_kses( $new_instance['logged_in_text'] );
143
- $instance['logged_out_text'] = wp_filter_post_kses( $new_instance['logged_out_text'] );
144
- }
145
-
146
- return $instance;
147
- }
148
-
149
- /**
150
- * Displays the widget control options in the Widgets admin screen.
151
- *
152
- * @since 0.1.0
153
- */
154
- function form( $instance ) {
155
-
156
- /* Set up the default form values. */
157
- $defaults = array(
158
- 'title' => esc_attr__( 'Log In', 'members' ),
159
- 'label_username' => esc_attr__( 'Username', 'members' ),
160
- 'label_password' => esc_attr__( 'Password', 'members' ),
161
- 'label_log_in' => esc_attr__( 'Log In', 'members' ),
162
- 'label_remember' => esc_attr__('Remember Me', 'members' ),
163
- 'form_id' => 'loginform',
164
- 'id_username' => 'user_login',
165
- 'id_password' => 'user_pass',
166
- 'id_remember' => 'rememberme',
167
- 'id_submit' => 'wp-submit',
168
- 'remember' => true,
169
- 'value_remember' => false,
170
- 'value_username' => '',
171
- 'show_avatar' => true,
172
- 'logged_out_text' => esc_html__( 'Please log into the site.', 'members' ),
173
- 'logged_in_text' => esc_html__( 'You are currently logged in.', 'members' )
174
- );
175
-
176
- /* Merge the user-selected arguments with the defaults. */
177
- $instance = wp_parse_args( (array) $instance, $defaults );
178
-
179
- $logged_in_text = format_to_edit( $instance['logged_in_text'] );
180
- $logged_out_text = format_to_edit( $instance['logged_out_text'] ); ?>
181
-
182
- <div style="float: left; width: 31%; margin-right: 3.5%;">
183
-
184
- <p>
185
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'members' ); ?></label>
186
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
187
- </p>
188
- <p>
189
- <label for="<?php echo $this->get_field_id( 'label_username' ); ?>"><code>label_username</code></label>
190
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_username' ); ?>" name="<?php echo $this->get_field_name( 'label_username' ); ?>" value="<?php echo $instance['label_username']; ?>" />
191
- </p>
192
- <p>
193
- <label for="<?php echo $this->get_field_id( 'label_password' ); ?>"><code>label_password</code></label>
194
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_password' ); ?>" name="<?php echo $this->get_field_name( 'label_password' ); ?>" value="<?php echo $instance['label_password']; ?>" />
195
- </p>
196
- <p>
197
- <label for="<?php echo $this->get_field_id( 'label_log_in' ); ?>"><code>label_log_in</code></label>
198
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_log_in' ); ?>" name="<?php echo $this->get_field_name( 'label_log_in' ); ?>" value="<?php echo $instance['label_log_in']; ?>" />
199
- </p>
200
- <p>
201
- <label for="<?php echo $this->get_field_id( 'label_remember' ); ?>"><code>label_remember</code></label>
202
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_remember' ); ?>" name="<?php echo $this->get_field_name( 'label_remember' ); ?>" value="<?php echo $instance['label_remember']; ?>" />
203
- </p>
204
-
205
- </div>
206
- <div style="float: left; width: 31%; margin-right: 3.5%;">
207
-
208
- <p>
209
- <label for="<?php echo $this->get_field_id( 'value_username' ); ?>"><code>value_username</code></label>
210
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'value_username' ); ?>" name="<?php echo $this->get_field_name( 'value_username' ); ?>" value="<?php echo $instance['value_username']; ?>" />
211
- </p>
212
- <p>
213
- <label for="<?php echo $this->get_field_id( 'id_username' ); ?>"><code>id_username</code></label>
214
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_username' ); ?>" name="<?php echo $this->get_field_name( 'id_username' ); ?>" value="<?php echo $instance['id_username']; ?>" />
215
- </p>
216
- <p>
217
- <label for="<?php echo $this->get_field_id( 'id_remember' ); ?>"><code>id_remember</code></label>
218
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_remember' ); ?>" name="<?php echo $this->get_field_name( 'id_remember' ); ?>" value="<?php echo $instance['id_remember']; ?>" />
219
- </p>
220
- <p>
221
- <label for="<?php echo $this->get_field_id( 'id_password' ); ?>"><code>id_password</code></label>
222
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_password' ); ?>" name="<?php echo $this->get_field_name( 'id_password' ); ?>" value="<?php echo $instance['id_password']; ?>" />
223
- </p>
224
- <p>
225
- <label for="<?php echo $this->get_field_id( 'id_submit' ); ?>"><code>id_submit</code></label>
226
- <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_submit' ); ?>" name="<?php echo $this->get_field_name( 'id_submit' ); ?>" value="<?php echo $instance['id_submit']; ?>" />
227
- </p>
228
-
229
- </div>
230
-
231
- <div style="float: right; width: 31%;">
232
-
233
- <p>
234
- <input class="checkbox" type="checkbox" <?php checked( $instance['remember'], true ); ?> id="<?php echo $this->get_field_id( 'remember' ); ?>" name="<?php echo $this->get_field_name( 'remember' ); ?>" />
235
- <label for="<?php echo $this->get_field_id( 'remember' ); ?>"><?php _e( '"Remember me" checkbox?', 'members' ); ?> <code>remember</code></label>
236
- </p>
237
- <p>
238
- <input class="checkbox" type="checkbox" <?php checked( $instance['value_remember'], true ); ?> id="<?php echo $this->get_field_id( 'value_remember' ); ?>" name="<?php echo $this->get_field_name( 'value_remember' ); ?>" />
239
- <label for="<?php echo $this->get_field_id( 'value_remember' ); ?>"><?php _e( 'Check "remember me"?', 'members' ); ?> <code>value_remember</code></label>
240
- </p>
241
- <p>
242
- <label for="<?php echo $this->get_field_id( 'show_avatar' ); ?>">
243
- <input class="checkbox" type="checkbox" <?php checked( $instance['show_avatar'], true ); ?> id="<?php echo $this->get_field_id( 'show_avatar' ); ?>" name="<?php echo $this->get_field_name( 'show_avatar' ); ?>" /> <?php _e('Display avatar?', 'widgets-reloaded'); ?></label>
244
- </p>
245
- <p>
246
- <label for="<?php echo $this->get_field_id( 'logged_out_text' ); ?>"><?php _e( 'Logged out text:', 'members' ); ?></label>
247
- <textarea class="widefat" rows="2" cols="20" id="<?php echo $this->get_field_id( 'logged_out_text' ); ?>" name="<?php echo $this->get_field_name('logged_out_text'); ?>" style="width:100%;"><?php echo $logged_out_text; ?></textarea>
248
- </p>
249
-
250
- <p>
251
- <label for="<?php echo $this->get_field_id( 'logged_in_text' ); ?>"><?php _e( 'Logged in text:', 'members' ); ?></label>
252
- <textarea class="widefat" rows="2" cols="20" id="<?php echo $this->get_field_id( 'logged_in_text' ); ?>" name="<?php echo $this->get_field_name('logged_in_text'); ?>" style="width:100%;"><?php echo $logged_in_text; ?></textarea>
253
- </p>
254
-
255
- </div>
256
-
257
- <div style="clear:both;">&nbsp;</div>
258
- <?php
259
- }
260
- }
261
-
262
  ?>
1
+ <?php
2
+ /**
3
+ * Creates a widget that allows users to add a login form to a widget area.
4
+ *
5
+ * @package Members
6
+ * @subpackage Includes
7
+ */
8
+
9
+ /**
10
+ * Login form widget class.
11
+ *
12
+ * @since 0.1.0
13
+ */
14
+ class Members_Widget_Login extends WP_Widget {
15
+
16
+ /**
17
+ * Set up the widget's unique name, ID, class, description, and other options.
18
+ *
19
+ * @since 0.1.0
20
+ */
21
+ function Members_Widget_Login() {
22
+
23
+ /* Set up the widget options. */
24
+ $widget_options = array(
25
+ 'classname' => 'login',
26
+ 'description' => esc_html__( 'A widget that allows users to log into your site.', 'members' )
27
+ );
28
+
29
+ /* Set up the widget control options. */
30
+ $control_options = array(
31
+ 'width' => 800,
32
+ 'height' => 350,
33
+ 'id_base' => 'members-widget-login'
34
+ );
35
+
36
+ /* Create the widget. */
37
+ $this->WP_Widget( 'members-widget-login', esc_attr__( 'Login Form', 'members' ), $widget_options, $control_options );
38
+ }
39
+
40
+ /**
41
+ * Outputs the widget based on the arguments input through the widget controls.
42
+ *
43
+ * @since 0.1.0
44
+ */
45
+ function widget( $args, $instance ) {
46
+ global $user_identity, $user_ID;
47
+
48
+ extract( $args );
49
+
50
+ /* Set up the arguments for wp_login_form(). */
51
+ $args = array(
52
+ 'form_id' => !empty( $instance['form_id'] ) ? esc_attr( $instance['form_id'] ) : 'loginform',
53
+ 'label_username' => esc_html( $instance['label_username'] ),
54
+ 'label_password' => esc_html( $instance['label_password'] ),
55
+ 'label_remember' => esc_html( $instance['label_remember'] ),
56
+ 'label_log_in' => esc_html( $instance['label_log_in'] ),
57
+ 'id_username' => esc_attr( $instance['id_username'] ),
58
+ 'id_password' => esc_attr( $instance['id_password'] ),
59
+ 'id_remember' => esc_attr( $instance['id_submit'] ),
60
+ 'id_submit' => esc_attr( $instance['remember'] ),
61
+ 'remember' => !empty( $instance['remember'] ) ? true : false,
62
+ 'value_username' => esc_attr( $instance['value_username'] ),
63
+ 'value_remember' => !empty( $instance['value_remember'] ) ? true : false,
64
+ 'echo' => false,
65
+ );
66
+
67
+ if ( !empty( $instance['redirect'] ) )
68
+ $args['redirect'] = esc_url( $instance['redirect'] );
69
+
70
+ /* Get the logged in/out text. */
71
+ $logged_in_text = apply_filters( 'widget_text', $instance['logged_in_text'] );
72
+ $logged_out_text = apply_filters( 'widget_text', $instance['logged_out_text'] );
73
+
74
+ $show_avatar = !empty( $instance['show_avatar'] ) ? true : false;
75
+
76
+ /* Output the theme's $before_widget wrapper. */
77
+ echo $before_widget;
78
+
79
+ /* If a title was input by the user, display it. */
80
+ if ( !empty( $instance['title'] ) )
81
+ echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title;
82
+
83
+ /* If the current user is logged in. */
84
+ if ( is_user_logged_in() ) {
85
+
86
+ /* Show avatar if enabled. */
87
+ if ( !empty( $show_avatar ) )
88
+ echo get_avatar( $user_ID );
89
+
90
+ /* Show logged in text if any is written. */
91
+ if ( !empty( $logged_in_text ) )
92
+ echo do_shortcode( shortcode_unautop( wpautop( $logged_in_text ) ) );
93
+ }
94
+
95
+ /* If the current user is not logged in. */
96
+ else {
97
+
98
+ /* Show avatar if enabled. */
99
+ if ( $show_avatar )
100
+ echo get_avatar( $user_ID );
101
+
102
+ /* Show logged out text if any is written. */
103
+ if ( $logged_out_text )
104
+ echo do_shortcode( shortcode_unautop( wpautop( $logged_out_text ) ) );
105
+
106
+ /* Output the login form. */
107
+ echo '<div class="members-login-form">' . wp_login_form( $args ) . '</div>';
108
+ }
109
+
110
+ /* Close the theme's widget wrapper. */
111
+ echo $after_widget;
112
+ }
113
+
114
+ /**
115
+ * Updates the widget control options for the particular instance of the widget.
116
+ *
117
+ * @since 0.1.0
118
+ */
119
+ function update( $new_instance, $old_instance ) {
120
+ $instance = $old_instance;
121
+
122
+ $instance['title'] = strip_tags( $new_instance['title'] );
123
+ $instance['label_username'] = strip_tags( $new_instance['label_username'] );
124
+ $instance['label_password'] = strip_tags( $new_instance['label_password'] );
125
+ $instance['label_remember'] = strip_tags( $new_instance['label_remember'] );
126
+ $instance['label_log_in'] = strip_tags( $new_instance['label_log_in'] );
127
+ $instance['id_username'] = strip_tags( $new_instance['id_username'] );
128
+ $instance['id_password'] = strip_tags( $new_instance['id_password'] );
129
+ $instance['id_remember'] = strip_tags( $new_instance['id_remember'] );
130
+ $instance['id_submit'] = strip_tags( $new_instance['id_submit'] );
131
+ $instance['value_username'] = strip_tags( $new_instance['value_username'] );
132
+
133
+ $instance['remember'] = ( isset( $new_instance['remember'] ) ? 1 : 0 );
134
+ $instance['value_remember'] = ( isset( $new_instance['value_remember'] ) ? 1 : 0 );
135
+ $instance['show_avatar'] = ( isset( $new_instance['show_avatar'] ) ? 1 : 0 );
136
+
137
+ if ( current_user_can('unfiltered_html') ) {
138
+ $instance['logged_in_text'] = $new_instance['logged_in_text'];
139
+ $instance['logged_out_text'] = $new_instance['logged_out_text'];
140
+ }
141
+ else {
142
+ $instance['logged_in_text'] = wp_filter_post_kses( $new_instance['logged_in_text'] );
143
+ $instance['logged_out_text'] = wp_filter_post_kses( $new_instance['logged_out_text'] );
144
+ }
145
+
146
+ return $instance;
147
+ }
148
+
149
+ /**
150
+ * Displays the widget control options in the Widgets admin screen.
151
+ *
152
+ * @since 0.1.0
153
+ */
154
+ function form( $instance ) {
155
+
156
+ /* Set up the default form values. */
157
+ $defaults = array(
158
+ 'title' => esc_attr__( 'Log In', 'members' ),
159
+ 'label_username' => esc_attr__( 'Username', 'members' ),
160
+ 'label_password' => esc_attr__( 'Password', 'members' ),
161
+ 'label_log_in' => esc_attr__( 'Log In', 'members' ),
162
+ 'label_remember' => esc_attr__('Remember Me', 'members' ),
163
+ 'form_id' => 'loginform',
164
+ 'id_username' => 'user_login',
165
+ 'id_password' => 'user_pass',
166
+ 'id_remember' => 'rememberme',
167
+ 'id_submit' => 'wp-submit',
168
+ 'remember' => true,
169
+ 'value_remember' => false,
170
+ 'value_username' => '',
171
+ 'show_avatar' => true,
172
+ 'logged_out_text' => esc_html__( 'Please log into the site.', 'members' ),
173
+ 'logged_in_text' => esc_html__( 'You are currently logged in.', 'members' )
174
+ );
175
+
176
+ /* Merge the user-selected arguments with the defaults. */
177
+ $instance = wp_parse_args( (array) $instance, $defaults );
178
+
179
+ $logged_in_text = format_to_edit( $instance['logged_in_text'] );
180
+ $logged_out_text = format_to_edit( $instance['logged_out_text'] ); ?>
181
+
182
+ <div style="float: left; width: 31%; margin-right: 3.5%;">
183
+
184
+ <p>
185
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'members' ); ?></label>
186
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />
187
+ </p>
188
+ <p>
189
+ <label for="<?php echo $this->get_field_id( 'label_username' ); ?>"><code>label_username</code></label>
190
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_username' ); ?>" name="<?php echo $this->get_field_name( 'label_username' ); ?>" value="<?php echo $instance['label_username']; ?>" />
191
+ </p>
192
+ <p>
193
+ <label for="<?php echo $this->get_field_id( 'label_password' ); ?>"><code>label_password</code></label>
194
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_password' ); ?>" name="<?php echo $this->get_field_name( 'label_password' ); ?>" value="<?php echo $instance['label_password']; ?>" />
195
+ </p>
196
+ <p>
197
+ <label for="<?php echo $this->get_field_id( 'label_log_in' ); ?>"><code>label_log_in</code></label>
198
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_log_in' ); ?>" name="<?php echo $this->get_field_name( 'label_log_in' ); ?>" value="<?php echo $instance['label_log_in']; ?>" />
199
+ </p>
200
+ <p>
201
+ <label for="<?php echo $this->get_field_id( 'label_remember' ); ?>"><code>label_remember</code></label>
202
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_remember' ); ?>" name="<?php echo $this->get_field_name( 'label_remember' ); ?>" value="<?php echo $instance['label_remember']; ?>" />
203
+ </p>
204
+
205
+ </div>
206
+ <div style="float: left; width: 31%; margin-right: 3.5%;">
207
+
208
+ <p>
209
+ <label for="<?php echo $this->get_field_id( 'value_username' ); ?>"><code>value_username</code></label>
210
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'value_username' ); ?>" name="<?php echo $this->get_field_name( 'value_username' ); ?>" value="<?php echo $instance['value_username']; ?>" />
211
+ </p>
212
+ <p>
213
+ <label for="<?php echo $this->get_field_id( 'id_username' ); ?>"><code>id_username</code></label>
214
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_username' ); ?>" name="<?php echo $this->get_field_name( 'id_username' ); ?>" value="<?php echo $instance['id_username']; ?>" />
215
+ </p>
216
+ <p>
217
+ <label for="<?php echo $this->get_field_id( 'id_remember' ); ?>"><code>id_remember</code></label>
218
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_remember' ); ?>" name="<?php echo $this->get_field_name( 'id_remember' ); ?>" value="<?php echo $instance['id_remember']; ?>" />
219
+ </p>
220
+ <p>
221
+ <label for="<?php echo $this->get_field_id( 'id_password' ); ?>"><code>id_password</code></label>
222
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_password' ); ?>" name="<?php echo $this->get_field_name( 'id_password' ); ?>" value="<?php echo $instance['id_password']; ?>" />
223
+ </p>
224
+ <p>
225
+ <label for="<?php echo $this->get_field_id( 'id_submit' ); ?>"><code>id_submit</code></label>
226
+ <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'id_submit' ); ?>" name="<?php echo $this->get_field_name( 'id_submit' ); ?>" value="<?php echo $instance['id_submit']; ?>" />
227
+ </p>
228
+
229
+ </div>
230
+
231
+ <div style="float: right; width: 31%;">
232
+
233
+ <p>
234
+ <input class="checkbox" type="checkbox" <?php checked( $instance['remember'], true ); ?> id="<?php echo $this->get_field_id( 'remember' ); ?>" name="<?php echo $this->get_field_name( 'remember' ); ?>" />
235
+ <label for="<?php echo $this->get_field_id( 'remember' ); ?>"><?php _e( '"Remember me" checkbox?', 'members' ); ?> <code>remember</code></label>
236
+ </p>
237
+ <p>
238
+ <input class="checkbox" type="checkbox" <?php checked( $instance['value_remember'], true ); ?> id="<?php echo $this->get_field_id( 'value_remember' ); ?>" name="<?php echo $this->get_field_name( 'value_remember' ); ?>" />
239
+ <label for="<?php echo $this->get_field_id( 'value_remember' ); ?>"><?php _e( 'Check "remember me"?', 'members' ); ?> <code>value_remember</code></label>
240
+ </p>
241
+ <p>
242
+ <label for="<?php echo $this->get_field_id( 'show_avatar' ); ?>">
243
+ <input class="checkbox" type="checkbox" <?php checked( $instance['show_avatar'], true ); ?> id="<?php echo $this->get_field_id( 'show_avatar' ); ?>" name="<?php echo $this->get_field_name( 'show_avatar' ); ?>" /> <?php _e('Display avatar?', 'widgets-reloaded'); ?></label>
244
+ </p>
245
+ <p>
246
+ <label for="<?php echo $this->get_field_id( 'logged_out_text' ); ?>"><?php _e( 'Logged out text:', 'members' ); ?></label>
247
+ <textarea class="widefat" rows="2" cols="20" id="<?php echo $this->get_field_id( 'logged_out_text' ); ?>" name="<?php echo $this->get_field_name('logged_out_text'); ?>" style="width:100%;"><?php echo $logged_out_text; ?></textarea>
248
+ </p>
249
+
250
+ <p>
251
+ <label for="<?php echo $this->get_field_id( 'logged_in_text' ); ?>"><?php _e( 'Logged in text:', 'members' ); ?></label>
252
+ <textarea class="widefat" rows="2" cols="20" id="<?php echo $this->get_field_id( 'logged_in_text' ); ?>" name="<?php echo $this->get_field_name('logged_in_text'); ?>" style="width:100%;"><?php echo $logged_in_text; ?></textarea>
253
+ </p>
254
+
255
+ </div>
256
+
257
+ <div style="clear:both;">&nbsp;</div>
258
+ <?php
259
+ }
260
+ }
261
+
262
  ?>
includes/widgets.php CHANGED
@@ -1,40 +1,40 @@
1
- <?php
2
- /**
3
- * Loads and enables the widgets for the plugin.
4
- *
5
- * @package Members
6
- * @subpackage Functions
7
- */
8
-
9
- /* Hook widget registration to the 'widgets_init' hook. */
10
- add_action( 'widgets_init', 'members_register_widgets' );
11
-
12
- /**
13
- * Registers widgets for the plugin.
14
- *
15
- * @since 0.2.0
16
- */
17
- function members_register_widgets() {
18
-
19
- /* If the login form widget is enabled. */
20
- if ( members_get_setting( 'login_form_widget' ) ) {
21
-
22
- /* Load the login form widget file. */
23
- require_once( MEMBERS_INCLUDES . 'widget-login-form.php' );
24
-
25
- /* Register the login form widget. */
26
- register_widget( 'Members_Widget_Login' );
27
- }
28
-
29
- /* If the users widget is enabled. */
30
- if ( members_get_setting( 'users_widget' ) ) {
31
-
32
- /* Load the users widget file. */
33
- require_once( MEMBERS_INCLUDES . 'widget-users.php' );
34
-
35
- /* Register the users widget. */
36
- register_widget( 'Members_Widget_users' );
37
- }
38
- }
39
-
40
  ?>
1
+ <?php
2
+ /**
3
+ * Loads and enables the widgets for the plugin.
4
+ *
5
+ * @package Members
6
+ * @subpackage Functions
7
+ */
8
+
9
+ /* Hook widget registration to the 'widgets_init' hook. */
10
+ add_action( 'widgets_init', 'members_register_widgets' );
11
+
12
+ /**
13
+ * Registers widgets for the plugin.
14
+ *
15
+ * @since 0.2.0
16
+ */
17
+ function members_register_widgets() {
18
+
19
+ /* If the login form widget is enabled. */
20
+ if ( members_get_setting( 'login_form_widget' ) ) {
21
+
22
+ /* Load the login form widget file. */
23
+ require_once( MEMBERS_INCLUDES . 'widget-login-form.php' );
24
+
25
+ /* Register the login form widget. */
26
+ register_widget( 'Members_Widget_Login' );
27
+ }
28
+
29
+ /* If the users widget is enabled. */
30
+ if ( members_get_setting( 'users_widget' ) ) {
31
+
32
+ /* Load the users widget file. */
33
+ require_once( MEMBERS_INCLUDES . 'widget-users.php' );
34
+
35
+ /* Register the users widget. */
36
+ register_widget( 'Members_Widget_users' );
37
+ }
38
+ }
39
+
40
  ?>
languages/members-en_EN.po CHANGED
@@ -1,1573 +1,1573 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Members WordPress Plugin\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-06-03 12:36-0600\n"
6
- "PO-Revision-Date: 2011-06-03 12:38-0600\n"
7
- "Last-Translator: Justin Tadlock <justin@justintadlock.com>\n"
8
- "Language-Team: <justin@justintadlock.com>\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-Language: English\n"
13
- "X-Poedit-Country: UNITED STATES\n"
14
- "X-Poedit-KeywordsList: _e;__;esc_attr__;esc_attr_e;_n;_x;esc_html__;esc_html_e\n"
15
- "X-Poedit-Basepath: ../\n"
16
- "X-Poedit-SearchPath-0: .\n"
17
-
18
- #: members.php:191
19
- #: admin/meta-box-plugin-settings.php:30
20
- #, fuzzy
21
- msgid "Role Manager"
22
- msgstr "Naam"
23
-
24
- #: admin/admin.php:44
25
- #: admin/roles-list-table.php:57
26
- #, fuzzy
27
- msgid "Roles"
28
- msgstr "Reset"
29
-
30
- #: admin/admin.php:47
31
- #: admin/role-new.php:44
32
- #, fuzzy
33
- msgid "Add New Role"
34
- msgstr "Voeg gebruiker toe"
35
-
36
- #: admin/admin.php:135
37
- msgid "<strong>Role Manager:</strong> This feature allows you to manage roles on your site by giving you the ability to create, edit, and delete any role. Note that changes to roles do not change settings for the Members plugin. You are literally changing data in your WordPress database. This plugin feature merely provides an interface for you to make these changes."
38
- msgstr ""
39
-
40
- #: admin/admin.php:136
41
- msgid "<strong>Content Permissions:</strong> This feature adds a meta box to the post edit screen that allows you to grant permissions for who can read the post content based on the user's role. Only users of roles with the <code>restrict_content</code> capability will be able to use this component."
42
- msgstr ""
43
-
44
- #: admin/admin.php:137
45
- msgid "<strong>Sidebar Widgets:</strong> This feature creates additional widgets for use in your theme's sidebars. You can access them by clicking Widgets in the menu."
46
- msgstr ""
47
-
48
- #: admin/admin.php:138
49
- msgid "<strong>Private Site:</strong> This feature allows you to redirect all users who are not logged into the site to the login page, creating an entirely private site. You may also replace your feed content with a custom error message."
50
- msgstr ""
51
-
52
- #: admin/admin.php:140
53
- #: admin/admin.php:167
54
- #: admin/admin.php:183
55
- msgid "For more information:"
56
- msgstr ""
57
-
58
- #: admin/admin.php:143
59
- #: admin/admin.php:171
60
- #: admin/admin.php:187
61
- #, fuzzy
62
- msgid "Documentation"
63
- msgstr "Thema Documentatie"
64
-
65
- #: admin/admin.php:144
66
- #: admin/admin.php:172
67
- #: admin/admin.php:188
68
- #, fuzzy
69
- msgid "Support Forums"
70
- msgstr "Bezoek de support forums."
71
-
72
- #: admin/admin.php:156
73
- msgid "This screen allows you to edit the capabilities given to the role. You can tick the checkbox next to a capability to add the capability to the role. You can untick the checkbox next to a capability to remove a capability from the role. You can also add as many custom capabilities as you need in the Custom Capabilities section."
74
- msgstr ""
75
-
76
- #: admin/admin.php:157
77
- msgid "Capabilities are both powerful and dangerous tools. You should not add or remove a capability to a role unless you understand what permission you are granting or removing."
78
- msgstr ""
79
-
80
- #: admin/admin.php:162
81
- msgid "This screen lists all the user roles available on this site. Roles are given to users as a way to \"group\" them. Roles are made up of capabilities (permissions), which decide what functions users of each role can perform on the site. From this screen, you can manage these roles and their capabilities."
82
- msgstr ""
83
-
84
- #: admin/admin.php:163
85
- msgid "To add a role to a user, click Users in the menu. To create a new role, click the Add New button at the top of the screen or Add New Role under the Users menu."
86
- msgstr ""
87
-
88
- #: admin/admin.php:170
89
- #: admin/admin.php:186
90
- msgid "Users, Roles, and Capabilities"
91
- msgstr ""
92
-
93
- #: admin/admin.php:180
94
- msgid "This screen allows you to create a new user role for your site. You must input a unique role name and role label. You can also grant capabilities (permissions) to the new role. Capabilities are both powerful and dangerous tools. You should not add a capability to a role unless you understand what permission you are granting."
95
- msgstr ""
96
-
97
- #: admin/admin.php:181
98
- msgid "To add a role to a user, click Users in the menu. To edit roles, click Roles under the Users menu."
99
- msgstr ""
100
-
101
- #: admin/admin.php:202
102
- msgid "Role deleted."
103
- msgstr ""
104
-
105
- #: admin/admin.php:211
106
- msgid "Selected roles deleted."
107
- msgstr ""
108
-
109
- #: admin/meta-box-plugin-settings.php:21
110
- msgid "About"
111
- msgstr ""
112
-
113
- #: admin/meta-box-plugin-settings.php:24
114
- msgid "Like this plugin?"
115
- msgstr ""
116
-
117
- #: admin/meta-box-plugin-settings.php:27
118
- #, fuzzy
119
- msgid "Support"
120
- msgstr "Thema Ondersteuning:"
121
-
122
- #: admin/meta-box-plugin-settings.php:33
123
- #: admin/meta-box-post-content-permissions.php:28
124
- msgid "Content Permissions"
125
- msgstr ""
126
-
127
- #: admin/meta-box-plugin-settings.php:36
128
- #, fuzzy
129
- msgid "Sidebar Widgets"
130
- msgstr "Widgets invoegen:"
131
-
132
- #: admin/meta-box-plugin-settings.php:39
133
- #, fuzzy
134
- msgid "Private Site"
135
- msgstr "Primaire EnkelvoudigBericht"
136
-
137
- #: admin/meta-box-plugin-settings.php:52
138
- #, fuzzy
139
- msgid "Version:"
140
- msgstr "Thema versie:"
141
-
142
- #: admin/meta-box-plugin-settings.php:55
143
- #, fuzzy
144
- msgid "Description:"
145
- msgstr "Beschrijving"
146
-
147
- #: admin/meta-box-plugin-settings.php:69
148
- msgid "Here's how you can give back:"
149
- msgstr ""
150
-
151
- #: admin/meta-box-plugin-settings.php:72
152
- msgid "Members on the WordPress plugin repository"
153
- msgstr ""
154
-
155
- #: admin/meta-box-plugin-settings.php:72
156
- msgid "Give the plugin a good rating."
157
- msgstr ""
158
-
159
- #: admin/meta-box-plugin-settings.php:73
160
- msgid "Donate via PayPal"
161
- msgstr ""
162
-
163
- #: admin/meta-box-plugin-settings.php:73
164
- msgid "Donate a few dollars."
165
- msgstr ""
166
-
167
- #: admin/meta-box-plugin-settings.php:74
168
- msgid "Justin Tadlock's Amazon Wish List"
169
- msgstr ""
170
-
171
- #: admin/meta-box-plugin-settings.php:74
172
- msgid "Get me something from my wish list."
173
- msgstr ""
174
-
175
- #: admin/meta-box-plugin-settings.php:86
176
- #, php-format
177
- msgid "Support for this plugin is provided via the support forums at %1$s. If you need any help using it, please ask your support questions there."
178
- msgstr ""
179
-
180
- #: admin/meta-box-plugin-settings.php:86
181
- #, fuzzy
182
- msgid "Theme Hybrid Support Forums"
183
- msgstr "Thema Ondersteuning:"
184
-
185
- #: admin/meta-box-plugin-settings.php:86
186
- #, fuzzy
187
- msgid "Theme Hybrid"
188
- msgstr "Hybrid"
189
-
190
- #: admin/meta-box-plugin-settings.php:99
191
- msgid "Enable the role manager."
192
- msgstr ""
193
-
194
- #: admin/meta-box-plugin-settings.php:102
195
- msgid "Your roles and capabilities will not revert back to their previous settings after deactivating or uninstalling this plugin, so use this feature wisely."
196
- msgstr ""
197
-
198
- #: admin/meta-box-plugin-settings.php:116
199
- msgid "Enable the content permissions feature."
200
- msgstr ""
201
-
202
- #: admin/meta-box-plugin-settings.php:120
203
- msgid "Default post error message:"
204
- msgstr ""
205
-
206
- #: admin/meta-box-plugin-settings.php:122
207
- msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message for users that don't have permission to view posts."
208
- msgstr ""
209
-
210
- #: admin/meta-box-plugin-settings.php:136
211
- msgid "Enable the login form widget."
212
- msgstr ""
213
-
214
- #: admin/meta-box-plugin-settings.php:141
215
- msgid "Enable the users widget."
216
- msgstr ""
217
-
218
- #: admin/meta-box-plugin-settings.php:155
219
- msgid "Redirect all logged-out users to the login page before allowing them to view the site."
220
- msgstr ""
221
-
222
- #: admin/meta-box-plugin-settings.php:160
223
- msgid "Show error message for feed items."
224
- msgstr ""
225
-
226
- #: admin/meta-box-plugin-settings.php:164
227
- #, fuzzy
228
- msgid "Feed error message:"
229
- msgstr "Feed afbeelding:"
230
-
231
- #: admin/meta-box-plugin-settings.php:167
232
- msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message to display instead of feed item content."
233
- msgstr ""
234
-
235
- #: admin/meta-box-post-content-permissions.php:51
236
- msgid "Limit access to this post's content to users of the selected roles."
237
- msgstr ""
238
-
239
- #: admin/meta-box-post-content-permissions.php:75
240
- #, php-format
241
- msgid "If no roles are selected, everyone can view the content. The post author, any users who can edit this post, and users with the %s capability can view the content regardless of role."
242
- msgstr ""
243
-
244
- #: admin/meta-box-post-content-permissions.php:79
245
- msgid "Custom error messsage:"
246
- msgstr ""
247
-
248
- #: admin/meta-box-post-content-permissions.php:82
249
- msgid "Message shown to users that do no have permission to view the post."
250
- msgstr ""
251
-
252
- #: admin/role-edit.php:67
253
- #, fuzzy
254
- msgid "Edit Role"
255
- msgstr "Bewerk"
256
-
257
- #: admin/role-edit.php:68
258
- #: admin/roles-list-table.php:58
259
- msgid "Add New"
260
- msgstr ""
261
-
262
- #: admin/role-edit.php:71
263
- #, fuzzy
264
- msgid "Role updated."
265
- msgstr "Aanpassingen tonen?"
266
-
267
- #: admin/role-edit.php:71
268
- msgid "&larr; Back to Roles"
269
- msgstr ""
270
-
271
- #: admin/role-edit.php:85
272
- #: admin/role-new.php:60
273
- #: admin/roles-list-table.php:111
274
- #, fuzzy
275
- msgid "Role Name"
276
- msgstr "Naam"
277
-
278
- #: admin/role-edit.php:94
279
- #: admin/roles-list-table.php:113
280
- #: admin/roles-list-table.php:123
281
- msgid "Capabilities"
282
- msgstr ""
283
-
284
- #: admin/role-edit.php:112
285
- msgid "Custom Capabilities"
286
- msgstr ""
287
-
288
- #: admin/role-edit.php:117
289
- msgid "Add New Capability"
290
- msgstr ""
291
-
292
- #: admin/role-edit.php:127
293
- #, fuzzy
294
- msgid "Update Role"
295
- msgstr "Bewerk"
296
-
297
- #: admin/role-new.php:46
298
- #, fuzzy, php-format
299
- msgid "The %s role has been created."
300
- msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
301
-
302
- #: admin/role-new.php:65
303
- msgid "<strong>Required:</strong> The role name should be unique and contain only alphanumeric characters and underscores."
304
- msgstr ""
305
-
306
- #: admin/role-new.php:71
307
- #: admin/roles-list-table.php:110
308
- #: admin/roles-list-table.php:120
309
- #, fuzzy
310
- msgid "Role Label"
311
- msgstr "Zoek label:"
312
-
313
- #: admin/role-new.php:76
314
- msgid "<strong>Required:</strong> The role label is used to represent your role in the WordPress admin."
315
- msgstr ""
316
-
317
- #: admin/role-new.php:82
318
- #, fuzzy
319
- msgid "Role Capabilities"
320
- msgstr "Aanpassingen tonen?"
321
-
322
- #: admin/role-new.php:86
323
- msgid "<strong>Optional:</strong> Select the capabilities this role should have. These may be updated later."
324
- msgstr ""
325
-
326
- #: admin/role-new.php:102
327
- #, fuzzy
328
- msgid "Add Role"
329
- msgstr "Bewerk"
330
-
331
- #: admin/roles-list-table.php:70
332
- msgid "All"
333
- msgstr ""
334
-
335
- #: admin/roles-list-table.php:71
336
- #, fuzzy
337
- msgid "Has Users"
338
- msgstr "Gebruikersnaam"
339
-
340
- #: admin/roles-list-table.php:72
341
- #, fuzzy
342
- msgid "No Users"
343
- msgstr "Gebruikersnaam"
344
-
345
- #: admin/roles-list-table.php:83
346
- #: admin/roles-list-table.php:215
347
- msgid "Bulk Actions"
348
- msgstr ""
349
-
350
- #: admin/roles-list-table.php:86
351
- #: admin/roles-list-table.php:158
352
- #: admin/roles-list-table.php:218
353
- msgid "Delete"
354
- msgstr ""
355
-
356
- #: admin/roles-list-table.php:91
357
- #: admin/roles-list-table.php:223
358
- #, fuzzy
359
- msgid "Apply"
360
- msgstr "Reageer"
361
-
362
- #: admin/roles-list-table.php:98
363
- #: admin/roles-list-table.php:230
364
- #, php-format
365
- msgid "%s item"
366
- msgstr ""
367
-
368
- #: admin/roles-list-table.php:112
369
- #: admin/roles-list-table.php:122
370
- #, fuzzy
371
- msgid "Users"
372
- msgstr "Gebruikersnaam"
373
-
374
- #: admin/roles-list-table.php:121
375
- #: includes/admin-bar.php:29
376
- msgid "Role"
377
- msgstr ""
378
-
379
- #: admin/roles-list-table.php:146
380
- #: admin/roles-list-table.php:154
381
- #, fuzzy, php-format
382
- msgid "Edit the %s role"
383
- msgstr "Bewerk"
384
-
385
- #: admin/roles-list-table.php:154
386
- msgid "Edit"
387
- msgstr "Bewerk"
388
-
389
- #: admin/roles-list-table.php:158
390
- #, php-format
391
- msgid "Delete the %s role"
392
- msgstr ""
393
-
394
- #: admin/roles-list-table.php:162
395
- msgid "Change default role"
396
- msgstr ""
397
-
398
- #: admin/roles-list-table.php:162
399
- msgid "Default Role"
400
- msgstr ""
401
-
402
- #: admin/roles-list-table.php:166
403
- #: admin/roles-list-table.php:182
404
- #, php-format
405
- msgid "View all users with the %s role"
406
- msgstr ""
407
-
408
- #: admin/roles-list-table.php:166
409
- msgid "View Users"
410
- msgstr ""
411
-
412
- #: admin/roles-list-table.php:182
413
- #: admin/roles-list-table.php:184
414
- #, fuzzy, php-format
415
- msgid "%s User"
416
- msgstr "Voeg gebruiker toe"
417
-
418
- #: admin/roles-list-table.php:194
419
- #, php-format
420
- msgid "%s Capability"
421
- msgstr ""
422
-
423
- #: admin/settings.php:28
424
- #, fuzzy
425
- msgid "Members Settings"
426
- msgstr "Hybrid Settings"
427
-
428
- #: admin/settings.php:28
429
- #, fuzzy
430
- msgid "Members"
431
- msgstr "Hybrid Settings"
432
-
433
- #: admin/settings.php:66
434
- msgid "Sorry, but you do not have permission to view this content."
435
- msgstr ""
436
-
437
- #: admin/settings.php:67
438
- msgid "You must be logged into the site to view this content."
439
- msgstr ""
440
-
441
- #: admin/settings.php:145
442
- #, fuzzy
443
- msgid "Members Plugin Settings"
444
- msgstr "Hybrid Settings"
445
-
446
- #: admin/settings.php:160
447
- #, fuzzy
448
- msgid "Update Settings"
449
- msgstr "Footer Settings:"
450
-
451
- #: includes/widget-login-form.php:26
452
- msgid "A widget that allows users to log into your site."
453
- msgstr ""
454
-
455
- #: includes/widget-login-form.php:37
456
- #, fuzzy
457
- msgid "Login Form"
458
- msgstr "Aanmelden"
459
-
460
- #: includes/widget-login-form.php:158
461
- #: includes/widget-login-form.php:161
462
- #, fuzzy
463
- msgid "Log In"
464
- msgstr "Aanmelden"
465
-
466
- #: includes/widget-login-form.php:159
467
- #, fuzzy
468
- msgid "Username"
469
- msgstr "Gebruikersnaam"
470
-
471
- #: includes/widget-login-form.php:160
472
- msgid "Password"
473
- msgstr "Wachtwoord"
474
-
475
- #: includes/widget-login-form.php:162
476
- #, fuzzy
477
- msgid "Remember Me"
478
- msgstr "Herinner deze gegevens."
479
-
480
- #: includes/widget-login-form.php:172
481
- msgid "Please log into the site."
482
- msgstr ""
483
-
484
- #: includes/widget-login-form.php:173
485
- msgid "You are currently logged in."
486
- msgstr ""
487
-
488
- #: includes/widget-login-form.php:185
489
- #: includes/widget-users.php:157
490
- msgid "Title:"
491
- msgstr "Titel"
492
-
493
- #: includes/widget-login-form.php:235
494
- #, fuzzy
495
- msgid "\"Remember me\" checkbox?"
496
- msgstr "Herinner deze gegevens."
497
-
498
- #: includes/widget-login-form.php:239
499
- #, fuzzy
500
- msgid "Check \"remember me\"?"
501
- msgstr "Herinner deze gegevens."
502
-
503
- #: includes/widget-login-form.php:243
504
- msgid "Display avatar?"
505
- msgstr ""
506
-
507
- #: includes/widget-login-form.php:246
508
- msgid "Logged out text:"
509
- msgstr ""
510
-
511
- #: includes/widget-login-form.php:251
512
- msgid "Logged in text:"
513
- msgstr ""
514
-
515
- #: includes/widget-users.php:26
516
- msgid "Provides the ability to list the users of the site."
517
- msgstr ""
518
-
519
- #: includes/widget-users.php:145
520
- msgid "Ascending"
521
- msgstr ""
522
-
523
- #: includes/widget-users.php:145
524
- msgid "Descending"
525
- msgstr ""
526
-
527
- #: includes/widget-users.php:146
528
- #, fuzzy
529
- msgid "Display Name"
530
- msgstr "Voornaam"
531
-
532
- #: includes/widget-users.php:146
533
- msgid "Email"
534
- msgstr "Email"
535
-
536
- #: includes/widget-users.php:146
537
- msgid "ID"
538
- msgstr ""
539
-
540
- #: includes/widget-users.php:146
541
- #, fuzzy
542
- msgid "Nice Name"
543
- msgstr "Naam"
544
-
545
- #: includes/widget-users.php:146
546
- #, fuzzy
547
- msgid "Post Count"
548
- msgstr "Niet gevonden"
549
-
550
- #: includes/widget-users.php:146
551
- #, fuzzy
552
- msgid "Registered"
553
- msgstr "Registreer"
554
-
555
- #: includes/widget-users.php:146
556
- msgid "URL"
557
- msgstr ""
558
-
559
- #: includes/widget-users.php:146
560
- #, fuzzy
561
- msgid "Login"
562
- msgstr "Aanmelden"
563
-
564
- #, fuzzy
565
- #~ msgid "Welcome, %1$s!"
566
- #~ msgstr "Week %1$s"
567
-
568
- #, fuzzy
569
- #~ msgid "Password:"
570
- #~ msgstr "Wachtwoord"
571
-
572
- #, fuzzy
573
- #~ msgid "Select Components"
574
- #~ msgstr "Selecteer maand"
575
-
576
- #, fuzzy
577
- #~ msgid "Component"
578
- #~ msgstr "Reactie"
579
-
580
- #, fuzzy
581
- #~ msgid "Activate"
582
- #~ msgstr "Archieven"
583
-
584
- #, fuzzy
585
- #~ msgid "Active"
586
- #~ msgstr "Archieven"
587
-
588
- #, fuzzy
589
- #~ msgid "Inactive"
590
- #~ msgstr "Archieven"
591
-
592
- #, fuzzy
593
- #~ msgid "Username Label:"
594
- #~ msgstr "Gebruikersnaam*"
595
-
596
- #, fuzzy
597
- #~ msgid "Password Label:"
598
- #~ msgstr "Wachtwoord*"
599
-
600
- #~ msgid "Submit Text:"
601
- #~ msgstr "Verstuur tekst:"
602
-
603
- #, fuzzy
604
- #~ msgid "Remember User Text:"
605
- #~ msgstr "Herinner deze gegevens."
606
-
607
- #, fuzzy
608
- #~ msgid ""
609
- #~ "An advanced widget that gives you total control over the output of your "
610
- #~ "user lists."
611
- #~ msgstr ""
612
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
613
- #~ "van je pagina-links."
614
-
615
- #~ msgid "Limit:"
616
- #~ msgstr "Limiet:"
617
-
618
- #~ msgid "Order:"
619
- #~ msgstr "Volgorde:"
620
-
621
- #~ msgid "Order By:"
622
- #~ msgstr "Sorteer op:"
623
-
624
- #~ msgid "Include:"
625
- #~ msgstr "Omvat:"
626
-
627
- #~ msgid "Exclude:"
628
- #~ msgstr "Sluit uit:"
629
-
630
- #, fuzzy
631
- #~ msgid "Show full name?"
632
- #~ msgstr "Aanpassingen tonen?"
633
-
634
- #~ msgid "Save Changes"
635
- #~ msgstr "Bewaren"
636
-
637
- #, fuzzy
638
- #~ msgid "New user role has been added."
639
- #~ msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
640
-
641
- #~ msgid ""
642
- #~ "You tried going to %1$s, and it doesn't exist. All is not lost! You can "
643
- #~ "search for what you're looking for."
644
- #~ msgstr ""
645
- #~ "Je wilde naar %1$s gaan, maar dit bestaat niet. Geen nood! Zoek hier "
646
- #~ "wat je zocht:"
647
-
648
- #~ msgid "Possibly Related"
649
- #~ msgstr "Mogelijk gerelateerd"
650
-
651
- #~ msgid "Continue reading"
652
- #~ msgstr "Lees hier verder"
653
-
654
- #~ msgid "Download &quot;%1$s&quot;"
655
- #~ msgstr "Download &quot;%1$s&quot;"
656
-
657
- #~ msgid "Pages:"
658
- #~ msgstr "Pagina's:"
659
-
660
- #~ msgid "Sorry, no applications matched your criteria."
661
- #~ msgstr "Sorry, er zijn geen toepassingen die met je criteria overeenkomen."
662
-
663
- #~ msgid "You are browsing the archive for %1$s."
664
- #~ msgstr "Je bladert nu door het archief voor %1$s."
665
-
666
- #~ msgid "By"
667
- #~ msgstr "Door"
668
-
669
- #~ msgid "on"
670
- #~ msgstr "op"
671
-
672
- #~ msgid "l, F jS, Y, g:i a"
673
- #~ msgstr "l, j F, Y, G:i"
674
-
675
- #~ msgid "F j, Y"
676
- #~ msgstr "j F, Y"
677
-
678
- #~ msgid "Posted in"
679
- #~ msgstr "Gepost in"
680
-
681
- #~ msgid "Tagged"
682
- #~ msgstr "Tags:"
683
-
684
- #~ msgid "Leave a response"
685
- #~ msgstr "Reageer"
686
-
687
- #~ msgid "1 Response"
688
- #~ msgstr "1 Reactie"
689
-
690
- #~ msgid "% Responses"
691
- #~ msgstr "% Reacties"
692
-
693
- #~ msgid "Sorry, there are no posts in this archive."
694
- #~ msgstr "Sorry, dit archief bevat geen berichten."
695
-
696
- #~ msgid "Archives by category"
697
- #~ msgstr "Archieven per rubriek"
698
-
699
- #~ msgid "Archives by month"
700
- #~ msgstr "Archieven per maand"
701
-
702
- #~ msgid "Sorry, no page matched your criteria."
703
- #~ msgstr "Sorry, er bestaat geen pagina die aan je criteria voldoet."
704
-
705
- #~ msgid "Sorry, no attachments matched your criteria."
706
- #~ msgstr "Sorry, er zijn geen bijlages die aan je criteria voldoen."
707
-
708
- #~ msgid "Sorry, no audio files matched your criteria."
709
- #~ msgstr "Sorry, er zijn geen geluidsbestanden die aan je criteria voldoen."
710
-
711
- #~ msgid "Send an email to %1$s"
712
- #~ msgstr "Stuur een email aan %1$s"
713
-
714
- #~ msgid "Email %1$s"
715
- #~ msgstr "Email %1$s"
716
-
717
- #~ msgid "%1$s hasn't written any posts yet."
718
- #~ msgstr "%1$s heeft nog geen berichten geschreven."
719
-
720
- #~ msgid "Nickname:"
721
- #~ msgstr "Bijnaam:"
722
-
723
- #~ msgid "Email:"
724
- #~ msgstr "Email:"
725
-
726
- #~ msgid "Website:"
727
- #~ msgstr "Website:"
728
-
729
- #~ msgid "AIM:"
730
- #~ msgstr "AIM:"
731
-
732
- #~ msgid "IM with %1$s"
733
- #~ msgstr "IM met %1$s"
734
-
735
- #~ msgid "Jabber:"
736
- #~ msgstr "Jabber:"
737
-
738
- #~ msgid "Yahoo:"
739
- #~ msgstr "Yahoo:"
740
-
741
- #~ msgid "Sorry, there are no posts in the %1$s category."
742
- #~ msgstr "Sorry, er zijn geen berichten in de rubriek %1$s. "
743
-
744
- #~ msgid "Please do not load this page directly. Thanks!"
745
- #~ msgstr "Gelieve deze pagina niet rechtstreeks te laden. Dankjewel!"
746
-
747
- #~ msgid "No Responses"
748
- #~ msgstr "Geen reacties"
749
-
750
- #~ msgid "One Response"
751
- #~ msgstr "Een reactie"
752
-
753
- #~ msgid "Responses"
754
- #~ msgstr "Reacties"
755
-
756
- #~ msgid "to"
757
- #~ msgstr "naar"
758
-
759
- #~ msgid "%1$s at %2$s"
760
- #~ msgstr "%1$s op %2$s"
761
-
762
- #~ msgid "Permalink to comment"
763
- #~ msgstr "Permalink naar reactie"
764
-
765
- #~ msgid "Permalink"
766
- #~ msgstr "Permalink"
767
-
768
- #~ msgid "Your comment is awaiting moderation."
769
- #~ msgstr "Je reactie wacht op moderatie."
770
-
771
- #~ msgid ""
772
- #~ "Comments are closed, but <a href=\"%1$s\" title=\"Trackback URL for this "
773
- #~ "post\">trackbacks</a> and pingbacks are open."
774
- #~ msgstr ""
775
- #~ "Reageren is niet mogelijk, maar <a href=\"%1$s\" title=\"Trackback URL "
776
- #~ "for this post\">trackbacks</a> en pingbacks blijven open."
777
-
778
- #~ msgid "Comments are closed."
779
- #~ msgstr "Reageren is niet mogelijk."
780
-
781
- #~ msgid "Leave a Reply"
782
- #~ msgstr "Reageer"
783
-
784
- #~ msgid ""
785
- #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to post a "
786
- #~ "comment."
787
- #~ msgstr ""
788
- #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om te "
789
- #~ "reageren."
790
-
791
- #~ msgid "Logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
792
- #~ msgstr "Ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
793
-
794
- #~ msgid "Log out of this account"
795
- #~ msgstr "Afmelden."
796
-
797
- #~ msgid "Logout &raquo;"
798
- #~ msgstr "Afmelden &raquo;"
799
-
800
- #~ msgid "*"
801
- #~ msgstr "*"
802
-
803
- #~ msgid "Website"
804
- #~ msgstr "Website"
805
-
806
- #~ msgid "Submit"
807
- #~ msgstr "Verstuur"
808
-
809
- #~ msgid "Password Protected"
810
- #~ msgstr "Beveiligd met wachtwoord"
811
-
812
- #~ msgid "Enter the password to view comments."
813
- #~ msgstr "Voer wachtwoord in om reacties te lezen."
814
-
815
- #~ msgid "Leave a Reply to %s"
816
- #~ msgstr "Reageer op %s"
817
-
818
- #~ msgid "Click here to cancel reply."
819
- #~ msgstr "Klik hier om de reactie te annuleren."
820
-
821
- #~ msgid "F jS, Y"
822
- #~ msgstr "j F, Y"
823
-
824
- #~ msgid "Week %1$s of %2$s"
825
- #~ msgstr "Week %1$s van %2$s"
826
-
827
- #~ msgid "W"
828
- #~ msgstr "W"
829
-
830
- #~ msgid "Y"
831
- #~ msgstr "Y"
832
-
833
- #~ msgid "You are browsing the archive for week %1$s of %2$s."
834
- #~ msgstr "Je bekijkt het archief voor week %1$s van %2$s."
835
-
836
- #~ msgid "Sorry, there are no posts for %1$s."
837
- #~ msgstr "Sorry, maar er zijn geen berichten voor %1$s."
838
-
839
- #~ msgid "Sorry, no posts matched your criteria."
840
- #~ msgstr "Sorry, er zijn geen berichten die met je criteria overeenkomen."
841
-
842
- #~ msgid "Sorry, no images matched your criteria."
843
- #~ msgstr "Sorry, er zijn geen afbeeldingen die met je criteria overeenkomen."
844
-
845
- #~ msgid ""
846
- #~ "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
847
- #~ msgstr ""
848
- #~ "Je bent momenteel ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
849
-
850
- #~ msgid ""
851
- #~ "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</"
852
- #~ "a>."
853
- #~ msgstr ""
854
- #~ "Je bent succesvol ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
855
-
856
- #~ msgid ""
857
- #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to view the "
858
- #~ "content of this page."
859
- #~ msgstr ""
860
- #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om de inhoud "
861
- #~ "van deze pagina te bekijken."
862
-
863
- #~ msgid ""
864
- #~ "If you're not currently a member, please take a moment to <a href=\"%1$s"
865
- #~ "\" title=\"Register\">register</a>."
866
- #~ msgstr ""
867
- #~ "Als je momenteel nog geen lid bent, neem dan een ogenblikje tijd om je te "
868
- #~ "<a href=\"%1$s\" title=\"Register\">registreren</a>."
869
-
870
- #~ msgid "You must enter a post title."
871
- #~ msgstr "Je moet een titel voor het bericht invoeren."
872
-
873
- #~ msgid "You must write something."
874
- #~ msgstr "Je moet hier iets schrijven."
875
-
876
- #~ msgid "Title"
877
- #~ msgstr "Titel"
878
-
879
- #~ msgid "Write"
880
- #~ msgstr "Schrijf"
881
-
882
- #~ msgid "Tags"
883
- #~ msgstr "Tags"
884
-
885
- #~ msgid "Publish"
886
- #~ msgstr "Publiceer"
887
-
888
- #~ msgid "You don't have the appropriate capabilities to publish posts."
889
- #~ msgstr "Je hebt niet de nodige rechten om berichten te publiceren."
890
-
891
- #~ msgid ""
892
- #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> with "
893
- #~ "appropriate user capabilities to publish posts."
894
- #~ msgstr ""
895
- #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn met de nodige "
896
- #~ "gebruikersrechten om berichten te kunnen publiceren."
897
-
898
- #~ msgid "A username is required for registration."
899
- #~ msgstr "Om te registreren is een gebruikersnaam nodig."
900
-
901
- #~ msgid "You must enter an email address."
902
- #~ msgstr "Je moet een email-adres invoeren."
903
-
904
- #~ msgid "You must enter a password."
905
- #~ msgstr "Je moet een wachtwoord invoeren."
906
-
907
- #~ msgid "You must enter your password twice."
908
- #~ msgstr "Je moet je wachtwoord tweemaal invoeren."
909
-
910
- #~ msgid "You must enter the same password twice."
911
- #~ msgstr "Je moet tweemaal hetzelfde wachtwoord invoeren."
912
-
913
- #~ msgid "User registration failed. Please try again."
914
- #~ msgstr "Gebruikersregistratie mislukt. Probeer opnieuw."
915
-
916
- #~ msgid ""
917
- #~ "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't "
918
- #~ "need another account."
919
- #~ msgstr ""
920
- #~ "Je bent ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Je hebt "
921
- #~ "geen bijkomend account nodig."
922
-
923
- #~ msgid "Thank you for registering, %1$s."
924
- #~ msgstr "Bedankt voor je registratie, %1$s."
925
-
926
- #~ msgid "Users can register themselves or you can manually create users here."
927
- #~ msgstr ""
928
- #~ "Gebruikers kunnen zichzelf registreren of je kan hier handmatig "
929
- #~ "gebruikersaccounts aanmaken."
930
-
931
- #~ msgid ""
932
- #~ "Users cannot currently register themselves, but you can manually create "
933
- #~ "users here."
934
- #~ msgstr ""
935
- #~ "Gebruikers kunnen zichzelf niet registreren, maar je kan hier wel "
936
- #~ "handmatig gebruikersaccounts aanmaken."
937
-
938
- #~ msgid "Required fields are marked <span class=\"required\">*</span>"
939
- #~ msgstr ""
940
- #~ "Verplichte velden zijn aangeduid met <span class=\"required\">*</span>."
941
-
942
- #~ msgid "Last Name"
943
- #~ msgstr "Naam"
944
-
945
- #~ msgid "E-mail *"
946
- #~ msgstr "E-mail *"
947
-
948
- #~ msgid "Repeat Password *"
949
- #~ msgstr "Herhaal je wachtwoord*"
950
-
951
- #~ msgid "Biographical Information"
952
- #~ msgstr "Biografische informatie"
953
-
954
- #~ msgid "You are browsing the search results for &quot;%1$s&quot;"
955
- #~ msgstr "Je bekijkt hier de zoekresultaten voor &quot;%1$s&quot;"
956
-
957
- #~ msgid "Maybe you'd like to try inputting different search terms."
958
- #~ msgstr "Misschien wil je andere zoektermen invoeren."
959
-
960
- #~ msgid "You are browsing the %1$s tag archive."
961
- #~ msgstr "Je bekijkt het archief voor de tag %1$s"
962
-
963
- #~ msgid "Sorry, there are no posts tagged %1$s."
964
- #~ msgstr "Sorry, er zijn geen berichten met de tag %1$s."
965
-
966
- #~ msgid "Sorry, no documents matched your criteria."
967
- #~ msgstr "Sorry, er zijn geen documenten die met je criteria overeenkomen."
968
-
969
- #~ msgid "Sorry, no videos matched your criteria."
970
- #~ msgstr "Sorry, er zijn geen video's die met je criteria overeenkomen."
971
-
972
- #~ msgid "Widget Template"
973
- #~ msgstr "Widget Template"
974
-
975
- #~ msgid "About This Theme"
976
- #~ msgstr "Over dit Thema"
977
-
978
- #~ msgid "Theme Description:"
979
- #~ msgstr "Thema Beschrijving:"
980
-
981
- #~ msgid "Theme Documentation:"
982
- #~ msgstr "Thema Documentatie:"
983
-
984
- #~ msgid "Get support for this theme"
985
- #~ msgstr "Ondersteuning voor dit thema"
986
-
987
- #~ msgid "Select your theme settings"
988
- #~ msgstr "Selecteer de settings voor je thema"
989
-
990
- #, fuzzy
991
- #~ msgid ""
992
- #~ "Select this if you want your primary widget inserts to default to the "
993
- #~ "home insert when nothing else is selected."
994
- #~ msgstr ""
995
- #~ "Selecteer dit als je wenst dat je primaire widgets standaard geladen "
996
- #~ "worden op de home-pagina als niet anders geselecteerd is."
997
-
998
- #, fuzzy
999
- #~ msgid ""
1000
- #~ "Select this if you want your secondary widget inserts to default to the "
1001
- #~ "home insert when nothing else is selected."
1002
- #~ msgstr ""
1003
- #~ "Selecteer dit als je wenst dat je secundaire widgets standaard geladen "
1004
- #~ "worden op de home-pagina als niet anders geselecteerd is."
1005
-
1006
- #~ msgid "Stylesheets:"
1007
- #~ msgstr "Stijlbladen (CSS)"
1008
-
1009
- #~ msgid ""
1010
- #~ "Select this to have the theme automatically include a print stylesheet."
1011
- #~ msgstr ""
1012
- #~ "Selecteer dit als je wil dat het thema automatisch een 'print' stijlblad "
1013
- #~ "insluit."
1014
-
1015
- #~ msgid "JavaScript:"
1016
- #~ msgstr "JavaScript:"
1017
-
1018
- #~ msgid "Include the pull quote JavaScript."
1019
- #~ msgstr "Inclusief pull quote JavaScript."
1020
-
1021
- #~ msgid "Feeds:"
1022
- #~ msgstr "Feeds:"
1023
-
1024
- #~ msgid ""
1025
- #~ "If you have a an alternate feed address, such as one from <a href="
1026
- #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, you can "
1027
- #~ "enter it here to have the theme set your feed URL link. If blank, the "
1028
- #~ "theme will default to your WordPress RSS feed."
1029
- #~ msgstr ""
1030
- #~ "Wanneer je over een alternatief feed-adres beschikt, zoals van <a href="
1031
- #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, kan je dat "
1032
- #~ "hier invoeren om het door het thema te laten gebruiken. Als je dit "
1033
- #~ "blanco laat, wordt de standaard WordPress RSS feed gebruikt."
1034
-
1035
- #~ msgid "Title &amp; Meta:"
1036
- #~ msgstr "Titel &amp; Meta"
1037
-
1038
- #~ msgid "Use category slugs on single posts for your meta keywords?"
1039
- #~ msgstr ""
1040
- #~ "Gebruik categorie 'slug' als meta keywoord voor afzonderlijke berichten."
1041
-
1042
- #~ msgid "Use tag slugs on single posts for your meta keywords?"
1043
- #~ msgstr "Gebruik tag 'slug' als meta keywoord voor afzonderlijke berichten."
1044
-
1045
- #~ msgid "Use the excerpt on single posts for your meta description?"
1046
- #~ msgstr ""
1047
- #~ "Uittreksel als meta-omschrijving gebruiken voor afzonderlijke berichten?"
1048
-
1049
- #~ msgid "Use the author bio on author archives for your meta description?"
1050
- #~ msgstr ""
1051
- #~ "Auteurs biografie als meta-omschrijving gebruiken voor afzonderlijke "
1052
- #~ "berichten?"
1053
-
1054
- #~ msgid ""
1055
- #~ "Use the category description on category archives for your meta "
1056
- #~ "description?"
1057
- #~ msgstr ""
1058
- #~ "Rubriek-omschrijving als meta-omschrijving gebruiken voor afzonderlijke "
1059
- #~ "berichten?"
1060
-
1061
- #~ msgid "Use the author's name on pages and posts as the meta author?"
1062
- #~ msgstr ""
1063
- #~ "Naam van de auteur als meta-auteur gebruiken op pagina's en berichten?"
1064
-
1065
- #~ msgid "Append site title to the end of the page name?"
1066
- #~ msgstr "Site-naam toevoegen aan het eind van de pagina-naam?"
1067
-
1068
- #~ msgid ""
1069
- #~ "You can change these settings in the box labeled <em>Hybrid Settings</em> "
1070
- #~ "when writing a post or page."
1071
- #~ msgstr ""
1072
- #~ "Je kan deze settings aanpassen in het vak <em>Hybrid Settings</em> "
1073
- #~ "wanneer je een bericht of pagina bewerkt."
1074
-
1075
- #~ msgid ""
1076
- #~ "The <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</"
1077
- #~ "a> and <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins will "
1078
- #~ "override these settings and the Indexing settings."
1079
- #~ msgstr ""
1080
- #~ "De <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</a> "
1081
- #~ "en <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins zullen "
1082
- #~ "deze en de indexeringssettings overschrijven."
1083
-
1084
- #~ msgid "Indexing:"
1085
- #~ msgstr "Indexeren:"
1086
-
1087
- #~ msgid ""
1088
- #~ "Choose which pages of your blog get indexed by the search engines. Only "
1089
- #~ "selected pages will be indexed. If not selected, those pages will be "
1090
- #~ "blocked."
1091
- #~ msgstr ""
1092
- #~ "Kies welke pagina's van je blog door zoekmachines kunnen ge&iuml;ndexeerd "
1093
- #~ "worden. Alleen de geselecteerde pagina's worden ge&iuml;ndexeerd. Niet "
1094
- #~ "geselecteerde pagina's worden geblokkeerd."
1095
-
1096
- #~ msgid ""
1097
- #~ "Note: Some of these settings will render the Title &amp; Meta settings "
1098
- #~ "moot. Also, setting your site to privacy mode will override these "
1099
- #~ "controls."
1100
- #~ msgstr ""
1101
- #~ "Let op: Sommige van deze settings kunnen conflicteren met de Titel &amp; "
1102
- #~ "Meta settings. Ook wanneer je je site in een beveiligde modus omzet, "
1103
- #~ "worden deze settings overschreven."
1104
-
1105
- #~ msgid "Home page"
1106
- #~ msgstr "Homepage"
1107
-
1108
- #~ msgid "Single posts"
1109
- #~ msgstr "Afzonderlijke berichten"
1110
-
1111
- #~ msgid "Attachments"
1112
- #~ msgstr "Bijlages"
1113
-
1114
- #~ msgid "Pages"
1115
- #~ msgstr "Pagina's"
1116
-
1117
- #~ msgid "Date-based archives"
1118
- #~ msgstr "Datum-gebaseerd archief"
1119
-
1120
- #~ msgid "Category archives"
1121
- #~ msgstr "Archief per rubriek"
1122
-
1123
- #~ msgid "Tag archives"
1124
- #~ msgstr "Archief op tags"
1125
-
1126
- #~ msgid "Author archives"
1127
- #~ msgstr "Archief op auteur"
1128
-
1129
- #~ msgid "Search"
1130
- #~ msgstr "Zoek"
1131
-
1132
- #~ msgid "404"
1133
- #~ msgstr "404"
1134
-
1135
- #~ msgid "Avatars:"
1136
- #~ msgstr "Avatars:"
1137
-
1138
- #~ msgid ""
1139
- #~ "You can set a default avatar for users without one if you don't like the "
1140
- #~ "choices WordPress offers you. Simply add the full path to the image file."
1141
- #~ msgstr ""
1142
- #~ "Je kan een standaard-avatar instellen voor gebruikers zonder avatar, "
1143
- #~ "wanneer de keuze van WordPress je niet bevalt. Voer daartoe hier het "
1144
- #~ "complete pad naar de afbeelding in."
1145
-
1146
- #~ msgid "Comments:"
1147
- #~ msgstr "Reacties:"
1148
-
1149
- #~ msgid "Check to use the comments popup window instead of regular comments."
1150
- #~ msgstr ""
1151
- #~ "Aanvinken om een popup-scherm voor reacties te gebruiken in plaats van "
1152
- #~ "het gebruikelijke commentaarscherm."
1153
-
1154
- #~ msgid "WP 2.7+ only."
1155
- #~ msgstr "Enkel voor WP 2.7+"
1156
-
1157
- #~ msgid "Footer Insert:"
1158
- #~ msgstr "Inserts voor Footer:"
1159
-
1160
- #~ msgid ""
1161
- #~ "You can place XHTML and JavaScript here to have it inserted automatically "
1162
- #~ "into your theme. If you have a script, such as one from Google "
1163
- #~ "Analytics, this could be useful."
1164
- #~ msgstr ""
1165
- #~ "Je kan hier XHTML en Javascript plaatsen dat automatisch in de footer van "
1166
- #~ "je thema wordt ingevoerd. Dit kan van pas komen als je een script hebt "
1167
- #~ "zoals dat van Google Analytics."
1168
-
1169
- #~ msgid ""
1170
- #~ "Check this if you want the theme to auto-generate your site's copyright "
1171
- #~ "and title in the footer."
1172
- #~ msgstr ""
1173
- #~ "Aanvinken wanneer je wil dat het thema automatisch een copyright voor je "
1174
- #~ "site in de footer invoert."
1175
-
1176
- #~ msgid ""
1177
- #~ "Want to show your love of WordPress? Check this and a link will be added "
1178
- #~ "to your footer back to WordPress.org."
1179
- #~ msgstr ""
1180
- #~ "Wil je laten zien hoezeer je WordPress waardeert? Vink dit aan om "
1181
- #~ "automatisch een link naar WordPress.org aan de footer toe te voegen."
1182
-
1183
- #~ msgid ""
1184
- #~ "Check this to have a link back to Theme Hybrid automatically appended to "
1185
- #~ "your footer. This is totally optional. Really."
1186
- #~ msgstr ""
1187
- #~ "Aanvinken om automatisch een link naar Theme Hybrid aan je footer toe te "
1188
- #~ "voegen. Dit volkomen vrijwillig, echt waar!"
1189
-
1190
- #~ msgid ""
1191
- #~ "For testing purposes, this will append a database query counter and page "
1192
- #~ "load timer to your footer."
1193
- #~ msgstr ""
1194
- #~ "Voor test-doeleinden wordt hiermee een database-query teller en de "
1195
- #~ "laadtijd van de pagina aan je footer toegevoegd."
1196
-
1197
- #~ msgid "Add a title that will be seen by search engines."
1198
- #~ msgstr "Voeg een titel toe die door zoekmachines gezien wordt."
1199
-
1200
- #~ msgid "Add a description that will be seen by search engines."
1201
- #~ msgstr "Voeg een beschrijving toe die door zoekmachines gezien wordt."
1202
-
1203
- #~ msgid "Keywords:"
1204
- #~ msgstr "Trefwoorden:"
1205
-
1206
- #~ msgid "Add keywords that will be seen by search engines."
1207
- #~ msgstr "Voeg trefwoorden toe die door zoekmachines gezien worden."
1208
-
1209
- #~ msgid "Series:"
1210
- #~ msgstr "Series:"
1211
-
1212
- #~ msgid "Post the title of your series of articles here."
1213
- #~ msgstr "Post hier de titel van je artikelseries."
1214
-
1215
- #~ msgid "Thumbnail:"
1216
- #~ msgstr "Thumbnail:"
1217
-
1218
- #~ msgid "Add an image URL here."
1219
- #~ msgstr "Voeg hier de URL van een afbeelding toe."
1220
-
1221
- #~ msgid "Page Navigation:"
1222
- #~ msgstr "Pagina Navigatie:"
1223
-
1224
- #~ msgid "Hybrid Theme Settings"
1225
- #~ msgstr "Hybrid Theme Settings"
1226
-
1227
- #~ msgid "Settings saved."
1228
- #~ msgstr "Settings opgeslagen."
1229
-
1230
- #~ msgid "Browse:"
1231
- #~ msgstr "Blader:"
1232
-
1233
- #~ msgid "Home"
1234
- #~ msgstr "Home"
1235
-
1236
- #~ msgid "Search results for &quot;%1$s&quot"
1237
- #~ msgstr "Zoekresultaten voor &quot;%1$s&quot"
1238
-
1239
- #~ msgid "m"
1240
- #~ msgstr "m"
1241
-
1242
- #~ msgid "F"
1243
- #~ msgstr "F"
1244
-
1245
- #~ msgid "j"
1246
- #~ msgstr "j"
1247
-
1248
- #~ msgid "404 Not Found"
1249
- #~ msgstr "404 Niet Gevonden"
1250
-
1251
- #~ msgid "Log in to reply."
1252
- #~ msgstr "Log in op te reageren."
1253
-
1254
- #~ msgid "This function has been removed or replaced by another function."
1255
- #~ msgstr "Deze functie is verwijderd of vervangen door een andere functie."
1256
-
1257
- #~ msgid ""
1258
- #~ "You can use these <acronym title=\"Extensible Hypertext Markup Language"
1259
- #~ "\">XHTML</acronym> tags&#58;"
1260
- #~ msgstr ""
1261
- #~ "Je kan deze <acronym title=\"Extensible Hypertext Markup Language"
1262
- #~ "\">XHTML</acronym> tags&#58; gebruiken."
1263
-
1264
- #~ msgid "Search this site..."
1265
- #~ msgstr "Doorzoek deze site"
1266
-
1267
- #~ msgid "Copyright"
1268
- #~ msgstr "Copyright"
1269
-
1270
- #~ msgid "Powered by"
1271
- #~ msgstr "Aangedreven door "
1272
-
1273
- #~ msgid ""
1274
- #~ "Powered by WordPress, state-of-the-art semantic personal publishing "
1275
- #~ "platform"
1276
- #~ msgstr ""
1277
- #~ "Aangedreven door WordPress, het state-of-the-art semantische platform "
1278
- #~ "voor iedereen."
1279
-
1280
- #~ msgid "WordPress"
1281
- #~ msgstr "WordPress"
1282
-
1283
- #~ msgid "and"
1284
- #~ msgstr "en"
1285
-
1286
- #~ msgid "Hybrid Theme Framework"
1287
- #~ msgstr "Hybrid Theme Framework"
1288
-
1289
- #~ msgid "Articles in this series"
1290
- #~ msgstr "Artikelen in deze serie"
1291
-
1292
- #~ msgid ""
1293
- #~ "You have encountered an error. This is usually because you've changed "
1294
- #~ "something in the core Hybrid theme files. Try undoing your last edit to "
1295
- #~ "correct this issue. If this doesn't resolve it, head over to the support "
1296
- #~ "forums for help."
1297
- #~ msgstr ""
1298
- #~ "Er is een fout opgetreden. Dit gebeurt gewoonlijk nadat je iets hebt "
1299
- #~ "gewijzigd in de kernbestanden van het Hybrid-thema. Probeer je laatste "
1300
- #~ "wijzigingen ongedaan te maken om dit op te lossen. Als dat niet lukt, "
1301
- #~ "kan je je tot de support forums richten voor hulp."
1302
-
1303
- #~ msgid "This page loaded in %1$s seconds with %2$s database queries."
1304
- #~ msgstr "Deze pagina laadde in %1$s seconden met %2$s database queries."
1305
-
1306
- #~ msgid ": Page %1$s"
1307
- #~ msgstr ":Pagina %1$s"
1308
-
1309
- #~ msgid "Search results for &quot;%1$s.&quot;"
1310
- #~ msgstr "Zoekresultaten voor &quot;%1$s.&quot;"
1311
-
1312
- #~ msgid "Archive for %1$s"
1313
- #~ msgstr "Archief voor %1$s"
1314
-
1315
- #~ msgid "Archive for week %1$s of %2$s"
1316
- #~ msgstr "Archief voor week %1$s van %2$s"
1317
-
1318
- #~ msgid "Comment on &quot;%1$s&quot;"
1319
- #~ msgstr "Reactie op &quot;%1$s&quot;"
1320
-
1321
- #~ msgid "Primary Home"
1322
- #~ msgstr "Primair Home"
1323
-
1324
- #~ msgid "Primary Author"
1325
- #~ msgstr "Primaire Auteur"
1326
-
1327
- #~ msgid "Primary Category"
1328
- #~ msgstr "Primaire Rubriek"
1329
-
1330
- #~ msgid "Primary Date"
1331
- #~ msgstr "Primaire Datum"
1332
-
1333
- #~ msgid "Primary Page"
1334
- #~ msgstr "Primaire Pagina"
1335
-
1336
- #~ msgid "Primary Search"
1337
- #~ msgstr "Primaire Zoekresultaten"
1338
-
1339
- #~ msgid "Primary Tag"
1340
- #~ msgstr "Primaire Tag"
1341
-
1342
- #~ msgid "Primary 404"
1343
- #~ msgstr "Primaire 404"
1344
-
1345
- #~ msgid "Secondary Home"
1346
- #~ msgstr "Secundaire Home"
1347
-
1348
- #~ msgid "Secondary Author"
1349
- #~ msgstr "Secundaire Auteur"
1350
-
1351
- #~ msgid "Secondary Category"
1352
- #~ msgstr "Secundaire Rubriek"
1353
-
1354
- #~ msgid "Secondary Date"
1355
- #~ msgstr "Secundaire Datum "
1356
-
1357
- #~ msgid "Secondary Page"
1358
- #~ msgstr "Secundaire Pagina"
1359
-
1360
- #~ msgid "Secondary Search"
1361
- #~ msgstr "Secundaire Zoekresultaten"
1362
-
1363
- #~ msgid "Secondary Single"
1364
- #~ msgstr "Secundaire EnkelvoudigBericht"
1365
-
1366
- #~ msgid "Secondary Tag"
1367
- #~ msgstr "Secundaire Tag"
1368
-
1369
- #~ msgid "Secondary 404"
1370
- #~ msgstr "Secundaire 404"
1371
-
1372
- #~ msgid "Subsidiary Default"
1373
- #~ msgstr "Bijkomende Standaard"
1374
-
1375
- #~ msgid "RSS 2.0"
1376
- #~ msgstr "RSS 2.0"
1377
-
1378
- #~ msgid "RSS .92"
1379
- #~ msgstr "RSS .92"
1380
-
1381
- #~ msgid "Atom 0.3"
1382
- #~ msgstr "Atom 0.3"
1383
-
1384
- #~ msgid "Subsidiary Home"
1385
- #~ msgstr "Subsidiair Home"
1386
-
1387
- #~ msgid "Previous Page"
1388
- #~ msgstr "Vorige pagina"
1389
-
1390
- #~ msgid "Next Page"
1391
- #~ msgstr "Volgende pagina"
1392
-
1393
- #~ msgid "Related Posts"
1394
- #~ msgstr "Gerelateerde berichten"
1395
-
1396
- #~ msgid "Logout"
1397
- #~ msgstr "Afmelden"
1398
-
1399
- #~ msgid "Select Year"
1400
- #~ msgstr "Selecteer jaar"
1401
-
1402
- #~ msgid "Select Week"
1403
- #~ msgstr "Selecteer week"
1404
-
1405
- #~ msgid "Select Day"
1406
- #~ msgstr "Selecteer dag"
1407
-
1408
- #~ msgid "Select Post"
1409
- #~ msgstr "Selecteer bericht"
1410
-
1411
- #~ msgid "Type:"
1412
- #~ msgstr "Type:"
1413
-
1414
- #~ msgid "Format:"
1415
- #~ msgstr "Format:"
1416
-
1417
- #~ msgid "Before:"
1418
- #~ msgstr "Voor:"
1419
-
1420
- #~ msgid "After:"
1421
- #~ msgstr "Na:"
1422
-
1423
- #~ msgid "Show post count?"
1424
- #~ msgstr "Toon aantal berichten?"
1425
-
1426
- #~ msgid ""
1427
- #~ "An advanced widget that gives you total control over the output of your "
1428
- #~ "archives."
1429
- #~ msgstr ""
1430
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1431
- #~ "van je archieven."
1432
-
1433
- #~ msgid "Bookmarks"
1434
- #~ msgstr "Favorieten"
1435
-
1436
- #~ msgid "Categories:"
1437
- #~ msgstr "Rubrieken:"
1438
-
1439
- #~ msgid "Exclude Categories:"
1440
- #~ msgstr "Uit te sluiten rubrieken:"
1441
-
1442
- #~ msgid "Category:"
1443
- #~ msgstr "Rubriek:"
1444
-
1445
- #~ msgid "Category Order:"
1446
- #~ msgstr "Rubriek volgorde:"
1447
-
1448
- #~ msgid "Order Categories By:"
1449
- #~ msgstr "Sorteer rubrieken op:"
1450
-
1451
- #~ msgid "Include Bookmarks:"
1452
- #~ msgstr "Inclusief favorieten:"
1453
-
1454
- #~ msgid "Exclude Bookmarks:"
1455
- #~ msgstr "Exclusief favorieten:"
1456
-
1457
- #~ msgid "Bookmarks Order:"
1458
- #~ msgstr "Favorieten volgorde:"
1459
-
1460
- #~ msgid "Order Bookmarks By:"
1461
- #~ msgstr "Sorteer favorieten op:"
1462
-
1463
- #~ msgid "Between (Bookmark/Description):"
1464
- #~ msgstr "Tussen (Favoriet/beschrijving)"
1465
-
1466
- #~ msgid "Categorize?"
1467
- #~ msgstr "Rubriceer?"
1468
-
1469
- #~ msgid "Show description?"
1470
- #~ msgstr "Beschrijving tonen?"
1471
-
1472
- #~ msgid "Hide invisible bookmarks?"
1473
- #~ msgstr "Onzichtbare favorieten verbergen?"
1474
-
1475
- #~ msgid "Show private categories?"
1476
- #~ msgstr "Private rubrieken tonen?"
1477
-
1478
- #~ msgid "Show rating?"
1479
- #~ msgstr "Waardering tonen?"
1480
-
1481
- #~ msgid "Show images?"
1482
- #~ msgstr "Afbeeldingen tonen?"
1483
-
1484
- #~ msgid ""
1485
- #~ "An advanced widget that gives you total control over the output of your "
1486
- #~ "bookmarks (links)."
1487
- #~ msgstr ""
1488
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1489
- #~ "van je favorieten (links)."
1490
-
1491
- #~ msgid "RSS"
1492
- #~ msgstr "RSS"
1493
-
1494
- #~ msgid "Depth:"
1495
- #~ msgstr "Diepte:"
1496
-
1497
- #~ msgid "Number:"
1498
- #~ msgstr "Aantal:"
1499
-
1500
- #~ msgid "Child Of:"
1501
- #~ msgstr "'Child' van :"
1502
-
1503
- #~ msgid "Hierarchical?"
1504
- #~ msgstr "Hierarchisch?"
1505
-
1506
- #~ msgid "Show RSS feed?"
1507
- #~ msgstr "Toon RSS feed?"
1508
-
1509
- #~ msgid "Use description for title?"
1510
- #~ msgstr "Omschrijving gebruiken voor de titel?"
1511
-
1512
- #~ msgid "Show last updated?"
1513
- #~ msgstr "Toon laatste aanpassing?"
1514
-
1515
- #~ msgid "Show count?"
1516
- #~ msgstr "Toon aantal?"
1517
-
1518
- #~ msgid "Hide empty?"
1519
- #~ msgstr "Lege verbergen?"
1520
-
1521
- #~ msgid ""
1522
- #~ "An advanced widget that gives you total control over the output of your "
1523
- #~ "category links."
1524
- #~ msgstr ""
1525
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1526
- #~ "van je rubrieken."
1527
-
1528
- #~ msgid "Categories"
1529
- #~ msgstr "Rubrieken"
1530
-
1531
- #~ msgid "Sort Order:"
1532
- #~ msgstr "Sorteervolgorde"
1533
-
1534
- #~ msgid "Meta Key:"
1535
- #~ msgstr "Meta Key:"
1536
-
1537
- #~ msgid "Meta Value:"
1538
- #~ msgstr "Meta Value:"
1539
-
1540
- #~ msgid "Show home?"
1541
- #~ msgstr "Toon home?"
1542
-
1543
- #~ msgid "Show date?"
1544
- #~ msgstr "Toon datum?"
1545
-
1546
- #~ msgid "Search Text:"
1547
- #~ msgstr "Zoek tekst:"
1548
-
1549
- #~ msgid "Use theme's search form?"
1550
- #~ msgstr "Zoekformulier van thema gebruiken?"
1551
-
1552
- #~ msgid ""
1553
- #~ "An advanced widget that gives you total control over the output of your "
1554
- #~ "search form."
1555
- #~ msgstr ""
1556
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1557
- #~ "van je zoekformulier."
1558
-
1559
- #~ msgid "Largest:"
1560
- #~ msgstr "Grootste:"
1561
-
1562
- #~ msgid "Smallest:"
1563
- #~ msgstr "Kleinste:"
1564
-
1565
- #~ msgid "Unit:"
1566
- #~ msgstr "Eenheid:"
1567
-
1568
- #~ msgid ""
1569
- #~ "An advanced widget that gives you total control over the output of your "
1570
- #~ "tags."
1571
- #~ msgstr ""
1572
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1573
- #~ "van je tags."
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Members WordPress Plugin\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-06-03 12:36-0600\n"
6
+ "PO-Revision-Date: 2011-06-03 12:38-0600\n"
7
+ "Last-Translator: Justin Tadlock <justin@justintadlock.com>\n"
8
+ "Language-Team: <justin@justintadlock.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: English\n"
13
+ "X-Poedit-Country: UNITED STATES\n"
14
+ "X-Poedit-KeywordsList: _e;__;esc_attr__;esc_attr_e;_n;_x;esc_html__;esc_html_e\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: members.php:191
19
+ #: admin/meta-box-plugin-settings.php:30
20
+ #, fuzzy
21
+ msgid "Role Manager"
22
+ msgstr "Naam"
23
+
24
+ #: admin/admin.php:44
25
+ #: admin/roles-list-table.php:57
26
+ #, fuzzy
27
+ msgid "Roles"
28
+ msgstr "Reset"
29
+
30
+ #: admin/admin.php:47
31
+ #: admin/role-new.php:44
32
+ #, fuzzy
33
+ msgid "Add New Role"
34
+ msgstr "Voeg gebruiker toe"
35
+
36
+ #: admin/admin.php:135
37
+ msgid "<strong>Role Manager:</strong> This feature allows you to manage roles on your site by giving you the ability to create, edit, and delete any role. Note that changes to roles do not change settings for the Members plugin. You are literally changing data in your WordPress database. This plugin feature merely provides an interface for you to make these changes."
38
+ msgstr ""
39
+
40
+ #: admin/admin.php:136
41
+ msgid "<strong>Content Permissions:</strong> This feature adds a meta box to the post edit screen that allows you to grant permissions for who can read the post content based on the user's role. Only users of roles with the <code>restrict_content</code> capability will be able to use this component."
42
+ msgstr ""
43
+
44
+ #: admin/admin.php:137
45
+ msgid "<strong>Sidebar Widgets:</strong> This feature creates additional widgets for use in your theme's sidebars. You can access them by clicking Widgets in the menu."
46
+ msgstr ""
47
+
48
+ #: admin/admin.php:138
49
+ msgid "<strong>Private Site:</strong> This feature allows you to redirect all users who are not logged into the site to the login page, creating an entirely private site. You may also replace your feed content with a custom error message."
50
+ msgstr ""
51
+
52
+ #: admin/admin.php:140
53
+ #: admin/admin.php:167
54
+ #: admin/admin.php:183
55
+ msgid "For more information:"
56
+ msgstr ""
57
+
58
+ #: admin/admin.php:143
59
+ #: admin/admin.php:171
60
+ #: admin/admin.php:187
61
+ #, fuzzy
62
+ msgid "Documentation"
63
+ msgstr "Thema Documentatie"
64
+
65
+ #: admin/admin.php:144
66
+ #: admin/admin.php:172
67
+ #: admin/admin.php:188
68
+ #, fuzzy
69
+ msgid "Support Forums"
70
+ msgstr "Bezoek de support forums."
71
+
72
+ #: admin/admin.php:156
73
+ msgid "This screen allows you to edit the capabilities given to the role. You can tick the checkbox next to a capability to add the capability to the role. You can untick the checkbox next to a capability to remove a capability from the role. You can also add as many custom capabilities as you need in the Custom Capabilities section."
74
+ msgstr ""
75
+
76
+ #: admin/admin.php:157
77
+ msgid "Capabilities are both powerful and dangerous tools. You should not add or remove a capability to a role unless you understand what permission you are granting or removing."
78
+ msgstr ""
79
+
80
+ #: admin/admin.php:162
81
+ msgid "This screen lists all the user roles available on this site. Roles are given to users as a way to \"group\" them. Roles are made up of capabilities (permissions), which decide what functions users of each role can perform on the site. From this screen, you can manage these roles and their capabilities."
82
+ msgstr ""
83
+
84
+ #: admin/admin.php:163
85
+ msgid "To add a role to a user, click Users in the menu. To create a new role, click the Add New button at the top of the screen or Add New Role under the Users menu."
86
+ msgstr ""
87
+
88
+ #: admin/admin.php:170
89
+ #: admin/admin.php:186
90
+ msgid "Users, Roles, and Capabilities"
91
+ msgstr ""
92
+
93
+ #: admin/admin.php:180
94
+ msgid "This screen allows you to create a new user role for your site. You must input a unique role name and role label. You can also grant capabilities (permissions) to the new role. Capabilities are both powerful and dangerous tools. You should not add a capability to a role unless you understand what permission you are granting."
95
+ msgstr ""
96
+
97
+ #: admin/admin.php:181
98
+ msgid "To add a role to a user, click Users in the menu. To edit roles, click Roles under the Users menu."
99
+ msgstr ""
100
+
101
+ #: admin/admin.php:202
102
+ msgid "Role deleted."
103
+ msgstr ""
104
+
105
+ #: admin/admin.php:211
106
+ msgid "Selected roles deleted."
107
+ msgstr ""
108
+
109
+ #: admin/meta-box-plugin-settings.php:21
110
+ msgid "About"
111
+ msgstr ""
112
+
113
+ #: admin/meta-box-plugin-settings.php:24
114
+ msgid "Like this plugin?"
115
+ msgstr ""
116
+
117
+ #: admin/meta-box-plugin-settings.php:27
118
+ #, fuzzy
119
+ msgid "Support"
120
+ msgstr "Thema Ondersteuning:"
121
+
122
+ #: admin/meta-box-plugin-settings.php:33
123
+ #: admin/meta-box-post-content-permissions.php:28
124
+ msgid "Content Permissions"
125
+ msgstr ""
126
+
127
+ #: admin/meta-box-plugin-settings.php:36
128
+ #, fuzzy
129
+ msgid "Sidebar Widgets"
130
+ msgstr "Widgets invoegen:"
131
+
132
+ #: admin/meta-box-plugin-settings.php:39
133
+ #, fuzzy
134
+ msgid "Private Site"
135
+ msgstr "Primaire EnkelvoudigBericht"
136
+
137
+ #: admin/meta-box-plugin-settings.php:52
138
+ #, fuzzy
139
+ msgid "Version:"
140
+ msgstr "Thema versie:"
141
+
142
+ #: admin/meta-box-plugin-settings.php:55
143
+ #, fuzzy
144
+ msgid "Description:"
145
+ msgstr "Beschrijving"
146
+
147
+ #: admin/meta-box-plugin-settings.php:69
148
+ msgid "Here's how you can give back:"
149
+ msgstr ""
150
+
151
+ #: admin/meta-box-plugin-settings.php:72
152
+ msgid "Members on the WordPress plugin repository"
153
+ msgstr ""
154
+
155
+ #: admin/meta-box-plugin-settings.php:72
156
+ msgid "Give the plugin a good rating."
157
+ msgstr ""
158
+
159
+ #: admin/meta-box-plugin-settings.php:73
160
+ msgid "Donate via PayPal"
161
+ msgstr ""
162
+
163
+ #: admin/meta-box-plugin-settings.php:73
164
+ msgid "Donate a few dollars."
165
+ msgstr ""
166
+
167
+ #: admin/meta-box-plugin-settings.php:74
168
+ msgid "Justin Tadlock's Amazon Wish List"
169
+ msgstr ""
170
+
171
+ #: admin/meta-box-plugin-settings.php:74
172
+ msgid "Get me something from my wish list."
173
+ msgstr ""
174
+
175
+ #: admin/meta-box-plugin-settings.php:86
176
+ #, php-format
177
+ msgid "Support for this plugin is provided via the support forums at %1$s. If you need any help using it, please ask your support questions there."
178
+ msgstr ""
179
+
180
+ #: admin/meta-box-plugin-settings.php:86
181
+ #, fuzzy
182
+ msgid "Theme Hybrid Support Forums"
183
+ msgstr "Thema Ondersteuning:"
184
+
185
+ #: admin/meta-box-plugin-settings.php:86
186
+ #, fuzzy
187
+ msgid "Theme Hybrid"
188
+ msgstr "Hybrid"
189
+
190
+ #: admin/meta-box-plugin-settings.php:99
191
+ msgid "Enable the role manager."
192
+ msgstr ""
193
+
194
+ #: admin/meta-box-plugin-settings.php:102
195
+ msgid "Your roles and capabilities will not revert back to their previous settings after deactivating or uninstalling this plugin, so use this feature wisely."
196
+ msgstr ""
197
+
198
+ #: admin/meta-box-plugin-settings.php:116
199
+ msgid "Enable the content permissions feature."
200
+ msgstr ""
201
+
202
+ #: admin/meta-box-plugin-settings.php:120
203
+ msgid "Default post error message:"
204
+ msgstr ""
205
+
206
+ #: admin/meta-box-plugin-settings.php:122
207
+ msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message for users that don't have permission to view posts."
208
+ msgstr ""
209
+
210
+ #: admin/meta-box-plugin-settings.php:136
211
+ msgid "Enable the login form widget."
212
+ msgstr ""
213
+
214
+ #: admin/meta-box-plugin-settings.php:141
215
+ msgid "Enable the users widget."
216
+ msgstr ""
217
+
218
+ #: admin/meta-box-plugin-settings.php:155
219
+ msgid "Redirect all logged-out users to the login page before allowing them to view the site."
220
+ msgstr ""
221
+
222
+ #: admin/meta-box-plugin-settings.php:160
223
+ msgid "Show error message for feed items."
224
+ msgstr ""
225
+
226
+ #: admin/meta-box-plugin-settings.php:164
227
+ #, fuzzy
228
+ msgid "Feed error message:"
229
+ msgstr "Feed afbeelding:"
230
+
231
+ #: admin/meta-box-plugin-settings.php:167
232
+ msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message to display instead of feed item content."
233
+ msgstr ""
234
+
235
+ #: admin/meta-box-post-content-permissions.php:51
236
+ msgid "Limit access to this post's content to users of the selected roles."
237
+ msgstr ""
238
+
239
+ #: admin/meta-box-post-content-permissions.php:75
240
+ #, php-format
241
+ msgid "If no roles are selected, everyone can view the content. The post author, any users who can edit this post, and users with the %s capability can view the content regardless of role."
242
+ msgstr ""
243
+
244
+ #: admin/meta-box-post-content-permissions.php:79
245
+ msgid "Custom error messsage:"
246
+ msgstr ""
247
+
248
+ #: admin/meta-box-post-content-permissions.php:82
249
+ msgid "Message shown to users that do no have permission to view the post."
250
+ msgstr ""
251
+
252
+ #: admin/role-edit.php:67
253
+ #, fuzzy
254
+ msgid "Edit Role"
255
+ msgstr "Bewerk"
256
+
257
+ #: admin/role-edit.php:68
258
+ #: admin/roles-list-table.php:58
259
+ msgid "Add New"
260
+ msgstr ""
261
+
262
+ #: admin/role-edit.php:71
263
+ #, fuzzy
264
+ msgid "Role updated."
265
+ msgstr "Aanpassingen tonen?"
266
+
267
+ #: admin/role-edit.php:71
268
+ msgid "&larr; Back to Roles"
269
+ msgstr ""
270
+
271
+ #: admin/role-edit.php:85
272
+ #: admin/role-new.php:60
273
+ #: admin/roles-list-table.php:111
274
+ #, fuzzy
275
+ msgid "Role Name"
276
+ msgstr "Naam"
277
+
278
+ #: admin/role-edit.php:94
279
+ #: admin/roles-list-table.php:113
280
+ #: admin/roles-list-table.php:123
281
+ msgid "Capabilities"
282
+ msgstr ""
283
+
284
+ #: admin/role-edit.php:112
285
+ msgid "Custom Capabilities"
286
+ msgstr ""
287
+
288
+ #: admin/role-edit.php:117
289
+ msgid "Add New Capability"
290
+ msgstr ""
291
+
292
+ #: admin/role-edit.php:127
293
+ #, fuzzy
294
+ msgid "Update Role"
295
+ msgstr "Bewerk"
296
+
297
+ #: admin/role-new.php:46
298
+ #, fuzzy, php-format
299
+ msgid "The %s role has been created."
300
+ msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
301
+
302
+ #: admin/role-new.php:65
303
+ msgid "<strong>Required:</strong> The role name should be unique and contain only alphanumeric characters and underscores."
304
+ msgstr ""
305
+
306
+ #: admin/role-new.php:71
307
+ #: admin/roles-list-table.php:110
308
+ #: admin/roles-list-table.php:120
309
+ #, fuzzy
310
+ msgid "Role Label"
311
+ msgstr "Zoek label:"
312
+
313
+ #: admin/role-new.php:76
314
+ msgid "<strong>Required:</strong> The role label is used to represent your role in the WordPress admin."
315
+ msgstr ""
316
+
317
+ #: admin/role-new.php:82
318
+ #, fuzzy
319
+ msgid "Role Capabilities"
320
+ msgstr "Aanpassingen tonen?"
321
+
322
+ #: admin/role-new.php:86
323
+ msgid "<strong>Optional:</strong> Select the capabilities this role should have. These may be updated later."
324
+ msgstr ""
325
+
326
+ #: admin/role-new.php:102
327
+ #, fuzzy
328
+ msgid "Add Role"
329
+ msgstr "Bewerk"
330
+
331
+ #: admin/roles-list-table.php:70
332
+ msgid "All"
333
+ msgstr ""
334
+
335
+ #: admin/roles-list-table.php:71
336
+ #, fuzzy
337
+ msgid "Has Users"
338
+ msgstr "Gebruikersnaam"
339
+
340
+ #: admin/roles-list-table.php:72
341
+ #, fuzzy
342
+ msgid "No Users"
343
+ msgstr "Gebruikersnaam"
344
+
345
+ #: admin/roles-list-table.php:83
346
+ #: admin/roles-list-table.php:215
347
+ msgid "Bulk Actions"
348
+ msgstr ""
349
+
350
+ #: admin/roles-list-table.php:86
351
+ #: admin/roles-list-table.php:158
352
+ #: admin/roles-list-table.php:218
353
+ msgid "Delete"
354
+ msgstr ""
355
+
356
+ #: admin/roles-list-table.php:91
357
+ #: admin/roles-list-table.php:223
358
+ #, fuzzy
359
+ msgid "Apply"
360
+ msgstr "Reageer"
361
+
362
+ #: admin/roles-list-table.php:98
363
+ #: admin/roles-list-table.php:230
364
+ #, php-format
365
+ msgid "%s item"
366
+ msgstr ""
367
+
368
+ #: admin/roles-list-table.php:112
369
+ #: admin/roles-list-table.php:122
370
+ #, fuzzy
371
+ msgid "Users"
372
+ msgstr "Gebruikersnaam"
373
+
374
+ #: admin/roles-list-table.php:121
375
+ #: includes/admin-bar.php:29
376
+ msgid "Role"
377
+ msgstr ""
378
+
379
+ #: admin/roles-list-table.php:146
380
+ #: admin/roles-list-table.php:154
381
+ #, fuzzy, php-format
382
+ msgid "Edit the %s role"
383
+ msgstr "Bewerk"
384
+
385
+ #: admin/roles-list-table.php:154
386
+ msgid "Edit"
387
+ msgstr "Bewerk"
388
+
389
+ #: admin/roles-list-table.php:158
390
+ #, php-format
391
+ msgid "Delete the %s role"
392
+ msgstr ""
393
+
394
+ #: admin/roles-list-table.php:162
395
+ msgid "Change default role"
396
+ msgstr ""
397
+
398
+ #: admin/roles-list-table.php:162
399
+ msgid "Default Role"
400
+ msgstr ""
401
+
402
+ #: admin/roles-list-table.php:166
403
+ #: admin/roles-list-table.php:182
404
+ #, php-format
405
+ msgid "View all users with the %s role"
406
+ msgstr ""
407
+
408
+ #: admin/roles-list-table.php:166
409
+ msgid "View Users"
410
+ msgstr ""
411
+
412
+ #: admin/roles-list-table.php:182
413
+ #: admin/roles-list-table.php:184
414
+ #, fuzzy, php-format
415
+ msgid "%s User"
416
+ msgstr "Voeg gebruiker toe"
417
+
418
+ #: admin/roles-list-table.php:194
419
+ #, php-format
420
+ msgid "%s Capability"
421
+ msgstr ""
422
+
423
+ #: admin/settings.php:28
424
+ #, fuzzy
425
+ msgid "Members Settings"
426
+ msgstr "Hybrid Settings"
427
+
428
+ #: admin/settings.php:28
429
+ #, fuzzy
430
+ msgid "Members"
431
+ msgstr "Hybrid Settings"
432
+
433
+ #: admin/settings.php:66
434
+ msgid "Sorry, but you do not have permission to view this content."
435
+ msgstr ""
436
+
437
+ #: admin/settings.php:67
438
+ msgid "You must be logged into the site to view this content."
439
+ msgstr ""
440
+
441
+ #: admin/settings.php:145
442
+ #, fuzzy
443
+ msgid "Members Plugin Settings"
444
+ msgstr "Hybrid Settings"
445
+
446
+ #: admin/settings.php:160
447
+ #, fuzzy
448
+ msgid "Update Settings"
449
+ msgstr "Footer Settings:"
450
+
451
+ #: includes/widget-login-form.php:26
452
+ msgid "A widget that allows users to log into your site."
453
+ msgstr ""
454
+
455
+ #: includes/widget-login-form.php:37
456
+ #, fuzzy
457
+ msgid "Login Form"
458
+ msgstr "Aanmelden"
459
+
460
+ #: includes/widget-login-form.php:158
461
+ #: includes/widget-login-form.php:161
462
+ #, fuzzy
463
+ msgid "Log In"
464
+ msgstr "Aanmelden"
465
+
466
+ #: includes/widget-login-form.php:159
467
+ #, fuzzy
468
+ msgid "Username"
469
+ msgstr "Gebruikersnaam"
470
+
471
+ #: includes/widget-login-form.php:160
472
+ msgid "Password"
473
+ msgstr "Wachtwoord"
474
+
475
+ #: includes/widget-login-form.php:162
476
+ #, fuzzy
477
+ msgid "Remember Me"
478
+ msgstr "Herinner deze gegevens."
479
+
480
+ #: includes/widget-login-form.php:172
481
+ msgid "Please log into the site."
482
+ msgstr ""
483
+
484
+ #: includes/widget-login-form.php:173
485
+ msgid "You are currently logged in."
486
+ msgstr ""
487
+
488
+ #: includes/widget-login-form.php:185
489
+ #: includes/widget-users.php:157
490
+ msgid "Title:"
491
+ msgstr "Titel"
492
+
493
+ #: includes/widget-login-form.php:235
494
+ #, fuzzy
495
+ msgid "\"Remember me\" checkbox?"
496
+ msgstr "Herinner deze gegevens."
497
+
498
+ #: includes/widget-login-form.php:239
499
+ #, fuzzy
500
+ msgid "Check \"remember me\"?"
501
+ msgstr "Herinner deze gegevens."
502
+
503
+ #: includes/widget-login-form.php:243
504
+ msgid "Display avatar?"
505
+ msgstr ""
506
+
507
+ #: includes/widget-login-form.php:246
508
+ msgid "Logged out text:"
509
+ msgstr ""
510
+
511
+ #: includes/widget-login-form.php:251
512
+ msgid "Logged in text:"
513
+ msgstr ""
514
+
515
+ #: includes/widget-users.php:26
516
+ msgid "Provides the ability to list the users of the site."
517
+ msgstr ""
518
+
519
+ #: includes/widget-users.php:145
520
+ msgid "Ascending"
521
+ msgstr ""
522
+
523
+ #: includes/widget-users.php:145
524
+ msgid "Descending"
525
+ msgstr ""
526
+
527
+ #: includes/widget-users.php:146
528
+ #, fuzzy
529
+ msgid "Display Name"
530
+ msgstr "Voornaam"
531
+
532
+ #: includes/widget-users.php:146
533
+ msgid "Email"
534
+ msgstr "Email"
535
+
536
+ #: includes/widget-users.php:146
537
+ msgid "ID"
538
+ msgstr ""
539
+
540
+ #: includes/widget-users.php:146
541
+ #, fuzzy
542
+ msgid "Nice Name"
543
+ msgstr "Naam"
544
+
545
+ #: includes/widget-users.php:146
546
+ #, fuzzy
547
+ msgid "Post Count"
548
+ msgstr "Niet gevonden"
549
+
550
+ #: includes/widget-users.php:146
551
+ #, fuzzy
552
+ msgid "Registered"
553
+ msgstr "Registreer"
554
+
555
+ #: includes/widget-users.php:146
556
+ msgid "URL"
557
+ msgstr ""
558
+
559
+ #: includes/widget-users.php:146
560
+ #, fuzzy
561
+ msgid "Login"
562
+ msgstr "Aanmelden"
563
+
564
+ #, fuzzy
565
+ #~ msgid "Welcome, %1$s!"
566
+ #~ msgstr "Week %1$s"
567
+
568
+ #, fuzzy
569
+ #~ msgid "Password:"
570
+ #~ msgstr "Wachtwoord"
571
+
572
+ #, fuzzy
573
+ #~ msgid "Select Components"
574
+ #~ msgstr "Selecteer maand"
575
+
576
+ #, fuzzy
577
+ #~ msgid "Component"
578
+ #~ msgstr "Reactie"
579
+
580
+ #, fuzzy
581
+ #~ msgid "Activate"
582
+ #~ msgstr "Archieven"
583
+
584
+ #, fuzzy
585
+ #~ msgid "Active"
586
+ #~ msgstr "Archieven"
587
+
588
+ #, fuzzy
589
+ #~ msgid "Inactive"
590
+ #~ msgstr "Archieven"
591
+
592
+ #, fuzzy
593
+ #~ msgid "Username Label:"
594
+ #~ msgstr "Gebruikersnaam*"
595
+
596
+ #, fuzzy
597
+ #~ msgid "Password Label:"
598
+ #~ msgstr "Wachtwoord*"
599
+
600
+ #~ msgid "Submit Text:"
601
+ #~ msgstr "Verstuur tekst:"
602
+
603
+ #, fuzzy
604
+ #~ msgid "Remember User Text:"
605
+ #~ msgstr "Herinner deze gegevens."
606
+
607
+ #, fuzzy
608
+ #~ msgid ""
609
+ #~ "An advanced widget that gives you total control over the output of your "
610
+ #~ "user lists."
611
+ #~ msgstr ""
612
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
613
+ #~ "van je pagina-links."
614
+
615
+ #~ msgid "Limit:"
616
+ #~ msgstr "Limiet:"
617
+
618
+ #~ msgid "Order:"
619
+ #~ msgstr "Volgorde:"
620
+
621
+ #~ msgid "Order By:"
622
+ #~ msgstr "Sorteer op:"
623
+
624
+ #~ msgid "Include:"
625
+ #~ msgstr "Omvat:"
626
+
627
+ #~ msgid "Exclude:"
628
+ #~ msgstr "Sluit uit:"
629
+
630
+ #, fuzzy
631
+ #~ msgid "Show full name?"
632
+ #~ msgstr "Aanpassingen tonen?"
633
+
634
+ #~ msgid "Save Changes"
635
+ #~ msgstr "Bewaren"
636
+
637
+ #, fuzzy
638
+ #~ msgid "New user role has been added."
639
+ #~ msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
640
+
641
+ #~ msgid ""
642
+ #~ "You tried going to %1$s, and it doesn't exist. All is not lost! You can "
643
+ #~ "search for what you're looking for."
644
+ #~ msgstr ""
645
+ #~ "Je wilde naar %1$s gaan, maar dit bestaat niet. Geen nood! Zoek hier "
646
+ #~ "wat je zocht:"
647
+
648
+ #~ msgid "Possibly Related"
649
+ #~ msgstr "Mogelijk gerelateerd"
650
+
651
+ #~ msgid "Continue reading"
652
+ #~ msgstr "Lees hier verder"
653
+
654
+ #~ msgid "Download &quot;%1$s&quot;"
655
+ #~ msgstr "Download &quot;%1$s&quot;"
656
+
657
+ #~ msgid "Pages:"
658
+ #~ msgstr "Pagina's:"
659
+
660
+ #~ msgid "Sorry, no applications matched your criteria."
661
+ #~ msgstr "Sorry, er zijn geen toepassingen die met je criteria overeenkomen."
662
+
663
+ #~ msgid "You are browsing the archive for %1$s."
664
+ #~ msgstr "Je bladert nu door het archief voor %1$s."
665
+
666
+ #~ msgid "By"
667
+ #~ msgstr "Door"
668
+
669
+ #~ msgid "on"
670
+ #~ msgstr "op"
671
+
672
+ #~ msgid "l, F jS, Y, g:i a"
673
+ #~ msgstr "l, j F, Y, G:i"
674
+
675
+ #~ msgid "F j, Y"
676
+ #~ msgstr "j F, Y"
677
+
678
+ #~ msgid "Posted in"
679
+ #~ msgstr "Gepost in"
680
+
681
+ #~ msgid "Tagged"
682
+ #~ msgstr "Tags:"
683
+
684
+ #~ msgid "Leave a response"
685
+ #~ msgstr "Reageer"
686
+
687
+ #~ msgid "1 Response"
688
+ #~ msgstr "1 Reactie"
689
+
690
+ #~ msgid "% Responses"
691
+ #~ msgstr "% Reacties"
692
+
693
+ #~ msgid "Sorry, there are no posts in this archive."
694
+ #~ msgstr "Sorry, dit archief bevat geen berichten."
695
+
696
+ #~ msgid "Archives by category"
697
+ #~ msgstr "Archieven per rubriek"
698
+
699
+ #~ msgid "Archives by month"
700
+ #~ msgstr "Archieven per maand"
701
+
702
+ #~ msgid "Sorry, no page matched your criteria."
703
+ #~ msgstr "Sorry, er bestaat geen pagina die aan je criteria voldoet."
704
+
705
+ #~ msgid "Sorry, no attachments matched your criteria."
706
+ #~ msgstr "Sorry, er zijn geen bijlages die aan je criteria voldoen."
707
+
708
+ #~ msgid "Sorry, no audio files matched your criteria."
709
+ #~ msgstr "Sorry, er zijn geen geluidsbestanden die aan je criteria voldoen."
710
+
711
+ #~ msgid "Send an email to %1$s"
712
+ #~ msgstr "Stuur een email aan %1$s"
713
+
714
+ #~ msgid "Email %1$s"
715
+ #~ msgstr "Email %1$s"
716
+
717
+ #~ msgid "%1$s hasn't written any posts yet."
718
+ #~ msgstr "%1$s heeft nog geen berichten geschreven."
719
+
720
+ #~ msgid "Nickname:"
721
+ #~ msgstr "Bijnaam:"
722
+
723
+ #~ msgid "Email:"
724
+ #~ msgstr "Email:"
725
+
726
+ #~ msgid "Website:"
727
+ #~ msgstr "Website:"
728
+
729
+ #~ msgid "AIM:"
730
+ #~ msgstr "AIM:"
731
+
732
+ #~ msgid "IM with %1$s"
733
+ #~ msgstr "IM met %1$s"
734
+
735
+ #~ msgid "Jabber:"
736
+ #~ msgstr "Jabber:"
737
+
738
+ #~ msgid "Yahoo:"
739
+ #~ msgstr "Yahoo:"
740
+
741
+ #~ msgid "Sorry, there are no posts in the %1$s category."
742
+ #~ msgstr "Sorry, er zijn geen berichten in de rubriek %1$s. "
743
+
744
+ #~ msgid "Please do not load this page directly. Thanks!"
745
+ #~ msgstr "Gelieve deze pagina niet rechtstreeks te laden. Dankjewel!"
746
+
747
+ #~ msgid "No Responses"
748
+ #~ msgstr "Geen reacties"
749
+
750
+ #~ msgid "One Response"
751
+ #~ msgstr "Een reactie"
752
+
753
+ #~ msgid "Responses"
754
+ #~ msgstr "Reacties"
755
+
756
+ #~ msgid "to"
757
+ #~ msgstr "naar"
758
+
759
+ #~ msgid "%1$s at %2$s"
760
+ #~ msgstr "%1$s op %2$s"
761
+
762
+ #~ msgid "Permalink to comment"
763
+ #~ msgstr "Permalink naar reactie"
764
+
765
+ #~ msgid "Permalink"
766
+ #~ msgstr "Permalink"
767
+
768
+ #~ msgid "Your comment is awaiting moderation."
769
+ #~ msgstr "Je reactie wacht op moderatie."
770
+
771
+ #~ msgid ""
772
+ #~ "Comments are closed, but <a href=\"%1$s\" title=\"Trackback URL for this "
773
+ #~ "post\">trackbacks</a> and pingbacks are open."
774
+ #~ msgstr ""
775
+ #~ "Reageren is niet mogelijk, maar <a href=\"%1$s\" title=\"Trackback URL "
776
+ #~ "for this post\">trackbacks</a> en pingbacks blijven open."
777
+
778
+ #~ msgid "Comments are closed."
779
+ #~ msgstr "Reageren is niet mogelijk."
780
+
781
+ #~ msgid "Leave a Reply"
782
+ #~ msgstr "Reageer"
783
+
784
+ #~ msgid ""
785
+ #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to post a "
786
+ #~ "comment."
787
+ #~ msgstr ""
788
+ #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om te "
789
+ #~ "reageren."
790
+
791
+ #~ msgid "Logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
792
+ #~ msgstr "Ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
793
+
794
+ #~ msgid "Log out of this account"
795
+ #~ msgstr "Afmelden."
796
+
797
+ #~ msgid "Logout &raquo;"
798
+ #~ msgstr "Afmelden &raquo;"
799
+
800
+ #~ msgid "*"
801
+ #~ msgstr "*"
802
+
803
+ #~ msgid "Website"
804
+ #~ msgstr "Website"
805
+
806
+ #~ msgid "Submit"
807
+ #~ msgstr "Verstuur"
808
+
809
+ #~ msgid "Password Protected"
810
+ #~ msgstr "Beveiligd met wachtwoord"
811
+
812
+ #~ msgid "Enter the password to view comments."
813
+ #~ msgstr "Voer wachtwoord in om reacties te lezen."
814
+
815
+ #~ msgid "Leave a Reply to %s"
816
+ #~ msgstr "Reageer op %s"
817
+
818
+ #~ msgid "Click here to cancel reply."
819
+ #~ msgstr "Klik hier om de reactie te annuleren."
820
+
821
+ #~ msgid "F jS, Y"
822
+ #~ msgstr "j F, Y"
823
+
824
+ #~ msgid "Week %1$s of %2$s"
825
+ #~ msgstr "Week %1$s van %2$s"
826
+
827
+ #~ msgid "W"
828
+ #~ msgstr "W"
829
+
830
+ #~ msgid "Y"
831
+ #~ msgstr "Y"
832
+
833
+ #~ msgid "You are browsing the archive for week %1$s of %2$s."
834
+ #~ msgstr "Je bekijkt het archief voor week %1$s van %2$s."
835
+
836
+ #~ msgid "Sorry, there are no posts for %1$s."
837
+ #~ msgstr "Sorry, maar er zijn geen berichten voor %1$s."
838
+
839
+ #~ msgid "Sorry, no posts matched your criteria."
840
+ #~ msgstr "Sorry, er zijn geen berichten die met je criteria overeenkomen."
841
+
842
+ #~ msgid "Sorry, no images matched your criteria."
843
+ #~ msgstr "Sorry, er zijn geen afbeeldingen die met je criteria overeenkomen."
844
+
845
+ #~ msgid ""
846
+ #~ "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
847
+ #~ msgstr ""
848
+ #~ "Je bent momenteel ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
849
+
850
+ #~ msgid ""
851
+ #~ "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</"
852
+ #~ "a>."
853
+ #~ msgstr ""
854
+ #~ "Je bent succesvol ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
855
+
856
+ #~ msgid ""
857
+ #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to view the "
858
+ #~ "content of this page."
859
+ #~ msgstr ""
860
+ #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om de inhoud "
861
+ #~ "van deze pagina te bekijken."
862
+
863
+ #~ msgid ""
864
+ #~ "If you're not currently a member, please take a moment to <a href=\"%1$s"
865
+ #~ "\" title=\"Register\">register</a>."
866
+ #~ msgstr ""
867
+ #~ "Als je momenteel nog geen lid bent, neem dan een ogenblikje tijd om je te "
868
+ #~ "<a href=\"%1$s\" title=\"Register\">registreren</a>."
869
+
870
+ #~ msgid "You must enter a post title."
871
+ #~ msgstr "Je moet een titel voor het bericht invoeren."
872
+
873
+ #~ msgid "You must write something."
874
+ #~ msgstr "Je moet hier iets schrijven."
875
+
876
+ #~ msgid "Title"
877
+ #~ msgstr "Titel"
878
+
879
+ #~ msgid "Write"
880
+ #~ msgstr "Schrijf"
881
+
882
+ #~ msgid "Tags"
883
+ #~ msgstr "Tags"
884
+
885
+ #~ msgid "Publish"
886
+ #~ msgstr "Publiceer"
887
+
888
+ #~ msgid "You don't have the appropriate capabilities to publish posts."
889
+ #~ msgstr "Je hebt niet de nodige rechten om berichten te publiceren."
890
+
891
+ #~ msgid ""
892
+ #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> with "
893
+ #~ "appropriate user capabilities to publish posts."
894
+ #~ msgstr ""
895
+ #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn met de nodige "
896
+ #~ "gebruikersrechten om berichten te kunnen publiceren."
897
+
898
+ #~ msgid "A username is required for registration."
899
+ #~ msgstr "Om te registreren is een gebruikersnaam nodig."
900
+
901
+ #~ msgid "You must enter an email address."
902
+ #~ msgstr "Je moet een email-adres invoeren."
903
+
904
+ #~ msgid "You must enter a password."
905
+ #~ msgstr "Je moet een wachtwoord invoeren."
906
+
907
+ #~ msgid "You must enter your password twice."
908
+ #~ msgstr "Je moet je wachtwoord tweemaal invoeren."
909
+
910
+ #~ msgid "You must enter the same password twice."
911
+ #~ msgstr "Je moet tweemaal hetzelfde wachtwoord invoeren."
912
+
913
+ #~ msgid "User registration failed. Please try again."
914
+ #~ msgstr "Gebruikersregistratie mislukt. Probeer opnieuw."
915
+
916
+ #~ msgid ""
917
+ #~ "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't "
918
+ #~ "need another account."
919
+ #~ msgstr ""
920
+ #~ "Je bent ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Je hebt "
921
+ #~ "geen bijkomend account nodig."
922
+
923
+ #~ msgid "Thank you for registering, %1$s."
924
+ #~ msgstr "Bedankt voor je registratie, %1$s."
925
+
926
+ #~ msgid "Users can register themselves or you can manually create users here."
927
+ #~ msgstr ""
928
+ #~ "Gebruikers kunnen zichzelf registreren of je kan hier handmatig "
929
+ #~ "gebruikersaccounts aanmaken."
930
+
931
+ #~ msgid ""
932
+ #~ "Users cannot currently register themselves, but you can manually create "
933
+ #~ "users here."
934
+ #~ msgstr ""
935
+ #~ "Gebruikers kunnen zichzelf niet registreren, maar je kan hier wel "
936
+ #~ "handmatig gebruikersaccounts aanmaken."
937
+
938
+ #~ msgid "Required fields are marked <span class=\"required\">*</span>"
939
+ #~ msgstr ""
940
+ #~ "Verplichte velden zijn aangeduid met <span class=\"required\">*</span>."
941
+
942
+ #~ msgid "Last Name"
943
+ #~ msgstr "Naam"
944
+
945
+ #~ msgid "E-mail *"
946
+ #~ msgstr "E-mail *"
947
+
948
+ #~ msgid "Repeat Password *"
949
+ #~ msgstr "Herhaal je wachtwoord*"
950
+
951
+ #~ msgid "Biographical Information"
952
+ #~ msgstr "Biografische informatie"
953
+
954
+ #~ msgid "You are browsing the search results for &quot;%1$s&quot;"
955
+ #~ msgstr "Je bekijkt hier de zoekresultaten voor &quot;%1$s&quot;"
956
+
957
+ #~ msgid "Maybe you'd like to try inputting different search terms."
958
+ #~ msgstr "Misschien wil je andere zoektermen invoeren."
959
+
960
+ #~ msgid "You are browsing the %1$s tag archive."
961
+ #~ msgstr "Je bekijkt het archief voor de tag %1$s"
962
+
963
+ #~ msgid "Sorry, there are no posts tagged %1$s."
964
+ #~ msgstr "Sorry, er zijn geen berichten met de tag %1$s."
965
+
966
+ #~ msgid "Sorry, no documents matched your criteria."
967
+ #~ msgstr "Sorry, er zijn geen documenten die met je criteria overeenkomen."
968
+
969
+ #~ msgid "Sorry, no videos matched your criteria."
970
+ #~ msgstr "Sorry, er zijn geen video's die met je criteria overeenkomen."
971
+
972
+ #~ msgid "Widget Template"
973
+ #~ msgstr "Widget Template"
974
+
975
+ #~ msgid "About This Theme"
976
+ #~ msgstr "Over dit Thema"
977
+
978
+ #~ msgid "Theme Description:"
979
+ #~ msgstr "Thema Beschrijving:"
980
+
981
+ #~ msgid "Theme Documentation:"
982
+ #~ msgstr "Thema Documentatie:"
983
+
984
+ #~ msgid "Get support for this theme"
985
+ #~ msgstr "Ondersteuning voor dit thema"
986
+
987
+ #~ msgid "Select your theme settings"
988
+ #~ msgstr "Selecteer de settings voor je thema"
989
+
990
+ #, fuzzy
991
+ #~ msgid ""
992
+ #~ "Select this if you want your primary widget inserts to default to the "
993
+ #~ "home insert when nothing else is selected."
994
+ #~ msgstr ""
995
+ #~ "Selecteer dit als je wenst dat je primaire widgets standaard geladen "
996
+ #~ "worden op de home-pagina als niet anders geselecteerd is."
997
+
998
+ #, fuzzy
999
+ #~ msgid ""
1000
+ #~ "Select this if you want your secondary widget inserts to default to the "
1001
+ #~ "home insert when nothing else is selected."
1002
+ #~ msgstr ""
1003
+ #~ "Selecteer dit als je wenst dat je secundaire widgets standaard geladen "
1004
+ #~ "worden op de home-pagina als niet anders geselecteerd is."
1005
+
1006
+ #~ msgid "Stylesheets:"
1007
+ #~ msgstr "Stijlbladen (CSS)"
1008
+
1009
+ #~ msgid ""
1010
+ #~ "Select this to have the theme automatically include a print stylesheet."
1011
+ #~ msgstr ""
1012
+ #~ "Selecteer dit als je wil dat het thema automatisch een 'print' stijlblad "
1013
+ #~ "insluit."
1014
+
1015
+ #~ msgid "JavaScript:"
1016
+ #~ msgstr "JavaScript:"
1017
+
1018
+ #~ msgid "Include the pull quote JavaScript."
1019
+ #~ msgstr "Inclusief pull quote JavaScript."
1020
+
1021
+ #~ msgid "Feeds:"
1022
+ #~ msgstr "Feeds:"
1023
+
1024
+ #~ msgid ""
1025
+ #~ "If you have a an alternate feed address, such as one from <a href="
1026
+ #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, you can "
1027
+ #~ "enter it here to have the theme set your feed URL link. If blank, the "
1028
+ #~ "theme will default to your WordPress RSS feed."
1029
+ #~ msgstr ""
1030
+ #~ "Wanneer je over een alternatief feed-adres beschikt, zoals van <a href="
1031
+ #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, kan je dat "
1032
+ #~ "hier invoeren om het door het thema te laten gebruiken. Als je dit "
1033
+ #~ "blanco laat, wordt de standaard WordPress RSS feed gebruikt."
1034
+
1035
+ #~ msgid "Title &amp; Meta:"
1036
+ #~ msgstr "Titel &amp; Meta"
1037
+
1038
+ #~ msgid "Use category slugs on single posts for your meta keywords?"
1039
+ #~ msgstr ""
1040
+ #~ "Gebruik categorie 'slug' als meta keywoord voor afzonderlijke berichten."
1041
+
1042
+ #~ msgid "Use tag slugs on single posts for your meta keywords?"
1043
+ #~ msgstr "Gebruik tag 'slug' als meta keywoord voor afzonderlijke berichten."
1044
+
1045
+ #~ msgid "Use the excerpt on single posts for your meta description?"
1046
+ #~ msgstr ""
1047
+ #~ "Uittreksel als meta-omschrijving gebruiken voor afzonderlijke berichten?"
1048
+
1049
+ #~ msgid "Use the author bio on author archives for your meta description?"
1050
+ #~ msgstr ""
1051
+ #~ "Auteurs biografie als meta-omschrijving gebruiken voor afzonderlijke "
1052
+ #~ "berichten?"
1053
+
1054
+ #~ msgid ""
1055
+ #~ "Use the category description on category archives for your meta "
1056
+ #~ "description?"
1057
+ #~ msgstr ""
1058
+ #~ "Rubriek-omschrijving als meta-omschrijving gebruiken voor afzonderlijke "
1059
+ #~ "berichten?"
1060
+
1061
+ #~ msgid "Use the author's name on pages and posts as the meta author?"
1062
+ #~ msgstr ""
1063
+ #~ "Naam van de auteur als meta-auteur gebruiken op pagina's en berichten?"
1064
+
1065
+ #~ msgid "Append site title to the end of the page name?"
1066
+ #~ msgstr "Site-naam toevoegen aan het eind van de pagina-naam?"
1067
+
1068
+ #~ msgid ""
1069
+ #~ "You can change these settings in the box labeled <em>Hybrid Settings</em> "
1070
+ #~ "when writing a post or page."
1071
+ #~ msgstr ""
1072
+ #~ "Je kan deze settings aanpassen in het vak <em>Hybrid Settings</em> "
1073
+ #~ "wanneer je een bericht of pagina bewerkt."
1074
+
1075
+ #~ msgid ""
1076
+ #~ "The <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</"
1077
+ #~ "a> and <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins will "
1078
+ #~ "override these settings and the Indexing settings."
1079
+ #~ msgstr ""
1080
+ #~ "De <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</a> "
1081
+ #~ "en <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins zullen "
1082
+ #~ "deze en de indexeringssettings overschrijven."
1083
+
1084
+ #~ msgid "Indexing:"
1085
+ #~ msgstr "Indexeren:"
1086
+
1087
+ #~ msgid ""
1088
+ #~ "Choose which pages of your blog get indexed by the search engines. Only "
1089
+ #~ "selected pages will be indexed. If not selected, those pages will be "
1090
+ #~ "blocked."
1091
+ #~ msgstr ""
1092
+ #~ "Kies welke pagina's van je blog door zoekmachines kunnen ge&iuml;ndexeerd "
1093
+ #~ "worden. Alleen de geselecteerde pagina's worden ge&iuml;ndexeerd. Niet "
1094
+ #~ "geselecteerde pagina's worden geblokkeerd."
1095
+
1096
+ #~ msgid ""
1097
+ #~ "Note: Some of these settings will render the Title &amp; Meta settings "
1098
+ #~ "moot. Also, setting your site to privacy mode will override these "
1099
+ #~ "controls."
1100
+ #~ msgstr ""
1101
+ #~ "Let op: Sommige van deze settings kunnen conflicteren met de Titel &amp; "
1102
+ #~ "Meta settings. Ook wanneer je je site in een beveiligde modus omzet, "
1103
+ #~ "worden deze settings overschreven."
1104
+
1105
+ #~ msgid "Home page"
1106
+ #~ msgstr "Homepage"
1107
+
1108
+ #~ msgid "Single posts"
1109
+ #~ msgstr "Afzonderlijke berichten"
1110
+
1111
+ #~ msgid "Attachments"
1112
+ #~ msgstr "Bijlages"
1113
+
1114
+ #~ msgid "Pages"
1115
+ #~ msgstr "Pagina's"
1116
+
1117
+ #~ msgid "Date-based archives"
1118
+ #~ msgstr "Datum-gebaseerd archief"
1119
+
1120
+ #~ msgid "Category archives"
1121
+ #~ msgstr "Archief per rubriek"
1122
+
1123
+ #~ msgid "Tag archives"
1124
+ #~ msgstr "Archief op tags"
1125
+
1126
+ #~ msgid "Author archives"
1127
+ #~ msgstr "Archief op auteur"
1128
+
1129
+ #~ msgid "Search"
1130
+ #~ msgstr "Zoek"
1131
+
1132
+ #~ msgid "404"
1133
+ #~ msgstr "404"
1134
+
1135
+ #~ msgid "Avatars:"
1136
+ #~ msgstr "Avatars:"
1137
+
1138
+ #~ msgid ""
1139
+ #~ "You can set a default avatar for users without one if you don't like the "
1140
+ #~ "choices WordPress offers you. Simply add the full path to the image file."
1141
+ #~ msgstr ""
1142
+ #~ "Je kan een standaard-avatar instellen voor gebruikers zonder avatar, "
1143
+ #~ "wanneer de keuze van WordPress je niet bevalt. Voer daartoe hier het "
1144
+ #~ "complete pad naar de afbeelding in."
1145
+
1146
+ #~ msgid "Comments:"
1147
+ #~ msgstr "Reacties:"
1148
+
1149
+ #~ msgid "Check to use the comments popup window instead of regular comments."
1150
+ #~ msgstr ""
1151
+ #~ "Aanvinken om een popup-scherm voor reacties te gebruiken in plaats van "
1152
+ #~ "het gebruikelijke commentaarscherm."
1153
+
1154
+ #~ msgid "WP 2.7+ only."
1155
+ #~ msgstr "Enkel voor WP 2.7+"
1156
+
1157
+ #~ msgid "Footer Insert:"
1158
+ #~ msgstr "Inserts voor Footer:"
1159
+
1160
+ #~ msgid ""
1161
+ #~ "You can place XHTML and JavaScript here to have it inserted automatically "
1162
+ #~ "into your theme. If you have a script, such as one from Google "
1163
+ #~ "Analytics, this could be useful."
1164
+ #~ msgstr ""
1165
+ #~ "Je kan hier XHTML en Javascript plaatsen dat automatisch in de footer van "
1166
+ #~ "je thema wordt ingevoerd. Dit kan van pas komen als je een script hebt "
1167
+ #~ "zoals dat van Google Analytics."
1168
+
1169
+ #~ msgid ""
1170
+ #~ "Check this if you want the theme to auto-generate your site's copyright "
1171
+ #~ "and title in the footer."
1172
+ #~ msgstr ""
1173
+ #~ "Aanvinken wanneer je wil dat het thema automatisch een copyright voor je "
1174
+ #~ "site in de footer invoert."
1175
+
1176
+ #~ msgid ""
1177
+ #~ "Want to show your love of WordPress? Check this and a link will be added "
1178
+ #~ "to your footer back to WordPress.org."
1179
+ #~ msgstr ""
1180
+ #~ "Wil je laten zien hoezeer je WordPress waardeert? Vink dit aan om "
1181
+ #~ "automatisch een link naar WordPress.org aan de footer toe te voegen."
1182
+
1183
+ #~ msgid ""
1184
+ #~ "Check this to have a link back to Theme Hybrid automatically appended to "
1185
+ #~ "your footer. This is totally optional. Really."
1186
+ #~ msgstr ""
1187
+ #~ "Aanvinken om automatisch een link naar Theme Hybrid aan je footer toe te "
1188
+ #~ "voegen. Dit volkomen vrijwillig, echt waar!"
1189
+
1190
+ #~ msgid ""
1191
+ #~ "For testing purposes, this will append a database query counter and page "
1192
+ #~ "load timer to your footer."
1193
+ #~ msgstr ""
1194
+ #~ "Voor test-doeleinden wordt hiermee een database-query teller en de "
1195
+ #~ "laadtijd van de pagina aan je footer toegevoegd."
1196
+
1197
+ #~ msgid "Add a title that will be seen by search engines."
1198
+ #~ msgstr "Voeg een titel toe die door zoekmachines gezien wordt."
1199
+
1200
+ #~ msgid "Add a description that will be seen by search engines."
1201
+ #~ msgstr "Voeg een beschrijving toe die door zoekmachines gezien wordt."
1202
+
1203
+ #~ msgid "Keywords:"
1204
+ #~ msgstr "Trefwoorden:"
1205
+
1206
+ #~ msgid "Add keywords that will be seen by search engines."
1207
+ #~ msgstr "Voeg trefwoorden toe die door zoekmachines gezien worden."
1208
+
1209
+ #~ msgid "Series:"
1210
+ #~ msgstr "Series:"
1211
+
1212
+ #~ msgid "Post the title of your series of articles here."
1213
+ #~ msgstr "Post hier de titel van je artikelseries."
1214
+
1215
+ #~ msgid "Thumbnail:"
1216
+ #~ msgstr "Thumbnail:"
1217
+
1218
+ #~ msgid "Add an image URL here."
1219
+ #~ msgstr "Voeg hier de URL van een afbeelding toe."
1220
+
1221
+ #~ msgid "Page Navigation:"
1222
+ #~ msgstr "Pagina Navigatie:"
1223
+
1224
+ #~ msgid "Hybrid Theme Settings"
1225
+ #~ msgstr "Hybrid Theme Settings"
1226
+
1227
+ #~ msgid "Settings saved."
1228
+ #~ msgstr "Settings opgeslagen."
1229
+
1230
+ #~ msgid "Browse:"
1231
+ #~ msgstr "Blader:"
1232
+
1233
+ #~ msgid "Home"
1234
+ #~ msgstr "Home"
1235
+
1236
+ #~ msgid "Search results for &quot;%1$s&quot"
1237
+ #~ msgstr "Zoekresultaten voor &quot;%1$s&quot"
1238
+
1239
+ #~ msgid "m"
1240
+ #~ msgstr "m"
1241
+
1242
+ #~ msgid "F"
1243
+ #~ msgstr "F"
1244
+
1245
+ #~ msgid "j"
1246
+ #~ msgstr "j"
1247
+
1248
+ #~ msgid "404 Not Found"
1249
+ #~ msgstr "404 Niet Gevonden"
1250
+
1251
+ #~ msgid "Log in to reply."
1252
+ #~ msgstr "Log in op te reageren."
1253
+
1254
+ #~ msgid "This function has been removed or replaced by another function."
1255
+ #~ msgstr "Deze functie is verwijderd of vervangen door een andere functie."
1256
+
1257
+ #~ msgid ""
1258
+ #~ "You can use these <acronym title=\"Extensible Hypertext Markup Language"
1259
+ #~ "\">XHTML</acronym> tags&#58;"
1260
+ #~ msgstr ""
1261
+ #~ "Je kan deze <acronym title=\"Extensible Hypertext Markup Language"
1262
+ #~ "\">XHTML</acronym> tags&#58; gebruiken."
1263
+
1264
+ #~ msgid "Search this site..."
1265
+ #~ msgstr "Doorzoek deze site"
1266
+
1267
+ #~ msgid "Copyright"
1268
+ #~ msgstr "Copyright"
1269
+
1270
+ #~ msgid "Powered by"
1271
+ #~ msgstr "Aangedreven door "
1272
+
1273
+ #~ msgid ""
1274
+ #~ "Powered by WordPress, state-of-the-art semantic personal publishing "
1275
+ #~ "platform"
1276
+ #~ msgstr ""
1277
+ #~ "Aangedreven door WordPress, het state-of-the-art semantische platform "
1278
+ #~ "voor iedereen."
1279
+
1280
+ #~ msgid "WordPress"
1281
+ #~ msgstr "WordPress"
1282
+
1283
+ #~ msgid "and"
1284
+ #~ msgstr "en"
1285
+
1286
+ #~ msgid "Hybrid Theme Framework"
1287
+ #~ msgstr "Hybrid Theme Framework"
1288
+
1289
+ #~ msgid "Articles in this series"
1290
+ #~ msgstr "Artikelen in deze serie"
1291
+
1292
+ #~ msgid ""
1293
+ #~ "You have encountered an error. This is usually because you've changed "
1294
+ #~ "something in the core Hybrid theme files. Try undoing your last edit to "
1295
+ #~ "correct this issue. If this doesn't resolve it, head over to the support "
1296
+ #~ "forums for help."
1297
+ #~ msgstr ""
1298
+ #~ "Er is een fout opgetreden. Dit gebeurt gewoonlijk nadat je iets hebt "
1299
+ #~ "gewijzigd in de kernbestanden van het Hybrid-thema. Probeer je laatste "
1300
+ #~ "wijzigingen ongedaan te maken om dit op te lossen. Als dat niet lukt, "
1301
+ #~ "kan je je tot de support forums richten voor hulp."
1302
+
1303
+ #~ msgid "This page loaded in %1$s seconds with %2$s database queries."
1304
+ #~ msgstr "Deze pagina laadde in %1$s seconden met %2$s database queries."
1305
+
1306
+ #~ msgid ": Page %1$s"
1307
+ #~ msgstr ":Pagina %1$s"
1308
+
1309
+ #~ msgid "Search results for &quot;%1$s.&quot;"
1310
+ #~ msgstr "Zoekresultaten voor &quot;%1$s.&quot;"
1311
+
1312
+ #~ msgid "Archive for %1$s"
1313
+ #~ msgstr "Archief voor %1$s"
1314
+
1315
+ #~ msgid "Archive for week %1$s of %2$s"
1316
+ #~ msgstr "Archief voor week %1$s van %2$s"
1317
+
1318
+ #~ msgid "Comment on &quot;%1$s&quot;"
1319
+ #~ msgstr "Reactie op &quot;%1$s&quot;"
1320
+
1321
+ #~ msgid "Primary Home"
1322
+ #~ msgstr "Primair Home"
1323
+
1324
+ #~ msgid "Primary Author"
1325
+ #~ msgstr "Primaire Auteur"
1326
+
1327
+ #~ msgid "Primary Category"
1328
+ #~ msgstr "Primaire Rubriek"
1329
+
1330
+ #~ msgid "Primary Date"
1331
+ #~ msgstr "Primaire Datum"
1332
+
1333
+ #~ msgid "Primary Page"
1334
+ #~ msgstr "Primaire Pagina"
1335
+
1336
+ #~ msgid "Primary Search"
1337
+ #~ msgstr "Primaire Zoekresultaten"
1338
+
1339
+ #~ msgid "Primary Tag"
1340
+ #~ msgstr "Primaire Tag"
1341
+
1342
+ #~ msgid "Primary 404"
1343
+ #~ msgstr "Primaire 404"
1344
+
1345
+ #~ msgid "Secondary Home"
1346
+ #~ msgstr "Secundaire Home"
1347
+
1348
+ #~ msgid "Secondary Author"
1349
+ #~ msgstr "Secundaire Auteur"
1350
+
1351
+ #~ msgid "Secondary Category"
1352
+ #~ msgstr "Secundaire Rubriek"
1353
+
1354
+ #~ msgid "Secondary Date"
1355
+ #~ msgstr "Secundaire Datum "
1356
+
1357
+ #~ msgid "Secondary Page"
1358
+ #~ msgstr "Secundaire Pagina"
1359
+
1360
+ #~ msgid "Secondary Search"
1361
+ #~ msgstr "Secundaire Zoekresultaten"
1362
+
1363
+ #~ msgid "Secondary Single"
1364
+ #~ msgstr "Secundaire EnkelvoudigBericht"
1365
+
1366
+ #~ msgid "Secondary Tag"
1367
+ #~ msgstr "Secundaire Tag"
1368
+
1369
+ #~ msgid "Secondary 404"
1370
+ #~ msgstr "Secundaire 404"
1371
+
1372
+ #~ msgid "Subsidiary Default"
1373
+ #~ msgstr "Bijkomende Standaard"
1374
+
1375
+ #~ msgid "RSS 2.0"
1376
+ #~ msgstr "RSS 2.0"
1377
+
1378
+ #~ msgid "RSS .92"
1379
+ #~ msgstr "RSS .92"
1380
+
1381
+ #~ msgid "Atom 0.3"
1382
+ #~ msgstr "Atom 0.3"
1383
+
1384
+ #~ msgid "Subsidiary Home"
1385
+ #~ msgstr "Subsidiair Home"
1386
+
1387
+ #~ msgid "Previous Page"
1388
+ #~ msgstr "Vorige pagina"
1389
+
1390
+ #~ msgid "Next Page"
1391
+ #~ msgstr "Volgende pagina"
1392
+
1393
+ #~ msgid "Related Posts"
1394
+ #~ msgstr "Gerelateerde berichten"
1395
+
1396
+ #~ msgid "Logout"
1397
+ #~ msgstr "Afmelden"
1398
+
1399
+ #~ msgid "Select Year"
1400
+ #~ msgstr "Selecteer jaar"
1401
+
1402
+ #~ msgid "Select Week"
1403
+ #~ msgstr "Selecteer week"
1404
+
1405
+ #~ msgid "Select Day"
1406
+ #~ msgstr "Selecteer dag"
1407
+
1408
+ #~ msgid "Select Post"
1409
+ #~ msgstr "Selecteer bericht"
1410
+
1411
+ #~ msgid "Type:"
1412
+ #~ msgstr "Type:"
1413
+
1414
+ #~ msgid "Format:"
1415
+ #~ msgstr "Format:"
1416
+
1417
+ #~ msgid "Before:"
1418
+ #~ msgstr "Voor:"
1419
+
1420
+ #~ msgid "After:"
1421
+ #~ msgstr "Na:"
1422
+
1423
+ #~ msgid "Show post count?"
1424
+ #~ msgstr "Toon aantal berichten?"
1425
+
1426
+ #~ msgid ""
1427
+ #~ "An advanced widget that gives you total control over the output of your "
1428
+ #~ "archives."
1429
+ #~ msgstr ""
1430
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1431
+ #~ "van je archieven."
1432
+
1433
+ #~ msgid "Bookmarks"
1434
+ #~ msgstr "Favorieten"
1435
+
1436
+ #~ msgid "Categories:"
1437
+ #~ msgstr "Rubrieken:"
1438
+
1439
+ #~ msgid "Exclude Categories:"
1440
+ #~ msgstr "Uit te sluiten rubrieken:"
1441
+
1442
+ #~ msgid "Category:"
1443
+ #~ msgstr "Rubriek:"
1444
+
1445
+ #~ msgid "Category Order:"
1446
+ #~ msgstr "Rubriek volgorde:"
1447
+
1448
+ #~ msgid "Order Categories By:"
1449
+ #~ msgstr "Sorteer rubrieken op:"
1450
+
1451
+ #~ msgid "Include Bookmarks:"
1452
+ #~ msgstr "Inclusief favorieten:"
1453
+
1454
+ #~ msgid "Exclude Bookmarks:"
1455
+ #~ msgstr "Exclusief favorieten:"
1456
+
1457
+ #~ msgid "Bookmarks Order:"
1458
+ #~ msgstr "Favorieten volgorde:"
1459
+
1460
+ #~ msgid "Order Bookmarks By:"
1461
+ #~ msgstr "Sorteer favorieten op:"
1462
+
1463
+ #~ msgid "Between (Bookmark/Description):"
1464
+ #~ msgstr "Tussen (Favoriet/beschrijving)"
1465
+
1466
+ #~ msgid "Categorize?"
1467
+ #~ msgstr "Rubriceer?"
1468
+
1469
+ #~ msgid "Show description?"
1470
+ #~ msgstr "Beschrijving tonen?"
1471
+
1472
+ #~ msgid "Hide invisible bookmarks?"
1473
+ #~ msgstr "Onzichtbare favorieten verbergen?"
1474
+
1475
+ #~ msgid "Show private categories?"
1476
+ #~ msgstr "Private rubrieken tonen?"
1477
+
1478
+ #~ msgid "Show rating?"
1479
+ #~ msgstr "Waardering tonen?"
1480
+
1481
+ #~ msgid "Show images?"
1482
+ #~ msgstr "Afbeeldingen tonen?"
1483
+
1484
+ #~ msgid ""
1485
+ #~ "An advanced widget that gives you total control over the output of your "
1486
+ #~ "bookmarks (links)."
1487
+ #~ msgstr ""
1488
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1489
+ #~ "van je favorieten (links)."
1490
+
1491
+ #~ msgid "RSS"
1492
+ #~ msgstr "RSS"
1493
+
1494
+ #~ msgid "Depth:"
1495
+ #~ msgstr "Diepte:"
1496
+
1497
+ #~ msgid "Number:"
1498
+ #~ msgstr "Aantal:"
1499
+
1500
+ #~ msgid "Child Of:"
1501
+ #~ msgstr "'Child' van :"
1502
+
1503
+ #~ msgid "Hierarchical?"
1504
+ #~ msgstr "Hierarchisch?"
1505
+
1506
+ #~ msgid "Show RSS feed?"
1507
+ #~ msgstr "Toon RSS feed?"
1508
+
1509
+ #~ msgid "Use description for title?"
1510
+ #~ msgstr "Omschrijving gebruiken voor de titel?"
1511
+
1512
+ #~ msgid "Show last updated?"
1513
+ #~ msgstr "Toon laatste aanpassing?"
1514
+
1515
+ #~ msgid "Show count?"
1516
+ #~ msgstr "Toon aantal?"
1517
+
1518
+ #~ msgid "Hide empty?"
1519
+ #~ msgstr "Lege verbergen?"
1520
+
1521
+ #~ msgid ""
1522
+ #~ "An advanced widget that gives you total control over the output of your "
1523
+ #~ "category links."
1524
+ #~ msgstr ""
1525
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1526
+ #~ "van je rubrieken."
1527
+
1528
+ #~ msgid "Categories"
1529
+ #~ msgstr "Rubrieken"
1530
+
1531
+ #~ msgid "Sort Order:"
1532
+ #~ msgstr "Sorteervolgorde"
1533
+
1534
+ #~ msgid "Meta Key:"
1535
+ #~ msgstr "Meta Key:"
1536
+
1537
+ #~ msgid "Meta Value:"
1538
+ #~ msgstr "Meta Value:"
1539
+
1540
+ #~ msgid "Show home?"
1541
+ #~ msgstr "Toon home?"
1542
+
1543
+ #~ msgid "Show date?"
1544
+ #~ msgstr "Toon datum?"
1545
+
1546
+ #~ msgid "Search Text:"
1547
+ #~ msgstr "Zoek tekst:"
1548
+
1549
+ #~ msgid "Use theme's search form?"
1550
+ #~ msgstr "Zoekformulier van thema gebruiken?"
1551
+
1552
+ #~ msgid ""
1553
+ #~ "An advanced widget that gives you total control over the output of your "
1554
+ #~ "search form."
1555
+ #~ msgstr ""
1556
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1557
+ #~ "van je zoekformulier."
1558
+
1559
+ #~ msgid "Largest:"
1560
+ #~ msgstr "Grootste:"
1561
+
1562
+ #~ msgid "Smallest:"
1563
+ #~ msgstr "Kleinste:"
1564
+
1565
+ #~ msgid "Unit:"
1566
+ #~ msgstr "Eenheid:"
1567
+
1568
+ #~ msgid ""
1569
+ #~ "An advanced widget that gives you total control over the output of your "
1570
+ #~ "tags."
1571
+ #~ msgstr ""
1572
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1573
+ #~ "van je tags."
languages/members.pot CHANGED
@@ -1,1573 +1,1573 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: Members WordPress Plugin\n"
4
- "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-06-03 12:36-0600\n"
6
- "PO-Revision-Date: 2011-06-03 12:38-0600\n"
7
- "Last-Translator: Justin Tadlock <justin@justintadlock.com>\n"
8
- "Language-Team: <justin@justintadlock.com>\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Poedit-Language: English\n"
13
- "X-Poedit-Country: UNITED STATES\n"
14
- "X-Poedit-KeywordsList: _e;__;esc_attr__;esc_attr_e;_n;_x;esc_html__;esc_html_e\n"
15
- "X-Poedit-Basepath: ../\n"
16
- "X-Poedit-SearchPath-0: .\n"
17
-
18
- #: members.php:191
19
- #: admin/meta-box-plugin-settings.php:30
20
- #, fuzzy
21
- msgid "Role Manager"
22
- msgstr "Naam"
23
-
24
- #: admin/admin.php:44
25
- #: admin/roles-list-table.php:57
26
- #, fuzzy
27
- msgid "Roles"
28
- msgstr "Reset"
29
-
30
- #: admin/admin.php:47
31
- #: admin/role-new.php:44
32
- #, fuzzy
33
- msgid "Add New Role"
34
- msgstr "Voeg gebruiker toe"
35
-
36
- #: admin/admin.php:135
37
- msgid "<strong>Role Manager:</strong> This feature allows you to manage roles on your site by giving you the ability to create, edit, and delete any role. Note that changes to roles do not change settings for the Members plugin. You are literally changing data in your WordPress database. This plugin feature merely provides an interface for you to make these changes."
38
- msgstr ""
39
-
40
- #: admin/admin.php:136
41
- msgid "<strong>Content Permissions:</strong> This feature adds a meta box to the post edit screen that allows you to grant permissions for who can read the post content based on the user's role. Only users of roles with the <code>restrict_content</code> capability will be able to use this component."
42
- msgstr ""
43
-
44
- #: admin/admin.php:137
45
- msgid "<strong>Sidebar Widgets:</strong> This feature creates additional widgets for use in your theme's sidebars. You can access them by clicking Widgets in the menu."
46
- msgstr ""
47
-
48
- #: admin/admin.php:138
49
- msgid "<strong>Private Site:</strong> This feature allows you to redirect all users who are not logged into the site to the login page, creating an entirely private site. You may also replace your feed content with a custom error message."
50
- msgstr ""
51
-
52
- #: admin/admin.php:140
53
- #: admin/admin.php:167
54
- #: admin/admin.php:183
55
- msgid "For more information:"
56
- msgstr ""
57
-
58
- #: admin/admin.php:143
59
- #: admin/admin.php:171
60
- #: admin/admin.php:187
61
- #, fuzzy
62
- msgid "Documentation"
63
- msgstr "Thema Documentatie"
64
-
65
- #: admin/admin.php:144
66
- #: admin/admin.php:172
67
- #: admin/admin.php:188
68
- #, fuzzy
69
- msgid "Support Forums"
70
- msgstr "Bezoek de support forums."
71
-
72
- #: admin/admin.php:156
73
- msgid "This screen allows you to edit the capabilities given to the role. You can tick the checkbox next to a capability to add the capability to the role. You can untick the checkbox next to a capability to remove a capability from the role. You can also add as many custom capabilities as you need in the Custom Capabilities section."
74
- msgstr ""
75
-
76
- #: admin/admin.php:157
77
- msgid "Capabilities are both powerful and dangerous tools. You should not add or remove a capability to a role unless you understand what permission you are granting or removing."
78
- msgstr ""
79
-
80
- #: admin/admin.php:162
81
- msgid "This screen lists all the user roles available on this site. Roles are given to users as a way to \"group\" them. Roles are made up of capabilities (permissions), which decide what functions users of each role can perform on the site. From this screen, you can manage these roles and their capabilities."
82
- msgstr ""
83
-
84
- #: admin/admin.php:163
85
- msgid "To add a role to a user, click Users in the menu. To create a new role, click the Add New button at the top of the screen or Add New Role under the Users menu."
86
- msgstr ""
87
-
88
- #: admin/admin.php:170
89
- #: admin/admin.php:186
90
- msgid "Users, Roles, and Capabilities"
91
- msgstr ""
92
-
93
- #: admin/admin.php:180
94
- msgid "This screen allows you to create a new user role for your site. You must input a unique role name and role label. You can also grant capabilities (permissions) to the new role. Capabilities are both powerful and dangerous tools. You should not add a capability to a role unless you understand what permission you are granting."
95
- msgstr ""
96
-
97
- #: admin/admin.php:181
98
- msgid "To add a role to a user, click Users in the menu. To edit roles, click Roles under the Users menu."
99
- msgstr ""
100
-
101
- #: admin/admin.php:202
102
- msgid "Role deleted."
103
- msgstr ""
104
-
105
- #: admin/admin.php:211
106
- msgid "Selected roles deleted."
107
- msgstr ""
108
-
109
- #: admin/meta-box-plugin-settings.php:21
110
- msgid "About"
111
- msgstr ""
112
-
113
- #: admin/meta-box-plugin-settings.php:24
114
- msgid "Like this plugin?"
115
- msgstr ""
116
-
117
- #: admin/meta-box-plugin-settings.php:27
118
- #, fuzzy
119
- msgid "Support"
120
- msgstr "Thema Ondersteuning:"
121
-
122
- #: admin/meta-box-plugin-settings.php:33
123
- #: admin/meta-box-post-content-permissions.php:28
124
- msgid "Content Permissions"
125
- msgstr ""
126
-
127
- #: admin/meta-box-plugin-settings.php:36
128
- #, fuzzy
129
- msgid "Sidebar Widgets"
130
- msgstr "Widgets invoegen:"
131
-
132
- #: admin/meta-box-plugin-settings.php:39
133
- #, fuzzy
134
- msgid "Private Site"
135
- msgstr "Primaire EnkelvoudigBericht"
136
-
137
- #: admin/meta-box-plugin-settings.php:52
138
- #, fuzzy
139
- msgid "Version:"
140
- msgstr "Thema versie:"
141
-
142
- #: admin/meta-box-plugin-settings.php:55
143
- #, fuzzy
144
- msgid "Description:"
145
- msgstr "Beschrijving"
146
-
147
- #: admin/meta-box-plugin-settings.php:69
148
- msgid "Here's how you can give back:"
149
- msgstr ""
150
-
151
- #: admin/meta-box-plugin-settings.php:72
152
- msgid "Members on the WordPress plugin repository"
153
- msgstr ""
154
-
155
- #: admin/meta-box-plugin-settings.php:72
156
- msgid "Give the plugin a good rating."
157
- msgstr ""
158
-
159
- #: admin/meta-box-plugin-settings.php:73
160
- msgid "Donate via PayPal"
161
- msgstr ""
162
-
163
- #: admin/meta-box-plugin-settings.php:73
164
- msgid "Donate a few dollars."
165
- msgstr ""
166
-
167
- #: admin/meta-box-plugin-settings.php:74
168
- msgid "Justin Tadlock's Amazon Wish List"
169
- msgstr ""
170
-
171
- #: admin/meta-box-plugin-settings.php:74
172
- msgid "Get me something from my wish list."
173
- msgstr ""
174
-
175
- #: admin/meta-box-plugin-settings.php:86
176
- #, php-format
177
- msgid "Support for this plugin is provided via the support forums at %1$s. If you need any help using it, please ask your support questions there."
178
- msgstr ""
179
-
180
- #: admin/meta-box-plugin-settings.php:86
181
- #, fuzzy
182
- msgid "Theme Hybrid Support Forums"
183
- msgstr "Thema Ondersteuning:"
184
-
185
- #: admin/meta-box-plugin-settings.php:86
186
- #, fuzzy
187
- msgid "Theme Hybrid"
188
- msgstr "Hybrid"
189
-
190
- #: admin/meta-box-plugin-settings.php:99
191
- msgid "Enable the role manager."
192
- msgstr ""
193
-
194
- #: admin/meta-box-plugin-settings.php:102
195
- msgid "Your roles and capabilities will not revert back to their previous settings after deactivating or uninstalling this plugin, so use this feature wisely."
196
- msgstr ""
197
-
198
- #: admin/meta-box-plugin-settings.php:116
199
- msgid "Enable the content permissions feature."
200
- msgstr ""
201
-
202
- #: admin/meta-box-plugin-settings.php:120
203
- msgid "Default post error message:"
204
- msgstr ""
205
-
206
- #: admin/meta-box-plugin-settings.php:122
207
- msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message for users that don't have permission to view posts."
208
- msgstr ""
209
-
210
- #: admin/meta-box-plugin-settings.php:136
211
- msgid "Enable the login form widget."
212
- msgstr ""
213
-
214
- #: admin/meta-box-plugin-settings.php:141
215
- msgid "Enable the users widget."
216
- msgstr ""
217
-
218
- #: admin/meta-box-plugin-settings.php:155
219
- msgid "Redirect all logged-out users to the login page before allowing them to view the site."
220
- msgstr ""
221
-
222
- #: admin/meta-box-plugin-settings.php:160
223
- msgid "Show error message for feed items."
224
- msgstr ""
225
-
226
- #: admin/meta-box-plugin-settings.php:164
227
- #, fuzzy
228
- msgid "Feed error message:"
229
- msgstr "Feed afbeelding:"
230
-
231
- #: admin/meta-box-plugin-settings.php:167
232
- msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message to display instead of feed item content."
233
- msgstr ""
234
-
235
- #: admin/meta-box-post-content-permissions.php:51
236
- msgid "Limit access to this post's content to users of the selected roles."
237
- msgstr ""
238
-
239
- #: admin/meta-box-post-content-permissions.php:75
240
- #, php-format
241
- msgid "If no roles are selected, everyone can view the content. The post author, any users who can edit this post, and users with the %s capability can view the content regardless of role."
242
- msgstr ""
243
-
244
- #: admin/meta-box-post-content-permissions.php:79
245
- msgid "Custom error messsage:"
246
- msgstr ""
247
-
248
- #: admin/meta-box-post-content-permissions.php:82
249
- msgid "Message shown to users that do no have permission to view the post."
250
- msgstr ""
251
-
252
- #: admin/role-edit.php:67
253
- #, fuzzy
254
- msgid "Edit Role"
255
- msgstr "Bewerk"
256
-
257
- #: admin/role-edit.php:68
258
- #: admin/roles-list-table.php:58
259
- msgid "Add New"
260
- msgstr ""
261
-
262
- #: admin/role-edit.php:71
263
- #, fuzzy
264
- msgid "Role updated."
265
- msgstr "Aanpassingen tonen?"
266
-
267
- #: admin/role-edit.php:71
268
- msgid "&larr; Back to Roles"
269
- msgstr ""
270
-
271
- #: admin/role-edit.php:85
272
- #: admin/role-new.php:60
273
- #: admin/roles-list-table.php:111
274
- #, fuzzy
275
- msgid "Role Name"
276
- msgstr "Naam"
277
-
278
- #: admin/role-edit.php:94
279
- #: admin/roles-list-table.php:113
280
- #: admin/roles-list-table.php:123
281
- msgid "Capabilities"
282
- msgstr ""
283
-
284
- #: admin/role-edit.php:112
285
- msgid "Custom Capabilities"
286
- msgstr ""
287
-
288
- #: admin/role-edit.php:117
289
- msgid "Add New Capability"
290
- msgstr ""
291
-
292
- #: admin/role-edit.php:127
293
- #, fuzzy
294
- msgid "Update Role"
295
- msgstr "Bewerk"
296
-
297
- #: admin/role-new.php:46
298
- #, fuzzy, php-format
299
- msgid "The %s role has been created."
300
- msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
301
-
302
- #: admin/role-new.php:65
303
- msgid "<strong>Required:</strong> The role name should be unique and contain only alphanumeric characters and underscores."
304
- msgstr ""
305
-
306
- #: admin/role-new.php:71
307
- #: admin/roles-list-table.php:110
308
- #: admin/roles-list-table.php:120
309
- #, fuzzy
310
- msgid "Role Label"
311
- msgstr "Zoek label:"
312
-
313
- #: admin/role-new.php:76
314
- msgid "<strong>Required:</strong> The role label is used to represent your role in the WordPress admin."
315
- msgstr ""
316
-
317
- #: admin/role-new.php:82
318
- #, fuzzy
319
- msgid "Role Capabilities"
320
- msgstr "Aanpassingen tonen?"
321
-
322
- #: admin/role-new.php:86
323
- msgid "<strong>Optional:</strong> Select the capabilities this role should have. These may be updated later."
324
- msgstr ""
325
-
326
- #: admin/role-new.php:102
327
- #, fuzzy
328
- msgid "Add Role"
329
- msgstr "Bewerk"
330
-
331
- #: admin/roles-list-table.php:70
332
- msgid "All"
333
- msgstr ""
334
-
335
- #: admin/roles-list-table.php:71
336
- #, fuzzy
337
- msgid "Has Users"
338
- msgstr "Gebruikersnaam"
339
-
340
- #: admin/roles-list-table.php:72
341
- #, fuzzy
342
- msgid "No Users"
343
- msgstr "Gebruikersnaam"
344
-
345
- #: admin/roles-list-table.php:83
346
- #: admin/roles-list-table.php:215
347
- msgid "Bulk Actions"
348
- msgstr ""
349
-
350
- #: admin/roles-list-table.php:86
351
- #: admin/roles-list-table.php:158
352
- #: admin/roles-list-table.php:218
353
- msgid "Delete"
354
- msgstr ""
355
-
356
- #: admin/roles-list-table.php:91
357
- #: admin/roles-list-table.php:223
358
- #, fuzzy
359
- msgid "Apply"
360
- msgstr "Reageer"
361
-
362
- #: admin/roles-list-table.php:98
363
- #: admin/roles-list-table.php:230
364
- #, php-format
365
- msgid "%s item"
366
- msgstr ""
367
-
368
- #: admin/roles-list-table.php:112
369
- #: admin/roles-list-table.php:122
370
- #, fuzzy
371
- msgid "Users"
372
- msgstr "Gebruikersnaam"
373
-
374
- #: admin/roles-list-table.php:121
375
- #: includes/admin-bar.php:29
376
- msgid "Role"
377
- msgstr ""
378
-
379
- #: admin/roles-list-table.php:146
380
- #: admin/roles-list-table.php:154
381
- #, fuzzy, php-format
382
- msgid "Edit the %s role"
383
- msgstr "Bewerk"
384
-
385
- #: admin/roles-list-table.php:154
386
- msgid "Edit"
387
- msgstr "Bewerk"
388
-
389
- #: admin/roles-list-table.php:158
390
- #, php-format
391
- msgid "Delete the %s role"
392
- msgstr ""
393
-
394
- #: admin/roles-list-table.php:162
395
- msgid "Change default role"
396
- msgstr ""
397
-
398
- #: admin/roles-list-table.php:162
399
- msgid "Default Role"
400
- msgstr ""
401
-
402
- #: admin/roles-list-table.php:166
403
- #: admin/roles-list-table.php:182
404
- #, php-format
405
- msgid "View all users with the %s role"
406
- msgstr ""
407
-
408
- #: admin/roles-list-table.php:166
409
- msgid "View Users"
410
- msgstr ""
411
-
412
- #: admin/roles-list-table.php:182
413
- #: admin/roles-list-table.php:184
414
- #, fuzzy, php-format
415
- msgid "%s User"
416
- msgstr "Voeg gebruiker toe"
417
-
418
- #: admin/roles-list-table.php:194
419
- #, php-format
420
- msgid "%s Capability"
421
- msgstr ""
422
-
423
- #: admin/settings.php:28
424
- #, fuzzy
425
- msgid "Members Settings"
426
- msgstr "Hybrid Settings"
427
-
428
- #: admin/settings.php:28
429
- #, fuzzy
430
- msgid "Members"
431
- msgstr "Hybrid Settings"
432
-
433
- #: admin/settings.php:66
434
- msgid "Sorry, but you do not have permission to view this content."
435
- msgstr ""
436
-
437
- #: admin/settings.php:67
438
- msgid "You must be logged into the site to view this content."
439
- msgstr ""
440
-
441
- #: admin/settings.php:145
442
- #, fuzzy
443
- msgid "Members Plugin Settings"
444
- msgstr "Hybrid Settings"
445
-
446
- #: admin/settings.php:160
447
- #, fuzzy
448
- msgid "Update Settings"
449
- msgstr "Footer Settings:"
450
-
451
- #: includes/widget-login-form.php:26
452
- msgid "A widget that allows users to log into your site."
453
- msgstr ""
454
-
455
- #: includes/widget-login-form.php:37
456
- #, fuzzy
457
- msgid "Login Form"
458
- msgstr "Aanmelden"
459
-
460
- #: includes/widget-login-form.php:158
461
- #: includes/widget-login-form.php:161
462
- #, fuzzy
463
- msgid "Log In"
464
- msgstr "Aanmelden"
465
-
466
- #: includes/widget-login-form.php:159
467
- #, fuzzy
468
- msgid "Username"
469
- msgstr "Gebruikersnaam"
470
-
471
- #: includes/widget-login-form.php:160
472
- msgid "Password"
473
- msgstr "Wachtwoord"
474
-
475
- #: includes/widget-login-form.php:162
476
- #, fuzzy
477
- msgid "Remember Me"
478
- msgstr "Herinner deze gegevens."
479
-
480
- #: includes/widget-login-form.php:172
481
- msgid "Please log into the site."
482
- msgstr ""
483
-
484
- #: includes/widget-login-form.php:173
485
- msgid "You are currently logged in."
486
- msgstr ""
487
-
488
- #: includes/widget-login-form.php:185
489
- #: includes/widget-users.php:157
490
- msgid "Title:"
491
- msgstr "Titel"
492
-
493
- #: includes/widget-login-form.php:235
494
- #, fuzzy
495
- msgid "\"Remember me\" checkbox?"
496
- msgstr "Herinner deze gegevens."
497
-
498
- #: includes/widget-login-form.php:239
499
- #, fuzzy
500
- msgid "Check \"remember me\"?"
501
- msgstr "Herinner deze gegevens."
502
-
503
- #: includes/widget-login-form.php:243
504
- msgid "Display avatar?"
505
- msgstr ""
506
-
507
- #: includes/widget-login-form.php:246
508
- msgid "Logged out text:"
509
- msgstr ""
510
-
511
- #: includes/widget-login-form.php:251
512
- msgid "Logged in text:"
513
- msgstr ""
514
-
515
- #: includes/widget-users.php:26
516
- msgid "Provides the ability to list the users of the site."
517
- msgstr ""
518
-
519
- #: includes/widget-users.php:145
520
- msgid "Ascending"
521
- msgstr ""
522
-
523
- #: includes/widget-users.php:145
524
- msgid "Descending"
525
- msgstr ""
526
-
527
- #: includes/widget-users.php:146
528
- #, fuzzy
529
- msgid "Display Name"
530
- msgstr "Voornaam"
531
-
532
- #: includes/widget-users.php:146
533
- msgid "Email"
534
- msgstr "Email"
535
-
536
- #: includes/widget-users.php:146
537
- msgid "ID"
538
- msgstr ""
539
-
540
- #: includes/widget-users.php:146
541
- #, fuzzy
542
- msgid "Nice Name"
543
- msgstr "Naam"
544
-
545
- #: includes/widget-users.php:146
546
- #, fuzzy
547
- msgid "Post Count"
548
- msgstr "Niet gevonden"
549
-
550
- #: includes/widget-users.php:146
551
- #, fuzzy
552
- msgid "Registered"
553
- msgstr "Registreer"
554
-
555
- #: includes/widget-users.php:146
556
- msgid "URL"
557
- msgstr ""
558
-
559
- #: includes/widget-users.php:146
560
- #, fuzzy
561
- msgid "Login"
562
- msgstr "Aanmelden"
563
-
564
- #, fuzzy
565
- #~ msgid "Welcome, %1$s!"
566
- #~ msgstr "Week %1$s"
567
-
568
- #, fuzzy
569
- #~ msgid "Password:"
570
- #~ msgstr "Wachtwoord"
571
-
572
- #, fuzzy
573
- #~ msgid "Select Components"
574
- #~ msgstr "Selecteer maand"
575
-
576
- #, fuzzy
577
- #~ msgid "Component"
578
- #~ msgstr "Reactie"
579
-
580
- #, fuzzy
581
- #~ msgid "Activate"
582
- #~ msgstr "Archieven"
583
-
584
- #, fuzzy
585
- #~ msgid "Active"
586
- #~ msgstr "Archieven"
587
-
588
- #, fuzzy
589
- #~ msgid "Inactive"
590
- #~ msgstr "Archieven"
591
-
592
- #, fuzzy
593
- #~ msgid "Username Label:"
594
- #~ msgstr "Gebruikersnaam*"
595
-
596
- #, fuzzy
597
- #~ msgid "Password Label:"
598
- #~ msgstr "Wachtwoord*"
599
-
600
- #~ msgid "Submit Text:"
601
- #~ msgstr "Verstuur tekst:"
602
-
603
- #, fuzzy
604
- #~ msgid "Remember User Text:"
605
- #~ msgstr "Herinner deze gegevens."
606
-
607
- #, fuzzy
608
- #~ msgid ""
609
- #~ "An advanced widget that gives you total control over the output of your "
610
- #~ "user lists."
611
- #~ msgstr ""
612
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
613
- #~ "van je pagina-links."
614
-
615
- #~ msgid "Limit:"
616
- #~ msgstr "Limiet:"
617
-
618
- #~ msgid "Order:"
619
- #~ msgstr "Volgorde:"
620
-
621
- #~ msgid "Order By:"
622
- #~ msgstr "Sorteer op:"
623
-
624
- #~ msgid "Include:"
625
- #~ msgstr "Omvat:"
626
-
627
- #~ msgid "Exclude:"
628
- #~ msgstr "Sluit uit:"
629
-
630
- #, fuzzy
631
- #~ msgid "Show full name?"
632
- #~ msgstr "Aanpassingen tonen?"
633
-
634
- #~ msgid "Save Changes"
635
- #~ msgstr "Bewaren"
636
-
637
- #, fuzzy
638
- #~ msgid "New user role has been added."
639
- #~ msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
640
-
641
- #~ msgid ""
642
- #~ "You tried going to %1$s, and it doesn't exist. All is not lost! You can "
643
- #~ "search for what you're looking for."
644
- #~ msgstr ""
645
- #~ "Je wilde naar %1$s gaan, maar dit bestaat niet. Geen nood! Zoek hier "
646
- #~ "wat je zocht:"
647
-
648
- #~ msgid "Possibly Related"
649
- #~ msgstr "Mogelijk gerelateerd"
650
-
651
- #~ msgid "Continue reading"
652
- #~ msgstr "Lees hier verder"
653
-
654
- #~ msgid "Download &quot;%1$s&quot;"
655
- #~ msgstr "Download &quot;%1$s&quot;"
656
-
657
- #~ msgid "Pages:"
658
- #~ msgstr "Pagina's:"
659
-
660
- #~ msgid "Sorry, no applications matched your criteria."
661
- #~ msgstr "Sorry, er zijn geen toepassingen die met je criteria overeenkomen."
662
-
663
- #~ msgid "You are browsing the archive for %1$s."
664
- #~ msgstr "Je bladert nu door het archief voor %1$s."
665
-
666
- #~ msgid "By"
667
- #~ msgstr "Door"
668
-
669
- #~ msgid "on"
670
- #~ msgstr "op"
671
-
672
- #~ msgid "l, F jS, Y, g:i a"
673
- #~ msgstr "l, j F, Y, G:i"
674
-
675
- #~ msgid "F j, Y"
676
- #~ msgstr "j F, Y"
677
-
678
- #~ msgid "Posted in"
679
- #~ msgstr "Gepost in"
680
-
681
- #~ msgid "Tagged"
682
- #~ msgstr "Tags:"
683
-
684
- #~ msgid "Leave a response"
685
- #~ msgstr "Reageer"
686
-
687
- #~ msgid "1 Response"
688
- #~ msgstr "1 Reactie"
689
-
690
- #~ msgid "% Responses"
691
- #~ msgstr "% Reacties"
692
-
693
- #~ msgid "Sorry, there are no posts in this archive."
694
- #~ msgstr "Sorry, dit archief bevat geen berichten."
695
-
696
- #~ msgid "Archives by category"
697
- #~ msgstr "Archieven per rubriek"
698
-
699
- #~ msgid "Archives by month"
700
- #~ msgstr "Archieven per maand"
701
-
702
- #~ msgid "Sorry, no page matched your criteria."
703
- #~ msgstr "Sorry, er bestaat geen pagina die aan je criteria voldoet."
704
-
705
- #~ msgid "Sorry, no attachments matched your criteria."
706
- #~ msgstr "Sorry, er zijn geen bijlages die aan je criteria voldoen."
707
-
708
- #~ msgid "Sorry, no audio files matched your criteria."
709
- #~ msgstr "Sorry, er zijn geen geluidsbestanden die aan je criteria voldoen."
710
-
711
- #~ msgid "Send an email to %1$s"
712
- #~ msgstr "Stuur een email aan %1$s"
713
-
714
- #~ msgid "Email %1$s"
715
- #~ msgstr "Email %1$s"
716
-
717
- #~ msgid "%1$s hasn't written any posts yet."
718
- #~ msgstr "%1$s heeft nog geen berichten geschreven."
719
-
720
- #~ msgid "Nickname:"
721
- #~ msgstr "Bijnaam:"
722
-
723
- #~ msgid "Email:"
724
- #~ msgstr "Email:"
725
-
726
- #~ msgid "Website:"
727
- #~ msgstr "Website:"
728
-
729
- #~ msgid "AIM:"
730
- #~ msgstr "AIM:"
731
-
732
- #~ msgid "IM with %1$s"
733
- #~ msgstr "IM met %1$s"
734
-
735
- #~ msgid "Jabber:"
736
- #~ msgstr "Jabber:"
737
-
738
- #~ msgid "Yahoo:"
739
- #~ msgstr "Yahoo:"
740
-
741
- #~ msgid "Sorry, there are no posts in the %1$s category."
742
- #~ msgstr "Sorry, er zijn geen berichten in de rubriek %1$s. "
743
-
744
- #~ msgid "Please do not load this page directly. Thanks!"
745
- #~ msgstr "Gelieve deze pagina niet rechtstreeks te laden. Dankjewel!"
746
-
747
- #~ msgid "No Responses"
748
- #~ msgstr "Geen reacties"
749
-
750
- #~ msgid "One Response"
751
- #~ msgstr "Een reactie"
752
-
753
- #~ msgid "Responses"
754
- #~ msgstr "Reacties"
755
-
756
- #~ msgid "to"
757
- #~ msgstr "naar"
758
-
759
- #~ msgid "%1$s at %2$s"
760
- #~ msgstr "%1$s op %2$s"
761
-
762
- #~ msgid "Permalink to comment"
763
- #~ msgstr "Permalink naar reactie"
764
-
765
- #~ msgid "Permalink"
766
- #~ msgstr "Permalink"
767
-
768
- #~ msgid "Your comment is awaiting moderation."
769
- #~ msgstr "Je reactie wacht op moderatie."
770
-
771
- #~ msgid ""
772
- #~ "Comments are closed, but <a href=\"%1$s\" title=\"Trackback URL for this "
773
- #~ "post\">trackbacks</a> and pingbacks are open."
774
- #~ msgstr ""
775
- #~ "Reageren is niet mogelijk, maar <a href=\"%1$s\" title=\"Trackback URL "
776
- #~ "for this post\">trackbacks</a> en pingbacks blijven open."
777
-
778
- #~ msgid "Comments are closed."
779
- #~ msgstr "Reageren is niet mogelijk."
780
-
781
- #~ msgid "Leave a Reply"
782
- #~ msgstr "Reageer"
783
-
784
- #~ msgid ""
785
- #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to post a "
786
- #~ "comment."
787
- #~ msgstr ""
788
- #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om te "
789
- #~ "reageren."
790
-
791
- #~ msgid "Logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
792
- #~ msgstr "Ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
793
-
794
- #~ msgid "Log out of this account"
795
- #~ msgstr "Afmelden."
796
-
797
- #~ msgid "Logout &raquo;"
798
- #~ msgstr "Afmelden &raquo;"
799
-
800
- #~ msgid "*"
801
- #~ msgstr "*"
802
-
803
- #~ msgid "Website"
804
- #~ msgstr "Website"
805
-
806
- #~ msgid "Submit"
807
- #~ msgstr "Verstuur"
808
-
809
- #~ msgid "Password Protected"
810
- #~ msgstr "Beveiligd met wachtwoord"
811
-
812
- #~ msgid "Enter the password to view comments."
813
- #~ msgstr "Voer wachtwoord in om reacties te lezen."
814
-
815
- #~ msgid "Leave a Reply to %s"
816
- #~ msgstr "Reageer op %s"
817
-
818
- #~ msgid "Click here to cancel reply."
819
- #~ msgstr "Klik hier om de reactie te annuleren."
820
-
821
- #~ msgid "F jS, Y"
822
- #~ msgstr "j F, Y"
823
-
824
- #~ msgid "Week %1$s of %2$s"
825
- #~ msgstr "Week %1$s van %2$s"
826
-
827
- #~ msgid "W"
828
- #~ msgstr "W"
829
-
830
- #~ msgid "Y"
831
- #~ msgstr "Y"
832
-
833
- #~ msgid "You are browsing the archive for week %1$s of %2$s."
834
- #~ msgstr "Je bekijkt het archief voor week %1$s van %2$s."
835
-
836
- #~ msgid "Sorry, there are no posts for %1$s."
837
- #~ msgstr "Sorry, maar er zijn geen berichten voor %1$s."
838
-
839
- #~ msgid "Sorry, no posts matched your criteria."
840
- #~ msgstr "Sorry, er zijn geen berichten die met je criteria overeenkomen."
841
-
842
- #~ msgid "Sorry, no images matched your criteria."
843
- #~ msgstr "Sorry, er zijn geen afbeeldingen die met je criteria overeenkomen."
844
-
845
- #~ msgid ""
846
- #~ "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
847
- #~ msgstr ""
848
- #~ "Je bent momenteel ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
849
-
850
- #~ msgid ""
851
- #~ "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</"
852
- #~ "a>."
853
- #~ msgstr ""
854
- #~ "Je bent succesvol ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
855
-
856
- #~ msgid ""
857
- #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to view the "
858
- #~ "content of this page."
859
- #~ msgstr ""
860
- #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om de inhoud "
861
- #~ "van deze pagina te bekijken."
862
-
863
- #~ msgid ""
864
- #~ "If you're not currently a member, please take a moment to <a href=\"%1$s"
865
- #~ "\" title=\"Register\">register</a>."
866
- #~ msgstr ""
867
- #~ "Als je momenteel nog geen lid bent, neem dan een ogenblikje tijd om je te "
868
- #~ "<a href=\"%1$s\" title=\"Register\">registreren</a>."
869
-
870
- #~ msgid "You must enter a post title."
871
- #~ msgstr "Je moet een titel voor het bericht invoeren."
872
-
873
- #~ msgid "You must write something."
874
- #~ msgstr "Je moet hier iets schrijven."
875
-
876
- #~ msgid "Title"
877
- #~ msgstr "Titel"
878
-
879
- #~ msgid "Write"
880
- #~ msgstr "Schrijf"
881
-
882
- #~ msgid "Tags"
883
- #~ msgstr "Tags"
884
-
885
- #~ msgid "Publish"
886
- #~ msgstr "Publiceer"
887
-
888
- #~ msgid "You don't have the appropriate capabilities to publish posts."
889
- #~ msgstr "Je hebt niet de nodige rechten om berichten te publiceren."
890
-
891
- #~ msgid ""
892
- #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> with "
893
- #~ "appropriate user capabilities to publish posts."
894
- #~ msgstr ""
895
- #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn met de nodige "
896
- #~ "gebruikersrechten om berichten te kunnen publiceren."
897
-
898
- #~ msgid "A username is required for registration."
899
- #~ msgstr "Om te registreren is een gebruikersnaam nodig."
900
-
901
- #~ msgid "You must enter an email address."
902
- #~ msgstr "Je moet een email-adres invoeren."
903
-
904
- #~ msgid "You must enter a password."
905
- #~ msgstr "Je moet een wachtwoord invoeren."
906
-
907
- #~ msgid "You must enter your password twice."
908
- #~ msgstr "Je moet je wachtwoord tweemaal invoeren."
909
-
910
- #~ msgid "You must enter the same password twice."
911
- #~ msgstr "Je moet tweemaal hetzelfde wachtwoord invoeren."
912
-
913
- #~ msgid "User registration failed. Please try again."
914
- #~ msgstr "Gebruikersregistratie mislukt. Probeer opnieuw."
915
-
916
- #~ msgid ""
917
- #~ "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't "
918
- #~ "need another account."
919
- #~ msgstr ""
920
- #~ "Je bent ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Je hebt "
921
- #~ "geen bijkomend account nodig."
922
-
923
- #~ msgid "Thank you for registering, %1$s."
924
- #~ msgstr "Bedankt voor je registratie, %1$s."
925
-
926
- #~ msgid "Users can register themselves or you can manually create users here."
927
- #~ msgstr ""
928
- #~ "Gebruikers kunnen zichzelf registreren of je kan hier handmatig "
929
- #~ "gebruikersaccounts aanmaken."
930
-
931
- #~ msgid ""
932
- #~ "Users cannot currently register themselves, but you can manually create "
933
- #~ "users here."
934
- #~ msgstr ""
935
- #~ "Gebruikers kunnen zichzelf niet registreren, maar je kan hier wel "
936
- #~ "handmatig gebruikersaccounts aanmaken."
937
-
938
- #~ msgid "Required fields are marked <span class=\"required\">*</span>"
939
- #~ msgstr ""
940
- #~ "Verplichte velden zijn aangeduid met <span class=\"required\">*</span>."
941
-
942
- #~ msgid "Last Name"
943
- #~ msgstr "Naam"
944
-
945
- #~ msgid "E-mail *"
946
- #~ msgstr "E-mail *"
947
-
948
- #~ msgid "Repeat Password *"
949
- #~ msgstr "Herhaal je wachtwoord*"
950
-
951
- #~ msgid "Biographical Information"
952
- #~ msgstr "Biografische informatie"
953
-
954
- #~ msgid "You are browsing the search results for &quot;%1$s&quot;"
955
- #~ msgstr "Je bekijkt hier de zoekresultaten voor &quot;%1$s&quot;"
956
-
957
- #~ msgid "Maybe you'd like to try inputting different search terms."
958
- #~ msgstr "Misschien wil je andere zoektermen invoeren."
959
-
960
- #~ msgid "You are browsing the %1$s tag archive."
961
- #~ msgstr "Je bekijkt het archief voor de tag %1$s"
962
-
963
- #~ msgid "Sorry, there are no posts tagged %1$s."
964
- #~ msgstr "Sorry, er zijn geen berichten met de tag %1$s."
965
-
966
- #~ msgid "Sorry, no documents matched your criteria."
967
- #~ msgstr "Sorry, er zijn geen documenten die met je criteria overeenkomen."
968
-
969
- #~ msgid "Sorry, no videos matched your criteria."
970
- #~ msgstr "Sorry, er zijn geen video's die met je criteria overeenkomen."
971
-
972
- #~ msgid "Widget Template"
973
- #~ msgstr "Widget Template"
974
-
975
- #~ msgid "About This Theme"
976
- #~ msgstr "Over dit Thema"
977
-
978
- #~ msgid "Theme Description:"
979
- #~ msgstr "Thema Beschrijving:"
980
-
981
- #~ msgid "Theme Documentation:"
982
- #~ msgstr "Thema Documentatie:"
983
-
984
- #~ msgid "Get support for this theme"
985
- #~ msgstr "Ondersteuning voor dit thema"
986
-
987
- #~ msgid "Select your theme settings"
988
- #~ msgstr "Selecteer de settings voor je thema"
989
-
990
- #, fuzzy
991
- #~ msgid ""
992
- #~ "Select this if you want your primary widget inserts to default to the "
993
- #~ "home insert when nothing else is selected."
994
- #~ msgstr ""
995
- #~ "Selecteer dit als je wenst dat je primaire widgets standaard geladen "
996
- #~ "worden op de home-pagina als niet anders geselecteerd is."
997
-
998
- #, fuzzy
999
- #~ msgid ""
1000
- #~ "Select this if you want your secondary widget inserts to default to the "
1001
- #~ "home insert when nothing else is selected."
1002
- #~ msgstr ""
1003
- #~ "Selecteer dit als je wenst dat je secundaire widgets standaard geladen "
1004
- #~ "worden op de home-pagina als niet anders geselecteerd is."
1005
-
1006
- #~ msgid "Stylesheets:"
1007
- #~ msgstr "Stijlbladen (CSS)"
1008
-
1009
- #~ msgid ""
1010
- #~ "Select this to have the theme automatically include a print stylesheet."
1011
- #~ msgstr ""
1012
- #~ "Selecteer dit als je wil dat het thema automatisch een 'print' stijlblad "
1013
- #~ "insluit."
1014
-
1015
- #~ msgid "JavaScript:"
1016
- #~ msgstr "JavaScript:"
1017
-
1018
- #~ msgid "Include the pull quote JavaScript."
1019
- #~ msgstr "Inclusief pull quote JavaScript."
1020
-
1021
- #~ msgid "Feeds:"
1022
- #~ msgstr "Feeds:"
1023
-
1024
- #~ msgid ""
1025
- #~ "If you have a an alternate feed address, such as one from <a href="
1026
- #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, you can "
1027
- #~ "enter it here to have the theme set your feed URL link. If blank, the "
1028
- #~ "theme will default to your WordPress RSS feed."
1029
- #~ msgstr ""
1030
- #~ "Wanneer je over een alternatief feed-adres beschikt, zoals van <a href="
1031
- #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, kan je dat "
1032
- #~ "hier invoeren om het door het thema te laten gebruiken. Als je dit "
1033
- #~ "blanco laat, wordt de standaard WordPress RSS feed gebruikt."
1034
-
1035
- #~ msgid "Title &amp; Meta:"
1036
- #~ msgstr "Titel &amp; Meta"
1037
-
1038
- #~ msgid "Use category slugs on single posts for your meta keywords?"
1039
- #~ msgstr ""
1040
- #~ "Gebruik categorie 'slug' als meta keywoord voor afzonderlijke berichten."
1041
-
1042
- #~ msgid "Use tag slugs on single posts for your meta keywords?"
1043
- #~ msgstr "Gebruik tag 'slug' als meta keywoord voor afzonderlijke berichten."
1044
-
1045
- #~ msgid "Use the excerpt on single posts for your meta description?"
1046
- #~ msgstr ""
1047
- #~ "Uittreksel als meta-omschrijving gebruiken voor afzonderlijke berichten?"
1048
-
1049
- #~ msgid "Use the author bio on author archives for your meta description?"
1050
- #~ msgstr ""
1051
- #~ "Auteurs biografie als meta-omschrijving gebruiken voor afzonderlijke "
1052
- #~ "berichten?"
1053
-
1054
- #~ msgid ""
1055
- #~ "Use the category description on category archives for your meta "
1056
- #~ "description?"
1057
- #~ msgstr ""
1058
- #~ "Rubriek-omschrijving als meta-omschrijving gebruiken voor afzonderlijke "
1059
- #~ "berichten?"
1060
-
1061
- #~ msgid "Use the author's name on pages and posts as the meta author?"
1062
- #~ msgstr ""
1063
- #~ "Naam van de auteur als meta-auteur gebruiken op pagina's en berichten?"
1064
-
1065
- #~ msgid "Append site title to the end of the page name?"
1066
- #~ msgstr "Site-naam toevoegen aan het eind van de pagina-naam?"
1067
-
1068
- #~ msgid ""
1069
- #~ "You can change these settings in the box labeled <em>Hybrid Settings</em> "
1070
- #~ "when writing a post or page."
1071
- #~ msgstr ""
1072
- #~ "Je kan deze settings aanpassen in het vak <em>Hybrid Settings</em> "
1073
- #~ "wanneer je een bericht of pagina bewerkt."
1074
-
1075
- #~ msgid ""
1076
- #~ "The <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</"
1077
- #~ "a> and <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins will "
1078
- #~ "override these settings and the Indexing settings."
1079
- #~ msgstr ""
1080
- #~ "De <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</a> "
1081
- #~ "en <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins zullen "
1082
- #~ "deze en de indexeringssettings overschrijven."
1083
-
1084
- #~ msgid "Indexing:"
1085
- #~ msgstr "Indexeren:"
1086
-
1087
- #~ msgid ""
1088
- #~ "Choose which pages of your blog get indexed by the search engines. Only "
1089
- #~ "selected pages will be indexed. If not selected, those pages will be "
1090
- #~ "blocked."
1091
- #~ msgstr ""
1092
- #~ "Kies welke pagina's van je blog door zoekmachines kunnen ge&iuml;ndexeerd "
1093
- #~ "worden. Alleen de geselecteerde pagina's worden ge&iuml;ndexeerd. Niet "
1094
- #~ "geselecteerde pagina's worden geblokkeerd."
1095
-
1096
- #~ msgid ""
1097
- #~ "Note: Some of these settings will render the Title &amp; Meta settings "
1098
- #~ "moot. Also, setting your site to privacy mode will override these "
1099
- #~ "controls."
1100
- #~ msgstr ""
1101
- #~ "Let op: Sommige van deze settings kunnen conflicteren met de Titel &amp; "
1102
- #~ "Meta settings. Ook wanneer je je site in een beveiligde modus omzet, "
1103
- #~ "worden deze settings overschreven."
1104
-
1105
- #~ msgid "Home page"
1106
- #~ msgstr "Homepage"
1107
-
1108
- #~ msgid "Single posts"
1109
- #~ msgstr "Afzonderlijke berichten"
1110
-
1111
- #~ msgid "Attachments"
1112
- #~ msgstr "Bijlages"
1113
-
1114
- #~ msgid "Pages"
1115
- #~ msgstr "Pagina's"
1116
-
1117
- #~ msgid "Date-based archives"
1118
- #~ msgstr "Datum-gebaseerd archief"
1119
-
1120
- #~ msgid "Category archives"
1121
- #~ msgstr "Archief per rubriek"
1122
-
1123
- #~ msgid "Tag archives"
1124
- #~ msgstr "Archief op tags"
1125
-
1126
- #~ msgid "Author archives"
1127
- #~ msgstr "Archief op auteur"
1128
-
1129
- #~ msgid "Search"
1130
- #~ msgstr "Zoek"
1131
-
1132
- #~ msgid "404"
1133
- #~ msgstr "404"
1134
-
1135
- #~ msgid "Avatars:"
1136
- #~ msgstr "Avatars:"
1137
-
1138
- #~ msgid ""
1139
- #~ "You can set a default avatar for users without one if you don't like the "
1140
- #~ "choices WordPress offers you. Simply add the full path to the image file."
1141
- #~ msgstr ""
1142
- #~ "Je kan een standaard-avatar instellen voor gebruikers zonder avatar, "
1143
- #~ "wanneer de keuze van WordPress je niet bevalt. Voer daartoe hier het "
1144
- #~ "complete pad naar de afbeelding in."
1145
-
1146
- #~ msgid "Comments:"
1147
- #~ msgstr "Reacties:"
1148
-
1149
- #~ msgid "Check to use the comments popup window instead of regular comments."
1150
- #~ msgstr ""
1151
- #~ "Aanvinken om een popup-scherm voor reacties te gebruiken in plaats van "
1152
- #~ "het gebruikelijke commentaarscherm."
1153
-
1154
- #~ msgid "WP 2.7+ only."
1155
- #~ msgstr "Enkel voor WP 2.7+"
1156
-
1157
- #~ msgid "Footer Insert:"
1158
- #~ msgstr "Inserts voor Footer:"
1159
-
1160
- #~ msgid ""
1161
- #~ "You can place XHTML and JavaScript here to have it inserted automatically "
1162
- #~ "into your theme. If you have a script, such as one from Google "
1163
- #~ "Analytics, this could be useful."
1164
- #~ msgstr ""
1165
- #~ "Je kan hier XHTML en Javascript plaatsen dat automatisch in de footer van "
1166
- #~ "je thema wordt ingevoerd. Dit kan van pas komen als je een script hebt "
1167
- #~ "zoals dat van Google Analytics."
1168
-
1169
- #~ msgid ""
1170
- #~ "Check this if you want the theme to auto-generate your site's copyright "
1171
- #~ "and title in the footer."
1172
- #~ msgstr ""
1173
- #~ "Aanvinken wanneer je wil dat het thema automatisch een copyright voor je "
1174
- #~ "site in de footer invoert."
1175
-
1176
- #~ msgid ""
1177
- #~ "Want to show your love of WordPress? Check this and a link will be added "
1178
- #~ "to your footer back to WordPress.org."
1179
- #~ msgstr ""
1180
- #~ "Wil je laten zien hoezeer je WordPress waardeert? Vink dit aan om "
1181
- #~ "automatisch een link naar WordPress.org aan de footer toe te voegen."
1182
-
1183
- #~ msgid ""
1184
- #~ "Check this to have a link back to Theme Hybrid automatically appended to "
1185
- #~ "your footer. This is totally optional. Really."
1186
- #~ msgstr ""
1187
- #~ "Aanvinken om automatisch een link naar Theme Hybrid aan je footer toe te "
1188
- #~ "voegen. Dit volkomen vrijwillig, echt waar!"
1189
-
1190
- #~ msgid ""
1191
- #~ "For testing purposes, this will append a database query counter and page "
1192
- #~ "load timer to your footer."
1193
- #~ msgstr ""
1194
- #~ "Voor test-doeleinden wordt hiermee een database-query teller en de "
1195
- #~ "laadtijd van de pagina aan je footer toegevoegd."
1196
-
1197
- #~ msgid "Add a title that will be seen by search engines."
1198
- #~ msgstr "Voeg een titel toe die door zoekmachines gezien wordt."
1199
-
1200
- #~ msgid "Add a description that will be seen by search engines."
1201
- #~ msgstr "Voeg een beschrijving toe die door zoekmachines gezien wordt."
1202
-
1203
- #~ msgid "Keywords:"
1204
- #~ msgstr "Trefwoorden:"
1205
-
1206
- #~ msgid "Add keywords that will be seen by search engines."
1207
- #~ msgstr "Voeg trefwoorden toe die door zoekmachines gezien worden."
1208
-
1209
- #~ msgid "Series:"
1210
- #~ msgstr "Series:"
1211
-
1212
- #~ msgid "Post the title of your series of articles here."
1213
- #~ msgstr "Post hier de titel van je artikelseries."
1214
-
1215
- #~ msgid "Thumbnail:"
1216
- #~ msgstr "Thumbnail:"
1217
-
1218
- #~ msgid "Add an image URL here."
1219
- #~ msgstr "Voeg hier de URL van een afbeelding toe."
1220
-
1221
- #~ msgid "Page Navigation:"
1222
- #~ msgstr "Pagina Navigatie:"
1223
-
1224
- #~ msgid "Hybrid Theme Settings"
1225
- #~ msgstr "Hybrid Theme Settings"
1226
-
1227
- #~ msgid "Settings saved."
1228
- #~ msgstr "Settings opgeslagen."
1229
-
1230
- #~ msgid "Browse:"
1231
- #~ msgstr "Blader:"
1232
-
1233
- #~ msgid "Home"
1234
- #~ msgstr "Home"
1235
-
1236
- #~ msgid "Search results for &quot;%1$s&quot"
1237
- #~ msgstr "Zoekresultaten voor &quot;%1$s&quot"
1238
-
1239
- #~ msgid "m"
1240
- #~ msgstr "m"
1241
-
1242
- #~ msgid "F"
1243
- #~ msgstr "F"
1244
-
1245
- #~ msgid "j"
1246
- #~ msgstr "j"
1247
-
1248
- #~ msgid "404 Not Found"
1249
- #~ msgstr "404 Niet Gevonden"
1250
-
1251
- #~ msgid "Log in to reply."
1252
- #~ msgstr "Log in op te reageren."
1253
-
1254
- #~ msgid "This function has been removed or replaced by another function."
1255
- #~ msgstr "Deze functie is verwijderd of vervangen door een andere functie."
1256
-
1257
- #~ msgid ""
1258
- #~ "You can use these <acronym title=\"Extensible Hypertext Markup Language"
1259
- #~ "\">XHTML</acronym> tags&#58;"
1260
- #~ msgstr ""
1261
- #~ "Je kan deze <acronym title=\"Extensible Hypertext Markup Language"
1262
- #~ "\">XHTML</acronym> tags&#58; gebruiken."
1263
-
1264
- #~ msgid "Search this site..."
1265
- #~ msgstr "Doorzoek deze site"
1266
-
1267
- #~ msgid "Copyright"
1268
- #~ msgstr "Copyright"
1269
-
1270
- #~ msgid "Powered by"
1271
- #~ msgstr "Aangedreven door "
1272
-
1273
- #~ msgid ""
1274
- #~ "Powered by WordPress, state-of-the-art semantic personal publishing "
1275
- #~ "platform"
1276
- #~ msgstr ""
1277
- #~ "Aangedreven door WordPress, het state-of-the-art semantische platform "
1278
- #~ "voor iedereen."
1279
-
1280
- #~ msgid "WordPress"
1281
- #~ msgstr "WordPress"
1282
-
1283
- #~ msgid "and"
1284
- #~ msgstr "en"
1285
-
1286
- #~ msgid "Hybrid Theme Framework"
1287
- #~ msgstr "Hybrid Theme Framework"
1288
-
1289
- #~ msgid "Articles in this series"
1290
- #~ msgstr "Artikelen in deze serie"
1291
-
1292
- #~ msgid ""
1293
- #~ "You have encountered an error. This is usually because you've changed "
1294
- #~ "something in the core Hybrid theme files. Try undoing your last edit to "
1295
- #~ "correct this issue. If this doesn't resolve it, head over to the support "
1296
- #~ "forums for help."
1297
- #~ msgstr ""
1298
- #~ "Er is een fout opgetreden. Dit gebeurt gewoonlijk nadat je iets hebt "
1299
- #~ "gewijzigd in de kernbestanden van het Hybrid-thema. Probeer je laatste "
1300
- #~ "wijzigingen ongedaan te maken om dit op te lossen. Als dat niet lukt, "
1301
- #~ "kan je je tot de support forums richten voor hulp."
1302
-
1303
- #~ msgid "This page loaded in %1$s seconds with %2$s database queries."
1304
- #~ msgstr "Deze pagina laadde in %1$s seconden met %2$s database queries."
1305
-
1306
- #~ msgid ": Page %1$s"
1307
- #~ msgstr ":Pagina %1$s"
1308
-
1309
- #~ msgid "Search results for &quot;%1$s.&quot;"
1310
- #~ msgstr "Zoekresultaten voor &quot;%1$s.&quot;"
1311
-
1312
- #~ msgid "Archive for %1$s"
1313
- #~ msgstr "Archief voor %1$s"
1314
-
1315
- #~ msgid "Archive for week %1$s of %2$s"
1316
- #~ msgstr "Archief voor week %1$s van %2$s"
1317
-
1318
- #~ msgid "Comment on &quot;%1$s&quot;"
1319
- #~ msgstr "Reactie op &quot;%1$s&quot;"
1320
-
1321
- #~ msgid "Primary Home"
1322
- #~ msgstr "Primair Home"
1323
-
1324
- #~ msgid "Primary Author"
1325
- #~ msgstr "Primaire Auteur"
1326
-
1327
- #~ msgid "Primary Category"
1328
- #~ msgstr "Primaire Rubriek"
1329
-
1330
- #~ msgid "Primary Date"
1331
- #~ msgstr "Primaire Datum"
1332
-
1333
- #~ msgid "Primary Page"
1334
- #~ msgstr "Primaire Pagina"
1335
-
1336
- #~ msgid "Primary Search"
1337
- #~ msgstr "Primaire Zoekresultaten"
1338
-
1339
- #~ msgid "Primary Tag"
1340
- #~ msgstr "Primaire Tag"
1341
-
1342
- #~ msgid "Primary 404"
1343
- #~ msgstr "Primaire 404"
1344
-
1345
- #~ msgid "Secondary Home"
1346
- #~ msgstr "Secundaire Home"
1347
-
1348
- #~ msgid "Secondary Author"
1349
- #~ msgstr "Secundaire Auteur"
1350
-
1351
- #~ msgid "Secondary Category"
1352
- #~ msgstr "Secundaire Rubriek"
1353
-
1354
- #~ msgid "Secondary Date"
1355
- #~ msgstr "Secundaire Datum "
1356
-
1357
- #~ msgid "Secondary Page"
1358
- #~ msgstr "Secundaire Pagina"
1359
-
1360
- #~ msgid "Secondary Search"
1361
- #~ msgstr "Secundaire Zoekresultaten"
1362
-
1363
- #~ msgid "Secondary Single"
1364
- #~ msgstr "Secundaire EnkelvoudigBericht"
1365
-
1366
- #~ msgid "Secondary Tag"
1367
- #~ msgstr "Secundaire Tag"
1368
-
1369
- #~ msgid "Secondary 404"
1370
- #~ msgstr "Secundaire 404"
1371
-
1372
- #~ msgid "Subsidiary Default"
1373
- #~ msgstr "Bijkomende Standaard"
1374
-
1375
- #~ msgid "RSS 2.0"
1376
- #~ msgstr "RSS 2.0"
1377
-
1378
- #~ msgid "RSS .92"
1379
- #~ msgstr "RSS .92"
1380
-
1381
- #~ msgid "Atom 0.3"
1382
- #~ msgstr "Atom 0.3"
1383
-
1384
- #~ msgid "Subsidiary Home"
1385
- #~ msgstr "Subsidiair Home"
1386
-
1387
- #~ msgid "Previous Page"
1388
- #~ msgstr "Vorige pagina"
1389
-
1390
- #~ msgid "Next Page"
1391
- #~ msgstr "Volgende pagina"
1392
-
1393
- #~ msgid "Related Posts"
1394
- #~ msgstr "Gerelateerde berichten"
1395
-
1396
- #~ msgid "Logout"
1397
- #~ msgstr "Afmelden"
1398
-
1399
- #~ msgid "Select Year"
1400
- #~ msgstr "Selecteer jaar"
1401
-
1402
- #~ msgid "Select Week"
1403
- #~ msgstr "Selecteer week"
1404
-
1405
- #~ msgid "Select Day"
1406
- #~ msgstr "Selecteer dag"
1407
-
1408
- #~ msgid "Select Post"
1409
- #~ msgstr "Selecteer bericht"
1410
-
1411
- #~ msgid "Type:"
1412
- #~ msgstr "Type:"
1413
-
1414
- #~ msgid "Format:"
1415
- #~ msgstr "Format:"
1416
-
1417
- #~ msgid "Before:"
1418
- #~ msgstr "Voor:"
1419
-
1420
- #~ msgid "After:"
1421
- #~ msgstr "Na:"
1422
-
1423
- #~ msgid "Show post count?"
1424
- #~ msgstr "Toon aantal berichten?"
1425
-
1426
- #~ msgid ""
1427
- #~ "An advanced widget that gives you total control over the output of your "
1428
- #~ "archives."
1429
- #~ msgstr ""
1430
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1431
- #~ "van je archieven."
1432
-
1433
- #~ msgid "Bookmarks"
1434
- #~ msgstr "Favorieten"
1435
-
1436
- #~ msgid "Categories:"
1437
- #~ msgstr "Rubrieken:"
1438
-
1439
- #~ msgid "Exclude Categories:"
1440
- #~ msgstr "Uit te sluiten rubrieken:"
1441
-
1442
- #~ msgid "Category:"
1443
- #~ msgstr "Rubriek:"
1444
-
1445
- #~ msgid "Category Order:"
1446
- #~ msgstr "Rubriek volgorde:"
1447
-
1448
- #~ msgid "Order Categories By:"
1449
- #~ msgstr "Sorteer rubrieken op:"
1450
-
1451
- #~ msgid "Include Bookmarks:"
1452
- #~ msgstr "Inclusief favorieten:"
1453
-
1454
- #~ msgid "Exclude Bookmarks:"
1455
- #~ msgstr "Exclusief favorieten:"
1456
-
1457
- #~ msgid "Bookmarks Order:"
1458
- #~ msgstr "Favorieten volgorde:"
1459
-
1460
- #~ msgid "Order Bookmarks By:"
1461
- #~ msgstr "Sorteer favorieten op:"
1462
-
1463
- #~ msgid "Between (Bookmark/Description):"
1464
- #~ msgstr "Tussen (Favoriet/beschrijving)"
1465
-
1466
- #~ msgid "Categorize?"
1467
- #~ msgstr "Rubriceer?"
1468
-
1469
- #~ msgid "Show description?"
1470
- #~ msgstr "Beschrijving tonen?"
1471
-
1472
- #~ msgid "Hide invisible bookmarks?"
1473
- #~ msgstr "Onzichtbare favorieten verbergen?"
1474
-
1475
- #~ msgid "Show private categories?"
1476
- #~ msgstr "Private rubrieken tonen?"
1477
-
1478
- #~ msgid "Show rating?"
1479
- #~ msgstr "Waardering tonen?"
1480
-
1481
- #~ msgid "Show images?"
1482
- #~ msgstr "Afbeeldingen tonen?"
1483
-
1484
- #~ msgid ""
1485
- #~ "An advanced widget that gives you total control over the output of your "
1486
- #~ "bookmarks (links)."
1487
- #~ msgstr ""
1488
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1489
- #~ "van je favorieten (links)."
1490
-
1491
- #~ msgid "RSS"
1492
- #~ msgstr "RSS"
1493
-
1494
- #~ msgid "Depth:"
1495
- #~ msgstr "Diepte:"
1496
-
1497
- #~ msgid "Number:"
1498
- #~ msgstr "Aantal:"
1499
-
1500
- #~ msgid "Child Of:"
1501
- #~ msgstr "'Child' van :"
1502
-
1503
- #~ msgid "Hierarchical?"
1504
- #~ msgstr "Hierarchisch?"
1505
-
1506
- #~ msgid "Show RSS feed?"
1507
- #~ msgstr "Toon RSS feed?"
1508
-
1509
- #~ msgid "Use description for title?"
1510
- #~ msgstr "Omschrijving gebruiken voor de titel?"
1511
-
1512
- #~ msgid "Show last updated?"
1513
- #~ msgstr "Toon laatste aanpassing?"
1514
-
1515
- #~ msgid "Show count?"
1516
- #~ msgstr "Toon aantal?"
1517
-
1518
- #~ msgid "Hide empty?"
1519
- #~ msgstr "Lege verbergen?"
1520
-
1521
- #~ msgid ""
1522
- #~ "An advanced widget that gives you total control over the output of your "
1523
- #~ "category links."
1524
- #~ msgstr ""
1525
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1526
- #~ "van je rubrieken."
1527
-
1528
- #~ msgid "Categories"
1529
- #~ msgstr "Rubrieken"
1530
-
1531
- #~ msgid "Sort Order:"
1532
- #~ msgstr "Sorteervolgorde"
1533
-
1534
- #~ msgid "Meta Key:"
1535
- #~ msgstr "Meta Key:"
1536
-
1537
- #~ msgid "Meta Value:"
1538
- #~ msgstr "Meta Value:"
1539
-
1540
- #~ msgid "Show home?"
1541
- #~ msgstr "Toon home?"
1542
-
1543
- #~ msgid "Show date?"
1544
- #~ msgstr "Toon datum?"
1545
-
1546
- #~ msgid "Search Text:"
1547
- #~ msgstr "Zoek tekst:"
1548
-
1549
- #~ msgid "Use theme's search form?"
1550
- #~ msgstr "Zoekformulier van thema gebruiken?"
1551
-
1552
- #~ msgid ""
1553
- #~ "An advanced widget that gives you total control over the output of your "
1554
- #~ "search form."
1555
- #~ msgstr ""
1556
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1557
- #~ "van je zoekformulier."
1558
-
1559
- #~ msgid "Largest:"
1560
- #~ msgstr "Grootste:"
1561
-
1562
- #~ msgid "Smallest:"
1563
- #~ msgstr "Kleinste:"
1564
-
1565
- #~ msgid "Unit:"
1566
- #~ msgstr "Eenheid:"
1567
-
1568
- #~ msgid ""
1569
- #~ "An advanced widget that gives you total control over the output of your "
1570
- #~ "tags."
1571
- #~ msgstr ""
1572
- #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1573
- #~ "van je tags."
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Members WordPress Plugin\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-06-03 12:36-0600\n"
6
+ "PO-Revision-Date: 2011-06-03 12:38-0600\n"
7
+ "Last-Translator: Justin Tadlock <justin@justintadlock.com>\n"
8
+ "Language-Team: <justin@justintadlock.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: English\n"
13
+ "X-Poedit-Country: UNITED STATES\n"
14
+ "X-Poedit-KeywordsList: _e;__;esc_attr__;esc_attr_e;_n;_x;esc_html__;esc_html_e\n"
15
+ "X-Poedit-Basepath: ../\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: members.php:191
19
+ #: admin/meta-box-plugin-settings.php:30
20
+ #, fuzzy
21
+ msgid "Role Manager"
22
+ msgstr "Naam"
23
+
24
+ #: admin/admin.php:44
25
+ #: admin/roles-list-table.php:57
26
+ #, fuzzy
27
+ msgid "Roles"
28
+ msgstr "Reset"
29
+
30
+ #: admin/admin.php:47
31
+ #: admin/role-new.php:44
32
+ #, fuzzy
33
+ msgid "Add New Role"
34
+ msgstr "Voeg gebruiker toe"
35
+
36
+ #: admin/admin.php:135
37
+ msgid "<strong>Role Manager:</strong> This feature allows you to manage roles on your site by giving you the ability to create, edit, and delete any role. Note that changes to roles do not change settings for the Members plugin. You are literally changing data in your WordPress database. This plugin feature merely provides an interface for you to make these changes."
38
+ msgstr ""
39
+
40
+ #: admin/admin.php:136
41
+ msgid "<strong>Content Permissions:</strong> This feature adds a meta box to the post edit screen that allows you to grant permissions for who can read the post content based on the user's role. Only users of roles with the <code>restrict_content</code> capability will be able to use this component."
42
+ msgstr ""
43
+
44
+ #: admin/admin.php:137
45
+ msgid "<strong>Sidebar Widgets:</strong> This feature creates additional widgets for use in your theme's sidebars. You can access them by clicking Widgets in the menu."
46
+ msgstr ""
47
+
48
+ #: admin/admin.php:138
49
+ msgid "<strong>Private Site:</strong> This feature allows you to redirect all users who are not logged into the site to the login page, creating an entirely private site. You may also replace your feed content with a custom error message."
50
+ msgstr ""
51
+
52
+ #: admin/admin.php:140
53
+ #: admin/admin.php:167
54
+ #: admin/admin.php:183
55
+ msgid "For more information:"
56
+ msgstr ""
57
+
58
+ #: admin/admin.php:143
59
+ #: admin/admin.php:171
60
+ #: admin/admin.php:187
61
+ #, fuzzy
62
+ msgid "Documentation"
63
+ msgstr "Thema Documentatie"
64
+
65
+ #: admin/admin.php:144
66
+ #: admin/admin.php:172
67
+ #: admin/admin.php:188
68
+ #, fuzzy
69
+ msgid "Support Forums"
70
+ msgstr "Bezoek de support forums."
71
+
72
+ #: admin/admin.php:156
73
+ msgid "This screen allows you to edit the capabilities given to the role. You can tick the checkbox next to a capability to add the capability to the role. You can untick the checkbox next to a capability to remove a capability from the role. You can also add as many custom capabilities as you need in the Custom Capabilities section."
74
+ msgstr ""
75
+
76
+ #: admin/admin.php:157
77
+ msgid "Capabilities are both powerful and dangerous tools. You should not add or remove a capability to a role unless you understand what permission you are granting or removing."
78
+ msgstr ""
79
+
80
+ #: admin/admin.php:162
81
+ msgid "This screen lists all the user roles available on this site. Roles are given to users as a way to \"group\" them. Roles are made up of capabilities (permissions), which decide what functions users of each role can perform on the site. From this screen, you can manage these roles and their capabilities."
82
+ msgstr ""
83
+
84
+ #: admin/admin.php:163
85
+ msgid "To add a role to a user, click Users in the menu. To create a new role, click the Add New button at the top of the screen or Add New Role under the Users menu."
86
+ msgstr ""
87
+
88
+ #: admin/admin.php:170
89
+ #: admin/admin.php:186
90
+ msgid "Users, Roles, and Capabilities"
91
+ msgstr ""
92
+
93
+ #: admin/admin.php:180
94
+ msgid "This screen allows you to create a new user role for your site. You must input a unique role name and role label. You can also grant capabilities (permissions) to the new role. Capabilities are both powerful and dangerous tools. You should not add a capability to a role unless you understand what permission you are granting."
95
+ msgstr ""
96
+
97
+ #: admin/admin.php:181
98
+ msgid "To add a role to a user, click Users in the menu. To edit roles, click Roles under the Users menu."
99
+ msgstr ""
100
+
101
+ #: admin/admin.php:202
102
+ msgid "Role deleted."
103
+ msgstr ""
104
+
105
+ #: admin/admin.php:211
106
+ msgid "Selected roles deleted."
107
+ msgstr ""
108
+
109
+ #: admin/meta-box-plugin-settings.php:21
110
+ msgid "About"
111
+ msgstr ""
112
+
113
+ #: admin/meta-box-plugin-settings.php:24
114
+ msgid "Like this plugin?"
115
+ msgstr ""
116
+
117
+ #: admin/meta-box-plugin-settings.php:27
118
+ #, fuzzy
119
+ msgid "Support"
120
+ msgstr "Thema Ondersteuning:"
121
+
122
+ #: admin/meta-box-plugin-settings.php:33
123
+ #: admin/meta-box-post-content-permissions.php:28
124
+ msgid "Content Permissions"
125
+ msgstr ""
126
+
127
+ #: admin/meta-box-plugin-settings.php:36
128
+ #, fuzzy
129
+ msgid "Sidebar Widgets"
130
+ msgstr "Widgets invoegen:"
131
+
132
+ #: admin/meta-box-plugin-settings.php:39
133
+ #, fuzzy
134
+ msgid "Private Site"
135
+ msgstr "Primaire EnkelvoudigBericht"
136
+
137
+ #: admin/meta-box-plugin-settings.php:52
138
+ #, fuzzy
139
+ msgid "Version:"
140
+ msgstr "Thema versie:"
141
+
142
+ #: admin/meta-box-plugin-settings.php:55
143
+ #, fuzzy
144
+ msgid "Description:"
145
+ msgstr "Beschrijving"
146
+
147
+ #: admin/meta-box-plugin-settings.php:69
148
+ msgid "Here's how you can give back:"
149
+ msgstr ""
150
+
151
+ #: admin/meta-box-plugin-settings.php:72
152
+ msgid "Members on the WordPress plugin repository"
153
+ msgstr ""
154
+
155
+ #: admin/meta-box-plugin-settings.php:72
156
+ msgid "Give the plugin a good rating."
157
+ msgstr ""
158
+
159
+ #: admin/meta-box-plugin-settings.php:73
160
+ msgid "Donate via PayPal"
161
+ msgstr ""
162
+
163
+ #: admin/meta-box-plugin-settings.php:73
164
+ msgid "Donate a few dollars."
165
+ msgstr ""
166
+
167
+ #: admin/meta-box-plugin-settings.php:74
168
+ msgid "Justin Tadlock's Amazon Wish List"
169
+ msgstr ""
170
+
171
+ #: admin/meta-box-plugin-settings.php:74
172
+ msgid "Get me something from my wish list."
173
+ msgstr ""
174
+
175
+ #: admin/meta-box-plugin-settings.php:86
176
+ #, php-format
177
+ msgid "Support for this plugin is provided via the support forums at %1$s. If you need any help using it, please ask your support questions there."
178
+ msgstr ""
179
+
180
+ #: admin/meta-box-plugin-settings.php:86
181
+ #, fuzzy
182
+ msgid "Theme Hybrid Support Forums"
183
+ msgstr "Thema Ondersteuning:"
184
+
185
+ #: admin/meta-box-plugin-settings.php:86
186
+ #, fuzzy
187
+ msgid "Theme Hybrid"
188
+ msgstr "Hybrid"
189
+
190
+ #: admin/meta-box-plugin-settings.php:99
191
+ msgid "Enable the role manager."
192
+ msgstr ""
193
+
194
+ #: admin/meta-box-plugin-settings.php:102
195
+ msgid "Your roles and capabilities will not revert back to their previous settings after deactivating or uninstalling this plugin, so use this feature wisely."
196
+ msgstr ""
197
+
198
+ #: admin/meta-box-plugin-settings.php:116
199
+ msgid "Enable the content permissions feature."
200
+ msgstr ""
201
+
202
+ #: admin/meta-box-plugin-settings.php:120
203
+ msgid "Default post error message:"
204
+ msgstr ""
205
+
206
+ #: admin/meta-box-plugin-settings.php:122
207
+ msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message for users that don't have permission to view posts."
208
+ msgstr ""
209
+
210
+ #: admin/meta-box-plugin-settings.php:136
211
+ msgid "Enable the login form widget."
212
+ msgstr ""
213
+
214
+ #: admin/meta-box-plugin-settings.php:141
215
+ msgid "Enable the users widget."
216
+ msgstr ""
217
+
218
+ #: admin/meta-box-plugin-settings.php:155
219
+ msgid "Redirect all logged-out users to the login page before allowing them to view the site."
220
+ msgstr ""
221
+
222
+ #: admin/meta-box-plugin-settings.php:160
223
+ msgid "Show error message for feed items."
224
+ msgstr ""
225
+
226
+ #: admin/meta-box-plugin-settings.php:164
227
+ #, fuzzy
228
+ msgid "Feed error message:"
229
+ msgstr "Feed afbeelding:"
230
+
231
+ #: admin/meta-box-plugin-settings.php:167
232
+ msgid "You can use <abbr title=\"Hypertext Markup Language\">HTML</abbr> and/or shortcodes to create a custom error message to display instead of feed item content."
233
+ msgstr ""
234
+
235
+ #: admin/meta-box-post-content-permissions.php:51
236
+ msgid "Limit access to this post's content to users of the selected roles."
237
+ msgstr ""
238
+
239
+ #: admin/meta-box-post-content-permissions.php:75
240
+ #, php-format
241
+ msgid "If no roles are selected, everyone can view the content. The post author, any users who can edit this post, and users with the %s capability can view the content regardless of role."
242
+ msgstr ""
243
+
244
+ #: admin/meta-box-post-content-permissions.php:79
245
+ msgid "Custom error messsage:"
246
+ msgstr ""
247
+
248
+ #: admin/meta-box-post-content-permissions.php:82
249
+ msgid "Message shown to users that do no have permission to view the post."
250
+ msgstr ""
251
+
252
+ #: admin/role-edit.php:67
253
+ #, fuzzy
254
+ msgid "Edit Role"
255
+ msgstr "Bewerk"
256
+
257
+ #: admin/role-edit.php:68
258
+ #: admin/roles-list-table.php:58
259
+ msgid "Add New"
260
+ msgstr ""
261
+
262
+ #: admin/role-edit.php:71
263
+ #, fuzzy
264
+ msgid "Role updated."
265
+ msgstr "Aanpassingen tonen?"
266
+
267
+ #: admin/role-edit.php:71
268
+ msgid "&larr; Back to Roles"
269
+ msgstr ""
270
+
271
+ #: admin/role-edit.php:85
272
+ #: admin/role-new.php:60
273
+ #: admin/roles-list-table.php:111
274
+ #, fuzzy
275
+ msgid "Role Name"
276
+ msgstr "Naam"
277
+
278
+ #: admin/role-edit.php:94
279
+ #: admin/roles-list-table.php:113
280
+ #: admin/roles-list-table.php:123
281
+ msgid "Capabilities"
282
+ msgstr ""
283
+
284
+ #: admin/role-edit.php:112
285
+ msgid "Custom Capabilities"
286
+ msgstr ""
287
+
288
+ #: admin/role-edit.php:117
289
+ msgid "Add New Capability"
290
+ msgstr ""
291
+
292
+ #: admin/role-edit.php:127
293
+ #, fuzzy
294
+ msgid "Update Role"
295
+ msgstr "Bewerk"
296
+
297
+ #: admin/role-new.php:46
298
+ #, fuzzy, php-format
299
+ msgid "The %s role has been created."
300
+ msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
301
+
302
+ #: admin/role-new.php:65
303
+ msgid "<strong>Required:</strong> The role name should be unique and contain only alphanumeric characters and underscores."
304
+ msgstr ""
305
+
306
+ #: admin/role-new.php:71
307
+ #: admin/roles-list-table.php:110
308
+ #: admin/roles-list-table.php:120
309
+ #, fuzzy
310
+ msgid "Role Label"
311
+ msgstr "Zoek label:"
312
+
313
+ #: admin/role-new.php:76
314
+ msgid "<strong>Required:</strong> The role label is used to represent your role in the WordPress admin."
315
+ msgstr ""
316
+
317
+ #: admin/role-new.php:82
318
+ #, fuzzy
319
+ msgid "Role Capabilities"
320
+ msgstr "Aanpassingen tonen?"
321
+
322
+ #: admin/role-new.php:86
323
+ msgid "<strong>Optional:</strong> Select the capabilities this role should have. These may be updated later."
324
+ msgstr ""
325
+
326
+ #: admin/role-new.php:102
327
+ #, fuzzy
328
+ msgid "Add Role"
329
+ msgstr "Bewerk"
330
+
331
+ #: admin/roles-list-table.php:70
332
+ msgid "All"
333
+ msgstr ""
334
+
335
+ #: admin/roles-list-table.php:71
336
+ #, fuzzy
337
+ msgid "Has Users"
338
+ msgstr "Gebruikersnaam"
339
+
340
+ #: admin/roles-list-table.php:72
341
+ #, fuzzy
342
+ msgid "No Users"
343
+ msgstr "Gebruikersnaam"
344
+
345
+ #: admin/roles-list-table.php:83
346
+ #: admin/roles-list-table.php:215
347
+ msgid "Bulk Actions"
348
+ msgstr ""
349
+
350
+ #: admin/roles-list-table.php:86
351
+ #: admin/roles-list-table.php:158
352
+ #: admin/roles-list-table.php:218
353
+ msgid "Delete"
354
+ msgstr ""
355
+
356
+ #: admin/roles-list-table.php:91
357
+ #: admin/roles-list-table.php:223
358
+ #, fuzzy
359
+ msgid "Apply"
360
+ msgstr "Reageer"
361
+
362
+ #: admin/roles-list-table.php:98
363
+ #: admin/roles-list-table.php:230
364
+ #, php-format
365
+ msgid "%s item"
366
+ msgstr ""
367
+
368
+ #: admin/roles-list-table.php:112
369
+ #: admin/roles-list-table.php:122
370
+ #, fuzzy
371
+ msgid "Users"
372
+ msgstr "Gebruikersnaam"
373
+
374
+ #: admin/roles-list-table.php:121
375
+ #: includes/admin-bar.php:29
376
+ msgid "Role"
377
+ msgstr ""
378
+
379
+ #: admin/roles-list-table.php:146
380
+ #: admin/roles-list-table.php:154
381
+ #, fuzzy, php-format
382
+ msgid "Edit the %s role"
383
+ msgstr "Bewerk"
384
+
385
+ #: admin/roles-list-table.php:154
386
+ msgid "Edit"
387
+ msgstr "Bewerk"
388
+
389
+ #: admin/roles-list-table.php:158
390
+ #, php-format
391
+ msgid "Delete the %s role"
392
+ msgstr ""
393
+
394
+ #: admin/roles-list-table.php:162
395
+ msgid "Change default role"
396
+ msgstr ""
397
+
398
+ #: admin/roles-list-table.php:162
399
+ msgid "Default Role"
400
+ msgstr ""
401
+
402
+ #: admin/roles-list-table.php:166
403
+ #: admin/roles-list-table.php:182
404
+ #, php-format
405
+ msgid "View all users with the %s role"
406
+ msgstr ""
407
+
408
+ #: admin/roles-list-table.php:166
409
+ msgid "View Users"
410
+ msgstr ""
411
+
412
+ #: admin/roles-list-table.php:182
413
+ #: admin/roles-list-table.php:184
414
+ #, fuzzy, php-format
415
+ msgid "%s User"
416
+ msgstr "Voeg gebruiker toe"
417
+
418
+ #: admin/roles-list-table.php:194
419
+ #, php-format
420
+ msgid "%s Capability"
421
+ msgstr ""
422
+
423
+ #: admin/settings.php:28
424
+ #, fuzzy
425
+ msgid "Members Settings"
426
+ msgstr "Hybrid Settings"
427
+
428
+ #: admin/settings.php:28
429
+ #, fuzzy
430
+ msgid "Members"
431
+ msgstr "Hybrid Settings"
432
+
433
+ #: admin/settings.php:66
434
+ msgid "Sorry, but you do not have permission to view this content."
435
+ msgstr ""
436
+
437
+ #: admin/settings.php:67
438
+ msgid "You must be logged into the site to view this content."
439
+ msgstr ""
440
+
441
+ #: admin/settings.php:145
442
+ #, fuzzy
443
+ msgid "Members Plugin Settings"
444
+ msgstr "Hybrid Settings"
445
+
446
+ #: admin/settings.php:160
447
+ #, fuzzy
448
+ msgid "Update Settings"
449
+ msgstr "Footer Settings:"
450
+
451
+ #: includes/widget-login-form.php:26
452
+ msgid "A widget that allows users to log into your site."
453
+ msgstr ""
454
+
455
+ #: includes/widget-login-form.php:37
456
+ #, fuzzy
457
+ msgid "Login Form"
458
+ msgstr "Aanmelden"
459
+
460
+ #: includes/widget-login-form.php:158
461
+ #: includes/widget-login-form.php:161
462
+ #, fuzzy
463
+ msgid "Log In"
464
+ msgstr "Aanmelden"
465
+
466
+ #: includes/widget-login-form.php:159
467
+ #, fuzzy
468
+ msgid "Username"
469
+ msgstr "Gebruikersnaam"
470
+
471
+ #: includes/widget-login-form.php:160
472
+ msgid "Password"
473
+ msgstr "Wachtwoord"
474
+
475
+ #: includes/widget-login-form.php:162
476
+ #, fuzzy
477
+ msgid "Remember Me"
478
+ msgstr "Herinner deze gegevens."
479
+
480
+ #: includes/widget-login-form.php:172
481
+ msgid "Please log into the site."
482
+ msgstr ""
483
+
484
+ #: includes/widget-login-form.php:173
485
+ msgid "You are currently logged in."
486
+ msgstr ""
487
+
488
+ #: includes/widget-login-form.php:185
489
+ #: includes/widget-users.php:157
490
+ msgid "Title:"
491
+ msgstr "Titel"
492
+
493
+ #: includes/widget-login-form.php:235
494
+ #, fuzzy
495
+ msgid "\"Remember me\" checkbox?"
496
+ msgstr "Herinner deze gegevens."
497
+
498
+ #: includes/widget-login-form.php:239
499
+ #, fuzzy
500
+ msgid "Check \"remember me\"?"
501
+ msgstr "Herinner deze gegevens."
502
+
503
+ #: includes/widget-login-form.php:243
504
+ msgid "Display avatar?"
505
+ msgstr ""
506
+
507
+ #: includes/widget-login-form.php:246
508
+ msgid "Logged out text:"
509
+ msgstr ""
510
+
511
+ #: includes/widget-login-form.php:251
512
+ msgid "Logged in text:"
513
+ msgstr ""
514
+
515
+ #: includes/widget-users.php:26
516
+ msgid "Provides the ability to list the users of the site."
517
+ msgstr ""
518
+
519
+ #: includes/widget-users.php:145
520
+ msgid "Ascending"
521
+ msgstr ""
522
+
523
+ #: includes/widget-users.php:145
524
+ msgid "Descending"
525
+ msgstr ""
526
+
527
+ #: includes/widget-users.php:146
528
+ #, fuzzy
529
+ msgid "Display Name"
530
+ msgstr "Voornaam"
531
+
532
+ #: includes/widget-users.php:146
533
+ msgid "Email"
534
+ msgstr "Email"
535
+
536
+ #: includes/widget-users.php:146
537
+ msgid "ID"
538
+ msgstr ""
539
+
540
+ #: includes/widget-users.php:146
541
+ #, fuzzy
542
+ msgid "Nice Name"
543
+ msgstr "Naam"
544
+
545
+ #: includes/widget-users.php:146
546
+ #, fuzzy
547
+ msgid "Post Count"
548
+ msgstr "Niet gevonden"
549
+
550
+ #: includes/widget-users.php:146
551
+ #, fuzzy
552
+ msgid "Registered"
553
+ msgstr "Registreer"
554
+
555
+ #: includes/widget-users.php:146
556
+ msgid "URL"
557
+ msgstr ""
558
+
559
+ #: includes/widget-users.php:146
560
+ #, fuzzy
561
+ msgid "Login"
562
+ msgstr "Aanmelden"
563
+
564
+ #, fuzzy
565
+ #~ msgid "Welcome, %1$s!"
566
+ #~ msgstr "Week %1$s"
567
+
568
+ #, fuzzy
569
+ #~ msgid "Password:"
570
+ #~ msgstr "Wachtwoord"
571
+
572
+ #, fuzzy
573
+ #~ msgid "Select Components"
574
+ #~ msgstr "Selecteer maand"
575
+
576
+ #, fuzzy
577
+ #~ msgid "Component"
578
+ #~ msgstr "Reactie"
579
+
580
+ #, fuzzy
581
+ #~ msgid "Activate"
582
+ #~ msgstr "Archieven"
583
+
584
+ #, fuzzy
585
+ #~ msgid "Active"
586
+ #~ msgstr "Archieven"
587
+
588
+ #, fuzzy
589
+ #~ msgid "Inactive"
590
+ #~ msgstr "Archieven"
591
+
592
+ #, fuzzy
593
+ #~ msgid "Username Label:"
594
+ #~ msgstr "Gebruikersnaam*"
595
+
596
+ #, fuzzy
597
+ #~ msgid "Password Label:"
598
+ #~ msgstr "Wachtwoord*"
599
+
600
+ #~ msgid "Submit Text:"
601
+ #~ msgstr "Verstuur tekst:"
602
+
603
+ #, fuzzy
604
+ #~ msgid "Remember User Text:"
605
+ #~ msgstr "Herinner deze gegevens."
606
+
607
+ #, fuzzy
608
+ #~ msgid ""
609
+ #~ "An advanced widget that gives you total control over the output of your "
610
+ #~ "user lists."
611
+ #~ msgstr ""
612
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
613
+ #~ "van je pagina-links."
614
+
615
+ #~ msgid "Limit:"
616
+ #~ msgstr "Limiet:"
617
+
618
+ #~ msgid "Order:"
619
+ #~ msgstr "Volgorde:"
620
+
621
+ #~ msgid "Order By:"
622
+ #~ msgstr "Sorteer op:"
623
+
624
+ #~ msgid "Include:"
625
+ #~ msgstr "Omvat:"
626
+
627
+ #~ msgid "Exclude:"
628
+ #~ msgstr "Sluit uit:"
629
+
630
+ #, fuzzy
631
+ #~ msgid "Show full name?"
632
+ #~ msgstr "Aanpassingen tonen?"
633
+
634
+ #~ msgid "Save Changes"
635
+ #~ msgstr "Bewaren"
636
+
637
+ #, fuzzy
638
+ #~ msgid "New user role has been added."
639
+ #~ msgstr "Er is een gebruikersaccount aangemaakt voor %1$s."
640
+
641
+ #~ msgid ""
642
+ #~ "You tried going to %1$s, and it doesn't exist. All is not lost! You can "
643
+ #~ "search for what you're looking for."
644
+ #~ msgstr ""
645
+ #~ "Je wilde naar %1$s gaan, maar dit bestaat niet. Geen nood! Zoek hier "
646
+ #~ "wat je zocht:"
647
+
648
+ #~ msgid "Possibly Related"
649
+ #~ msgstr "Mogelijk gerelateerd"
650
+
651
+ #~ msgid "Continue reading"
652
+ #~ msgstr "Lees hier verder"
653
+
654
+ #~ msgid "Download &quot;%1$s&quot;"
655
+ #~ msgstr "Download &quot;%1$s&quot;"
656
+
657
+ #~ msgid "Pages:"
658
+ #~ msgstr "Pagina's:"
659
+
660
+ #~ msgid "Sorry, no applications matched your criteria."
661
+ #~ msgstr "Sorry, er zijn geen toepassingen die met je criteria overeenkomen."
662
+
663
+ #~ msgid "You are browsing the archive for %1$s."
664
+ #~ msgstr "Je bladert nu door het archief voor %1$s."
665
+
666
+ #~ msgid "By"
667
+ #~ msgstr "Door"
668
+
669
+ #~ msgid "on"
670
+ #~ msgstr "op"
671
+
672
+ #~ msgid "l, F jS, Y, g:i a"
673
+ #~ msgstr "l, j F, Y, G:i"
674
+
675
+ #~ msgid "F j, Y"
676
+ #~ msgstr "j F, Y"
677
+
678
+ #~ msgid "Posted in"
679
+ #~ msgstr "Gepost in"
680
+
681
+ #~ msgid "Tagged"
682
+ #~ msgstr "Tags:"
683
+
684
+ #~ msgid "Leave a response"
685
+ #~ msgstr "Reageer"
686
+
687
+ #~ msgid "1 Response"
688
+ #~ msgstr "1 Reactie"
689
+
690
+ #~ msgid "% Responses"
691
+ #~ msgstr "% Reacties"
692
+
693
+ #~ msgid "Sorry, there are no posts in this archive."
694
+ #~ msgstr "Sorry, dit archief bevat geen berichten."
695
+
696
+ #~ msgid "Archives by category"
697
+ #~ msgstr "Archieven per rubriek"
698
+
699
+ #~ msgid "Archives by month"
700
+ #~ msgstr "Archieven per maand"
701
+
702
+ #~ msgid "Sorry, no page matched your criteria."
703
+ #~ msgstr "Sorry, er bestaat geen pagina die aan je criteria voldoet."
704
+
705
+ #~ msgid "Sorry, no attachments matched your criteria."
706
+ #~ msgstr "Sorry, er zijn geen bijlages die aan je criteria voldoen."
707
+
708
+ #~ msgid "Sorry, no audio files matched your criteria."
709
+ #~ msgstr "Sorry, er zijn geen geluidsbestanden die aan je criteria voldoen."
710
+
711
+ #~ msgid "Send an email to %1$s"
712
+ #~ msgstr "Stuur een email aan %1$s"
713
+
714
+ #~ msgid "Email %1$s"
715
+ #~ msgstr "Email %1$s"
716
+
717
+ #~ msgid "%1$s hasn't written any posts yet."
718
+ #~ msgstr "%1$s heeft nog geen berichten geschreven."
719
+
720
+ #~ msgid "Nickname:"
721
+ #~ msgstr "Bijnaam:"
722
+
723
+ #~ msgid "Email:"
724
+ #~ msgstr "Email:"
725
+
726
+ #~ msgid "Website:"
727
+ #~ msgstr "Website:"
728
+
729
+ #~ msgid "AIM:"
730
+ #~ msgstr "AIM:"
731
+
732
+ #~ msgid "IM with %1$s"
733
+ #~ msgstr "IM met %1$s"
734
+
735
+ #~ msgid "Jabber:"
736
+ #~ msgstr "Jabber:"
737
+
738
+ #~ msgid "Yahoo:"
739
+ #~ msgstr "Yahoo:"
740
+
741
+ #~ msgid "Sorry, there are no posts in the %1$s category."
742
+ #~ msgstr "Sorry, er zijn geen berichten in de rubriek %1$s. "
743
+
744
+ #~ msgid "Please do not load this page directly. Thanks!"
745
+ #~ msgstr "Gelieve deze pagina niet rechtstreeks te laden. Dankjewel!"
746
+
747
+ #~ msgid "No Responses"
748
+ #~ msgstr "Geen reacties"
749
+
750
+ #~ msgid "One Response"
751
+ #~ msgstr "Een reactie"
752
+
753
+ #~ msgid "Responses"
754
+ #~ msgstr "Reacties"
755
+
756
+ #~ msgid "to"
757
+ #~ msgstr "naar"
758
+
759
+ #~ msgid "%1$s at %2$s"
760
+ #~ msgstr "%1$s op %2$s"
761
+
762
+ #~ msgid "Permalink to comment"
763
+ #~ msgstr "Permalink naar reactie"
764
+
765
+ #~ msgid "Permalink"
766
+ #~ msgstr "Permalink"
767
+
768
+ #~ msgid "Your comment is awaiting moderation."
769
+ #~ msgstr "Je reactie wacht op moderatie."
770
+
771
+ #~ msgid ""
772
+ #~ "Comments are closed, but <a href=\"%1$s\" title=\"Trackback URL for this "
773
+ #~ "post\">trackbacks</a> and pingbacks are open."
774
+ #~ msgstr ""
775
+ #~ "Reageren is niet mogelijk, maar <a href=\"%1$s\" title=\"Trackback URL "
776
+ #~ "for this post\">trackbacks</a> en pingbacks blijven open."
777
+
778
+ #~ msgid "Comments are closed."
779
+ #~ msgstr "Reageren is niet mogelijk."
780
+
781
+ #~ msgid "Leave a Reply"
782
+ #~ msgstr "Reageer"
783
+
784
+ #~ msgid ""
785
+ #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to post a "
786
+ #~ "comment."
787
+ #~ msgstr ""
788
+ #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om te "
789
+ #~ "reageren."
790
+
791
+ #~ msgid "Logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
792
+ #~ msgstr "Ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
793
+
794
+ #~ msgid "Log out of this account"
795
+ #~ msgstr "Afmelden."
796
+
797
+ #~ msgid "Logout &raquo;"
798
+ #~ msgstr "Afmelden &raquo;"
799
+
800
+ #~ msgid "*"
801
+ #~ msgstr "*"
802
+
803
+ #~ msgid "Website"
804
+ #~ msgstr "Website"
805
+
806
+ #~ msgid "Submit"
807
+ #~ msgstr "Verstuur"
808
+
809
+ #~ msgid "Password Protected"
810
+ #~ msgstr "Beveiligd met wachtwoord"
811
+
812
+ #~ msgid "Enter the password to view comments."
813
+ #~ msgstr "Voer wachtwoord in om reacties te lezen."
814
+
815
+ #~ msgid "Leave a Reply to %s"
816
+ #~ msgstr "Reageer op %s"
817
+
818
+ #~ msgid "Click here to cancel reply."
819
+ #~ msgstr "Klik hier om de reactie te annuleren."
820
+
821
+ #~ msgid "F jS, Y"
822
+ #~ msgstr "j F, Y"
823
+
824
+ #~ msgid "Week %1$s of %2$s"
825
+ #~ msgstr "Week %1$s van %2$s"
826
+
827
+ #~ msgid "W"
828
+ #~ msgstr "W"
829
+
830
+ #~ msgid "Y"
831
+ #~ msgstr "Y"
832
+
833
+ #~ msgid "You are browsing the archive for week %1$s of %2$s."
834
+ #~ msgstr "Je bekijkt het archief voor week %1$s van %2$s."
835
+
836
+ #~ msgid "Sorry, there are no posts for %1$s."
837
+ #~ msgstr "Sorry, maar er zijn geen berichten voor %1$s."
838
+
839
+ #~ msgid "Sorry, no posts matched your criteria."
840
+ #~ msgstr "Sorry, er zijn geen berichten die met je criteria overeenkomen."
841
+
842
+ #~ msgid "Sorry, no images matched your criteria."
843
+ #~ msgstr "Sorry, er zijn geen afbeeldingen die met je criteria overeenkomen."
844
+
845
+ #~ msgid ""
846
+ #~ "You are currently logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
847
+ #~ msgstr ""
848
+ #~ "Je bent momenteel ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
849
+
850
+ #~ msgid ""
851
+ #~ "You have successfully logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</"
852
+ #~ "a>."
853
+ #~ msgstr ""
854
+ #~ "Je bent succesvol ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>."
855
+
856
+ #~ msgid ""
857
+ #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> to view the "
858
+ #~ "content of this page."
859
+ #~ msgstr ""
860
+ #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn om de inhoud "
861
+ #~ "van deze pagina te bekijken."
862
+
863
+ #~ msgid ""
864
+ #~ "If you're not currently a member, please take a moment to <a href=\"%1$s"
865
+ #~ "\" title=\"Register\">register</a>."
866
+ #~ msgstr ""
867
+ #~ "Als je momenteel nog geen lid bent, neem dan een ogenblikje tijd om je te "
868
+ #~ "<a href=\"%1$s\" title=\"Register\">registreren</a>."
869
+
870
+ #~ msgid "You must enter a post title."
871
+ #~ msgstr "Je moet een titel voor het bericht invoeren."
872
+
873
+ #~ msgid "You must write something."
874
+ #~ msgstr "Je moet hier iets schrijven."
875
+
876
+ #~ msgid "Title"
877
+ #~ msgstr "Titel"
878
+
879
+ #~ msgid "Write"
880
+ #~ msgstr "Schrijf"
881
+
882
+ #~ msgid "Tags"
883
+ #~ msgstr "Tags"
884
+
885
+ #~ msgid "Publish"
886
+ #~ msgstr "Publiceer"
887
+
888
+ #~ msgid "You don't have the appropriate capabilities to publish posts."
889
+ #~ msgstr "Je hebt niet de nodige rechten om berichten te publiceren."
890
+
891
+ #~ msgid ""
892
+ #~ "You must be <a href=\"%1$s\" title=\"Log in\">logged in</a> with "
893
+ #~ "appropriate user capabilities to publish posts."
894
+ #~ msgstr ""
895
+ #~ "Je moet <a href=\"%1$s\" title=\"Log in\">ingelogd</a> zijn met de nodige "
896
+ #~ "gebruikersrechten om berichten te kunnen publiceren."
897
+
898
+ #~ msgid "A username is required for registration."
899
+ #~ msgstr "Om te registreren is een gebruikersnaam nodig."
900
+
901
+ #~ msgid "You must enter an email address."
902
+ #~ msgstr "Je moet een email-adres invoeren."
903
+
904
+ #~ msgid "You must enter a password."
905
+ #~ msgstr "Je moet een wachtwoord invoeren."
906
+
907
+ #~ msgid "You must enter your password twice."
908
+ #~ msgstr "Je moet je wachtwoord tweemaal invoeren."
909
+
910
+ #~ msgid "You must enter the same password twice."
911
+ #~ msgstr "Je moet tweemaal hetzelfde wachtwoord invoeren."
912
+
913
+ #~ msgid "User registration failed. Please try again."
914
+ #~ msgstr "Gebruikersregistratie mislukt. Probeer opnieuw."
915
+
916
+ #~ msgid ""
917
+ #~ "You are logged in as <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. You don't "
918
+ #~ "need another account."
919
+ #~ msgstr ""
920
+ #~ "Je bent ingelogd als <a href=\"%1$s\" title=\"%2$s\">%2$s</a>. Je hebt "
921
+ #~ "geen bijkomend account nodig."
922
+
923
+ #~ msgid "Thank you for registering, %1$s."
924
+ #~ msgstr "Bedankt voor je registratie, %1$s."
925
+
926
+ #~ msgid "Users can register themselves or you can manually create users here."
927
+ #~ msgstr ""
928
+ #~ "Gebruikers kunnen zichzelf registreren of je kan hier handmatig "
929
+ #~ "gebruikersaccounts aanmaken."
930
+
931
+ #~ msgid ""
932
+ #~ "Users cannot currently register themselves, but you can manually create "
933
+ #~ "users here."
934
+ #~ msgstr ""
935
+ #~ "Gebruikers kunnen zichzelf niet registreren, maar je kan hier wel "
936
+ #~ "handmatig gebruikersaccounts aanmaken."
937
+
938
+ #~ msgid "Required fields are marked <span class=\"required\">*</span>"
939
+ #~ msgstr ""
940
+ #~ "Verplichte velden zijn aangeduid met <span class=\"required\">*</span>."
941
+
942
+ #~ msgid "Last Name"
943
+ #~ msgstr "Naam"
944
+
945
+ #~ msgid "E-mail *"
946
+ #~ msgstr "E-mail *"
947
+
948
+ #~ msgid "Repeat Password *"
949
+ #~ msgstr "Herhaal je wachtwoord*"
950
+
951
+ #~ msgid "Biographical Information"
952
+ #~ msgstr "Biografische informatie"
953
+
954
+ #~ msgid "You are browsing the search results for &quot;%1$s&quot;"
955
+ #~ msgstr "Je bekijkt hier de zoekresultaten voor &quot;%1$s&quot;"
956
+
957
+ #~ msgid "Maybe you'd like to try inputting different search terms."
958
+ #~ msgstr "Misschien wil je andere zoektermen invoeren."
959
+
960
+ #~ msgid "You are browsing the %1$s tag archive."
961
+ #~ msgstr "Je bekijkt het archief voor de tag %1$s"
962
+
963
+ #~ msgid "Sorry, there are no posts tagged %1$s."
964
+ #~ msgstr "Sorry, er zijn geen berichten met de tag %1$s."
965
+
966
+ #~ msgid "Sorry, no documents matched your criteria."
967
+ #~ msgstr "Sorry, er zijn geen documenten die met je criteria overeenkomen."
968
+
969
+ #~ msgid "Sorry, no videos matched your criteria."
970
+ #~ msgstr "Sorry, er zijn geen video's die met je criteria overeenkomen."
971
+
972
+ #~ msgid "Widget Template"
973
+ #~ msgstr "Widget Template"
974
+
975
+ #~ msgid "About This Theme"
976
+ #~ msgstr "Over dit Thema"
977
+
978
+ #~ msgid "Theme Description:"
979
+ #~ msgstr "Thema Beschrijving:"
980
+
981
+ #~ msgid "Theme Documentation:"
982
+ #~ msgstr "Thema Documentatie:"
983
+
984
+ #~ msgid "Get support for this theme"
985
+ #~ msgstr "Ondersteuning voor dit thema"
986
+
987
+ #~ msgid "Select your theme settings"
988
+ #~ msgstr "Selecteer de settings voor je thema"
989
+
990
+ #, fuzzy
991
+ #~ msgid ""
992
+ #~ "Select this if you want your primary widget inserts to default to the "
993
+ #~ "home insert when nothing else is selected."
994
+ #~ msgstr ""
995
+ #~ "Selecteer dit als je wenst dat je primaire widgets standaard geladen "
996
+ #~ "worden op de home-pagina als niet anders geselecteerd is."
997
+
998
+ #, fuzzy
999
+ #~ msgid ""
1000
+ #~ "Select this if you want your secondary widget inserts to default to the "
1001
+ #~ "home insert when nothing else is selected."
1002
+ #~ msgstr ""
1003
+ #~ "Selecteer dit als je wenst dat je secundaire widgets standaard geladen "
1004
+ #~ "worden op de home-pagina als niet anders geselecteerd is."
1005
+
1006
+ #~ msgid "Stylesheets:"
1007
+ #~ msgstr "Stijlbladen (CSS)"
1008
+
1009
+ #~ msgid ""
1010
+ #~ "Select this to have the theme automatically include a print stylesheet."
1011
+ #~ msgstr ""
1012
+ #~ "Selecteer dit als je wil dat het thema automatisch een 'print' stijlblad "
1013
+ #~ "insluit."
1014
+
1015
+ #~ msgid "JavaScript:"
1016
+ #~ msgstr "JavaScript:"
1017
+
1018
+ #~ msgid "Include the pull quote JavaScript."
1019
+ #~ msgstr "Inclusief pull quote JavaScript."
1020
+
1021
+ #~ msgid "Feeds:"
1022
+ #~ msgstr "Feeds:"
1023
+
1024
+ #~ msgid ""
1025
+ #~ "If you have a an alternate feed address, such as one from <a href="
1026
+ #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, you can "
1027
+ #~ "enter it here to have the theme set your feed URL link. If blank, the "
1028
+ #~ "theme will default to your WordPress RSS feed."
1029
+ #~ msgstr ""
1030
+ #~ "Wanneer je over een alternatief feed-adres beschikt, zoals van <a href="
1031
+ #~ "\"http://feedburner.com\" title=\"Feedburner\">Feedburner</a>, kan je dat "
1032
+ #~ "hier invoeren om het door het thema te laten gebruiken. Als je dit "
1033
+ #~ "blanco laat, wordt de standaard WordPress RSS feed gebruikt."
1034
+
1035
+ #~ msgid "Title &amp; Meta:"
1036
+ #~ msgstr "Titel &amp; Meta"
1037
+
1038
+ #~ msgid "Use category slugs on single posts for your meta keywords?"
1039
+ #~ msgstr ""
1040
+ #~ "Gebruik categorie 'slug' als meta keywoord voor afzonderlijke berichten."
1041
+
1042
+ #~ msgid "Use tag slugs on single posts for your meta keywords?"
1043
+ #~ msgstr "Gebruik tag 'slug' als meta keywoord voor afzonderlijke berichten."
1044
+
1045
+ #~ msgid "Use the excerpt on single posts for your meta description?"
1046
+ #~ msgstr ""
1047
+ #~ "Uittreksel als meta-omschrijving gebruiken voor afzonderlijke berichten?"
1048
+
1049
+ #~ msgid "Use the author bio on author archives for your meta description?"
1050
+ #~ msgstr ""
1051
+ #~ "Auteurs biografie als meta-omschrijving gebruiken voor afzonderlijke "
1052
+ #~ "berichten?"
1053
+
1054
+ #~ msgid ""
1055
+ #~ "Use the category description on category archives for your meta "
1056
+ #~ "description?"
1057
+ #~ msgstr ""
1058
+ #~ "Rubriek-omschrijving als meta-omschrijving gebruiken voor afzonderlijke "
1059
+ #~ "berichten?"
1060
+
1061
+ #~ msgid "Use the author's name on pages and posts as the meta author?"
1062
+ #~ msgstr ""
1063
+ #~ "Naam van de auteur als meta-auteur gebruiken op pagina's en berichten?"
1064
+
1065
+ #~ msgid "Append site title to the end of the page name?"
1066
+ #~ msgstr "Site-naam toevoegen aan het eind van de pagina-naam?"
1067
+
1068
+ #~ msgid ""
1069
+ #~ "You can change these settings in the box labeled <em>Hybrid Settings</em> "
1070
+ #~ "when writing a post or page."
1071
+ #~ msgstr ""
1072
+ #~ "Je kan deze settings aanpassen in het vak <em>Hybrid Settings</em> "
1073
+ #~ "wanneer je een bericht of pagina bewerkt."
1074
+
1075
+ #~ msgid ""
1076
+ #~ "The <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</"
1077
+ #~ "a> and <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins will "
1078
+ #~ "override these settings and the Indexing settings."
1079
+ #~ msgstr ""
1080
+ #~ "De <a href=\"%1$s\" title=\"All-In-One SEO Pack\">All-In-One SEO Pack</a> "
1081
+ #~ "en <a href=\"%2$s\" title=\"Headspace2\">Headspace2</a> plugins zullen "
1082
+ #~ "deze en de indexeringssettings overschrijven."
1083
+
1084
+ #~ msgid "Indexing:"
1085
+ #~ msgstr "Indexeren:"
1086
+
1087
+ #~ msgid ""
1088
+ #~ "Choose which pages of your blog get indexed by the search engines. Only "
1089
+ #~ "selected pages will be indexed. If not selected, those pages will be "
1090
+ #~ "blocked."
1091
+ #~ msgstr ""
1092
+ #~ "Kies welke pagina's van je blog door zoekmachines kunnen ge&iuml;ndexeerd "
1093
+ #~ "worden. Alleen de geselecteerde pagina's worden ge&iuml;ndexeerd. Niet "
1094
+ #~ "geselecteerde pagina's worden geblokkeerd."
1095
+
1096
+ #~ msgid ""
1097
+ #~ "Note: Some of these settings will render the Title &amp; Meta settings "
1098
+ #~ "moot. Also, setting your site to privacy mode will override these "
1099
+ #~ "controls."
1100
+ #~ msgstr ""
1101
+ #~ "Let op: Sommige van deze settings kunnen conflicteren met de Titel &amp; "
1102
+ #~ "Meta settings. Ook wanneer je je site in een beveiligde modus omzet, "
1103
+ #~ "worden deze settings overschreven."
1104
+
1105
+ #~ msgid "Home page"
1106
+ #~ msgstr "Homepage"
1107
+
1108
+ #~ msgid "Single posts"
1109
+ #~ msgstr "Afzonderlijke berichten"
1110
+
1111
+ #~ msgid "Attachments"
1112
+ #~ msgstr "Bijlages"
1113
+
1114
+ #~ msgid "Pages"
1115
+ #~ msgstr "Pagina's"
1116
+
1117
+ #~ msgid "Date-based archives"
1118
+ #~ msgstr "Datum-gebaseerd archief"
1119
+
1120
+ #~ msgid "Category archives"
1121
+ #~ msgstr "Archief per rubriek"
1122
+
1123
+ #~ msgid "Tag archives"
1124
+ #~ msgstr "Archief op tags"
1125
+
1126
+ #~ msgid "Author archives"
1127
+ #~ msgstr "Archief op auteur"
1128
+
1129
+ #~ msgid "Search"
1130
+ #~ msgstr "Zoek"
1131
+
1132
+ #~ msgid "404"
1133
+ #~ msgstr "404"
1134
+
1135
+ #~ msgid "Avatars:"
1136
+ #~ msgstr "Avatars:"
1137
+
1138
+ #~ msgid ""
1139
+ #~ "You can set a default avatar for users without one if you don't like the "
1140
+ #~ "choices WordPress offers you. Simply add the full path to the image file."
1141
+ #~ msgstr ""
1142
+ #~ "Je kan een standaard-avatar instellen voor gebruikers zonder avatar, "
1143
+ #~ "wanneer de keuze van WordPress je niet bevalt. Voer daartoe hier het "
1144
+ #~ "complete pad naar de afbeelding in."
1145
+
1146
+ #~ msgid "Comments:"
1147
+ #~ msgstr "Reacties:"
1148
+
1149
+ #~ msgid "Check to use the comments popup window instead of regular comments."
1150
+ #~ msgstr ""
1151
+ #~ "Aanvinken om een popup-scherm voor reacties te gebruiken in plaats van "
1152
+ #~ "het gebruikelijke commentaarscherm."
1153
+
1154
+ #~ msgid "WP 2.7+ only."
1155
+ #~ msgstr "Enkel voor WP 2.7+"
1156
+
1157
+ #~ msgid "Footer Insert:"
1158
+ #~ msgstr "Inserts voor Footer:"
1159
+
1160
+ #~ msgid ""
1161
+ #~ "You can place XHTML and JavaScript here to have it inserted automatically "
1162
+ #~ "into your theme. If you have a script, such as one from Google "
1163
+ #~ "Analytics, this could be useful."
1164
+ #~ msgstr ""
1165
+ #~ "Je kan hier XHTML en Javascript plaatsen dat automatisch in de footer van "
1166
+ #~ "je thema wordt ingevoerd. Dit kan van pas komen als je een script hebt "
1167
+ #~ "zoals dat van Google Analytics."
1168
+
1169
+ #~ msgid ""
1170
+ #~ "Check this if you want the theme to auto-generate your site's copyright "
1171
+ #~ "and title in the footer."
1172
+ #~ msgstr ""
1173
+ #~ "Aanvinken wanneer je wil dat het thema automatisch een copyright voor je "
1174
+ #~ "site in de footer invoert."
1175
+
1176
+ #~ msgid ""
1177
+ #~ "Want to show your love of WordPress? Check this and a link will be added "
1178
+ #~ "to your footer back to WordPress.org."
1179
+ #~ msgstr ""
1180
+ #~ "Wil je laten zien hoezeer je WordPress waardeert? Vink dit aan om "
1181
+ #~ "automatisch een link naar WordPress.org aan de footer toe te voegen."
1182
+
1183
+ #~ msgid ""
1184
+ #~ "Check this to have a link back to Theme Hybrid automatically appended to "
1185
+ #~ "your footer. This is totally optional. Really."
1186
+ #~ msgstr ""
1187
+ #~ "Aanvinken om automatisch een link naar Theme Hybrid aan je footer toe te "
1188
+ #~ "voegen. Dit volkomen vrijwillig, echt waar!"
1189
+
1190
+ #~ msgid ""
1191
+ #~ "For testing purposes, this will append a database query counter and page "
1192
+ #~ "load timer to your footer."
1193
+ #~ msgstr ""
1194
+ #~ "Voor test-doeleinden wordt hiermee een database-query teller en de "
1195
+ #~ "laadtijd van de pagina aan je footer toegevoegd."
1196
+
1197
+ #~ msgid "Add a title that will be seen by search engines."
1198
+ #~ msgstr "Voeg een titel toe die door zoekmachines gezien wordt."
1199
+
1200
+ #~ msgid "Add a description that will be seen by search engines."
1201
+ #~ msgstr "Voeg een beschrijving toe die door zoekmachines gezien wordt."
1202
+
1203
+ #~ msgid "Keywords:"
1204
+ #~ msgstr "Trefwoorden:"
1205
+
1206
+ #~ msgid "Add keywords that will be seen by search engines."
1207
+ #~ msgstr "Voeg trefwoorden toe die door zoekmachines gezien worden."
1208
+
1209
+ #~ msgid "Series:"
1210
+ #~ msgstr "Series:"
1211
+
1212
+ #~ msgid "Post the title of your series of articles here."
1213
+ #~ msgstr "Post hier de titel van je artikelseries."
1214
+
1215
+ #~ msgid "Thumbnail:"
1216
+ #~ msgstr "Thumbnail:"
1217
+
1218
+ #~ msgid "Add an image URL here."
1219
+ #~ msgstr "Voeg hier de URL van een afbeelding toe."
1220
+
1221
+ #~ msgid "Page Navigation:"
1222
+ #~ msgstr "Pagina Navigatie:"
1223
+
1224
+ #~ msgid "Hybrid Theme Settings"
1225
+ #~ msgstr "Hybrid Theme Settings"
1226
+
1227
+ #~ msgid "Settings saved."
1228
+ #~ msgstr "Settings opgeslagen."
1229
+
1230
+ #~ msgid "Browse:"
1231
+ #~ msgstr "Blader:"
1232
+
1233
+ #~ msgid "Home"
1234
+ #~ msgstr "Home"
1235
+
1236
+ #~ msgid "Search results for &quot;%1$s&quot"
1237
+ #~ msgstr "Zoekresultaten voor &quot;%1$s&quot"
1238
+
1239
+ #~ msgid "m"
1240
+ #~ msgstr "m"
1241
+
1242
+ #~ msgid "F"
1243
+ #~ msgstr "F"
1244
+
1245
+ #~ msgid "j"
1246
+ #~ msgstr "j"
1247
+
1248
+ #~ msgid "404 Not Found"
1249
+ #~ msgstr "404 Niet Gevonden"
1250
+
1251
+ #~ msgid "Log in to reply."
1252
+ #~ msgstr "Log in op te reageren."
1253
+
1254
+ #~ msgid "This function has been removed or replaced by another function."
1255
+ #~ msgstr "Deze functie is verwijderd of vervangen door een andere functie."
1256
+
1257
+ #~ msgid ""
1258
+ #~ "You can use these <acronym title=\"Extensible Hypertext Markup Language"
1259
+ #~ "\">XHTML</acronym> tags&#58;"
1260
+ #~ msgstr ""
1261
+ #~ "Je kan deze <acronym title=\"Extensible Hypertext Markup Language"
1262
+ #~ "\">XHTML</acronym> tags&#58; gebruiken."
1263
+
1264
+ #~ msgid "Search this site..."
1265
+ #~ msgstr "Doorzoek deze site"
1266
+
1267
+ #~ msgid "Copyright"
1268
+ #~ msgstr "Copyright"
1269
+
1270
+ #~ msgid "Powered by"
1271
+ #~ msgstr "Aangedreven door "
1272
+
1273
+ #~ msgid ""
1274
+ #~ "Powered by WordPress, state-of-the-art semantic personal publishing "
1275
+ #~ "platform"
1276
+ #~ msgstr ""
1277
+ #~ "Aangedreven door WordPress, het state-of-the-art semantische platform "
1278
+ #~ "voor iedereen."
1279
+
1280
+ #~ msgid "WordPress"
1281
+ #~ msgstr "WordPress"
1282
+
1283
+ #~ msgid "and"
1284
+ #~ msgstr "en"
1285
+
1286
+ #~ msgid "Hybrid Theme Framework"
1287
+ #~ msgstr "Hybrid Theme Framework"
1288
+
1289
+ #~ msgid "Articles in this series"
1290
+ #~ msgstr "Artikelen in deze serie"
1291
+
1292
+ #~ msgid ""
1293
+ #~ "You have encountered an error. This is usually because you've changed "
1294
+ #~ "something in the core Hybrid theme files. Try undoing your last edit to "
1295
+ #~ "correct this issue. If this doesn't resolve it, head over to the support "
1296
+ #~ "forums for help."
1297
+ #~ msgstr ""
1298
+ #~ "Er is een fout opgetreden. Dit gebeurt gewoonlijk nadat je iets hebt "
1299
+ #~ "gewijzigd in de kernbestanden van het Hybrid-thema. Probeer je laatste "
1300
+ #~ "wijzigingen ongedaan te maken om dit op te lossen. Als dat niet lukt, "
1301
+ #~ "kan je je tot de support forums richten voor hulp."
1302
+
1303
+ #~ msgid "This page loaded in %1$s seconds with %2$s database queries."
1304
+ #~ msgstr "Deze pagina laadde in %1$s seconden met %2$s database queries."
1305
+
1306
+ #~ msgid ": Page %1$s"
1307
+ #~ msgstr ":Pagina %1$s"
1308
+
1309
+ #~ msgid "Search results for &quot;%1$s.&quot;"
1310
+ #~ msgstr "Zoekresultaten voor &quot;%1$s.&quot;"
1311
+
1312
+ #~ msgid "Archive for %1$s"
1313
+ #~ msgstr "Archief voor %1$s"
1314
+
1315
+ #~ msgid "Archive for week %1$s of %2$s"
1316
+ #~ msgstr "Archief voor week %1$s van %2$s"
1317
+
1318
+ #~ msgid "Comment on &quot;%1$s&quot;"
1319
+ #~ msgstr "Reactie op &quot;%1$s&quot;"
1320
+
1321
+ #~ msgid "Primary Home"
1322
+ #~ msgstr "Primair Home"
1323
+
1324
+ #~ msgid "Primary Author"
1325
+ #~ msgstr "Primaire Auteur"
1326
+
1327
+ #~ msgid "Primary Category"
1328
+ #~ msgstr "Primaire Rubriek"
1329
+
1330
+ #~ msgid "Primary Date"
1331
+ #~ msgstr "Primaire Datum"
1332
+
1333
+ #~ msgid "Primary Page"
1334
+ #~ msgstr "Primaire Pagina"
1335
+
1336
+ #~ msgid "Primary Search"
1337
+ #~ msgstr "Primaire Zoekresultaten"
1338
+
1339
+ #~ msgid "Primary Tag"
1340
+ #~ msgstr "Primaire Tag"
1341
+
1342
+ #~ msgid "Primary 404"
1343
+ #~ msgstr "Primaire 404"
1344
+
1345
+ #~ msgid "Secondary Home"
1346
+ #~ msgstr "Secundaire Home"
1347
+
1348
+ #~ msgid "Secondary Author"
1349
+ #~ msgstr "Secundaire Auteur"
1350
+
1351
+ #~ msgid "Secondary Category"
1352
+ #~ msgstr "Secundaire Rubriek"
1353
+
1354
+ #~ msgid "Secondary Date"
1355
+ #~ msgstr "Secundaire Datum "
1356
+
1357
+ #~ msgid "Secondary Page"
1358
+ #~ msgstr "Secundaire Pagina"
1359
+
1360
+ #~ msgid "Secondary Search"
1361
+ #~ msgstr "Secundaire Zoekresultaten"
1362
+
1363
+ #~ msgid "Secondary Single"
1364
+ #~ msgstr "Secundaire EnkelvoudigBericht"
1365
+
1366
+ #~ msgid "Secondary Tag"
1367
+ #~ msgstr "Secundaire Tag"
1368
+
1369
+ #~ msgid "Secondary 404"
1370
+ #~ msgstr "Secundaire 404"
1371
+
1372
+ #~ msgid "Subsidiary Default"
1373
+ #~ msgstr "Bijkomende Standaard"
1374
+
1375
+ #~ msgid "RSS 2.0"
1376
+ #~ msgstr "RSS 2.0"
1377
+
1378
+ #~ msgid "RSS .92"
1379
+ #~ msgstr "RSS .92"
1380
+
1381
+ #~ msgid "Atom 0.3"
1382
+ #~ msgstr "Atom 0.3"
1383
+
1384
+ #~ msgid "Subsidiary Home"
1385
+ #~ msgstr "Subsidiair Home"
1386
+
1387
+ #~ msgid "Previous Page"
1388
+ #~ msgstr "Vorige pagina"
1389
+
1390
+ #~ msgid "Next Page"
1391
+ #~ msgstr "Volgende pagina"
1392
+
1393
+ #~ msgid "Related Posts"
1394
+ #~ msgstr "Gerelateerde berichten"
1395
+
1396
+ #~ msgid "Logout"
1397
+ #~ msgstr "Afmelden"
1398
+
1399
+ #~ msgid "Select Year"
1400
+ #~ msgstr "Selecteer jaar"
1401
+
1402
+ #~ msgid "Select Week"
1403
+ #~ msgstr "Selecteer week"
1404
+
1405
+ #~ msgid "Select Day"
1406
+ #~ msgstr "Selecteer dag"
1407
+
1408
+ #~ msgid "Select Post"
1409
+ #~ msgstr "Selecteer bericht"
1410
+
1411
+ #~ msgid "Type:"
1412
+ #~ msgstr "Type:"
1413
+
1414
+ #~ msgid "Format:"
1415
+ #~ msgstr "Format:"
1416
+
1417
+ #~ msgid "Before:"
1418
+ #~ msgstr "Voor:"
1419
+
1420
+ #~ msgid "After:"
1421
+ #~ msgstr "Na:"
1422
+
1423
+ #~ msgid "Show post count?"
1424
+ #~ msgstr "Toon aantal berichten?"
1425
+
1426
+ #~ msgid ""
1427
+ #~ "An advanced widget that gives you total control over the output of your "
1428
+ #~ "archives."
1429
+ #~ msgstr ""
1430
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1431
+ #~ "van je archieven."
1432
+
1433
+ #~ msgid "Bookmarks"
1434
+ #~ msgstr "Favorieten"
1435
+
1436
+ #~ msgid "Categories:"
1437
+ #~ msgstr "Rubrieken:"
1438
+
1439
+ #~ msgid "Exclude Categories:"
1440
+ #~ msgstr "Uit te sluiten rubrieken:"
1441
+
1442
+ #~ msgid "Category:"
1443
+ #~ msgstr "Rubriek:"
1444
+
1445
+ #~ msgid "Category Order:"
1446
+ #~ msgstr "Rubriek volgorde:"
1447
+
1448
+ #~ msgid "Order Categories By:"
1449
+ #~ msgstr "Sorteer rubrieken op:"
1450
+
1451
+ #~ msgid "Include Bookmarks:"
1452
+ #~ msgstr "Inclusief favorieten:"
1453
+
1454
+ #~ msgid "Exclude Bookmarks:"
1455
+ #~ msgstr "Exclusief favorieten:"
1456
+
1457
+ #~ msgid "Bookmarks Order:"
1458
+ #~ msgstr "Favorieten volgorde:"
1459
+
1460
+ #~ msgid "Order Bookmarks By:"
1461
+ #~ msgstr "Sorteer favorieten op:"
1462
+
1463
+ #~ msgid "Between (Bookmark/Description):"
1464
+ #~ msgstr "Tussen (Favoriet/beschrijving)"
1465
+
1466
+ #~ msgid "Categorize?"
1467
+ #~ msgstr "Rubriceer?"
1468
+
1469
+ #~ msgid "Show description?"
1470
+ #~ msgstr "Beschrijving tonen?"
1471
+
1472
+ #~ msgid "Hide invisible bookmarks?"
1473
+ #~ msgstr "Onzichtbare favorieten verbergen?"
1474
+
1475
+ #~ msgid "Show private categories?"
1476
+ #~ msgstr "Private rubrieken tonen?"
1477
+
1478
+ #~ msgid "Show rating?"
1479
+ #~ msgstr "Waardering tonen?"
1480
+
1481
+ #~ msgid "Show images?"
1482
+ #~ msgstr "Afbeeldingen tonen?"
1483
+
1484
+ #~ msgid ""
1485
+ #~ "An advanced widget that gives you total control over the output of your "
1486
+ #~ "bookmarks (links)."
1487
+ #~ msgstr ""
1488
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1489
+ #~ "van je favorieten (links)."
1490
+
1491
+ #~ msgid "RSS"
1492
+ #~ msgstr "RSS"
1493
+
1494
+ #~ msgid "Depth:"
1495
+ #~ msgstr "Diepte:"
1496
+
1497
+ #~ msgid "Number:"
1498
+ #~ msgstr "Aantal:"
1499
+
1500
+ #~ msgid "Child Of:"
1501
+ #~ msgstr "'Child' van :"
1502
+
1503
+ #~ msgid "Hierarchical?"
1504
+ #~ msgstr "Hierarchisch?"
1505
+
1506
+ #~ msgid "Show RSS feed?"
1507
+ #~ msgstr "Toon RSS feed?"
1508
+
1509
+ #~ msgid "Use description for title?"
1510
+ #~ msgstr "Omschrijving gebruiken voor de titel?"
1511
+
1512
+ #~ msgid "Show last updated?"
1513
+ #~ msgstr "Toon laatste aanpassing?"
1514
+
1515
+ #~ msgid "Show count?"
1516
+ #~ msgstr "Toon aantal?"
1517
+
1518
+ #~ msgid "Hide empty?"
1519
+ #~ msgstr "Lege verbergen?"
1520
+
1521
+ #~ msgid ""
1522
+ #~ "An advanced widget that gives you total control over the output of your "
1523
+ #~ "category links."
1524
+ #~ msgstr ""
1525
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1526
+ #~ "van je rubrieken."
1527
+
1528
+ #~ msgid "Categories"
1529
+ #~ msgstr "Rubrieken"
1530
+
1531
+ #~ msgid "Sort Order:"
1532
+ #~ msgstr "Sorteervolgorde"
1533
+
1534
+ #~ msgid "Meta Key:"
1535
+ #~ msgstr "Meta Key:"
1536
+
1537
+ #~ msgid "Meta Value:"
1538
+ #~ msgstr "Meta Value:"
1539
+
1540
+ #~ msgid "Show home?"
1541
+ #~ msgstr "Toon home?"
1542
+
1543
+ #~ msgid "Show date?"
1544
+ #~ msgstr "Toon datum?"
1545
+
1546
+ #~ msgid "Search Text:"
1547
+ #~ msgstr "Zoek tekst:"
1548
+
1549
+ #~ msgid "Use theme's search form?"
1550
+ #~ msgstr "Zoekformulier van thema gebruiken?"
1551
+
1552
+ #~ msgid ""
1553
+ #~ "An advanced widget that gives you total control over the output of your "
1554
+ #~ "search form."
1555
+ #~ msgstr ""
1556
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1557
+ #~ "van je zoekformulier."
1558
+
1559
+ #~ msgid "Largest:"
1560
+ #~ msgstr "Grootste:"
1561
+
1562
+ #~ msgid "Smallest:"
1563
+ #~ msgstr "Kleinste:"
1564
+
1565
+ #~ msgid "Unit:"
1566
+ #~ msgstr "Eenheid:"
1567
+
1568
+ #~ msgid ""
1569
+ #~ "An advanced widget that gives you total control over the output of your "
1570
+ #~ "tags."
1571
+ #~ msgstr ""
1572
+ #~ "Een geavanceerde widget die je de totale controle geeft over de output "
1573
+ #~ "van je tags."
members.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Members
4
  * Plugin URI: http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin
5
  * Description: A user, role, and content management plugin for controlling permissions and access. A plugin for making WordPress a more powerful <acronym title="Content Management System">CMS</acronym>.
6
- * Version: 0.2.1
7
  * Author: Justin Tadlock
8
  * Author URI: http://justintadlock.com
9
  *
@@ -20,7 +20,7 @@
20
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21
  *
22
  * @package Members
23
- * @version 0.2.1
24
  * @author Justin Tadlock <justin@justintadlock.com>
25
  * @copyright Copyright (c) 2009 - 2012, Justin Tadlock
26
  * @link http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin
@@ -77,7 +77,7 @@ class Members_Load {
77
  function constants() {
78
 
79
  /* Set the version number of the plugin. */
80
- define( 'MEMBERS_VERSION', '0.2.0' );
81
 
82
  /* Set the database version number of the plugin. */
83
  define( 'MEMBERS_DB_VERSION', 2 );
3
  * Plugin Name: Members
4
  * Plugin URI: http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin
5
  * Description: A user, role, and content management plugin for controlling permissions and access. A plugin for making WordPress a more powerful <acronym title="Content Management System">CMS</acronym>.
6
+ * Version: 0.2.2
7
  * Author: Justin Tadlock
8
  * Author URI: http://justintadlock.com
9
  *
20
  * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21
  *
22
  * @package Members
23
+ * @version 0.2.2
24
  * @author Justin Tadlock <justin@justintadlock.com>
25
  * @copyright Copyright (c) 2009 - 2012, Justin Tadlock
26
  * @link http://justintadlock.com/archives/2009/09/17/members-wordpress-plugin
77
  function constants() {
78
 
79
  /* Set the version number of the plugin. */
80
+ define( 'MEMBERS_VERSION', '0.2.2' );
81
 
82
  /* Set the database version number of the plugin. */
83
  define( 'MEMBERS_DB_VERSION', 2 );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://themehybrid.com/donate
4
  Tags: admin, role, roles, member, members, profile, shortcode, user, users, widget, widgets
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
- Stable tag: 0.2.1
8
 
9
  A user, role, and content management plugin that makes WordPress a more powerful CMS.
10
 
@@ -70,6 +70,10 @@ Well, that's why you really need to read the documentation for the plugin before
70
 
71
  == Changelog ==
72
 
 
 
 
 
73
  **Version 0.2.1**
74
 
75
  * Fixes the " Creating default object from empty value" error.
4
  Tags: admin, role, roles, member, members, profile, shortcode, user, users, widget, widgets
5
  Requires at least: 3.4
6
  Tested up to: 3.5
7
+ Stable tag: 0.2.2
8
 
9
  A user, role, and content management plugin that makes WordPress a more powerful CMS.
10
 
70
 
71
  == Changelog ==
72
 
73
+ **Version 0.2.2**
74
+
75
+ * No longer displays non-editable roles on the edit roles screen.
76
+
77
  **Version 0.2.1**
78
 
79
  * Fixes the " Creating default object from empty value" error.