Advanced Access Manager - Version 3.1.5

Version Description

  • Improved UI
  • Fixed the bug reported by WP Error Fix
Download this release

Release Info

Developer vasyl_m
Plugin Icon 128x128 Advanced Access Manager
Version 3.1.5
Comparing to
See all releases

Code changes from version 3.1.4 to 3.1.5

Application/Backend/view/index.phtml CHANGED
@@ -288,20 +288,6 @@
288
  </div>
289
  <?php do_action('aam-sidebar-ui-action', 'bottom'); ?>
290
 
291
- <!-- Social Links: begin -->
292
- <div class="postbox">
293
- <div class="inside">
294
- <div class="aam-social">
295
- <a target="_blank" href="http://wpaam.com"><i class="icon-home"></i></a>
296
- <a target="_blank" href="http://twitter.com/vasyltech"><i class="icon-twitter"></i></a>
297
- <a target="_blank" href="https://github.com/VasylTech/advanced-access-manager"><i class="icon-github"></i></a>
298
- <a target="_blank" href="https://www.facebook.com/vasyltech"><i class="icon-facebook"></i></a>
299
- <a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/advanced-access-manager"><i class="icon-star"></i></a>
300
- </div>
301
- </div>
302
- </div>
303
- <!-- Social Links: end -->
304
-
305
  <!-- Error Fix Promotion: begin -->
306
  <div class="postbox hidden" id="errorfix-promotion">
307
  <h3 class="hndle">
@@ -310,7 +296,7 @@
310
  </h3>
311
  <div class="inside">
312
  <p class="aam-info">Keep your website secure &amp; error free with our patent pending <b>WP Error Fix</b>.</p>
313
- <a href="#" class="btn btn-success btn-lg btn-block" id="errorfix-install-btn">Install WP Error Fix</a>
314
  </div>
315
  </div>
316
  <!-- Error Fix Promotion: end -->
288
  </div>
289
  <?php do_action('aam-sidebar-ui-action', 'bottom'); ?>
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  <!-- Error Fix Promotion: begin -->
292
  <div class="postbox hidden" id="errorfix-promotion">
293
  <h3 class="hndle">
296
  </h3>
297
  <div class="inside">
298
  <p class="aam-info">Keep your website secure &amp; error free with our patent pending <b>WP Error Fix</b>.</p>
299
+ <a href="#" class="btn btn-warning btn-lg btn-block" id="errorfix-install-btn">Install WP Error Fix</a>
300
  </div>
301
  </div>
302
  <!-- Error Fix Promotion: end -->
Application/Backend/view/object/menu.phtml CHANGED
@@ -11,8 +11,8 @@
11
 
12
  <div class="row">
13
  <div class="col-xs-12">
14
- <p class="aam-info">
15
- <?php echo AAM_Backend_Helper::preparePhrase('If checked, then menu is filtered. [Please notice]! This does not restrict direct access to the page but rather filters it from the menu. In order to completely restrict access to the desired page, un-check the capability that is assigned to the menu [(the capability is shown right next to the menu title)].', 'strong', 'small'); ?>
16
  </p>
17
  </div>
18
  </div>
11
 
12
  <div class="row">
13
  <div class="col-xs-12">
14
+ <p class="aam-info" id="admin-menu-help" data-readmore="<?php echo AAM_Backend_Helper::preparePhrase('[Please notice]! This does not restrict direct access to the page but rather filters it from the menu. In order to completely restrict access to the desired page, un-check the capability that is assigned to the menu [(the capability is shown right next to the menu title)].', 'strong', 'small'); ?>">
15
+ <?php echo __('If checked, then menu is filtered.', AAM_KEY); ?>
16
  </p>
17
  </div>
18
  </div>
