Groups - Version 1.2.2

Version Description

  • Revised styles
  • WordPress 3.4 compatibility
  • Dropping support for WordPress < 3.3
  • Help uncluttered.
Download this release

Release Info

Developer itthinx
Plugin Icon 128x128 Groups
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

css/groups_admin.css CHANGED
@@ -31,6 +31,8 @@
31
  .manage a.add {
32
  text-decoration: none;
33
  cursor: pointer;
 
 
34
  }
35
  .manage a.add .icon {
36
  vertical-align: middle;
@@ -43,7 +45,9 @@
43
  div.field {
44
  padding-bottom: 0.62em;
45
  }
46
- div.field input[type="submit"] {
 
 
47
  margin-right: 1em;
48
  }
49
  label.group-id-filter,
@@ -63,13 +67,14 @@ input[name="clear_filters"] {
63
  float:right;
64
  }
65
 
66
- div.group.new label.description-field,
67
- div.group.edit label.description-field,
68
- div.capability.new label.description-field,
69
- div.capability.edit label.description-field {
70
- vertical-align: top;
71
  }
72
 
 
73
  .groups-overview .page-options,
74
  .capabilities-overview .page-options {
75
  float: left;
31
  .manage a.add {
32
  text-decoration: none;
33
  cursor: pointer;
34
+ padding-top: 4px;
35
+ padding-bottom: 6px;
36
  }
37
  .manage a.add .icon {
38
  vertical-align: middle;
45
  div.field {
46
  padding-bottom: 0.62em;
47
  }
48
+ div.field input[type="submit"],
49
+ div.group.remove input[type="submit"],
50
+ div.capability.remove input[type="submit"] {
51
  margin-right: 1em;
52
  }
53
  label.group-id-filter,
67
  float:right;
68
  }
69
 
70
+ div.group.new label,
71
+ div.group.edit label,
72
+ div.capability.new label,
73
+ div.capability.edit label {
74
+ display: block;
75
  }
76
 
77
+
78
  .groups-overview .page-options,
79
  .capabilities-overview .page-options {
80
  float: left;
groups.php CHANGED
@@ -21,13 +21,13 @@
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
- * Version: 1.2.1
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
- define( 'GROUPS_CORE_VERSION', '1.2.1' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
21
  * Plugin Name: Groups
22
  * Plugin URI: http://www.itthinx.com/plugins/groups
23
  * Description: Groups provides group-based user membership management, group-based capabilities and content access control.
24
+ * Version: 1.2.2
25
  * Author: itthinx
26
  * Author URI: http://www.itthinx.com
27
  * Donate-Link: http://www.itthinx.com
28
  * License: GPLv3
29
  */
30
+ define( 'GROUPS_CORE_VERSION', '1.2.2' );
31
  define( 'GROUPS_FILE', __FILE__ );
32
  if ( !defined( 'GROUPS_CORE_DIR' ) ) {
33
  define( 'GROUPS_CORE_DIR', WP_PLUGIN_DIR . '/groups' );
lib/admin/groups-admin-capabilities-add.php CHANGED
@@ -63,7 +63,7 @@ function groups_admin_capabilities_add() {
63
 
64
  '<div class="field">' .
65
  wp_nonce_field( 'capabilities-add', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
66
- '<input type="submit" value="' . __( 'Add', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
67
  '<input type="hidden" value="add" name="action"/>' .
68
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
69
  '</div>' .
63
 
64
  '<div class="field">' .
65
  wp_nonce_field( 'capabilities-add', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
66
+ '<input class="button" type="submit" value="' . __( 'Add', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
67
  '<input type="hidden" value="add" name="action"/>' .
68
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
69
  '</div>' .
lib/admin/groups-admin-capabilities-edit.php CHANGED
@@ -70,7 +70,7 @@ function groups_admin_capabilities_edit( $capability_id ) {
70
 
71
  '<div class="field">' .
72
  wp_nonce_field( 'capabilities-edit', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
73
- '<input type="submit" value="' . __( 'Save', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
74
  '<input type="hidden" value="edit" name="action"/>' .
75
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
76
  '</div>' .
70
 
71
  '<div class="field">' .
72
  wp_nonce_field( 'capabilities-edit', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
73
+ '<input class="button" type="submit" value="' . __( 'Save', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
74
  '<input type="hidden" value="edit" name="action"/>' .
75
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
76
  '</div>' .
lib/admin/groups-admin-capabilities-remove.php CHANGED
@@ -57,7 +57,7 @@ function groups_admin_capabilities_remove( $capability_id ) {
57
  '<li>' . sprintf( __( 'Capability : %s', GROUPS_PLUGIN_DOMAIN ), wp_filter_nohtml_kses( $capability->capability ) ) . '</li>' .
58
  '</ul> ' .
59
  wp_nonce_field( 'capabilities-remove', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
60
- '<input type="submit" value="' . __( 'Remove', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
61
  '<input type="hidden" value="remove" name="action"/>' .
62
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
63
  '</div>' .
57
  '<li>' . sprintf( __( 'Capability : %s', GROUPS_PLUGIN_DOMAIN ), wp_filter_nohtml_kses( $capability->capability ) ) . '</li>' .
58
  '</ul> ' .
59
  wp_nonce_field( 'capabilities-remove', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
60
+ '<input class="button" type="submit" value="' . __( 'Remove', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
61
  '<input type="hidden" value="remove" name="action"/>' .
62
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
63
  '</div>' .
lib/admin/groups-admin-capabilities.php CHANGED
@@ -169,7 +169,7 @@ function groups_admin_capabilities() {
169
 
170
  $output .=
171
  '<div class="manage">' .
172
- "<a title='" . __( 'Click to add a new capability', GROUPS_PLUGIN_DOMAIN ) . "' class='add' href='" . esc_url( $current_url ) . "&action=add'><img class='icon' alt='" . __( 'Add', GROUPS_PLUGIN_DOMAIN) . "' src='". GROUPS_PLUGIN_URL ."images/add.png'/><span class='label'>" . __( 'New Capability', GROUPS_PLUGIN_DOMAIN) . "</span></a>" .
173
  '</div>';
174
 
175
  $row_count = isset( $_POST['row_count'] ) ? intval( $_POST['row_count'] ) : 0;
@@ -276,8 +276,8 @@ function groups_admin_capabilities() {
276
  '</p>' .
277
  '<p>' .
278
  wp_nonce_field( 'admin', GROUPS_ADMIN_CAPABILITIES_FILTER_NONCE, true, false ) .
279
- '<input type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
280
- '<input type="submit" name="clear_filters" value="' . __( 'Clear', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
281
  '<input type="hidden" value="submitted" name="submitted"/>' .
282
  '</p>' .
283
  '</form>' .
@@ -290,7 +290,7 @@ function groups_admin_capabilities() {
290
  <label for="row_count">' . __( 'Results per page', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
291
  '<input name="row_count" type="text" size="2" value="' . esc_attr( $row_count ) .'" />
292
  ' . wp_nonce_field( 'admin', GROUPS_ADMIN_CAPABILITIES_NONCE_1, true, false ) . '
293
- <input type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>
294
  </div>
295
  </form>
296
  </div>
169
 
170
  $output .=
171
  '<div class="manage">' .
172
+ "<a title='" . __( 'Click to add a new capability', GROUPS_PLUGIN_DOMAIN ) . "' class='add button' href='" . esc_url( $current_url ) . "&action=add'><img class='icon' alt='" . __( 'Add', GROUPS_PLUGIN_DOMAIN) . "' src='". GROUPS_PLUGIN_URL ."images/add.png'/><span class='label'>" . __( 'New Capability', GROUPS_PLUGIN_DOMAIN) . "</span></a>" .
173
  '</div>';
174
 
175
  $row_count = isset( $_POST['row_count'] ) ? intval( $_POST['row_count'] ) : 0;
276
  '</p>' .
277
  '<p>' .
278
  wp_nonce_field( 'admin', GROUPS_ADMIN_CAPABILITIES_FILTER_NONCE, true, false ) .
279
+ '<input class="button" type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
280
+ '<input class="button" type="submit" name="clear_filters" value="' . __( 'Clear', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
281
  '<input type="hidden" value="submitted" name="submitted"/>' .
282
  '</p>' .
283
  '</form>' .
290
  <label for="row_count">' . __( 'Results per page', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
291
  '<input name="row_count" type="text" size="2" value="' . esc_attr( $row_count ) .'" />
292
  ' . wp_nonce_field( 'admin', GROUPS_ADMIN_CAPABILITIES_NONCE_1, true, false ) . '
293
+ <input class="button" type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>
294
  </div>
295
  </form>
296
  </div>
lib/admin/groups-admin-groups-add.php CHANGED
@@ -76,7 +76,7 @@ function groups_admin_groups_add() {
76
 
77
  '<div class="field">' .
78
  wp_nonce_field( 'groups-add', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
79
- '<input type="submit" value="' . __( 'Add', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
80
  '<input type="hidden" value="add" name="action"/>' .
81
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
82
  '</div>' .
76
 
77
  '<div class="field">' .
78
  wp_nonce_field( 'groups-add', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
79
+ '<input class="button" type="submit" value="' . __( 'Add', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
80
  '<input type="hidden" value="add" name="action"/>' .
81
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
82
  '</div>' .
lib/admin/groups-admin-groups-edit.php CHANGED
@@ -86,7 +86,7 @@ function groups_admin_groups_edit( $group_id ) {
86
 
87
  '<div class="field">' .
88
  wp_nonce_field( 'groups-edit', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
89
- '<input type="submit" value="' . __( 'Save', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
90
  '<input type="hidden" value="edit" name="action"/>' .
91
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
92
  '</div>' .
86
 
87
  '<div class="field">' .
88
  wp_nonce_field( 'groups-edit', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
89
+ '<input class="button" type="submit" value="' . __( 'Save', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
90
  '<input type="hidden" value="edit" name="action"/>' .
91
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
92
  '</div>' .
lib/admin/groups-admin-groups-remove.php CHANGED
@@ -57,7 +57,7 @@ function groups_admin_groups_remove( $group_id ) {
57
  '<li>' . sprintf( __( 'Group Name : %s', GROUPS_PLUGIN_DOMAIN ), wp_filter_nohtml_kses( $group->name ) ) . '</li>' .
58
  '</ul> ' .
59
  wp_nonce_field( 'groups-remove', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
60
- '<input type="submit" value="' . __( 'Remove', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
61
  '<input type="hidden" value="remove" name="action"/>' .
62
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
63
  '</div>' .
57
  '<li>' . sprintf( __( 'Group Name : %s', GROUPS_PLUGIN_DOMAIN ), wp_filter_nohtml_kses( $group->name ) ) . '</li>' .
58
  '</ul> ' .
59
  wp_nonce_field( 'groups-remove', GROUPS_ADMIN_GROUPS_NONCE, true, false ) .
60
+ '<input class="button" type="submit" value="' . __( 'Remove', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
61
  '<input type="hidden" value="remove" name="action"/>' .
62
  '<a class="cancel" href="' . $current_url . '">' . __( 'Cancel', GROUPS_PLUGIN_DOMAIN ) . '</a>' .
63
  '</div>' .
lib/admin/groups-admin-groups.php CHANGED
@@ -171,7 +171,7 @@ function groups_admin_groups() {
171
 
172
  $output .=
173
  '<div class="manage">' .
174
- "<a title='" . __( 'Click to add a new group', GROUPS_PLUGIN_DOMAIN ) . "' class='add' href='" . esc_url( $current_url ) . "&action=add'><img class='icon' alt='" . __( 'Add', GROUPS_PLUGIN_DOMAIN) . "' src='". GROUPS_PLUGIN_URL ."images/add.png'/><span class='label'>" . __( 'New Group', GROUPS_PLUGIN_DOMAIN) . "</span></a>" .
175
  '</div>';
176
 
177
  $row_count = isset( $_POST['row_count'] ) ? intval( $_POST['row_count'] ) : 0;
@@ -279,8 +279,8 @@ function groups_admin_groups() {
279
  '</p>' .
280
  '<p>' .
281
  wp_nonce_field( 'admin', GROUPS_ADMIN_GROUPS_FILTER_NONCE, true, false ) .
282
- '<input type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
283
- '<input type="submit" name="clear_filters" value="' . __( 'Clear', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
284
  '<input type="hidden" value="submitted" name="submitted"/>' .
285
  '</p>' .
286
  '</form>' .
@@ -293,7 +293,7 @@ function groups_admin_groups() {
293
  <label for="row_count">' . __('Results per page', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
294
  '<input name="row_count" type="text" size="2" value="' . esc_attr( $row_count ) .'" />
295
  ' . wp_nonce_field( 'admin', GROUPS_ADMIN_GROUPS_NONCE_1, true, false ) . '
296
- <input type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>
297
  </div>
298
  </form>
299
  </div>
171
 
172
  $output .=
173
  '<div class="manage">' .
174
+ "<a title='" . __( 'Click to add a new group', GROUPS_PLUGIN_DOMAIN ) . "' class='add button' href='" . esc_url( $current_url ) . "&action=add'><img class='icon' alt='" . __( 'Add', GROUPS_PLUGIN_DOMAIN) . "' src='". GROUPS_PLUGIN_URL ."images/add.png'/><span class='label'>" . __( 'New Group', GROUPS_PLUGIN_DOMAIN) . "</span></a>" .
175
  '</div>';
176
 
177
  $row_count = isset( $_POST['row_count'] ) ? intval( $_POST['row_count'] ) : 0;
279
  '</p>' .
280
  '<p>' .
281
  wp_nonce_field( 'admin', GROUPS_ADMIN_GROUPS_FILTER_NONCE, true, false ) .
282
+ '<input class="button" type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
283
+ '<input class="button" type="submit" name="clear_filters" value="' . __( 'Clear', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
284
  '<input type="hidden" value="submitted" name="submitted"/>' .
285
  '</p>' .
286
  '</form>' .
293
  <label for="row_count">' . __('Results per page', GROUPS_PLUGIN_DOMAIN ) . '</label>' .
294
  '<input name="row_count" type="text" size="2" value="' . esc_attr( $row_count ) .'" />
295
  ' . wp_nonce_field( 'admin', GROUPS_ADMIN_GROUPS_NONCE_1, true, false ) . '
296
+ <input class="button" type="submit" value="' . __( 'Apply', GROUPS_PLUGIN_DOMAIN ) . '"/>
297
  </div>
298
  </form>
299
  </div>
lib/admin/groups-admin-options.php CHANGED
@@ -225,7 +225,7 @@ function groups_admin_options() {
225
  echo
226
  '<p>' .
227
  wp_nonce_field( 'admin', GROUPS_ADMIN_OPTIONS_NONCE, true, false ) .
228
- '<input type="submit" name="submit" value="' . __( 'Save', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
229
  '</p>' .
230
  '</div>' .
231
  '</form>';
225
  echo
226
  '<p>' .
227
  wp_nonce_field( 'admin', GROUPS_ADMIN_OPTIONS_NONCE, true, false ) .
228
+ '<input class="button" type="submit" name="submit" value="' . __( 'Save', GROUPS_PLUGIN_DOMAIN ) . '"/>' .
229
  '</p>' .
230
  '</div>' .
231
  '</form>';
lib/core/class-groups-help.php CHANGED
@@ -89,13 +89,6 @@ class Groups_Help {
89
  case 'groups-admin-capabilities' :
90
  break;
91
  }
92
- $help .= '<p>';
93
- $help .= __( 'If you require <em>consulting services</em>, <em>support</em> or <em>customization</em>, you may <a href="http://www.itthinx.com/" target="_blank">contact me here</a>.', GROUPS_PLUGIN_DOMAIN );
94
- $help .= '</p>';
95
- $help .= '<p>';
96
- $help .= __( 'If you find this plugin useful, please consider making a donation:', GROUPS_PLUGIN_DOMAIN );
97
- $help .= self::donate( false, true );
98
- $help .= '</p>';
99
 
100
  $screen->add_help_tab(
101
  array(
89
  case 'groups-admin-capabilities' :
90
  break;
91
  }
 
 
 
 
 
 
 
92
 
93
  $screen->add_help_tab(
94
  array(
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: itthinx
3
  Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, permission, permissions
5
- Requires at least: 3.0
6
- Tested up to: 3.3.2
7
- Stable tag: 1.2.1
8
  License: GPLv3
9
 
10
  Groups provides group-based user membership management, group-based capabilities and content access control.
@@ -17,6 +17,7 @@ It integrates standard WordPress capabilities and application-specific capabilit
17
  ### Extensions ###
18
 
19
  - [Groups File Access](http://www.itthinx.com/plugins/groups-file-access/) Groups File Access is an extension that allows to provide file download links for authorized users. Access to files is restricted to users by their group membership.
 
20
 
21
  ### Features ###
22
 
@@ -286,6 +287,12 @@ See also [Groups](http://www.itthinx.com/plugins/groups/)
286
 
287
  == Changelog ==
288
 
 
 
 
 
 
 
289
  = 1.2.1 =
290
  * Reduced files loaded on non-admin pages.
291
  * Added Lithuanian translation.
@@ -344,6 +351,9 @@ Some installations wouldn't work correctly, showing no capabilities and making i
344
 
345
  == Upgrade Notice ==
346
 
 
 
 
347
  = 1.2.1 =
348
  * Added Lithuanian translation.
349
  * Slight performance improvement.
2
  Contributors: itthinx
3
  Donate link: http://www.itthinx.com/plugins/groups
4
  Tags: access, access control, capability, capabilities, content, download, downloads, file, file access, files, group, groups, member, members, membership, permission, permissions
5
+ Requires at least: 3.3
6
+ Tested up to: 3.4
7
+ Stable tag: 1.2.2
8
  License: GPLv3
9
 
10
  Groups provides group-based user membership management, group-based capabilities and content access control.
17
  ### Extensions ###
18
 
19
  - [Groups File Access](http://www.itthinx.com/plugins/groups-file-access/) Groups File Access is an extension that allows to provide file download links for authorized users. Access to files is restricted to users by their group membership.
20
+ - [Groups WooCommerce](http://www.woothemes.com/extension/groups-woocommerce/) Groups for WooCommerce is a WordPress plugin that allows you to sell memberships
21
 
22
  ### Features ###
23
 
287
 
288
  == Changelog ==
289
 
290
+ = 1.2.2 =
291
+ * Revised styles
292
+ * WordPress 3.4 compatibility
293
+ * Dropping support for WordPress < 3.3
294
+ * Help uncluttered.
295
+
296
  = 1.2.1 =
297
  * Reduced files loaded on non-admin pages.
298
  * Added Lithuanian translation.
351
 
352
  == Upgrade Notice ==
353
 
354
+ = 1.2.2 =
355
+ * Revised styles on admin UI.
356
+
357
  = 1.2.1 =
358
  * Added Lithuanian translation.
359
  * Slight performance improvement.