Application/Frontend/Manager.php CHANGED
@@ -61,7 +61,7 @@ class AAM_Frontend_Manager {
61
  global $post;
62
 
63
  $user = AAM::getUser();
64
- if (is_single() || is_page()) {
65
  $object = $user->getObject('post', $post->ID);
66
  if ($object->has('frontend.read')) {
67
  AAM_Core_API::reject();
61
  global $post;
62
 
63
  $user = AAM::getUser();
64
+ if ((is_single() || is_page()) && is_object($post)) {
65
  $object = $user->getObject('post', $post->ID);
66
  if ($object->has('frontend.read')) {
67
  AAM_Core_API::reject();
aam.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: Manage User and Role Access to WordPress Backend and Frontend.
6
- Version: 3.1.4
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: http://www.vasyltech.com
9
 
3
  /**
4
  Plugin Name: Advanced Access Manager
5
  Description: Manage User and Role Access to WordPress Backend and Frontend.
6
+ Version: 3.1.5
7
  Author: Vasyl Martyniuk <vasyl@vasyltech.com>
8
  Author URI: http://www.vasyltech.com
9
 
media/css/aam.css CHANGED
@@ -689,7 +689,7 @@ input[type="checkbox"]:focus, input[type="radio"]:focus {
689
  background-color: #F5F5F5;
690
  padding: 10px;
691
  position: relative;
692
- font-size: 1.2em;
693
  margin-bottom: 20px;
694
  }
695
 
689
  background-color: #F5F5F5;
690
  padding: 10px;
691
  position: relative;
692
+ font-size: 1em;
693
  margin-bottom: 20px;
694
  }
695
 
media/css/datatables.min.css CHANGED
@@ -81,16 +81,16 @@ table.dataTable thead .sorting:after,table.dataTable thead .sorting_asc:after,ta
81
  }
82
  table.dataTable thead .sorting:after {
83
  font-family: "fontello";
84
- content: "\e81d";
85
  opacity: 0.2;
86
  }
87
  table.dataTable thead .sorting_asc:after {
88
  font-family: "fontello";
89
- content: "\e81b";
90
  }
91
  table.dataTable thead .sorting_desc:after {
92
  font-family: "fontello";
93
- content: "\e81c";
94
  }
95
  table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after {
96
  color: #eee;
81
  }
82
  table.dataTable thead .sorting:after {
83
  font-family: "fontello";
84
+ content: "\e812";
85
  opacity: 0.2;
86
  }
87
  table.dataTable thead .sorting_asc:after {
88
  font-family: "fontello";
89
+ content: "\e80e";
90
  }
91
  table.dataTable thead .sorting_desc:after {
92
  font-family: "fontello";
93
+ content: "\e811";
94
  }
95
  table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after {
96
  color: #eee;
media/js/aam-ui.js CHANGED
@@ -166,11 +166,10 @@
166
  $('#delete-role-btn').data('role', data[0]);
167
  var message = $('#delete-role-modal .aam-confirm-message').data('message');
168
  $('#delete-role-modal .aam-confirm-message').html(
169
- message.replace(
170
- '%s',
171
- '<strong>' + event.data.role[2] + '</strong>'
172
- )
173
- );
174
 
175
  $('#delete-role-modal').modal('show');
176
  }).attr({
@@ -714,6 +713,8 @@
714
  }
715
  });
716
  });
 
 
717
  }
718
 
719
  aam.addHook('init', initialize);
166
  $('#delete-role-btn').data('role', data[0]);
167
  var message = $('#delete-role-modal .aam-confirm-message').data('message');
168
  $('#delete-role-modal .aam-confirm-message').html(
169
+ message.replace(
170
+ '%s', '<strong>' + event.data.role[2] + '</strong>'
171
+ )
172
+ );
 
173
 
174
  $('#delete-role-modal').modal('show');
175
  }).attr({
713
  }
714
  });
715
  });
716
+
717
+ aam.readMore($('#admin-menu-help'));
718
  }
719
 
720
  aam.addHook('init', initialize);
media/js/aam.js CHANGED
@@ -225,6 +225,22 @@
225
 
226
  return result;
227
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
 
229
  /**
230
  * Initialize UI
225
 
226
  return result;
227
  };
228
+
229
+ /**
230
+ *
231
+ * @param {type} el
232
+ * @returns {undefined}
233
+ */
234
+ AAM.prototype.readMore = function(el) {
235
+ $(el).append($('<a/>').attr({
236
+ 'href' : '#',
237
+ 'class' : 'aam-readmore'
238
+ }).text('Read More').bind('click', function(event){
239
+ event.preventDefault();
240
+ $(this).hide();
241
+ $(el).append('<span>' + $(el).data('readmore') + '</span>');
242
+ }));
243
+ };
244
 
245
  /**
246
  * Initialize UI
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vasyltech
3
  Tags: access, access manager, role, user, capability, admin, page, post, widget
4
  Requires at least: 3.8
5
  Tested up to: 4.4
6
- Stable tag: 3.1.4
7
 
8
  One of the best tools in WordPress repository to manage access to your posts,
9
  pages, categories and backend area for users, roles and visitors.
@@ -45,6 +45,10 @@ out more about the Advanced Access Manager.
45
 
46
  == Changelog ==
47
 
 
 
 
 
48
  = 3.1.4 =
49
  * Fixed bug with menu/metabox checkbox
50
  * Added extra hook to clear the user cache after profile update
3
  Tags: access, access manager, role, user, capability, admin, page, post, widget
4
  Requires at least: 3.8
5
  Tested up to: 4.4
6
+ Stable tag: 3.1.5
7
 
8
  One of the best tools in WordPress repository to manage access to your posts,
9
  pages, categories and backend area for users, roles and visitors.
45
 
46
  == Changelog ==
47
 
48
+ = 3.1.5 =
49
+ * Improved UI
50
+ * Fixed the bug reported by WP Error Fix
51
+
52
  = 3.1.4 =
53
  * Fixed bug with menu/metabox checkbox
54
  * Added extra hook to clear the user cache after profile update