Version Description
- Fixed bug with user inheritance
- Fixed bug with user restore default settings
- Fixed bug with installed extension detection
- Improved core extension handling
- Improved subject inheritance mechanism
- Removed deprecated ConfigPress Tutorial
- Optimized CSS
- Regenerated translation pot file
Download this release
Release Info
Developer | vasyl_m |
Plugin | Advanced Access Manager |
Version | 2.6 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.6
- aam.php +28 -3
- application/control/object/post.php +15 -2
- application/control/object/term.php +7 -0
- application/control/subject.php +30 -0
- application/control/subject/role.php +7 -0
- application/control/subject/user.php +24 -14
- application/control/subject/visitor.php +7 -0
- application/core/extension.php +19 -0
- application/core/repository.php +84 -4
- application/view/extension.php +12 -37
- application/view/help.php +51 -0
- application/view/manager.php +15 -4
- application/view/menu.php +33 -22
- application/view/metabox.php +20 -6
- application/view/tmpl/capability.phtml +2 -2
- application/view/tmpl/configpress.phtml +0 -1
- application/view/tmpl/control_area.phtml +21 -9
- application/view/tmpl/extension.phtml +9 -11
- application/view/tmpl/help_developers.phtml +29 -0
- application/view/tmpl/help_extensions.phtml +16 -0
- application/view/tmpl/help_faq.phtml +38 -0
- application/view/tmpl/help_overview.phtml +48 -0
- application/view/tmpl/metabox.phtml +2 -2
- config.php +2 -2
- docs/configpress.pdf +0 -0
- extension/AAM_My_Feature/images/message-active.png +0 -0
- extension/AAM_My_Feature/images/message.png +0 -0
- extension/AAM_My_Feature/images/talk-active.png +0 -0
- extension/AAM_My_Feature/images/talk.png +0 -0
- extension/AAM_My_Feature/my_feature.css +0 -44
- extension/AAM_My_Feature/ui.phtml +4 -9
- lang/aam.mo +0 -0
- lang/aam.pot +131 -143
- media/css/aam.css +211 -518
- media/css/configpress.css +1 -9
- media/css/images/capability/add-active.png +0 -0
- media/css/images/capability/add.png +0 -0
- media/css/images/capability/copy-active.png +0 -0
- media/css/images/capability/copy.png +0 -0
- media/css/images/capability/filter-active.png +0 -0
- media/css/images/capability/filter.png +0 -0
- media/css/images/capability/restore-active.png +0 -0
- media/css/images/capability/restore.png +0 -0
- media/css/images/capability/select-active.png +0 -0
- media/css/images/capability/select.png +0 -0
- media/css/images/cmanager/add-active.png +0 -0
- media/css/images/cmanager/add.png +0 -0
- media/css/images/cmanager/block-user-active.png +0 -0
- media/css/images/cmanager/block-user.png +0 -0
- media/css/images/cmanager/delete-active.png +0 -0
- media/css/images/cmanager/delete.png +0 -0
- media/css/images/cmanager/duplicate-active.png +0 -0
- media/css/images/cmanager/duplicate.png +0 -0
- media/css/images/cmanager/edit-active.png +0 -0
- media/css/images/cmanager/edit-user-active.png +0 -0
- media/css/images/cmanager/edit-user.png +0 -0
- media/css/images/cmanager/edit.png +0 -0
- media/css/images/cmanager/filter-active.png +0 -0
- media/css/images/cmanager/filter.png +0 -0
- media/css/images/cmanager/refresh-active.png +0 -0
- media/css/images/cmanager/refresh.png +0 -0
- media/css/images/cmanager/restore-active.png +0 -0
- media/css/images/cmanager/restore.png +0 -0
- media/css/images/cmanager/select-active.png +0 -0
- media/css/images/cmanager/select.png +0 -0
- media/css/images/cmanager/settings-active.png +0 -0
- media/css/images/cmanager/settings.png +0 -0
- media/css/images/common/add.png +0 -0
- media/css/images/common/medium-iconset.png +0 -0
- media/css/images/{capability/ajax-loader.gif → common/medium-loader.gif} +0 -0
- media/css/images/common/small-iconset.png +0 -0
- media/css/images/configpress/pdf-active.png +0 -0
- media/css/images/configpress/pdf.png +0 -0
- media/css/images/event/add-active.png +0 -0
- media/css/images/event/add.png +0 -0
- media/css/images/metabox/add-active.png +0 -0
- media/css/images/metabox/add.png +0 -0
- media/css/images/metabox/refresh-active.png +0 -0
- media/css/images/metabox/refresh.png +0 -0
- media/css/images/post/delete-active.png +0 -0
- media/css/images/post/delete.png +0 -0
- media/css/images/post/edit-active.png +0 -0
- media/css/images/post/edit.png +0 -0
- media/css/images/post/filter-active.png +0 -0
- media/css/images/post/filter.png +0 -0
- media/css/images/post/refresh-active.png +0 -0
- media/css/images/post/refresh.png +0 -0
- media/css/images/post/restore-active.png +0 -0
- media/css/images/post/restore.png +0 -0
- media/css/images/post/settings-active.png +0 -0
- media/css/images/post/settings.png +0 -0
- media/css/images/post/trash-active.png +0 -0
- media/css/images/post/trash.png +0 -0
- media/js/aam.js +346 -324
- media/js/configpress.js +2 -3
- readme.txt +23 -3
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: 2.
|
7 |
Author: Vasyl Martyniuk <support@wpaam.com>
|
8 |
Author URI: http://www.wpaam.com
|
9 |
|
@@ -67,6 +67,9 @@ class aam {
|
|
67 |
//print required JS & CSS
|
68 |
add_action('admin_print_scripts', array($this, 'printScripts'));
|
69 |
add_action('admin_print_styles', array($this, 'printStyles'));
|
|
|
|
|
|
|
70 |
|
71 |
//manager Admin Menu
|
72 |
if (aam_Core_API::isNetworkPanel()) {
|
@@ -291,6 +294,24 @@ class aam {
|
|
291 |
|
292 |
return $pages;
|
293 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
|
295 |
/**
|
296 |
* Filter Navigation menu
|
@@ -708,6 +729,7 @@ class aam {
|
|
708 |
wp_enqueue_style('aam-ui-style', AAM_MEDIA_URL . 'css/jquery-ui.css');
|
709 |
wp_enqueue_style('aam-style', AAM_MEDIA_URL . 'css/aam.css');
|
710 |
wp_enqueue_style('aam-datatables', AAM_MEDIA_URL . 'css/jquery.dt.css');
|
|
|
711 |
wp_enqueue_style(
|
712 |
'aam-treeview', AAM_MEDIA_URL . 'css/jquery.treeview.css'
|
713 |
);
|
@@ -752,6 +774,7 @@ class aam {
|
|
752 |
wp_enqueue_script('jquery-ui-sortable');
|
753 |
wp_enqueue_script('jquery-ui-menu');
|
754 |
wp_enqueue_script('jquery-effects-highlight');
|
|
|
755 |
|
756 |
$localization = array(
|
757 |
'nonce' => wp_create_nonce('aam_ajax'),
|
@@ -764,6 +787,9 @@ class aam {
|
|
764 |
'blog' => get_current_blog_id(),
|
765 |
'user' => 0
|
766 |
),
|
|
|
|
|
|
|
767 |
'labels' => aam_View_Manager::uiLabels()
|
768 |
);
|
769 |
wp_localize_script('aam-admin', 'aamLocal', $localization);
|
@@ -1158,8 +1184,7 @@ class aam {
|
|
1158 |
* @access protected
|
1159 |
*/
|
1160 |
protected function loadExtensions() {
|
1161 |
-
|
1162 |
-
$model->load();
|
1163 |
}
|
1164 |
|
1165 |
}
|
3 |
/**
|
4 |
Plugin Name: Advanced Access Manager
|
5 |
Description: Manage User and Role Access to WordPress Backend and Frontend.
|
6 |
+
Version: 2.6
|
7 |
Author: Vasyl Martyniuk <support@wpaam.com>
|
8 |
Author URI: http://www.wpaam.com
|
9 |
|
67 |
//print required JS & CSS
|
68 |
add_action('admin_print_scripts', array($this, 'printScripts'));
|
69 |
add_action('admin_print_styles', array($this, 'printStyles'));
|
70 |
+
|
71 |
+
//add help menu
|
72 |
+
add_filter('contextual_help', array($this, 'contextualHelp'), 10, 3);
|
73 |
|
74 |
//manager Admin Menu
|
75 |
if (aam_Core_API::isNetworkPanel()) {
|
294 |
|
295 |
return $pages;
|
296 |
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* Contextual Help Menu
|
300 |
+
*
|
301 |
+
* @param type $contextual_help
|
302 |
+
* @param type $screen_id
|
303 |
+
* @param type $screen
|
304 |
+
*
|
305 |
+
* @return
|
306 |
+
*/
|
307 |
+
public function contextualHelp($contextual_help, $screen_id, $screen){
|
308 |
+
if ($this->isAAMScreen()){
|
309 |
+
$help = new aam_View_Help();
|
310 |
+
$help->content($screen);
|
311 |
+
}
|
312 |
+
|
313 |
+
return $contextual_help;
|
314 |
+
}
|
315 |
|
316 |
/**
|
317 |
* Filter Navigation menu
|
729 |
wp_enqueue_style('aam-ui-style', AAM_MEDIA_URL . 'css/jquery-ui.css');
|
730 |
wp_enqueue_style('aam-style', AAM_MEDIA_URL . 'css/aam.css');
|
731 |
wp_enqueue_style('aam-datatables', AAM_MEDIA_URL . 'css/jquery.dt.css');
|
732 |
+
wp_enqueue_style('wp-pointer');
|
733 |
wp_enqueue_style(
|
734 |
'aam-treeview', AAM_MEDIA_URL . 'css/jquery.treeview.css'
|
735 |
);
|
774 |
wp_enqueue_script('jquery-ui-sortable');
|
775 |
wp_enqueue_script('jquery-ui-menu');
|
776 |
wp_enqueue_script('jquery-effects-highlight');
|
777 |
+
wp_enqueue_script('wp-pointer');
|
778 |
|
779 |
$localization = array(
|
780 |
'nonce' => wp_create_nonce('aam_ajax'),
|
787 |
'blog' => get_current_blog_id(),
|
788 |
'user' => 0
|
789 |
),
|
790 |
+
'contextualMenu' => get_user_meta(
|
791 |
+
get_current_user_id(), 'aam_contextual_menu', true
|
792 |
+
),
|
793 |
'labels' => aam_View_Manager::uiLabels()
|
794 |
);
|
795 |
wp_localize_script('aam-admin', 'aamLocal', $localization);
|
1184 |
* @access protected
|
1185 |
*/
|
1186 |
protected function loadExtensions() {
|
1187 |
+
aam_Core_Repository::getInstance($this)->load();
|
|
|
1188 |
}
|
1189 |
|
1190 |
}
|
application/control/object/post.php
CHANGED
@@ -122,6 +122,12 @@ class aam_Control_Object_Post extends aam_Control_Object {
|
|
122 |
//try to get any parent access
|
123 |
$option = $this->inheritAccess($term_id);
|
124 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
$this->setOption(
|
127 |
apply_filters('aam_post_access_option', $option, $this)
|
@@ -145,9 +151,16 @@ class aam_Control_Object_Post extends aam_Control_Object {
|
|
145 |
}
|
146 |
|
147 |
/**
|
148 |
-
*
|
149 |
-
*
|
|
|
|
|
|
|
|
|
|
|
150 |
* @return array
|
|
|
|
|
151 |
*/
|
152 |
private function inheritAccess($term_id) {
|
153 |
$term = new aam_Control_Object_Term($this->getSubject(), $term_id);
|
122 |
//try to get any parent access
|
123 |
$option = $this->inheritAccess($term_id);
|
124 |
}
|
125 |
+
//even if parent category is empty, try to read the parent subject
|
126 |
+
if (empty($option)){
|
127 |
+
$option = $this->getSubject()->readParentSubject(
|
128 |
+
self::UID, $this->getPost()->ID
|
129 |
+
);
|
130 |
+
}
|
131 |
|
132 |
$this->setOption(
|
133 |
apply_filters('aam_post_access_option', $option, $this)
|
151 |
}
|
152 |
|
153 |
/**
|
154 |
+
* Inherit access from parent term
|
155 |
+
*
|
156 |
+
* Go throught the hierarchical branch of terms and retrieve access from the
|
157 |
+
* first parent term that has access defined.
|
158 |
+
*
|
159 |
+
* @param int $term_id
|
160 |
+
*
|
161 |
* @return array
|
162 |
+
*
|
163 |
+
* @access private
|
164 |
*/
|
165 |
private function inheritAccess($term_id) {
|
166 |
$term = new aam_Control_Object_Term($this->getSubject(), $term_id);
|
application/control/object/term.php
CHANGED
@@ -104,6 +104,13 @@ class aam_Control_Object_Term extends aam_Control_Object {
|
|
104 |
//try to get any parent restriction
|
105 |
$access = $this->inheritAccess($this->getTerm()->parent);
|
106 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
$this->setOption(
|
109 |
apply_filters('aam_term_access_option', $access, $this)
|
104 |
//try to get any parent restriction
|
105 |
$access = $this->inheritAccess($this->getTerm()->parent);
|
106 |
}
|
107 |
+
|
108 |
+
//even if parent category is empty, try to read the parent subject
|
109 |
+
if (empty($access)){
|
110 |
+
$access = $this->getSubject()->readParentSubject(
|
111 |
+
self::UID, $this->getTerm()->term_id
|
112 |
+
);
|
113 |
+
}
|
114 |
|
115 |
$this->setOption(
|
116 |
apply_filters('aam_term_access_option', $access, $this)
|
application/control/subject.php
CHANGED
@@ -433,4 +433,34 @@ abstract class aam_Control_Subject {
|
|
433 |
*/
|
434 |
abstract protected function retrieveSubject();
|
435 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
}
|
433 |
*/
|
434 |
abstract protected function retrieveSubject();
|
435 |
|
436 |
+
/**
|
437 |
+
* Read object from parent subject
|
438 |
+
*
|
439 |
+
* @param string $object
|
440 |
+
* @param mixed $object_id
|
441 |
+
*
|
442 |
+
* @return mixed
|
443 |
+
*
|
444 |
+
* @access public
|
445 |
+
*/
|
446 |
+
public function readParentSubject($object, $object_id){
|
447 |
+
if ($subject = $this->getParentSubject()){
|
448 |
+
$option = $subject->getObject($object, $object_id)->getOption();
|
449 |
+
} else {
|
450 |
+
$option = null;
|
451 |
+
}
|
452 |
+
|
453 |
+
return $option;
|
454 |
+
}
|
455 |
+
|
456 |
+
/**
|
457 |
+
* Retrive parent subject
|
458 |
+
*
|
459 |
+
* If there is no parent subject, return null
|
460 |
+
*
|
461 |
+
* @return aam_Control_Subject|null
|
462 |
+
*
|
463 |
+
* @access public
|
464 |
+
*/
|
465 |
+
abstract public function getParentSubject();
|
466 |
}
|
application/control/subject/role.php
CHANGED
@@ -278,5 +278,12 @@ class aam_Control_Subject_Role extends aam_Control_Subject {
|
|
278 |
public function clearCache(){
|
279 |
return true;
|
280 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
|
282 |
}
|
278 |
public function clearCache(){
|
279 |
return true;
|
280 |
}
|
281 |
+
|
282 |
+
/**
|
283 |
+
* @inheritdoc
|
284 |
+
*/
|
285 |
+
public function getParentSubject(){
|
286 |
+
return null;
|
287 |
+
}
|
288 |
|
289 |
}
|
application/control/subject/user.php
CHANGED
@@ -247,19 +247,30 @@ class aam_Control_Subject_User extends aam_Control_Subject {
|
|
247 |
$this->getOptionName($object, $object_id), $this->getId()
|
248 |
);
|
249 |
if (empty($option) && $inherit) {
|
250 |
-
|
251 |
-
$roles = $this->getSubject()->roles;
|
252 |
-
//first user role is counted only. AAM does not support multi-roles
|
253 |
-
$subject_role = array_shift($roles);
|
254 |
-
//in case of multisite & current user does not belong to the site
|
255 |
-
if ($subject_role){
|
256 |
-
$role = new aam_Control_Subject_Role($subject_role);
|
257 |
-
$option = $role->getObject($object, $object_id)->getOption();
|
258 |
-
}
|
259 |
}
|
260 |
|
261 |
return $option;
|
262 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
263 |
|
264 |
/**
|
265 |
*
|
@@ -298,15 +309,14 @@ class aam_Control_Subject_User extends aam_Control_Subject {
|
|
298 |
{
|
299 |
global $wpdb;
|
300 |
|
301 |
-
$mask = 'aam_%_' . $this->getId();
|
302 |
-
|
303 |
//clear all settings in usermeta table
|
304 |
$prefix = $wpdb->get_blog_prefix();
|
305 |
-
$wpdb->
|
306 |
-
|
307 |
-
);
|
308 |
|
309 |
//clear all settings in postmeta table
|
|
|
310 |
$wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE '{$mask}'");
|
311 |
|
312 |
$this->clearCache(); //delete cache
|
247 |
$this->getOptionName($object, $object_id), $this->getId()
|
248 |
);
|
249 |
if (empty($option) && $inherit) {
|
250 |
+
$option = $this->readParentSubject($object, $object_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
}
|
252 |
|
253 |
return $option;
|
254 |
}
|
255 |
+
|
256 |
+
/**
|
257 |
+
* @inheritdoc
|
258 |
+
*/
|
259 |
+
public function getParentSubject() {
|
260 |
+
//try to get this option from the User's Role
|
261 |
+
$roles = $this->getSubject()->roles;
|
262 |
+
//first user role is counted only. AAM does not support multi-roles
|
263 |
+
$subject_role = array_shift($roles);
|
264 |
+
|
265 |
+
if ($subject_role){
|
266 |
+
//in case of multisite & current user does not belong to the site
|
267 |
+
$role = new aam_Control_Subject_Role($subject_role);
|
268 |
+
} else {
|
269 |
+
$role = null;
|
270 |
+
}
|
271 |
+
|
272 |
+
return $role;
|
273 |
+
}
|
274 |
|
275 |
/**
|
276 |
*
|
309 |
{
|
310 |
global $wpdb;
|
311 |
|
|
|
|
|
312 |
//clear all settings in usermeta table
|
313 |
$prefix = $wpdb->get_blog_prefix();
|
314 |
+
$query = "DELETE FROM {$wpdb->usermeta} WHERE ";
|
315 |
+
$query .= "meta_key LIKE '{$prefix}aam_%' AND user_id = " . $this->getId();
|
316 |
+
$wpdb->query($query);
|
317 |
|
318 |
//clear all settings in postmeta table
|
319 |
+
$mask = 'aam_%_' . $this->getId();
|
320 |
$wpdb->query("DELETE FROM {$wpdb->postmeta} WHERE meta_key LIKE '{$mask}'");
|
321 |
|
322 |
$this->clearCache(); //delete cache
|
application/control/subject/visitor.php
CHANGED
@@ -190,5 +190,12 @@ class aam_Control_Subject_Visitor extends aam_Control_Subject
|
|
190 |
|
191 |
do_action('aam_clear_all_options', $this);
|
192 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
}
|
190 |
|
191 |
do_action('aam_clear_all_options', $this);
|
192 |
}
|
193 |
+
|
194 |
+
/**
|
195 |
+
* @inheritdoc
|
196 |
+
*/
|
197 |
+
public function getParentSubject(){
|
198 |
+
return null;
|
199 |
+
}
|
200 |
|
201 |
}
|
application/core/extension.php
CHANGED
@@ -16,6 +16,11 @@
|
|
16 |
*/
|
17 |
class AAM_Core_Extension {
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
/**
|
20 |
* Parent AAM object
|
21 |
*
|
@@ -37,6 +42,20 @@ class AAM_Core_Extension {
|
|
37 |
public function __construct(aam $parent) {
|
38 |
$this->setParent($parent);
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
/**
|
42 |
* Set Parent Object
|
16 |
*/
|
17 |
class AAM_Core_Extension {
|
18 |
|
19 |
+
/**
|
20 |
+
* Extension iterator
|
21 |
+
*/
|
22 |
+
const ITERATOR = 1;
|
23 |
+
|
24 |
/**
|
25 |
* Parent AAM object
|
26 |
*
|
42 |
public function __construct(aam $parent) {
|
43 |
$this->setParent($parent);
|
44 |
}
|
45 |
+
|
46 |
+
/**
|
47 |
+
* Get extension iterator
|
48 |
+
*
|
49 |
+
* Extension iterator is kind of extension's version with the only difference:
|
50 |
+
* the iterator is incremented only when activation hook has to be fired.
|
51 |
+
*
|
52 |
+
* @return int
|
53 |
+
*
|
54 |
+
* @access public
|
55 |
+
*/
|
56 |
+
public function getInterator(){
|
57 |
+
return self::ITERATOR;
|
58 |
+
}
|
59 |
|
60 |
/**
|
61 |
* Set Parent Object
|
application/core/repository.php
CHANGED
@@ -31,6 +31,25 @@ class aam_Core_Repository {
|
|
31 |
* Extensions installed successfully
|
32 |
*/
|
33 |
const STATUS_INSTALLED = 'installed';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
/**
|
36 |
* Basedir to Extentions repository
|
@@ -73,11 +92,34 @@ class aam_Core_Repository {
|
|
73 |
*
|
74 |
* @return void
|
75 |
*
|
76 |
-
* @access
|
77 |
*/
|
78 |
-
|
79 |
$this->setParent($parent);
|
80 |
$this->_basedir = AAM_BASE_DIR . 'extension';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
|
83 |
/**
|
@@ -100,6 +142,42 @@ class aam_Core_Repository {
|
|
100 |
}
|
101 |
}
|
102 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
/**
|
105 |
* Download extension from the external server
|
@@ -143,8 +221,9 @@ class aam_Core_Repository {
|
|
143 |
$repository[$extension] = (object) array(
|
144 |
'status' => self::STATUS_INSTALLED,
|
145 |
'license' => $license,
|
|
|
146 |
//ugly way but quick
|
147 |
-
'basedir' => $this->_basedir
|
148 |
);
|
149 |
aam_Core_API::updateBlogOption('aam_extensions', $repository, 1);
|
150 |
$response = true;
|
@@ -212,7 +291,7 @@ class aam_Core_Repository {
|
|
212 |
*/
|
213 |
protected function retrieve($license) {
|
214 |
global $wp_filesystem;
|
215 |
-
|
216 |
$url = WPAAM_REST_API . '?method=extension&license=' . $license;
|
217 |
$res = wp_remote_request($url, array('timeout' => 10));
|
218 |
$response = false;
|
@@ -270,6 +349,7 @@ class aam_Core_Repository {
|
|
270 |
if (file_exists($bootstrap) && !isset($this->_cache[$extension])) {
|
271 |
//bootstrap the extension
|
272 |
$this->_cache[$extension] = require_once($bootstrap);
|
|
|
273 |
//check if activation hook still present and trigger warning if yes
|
274 |
if (file_exists($this->_basedir . "/{$extension}/activation.php")){
|
275 |
aam_Core_Console::add(
|
31 |
* Extensions installed successfully
|
32 |
*/
|
33 |
const STATUS_INSTALLED = 'installed';
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Single instance of itself
|
37 |
+
*
|
38 |
+
* @var aam_Core_Repository
|
39 |
+
*
|
40 |
+
* @access private
|
41 |
+
* @static
|
42 |
+
*/
|
43 |
+
private static $_instance = null;
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Extension repository
|
47 |
+
*
|
48 |
+
* @var array
|
49 |
+
*
|
50 |
+
* @access private
|
51 |
+
*/
|
52 |
+
private $_repository = array();
|
53 |
|
54 |
/**
|
55 |
* Basedir to Extentions repository
|
92 |
*
|
93 |
* @return void
|
94 |
*
|
95 |
+
* @access protected
|
96 |
*/
|
97 |
+
protected function __construct(aam $parent = null) {
|
98 |
$this->setParent($parent);
|
99 |
$this->_basedir = AAM_BASE_DIR . 'extension';
|
100 |
+
//retrieve list of extensions from the database
|
101 |
+
$repository = aam_Core_API::getBlogOption('aam_extensions', array(), 1);
|
102 |
+
if (is_array($repository)){
|
103 |
+
$this->_repository = $repository;
|
104 |
+
}
|
105 |
+
}
|
106 |
+
|
107 |
+
/**
|
108 |
+
* Get single instance of itself
|
109 |
+
*
|
110 |
+
* @param aam $parent
|
111 |
+
*
|
112 |
+
* @return aam_Core_Repository
|
113 |
+
*
|
114 |
+
* @access public
|
115 |
+
* @static
|
116 |
+
*/
|
117 |
+
public static function getInstance(aam $parent = null){
|
118 |
+
if (is_null(self::$_instance)){
|
119 |
+
self::$_instance = new self($parent);
|
120 |
+
}
|
121 |
+
|
122 |
+
return self::$_instance;
|
123 |
}
|
124 |
|
125 |
/**
|
142 |
}
|
143 |
}
|
144 |
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Check if extensions exists
|
148 |
+
*
|
149 |
+
* @param string $extension
|
150 |
+
*
|
151 |
+
* @return boolean
|
152 |
+
*
|
153 |
+
* @access public
|
154 |
+
*/
|
155 |
+
public function hasExtension($extension){
|
156 |
+
$response = false;
|
157 |
+
|
158 |
+
if (isset($this->_repository[$extension])){
|
159 |
+
$info = $this->_repository[$extension];
|
160 |
+
if ($info->status == self::STATUS_INSTALLED
|
161 |
+
&& file_exists($info->basedir)){
|
162 |
+
$response = true;
|
163 |
+
}
|
164 |
+
}
|
165 |
+
|
166 |
+
return $response;
|
167 |
+
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* Get Extension info
|
171 |
+
*
|
172 |
+
* @param string $ext
|
173 |
+
*
|
174 |
+
* @return stdClass
|
175 |
+
*
|
176 |
+
* @access public
|
177 |
+
*/
|
178 |
+
public function getExtension($ext){
|
179 |
+
return ($this->hasExtension($ext) ? $this->_repository[$ext] : new stdClass);
|
180 |
+
}
|
181 |
|
182 |
/**
|
183 |
* Download extension from the external server
|
221 |
$repository[$extension] = (object) array(
|
222 |
'status' => self::STATUS_INSTALLED,
|
223 |
'license' => $license,
|
224 |
+
'iteration' => 0, //this counter is used for extension activation
|
225 |
//ugly way but quick
|
226 |
+
'basedir' => "{$this->_basedir}/" . str_replace(' ', '_', $extension)
|
227 |
);
|
228 |
aam_Core_API::updateBlogOption('aam_extensions', $repository, 1);
|
229 |
$response = true;
|
291 |
*/
|
292 |
protected function retrieve($license) {
|
293 |
global $wp_filesystem;
|
294 |
+
|
295 |
$url = WPAAM_REST_API . '?method=extension&license=' . $license;
|
296 |
$res = wp_remote_request($url, array('timeout' => 10));
|
297 |
$response = false;
|
349 |
if (file_exists($bootstrap) && !isset($this->_cache[$extension])) {
|
350 |
//bootstrap the extension
|
351 |
$this->_cache[$extension] = require_once($bootstrap);
|
352 |
+
//TODO - Implement Iterator here!!
|
353 |
//check if activation hook still present and trigger warning if yes
|
354 |
if (file_exists($this->_basedir . "/{$extension}/activation.php")){
|
355 |
aam_Core_Console::add(
|
application/view/extension.php
CHANGED
@@ -20,11 +20,11 @@ class aam_View_Extension extends aam_View_Abstract {
|
|
20 |
/**
|
21 |
* Extensions Repository
|
22 |
*
|
23 |
-
* @var
|
24 |
*
|
25 |
* @access private
|
26 |
*/
|
27 |
-
private $_repository
|
28 |
|
29 |
/**
|
30 |
* Constructor
|
@@ -37,12 +37,7 @@ class aam_View_Extension extends aam_View_Abstract {
|
|
37 |
*/
|
38 |
public function __construct() {
|
39 |
parent::__construct();
|
40 |
-
|
41 |
-
//get repository
|
42 |
-
$repository = aam_Core_API::getBlogOption('aam_extensions', array(), 1);
|
43 |
-
if (is_array($repository)){
|
44 |
-
$this->_repository = $repository;
|
45 |
-
}
|
46 |
}
|
47 |
|
48 |
/**
|
@@ -53,16 +48,15 @@ class aam_View_Extension extends aam_View_Abstract {
|
|
53 |
* @access public
|
54 |
*/
|
55 |
public function install(){
|
56 |
-
$repo = new aam_Core_Repository;
|
57 |
$license = aam_Core_Request::post('license');
|
58 |
$ext = aam_Core_Request::post('extension');
|
59 |
|
60 |
-
if ($license && $
|
61 |
$response = array('status' => 'success');
|
62 |
} else {
|
63 |
$response = array(
|
64 |
'status' => 'failure',
|
65 |
-
'reasons' => $
|
66 |
);
|
67 |
}
|
68 |
|
@@ -77,16 +71,15 @@ class aam_View_Extension extends aam_View_Abstract {
|
|
77 |
* @access public
|
78 |
*/
|
79 |
public function remove(){
|
80 |
-
$repo = new aam_Core_Repository;
|
81 |
$license = aam_Core_Request::post('license');
|
82 |
$ext = aam_Core_Request::post('extension');
|
83 |
|
84 |
-
if ($
|
85 |
$response = array('status' => 'success');
|
86 |
} else {
|
87 |
$response = array(
|
88 |
'status' => 'failure',
|
89 |
-
'reasons' => $
|
90 |
);
|
91 |
}
|
92 |
|
@@ -112,29 +105,11 @@ class aam_View_Extension extends aam_View_Abstract {
|
|
112 |
}
|
113 |
|
114 |
/**
|
115 |
-
*
|
116 |
-
*
|
117 |
-
* @param string $extension
|
118 |
-
*
|
119 |
-
* @return boolean
|
120 |
-
*
|
121 |
-
* @access public
|
122 |
-
*/
|
123 |
-
public function hasExtension($extension){
|
124 |
-
return (isset($this->_repository[$extension]) ? true : false);
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* Get Extension
|
129 |
-
*
|
130 |
-
* @param string $extension
|
131 |
-
*
|
132 |
-
* @return stdClass
|
133 |
-
*
|
134 |
-
* @access public
|
135 |
*/
|
136 |
-
public function
|
137 |
-
return
|
138 |
}
|
139 |
-
|
140 |
}
|
20 |
/**
|
21 |
* Extensions Repository
|
22 |
*
|
23 |
+
* @var aam_Core_Repository
|
24 |
*
|
25 |
* @access private
|
26 |
*/
|
27 |
+
private $_repository;
|
28 |
|
29 |
/**
|
30 |
* Constructor
|
37 |
*/
|
38 |
public function __construct() {
|
39 |
parent::__construct();
|
40 |
+
$this->_repository = aam_Core_Repository::getInstance();
|
|
|
|
|
|
|
|
|
|
|
41 |
}
|
42 |
|
43 |
/**
|
48 |
* @access public
|
49 |
*/
|
50 |
public function install(){
|
|
|
51 |
$license = aam_Core_Request::post('license');
|
52 |
$ext = aam_Core_Request::post('extension');
|
53 |
|
54 |
+
if ($license && $this->getRepository()->add($ext, $license)){
|
55 |
$response = array('status' => 'success');
|
56 |
} else {
|
57 |
$response = array(
|
58 |
'status' => 'failure',
|
59 |
+
'reasons' => $this->getRepository()->getErrors()
|
60 |
);
|
61 |
}
|
62 |
|
71 |
* @access public
|
72 |
*/
|
73 |
public function remove(){
|
|
|
74 |
$license = aam_Core_Request::post('license');
|
75 |
$ext = aam_Core_Request::post('extension');
|
76 |
|
77 |
+
if ($this->getRepository()->remove($ext, $license)){
|
78 |
$response = array('status' => 'success');
|
79 |
} else {
|
80 |
$response = array(
|
81 |
'status' => 'failure',
|
82 |
+
'reasons' => $this->getRepository()->getErrors()
|
83 |
);
|
84 |
}
|
85 |
|
105 |
}
|
106 |
|
107 |
/**
|
108 |
+
*
|
109 |
+
* @return aam_Core_Respository
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
*/
|
111 |
+
public function getRepository(){
|
112 |
+
return $this->_repository;
|
113 |
}
|
114 |
+
|
115 |
}
|
application/view/help.php
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* ======================================================================
|
5 |
+
* LICENSE: This file is subject to the terms and conditions defined in *
|
6 |
+
* file 'license.txt', which is part of this source code package. *
|
7 |
+
* ======================================================================
|
8 |
+
*/
|
9 |
+
|
10 |
+
/**
|
11 |
+
*
|
12 |
+
* @package AAM
|
13 |
+
* @author Vasyl Martyniuk <support@wpaam.com>
|
14 |
+
* @copyright Copyright C 2013 Vasyl Martyniuk
|
15 |
+
* @license GNU General Public License {@link http://www.gnu.org/licenses/}
|
16 |
+
*/
|
17 |
+
class aam_View_Help extends aam_View_Abstract {
|
18 |
+
|
19 |
+
/**
|
20 |
+
* Get View content
|
21 |
+
*
|
22 |
+
* @return string
|
23 |
+
*
|
24 |
+
* @access public
|
25 |
+
*/
|
26 |
+
public function content($screen) {
|
27 |
+
$basedir = dirname(__FILE__) . '/tmpl/';
|
28 |
+
$screen->add_help_tab(array(
|
29 |
+
'id' => 'faq',
|
30 |
+
'title' => 'FAQ',
|
31 |
+
'content' => $this->loadTemplate($basedir . 'help_faq.phtml')
|
32 |
+
));
|
33 |
+
//add overview tab
|
34 |
+
$screen->add_help_tab(array(
|
35 |
+
'id' => 'overview',
|
36 |
+
'title' => 'Overview',
|
37 |
+
'content' => $this->loadTemplate($basedir . 'help_overview.phtml')
|
38 |
+
));
|
39 |
+
$screen->add_help_tab(array(
|
40 |
+
'id' => 'extensions',
|
41 |
+
'title' => 'Extensions',
|
42 |
+
'content' => $this->loadTemplate($basedir . 'help_extensions.phtml')
|
43 |
+
));
|
44 |
+
$screen->add_help_tab(array(
|
45 |
+
'id' => 'developers',
|
46 |
+
'title' => 'Developers',
|
47 |
+
'content' => $this->loadTemplate($basedir . 'help_developers.phtml')
|
48 |
+
));
|
49 |
+
}
|
50 |
+
|
51 |
+
}
|
application/view/manager.php
CHANGED
@@ -45,7 +45,7 @@ class aam_View_Manager extends aam_View_Abstract {
|
|
45 |
* Default ajax response
|
46 |
*/
|
47 |
const DEFAULT_AJAX_RESPONSE = -1;
|
48 |
-
|
49 |
/**
|
50 |
* Constructor
|
51 |
*
|
@@ -194,8 +194,7 @@ class aam_View_Manager extends aam_View_Abstract {
|
|
194 |
*
|
195 |
* @access public
|
196 |
*/
|
197 |
-
public function processAjax()
|
198 |
-
{
|
199 |
$sub_method = aam_Core_Request::request('sub_action');
|
200 |
|
201 |
if (method_exists($this, $sub_method)) {
|
@@ -795,6 +794,17 @@ class aam_View_Manager extends aam_View_Abstract {
|
|
795 |
'status' => ($result === false ? 'failure' : 'success')
|
796 |
));
|
797 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
798 |
|
799 |
/**
|
800 |
* UI Javascript labels
|
@@ -855,7 +865,8 @@ class aam_View_Manager extends aam_View_Abstract {
|
|
855 |
'Trash Post' => __('Trash Post', 'aam'),
|
856 |
'Restore Default Access' => __('Restore Default Access', 'aam'),
|
857 |
'Duplicate' => __('Duplicate', 'aam'),
|
858 |
-
'Actions Locked' => __('Actions Locked', 'aam')
|
|
|
859 |
));
|
860 |
}
|
861 |
|
45 |
* Default ajax response
|
46 |
*/
|
47 |
const DEFAULT_AJAX_RESPONSE = -1;
|
48 |
+
|
49 |
/**
|
50 |
* Constructor
|
51 |
*
|
194 |
*
|
195 |
* @access public
|
196 |
*/
|
197 |
+
public function processAjax(){
|
|
|
198 |
$sub_method = aam_Core_Request::request('sub_action');
|
199 |
|
200 |
if (method_exists($this, $sub_method)) {
|
794 |
'status' => ($result === false ? 'failure' : 'success')
|
795 |
));
|
796 |
}
|
797 |
+
|
798 |
+
/**
|
799 |
+
* Discard Help Pointer
|
800 |
+
*
|
801 |
+
* @return string
|
802 |
+
*
|
803 |
+
* @access public
|
804 |
+
*/
|
805 |
+
public function discardHelp(){
|
806 |
+
return update_user_meta(get_current_user_id(), 'aam_contextual_menu', 1);
|
807 |
+
}
|
808 |
|
809 |
/**
|
810 |
* UI Javascript labels
|
865 |
'Trash Post' => __('Trash Post', 'aam'),
|
866 |
'Restore Default Access' => __('Restore Default Access', 'aam'),
|
867 |
'Duplicate' => __('Duplicate', 'aam'),
|
868 |
+
'Actions Locked' => __('Actions Locked', 'aam'),
|
869 |
+
'AAM Documentation' => __('<h3>AAM Documentation</h3><div class="inner">Find more information about Advanced Access Manager here.</div>', 'aam'),
|
870 |
));
|
871 |
}
|
872 |
|
application/view/menu.php
CHANGED
@@ -23,16 +23,16 @@ class aam_View_Menu extends aam_View_Abstract {
|
|
23 |
public function content() {
|
24 |
return $this->loadTemplate(dirname(__FILE__) . '/tmpl/menu.phtml');
|
25 |
}
|
26 |
-
|
27 |
/**
|
28 |
* @inheritdoc
|
29 |
*/
|
30 |
public function defaultOption($options) {
|
31 |
-
|
32 |
if (!isset($options[aam_Control_Object_Menu::UID])) {
|
33 |
$options[aam_Control_Object_Menu::UID] = array();
|
34 |
}
|
35 |
-
|
36 |
return $options;
|
37 |
}
|
38 |
|
@@ -44,9 +44,9 @@ class aam_View_Menu extends aam_View_Abstract {
|
|
44 |
*/
|
45 |
public function getMenu() {
|
46 |
global $menu;
|
47 |
-
|
48 |
$response = array();
|
49 |
-
|
50 |
//let's create menu list with submenus
|
51 |
foreach ($menu as $menu_item) {
|
52 |
if (!preg_match('/^separator/', $menu_item[2])) {
|
@@ -62,10 +62,10 @@ class aam_View_Menu extends aam_View_Abstract {
|
|
62 |
}
|
63 |
}
|
64 |
}
|
65 |
-
|
66 |
return $response;
|
67 |
}
|
68 |
-
|
69 |
/**
|
70 |
* Prepare filtered submenu
|
71 |
*
|
@@ -85,24 +85,35 @@ class aam_View_Menu extends aam_View_Abstract {
|
|
85 |
if ($this->getSubject()->hasCapability($submenu_item[1]) !== false) {
|
86 |
//prepare title
|
87 |
$submenu_title = $this->removeHTML($submenu_item[0]);
|
88 |
-
if (mb_strlen($submenu_title) > 18) {
|
89 |
-
$submenu_short = mb_substr($submenu_title, 0, 15) . '..';
|
90 |
-
} else {
|
91 |
-
$submenu_short = $submenu_title;
|
92 |
-
}
|
93 |
-
|
94 |
$filtered_submenu[] = array(
|
95 |
'name' => $submenu_title,
|
96 |
-
'short' => $
|
97 |
'id' => $submenu_item[2]
|
98 |
);
|
99 |
}
|
100 |
}
|
101 |
}
|
102 |
-
|
103 |
return $filtered_submenu;
|
104 |
}
|
105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
/**
|
107 |
* Check if the entire branch is restricted
|
108 |
*
|
@@ -112,17 +123,17 @@ class aam_View_Menu extends aam_View_Abstract {
|
|
112 |
*
|
113 |
* @access public
|
114 |
*/
|
115 |
-
public function hasRestrictedAll($menu){
|
116 |
$menuControl = $this->getSubject()->getObject(aam_Control_Object_Menu::UID);
|
117 |
$response = $menuControl->has($menu['id']);
|
118 |
-
|
119 |
-
foreach($menu['submenu'] as $submenu){
|
120 |
-
if ($menuControl->has($submenu['id']) === false){
|
121 |
$response = false;
|
122 |
break;
|
123 |
}
|
124 |
}
|
125 |
-
|
126 |
return $response;
|
127 |
}
|
128 |
|
@@ -136,4 +147,4 @@ class aam_View_Menu extends aam_View_Abstract {
|
|
136 |
return strip_tags($text);
|
137 |
}
|
138 |
|
139 |
-
}
|
23 |
public function content() {
|
24 |
return $this->loadTemplate(dirname(__FILE__) . '/tmpl/menu.phtml');
|
25 |
}
|
26 |
+
|
27 |
/**
|
28 |
* @inheritdoc
|
29 |
*/
|
30 |
public function defaultOption($options) {
|
31 |
+
//make sure that some parts are always in place
|
32 |
if (!isset($options[aam_Control_Object_Menu::UID])) {
|
33 |
$options[aam_Control_Object_Menu::UID] = array();
|
34 |
}
|
35 |
+
|
36 |
return $options;
|
37 |
}
|
38 |
|
44 |
*/
|
45 |
public function getMenu() {
|
46 |
global $menu;
|
47 |
+
|
48 |
$response = array();
|
49 |
+
|
50 |
//let's create menu list with submenus
|
51 |
foreach ($menu as $menu_item) {
|
52 |
if (!preg_match('/^separator/', $menu_item[2])) {
|
62 |
}
|
63 |
}
|
64 |
}
|
65 |
+
|
66 |
return $response;
|
67 |
}
|
68 |
+
|
69 |
/**
|
70 |
* Prepare filtered submenu
|
71 |
*
|
85 |
if ($this->getSubject()->hasCapability($submenu_item[1]) !== false) {
|
86 |
//prepare title
|
87 |
$submenu_title = $this->removeHTML($submenu_item[0]);
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
$filtered_submenu[] = array(
|
89 |
'name' => $submenu_title,
|
90 |
+
'short' => $this->prepareTitle($submenu_title),
|
91 |
'id' => $submenu_item[2]
|
92 |
);
|
93 |
}
|
94 |
}
|
95 |
}
|
96 |
+
|
97 |
return $filtered_submenu;
|
98 |
}
|
99 |
+
|
100 |
+
/**
|
101 |
+
*
|
102 |
+
* @param type $title
|
103 |
+
* @return string
|
104 |
+
*/
|
105 |
+
protected function prepareTitle($title) {
|
106 |
+
if (function_exists('mb_strlen')) {
|
107 |
+
if ((mb_strlen($title) > 18)) {
|
108 |
+
$title = mb_substr($title, 0, 15) . '..';
|
109 |
+
}
|
110 |
+
} elseif (strlen($title) > 18) {
|
111 |
+
$title = substr($title, 0, 15) . '..';
|
112 |
+
}
|
113 |
+
|
114 |
+
return $title;
|
115 |
+
}
|
116 |
+
|
117 |
/**
|
118 |
* Check if the entire branch is restricted
|
119 |
*
|
123 |
*
|
124 |
* @access public
|
125 |
*/
|
126 |
+
public function hasRestrictedAll($menu) {
|
127 |
$menuControl = $this->getSubject()->getObject(aam_Control_Object_Menu::UID);
|
128 |
$response = $menuControl->has($menu['id']);
|
129 |
+
|
130 |
+
foreach ($menu['submenu'] as $submenu) {
|
131 |
+
if ($menuControl->has($submenu['id']) === false) {
|
132 |
$response = false;
|
133 |
break;
|
134 |
}
|
135 |
}
|
136 |
+
|
137 |
return $response;
|
138 |
}
|
139 |
|
147 |
return strip_tags($text);
|
148 |
}
|
149 |
|
150 |
+
}
|
application/view/metabox.php
CHANGED
@@ -176,7 +176,7 @@ class aam_View_Metabox extends aam_View_Abstract {
|
|
176 |
global $wp_post_types;
|
177 |
|
178 |
$cache = aam_Core_API::getBlogOption('aam_metabox_cache', array());
|
179 |
-
if ($this->getSubject()->getUID() ==
|
180 |
$list = array(
|
181 |
'widgets' => (isset($cache['widgets']) ? $cache['widgets'] : array())
|
182 |
);
|
@@ -211,11 +211,8 @@ class aam_View_Metabox extends aam_View_Abstract {
|
|
211 |
$content .= '<div class=metabox-row>';
|
212 |
}
|
213 |
//prepare title
|
214 |
-
|
215 |
-
|
216 |
-
} else {
|
217 |
-
$title = $metabox['title'];
|
218 |
-
}
|
219 |
//prepare selected
|
220 |
if ($metaboxControl->has($screen, $metabox['id'])) {
|
221 |
$checked = 'checked="checked"';
|
@@ -257,6 +254,23 @@ class aam_View_Metabox extends aam_View_Abstract {
|
|
257 |
return $content;
|
258 |
}
|
259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
/**
|
261 |
*
|
262 |
* @param type $text
|
176 |
global $wp_post_types;
|
177 |
|
178 |
$cache = aam_Core_API::getBlogOption('aam_metabox_cache', array());
|
179 |
+
if ($this->getSubject()->getUID() == aam_Control_Subject_Visitor::UID) {
|
180 |
$list = array(
|
181 |
'widgets' => (isset($cache['widgets']) ? $cache['widgets'] : array())
|
182 |
);
|
211 |
$content .= '<div class=metabox-row>';
|
212 |
}
|
213 |
//prepare title
|
214 |
+
$title = $this->prepareTitle($metabox['title']);
|
215 |
+
|
|
|
|
|
|
|
216 |
//prepare selected
|
217 |
if ($metaboxControl->has($screen, $metabox['id'])) {
|
218 |
$checked = 'checked="checked"';
|
254 |
return $content;
|
255 |
}
|
256 |
|
257 |
+
/**
|
258 |
+
*
|
259 |
+
* @param type $title
|
260 |
+
* @return string
|
261 |
+
*/
|
262 |
+
protected function prepareTitle($title) {
|
263 |
+
if (function_exists('mb_strlen')) {
|
264 |
+
if ((mb_strlen($title) > 18)) {
|
265 |
+
$title = mb_substr($title, 0, 15) . '..';
|
266 |
+
}
|
267 |
+
} elseif (strlen($title) > 18) {
|
268 |
+
$title = substr($title, 0, 15) . '..';
|
269 |
+
}
|
270 |
+
|
271 |
+
return $title;
|
272 |
+
}
|
273 |
+
|
274 |
/**
|
275 |
*
|
276 |
* @param type $text
|
application/view/tmpl/capability.phtml
CHANGED
@@ -34,8 +34,8 @@
|
|
34 |
<tr>
|
35 |
<td><?php echo $group; ?></td>
|
36 |
<td>
|
37 |
-
<div class="
|
38 |
-
<a href="#" class="
|
39 |
</div>
|
40 |
</td>
|
41 |
</tr>
|
34 |
<tr>
|
35 |
<td><?php echo $group; ?></td>
|
36 |
<td>
|
37 |
+
<div class="aam-list-row-actions">
|
38 |
+
<a href="#" class="aam-icon aam-icon-small aam-icon-select"><span></span></a>
|
39 |
</div>
|
40 |
</td>
|
41 |
</tr>
|
application/view/tmpl/configpress.phtml
CHANGED
@@ -56,7 +56,6 @@
|
|
56 |
</h3>
|
57 |
<div class="inside">
|
58 |
<div class="cpanel-major">
|
59 |
-
<a href="<?php echo AAM_BASE_URL . '/docs/configpress.pdf' ?>" target="_blank" class="cpanel-item cpanel-item-tutorial"><?php echo __('Tutorial', 'aam'); ?></a>
|
60 |
<a href="#" class="cpanel-item cpanel-item-save" id="save_config" ><?php echo __('Save', 'aam'); ?></a>
|
61 |
</div>
|
62 |
<div class="cpanel-minor">
|
56 |
</h3>
|
57 |
<div class="inside">
|
58 |
<div class="cpanel-major">
|
|
|
59 |
<a href="#" class="cpanel-item cpanel-item-save" id="save_config" ><?php echo __('Save', 'aam'); ?></a>
|
60 |
</div>
|
61 |
<div class="cpanel-minor">
|
application/view/tmpl/control_area.phtml
CHANGED
@@ -25,8 +25,16 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
25 |
$post_type = $object->getPost()->post_type;
|
26 |
}
|
27 |
|
|
|
28 |
?>
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
<div id="term_access">
|
31 |
<table class="dataTable" id="term_access_frontend">
|
32 |
<thead>
|
@@ -48,7 +56,8 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
48 |
'aam_term_access_list',
|
49 |
aam_Core_Settings::get('term_frontend_restrictions'),
|
50 |
'frontend',
|
51 |
-
$object
|
|
|
52 |
)
|
53 |
);
|
54 |
foreach ($term_fcaps as $i => $action) {
|
@@ -60,7 +69,7 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
60 |
</div>
|
61 |
</td>
|
62 |
<td>
|
63 |
-
<div class="
|
64 |
<div class="post-action">
|
65 |
<input type="checkbox" id="term_frontend_<?php echo $action; ?>" name="access[term][frontend][<?php echo $action; ?>]" <?php echo ($object->has('frontend', $action) ? 'checked="checked"' : ''); ?> />
|
66 |
<label for="term_frontend_<?php echo $action; ?>">
|
@@ -94,7 +103,8 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
94 |
'aam_term_access_list',
|
95 |
aam_Core_Settings::get('term_backend_restrictions'),
|
96 |
'backend',
|
97 |
-
$object
|
|
|
98 |
)
|
99 |
);
|
100 |
foreach ($term_bcaps as $i => $action) {
|
@@ -106,7 +116,7 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
106 |
</div>
|
107 |
</td>
|
108 |
<td>
|
109 |
-
<div class="
|
110 |
<div class="post-action">
|
111 |
<input type="checkbox" id="term_backend_<?php echo $action ?>" name="access[term][backend][<?php echo $action; ?>]" <?php echo ($object->has('backend', $action) ? 'checked="checked"' : ''); ?> />
|
112 |
<label for="term_backend_<?php echo $action ?>">
|
@@ -147,7 +157,8 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
147 |
'aam_post_access_list',
|
148 |
aam_Core_Settings::get('post_frontend_restrictions'),
|
149 |
'frontend',
|
150 |
-
$object
|
|
|
151 |
)
|
152 |
);
|
153 |
foreach ($post_fcaps as $i => $action) {
|
@@ -159,7 +170,7 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
159 |
</div>
|
160 |
</td>
|
161 |
<td>
|
162 |
-
<div class="
|
163 |
<div class="post-action post-action-check">
|
164 |
<input type="checkbox" id="post_frontend_<?php echo $action ?>" name="access[post][frontend][<?php echo $action; ?>]" <?php echo ($object->has('frontend', $action) ? 'checked="checked"' : ''); ?> />
|
165 |
<label for="post_frontend_<?php echo $action ?>">
|
@@ -197,7 +208,8 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
197 |
'aam_post_access_list',
|
198 |
aam_Core_Settings::get('post_backend_restrictions'),
|
199 |
'backend',
|
200 |
-
$object
|
|
|
201 |
)
|
202 |
);
|
203 |
foreach ($post_bcaps as $i => $action) {
|
@@ -209,7 +221,7 @@ if (aam_Core_Request::post('type') === aam_Control_Object_Term::UID) {
|
|
209 |
</div>
|
210 |
</td>
|
211 |
<td>
|
212 |
-
<div class="
|
213 |
<div class="post-action post-action-check">
|
214 |
<input type="checkbox" id="post_backend_<?php echo $action ?>" name="access[post][backend][<?php echo $action; ?>]" <?php echo ($object->has('backend', $action) ? 'checked="checked"' : ''); ?> />
|
215 |
<label for="post_backend_<?php echo $action ?>">
|
25 |
$post_type = $object->getPost()->post_type;
|
26 |
}
|
27 |
|
28 |
+
if ($post_type == 'attachment'){
|
29 |
?>
|
30 |
+
<div class="attachment-access-block">
|
31 |
+
Get better access control over your media files with
|
32 |
+
<b><a href="http://wpaam.com/aam-extensions/aam-media-manager/" target="_blank">AAM Media Manager</a></b>
|
33 |
+
extension.
|
34 |
+
</div>
|
35 |
+
<?php
|
36 |
+
}
|
37 |
+
if ($object->getUID() == aam_Control_Object_Term::UID) { ?>
|
38 |
<div id="term_access">
|
39 |
<table class="dataTable" id="term_access_frontend">
|
40 |
<thead>
|
56 |
'aam_term_access_list',
|
57 |
aam_Core_Settings::get('term_frontend_restrictions'),
|
58 |
'frontend',
|
59 |
+
$object,
|
60 |
+
$post_type
|
61 |
)
|
62 |
);
|
63 |
foreach ($term_fcaps as $i => $action) {
|
69 |
</div>
|
70 |
</td>
|
71 |
<td>
|
72 |
+
<div class="aam-list-row-actions">
|
73 |
<div class="post-action">
|
74 |
<input type="checkbox" id="term_frontend_<?php echo $action; ?>" name="access[term][frontend][<?php echo $action; ?>]" <?php echo ($object->has('frontend', $action) ? 'checked="checked"' : ''); ?> />
|
75 |
<label for="term_frontend_<?php echo $action; ?>">
|
103 |
'aam_term_access_list',
|
104 |
aam_Core_Settings::get('term_backend_restrictions'),
|
105 |
'backend',
|
106 |
+
$object,
|
107 |
+
$post_type
|
108 |
)
|
109 |
);
|
110 |
foreach ($term_bcaps as $i => $action) {
|
116 |
</div>
|
117 |
</td>
|
118 |
<td>
|
119 |
+
<div class="aam-list-row-actions">
|
120 |
<div class="post-action">
|
121 |
<input type="checkbox" id="term_backend_<?php echo $action ?>" name="access[term][backend][<?php echo $action; ?>]" <?php echo ($object->has('backend', $action) ? 'checked="checked"' : ''); ?> />
|
122 |
<label for="term_backend_<?php echo $action ?>">
|
157 |
'aam_post_access_list',
|
158 |
aam_Core_Settings::get('post_frontend_restrictions'),
|
159 |
'frontend',
|
160 |
+
$object,
|
161 |
+
$post_type
|
162 |
)
|
163 |
);
|
164 |
foreach ($post_fcaps as $i => $action) {
|
170 |
</div>
|
171 |
</td>
|
172 |
<td>
|
173 |
+
<div class="aam-list-row-actions">
|
174 |
<div class="post-action post-action-check">
|
175 |
<input type="checkbox" id="post_frontend_<?php echo $action ?>" name="access[post][frontend][<?php echo $action; ?>]" <?php echo ($object->has('frontend', $action) ? 'checked="checked"' : ''); ?> />
|
176 |
<label for="post_frontend_<?php echo $action ?>">
|
208 |
'aam_post_access_list',
|
209 |
aam_Core_Settings::get('post_backend_restrictions'),
|
210 |
'backend',
|
211 |
+
$object,
|
212 |
+
$post_type
|
213 |
)
|
214 |
);
|
215 |
foreach ($post_bcaps as $i => $action) {
|
221 |
</div>
|
222 |
</td>
|
223 |
<td>
|
224 |
+
<div class="aam-list-row-actions">
|
225 |
<div class="post-action post-action-check">
|
226 |
<input type="checkbox" id="post_backend_<?php echo $action ?>" name="access[post][backend][<?php echo $action; ?>]" <?php echo ($object->has('backend', $action) ? 'checked="checked"' : ''); ?> />
|
227 |
<label for="post_backend_<?php echo $action ?>">
|
application/view/tmpl/extension.phtml
CHANGED
@@ -46,8 +46,8 @@
|
|
46 |
<td>
|
47 |
<div class="extension-actions">
|
48 |
<a href="http://wpaam.com/aam-extensions/aam-plus-package/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
49 |
-
<?php if ($this->hasExtension('AAM Plus Package')) { ?>
|
50 |
-
<a href="#" extension="AAM Plus Package" license="<?php echo $this->getExtension('AAM Plus Package')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
51 |
<?php } else { ?>
|
52 |
<a href="#" extension="AAM Plus Package" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UEM8U65HFEG4Q" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
53 |
<?php } ?>
|
@@ -67,8 +67,8 @@
|
|
67 |
<td>
|
68 |
<div class="extension-actions">
|
69 |
<a href="http://wpaam.com/aam-extensions/aam-activities/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
70 |
-
<?php if ($this->hasExtension('AAM Activities')) { ?>
|
71 |
-
<a href="#" extension="AAM Activities" license="<?php echo $this->getExtension('AAM Activities')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
72 |
<?php } else { ?>
|
73 |
<a href="#" extension="AAM Activities" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HME9DTSFSJH4W" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
74 |
<?php } ?>
|
@@ -88,8 +88,8 @@
|
|
88 |
<td>
|
89 |
<div class="extension-actions">
|
90 |
<a href="http://wpaam.com/aam-extensions/aam-media-manager/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
91 |
-
<?php if ($this->hasExtension('AAM Media Manager')) { ?>
|
92 |
-
<a href="#" extension="AAM Media Manager" license="<?php echo $this->getExtension('AAM Media Manager')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
93 |
<?php } else { ?>
|
94 |
<a href="#" extension="AAM Media Manager" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WJ48A7Z6EFZJ4" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
95 |
<?php } ?>
|
@@ -110,8 +110,8 @@
|
|
110 |
|
111 |
<div class="extension-actions">
|
112 |
<a href="http://wpaam.com/aam-extensions/aam-content-filter/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
113 |
-
<?php if ($this->hasExtension('AAM Content Filter')) { ?>
|
114 |
-
<a href="#" extension="AAM Content Filter" license="<?php echo $this->getExtension('AAM Content Filter')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
115 |
<?php } else { ?>
|
116 |
<a href="#" extension="AAM Content Filter" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X7NZ7QF8A9CVS" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
117 |
<?php } ?>
|
@@ -200,6 +200,4 @@
|
|
200 |
</div>
|
201 |
</div>
|
202 |
</div>
|
203 |
-
</div>
|
204 |
-
|
205 |
-
|
46 |
<td>
|
47 |
<div class="extension-actions">
|
48 |
<a href="http://wpaam.com/aam-extensions/aam-plus-package/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
49 |
+
<?php if ($this->getRepository()->hasExtension('AAM Plus Package')) { ?>
|
50 |
+
<a href="#" extension="AAM Plus Package" license="<?php echo $this->getRepository()->getExtension('AAM Plus Package')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
51 |
<?php } else { ?>
|
52 |
<a href="#" extension="AAM Plus Package" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UEM8U65HFEG4Q" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
53 |
<?php } ?>
|
67 |
<td>
|
68 |
<div class="extension-actions">
|
69 |
<a href="http://wpaam.com/aam-extensions/aam-activities/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
70 |
+
<?php if ($this->getRepository()->hasExtension('AAM Activities')) { ?>
|
71 |
+
<a href="#" extension="AAM Activities" license="<?php echo $this->getRepository()->getExtension('AAM Activities')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
72 |
<?php } else { ?>
|
73 |
<a href="#" extension="AAM Activities" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=HME9DTSFSJH4W" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
74 |
<?php } ?>
|
88 |
<td>
|
89 |
<div class="extension-actions">
|
90 |
<a href="http://wpaam.com/aam-extensions/aam-media-manager/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
91 |
+
<?php if ($this->getRepository()->hasExtension('AAM Media Manager')) { ?>
|
92 |
+
<a href="#" extension="AAM Media Manager" license="<?php echo $this->getRepository()->getExtension('AAM Media Manager')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
93 |
<?php } else { ?>
|
94 |
<a href="#" extension="AAM Media Manager" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WJ48A7Z6EFZJ4" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
95 |
<?php } ?>
|
110 |
|
111 |
<div class="extension-actions">
|
112 |
<a href="http://wpaam.com/aam-extensions/aam-content-filter/" target="_blank" class="extension-action extension-action-forum" aam-tooltip="Visit Our Website"></a>
|
113 |
+
<?php if ($this->getRepository()->hasExtension('AAM Content Filter')) { ?>
|
114 |
+
<a href="#" extension="AAM Content Filter" license="<?php echo $this->getRepository()->getExtension('AAM Content Filter')->license; ?>" class="extension-action extension-action-ok" aam-tooltip="Installed Successfully"></a>
|
115 |
<?php } else { ?>
|
116 |
<a href="#" extension="AAM Content Filter" link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=X7NZ7QF8A9CVS" class="extension-action extension-action-purchase" aam-tooltip="Get it Today"></a>
|
117 |
<?php } ?>
|
200 |
</div>
|
201 |
</div>
|
202 |
</div>
|
203 |
+
</div>
|
|
|
|
application/view/tmpl/help_developers.phtml
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<h2>AAM Development Framework</h2>
|
2 |
+
|
3 |
+
<p>
|
4 |
+
Are you passionate about WordPress development? We are too! Become a member of
|
5 |
+
the AAM community and obtain our
|
6 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3Q6UDARTR532U" target="_blank">Exclusive Development License</a>
|
7 |
+
where you can profit from your own ideas and have access to all AAM extensions.
|
8 |
+
</p>
|
9 |
+
|
10 |
+
<p>
|
11 |
+
We receive regular requests and suggestions for new extensions and decided we would
|
12 |
+
extend the opportunity to create and earn by opening our platform to you. We will
|
13 |
+
host your extensions on our server so you may develop custom features for you and
|
14 |
+
your customers. If you have a great idea and would like to create an extension for
|
15 |
+
sales, we will review, approve and host it on AAM server.
|
16 |
+
</p>
|
17 |
+
|
18 |
+
<p>
|
19 |
+
You can download the sample extension from our official
|
20 |
+
<a href="https://github.com/wpaam/AAM-Feature-Example" target="_blank">GitHub Repository</a>
|
21 |
+
and customize it to your special need.
|
22 |
+
</p>
|
23 |
+
|
24 |
+
<p>
|
25 |
+
Additionally the
|
26 |
+
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3Q6UDARTR532U" target="_blank">AAM Development License</a>
|
27 |
+
gives you an opportunity to download <b>ALL</b> AAM extensions that are available
|
28 |
+
now and all new extensions that will be developed within a year from the time of purchase.
|
29 |
+
</p>
|
application/view/tmpl/help_extensions.phtml
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<h2>AAM Extensions</h2>
|
2 |
+
|
3 |
+
<p>
|
4 |
+
Advanced Access Manager is free platform and you can use most of the features without
|
5 |
+
any limitations but in case you are looking for more, this is where AAM extensions
|
6 |
+
might be useful for you to check. Complete list of available extensions you can find
|
7 |
+
on AAM->Extensions page.
|
8 |
+
</p>
|
9 |
+
<p>
|
10 |
+
We are using PayPal to process the payment and if it completed successfully, you will
|
11 |
+
automatically receive an email with license key that you can use to activate the extension.
|
12 |
+
</p>
|
13 |
+
<p>
|
14 |
+
In case of any issues with license key, we guaranty to resolve the issue within one business day.
|
15 |
+
Otherwise your money back.
|
16 |
+
</p>
|
application/view/tmpl/help_faq.phtml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<h2>Frequently Asked Questions</h2>
|
2 |
+
|
3 |
+
<h4>What is Advanced Access Manager?</h4>
|
4 |
+
<p>
|
5 |
+
Advanced Access Manager (aka AAM) is free WordPress plugin that allows you to
|
6 |
+
control access to your website. With AAM you can manager access to your Posts,
|
7 |
+
Pages and Categories, filter unnecessary areas in your Backend, manager Users and
|
8 |
+
Roles and many more.
|
9 |
+
</p>
|
10 |
+
|
11 |
+
<h4>What should I know to understand how AAM works?</h4>
|
12 |
+
<p>
|
13 |
+
Best way to learn more about AAM is to check our
|
14 |
+
<a href="http://wpaam.com/tutorials/" target="_blank">collection of tutorials</a>.
|
15 |
+
From here you'll get the basic understanding about most important aspects of AAM
|
16 |
+
functionality. It is also very important to understand how WordPress
|
17 |
+
<a href="https://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Roles & Capabilities</a>
|
18 |
+
are organized.
|
19 |
+
</p>
|
20 |
+
|
21 |
+
<h4>I'm not able to manage Administrator Role. What am I missing?</h4>
|
22 |
+
<p>
|
23 |
+
In fact that AAM is very powerful tool, many unexperienced users were able to limit
|
24 |
+
Administrator rights and loose access to Dashboard. That is why from AAM Release 2.5
|
25 |
+
we introduced <a href="http://wpaam.com/tutorials/aam-super-admin/" target="_blank">AAM Super Admin</a>.
|
26 |
+
You can make one user in your system as AAM Super Administrator that is able to manager other
|
27 |
+
administrators.<br/>
|
28 |
+
<span style="color:#FF0000; font-weight: bold;">Warning!</span> Do not limit capabilities for Administrator
|
29 |
+
Role, because even if you are AAM Super Administrator, you still remain WordPress Administrator.
|
30 |
+
</p>
|
31 |
+
|
32 |
+
<h4>What is ConfigPress?</h4>
|
33 |
+
<p>
|
34 |
+
Think about ConfigPress as a settings page but instead of dozens of checkboxes, drop-downs and input fields
|
35 |
+
you use configuration script based on <a href="http://en.wikipedia.org/wiki/INI_file" target="_blank">INI Standard</a>.
|
36 |
+
The reason we use this format is that AAM is not only just a plugin but complex and very flexible development
|
37 |
+
tool. That is why we came to conclusion to organize all settings in ConfigPress format.
|
38 |
+
</p>
|
application/view/tmpl/help_overview.phtml
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<h2>General Overview</h2>
|
2 |
+
<p>
|
3 |
+
Advanced Access Manager (aka AAM) is one of the most popular access control plugins. It is easy-to-use but
|
4 |
+
at the same time very powerful tool that gives you a flexible control over your either
|
5 |
+
single WordPress site or Multisite Network. With AAM you are allowed to configure access
|
6 |
+
to different parts of your website for any <i>role</i> or individual <i>user</i>.
|
7 |
+
</p>
|
8 |
+
<p>
|
9 |
+
Another great aspect of AAM is that our team constantly working on new features and improving
|
10 |
+
existing. We are very dedicated to success of this project and our support is ready to help you
|
11 |
+
within 48hours.
|
12 |
+
</p>
|
13 |
+
<p>
|
14 |
+
Below you can find some of the major feature that are available in current AAM version:
|
15 |
+
</p>
|
16 |
+
|
17 |
+
<b>Control access to backend menu (including submenu).</b> As example you can restrict
|
18 |
+
access for <i>role</i> Editor to Menu "Pages" or does not allow any <i>user</i> to
|
19 |
+
manage Post's Categories.<br/>
|
20 |
+
<br/>
|
21 |
+
<b>Filter <i>widgets</i> & <i>metaboxes</i>.</b> Filter the list of metaboxes that any <i>role</i>
|
22 |
+
or <i>user</i> can see during Post/Page editing. At the same time you can filter the
|
23 |
+
list of Dashboard and Frontend widgets.<br/>
|
24 |
+
<br/>
|
25 |
+
<b>Control access to any <i>post</i>, <i>page</i>, <i>custom post type</i> or <i>category</i>.</b>
|
26 |
+
You can restrict access to page or post for any <i>user</i> or <i>role</i> as well as
|
27 |
+
restrict access to entire <i>category</i> and all posts inside it. You can also restrict
|
28 |
+
commenting for pages or exclude any from the frontend menu. For more restrictions you can
|
29 |
+
consider to get <a href="http://wpaam.com/aam-extensions/aam-plus-package/" target="_blank">AAM Plus Package</a>.<br/>
|
30 |
+
<br/>
|
31 |
+
<b>Filter Post or Page content.</b> You can filter Post's or Page's content for
|
32 |
+
currently logged in user or visitor. This feature is available with extension
|
33 |
+
<a href="http://wpaam.com/aam-extensions/aam-content-filter/" target="_blank">AAM Content Manager</a>.<br/>
|
34 |
+
<br/>
|
35 |
+
<b>Manage capabilities for any <i>role</i> or <i>user</i>.</b>
|
36 |
+
AAM, with simple interface, allows you to grand or remove capabilities for any <i>role</i> or <i>user</i>.
|
37 |
+
You can also create new custom capability or remove existing.<br/>
|
38 |
+
<br/>
|
39 |
+
<b>Create custom actions for system events.</b> As example your system can send email
|
40 |
+
to you if some user published post or page, or modified content. You also can develop
|
41 |
+
your own custom action for system event.<br/>
|
42 |
+
<br/>
|
43 |
+
<b>Track <i>user</i> activities.</b> With AAM you can track user activities within
|
44 |
+
your website. So you can easily find out when user was logged in or modified any post
|
45 |
+
or page. To extend the list of tracked activities, consider to get
|
46 |
+
<a href="http://wpaam.com/aam-extensions/aam-activities/" target="_blank">AAM Activities</a>
|
47 |
+
extension.
|
48 |
+
|
application/view/tmpl/metabox.phtml
CHANGED
@@ -12,8 +12,8 @@
|
|
12 |
<div class="metabox-top-action-link">
|
13 |
<input type="text" class="link-text" id="metabox_link" />
|
14 |
</div>
|
15 |
-
<a href="#" class="
|
16 |
-
<a href="#" class="
|
17 |
<br class="clear" />
|
18 |
</div>
|
19 |
<div class="aam-metabox-loader"></div>
|
12 |
<div class="metabox-top-action-link">
|
13 |
<input type="text" class="link-text" id="metabox_link" />
|
14 |
</div>
|
15 |
+
<a href="#" class="aam-icon aam-icon-medium aam-icon-add" id="retrieve_url" aam-tooltip="<?php echo __('Retrieve Metaboxes From Link', 'aam') ;?>"><span></span></a>
|
16 |
+
<a href="#" class="aam-icon aam-icon-medium aam-icon-refresh" id="refresh_metaboxes" aam-tooltip="<?php echo __('Refresh the List', 'aam') ;?>"><span></span></a>
|
17 |
<br class="clear" />
|
18 |
</div>
|
19 |
<div class="aam-metabox-loader"></div>
|
config.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
*/
|
9 |
|
10 |
//AAM Version for Update purpose
|
11 |
-
define('AAM_VERSION', '2.5');
|
12 |
|
13 |
define('AAM_BASE_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
|
14 |
|
@@ -28,7 +28,7 @@ define('AAM_APPL_ENV', (getenv('APPL_ENV') ? getenv('APPL_ENV') : 'production'))
|
|
28 |
if (AAM_APPL_ENV === 'production') {
|
29 |
define('WPAAM_REST_API', 'http://rest.wpaam.com');
|
30 |
} else {
|
31 |
-
define('WPAAM_REST_API', 'http://wpaam.localhost/
|
32 |
}
|
33 |
|
34 |
/**
|
8 |
*/
|
9 |
|
10 |
//AAM Version for Update purpose
|
11 |
+
define('AAM_VERSION', '2.5.1');
|
12 |
|
13 |
define('AAM_BASE_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
|
14 |
|
28 |
if (AAM_APPL_ENV === 'production') {
|
29 |
define('WPAAM_REST_API', 'http://rest.wpaam.com');
|
30 |
} else {
|
31 |
+
define('WPAAM_REST_API', 'http://wpaam.localhost/');
|
32 |
}
|
33 |
|
34 |
/**
|
docs/configpress.pdf
DELETED
Binary file
|
extension/AAM_My_Feature/images/message-active.png
DELETED
Binary file
|
extension/AAM_My_Feature/images/message.png
DELETED
Binary file
|
extension/AAM_My_Feature/images/talk-active.png
DELETED
Binary file
|
extension/AAM_My_Feature/images/talk.png
DELETED
Binary file
|
extension/AAM_My_Feature/my_feature.css
CHANGED
@@ -19,48 +19,4 @@
|
|
19 |
font-size: 1.2em;
|
20 |
font-weight: bold;
|
21 |
text-align: center;
|
22 |
-
}
|
23 |
-
|
24 |
-
.my-feature-actions{
|
25 |
-
width: 100%;
|
26 |
-
margin-top: 10px;
|
27 |
-
text-align: center;
|
28 |
-
}
|
29 |
-
|
30 |
-
.my-feature-action{
|
31 |
-
min-width: 48px;
|
32 |
-
height: 70px;
|
33 |
-
display: inline-block;
|
34 |
-
text-decoration: none;
|
35 |
-
position: relative;
|
36 |
-
}
|
37 |
-
|
38 |
-
.my-feature-action span{
|
39 |
-
display: block;
|
40 |
-
margin-top: 50px;
|
41 |
-
text-align: center;
|
42 |
-
width: 100%;
|
43 |
-
font-size: 0.8em;
|
44 |
-
text-transform: uppercase;
|
45 |
-
font-weight: bold;
|
46 |
-
color: #333333;
|
47 |
-
font-family: "Trebuchet MS", Helvetica, sans-serif;
|
48 |
-
}
|
49 |
-
|
50 |
-
.my-feature-message-action{
|
51 |
-
background: transparent url('images/message.png') no-repeat center 6px;
|
52 |
-
}
|
53 |
-
|
54 |
-
.my-feature-message-action:hover{
|
55 |
-
background: transparent url('images/message-active.png') no-repeat center 6px;
|
56 |
-
}
|
57 |
-
|
58 |
-
.my-feature-forum-action{
|
59 |
-
background: transparent url('images/talk.png') no-repeat center 0;
|
60 |
-
margin-left: 60px;
|
61 |
-
}
|
62 |
-
|
63 |
-
.my-feature-forum-action:hover{
|
64 |
-
background: transparent url('images/talk-active.png') no-repeat center 0;
|
65 |
-
margin-left: 60px;
|
66 |
}
|
19 |
font-size: 1.2em;
|
20 |
font-weight: bold;
|
21 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
}
|
extension/AAM_My_Feature/ui.phtml
CHANGED
@@ -10,15 +10,10 @@
|
|
10 |
<div class="feature-content-container" id="my_feature_content">
|
11 |
<div class="my-feature-banner">
|
12 |
<p class="banner-style">
|
13 |
-
<?php echo __('Do you need a custom feature?
|
|
|
|
|
|
|
14 |
</p>
|
15 |
</div>
|
16 |
-
<div class="my-feature-actions">
|
17 |
-
<a href="#" class="my-feature-action my-feature-message-action">
|
18 |
-
<span><?php echo __('Email Us', 'aam'); ?></span>
|
19 |
-
</a>
|
20 |
-
<a href="http://wpaam.com/forum/viewtopic.php?f=7&t=72" target="_blank" class="my-feature-action my-feature-forum-action">
|
21 |
-
<span><?php echo __('Ask on Forum', 'aam'); ?></span>
|
22 |
-
</a>
|
23 |
-
</div>
|
24 |
</div>
|
10 |
<div class="feature-content-container" id="my_feature_content">
|
11 |
<div class="my-feature-banner">
|
12 |
<p class="banner-style">
|
13 |
+
<?php echo __('Do you need a custom feature?', 'aam'); ?>
|
14 |
+
<a href="https://github.com/wpaam/AAM-Feature-Example" target="_blank">
|
15 |
+
<?php echo __('Create your own extension ', 'aam'); ?>
|
16 |
+
</a> <?php echo __('or ask us and we will develop it for you.', 'aam'); ?>
|
17 |
</p>
|
18 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</div>
|
lang/aam.mo
CHANGED
Binary file
|
lang/aam.pot
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: AAM\n"
|
4 |
-
"POT-Creation-Date: 2014-04
|
5 |
"PO-Revision-Date: \n"
|
6 |
"Last-Translator: WPAAM <support@wpaam.com>\n"
|
7 |
"Language-Team: WP AAM <support@wpaam.com>\n"
|
@@ -9,50 +9,50 @@ msgstr ""
|
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.6.
|
13 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __\n"
|
16 |
"X-Poedit-Basepath: d:\\xampp\\htdocs\\aam\\wp-content\\plugins\\aam\\\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
-
#: aam.php:
|
20 |
msgid "Access denied"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: aam.php:
|
24 |
msgid "AAM"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: aam.php:
|
28 |
msgid "Access Control"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: aam.php:
|
32 |
msgid "ConfigPress"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: aam.php:
|
36 |
msgid "Extensions"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: application/core/repository.php:
|
40 |
msgid "Failed to Remove Extension"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: application/core/repository.php:
|
44 |
msgid "Invalid License Key"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: application/core/repository.php:
|
48 |
msgid "Failed to write file to wp-content/aam folder"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: application/core/repository.php:
|
52 |
msgid "Failed to reach the WPAAM Server"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: application/core/repository.php:
|
56 |
msgid "Failed to insert extension to extension folder"
|
57 |
msgstr ""
|
58 |
|
@@ -76,7 +76,7 @@ msgstr ""
|
|
76 |
msgid "Miscellaneous"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: application/view/extension.php:
|
80 |
msgid "Folder advanced-access-manager/extension is not writable"
|
81 |
msgstr ""
|
82 |
|
@@ -113,10 +113,10 @@ msgid "Metabox & Widget"
|
|
113 |
msgstr ""
|
114 |
|
115 |
#: application/view/manager.php:145 application/view/tmpl/capability.phtml:17
|
116 |
-
#: application/view/tmpl/control_area.phtml:
|
117 |
-
#: application/view/tmpl/control_area.phtml:
|
118 |
-
#: application/view/tmpl/control_area.phtml:
|
119 |
-
#: application/view/tmpl/control_area.phtml:
|
120 |
#: extension/AAM_Plus_Package/ui.phtml:28
|
121 |
#: extension/AAM_Plus_Package/ui.phtml:60
|
122 |
#: extension/AAM_Plus_Package/ui.phtml:93
|
@@ -132,203 +132,209 @@ msgstr ""
|
|
132 |
msgid "Event Manager"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: application/view/manager.php:
|
136 |
msgid "You are not allowed to manage any AAM Features."
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: application/view/manager.php:
|
140 |
msgid "Rollback Settings"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: application/view/manager.php:
|
144 |
msgid "Cancel"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: application/view/manager.php:
|
148 |
msgid "Send E-mail"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: application/view/manager.php:
|
152 |
msgid "Add New Role"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: application/view/manager.php:
|
156 |
msgid "Manage"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: application/view/manager.php:
|
160 |
msgid "Edit"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: application/view/manager.php:
|
164 |
msgid "Delete"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: application/view/manager.php:
|
168 |
msgid "Filtered"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: application/view/manager.php:
|
172 |
msgid "Clear"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: application/view/manager.php:
|
176 |
msgid "Save Changes"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: application/view/manager.php:
|
180 |
#, php-format
|
181 |
msgid ""
|
182 |
"System detected %d user(s) with this role. All Users with Role <b>%s</b> "
|
183 |
"will be deleted automatically!"
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: application/view/manager.php:
|
187 |
#, php-format
|
188 |
msgid "Are you sure that you want to delete role <b>%s</b>?"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: application/view/manager.php:
|
192 |
msgid "Delete Role"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: application/view/manager.php:
|
196 |
msgid "Add User"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: application/view/manager.php:
|
200 |
msgid "Filter Users"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: application/view/manager.php:
|
204 |
msgid "Refresh List"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: application/view/manager.php:
|
208 |
msgid "Block"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: application/view/manager.php:
|
212 |
#, php-format
|
213 |
msgid "Are you sure you want to delete user <b>%s</b>?"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: application/view/manager.php:
|
217 |
msgid "Filter Capabilities by Category"
|
218 |
msgstr ""
|
219 |
|
220 |
-
#: application/view/manager.php:
|
221 |
msgid "Inherit Capabilities"
|
222 |
msgstr ""
|
223 |
|
224 |
-
#: application/view/manager.php:
|
225 |
msgid "Add New Capability"
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: application/view/manager.php:
|
229 |
#, php-format
|
230 |
msgid "Are you sure that you want to delete capability <b>%s</b>?"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: application/view/manager.php:
|
234 |
msgid "Delete Capability"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: application/view/manager.php:
|
238 |
msgid "Select Role"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: application/view/manager.php:
|
242 |
msgid "Add Capability"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: application/view/manager.php:
|
246 |
msgid "Add Event"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: application/view/manager.php:
|
250 |
msgid "Edit Event"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: application/view/manager.php:
|
254 |
#: application/view/tmpl/event.phtml:105
|
255 |
msgid "Delete Event"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: application/view/manager.php:
|
259 |
msgid "Save Event"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: application/view/manager.php:
|
263 |
msgid "Filter Posts by Post Type"
|
264 |
msgstr ""
|
265 |
|
266 |
-
#: application/view/manager.php:
|
267 |
msgid "Restore Default"
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: application/view/manager.php:
|
271 |
msgid "Apply"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: application/view/manager.php:
|
275 |
msgid "Edit Term"
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: application/view/manager.php:
|
279 |
msgid "Manager Access"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: application/view/manager.php:
|
283 |
msgid "Unlock Default Accesss Control"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: application/view/manager.php:
|
287 |
msgid "Close"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: application/view/manager.php:
|
291 |
msgid "Edit Role"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: application/view/manager.php:
|
295 |
msgid "Restore Default Capabilities"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: application/view/manager.php:
|
299 |
#, php-format
|
300 |
msgid "Are you sure you want to delete <b>%s</b>?"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: application/view/manager.php:
|
304 |
#, php-format
|
305 |
msgid "Are you sure you want to move <b>%s</b> to trash?"
|
306 |
msgstr ""
|
307 |
|
308 |
-
#: application/view/manager.php:
|
309 |
msgid "Delete Post"
|
310 |
msgstr ""
|
311 |
|
312 |
-
#: application/view/manager.php:
|
313 |
msgid "Delete Permanently"
|
314 |
msgstr ""
|
315 |
|
316 |
-
#: application/view/manager.php:
|
317 |
msgid "Trash Post"
|
318 |
msgstr ""
|
319 |
|
320 |
-
#: application/view/manager.php:
|
321 |
msgid "Restore Default Access"
|
322 |
msgstr ""
|
323 |
|
324 |
-
#: application/view/manager.php:
|
325 |
msgid "Duplicate"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: application/view/manager.php:
|
329 |
msgid "Actions Locked"
|
330 |
msgstr ""
|
331 |
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
#: application/view/metabox.php:191
|
333 |
msgid "Dashboard Widgets"
|
334 |
msgstr ""
|
@@ -353,36 +359,6 @@ msgstr ""
|
|
353 |
msgid "Folder wp-content/aam is not writable"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: extension/AAM_Activities/extension.php:133
|
357 |
-
#: extension/AAM_Activities/extension.php:146
|
358 |
-
#: extension/AAM_Activities/extension.php:160
|
359 |
-
msgid "Post does not exist."
|
360 |
-
msgstr ""
|
361 |
-
|
362 |
-
#: extension/AAM_Activities/extension.php:136
|
363 |
-
#, php-format
|
364 |
-
msgid "Updated %s: %s"
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: extension/AAM_Activities/extension.php:149
|
368 |
-
#, php-format
|
369 |
-
msgid "Trashed %s: %s"
|
370 |
-
msgstr ""
|
371 |
-
|
372 |
-
#: extension/AAM_Activities/extension.php:163
|
373 |
-
#, php-format
|
374 |
-
msgid "Untrashed %s: %s"
|
375 |
-
msgstr ""
|
376 |
-
|
377 |
-
#: extension/AAM_Activities/extension.php:172
|
378 |
-
#, php-format
|
379 |
-
msgid "Deleted %s %s"
|
380 |
-
msgstr ""
|
381 |
-
|
382 |
-
#: extension/AAM_Activities/extension.php:229
|
383 |
-
msgid "Undefined Type"
|
384 |
-
msgstr ""
|
385 |
-
|
386 |
#: extension/AAM_Activity_Log/activity.php:98
|
387 |
msgid "System Login"
|
388 |
msgstr ""
|
@@ -399,11 +375,11 @@ msgstr ""
|
|
399 |
msgid "Activity Log"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: extension/AAM_Activity_Log/extension.php:
|
403 |
msgid "Clear Logs"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: extension/AAM_Activity_Log/extension.php:
|
407 |
msgid "Get More"
|
408 |
msgstr ""
|
409 |
|
@@ -431,7 +407,7 @@ msgstr ""
|
|
431 |
msgid "My Feature"
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: extension/AAM_Plus_Package/extension.php:
|
435 |
msgid "Comments"
|
436 |
msgstr ""
|
437 |
|
@@ -484,10 +460,11 @@ msgstr ""
|
|
484 |
#: application/view/tmpl/extension.phtml:15
|
485 |
#: application/view/tmpl/extension.phtml:148
|
486 |
#: application/view/tmpl/extension.phtml:167
|
|
|
487 |
#: application/view/tmpl/manager.phtml:17
|
488 |
-
#: application/view/tmpl/manager.phtml:
|
489 |
-
#: application/view/tmpl/manager.phtml:
|
490 |
-
#: application/view/tmpl/manager.phtml:
|
491 |
msgid "Click to toggle"
|
492 |
msgstr ""
|
493 |
|
@@ -497,71 +474,67 @@ msgstr ""
|
|
497 |
|
498 |
#: application/view/tmpl/configpress.phtml:36
|
499 |
#: application/view/tmpl/extension.phtml:150
|
500 |
-
#: application/view/tmpl/manager.phtml:
|
501 |
msgid "AAM Warnings"
|
502 |
msgstr ""
|
503 |
|
504 |
#: application/view/tmpl/configpress.phtml:55
|
505 |
-
#: application/view/tmpl/manager.phtml:
|
506 |
msgid "Control Panel"
|
507 |
msgstr ""
|
508 |
|
509 |
#: application/view/tmpl/configpress.phtml:59
|
510 |
-
|
511 |
-
msgstr ""
|
512 |
-
|
513 |
-
#: application/view/tmpl/configpress.phtml:60
|
514 |
-
#: application/view/tmpl/manager.phtml:69
|
515 |
msgid "Save"
|
516 |
msgstr ""
|
517 |
|
518 |
-
#: application/view/tmpl/configpress.phtml:
|
519 |
-
#: application/view/tmpl/manager.phtml:
|
520 |
msgid "Follow @wpaam"
|
521 |
msgstr ""
|
522 |
|
523 |
-
#: application/view/tmpl/configpress.phtml:
|
524 |
-
#: application/view/tmpl/manager.phtml:
|
525 |
msgid "Follow"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: application/view/tmpl/configpress.phtml:
|
529 |
-
#: application/view/tmpl/manager.phtml:
|
530 |
msgid "Help Forum"
|
531 |
msgstr ""
|
532 |
|
533 |
-
#: application/view/tmpl/configpress.phtml:
|
534 |
-
#: application/view/tmpl/manager.phtml:
|
535 |
msgid "Help"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: application/view/tmpl/configpress.phtml:
|
539 |
-
#: application/view/tmpl/manager.phtml:
|
540 |
-
#: application/view/tmpl/manager.phtml:
|
541 |
msgid "E-mail Us"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: application/view/tmpl/configpress.phtml:
|
545 |
-
#: application/view/tmpl/manager.phtml:
|
546 |
msgid "Rate AAM"
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: application/view/tmpl/configpress.phtml:
|
550 |
-
#: application/view/tmpl/manager.phtml:
|
551 |
msgid "Rate Us"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: application/view/tmpl/control_area.phtml:
|
555 |
-
#: application/view/tmpl/control_area.phtml:
|
556 |
-
#: application/view/tmpl/control_area.phtml:
|
557 |
-
#: application/view/tmpl/control_area.phtml:
|
558 |
msgid "Access"
|
559 |
msgstr ""
|
560 |
|
561 |
-
#: application/view/tmpl/control_area.phtml:
|
562 |
-
#: application/view/tmpl/control_area.phtml:
|
563 |
-
#: application/view/tmpl/control_area.phtml:
|
564 |
-
#: application/view/tmpl/control_area.phtml:
|
565 |
#: extension/AAM_Plus_Package/ui.phtml:29
|
566 |
#: extension/AAM_Plus_Package/ui.phtml:61
|
567 |
#: extension/AAM_Plus_Package/ui.phtml:94
|
@@ -569,13 +542,13 @@ msgstr ""
|
|
569 |
msgid "Restrict"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: application/view/tmpl/control_area.phtml:
|
573 |
-
#: application/view/tmpl/control_area.phtml:
|
574 |
#, php-format
|
575 |
msgid "All %s in Term"
|
576 |
msgstr ""
|
577 |
|
578 |
-
#: application/view/tmpl/control_area.phtml:
|
579 |
msgid "Get AAM Plus Package"
|
580 |
msgstr ""
|
581 |
|
@@ -686,23 +659,38 @@ msgstr ""
|
|
686 |
msgid "Connect with AAM"
|
687 |
msgstr ""
|
688 |
|
689 |
-
#: application/view/tmpl/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
msgid "Default"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: application/view/tmpl/manager.phtml:
|
694 |
msgid "Undo Change"
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: application/view/tmpl/manager.phtml:
|
698 |
msgid "Would your like to role back current settings?"
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: application/view/tmpl/manager.phtml:
|
702 |
msgid "Our E-mail address is <b>support@wpaam.com</b>"
|
703 |
msgstr ""
|
704 |
|
705 |
-
#: application/view/tmpl/manager.phtml:
|
706 |
msgid "Control Manager"
|
707 |
msgstr ""
|
708 |
|
@@ -840,15 +828,15 @@ msgid "All newly created sites will inherit list of Roles & Capabilities."
|
|
840 |
msgstr ""
|
841 |
|
842 |
#: extension/AAM_My_Feature/ui.phtml:13
|
843 |
-
msgid "Do you need a custom feature?
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: extension/AAM_My_Feature/ui.phtml:
|
847 |
-
msgid "
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: extension/AAM_My_Feature/ui.phtml:
|
851 |
-
msgid "
|
852 |
msgstr ""
|
853 |
|
854 |
#: extension/AAM_Plus_Package/ui.phtml:24
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: AAM\n"
|
4 |
+
"POT-Creation-Date: 2014-05-04 19:41-0500\n"
|
5 |
"PO-Revision-Date: \n"
|
6 |
"Last-Translator: WPAAM <support@wpaam.com>\n"
|
7 |
"Language-Team: WP AAM <support@wpaam.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-Generator: Poedit 1.6.5\n"
|
13 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
"X-Poedit-KeywordsList: __\n"
|
16 |
"X-Poedit-Basepath: d:\\xampp\\htdocs\\aam\\wp-content\\plugins\\aam\\\n"
|
17 |
"X-Poedit-SearchPath-0: .\n"
|
18 |
|
19 |
+
#: aam.php:404 aam.php:412 aam.php:439
|
20 |
msgid "Access denied"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: aam.php:927 aam.php:928
|
24 |
msgid "AAM"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: aam.php:939 aam.php:940
|
28 |
msgid "Access Control"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: aam.php:949 aam.php:950
|
32 |
msgid "ConfigPress"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: aam.php:959 aam.php:960
|
36 |
msgid "Extensions"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: application/core/repository.php:261
|
40 |
msgid "Failed to Remove Extension"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: application/core/repository.php:306
|
44 |
msgid "Invalid License Key"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: application/core/repository.php:309
|
48 |
msgid "Failed to write file to wp-content/aam folder"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: application/core/repository.php:313
|
52 |
msgid "Failed to reach the WPAAM Server"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: application/core/repository.php:329
|
56 |
msgid "Failed to insert extension to extension folder"
|
57 |
msgstr ""
|
58 |
|
76 |
msgid "Miscellaneous"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: application/view/extension.php:100
|
80 |
msgid "Folder advanced-access-manager/extension is not writable"
|
81 |
msgstr ""
|
82 |
|
113 |
msgstr ""
|
114 |
|
115 |
#: application/view/manager.php:145 application/view/tmpl/capability.phtml:17
|
116 |
+
#: application/view/tmpl/control_area.phtml:47
|
117 |
+
#: application/view/tmpl/control_area.phtml:94
|
118 |
+
#: application/view/tmpl/control_area.phtml:148
|
119 |
+
#: application/view/tmpl/control_area.phtml:199
|
120 |
#: extension/AAM_Plus_Package/ui.phtml:28
|
121 |
#: extension/AAM_Plus_Package/ui.phtml:60
|
122 |
#: extension/AAM_Plus_Package/ui.phtml:93
|
132 |
msgid "Event Manager"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: application/view/manager.php:241
|
136 |
msgid "You are not allowed to manage any AAM Features."
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: application/view/manager.php:820
|
140 |
msgid "Rollback Settings"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: application/view/manager.php:821
|
144 |
msgid "Cancel"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: application/view/manager.php:822
|
148 |
msgid "Send E-mail"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: application/view/manager.php:823 application/view/manager.php:829
|
152 |
msgid "Add New Role"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: application/view/manager.php:824
|
156 |
msgid "Manage"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: application/view/manager.php:825
|
160 |
msgid "Edit"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: application/view/manager.php:826
|
164 |
msgid "Delete"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: application/view/manager.php:827
|
168 |
msgid "Filtered"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: application/view/manager.php:828
|
172 |
msgid "Clear"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: application/view/manager.php:830
|
176 |
msgid "Save Changes"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: application/view/manager.php:831
|
180 |
#, php-format
|
181 |
msgid ""
|
182 |
"System detected %d user(s) with this role. All Users with Role <b>%s</b> "
|
183 |
"will be deleted automatically!"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: application/view/manager.php:832
|
187 |
#, php-format
|
188 |
msgid "Are you sure that you want to delete role <b>%s</b>?"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: application/view/manager.php:833 application/view/tmpl/role.phtml:53
|
192 |
msgid "Delete Role"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: application/view/manager.php:834
|
196 |
msgid "Add User"
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: application/view/manager.php:835
|
200 |
msgid "Filter Users"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: application/view/manager.php:836 application/view/manager.php:852
|
204 |
msgid "Refresh List"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: application/view/manager.php:837
|
208 |
msgid "Block"
|
209 |
msgstr ""
|
210 |
|
211 |
+
#: application/view/manager.php:838
|
212 |
#, php-format
|
213 |
msgid "Are you sure you want to delete user <b>%s</b>?"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: application/view/manager.php:839
|
217 |
msgid "Filter Capabilities by Category"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: application/view/manager.php:840 application/view/tmpl/capability.phtml:47
|
221 |
msgid "Inherit Capabilities"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: application/view/manager.php:841 application/view/tmpl/capability.phtml:62
|
225 |
msgid "Add New Capability"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: application/view/manager.php:842
|
229 |
#, php-format
|
230 |
msgid "Are you sure that you want to delete capability <b>%s</b>?"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: application/view/manager.php:843 application/view/tmpl/capability.phtml:81
|
234 |
msgid "Delete Capability"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: application/view/manager.php:844
|
238 |
msgid "Select Role"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: application/view/manager.php:845
|
242 |
msgid "Add Capability"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: application/view/manager.php:846
|
246 |
msgid "Add Event"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: application/view/manager.php:847
|
250 |
msgid "Edit Event"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: application/view/manager.php:848 application/view/manager.php:850
|
254 |
#: application/view/tmpl/event.phtml:105
|
255 |
msgid "Delete Event"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: application/view/manager.php:849
|
259 |
msgid "Save Event"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: application/view/manager.php:851
|
263 |
msgid "Filter Posts by Post Type"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: application/view/manager.php:853 application/view/tmpl/manager.phtml:63
|
267 |
msgid "Restore Default"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: application/view/manager.php:854
|
271 |
msgid "Apply"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: application/view/manager.php:855
|
275 |
msgid "Edit Term"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: application/view/manager.php:856
|
279 |
msgid "Manager Access"
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: application/view/manager.php:857
|
283 |
msgid "Unlock Default Accesss Control"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: application/view/manager.php:858
|
287 |
msgid "Close"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: application/view/manager.php:859
|
291 |
msgid "Edit Role"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: application/view/manager.php:860
|
295 |
msgid "Restore Default Capabilities"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: application/view/manager.php:861
|
299 |
#, php-format
|
300 |
msgid "Are you sure you want to delete <b>%s</b>?"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: application/view/manager.php:862
|
304 |
#, php-format
|
305 |
msgid "Are you sure you want to move <b>%s</b> to trash?"
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: application/view/manager.php:863 application/view/tmpl/post.phtml:27
|
309 |
msgid "Delete Post"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: application/view/manager.php:864
|
313 |
msgid "Delete Permanently"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: application/view/manager.php:865
|
317 |
msgid "Trash Post"
|
318 |
msgstr ""
|
319 |
|
320 |
+
#: application/view/manager.php:866
|
321 |
msgid "Restore Default Access"
|
322 |
msgstr ""
|
323 |
|
324 |
+
#: application/view/manager.php:867
|
325 |
msgid "Duplicate"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: application/view/manager.php:868
|
329 |
msgid "Actions Locked"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: application/view/manager.php:869
|
333 |
+
msgid ""
|
334 |
+
"<h3>AAM Documentation</h3><div class=\"inner\">Find more information about "
|
335 |
+
"Advanced Access Manager here.</div>"
|
336 |
+
msgstr ""
|
337 |
+
|
338 |
#: application/view/metabox.php:191
|
339 |
msgid "Dashboard Widgets"
|
340 |
msgstr ""
|
359 |
msgid "Folder wp-content/aam is not writable"
|
360 |
msgstr ""
|
361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
#: extension/AAM_Activity_Log/activity.php:98
|
363 |
msgid "System Login"
|
364 |
msgstr ""
|
375 |
msgid "Activity Log"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: extension/AAM_Activity_Log/extension.php:177
|
379 |
msgid "Clear Logs"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: extension/AAM_Activity_Log/extension.php:178
|
383 |
msgid "Get More"
|
384 |
msgstr ""
|
385 |
|
407 |
msgid "My Feature"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: extension/AAM_Plus_Package/extension.php:168
|
411 |
msgid "Comments"
|
412 |
msgstr ""
|
413 |
|
460 |
#: application/view/tmpl/extension.phtml:15
|
461 |
#: application/view/tmpl/extension.phtml:148
|
462 |
#: application/view/tmpl/extension.phtml:167
|
463 |
+
#: application/view/tmpl/extension.phtml:187
|
464 |
#: application/view/tmpl/manager.phtml:17
|
465 |
+
#: application/view/tmpl/manager.phtml:38
|
466 |
+
#: application/view/tmpl/manager.phtml:57
|
467 |
+
#: application/view/tmpl/manager.phtml:87
|
468 |
msgid "Click to toggle"
|
469 |
msgstr ""
|
470 |
|
474 |
|
475 |
#: application/view/tmpl/configpress.phtml:36
|
476 |
#: application/view/tmpl/extension.phtml:150
|
477 |
+
#: application/view/tmpl/manager.phtml:40
|
478 |
msgid "AAM Warnings"
|
479 |
msgstr ""
|
480 |
|
481 |
#: application/view/tmpl/configpress.phtml:55
|
482 |
+
#: application/view/tmpl/manager.phtml:59
|
483 |
msgid "Control Panel"
|
484 |
msgstr ""
|
485 |
|
486 |
#: application/view/tmpl/configpress.phtml:59
|
487 |
+
#: application/view/tmpl/manager.phtml:64
|
|
|
|
|
|
|
|
|
488 |
msgid "Save"
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: application/view/tmpl/configpress.phtml:62
|
492 |
+
#: application/view/tmpl/manager.phtml:67
|
493 |
msgid "Follow @wpaam"
|
494 |
msgstr ""
|
495 |
|
496 |
+
#: application/view/tmpl/configpress.phtml:62
|
497 |
+
#: application/view/tmpl/manager.phtml:67
|
498 |
msgid "Follow"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: application/view/tmpl/configpress.phtml:63
|
502 |
+
#: application/view/tmpl/manager.phtml:68
|
503 |
msgid "Help Forum"
|
504 |
msgstr ""
|
505 |
|
506 |
+
#: application/view/tmpl/configpress.phtml:63
|
507 |
+
#: application/view/tmpl/manager.phtml:68
|
508 |
msgid "Help"
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: application/view/tmpl/configpress.phtml:64
|
512 |
+
#: application/view/tmpl/manager.phtml:69
|
513 |
+
#: application/view/tmpl/manager.phtml:77
|
514 |
msgid "E-mail Us"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: application/view/tmpl/configpress.phtml:65
|
518 |
+
#: application/view/tmpl/manager.phtml:70
|
519 |
msgid "Rate AAM"
|
520 |
msgstr ""
|
521 |
|
522 |
+
#: application/view/tmpl/configpress.phtml:65
|
523 |
+
#: application/view/tmpl/manager.phtml:70
|
524 |
msgid "Rate Us"
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: application/view/tmpl/control_area.phtml:43
|
528 |
+
#: application/view/tmpl/control_area.phtml:90
|
529 |
+
#: application/view/tmpl/control_area.phtml:142
|
530 |
+
#: application/view/tmpl/control_area.phtml:193
|
531 |
msgid "Access"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: application/view/tmpl/control_area.phtml:48
|
535 |
+
#: application/view/tmpl/control_area.phtml:95
|
536 |
+
#: application/view/tmpl/control_area.phtml:149
|
537 |
+
#: application/view/tmpl/control_area.phtml:200
|
538 |
#: extension/AAM_Plus_Package/ui.phtml:29
|
539 |
#: extension/AAM_Plus_Package/ui.phtml:61
|
540 |
#: extension/AAM_Plus_Package/ui.phtml:94
|
542 |
msgid "Restrict"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: application/view/tmpl/control_area.phtml:140
|
546 |
+
#: application/view/tmpl/control_area.phtml:191
|
547 |
#, php-format
|
548 |
msgid "All %s in Term"
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: application/view/tmpl/control_area.phtml:239
|
552 |
msgid "Get AAM Plus Package"
|
553 |
msgstr ""
|
554 |
|
659 |
msgid "Connect with AAM"
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: application/view/tmpl/extension.phtml:189
|
663 |
+
msgid "Development License"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
+
#: application/view/tmpl/extension.phtml:193
|
667 |
+
msgid ""
|
668 |
+
"Become a member of <b>AAM Community</b>. Obtain <b>Development License</b> "
|
669 |
+
"today for $119 and get access to all extensions that are available today and "
|
670 |
+
"will be developed witin a year."
|
671 |
+
msgstr ""
|
672 |
+
|
673 |
+
#: application/view/tmpl/extension.phtml:196
|
674 |
+
msgid "Read More"
|
675 |
+
msgstr ""
|
676 |
+
|
677 |
+
#: application/view/tmpl/manager.phtml:63
|
678 |
msgid "Default"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: application/view/tmpl/manager.phtml:74
|
682 |
msgid "Undo Change"
|
683 |
msgstr ""
|
684 |
|
685 |
+
#: application/view/tmpl/manager.phtml:75
|
686 |
msgid "Would your like to role back current settings?"
|
687 |
msgstr ""
|
688 |
|
689 |
+
#: application/view/tmpl/manager.phtml:78
|
690 |
msgid "Our E-mail address is <b>support@wpaam.com</b>"
|
691 |
msgstr ""
|
692 |
|
693 |
+
#: application/view/tmpl/manager.phtml:89
|
694 |
msgid "Control Manager"
|
695 |
msgstr ""
|
696 |
|
828 |
msgstr ""
|
829 |
|
830 |
#: extension/AAM_My_Feature/ui.phtml:13
|
831 |
+
msgid "Do you need a custom feature?"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: extension/AAM_My_Feature/ui.phtml:15
|
835 |
+
msgid "Create your own extension "
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: extension/AAM_My_Feature/ui.phtml:16
|
839 |
+
msgid "or ask us and we will develop it for you."
|
840 |
msgstr ""
|
841 |
|
842 |
#: extension/AAM_Plus_Package/ui.phtml:24
|
media/css/aam.css
CHANGED
@@ -102,6 +102,189 @@
|
|
102 |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
103 |
}
|
104 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
.clear{
|
107 |
line-height: 0;
|
@@ -339,6 +522,7 @@
|
|
339 |
|
340 |
.control-manager-content{
|
341 |
border-top: 1px solid #F5F5F5;
|
|
|
342 |
}
|
343 |
|
344 |
/**
|
@@ -356,97 +540,6 @@
|
|
356 |
background-image: url('images/cmanager/role-active.png');
|
357 |
}
|
358 |
|
359 |
-
.role-top-actions{
|
360 |
-
float: right;
|
361 |
-
display: inline-table;
|
362 |
-
width: auto;
|
363 |
-
text-align: right;
|
364 |
-
}
|
365 |
-
|
366 |
-
.role-top-action{
|
367 |
-
width: 24px;
|
368 |
-
height: 24px;
|
369 |
-
display: table-cell;
|
370 |
-
text-indent: -9999px;
|
371 |
-
padding-right: 10px;
|
372 |
-
background-repeat: no-repeat;
|
373 |
-
background-position: center;
|
374 |
-
}
|
375 |
-
|
376 |
-
.role-top-action-add{
|
377 |
-
background-image: url('images/cmanager/add.png');
|
378 |
-
}
|
379 |
-
|
380 |
-
.role-top-action-add:hover{
|
381 |
-
background-image: url('images/cmanager/add-active.png');
|
382 |
-
}
|
383 |
-
|
384 |
-
.role-top-action-add-active{
|
385 |
-
background-image: url('images/cmanager/add-active.png');
|
386 |
-
}
|
387 |
-
|
388 |
-
.role-actions{
|
389 |
-
width: 100%;
|
390 |
-
display: table;
|
391 |
-
}
|
392 |
-
|
393 |
-
.role-action{
|
394 |
-
width: 16px;
|
395 |
-
height: 16px;
|
396 |
-
display: table-cell;
|
397 |
-
text-indent: -9999px;
|
398 |
-
background-repeat: no-repeat;
|
399 |
-
background-position: center;
|
400 |
-
}
|
401 |
-
|
402 |
-
.role-action-edit{
|
403 |
-
background-image: url('images/cmanager/edit.png');
|
404 |
-
}
|
405 |
-
|
406 |
-
.role-action-edit:hover{
|
407 |
-
background-image: url('images/cmanager/edit-active.png');
|
408 |
-
}
|
409 |
-
|
410 |
-
.role-action-edit-active{
|
411 |
-
background-image: url('images/cmanager/edit-active.png');
|
412 |
-
}
|
413 |
-
|
414 |
-
.role-action-delete{
|
415 |
-
background-image: url('images/cmanager/delete.png');
|
416 |
-
}
|
417 |
-
|
418 |
-
.role-action-delete-active{
|
419 |
-
background-image: url('images/cmanager/delete-active.png');
|
420 |
-
}
|
421 |
-
|
422 |
-
.role-action-delete:hover{
|
423 |
-
background-image: url('images/cmanager/delete-active.png');
|
424 |
-
}
|
425 |
-
|
426 |
-
.role-action-manage{
|
427 |
-
background-image: url('images/cmanager/settings.png');
|
428 |
-
}
|
429 |
-
|
430 |
-
.role-action-manage-active{
|
431 |
-
background-image: url('images/cmanager/settings-active.png');
|
432 |
-
}
|
433 |
-
|
434 |
-
.role-action-manage:hover{
|
435 |
-
background-image: url('images/cmanager/settings-active.png');
|
436 |
-
}
|
437 |
-
|
438 |
-
.role-action-duplicate{
|
439 |
-
background-image: url('images/cmanager/duplicate.png');
|
440 |
-
}
|
441 |
-
|
442 |
-
.role-action-duplicate-active{
|
443 |
-
background-image: url('images/cmanager/duplicate-active.png');
|
444 |
-
}
|
445 |
-
|
446 |
-
.role-action-duplicate:hover{
|
447 |
-
background-image: url('images/cmanager/duplicate-active.png');
|
448 |
-
}
|
449 |
-
|
450 |
/** USER MANAGER STYLES */
|
451 |
.manager-item-user{
|
452 |
background-image: url('images/cmanager/user.png');
|
@@ -456,133 +549,6 @@
|
|
456 |
background-image: url('images/cmanager/user-active.png');
|
457 |
}
|
458 |
|
459 |
-
.user-top-actions{
|
460 |
-
float: right;
|
461 |
-
display: inline-table;
|
462 |
-
width: auto;
|
463 |
-
text-align: right;
|
464 |
-
}
|
465 |
-
|
466 |
-
.user-top-action{
|
467 |
-
width: 24px;
|
468 |
-
height: 24px;
|
469 |
-
display: table-cell;
|
470 |
-
text-indent: -9999px;
|
471 |
-
padding-right: 10px;
|
472 |
-
background-repeat: no-repeat;
|
473 |
-
background-position: center;
|
474 |
-
}
|
475 |
-
|
476 |
-
.user-top-action-add{
|
477 |
-
background-image: url('images/cmanager/add.png');
|
478 |
-
}
|
479 |
-
|
480 |
-
.user-top-action-add:hover{
|
481 |
-
background-image: url('images/cmanager/add-active.png');
|
482 |
-
}
|
483 |
-
|
484 |
-
.user-top-action-filter{
|
485 |
-
background-image: url('images/cmanager/filter.png');
|
486 |
-
}
|
487 |
-
|
488 |
-
.user-top-action-filter:hover{
|
489 |
-
background-image: url('images/cmanager/filter-active.png');
|
490 |
-
}
|
491 |
-
|
492 |
-
.user-top-action-filter-active{
|
493 |
-
background-image: url('images/cmanager/filter-active.png');
|
494 |
-
}
|
495 |
-
|
496 |
-
.user-top-action-refresh{
|
497 |
-
background-image: url('images/cmanager/refresh.png');
|
498 |
-
}
|
499 |
-
|
500 |
-
.user-top-action-refresh:hover{
|
501 |
-
background-image: url('images/cmanager/refresh-active.png');
|
502 |
-
}
|
503 |
-
|
504 |
-
.user-actions{
|
505 |
-
width: 100%;
|
506 |
-
display: table;
|
507 |
-
}
|
508 |
-
|
509 |
-
.user-action{
|
510 |
-
width: 16px;
|
511 |
-
height: 16px;
|
512 |
-
display: table-cell;
|
513 |
-
text-indent: -9999px;
|
514 |
-
background-repeat: no-repeat;
|
515 |
-
background-position: center;
|
516 |
-
}
|
517 |
-
|
518 |
-
.user-action-edit{
|
519 |
-
background-image: url('images/cmanager/edit-user.png');
|
520 |
-
}
|
521 |
-
|
522 |
-
.user-action-edit-active{
|
523 |
-
background-image: url('images/cmanager/edit-user-active.png');
|
524 |
-
}
|
525 |
-
|
526 |
-
.user-action-edit:hover{
|
527 |
-
background-image: url('images/cmanager/edit-user-active.png');
|
528 |
-
}
|
529 |
-
|
530 |
-
.user-action-block{
|
531 |
-
background-image: url('images/cmanager/block-user.png');
|
532 |
-
}
|
533 |
-
|
534 |
-
.user-action-block-active{
|
535 |
-
background-image: url('images/cmanager/block-user-active.png');
|
536 |
-
}
|
537 |
-
|
538 |
-
.user-action-block:hover{
|
539 |
-
background-image: url('images/cmanager/block-user-active.png');
|
540 |
-
}
|
541 |
-
|
542 |
-
.user-action-restore{
|
543 |
-
background-image: url('images/cmanager/restore.png');
|
544 |
-
}
|
545 |
-
|
546 |
-
.user-action-restore:hover{
|
547 |
-
background-image: url('images/cmanager/restore-active.png');
|
548 |
-
}
|
549 |
-
|
550 |
-
.user-action-delete{
|
551 |
-
background-image: url('images/cmanager/delete.png');
|
552 |
-
}
|
553 |
-
|
554 |
-
.user-action-delete-active{
|
555 |
-
background-image: url('images/cmanager/delete-active.png');
|
556 |
-
}
|
557 |
-
|
558 |
-
.user-action-delete:hover{
|
559 |
-
background-image: url('images/cmanager/delete-active.png');
|
560 |
-
}
|
561 |
-
|
562 |
-
.user-action-manage{
|
563 |
-
background-image: url('images/cmanager/settings.png');
|
564 |
-
}
|
565 |
-
|
566 |
-
.user-action-manage-active{
|
567 |
-
background-image: url('images/cmanager/settings-active.png');
|
568 |
-
}
|
569 |
-
|
570 |
-
.user-action-manage:hover{
|
571 |
-
background-image: url('images/cmanager/settings-active.png');
|
572 |
-
}
|
573 |
-
|
574 |
-
.user-action-select{
|
575 |
-
background-image: url('images/cmanager/select.png');
|
576 |
-
}
|
577 |
-
|
578 |
-
.user-action-select:hover{
|
579 |
-
background-image: url('images/cmanager/select-active.png');
|
580 |
-
}
|
581 |
-
|
582 |
-
.user-action-locked{
|
583 |
-
background-image: url('images/cmanager/lock.png');
|
584 |
-
}
|
585 |
-
|
586 |
.user-settings{
|
587 |
border: 1px solid #E2E4FF;
|
588 |
width: 100%;
|
@@ -607,6 +573,13 @@
|
|
607 |
border: 0px solid transparent;
|
608 |
}
|
609 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
|
611 |
/** VISITOR MANAGER STYLES */
|
612 |
.manager-item-visitor{
|
@@ -631,53 +604,6 @@
|
|
631 |
|
632 |
|
633 |
/** ADMIN MENU STYLES */
|
634 |
-
.menu-top-actions{
|
635 |
-
padding: 2px 0;
|
636 |
-
width: 100%;
|
637 |
-
margin-bottom: 10px;
|
638 |
-
text-align: right;
|
639 |
-
position: relative;
|
640 |
-
}
|
641 |
-
|
642 |
-
.menu-top-action-item{
|
643 |
-
width:24px;
|
644 |
-
height: 24px;
|
645 |
-
display: inline-block;
|
646 |
-
background-repeat: no-repeat;
|
647 |
-
background-position: center;
|
648 |
-
text-indent: -9999px;
|
649 |
-
text-decoration: none;
|
650 |
-
}
|
651 |
-
|
652 |
-
.menu-top-action-sort-description{
|
653 |
-
border: 1px solid #257DA6;
|
654 |
-
height: 24px;
|
655 |
-
position: absolute;
|
656 |
-
left: 0px;
|
657 |
-
width: 80%;
|
658 |
-
text-align: left;
|
659 |
-
padding-left: 10px;
|
660 |
-
vertical-align: middle;
|
661 |
-
display: inline-table;
|
662 |
-
border-radius: 4px;
|
663 |
-
font-family: 'Lucida Console', Monaco, monospace;
|
664 |
-
visibility: hidden;
|
665 |
-
font-weight: bold;
|
666 |
-
}
|
667 |
-
|
668 |
-
.menu-top-action-sort-description span{
|
669 |
-
display: table-cell;
|
670 |
-
vertical-align: middle;
|
671 |
-
}
|
672 |
-
|
673 |
-
.menu-top-action-sort{
|
674 |
-
background-image: url('images/menu/sorting.png');
|
675 |
-
}
|
676 |
-
|
677 |
-
.menu-top-action-sort-active{
|
678 |
-
background-image: url('images/menu/sorting-active.png');
|
679 |
-
}
|
680 |
-
|
681 |
.menu-item-action{
|
682 |
background-repeat: no-repeat;
|
683 |
background-position: center;
|
@@ -795,41 +721,14 @@
|
|
795 |
background-image: url('images/metabox/link-active.png');
|
796 |
}
|
797 |
|
798 |
-
.metabox-top-
|
799 |
-
width:24px;
|
800 |
-
height: 24px;
|
801 |
-
display: block;
|
802 |
-
background-repeat: no-repeat;
|
803 |
-
background-position: center;
|
804 |
-
text-indent: -9999px;
|
805 |
-
text-decoration: none;
|
806 |
-
}
|
807 |
-
|
808 |
-
.metabox-top-action-add{
|
809 |
-
background-image: url('images/metabox/add.png');
|
810 |
-
float: left;
|
811 |
-
margin-left: 10px;
|
812 |
-
}
|
813 |
-
|
814 |
-
.metabox-top-action-add:hover{
|
815 |
-
background-image: url('images/metabox/add-active.png');
|
816 |
-
}
|
817 |
-
|
818 |
-
.metabox-top-action-add-active{
|
819 |
-
background-image: url('images/metabox/add-active.png');
|
820 |
-
float: left;
|
821 |
margin-left: 10px;
|
|
|
822 |
}
|
823 |
|
824 |
-
.metabox-top-
|
825 |
-
background-position: right center;
|
826 |
-
background-image: url('images/metabox/refresh.png');
|
827 |
float: right;
|
828 |
-
|
829 |
-
|
830 |
-
.metabox-top-action-refresh:hover{
|
831 |
-
background-position: right center;
|
832 |
-
background-image: url('images/metabox/refresh-active.png');
|
833 |
}
|
834 |
|
835 |
.metabox-group{
|
@@ -883,71 +782,6 @@
|
|
883 |
}
|
884 |
|
885 |
/** CAPABILITIES STYLES */
|
886 |
-
.capability-top-actions{
|
887 |
-
float: right;
|
888 |
-
display: inline-table;
|
889 |
-
width: auto;
|
890 |
-
text-align: right;
|
891 |
-
}
|
892 |
-
|
893 |
-
.capability-top-action{
|
894 |
-
width: 24px;
|
895 |
-
height: 24px;
|
896 |
-
display: table-cell;
|
897 |
-
text-indent: -9999px;
|
898 |
-
padding-right: 10px;
|
899 |
-
background-repeat: no-repeat;
|
900 |
-
background-position: center;
|
901 |
-
}
|
902 |
-
|
903 |
-
.capability-top-action-add{
|
904 |
-
background-image: url('images/capability/add.png');
|
905 |
-
}
|
906 |
-
|
907 |
-
.capability-top-action-add:hover{
|
908 |
-
background-image: url('images/capability/add-active.png');
|
909 |
-
}
|
910 |
-
|
911 |
-
.capability-top-action-add-active{
|
912 |
-
background-image: url('images/capability/add-active.png');
|
913 |
-
}
|
914 |
-
|
915 |
-
.capability-top-action-copy{
|
916 |
-
background-image: url('images/capability/copy.png');
|
917 |
-
}
|
918 |
-
|
919 |
-
.capability-top-action-copy:hover{
|
920 |
-
background-image: url('images/capability/copy-active.png');
|
921 |
-
}
|
922 |
-
|
923 |
-
.capability-top-action-copy-active{
|
924 |
-
background-image: url('images/capability/copy-active.png');
|
925 |
-
}
|
926 |
-
|
927 |
-
.capability-top-action-filter{
|
928 |
-
background-image: url('images/capability/filter.png');
|
929 |
-
}
|
930 |
-
|
931 |
-
.capability-top-action-filter:hover{
|
932 |
-
background-image: url('images/capability/filter-active.png');
|
933 |
-
}
|
934 |
-
|
935 |
-
.capability-top-action-filter-active{
|
936 |
-
background-image: url('images/capability/filter-active.png');
|
937 |
-
}
|
938 |
-
|
939 |
-
.capability-top-action-restore{
|
940 |
-
background-image: url('images/capability/restore.png');
|
941 |
-
}
|
942 |
-
|
943 |
-
.capability-top-action-restore:hover{
|
944 |
-
background-image: url('images/capability/restore-active.png');
|
945 |
-
}
|
946 |
-
|
947 |
-
.capability-top-action-restore-running{
|
948 |
-
background-image: url('images/capability/ajax-loader.gif');
|
949 |
-
}
|
950 |
-
|
951 |
.capability-actions{
|
952 |
display: table;
|
953 |
width: 100%;
|
@@ -1031,43 +865,6 @@ a.capability-action{
|
|
1031 |
|
1032 |
|
1033 |
/** POSTS & CATEGORIES STYLES */
|
1034 |
-
.post-top-actions{
|
1035 |
-
float: right;
|
1036 |
-
display: inline-table;
|
1037 |
-
width: auto;
|
1038 |
-
text-align: right;
|
1039 |
-
}
|
1040 |
-
|
1041 |
-
.post-top-action{
|
1042 |
-
width: 24px;
|
1043 |
-
height: 24px;
|
1044 |
-
display: table-cell;
|
1045 |
-
text-indent: -9999px;
|
1046 |
-
padding-right: 10px;
|
1047 |
-
background-repeat: no-repeat;
|
1048 |
-
background-position: center;
|
1049 |
-
}
|
1050 |
-
|
1051 |
-
.post-top-action-filter{
|
1052 |
-
background-image: url('images/post/filter.png');
|
1053 |
-
}
|
1054 |
-
|
1055 |
-
.post-top-action-filter:hover{
|
1056 |
-
background-image: url('images/post/filter-active.png');
|
1057 |
-
}
|
1058 |
-
|
1059 |
-
.post-top-action-filter-active{
|
1060 |
-
background-image: url('images/post/filter-active.png');
|
1061 |
-
}
|
1062 |
-
|
1063 |
-
.post-top-action-refresh{
|
1064 |
-
background-image: url('images/post/refresh.png');
|
1065 |
-
}
|
1066 |
-
|
1067 |
-
.post-top-action-refresh:hover{
|
1068 |
-
background-image: url('images/post/refresh-active.png');
|
1069 |
-
}
|
1070 |
-
|
1071 |
.post-type-post{
|
1072 |
height: 16px;
|
1073 |
background: transparent url('images/post/post.png') no-repeat left center;
|
@@ -1076,78 +873,10 @@ a.capability-action{
|
|
1076 |
text-decoration: none;
|
1077 |
}
|
1078 |
|
1079 |
-
.post-
|
1080 |
-
display: table;
|
1081 |
-
width: 100%;
|
1082 |
-
}
|
1083 |
-
|
1084 |
-
.post-action{
|
1085 |
-
width: 16px;
|
1086 |
-
height: 16px;
|
1087 |
-
display: table-cell;
|
1088 |
-
padding: 2px 0;
|
1089 |
-
background-repeat: no-repeat;
|
1090 |
-
background-position: center;
|
1091 |
text-align: center;
|
1092 |
}
|
1093 |
|
1094 |
-
.post-action-manage{
|
1095 |
-
background-image: url('images/post/settings.png');
|
1096 |
-
}
|
1097 |
-
|
1098 |
-
.post-action-manage:hover{
|
1099 |
-
background-image: url('images/post/settings-active.png');
|
1100 |
-
}
|
1101 |
-
|
1102 |
-
.post-action-manage-active{
|
1103 |
-
background-image: url('images/post/settings-active.png');
|
1104 |
-
}
|
1105 |
-
|
1106 |
-
.post-action-edit{
|
1107 |
-
background-image: url('images/post/edit.png');
|
1108 |
-
}
|
1109 |
-
|
1110 |
-
.post-action-edit:hover{
|
1111 |
-
background-image: url('images/post/edit-active.png');
|
1112 |
-
}
|
1113 |
-
|
1114 |
-
.post-action-edit-active{
|
1115 |
-
background-image: url('images/post/edit-active.png');
|
1116 |
-
}
|
1117 |
-
|
1118 |
-
.post-action-restore{
|
1119 |
-
background-image: url('images/post/restore.png');
|
1120 |
-
}
|
1121 |
-
|
1122 |
-
.post-action-restore:hover{
|
1123 |
-
background-image: url('images/post/restore-active.png');
|
1124 |
-
}
|
1125 |
-
|
1126 |
-
.post-action-delete{
|
1127 |
-
background-image: url('images/post/delete.png');
|
1128 |
-
}
|
1129 |
-
|
1130 |
-
.post-action-delete:hover{
|
1131 |
-
background-image: url('images/post/delete-active.png');
|
1132 |
-
}
|
1133 |
-
|
1134 |
-
.post-action-delete-active{
|
1135 |
-
background-image: url('images/post/delete-active.png');
|
1136 |
-
}
|
1137 |
-
|
1138 |
-
.post-action-trash{
|
1139 |
-
background-image: url('images/post/trash.png');
|
1140 |
-
}
|
1141 |
-
|
1142 |
-
.post-action-trash:hover{
|
1143 |
-
background-image: url('images/post/trash-active.png');
|
1144 |
-
}
|
1145 |
-
|
1146 |
-
.post-action-trash-active{
|
1147 |
-
background-image: url('images/post/trash-active.png');
|
1148 |
-
}
|
1149 |
-
|
1150 |
-
|
1151 |
.post-action-lock{
|
1152 |
background-image: url('images/lock.png');
|
1153 |
}
|
@@ -1235,9 +964,10 @@ a.capability-action{
|
|
1235 |
display:inline-table;
|
1236 |
border-left: 1px solid #CCCCCC;
|
1237 |
vertical-align: middle;
|
|
|
1238 |
}
|
1239 |
|
1240 |
-
.post-breadcrumb-line-
|
1241 |
display: table-cell;
|
1242 |
width: 16px;
|
1243 |
height: 16px;
|
@@ -1245,26 +975,6 @@ a.capability-action{
|
|
1245 |
background-repeat: no-repeat;
|
1246 |
}
|
1247 |
|
1248 |
-
.post-breadcrumb-line-action-edit{
|
1249 |
-
background-image: url('images/post/edit.png');
|
1250 |
-
}
|
1251 |
-
|
1252 |
-
.post-breadcrumb-line-action-edit:hover{
|
1253 |
-
background-image: url('images/post/edit-active.png');
|
1254 |
-
}
|
1255 |
-
|
1256 |
-
.post-breadcrumb-line-action-manage{
|
1257 |
-
background-image: url('images/post/settings.png');
|
1258 |
-
}
|
1259 |
-
|
1260 |
-
.post-breadcrumb-line-action-manage:hover{
|
1261 |
-
background-image: url('images/post/settings-active.png');
|
1262 |
-
}
|
1263 |
-
|
1264 |
-
.post-breadcrumb-line-action-manage-active{
|
1265 |
-
background-image: url('images/post/settings-active.png');
|
1266 |
-
}
|
1267 |
-
|
1268 |
.post-breadcrumb-line-action-lock{
|
1269 |
background-image: url('images/lock.png');
|
1270 |
}
|
@@ -1282,6 +992,19 @@ a.capability-action{
|
|
1282 |
width: 100%;
|
1283 |
}
|
1284 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1285 |
.aam-lock-message span{
|
1286 |
font-weight: bold;
|
1287 |
vertical-align: middle;
|
@@ -1384,36 +1107,6 @@ a.aam-lock-big{
|
|
1384 |
|
1385 |
|
1386 |
/** EVENT MANAGER STYLES */
|
1387 |
-
.event-top-actions{
|
1388 |
-
float: right;
|
1389 |
-
display: inline-table;
|
1390 |
-
width: auto;
|
1391 |
-
text-align: right;
|
1392 |
-
}
|
1393 |
-
|
1394 |
-
.event-top-action{
|
1395 |
-
width: 24px;
|
1396 |
-
height: 24px;
|
1397 |
-
display: table-cell;
|
1398 |
-
text-indent: -9999px;
|
1399 |
-
padding-right: 10px;
|
1400 |
-
background-repeat: no-repeat;
|
1401 |
-
background-position: center;
|
1402 |
-
}
|
1403 |
-
|
1404 |
-
.event-top-action-add{
|
1405 |
-
background-image: url('images/event/add.png');
|
1406 |
-
}
|
1407 |
-
|
1408 |
-
.event-top-action-add:hover{
|
1409 |
-
background-image: url('images/event/add-active.png');
|
1410 |
-
}
|
1411 |
-
|
1412 |
-
.event-top-action-add-active{
|
1413 |
-
background-image: url('images/event/add-active.png');
|
1414 |
-
}
|
1415 |
-
|
1416 |
-
|
1417 |
.event-actions{
|
1418 |
display: table;
|
1419 |
width: 100%;
|
102 |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
103 |
}
|
104 |
|
105 |
+
.aam-icon{
|
106 |
+
text-indent: -9999px;
|
107 |
+
text-align: center;
|
108 |
+
background-repeat: no-repeat;
|
109 |
+
}
|
110 |
+
|
111 |
+
a.aam-icon{
|
112 |
+
outline: none;
|
113 |
+
display: inline-block;
|
114 |
+
}
|
115 |
+
|
116 |
+
.aam-icon span {
|
117 |
+
content: "";
|
118 |
+
display: block;
|
119 |
+
background-repeat: no-repeat;
|
120 |
+
opacity: 1;
|
121 |
+
-webkit-transition: opacity 0.5s;
|
122 |
+
-moz-transition: opacity 0.5s;
|
123 |
+
-o-transition: opacity 0.5s;
|
124 |
+
}
|
125 |
+
|
126 |
+
.aam-icon-medium span {
|
127 |
+
background-image: url('images/common/medium-iconset.png');
|
128 |
+
width: 24px;
|
129 |
+
height: 24px;
|
130 |
+
margin-left: calc(50% - 12px);
|
131 |
+
margin-left: -moz-calc(50% - 12px);
|
132 |
+
}
|
133 |
+
|
134 |
+
.aam-icon-medium:hover span {
|
135 |
+
opacity: 1;
|
136 |
+
}
|
137 |
+
|
138 |
+
.aam-icon-small span {
|
139 |
+
background-image: url('images/common/small-iconset.png');
|
140 |
+
width: 16px;
|
141 |
+
height: 16px;
|
142 |
+
margin-left: calc(50% - 8px);
|
143 |
+
margin-left: -moz-calc(50% - 8px);
|
144 |
+
}
|
145 |
+
|
146 |
+
.aam-icon-small:hover span{
|
147 |
+
opacity: 1;
|
148 |
+
}
|
149 |
+
|
150 |
+
.aam-icon-medium-active{
|
151 |
+
background-position-y: -24px !important;
|
152 |
+
}
|
153 |
+
|
154 |
+
.aam-icon-small-active{
|
155 |
+
background-position-y: -16px !important;
|
156 |
+
}
|
157 |
+
|
158 |
+
.aam-icon-add span{
|
159 |
+
background-position: 0 0;
|
160 |
+
}
|
161 |
+
|
162 |
+
.aam-icon-add:hover span{
|
163 |
+
background-position: 0 -24px;
|
164 |
+
}
|
165 |
+
|
166 |
+
.aam-icon-refresh span{
|
167 |
+
background-position: -24px 0px;
|
168 |
+
}
|
169 |
+
|
170 |
+
.aam-icon-refresh:hover span{
|
171 |
+
background-position: -24px -24px;
|
172 |
+
}
|
173 |
+
|
174 |
+
.aam-icon-filter span{
|
175 |
+
background-position: -48px 0px;
|
176 |
+
}
|
177 |
+
|
178 |
+
.aam-icon-filter:hover span{
|
179 |
+
background-position: -48px -24px;
|
180 |
+
}
|
181 |
+
|
182 |
+
.aam-icon-copy span{
|
183 |
+
background-position: -72px 0px;
|
184 |
+
}
|
185 |
+
|
186 |
+
.aam-icon-copy:hover span{
|
187 |
+
background-position: -72px -24px;
|
188 |
+
}
|
189 |
+
|
190 |
+
.aam-icon-restore span{
|
191 |
+
background-position: -96px 0px;
|
192 |
+
}
|
193 |
+
|
194 |
+
.aam-icon-restore:hover span{
|
195 |
+
background-position: -96px -24px;
|
196 |
+
}
|
197 |
+
|
198 |
+
.aam-medium-loader span{
|
199 |
+
background-image: url('images/common/medium-loader.gif');
|
200 |
+
background-position: 0 0 !important;
|
201 |
+
}
|
202 |
+
|
203 |
+
.aam-icon-manage span{
|
204 |
+
background-position: 0 0;
|
205 |
+
}
|
206 |
+
|
207 |
+
.aam-icon-manage:hover span{
|
208 |
+
background-position: 0 -16px;
|
209 |
+
}
|
210 |
+
|
211 |
+
.aam-icon-delete span{
|
212 |
+
background-position: -16px 0;
|
213 |
+
}
|
214 |
+
|
215 |
+
.aam-icon-delete:hover span{
|
216 |
+
background-position: -16px -16px;
|
217 |
+
}
|
218 |
+
|
219 |
+
.aam-icon-pen span{
|
220 |
+
background-position: -32px 0;
|
221 |
+
}
|
222 |
+
|
223 |
+
.aam-icon-pen:hover span{
|
224 |
+
background-position: -32px -16px;
|
225 |
+
}
|
226 |
+
|
227 |
+
.aam-icon-edit-user span{
|
228 |
+
background-position: -48px 0;
|
229 |
+
}
|
230 |
+
|
231 |
+
.aam-icon-edit-user:hover span{
|
232 |
+
background-position: -48px -16px;
|
233 |
+
}
|
234 |
+
|
235 |
+
.aam-icon-block span{
|
236 |
+
background-position: -64px 0;
|
237 |
+
}
|
238 |
+
|
239 |
+
.aam-icon-block:hover span{
|
240 |
+
background-position: -64px -16px;
|
241 |
+
}
|
242 |
+
|
243 |
+
.aam-icon-default span{
|
244 |
+
background-position: -80px 0;
|
245 |
+
}
|
246 |
+
|
247 |
+
.aam-icon-default:hover span{
|
248 |
+
background-position: -80px -16px;
|
249 |
+
}
|
250 |
+
|
251 |
+
.aam-icon-trash span{
|
252 |
+
background-position: -96px 0;
|
253 |
+
}
|
254 |
+
|
255 |
+
.aam-icon-trash:hover span{
|
256 |
+
background-position: -96px -16px;
|
257 |
+
}
|
258 |
+
|
259 |
+
.aam-icon-select span{
|
260 |
+
background-position: -112px 0;
|
261 |
+
}
|
262 |
+
|
263 |
+
.aam-icon-select:hover span{
|
264 |
+
background-position: -112px -16px;
|
265 |
+
}
|
266 |
+
|
267 |
+
.aam-list-top-actions{
|
268 |
+
float: right;
|
269 |
+
display: inline-table;
|
270 |
+
width: auto;
|
271 |
+
text-align: right;
|
272 |
+
}
|
273 |
+
|
274 |
+
.aam-list-top-actions a{
|
275 |
+
display: table-cell;
|
276 |
+
min-width: 30px;
|
277 |
+
}
|
278 |
+
|
279 |
+
.aam-list-row-actions{
|
280 |
+
width: 100%;
|
281 |
+
display: inline-table;
|
282 |
+
text-align: center;
|
283 |
+
}
|
284 |
+
|
285 |
+
.aam-list-row-actions .aam-icon{
|
286 |
+
display: table-cell;
|
287 |
+
}
|
288 |
|
289 |
.clear{
|
290 |
line-height: 0;
|
522 |
|
523 |
.control-manager-content{
|
524 |
border-top: 1px solid #F5F5F5;
|
525 |
+
visibility: hidden;
|
526 |
}
|
527 |
|
528 |
/**
|
540 |
background-image: url('images/cmanager/role-active.png');
|
541 |
}
|
542 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
543 |
/** USER MANAGER STYLES */
|
544 |
.manager-item-user{
|
545 |
background-image: url('images/cmanager/user.png');
|
549 |
background-image: url('images/cmanager/user-active.png');
|
550 |
}
|
551 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
552 |
.user-settings{
|
553 |
border: 1px solid #E2E4FF;
|
554 |
width: 100%;
|
573 |
border: 0px solid transparent;
|
574 |
}
|
575 |
|
576 |
+
.user-action-locked{
|
577 |
+
display: inline-block;
|
578 |
+
width:16px;
|
579 |
+
height: 16px;
|
580 |
+
background: transparent url('images/cmanager/lock.png') no-repeat center;
|
581 |
+
}
|
582 |
+
|
583 |
|
584 |
/** VISITOR MANAGER STYLES */
|
585 |
.manager-item-visitor{
|
604 |
|
605 |
|
606 |
/** ADMIN MENU STYLES */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
.menu-item-action{
|
608 |
background-repeat: no-repeat;
|
609 |
background-position: center;
|
721 |
background-image: url('images/metabox/link-active.png');
|
722 |
}
|
723 |
|
724 |
+
.metabox-top-actions .aam-icon-add{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
725 |
margin-left: 10px;
|
726 |
+
display: inline-block;
|
727 |
}
|
728 |
|
729 |
+
.metabox-top-actions .aam-icon-refresh{
|
|
|
|
|
730 |
float: right;
|
731 |
+
display: inline-block;
|
|
|
|
|
|
|
|
|
732 |
}
|
733 |
|
734 |
.metabox-group{
|
782 |
}
|
783 |
|
784 |
/** CAPABILITIES STYLES */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
785 |
.capability-actions{
|
786 |
display: table;
|
787 |
width: 100%;
|
865 |
|
866 |
|
867 |
/** POSTS & CATEGORIES STYLES */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
868 |
.post-type-post{
|
869 |
height: 16px;
|
870 |
background: transparent url('images/post/post.png') no-repeat left center;
|
873 |
text-decoration: none;
|
874 |
}
|
875 |
|
876 |
+
.post-action-check{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
text-align: center;
|
878 |
}
|
879 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
880 |
.post-action-lock{
|
881 |
background-image: url('images/lock.png');
|
882 |
}
|
964 |
display:inline-table;
|
965 |
border-left: 1px solid #CCCCCC;
|
966 |
vertical-align: middle;
|
967 |
+
text-align: center;
|
968 |
}
|
969 |
|
970 |
+
.post-breadcrumb-line-actions a{
|
971 |
display: table-cell;
|
972 |
width: 16px;
|
973 |
height: 16px;
|
975 |
background-repeat: no-repeat;
|
976 |
}
|
977 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
978 |
.post-breadcrumb-line-action-lock{
|
979 |
background-image: url('images/lock.png');
|
980 |
}
|
992 |
width: 100%;
|
993 |
}
|
994 |
|
995 |
+
.attachment-access-block{
|
996 |
+
border: 1px solid #257DA6;
|
997 |
+
border-radius: 4px;
|
998 |
+
-moz-border-radius: 4px;
|
999 |
+
-webkit-border-radius: 4px;
|
1000 |
+
padding-left: 22px;
|
1001 |
+
box-sizing: content-box;
|
1002 |
+
-moz-box-sizing: content-box;
|
1003 |
+
-webkit-box-sizing: content-box;
|
1004 |
+
background: transparent url('images/post/info-active.png') no-repeat 2px center;
|
1005 |
+
font-size: 0.8em;
|
1006 |
+
}
|
1007 |
+
|
1008 |
.aam-lock-message span{
|
1009 |
font-weight: bold;
|
1010 |
vertical-align: middle;
|
1107 |
|
1108 |
|
1109 |
/** EVENT MANAGER STYLES */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1110 |
.event-actions{
|
1111 |
display: table;
|
1112 |
width: 100%;
|
media/css/configpress.css
CHANGED
@@ -42,14 +42,6 @@
|
|
42 |
background-position: center top;
|
43 |
}
|
44 |
|
45 |
-
.cpanel-item-tutorial{
|
46 |
-
background-image: url('images/configpress/pdf.png');
|
47 |
-
}
|
48 |
-
|
49 |
-
.cpanel-item-tutorial:hover{
|
50 |
-
background-image: url('images/configpress/pdf-active.png');
|
51 |
-
}
|
52 |
-
|
53 |
.cpanel-item-save{
|
54 |
background-image: url('images/cpanel/save.png');
|
55 |
}
|
@@ -111,4 +103,4 @@
|
|
111 |
vertical-align: middle;
|
112 |
padding-left: 30px;
|
113 |
font-size: 0.9em;
|
114 |
-
}
|
42 |
background-position: center top;
|
43 |
}
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
.cpanel-item-save{
|
46 |
background-image: url('images/cpanel/save.png');
|
47 |
}
|
103 |
vertical-align: middle;
|
104 |
padding-left: 30px;
|
105 |
font-size: 0.9em;
|
106 |
+
}
|
media/css/images/capability/add-active.png
DELETED
Binary file
|
media/css/images/capability/add.png
DELETED
Binary file
|
media/css/images/capability/copy-active.png
DELETED
Binary file
|
media/css/images/capability/copy.png
DELETED
Binary file
|
media/css/images/capability/filter-active.png
DELETED
Binary file
|
media/css/images/capability/filter.png
DELETED
Binary file
|
media/css/images/capability/restore-active.png
DELETED
Binary file
|
media/css/images/capability/restore.png
DELETED
Binary file
|
media/css/images/capability/select-active.png
DELETED
Binary file
|
media/css/images/capability/select.png
DELETED
Binary file
|
media/css/images/cmanager/add-active.png
DELETED
Binary file
|
media/css/images/cmanager/add.png
DELETED
Binary file
|
media/css/images/cmanager/block-user-active.png
DELETED
Binary file
|
media/css/images/cmanager/block-user.png
DELETED
Binary file
|
media/css/images/cmanager/delete-active.png
DELETED
Binary file
|
media/css/images/cmanager/delete.png
DELETED
Binary file
|
media/css/images/cmanager/duplicate-active.png
DELETED
Binary file
|
media/css/images/cmanager/duplicate.png
DELETED
Binary file
|
media/css/images/cmanager/edit-active.png
DELETED
Binary file
|
media/css/images/cmanager/edit-user-active.png
DELETED
Binary file
|
media/css/images/cmanager/edit-user.png
DELETED
Binary file
|
media/css/images/cmanager/edit.png
DELETED
Binary file
|
media/css/images/cmanager/filter-active.png
DELETED
Binary file
|
media/css/images/cmanager/filter.png
DELETED
Binary file
|
media/css/images/cmanager/refresh-active.png
DELETED
Binary file
|
media/css/images/cmanager/refresh.png
DELETED
Binary file
|
media/css/images/cmanager/restore-active.png
DELETED
Binary file
|
media/css/images/cmanager/restore.png
DELETED
Binary file
|
media/css/images/cmanager/select-active.png
DELETED
Binary file
|
media/css/images/cmanager/select.png
DELETED
Binary file
|
media/css/images/cmanager/settings-active.png
DELETED
Binary file
|
media/css/images/cmanager/settings.png
DELETED
Binary file
|
media/css/images/common/add.png
ADDED
Binary file
|
media/css/images/common/medium-iconset.png
ADDED
Binary file
|
media/css/images/{capability/ajax-loader.gif → common/medium-loader.gif}
RENAMED
File without changes
|
media/css/images/common/small-iconset.png
ADDED
Binary file
|
media/css/images/configpress/pdf-active.png
DELETED
Binary file
|
media/css/images/configpress/pdf.png
DELETED
Binary file
|
media/css/images/event/add-active.png
DELETED
Binary file
|
media/css/images/event/add.png
DELETED
Binary file
|
media/css/images/metabox/add-active.png
DELETED
Binary file
|
media/css/images/metabox/add.png
DELETED
Binary file
|
media/css/images/metabox/refresh-active.png
DELETED
Binary file
|
media/css/images/metabox/refresh.png
DELETED
Binary file
|
media/css/images/post/delete-active.png
DELETED
Binary file
|
media/css/images/post/delete.png
DELETED
Binary file
|
media/css/images/post/edit-active.png
DELETED
Binary file
|
media/css/images/post/edit.png
DELETED
Binary file
|
media/css/images/post/filter-active.png
DELETED
Binary file
|
media/css/images/post/filter.png
DELETED
Binary file
|
media/css/images/post/refresh-active.png
DELETED
Binary file
|
media/css/images/post/refresh.png
DELETED
Binary file
|
media/css/images/post/restore-active.png
DELETED
Binary file
|
media/css/images/post/restore.png
DELETED
Binary file
|
media/css/images/post/settings-active.png
DELETED
Binary file
|
media/css/images/post/settings.png
DELETED
Binary file
|
media/css/images/post/trash-active.png
DELETED
Binary file
|
media/css/images/post/trash.png
DELETED
Binary file
|
media/js/aam.js
CHANGED
@@ -162,6 +162,38 @@ AAM.prototype.initUI = function() {
|
|
162 |
|
163 |
//Retrieve settings for default segment
|
164 |
this.retrieveSettings();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
};
|
166 |
|
167 |
/**
|
@@ -413,6 +445,9 @@ AAM.prototype.initControlManager = function() {
|
|
413 |
|
414 |
//by default load the Role Segment
|
415 |
this.loadSegment('role');
|
|
|
|
|
|
|
416 |
};
|
417 |
|
418 |
/**
|
@@ -428,10 +463,11 @@ AAM.prototype.initControlManager = function() {
|
|
428 |
* @access public
|
429 |
*/
|
430 |
AAM.prototype.loadSegment = function(segment) {
|
431 |
-
var _this = this;
|
432 |
//clear all active segments
|
433 |
jQuery('.control-manager a').each(function() {
|
434 |
-
|
|
|
|
|
435 |
});
|
436 |
|
437 |
//hide all segment contents from control manager
|
@@ -456,7 +492,9 @@ AAM.prototype.loadSegment = function(segment) {
|
|
456 |
}
|
457 |
|
458 |
//activate segment icon
|
459 |
-
|
|
|
|
|
460 |
};
|
461 |
|
462 |
/**
|
@@ -472,7 +510,7 @@ AAM.prototype.loadRoleSegment = function() {
|
|
472 |
jQuery('#role_manager_wrap').show();
|
473 |
if (this.segmentTables.roleList === null) {
|
474 |
this.segmentTables.roleList = jQuery('#role_list').dataTable({
|
475 |
-
sDom: "<'top'f<'
|
476 |
bServerSide: true,
|
477 |
sPaginationType: "full_numbers",
|
478 |
bAutoWidth: false,
|
@@ -501,13 +539,14 @@ AAM.prototype.loadRoleSegment = function() {
|
|
501 |
});
|
502 |
},
|
503 |
fnInitComplete: function() {
|
504 |
-
var add =
|
505 |
-
'
|
506 |
-
'
|
507 |
-
|
508 |
-
|
509 |
event.preventDefault();
|
510 |
-
_this.
|
|
|
511 |
//retrieve list of roles dynamically
|
512 |
jQuery('#parent_cap_role').addClass('input-dynamic');
|
513 |
jQuery('#parent_cap_role_holder').show();
|
@@ -531,13 +570,17 @@ AAM.prototype.loadRoleSegment = function() {
|
|
531 |
}
|
532 |
},
|
533 |
complete: function(){
|
534 |
-
jQuery('#parent_cap_role').removeClass(
|
|
|
|
|
535 |
}
|
536 |
});
|
537 |
_this.launchAddRoleDialog(this);
|
538 |
});
|
539 |
-
jQuery('#role_list_wrapper .
|
540 |
-
_this.initTooltip(
|
|
|
|
|
541 |
},
|
542 |
fnDrawCallback: function() {
|
543 |
jQuery('#role_list_wrapper .clear-table-filter').bind(
|
@@ -565,17 +608,16 @@ AAM.prototype.loadRoleSegment = function() {
|
|
565 |
],
|
566 |
fnRowCallback: function(nRow, aData) { //format data
|
567 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
568 |
-
'class': '
|
569 |
})); //
|
570 |
//add role attribute
|
571 |
jQuery(nRow).attr('role', aData[0]);
|
572 |
|
573 |
-
jQuery('.
|
574 |
-
|
575 |
-
'
|
576 |
-
'
|
577 |
-
|
578 |
-
}).bind('click', {
|
579 |
role: aData[0]
|
580 |
}, function(event) {
|
581 |
event.preventDefault();
|
@@ -587,38 +629,28 @@ AAM.prototype.loadRoleSegment = function() {
|
|
587 |
_this.segmentTables.userList.fnDraw();
|
588 |
}
|
589 |
}));
|
590 |
-
|
591 |
-
jQuery('.
|
592 |
-
'
|
593 |
-
'
|
594 |
-
|
595 |
-
|
596 |
event.preventDefault();
|
597 |
-
_this.
|
598 |
_this.launchEditRoleDialog(this, aData);
|
599 |
}));
|
600 |
|
601 |
-
|
602 |
-
|
603 |
-
'
|
604 |
-
'
|
605 |
-
|
606 |
-
}).bind('click', function(event) {
|
607 |
-
event.preventDefault();
|
608 |
-
_this.launch(jQuery(this), 'role-action-duplicate');
|
609 |
-
_this.launchDuplicateRoleDialog(this, aData);
|
610 |
-
}));
|
611 |
-
*/
|
612 |
-
|
613 |
-
jQuery('.role-actions', nRow).append(jQuery('<a/>', {
|
614 |
-
'href': '#',
|
615 |
-
'class': 'role-action role-action-delete',
|
616 |
-
'aam-tooltip': aamLocal.labels['Delete']
|
617 |
-
}).bind('click', function(event) {
|
618 |
event.preventDefault();
|
|
|
619 |
if ((aData[0] === 'administrator')) {
|
620 |
//open the dialog
|
621 |
var buttons = {};
|
|
|
622 |
buttons[aamLocal.labels['Close']] = function() {
|
623 |
jQuery('#delete_admin_role_dialog').dialog("close");
|
624 |
};
|
@@ -627,10 +659,13 @@ AAM.prototype.loadRoleSegment = function() {
|
|
627 |
height: 'auto',
|
628 |
width: '25%',
|
629 |
modal: true,
|
630 |
-
buttons: buttons
|
|
|
|
|
|
|
631 |
});
|
632 |
} else {
|
633 |
-
_this.
|
634 |
_this.launchDeleteRoleDialog(this, aData);
|
635 |
}
|
636 |
}));
|
@@ -665,22 +700,15 @@ AAM.prototype.setCurrent = function(subject, nRow, name) {
|
|
665 |
var _this = this;
|
666 |
|
667 |
//terminate any active subject
|
668 |
-
jQuery('.
|
669 |
-
|
670 |
-
});
|
671 |
-
jQuery('.role-action-manage-active').each(function() {
|
672 |
-
_this.terminate(jQuery(this), 'role-action-manage');
|
673 |
-
});
|
674 |
jQuery('.aam-bold').each(function() {
|
675 |
jQuery(this).removeClass('aam-bold');
|
676 |
});
|
677 |
|
678 |
//highlight the row
|
679 |
jQuery('td:eq(0)', nRow).addClass('aam-bold');
|
680 |
-
_this.
|
681 |
-
jQuery('.' + subject + '-action-manage', nRow),
|
682 |
-
subject + '-action-manage'
|
683 |
-
);
|
684 |
jQuery('.current-subject').html(subject + ' ' + name);
|
685 |
};
|
686 |
|
@@ -747,60 +775,7 @@ AAM.prototype.launchAddRoleDialog = function(button) {
|
|
747 |
title: aamLocal.labels['Add New Role'],
|
748 |
buttons: buttons,
|
749 |
close: function() {
|
750 |
-
_this.
|
751 |
-
}
|
752 |
-
});
|
753 |
-
};
|
754 |
-
|
755 |
-
/**
|
756 |
-
* Launch Duplicate Role Dialog
|
757 |
-
*
|
758 |
-
* @param {Object} button
|
759 |
-
* @param {Array} aData
|
760 |
-
*
|
761 |
-
* @returns {void}
|
762 |
-
*
|
763 |
-
* @access public
|
764 |
-
*/
|
765 |
-
AAM.prototype.launchDuplicateRoleDialog = function(button, aData) {
|
766 |
-
var _this = this;
|
767 |
-
//clean-up the form first
|
768 |
-
jQuery('#duplicate_role_name').val('');
|
769 |
-
jQuery('#duplicate_role_name').html(aData[2]);
|
770 |
-
//open the dialog
|
771 |
-
var buttons = {};
|
772 |
-
buttons[aamLocal.labels['Add New Role']] = function() {
|
773 |
-
//prepare ajax package
|
774 |
-
var data = _this.compileAjaxPackage('duplicate_role');
|
775 |
-
data.name = jQuery('#duplicate_role_name').val();
|
776 |
-
data.duplicate = aData[0];
|
777 |
-
|
778 |
-
//send the request
|
779 |
-
jQuery.ajax(aamLocal.ajaxurl, {
|
780 |
-
type: 'POST',
|
781 |
-
dataType: 'json',
|
782 |
-
data: data,
|
783 |
-
success: function(response) {
|
784 |
-
if (response.status === 'success') {
|
785 |
-
_this.segmentTables.roleList.fnDraw();
|
786 |
-
}
|
787 |
-
_this.highlight('#control_manager .inside', response.status);
|
788 |
-
}
|
789 |
-
});
|
790 |
-
jQuery('#duplicate_role_dialog').dialog("close");
|
791 |
-
};
|
792 |
-
buttons[aamLocal.labels['Cancel']] = function() {
|
793 |
-
jQuery('#duplicate_role_dialog').dialog("close");
|
794 |
-
};
|
795 |
-
|
796 |
-
jQuery('#duplicate_role_dialog').dialog({
|
797 |
-
resizable: false,
|
798 |
-
height: 'auto',
|
799 |
-
width: '30%',
|
800 |
-
modal: true,
|
801 |
-
buttons: buttons,
|
802 |
-
close: function() {
|
803 |
-
_this.terminate(jQuery(button), 'role-action-duplicate');
|
804 |
}
|
805 |
});
|
806 |
};
|
@@ -858,7 +833,7 @@ AAM.prototype.launchEditRoleDialog = function(button, aData) {
|
|
858 |
title: aamLocal.labels['Edit Role'],
|
859 |
buttons: buttons,
|
860 |
close: function() {
|
861 |
-
_this.
|
862 |
}
|
863 |
});
|
864 |
};
|
@@ -930,7 +905,7 @@ AAM.prototype.launchDeleteRoleDialog = function(button, aData) {
|
|
930 |
title: aamLocal.labels['Delete Role'],
|
931 |
buttons: buttons,
|
932 |
close: function() {
|
933 |
-
_this.
|
934 |
}
|
935 |
});
|
936 |
};
|
@@ -947,7 +922,7 @@ AAM.prototype.loadUserSegment = function() {
|
|
947 |
jQuery('#user_manager_wrap').show();
|
948 |
if (this.segmentTables.userList === null) {
|
949 |
this.segmentTables.userList = jQuery('#user_list').dataTable({
|
950 |
-
sDom: "<'top'f<'
|
951 |
bServerSide: true,
|
952 |
sPaginationType: "full_numbers",
|
953 |
bAutoWidth: false,
|
@@ -987,36 +962,35 @@ AAM.prototype.loadUserSegment = function() {
|
|
987 |
}
|
988 |
],
|
989 |
fnInitComplete: function() {
|
990 |
-
var add =
|
991 |
-
'
|
992 |
-
'
|
993 |
-
|
994 |
-
|
|
|
995 |
});
|
996 |
-
|
997 |
-
var filter =
|
998 |
-
'
|
999 |
-
'
|
1000 |
-
|
1001 |
-
}).bind('click', function(event) {
|
1002 |
event.preventDefault();
|
1003 |
-
_this.
|
1004 |
_this.launchFilterUserDialog(this);
|
1005 |
});
|
1006 |
-
|
1007 |
-
var refresh =
|
1008 |
-
'
|
1009 |
-
'
|
1010 |
-
|
1011 |
-
}).bind('click', function(event) {
|
1012 |
event.preventDefault();
|
1013 |
_this.segmentTables.userList.fnDraw();
|
1014 |
});
|
1015 |
|
1016 |
-
jQuery('#user_list_wrapper .
|
1017 |
-
jQuery('#user_list_wrapper .
|
1018 |
-
jQuery('#user_list_wrapper .
|
1019 |
-
_this.initTooltip(jQuery('#user_list_wrapper .
|
1020 |
},
|
1021 |
fnDrawCallback: function() {
|
1022 |
jQuery('#user_list_wrapper .clear-table-filter').bind(
|
@@ -1041,50 +1015,56 @@ AAM.prototype.loadUserSegment = function() {
|
|
1041 |
//add User attribute
|
1042 |
jQuery(nRow).attr('user', aData[0]);
|
1043 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
1044 |
-
'class': '
|
1045 |
}));
|
1046 |
|
1047 |
if (parseInt(aData[5]) === 1){
|
1048 |
-
jQuery('.
|
1049 |
-
'
|
1050 |
-
'
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
}));
|
1058 |
|
1059 |
-
jQuery('.
|
1060 |
-
'
|
1061 |
-
'
|
1062 |
-
'
|
1063 |
-
|
|
|
|
|
1064 |
}));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1065 |
|
1066 |
-
|
1067 |
-
|
1068 |
-
'
|
1069 |
-
'
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
_this.blockUser(this, aData);
|
1074 |
-
}));
|
1075 |
-
jQuery('.user-actions', nRow).append(jQuery('<a/>', {
|
1076 |
-
'href': '#',
|
1077 |
-
'class': 'user-action user-action-delete',
|
1078 |
-
'aam-tooltip': aamLocal.labels['Delete']
|
1079 |
-
}).bind('click', function(event) {
|
1080 |
-
event.preventDefault();
|
1081 |
-
_this.launch(jQuery(this), 'user-action-delete');
|
1082 |
-
_this.deleteUser(this, aData);
|
1083 |
}));
|
1084 |
} else {
|
1085 |
-
jQuery('.
|
1086 |
'href': '#',
|
1087 |
-
'class': 'user-action
|
1088 |
'aam-tooltip': aamLocal.labels['Actions Locked']
|
1089 |
}).bind('click', function(event) {
|
1090 |
event.preventDefault();
|
@@ -1129,9 +1109,9 @@ AAM.prototype.blockUser = function(button, aData) {
|
|
1129 |
success: function(response) {
|
1130 |
_this.highlight('#control_manager .inside', response.status);
|
1131 |
if (response.user_status === 1) {
|
1132 |
-
_this.
|
1133 |
} else {
|
1134 |
-
_this.
|
1135 |
}
|
1136 |
},
|
1137 |
error: function() {
|
@@ -1193,7 +1173,7 @@ AAM.prototype.deleteUser = function(button, aData) {
|
|
1193 |
modal: true,
|
1194 |
buttons: buttons,
|
1195 |
close: function() {
|
1196 |
-
_this.
|
1197 |
}
|
1198 |
});
|
1199 |
};
|
@@ -1267,15 +1247,14 @@ AAM.prototype.launchFilterUserDialog = function(button) {
|
|
1267 |
],
|
1268 |
fnRowCallback: function(nRow, aData) { //format data
|
1269 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
1270 |
-
'class': '
|
1271 |
}));
|
1272 |
|
1273 |
-
jQuery('.
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
}).bind('click', function(event) {
|
1279 |
event.preventDefault();
|
1280 |
_this.userRoleFilter = aData[0];
|
1281 |
_this.segmentTables.userList.fnDraw();
|
@@ -1301,7 +1280,7 @@ AAM.prototype.launchFilterUserDialog = function(button) {
|
|
1301 |
modal: true,
|
1302 |
buttons: buttons,
|
1303 |
close: function() {
|
1304 |
-
_this.
|
1305 |
}
|
1306 |
});
|
1307 |
};
|
@@ -1451,7 +1430,7 @@ AAM.prototype.initCapabilityTab = function() {
|
|
1451 |
var userDefault = true;
|
1452 |
|
1453 |
this.blogTables.capabilities = jQuery('#capability_list').dataTable({
|
1454 |
-
sDom: "<'top'lf<'
|
1455 |
sPaginationType: "full_numbers",
|
1456 |
bAutoWidth: false,
|
1457 |
bSort: false,
|
@@ -1497,15 +1476,15 @@ AAM.prototype.initCapabilityTab = function() {
|
|
1497 |
});
|
1498 |
},
|
1499 |
fnInitComplete: function() {
|
1500 |
-
var a = jQuery('#capability_list_wrapper .
|
1501 |
|
1502 |
-
var filter =
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
event.preventDefault();
|
1508 |
-
_this.
|
1509 |
_this.launchCapabilityFilterDialog(this);
|
1510 |
});
|
1511 |
jQuery(a).append(filter);
|
@@ -1513,39 +1492,36 @@ AAM.prototype.initCapabilityTab = function() {
|
|
1513 |
//do not allow for user to add any new capabilities or copy from
|
1514 |
//existing role
|
1515 |
if (_this.getSubject().type !== 'user') {
|
1516 |
-
var copy =
|
1517 |
-
'
|
1518 |
-
'
|
1519 |
-
|
1520 |
-
|
1521 |
event.preventDefault();
|
1522 |
-
_this.launch(jQuery(this), 'capability-top-action-copy');
|
1523 |
_this.launchRoleCopyDialog(this);
|
1524 |
});
|
1525 |
-
|
1526 |
-
|
1527 |
-
|
1528 |
-
'
|
1529 |
-
'
|
1530 |
-
|
|
|
1531 |
event.preventDefault();
|
1532 |
-
_this.launch(jQuery(this), 'capability-top-action-add');
|
1533 |
_this.launchAddCapabilityDialog(this);
|
1534 |
});
|
1535 |
-
|
1536 |
-
jQuery(a).append(copy);
|
1537 |
jQuery(a).append(add);
|
1538 |
} else if (userDefault === 0) {
|
1539 |
//add Restore Default Capability button
|
1540 |
-
var restore =
|
1541 |
-
'
|
1542 |
-
'
|
1543 |
-
|
1544 |
-
|
1545 |
event.preventDefault();
|
1546 |
var data = _this.compileAjaxPackage('restoreCapabilities', true);
|
1547 |
//show indicator that is running
|
1548 |
-
jQuery(this)
|
1549 |
jQuery.ajax(aamLocal.ajaxurl, {
|
1550 |
type: 'POST',
|
1551 |
dataType: 'json',
|
@@ -1562,7 +1538,6 @@ AAM.prototype.initCapabilityTab = function() {
|
|
1562 |
}
|
1563 |
});
|
1564 |
});
|
1565 |
-
|
1566 |
jQuery(a).append(restore);
|
1567 |
}
|
1568 |
|
@@ -1602,7 +1577,6 @@ AAM.prototype.initCapabilityTab = function() {
|
|
1602 |
'aam-tooltip': aamLocal.labels['Delete']
|
1603 |
}).bind('click', function(event) {
|
1604 |
event.preventDefault();
|
1605 |
-
_this.launch(jQuery(this), 'capability-action-delete');
|
1606 |
_this.launchDeleteCapabilityDialog(this, aData, nRow);
|
1607 |
}));
|
1608 |
_this.initTooltip(nRow);
|
@@ -1681,7 +1655,6 @@ AAM.prototype.launchDeleteCapabilityDialog = function(button, aData, nRow) {
|
|
1681 |
title: aamLocal.labels['Delete Capability'],
|
1682 |
buttons: buttons,
|
1683 |
close: function() {
|
1684 |
-
_this.terminate(jQuery(button), 'capability-action-delete');
|
1685 |
}
|
1686 |
});
|
1687 |
};
|
@@ -1705,7 +1678,7 @@ AAM.prototype.launchCapabilityFilterDialog = function(button) {
|
|
1705 |
bSort: false,
|
1706 |
bDestroy: true,
|
1707 |
fnRowCallback: function(nRow, aData) {
|
1708 |
-
jQuery('.
|
1709 |
event.preventDefault();
|
1710 |
_this.blogTables.capabilities.fnFilter(
|
1711 |
aData[0].replace('&', '&'), 2
|
@@ -1725,7 +1698,7 @@ AAM.prototype.launchCapabilityFilterDialog = function(button) {
|
|
1725 |
modal: true,
|
1726 |
buttons: buttons,
|
1727 |
close: function() {
|
1728 |
-
_this.
|
1729 |
}
|
1730 |
});
|
1731 |
};
|
@@ -1799,15 +1772,14 @@ AAM.prototype.launchRoleCopyDialog = function(button) {
|
|
1799 |
],
|
1800 |
fnRowCallback: function(nRow, aData, iDisplayIndex) { //format data
|
1801 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
1802 |
-
'class': '
|
1803 |
})); //
|
1804 |
-
|
1805 |
-
jQuery('.
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
}).bind('click', function(event) {
|
1811 |
event.preventDefault();
|
1812 |
_this.showMetaboxLoader('#copy_role_dialog');
|
1813 |
var data = _this.compileAjaxPackage('roleCapabilities');
|
@@ -1864,7 +1836,7 @@ AAM.prototype.launchRoleCopyDialog = function(button) {
|
|
1864 |
modal: true,
|
1865 |
buttons: buttons,
|
1866 |
close: function() {
|
1867 |
-
_this.
|
1868 |
}
|
1869 |
});
|
1870 |
};
|
@@ -1933,7 +1905,7 @@ AAM.prototype.launchAddCapabilityDialog = function(button) {
|
|
1933 |
modal: true,
|
1934 |
buttons: buttons,
|
1935 |
close: function() {
|
1936 |
-
_this.
|
1937 |
}
|
1938 |
});
|
1939 |
};
|
@@ -1946,16 +1918,8 @@ AAM.prototype.launchAddCapabilityDialog = function(button) {
|
|
1946 |
* @access public
|
1947 |
*/
|
1948 |
AAM.prototype.initMenuTab = function() {
|
1949 |
-
var _this = this;
|
1950 |
this.initMenuAccordion(false);
|
1951 |
|
1952 |
-
jQuery('.menu-item-action-restrict').each(function() {
|
1953 |
-
jQuery(this).bind('click', function(event) {
|
1954 |
-
event.preventDefault();
|
1955 |
-
_this.launch(jQuery(this), 'menu-item-action-restrict');
|
1956 |
-
});
|
1957 |
-
});
|
1958 |
-
|
1959 |
jQuery('.whole_menu').each(function() {
|
1960 |
jQuery(this).bind('change', function() {
|
1961 |
if (jQuery(this).attr('checked')) {
|
@@ -2009,11 +1973,12 @@ AAM.prototype.initMenuAccordion = function() {
|
|
2009 |
AAM.prototype.initMetaboxTab = function() {
|
2010 |
var _this = this;
|
2011 |
|
2012 |
-
jQuery('
|
2013 |
event.preventDefault();
|
|
|
2014 |
var link = jQuery.trim(jQuery('#metabox_link').val());
|
2015 |
-
|
2016 |
if (link) {
|
|
|
2017 |
//init metaboxes
|
2018 |
var data = _this.compileAjaxPackage('initLink');
|
2019 |
data.link = link;
|
@@ -2032,6 +1997,9 @@ AAM.prototype.initMetaboxTab = function() {
|
|
2032 |
},
|
2033 |
error: function() {
|
2034 |
_this.highlight('#metabox_content', 'failure');
|
|
|
|
|
|
|
2035 |
}
|
2036 |
});
|
2037 |
} else {
|
@@ -2040,7 +2008,7 @@ AAM.prototype.initMetaboxTab = function() {
|
|
2040 |
|
2041 |
});
|
2042 |
|
2043 |
-
jQuery('
|
2044 |
event.preventDefault();
|
2045 |
_this.loadMetaboxes(1);
|
2046 |
});
|
@@ -2120,7 +2088,7 @@ AAM.prototype.initEventTab = function() {
|
|
2120 |
});
|
2121 |
|
2122 |
this.blogTables.eventList = jQuery('#event_list').dataTable({
|
2123 |
-
sDom: "<'
|
2124 |
//bProcessing : false,
|
2125 |
sPaginationType: "full_numbers",
|
2126 |
bAutoWidth: false,
|
@@ -2164,17 +2132,18 @@ AAM.prototype.initEventTab = function() {
|
|
2164 |
}
|
2165 |
],
|
2166 |
fnInitComplete: function() {
|
2167 |
-
var
|
2168 |
-
|
2169 |
-
|
2170 |
-
|
2171 |
-
|
2172 |
event.preventDefault();
|
2173 |
-
_this.launch(jQuery(this), 'event-top-action-add');
|
2174 |
_this.launchManageEventDialog(this, null);
|
2175 |
});
|
2176 |
-
jQuery('#event_list_wrapper .
|
2177 |
-
_this.initTooltip(
|
|
|
|
|
2178 |
},
|
2179 |
fnDrawCallback: function() {
|
2180 |
jQuery('#event_list_wrapper .clear-table-filter').bind('click', function(event) {
|
@@ -2197,7 +2166,6 @@ AAM.prototype.initEventTab = function() {
|
|
2197 |
'aam-tooltip': aamLocal.labels['Edit Event']
|
2198 |
}).bind('click', function(event) {
|
2199 |
event.preventDefault();
|
2200 |
-
_this.launch(jQuery(this), 'event-action-edit');
|
2201 |
_this.launchManageEventDialog(this, aData, nRow);
|
2202 |
}));
|
2203 |
jQuery('.event-actions', nRow).append(jQuery('<a/>', {
|
@@ -2206,7 +2174,6 @@ AAM.prototype.initEventTab = function() {
|
|
2206 |
'aam-tooltip': aamLocal.labels['Delete Event']
|
2207 |
}).bind('click', function(event) {
|
2208 |
event.preventDefault();
|
2209 |
-
_this.launch(jQuery(this), 'event-action-delete');
|
2210 |
_this.launchDeleteEventDialog(this, aData, nRow);
|
2211 |
}));
|
2212 |
|
@@ -2290,10 +2257,6 @@ AAM.prototype.launchManageEventDialog = function(button, aData, nRow) {
|
|
2290 |
modal: true,
|
2291 |
buttons: buttons,
|
2292 |
close: function() {
|
2293 |
-
_this.terminate(
|
2294 |
-
jQuery(button),
|
2295 |
-
(aData ? 'event-action-edit' : 'event-top-action-add')
|
2296 |
-
);
|
2297 |
}
|
2298 |
});
|
2299 |
};
|
@@ -2347,7 +2310,6 @@ AAM.prototype.launchDeleteEventDialog = function(button, aData, nRow) {
|
|
2347 |
title: aamLocal.labels['Delete Event'],
|
2348 |
buttons: buttons,
|
2349 |
close: function() {
|
2350 |
-
_this.terminate(jQuery(button), 'event-action-delete');
|
2351 |
}
|
2352 |
});
|
2353 |
};
|
@@ -2379,7 +2341,7 @@ AAM.prototype.initPostTab = function() {
|
|
2379 |
});
|
2380 |
|
2381 |
this.blogTables.postList = jQuery('#post_list').dataTable({
|
2382 |
-
sDom: "<'top'lf<'
|
2383 |
sPaginationType: "full_numbers",
|
2384 |
bAutoWidth: false,
|
2385 |
bSort: false,
|
@@ -2421,27 +2383,26 @@ AAM.prototype.initPostTab = function() {
|
|
2421 |
});
|
2422 |
},
|
2423 |
fnInitComplete: function() {
|
2424 |
-
var a = jQuery('#post_list_wrapper .
|
2425 |
-
|
2426 |
-
var filter =
|
2427 |
-
|
2428 |
-
|
2429 |
-
|
2430 |
-
|
2431 |
event.preventDefault();
|
2432 |
-
_this.launch(jQuery(this), 'post-top-action-filter');
|
2433 |
_this.launchFilterPostDialog(this);
|
2434 |
});
|
|
|
2435 |
|
2436 |
-
var refresh =
|
2437 |
-
|
2438 |
-
|
2439 |
-
|
2440 |
-
|
2441 |
event.preventDefault();
|
2442 |
_this.blogTables.postList.fnDraw();
|
2443 |
});
|
2444 |
-
jQuery(a).append(filter);
|
2445 |
jQuery(a).append(refresh);
|
2446 |
_this.initTooltip(a);
|
2447 |
},
|
@@ -2461,73 +2422,71 @@ AAM.prototype.initPostTab = function() {
|
|
2461 |
aTargets: [0, 1, 2, 6]
|
2462 |
}
|
2463 |
],
|
2464 |
-
fnRowCallback: function(nRow, aData
|
2465 |
jQuery('td:eq(0)', nRow).html(jQuery('<a/>', {
|
2466 |
'href': "#",
|
2467 |
'class': "post-type-post"
|
2468 |
}).bind('click', function(event) {
|
2469 |
event.preventDefault();
|
2470 |
-
var button = jQuery('.
|
2471 |
-
_this.launch(button, 'post-action-manage');
|
2472 |
_this.launchManageAccessDialog(button, nRow, aData, 'post');
|
2473 |
}).text(aData[3]));
|
2474 |
|
2475 |
jQuery('td:eq(2)', nRow).append(jQuery('<div/>', {
|
2476 |
-
'class': '
|
2477 |
}));
|
2478 |
-
|
2479 |
-
jQuery('.
|
2480 |
-
'
|
2481 |
-
'
|
2482 |
-
|
2483 |
-
|
2484 |
event.preventDefault();
|
2485 |
-
_this.launch(jQuery(this), 'post-action-manage');
|
2486 |
_this.launchManageAccessDialog(this, nRow, aData, 'post');
|
2487 |
}));
|
2488 |
-
|
2489 |
-
|
2490 |
-
'
|
2491 |
-
'
|
2492 |
-
'
|
2493 |
-
|
2494 |
-
|
|
|
|
|
|
|
2495 |
|
2496 |
if (aData[1] === 'trash') {
|
2497 |
-
jQuery('.
|
2498 |
-
'
|
2499 |
-
'
|
2500 |
-
|
2501 |
-
|
2502 |
event.preventDefault();
|
2503 |
-
_this.launch(jQuery(this), 'post-action-delete');
|
2504 |
_this.launchDeletePostDialog(this, nRow, aData, true);
|
2505 |
}));
|
2506 |
} else {
|
2507 |
-
jQuery('.
|
2508 |
-
'
|
2509 |
-
'
|
2510 |
-
|
2511 |
-
|
2512 |
event.preventDefault();
|
2513 |
-
_this.launch(jQuery(this), 'post-action-trash');
|
2514 |
_this.launchDeletePostDialog(this, nRow, aData, false);
|
2515 |
}));
|
2516 |
}
|
2517 |
|
2518 |
if (parseInt(aData[6]) === 1) {
|
2519 |
-
jQuery('.
|
2520 |
-
'
|
2521 |
-
'
|
2522 |
-
|
2523 |
-
|
2524 |
event.preventDefault();
|
2525 |
_this.restorePostAccess(aData[0], 'post', nRow);
|
2526 |
jQuery(this).remove();
|
2527 |
}));
|
2528 |
}
|
2529 |
|
2530 |
-
|
2531 |
_this.initTooltip(nRow);
|
2532 |
},
|
2533 |
fnDrawCallback: function() {
|
@@ -2569,7 +2528,7 @@ AAM.prototype.launchFilterPostDialog = function(button) {
|
|
2569 |
modal: true,
|
2570 |
buttons: buttons,
|
2571 |
close: function() {
|
2572 |
-
_this.
|
2573 |
}
|
2574 |
});
|
2575 |
};
|
@@ -2673,11 +2632,10 @@ AAM.prototype.launchManageAccessDialog = function(button, nRow, aData, type) {
|
|
2673 |
title: 'Manage Access',
|
2674 |
buttons: buttons,
|
2675 |
close: function() {
|
2676 |
-
_this.terminate(
|
2677 |
-
jQuery(button), 'post-breadcrumb-line-action-manage'
|
2678 |
-
);
|
2679 |
}
|
2680 |
});
|
|
|
|
|
2681 |
},
|
2682 |
error: function() {
|
2683 |
_this.highlight(nRow, 'failure');
|
@@ -2756,7 +2714,7 @@ AAM.prototype.launchDeletePostDialog = function(button, nRow, aData, force) {
|
|
2756 |
title: aamLocal.labels[(force ? 'Delete' : 'Trash') + ' Post'],
|
2757 |
buttons: buttons,
|
2758 |
close: function() {
|
2759 |
-
_this.
|
2760 |
}
|
2761 |
});
|
2762 |
};
|
@@ -2833,24 +2791,26 @@ AAM.prototype.buildPostBreadcrumb = function(response) {
|
|
2833 |
}));
|
2834 |
|
2835 |
if (/^[\d]+$/.test(this.postTerm)) {
|
2836 |
-
|
2837 |
-
'
|
2838 |
-
'
|
2839 |
-
'
|
2840 |
-
|
2841 |
-
|
2842 |
-
|
2843 |
-
|
2844 |
-
|
2845 |
-
|
2846 |
-
|
|
|
|
|
|
|
2847 |
event.preventDefault();
|
2848 |
-
_this.launch(this, 'post-breadcrumb-line-action-manage');
|
2849 |
var aData = new Array();
|
2850 |
aData[0] = event.data.id;
|
2851 |
_this.launchManageAccessDialog(
|
2852 |
this, jQuery('.post-breadcrumb'), aData, 'term'
|
2853 |
-
|
2854 |
}));
|
2855 |
} else {
|
2856 |
jQuery('.post-breadcrumb-line-actions').append(jQuery('<a/>', {
|
@@ -2932,6 +2892,64 @@ AAM.prototype.initPostTree = function() {
|
|
2932 |
});
|
2933 |
};
|
2934 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2935 |
/**
|
2936 |
* Launch the button
|
2937 |
*
|
@@ -2942,8 +2960,8 @@ AAM.prototype.initPostTree = function() {
|
|
2942 |
*
|
2943 |
* @access public
|
2944 |
*/
|
2945 |
-
AAM.prototype.
|
2946 |
-
jQuery(element).
|
2947 |
};
|
2948 |
|
2949 |
/**
|
@@ -2956,8 +2974,12 @@ AAM.prototype.launch = function(element, inactive) {
|
|
2956 |
*
|
2957 |
* @access public
|
2958 |
*/
|
2959 |
-
AAM.prototype.
|
2960 |
-
jQuery(element).
|
|
|
|
|
|
|
|
|
2961 |
};
|
2962 |
|
2963 |
/**
|
162 |
|
163 |
//Retrieve settings for default segment
|
164 |
this.retrieveSettings();
|
165 |
+
|
166 |
+
//init contextual menu if necessary
|
167 |
+
this.initContextualMenu();
|
168 |
+
};
|
169 |
+
|
170 |
+
/**
|
171 |
+
* Initial Contextual Menu
|
172 |
+
*
|
173 |
+
* @returns void
|
174 |
+
*
|
175 |
+
* @access public
|
176 |
+
*/
|
177 |
+
AAM.prototype.initContextualMenu = function(){
|
178 |
+
var _this = this;
|
179 |
+
if (parseInt(aamLocal.contextualMenu) !== 1){
|
180 |
+
jQuery('#contextual-help-link-wrap').pointer({
|
181 |
+
pointerClass : 'aam-help-pointer',
|
182 |
+
pointerWidth : 300,
|
183 |
+
content: aamLocal.labels['AAM Documentation'],
|
184 |
+
position: {
|
185 |
+
edge : 'top',
|
186 |
+
align : 'right'
|
187 |
+
},
|
188 |
+
close: function() {
|
189 |
+
jQuery.ajax(aamLocal.ajaxurl, {
|
190 |
+
type: 'POST',
|
191 |
+
dataType: 'json',
|
192 |
+
data: _this.compileAjaxPackage('discardHelp', false)
|
193 |
+
});
|
194 |
+
}
|
195 |
+
}).pointer('open');
|
196 |
+
}
|
197 |
};
|
198 |
|
199 |
/**
|
445 |
|
446 |
//by default load the Role Segment
|
447 |
this.loadSegment('role');
|
448 |
+
|
449 |
+
//show the list
|
450 |
+
jQuery('.control-manager-content').css('visibility', 'visible');
|
451 |
};
|
452 |
|
453 |
/**
|
463 |
* @access public
|
464 |
*/
|
465 |
AAM.prototype.loadSegment = function(segment) {
|
|
|
466 |
//clear all active segments
|
467 |
jQuery('.control-manager a').each(function() {
|
468 |
+
jQuery(this).removeClass(
|
469 |
+
'manager-item-' + jQuery(this).attr('segment') + '-active'
|
470 |
+
);
|
471 |
});
|
472 |
|
473 |
//hide all segment contents from control manager
|
492 |
}
|
493 |
|
494 |
//activate segment icon
|
495 |
+
jQuery('.manager-item-' + segment).addClass(
|
496 |
+
'manager-item-' + segment + '-active'
|
497 |
+
);
|
498 |
};
|
499 |
|
500 |
/**
|
510 |
jQuery('#role_manager_wrap').show();
|
511 |
if (this.segmentTables.roleList === null) {
|
512 |
this.segmentTables.roleList = jQuery('#role_list').dataTable({
|
513 |
+
sDom: "<'top'f<'aam-list-top-actions'><'clear'>>t<'footer'ip<'clear'>>",
|
514 |
bServerSide: true,
|
515 |
sPaginationType: "full_numbers",
|
516 |
bAutoWidth: false,
|
539 |
});
|
540 |
},
|
541 |
fnInitComplete: function() {
|
542 |
+
var add = _this.createIcon(
|
543 |
+
'medium',
|
544 |
+
'add',
|
545 |
+
aamLocal.labels['Add New Role']
|
546 |
+
).bind('click', function(event) {
|
547 |
event.preventDefault();
|
548 |
+
_this.activateIcon(this, 'medium');
|
549 |
+
|
550 |
//retrieve list of roles dynamically
|
551 |
jQuery('#parent_cap_role').addClass('input-dynamic');
|
552 |
jQuery('#parent_cap_role_holder').show();
|
570 |
}
|
571 |
},
|
572 |
complete: function(){
|
573 |
+
jQuery('#parent_cap_role').removeClass(
|
574 |
+
'input-dynamic'
|
575 |
+
);
|
576 |
}
|
577 |
});
|
578 |
_this.launchAddRoleDialog(this);
|
579 |
});
|
580 |
+
jQuery('#role_list_wrapper .aam-list-top-actions').append(add);
|
581 |
+
_this.initTooltip(
|
582 |
+
jQuery('#role_list_wrapper .aam-list-top-actions')
|
583 |
+
);
|
584 |
},
|
585 |
fnDrawCallback: function() {
|
586 |
jQuery('#role_list_wrapper .clear-table-filter').bind(
|
608 |
],
|
609 |
fnRowCallback: function(nRow, aData) { //format data
|
610 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
611 |
+
'class': 'aam-list-row-actions'
|
612 |
})); //
|
613 |
//add role attribute
|
614 |
jQuery(nRow).attr('role', aData[0]);
|
615 |
|
616 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
617 |
+
'small',
|
618 |
+
'manage',
|
619 |
+
aamLocal.labels['Manage']
|
620 |
+
).bind('click', {
|
|
|
621 |
role: aData[0]
|
622 |
}, function(event) {
|
623 |
event.preventDefault();
|
629 |
_this.segmentTables.userList.fnDraw();
|
630 |
}
|
631 |
}));
|
632 |
+
|
633 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
634 |
+
'small',
|
635 |
+
'pen',
|
636 |
+
aamLocal.labels['Edit']
|
637 |
+
).bind('click', function(event) {
|
638 |
event.preventDefault();
|
639 |
+
_this.activateIcon(this, 'small');
|
640 |
_this.launchEditRoleDialog(this, aData);
|
641 |
}));
|
642 |
|
643 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
644 |
+
'small',
|
645 |
+
'delete',
|
646 |
+
aamLocal.labels['Delete']
|
647 |
+
).bind('click', function(event) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
648 |
event.preventDefault();
|
649 |
+
var button = this;
|
650 |
if ((aData[0] === 'administrator')) {
|
651 |
//open the dialog
|
652 |
var buttons = {};
|
653 |
+
_this.activateIcon(this, 'small');
|
654 |
buttons[aamLocal.labels['Close']] = function() {
|
655 |
jQuery('#delete_admin_role_dialog').dialog("close");
|
656 |
};
|
659 |
height: 'auto',
|
660 |
width: '25%',
|
661 |
modal: true,
|
662 |
+
buttons: buttons,
|
663 |
+
close: function(){
|
664 |
+
_this.deactivateIcon(button);
|
665 |
+
}
|
666 |
});
|
667 |
} else {
|
668 |
+
_this.activateIcon(this, 'small');
|
669 |
_this.launchDeleteRoleDialog(this, aData);
|
670 |
}
|
671 |
}));
|
700 |
var _this = this;
|
701 |
|
702 |
//terminate any active subject
|
703 |
+
jQuery('.aam-icon-small-active').removeClass('aam-icon-small-active');
|
704 |
+
|
|
|
|
|
|
|
|
|
705 |
jQuery('.aam-bold').each(function() {
|
706 |
jQuery(this).removeClass('aam-bold');
|
707 |
});
|
708 |
|
709 |
//highlight the row
|
710 |
jQuery('td:eq(0)', nRow).addClass('aam-bold');
|
711 |
+
_this.activateIcon(jQuery('.aam-icon-manage', nRow), 'small');
|
|
|
|
|
|
|
712 |
jQuery('.current-subject').html(subject + ' ' + name);
|
713 |
};
|
714 |
|
775 |
title: aamLocal.labels['Add New Role'],
|
776 |
buttons: buttons,
|
777 |
close: function() {
|
778 |
+
_this.deactivateIcon(button);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
779 |
}
|
780 |
});
|
781 |
};
|
833 |
title: aamLocal.labels['Edit Role'],
|
834 |
buttons: buttons,
|
835 |
close: function() {
|
836 |
+
_this.deactivateIcon(button);
|
837 |
}
|
838 |
});
|
839 |
};
|
905 |
title: aamLocal.labels['Delete Role'],
|
906 |
buttons: buttons,
|
907 |
close: function() {
|
908 |
+
_this.deactivateIcon(button);
|
909 |
}
|
910 |
});
|
911 |
};
|
922 |
jQuery('#user_manager_wrap').show();
|
923 |
if (this.segmentTables.userList === null) {
|
924 |
this.segmentTables.userList = jQuery('#user_list').dataTable({
|
925 |
+
sDom: "<'top'f<'aam-list-top-actions'><'clear'>>t<'footer'ip<'clear'>>",
|
926 |
bServerSide: true,
|
927 |
sPaginationType: "full_numbers",
|
928 |
bAutoWidth: false,
|
962 |
}
|
963 |
],
|
964 |
fnInitComplete: function() {
|
965 |
+
var add = _this.createIcon(
|
966 |
+
'medium',
|
967 |
+
'add'
|
968 |
+
).attr({
|
969 |
+
href: aamLocal.addUserURI,
|
970 |
+
target: '_blank'
|
971 |
});
|
972 |
+
|
973 |
+
var filter = _this.createIcon(
|
974 |
+
'medium',
|
975 |
+
'filter'
|
976 |
+
).bind('click', function(event) {
|
|
|
977 |
event.preventDefault();
|
978 |
+
_this.activateIcon(this, 'medium');
|
979 |
_this.launchFilterUserDialog(this);
|
980 |
});
|
981 |
+
|
982 |
+
var refresh = _this.createIcon(
|
983 |
+
'medium',
|
984 |
+
'refresh'
|
985 |
+
).bind('click', function(event) {
|
|
|
986 |
event.preventDefault();
|
987 |
_this.segmentTables.userList.fnDraw();
|
988 |
});
|
989 |
|
990 |
+
jQuery('#user_list_wrapper .aam-list-top-actions').append(filter);
|
991 |
+
jQuery('#user_list_wrapper .aam-list-top-actions').append(add);
|
992 |
+
jQuery('#user_list_wrapper .aam-list-top-actions').append(refresh);
|
993 |
+
_this.initTooltip(jQuery('#user_list_wrapper .aam-list-top-actions'));
|
994 |
},
|
995 |
fnDrawCallback: function() {
|
996 |
jQuery('#user_list_wrapper .clear-table-filter').bind(
|
1015 |
//add User attribute
|
1016 |
jQuery(nRow).attr('user', aData[0]);
|
1017 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
1018 |
+
'class': 'aam-list-row-actions'
|
1019 |
}));
|
1020 |
|
1021 |
if (parseInt(aData[5]) === 1){
|
1022 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
1023 |
+
'small',
|
1024 |
+
'manage',
|
1025 |
+
aamLocal.labels['Manage']
|
1026 |
+
).bind('click', function(event) {
|
1027 |
+
event.preventDefault();
|
1028 |
+
_this.setSubject('user', aData[0]);
|
1029 |
+
_this.retrieveSettings();
|
1030 |
+
_this.setCurrent('user', nRow, aData[2]);
|
1031 |
}));
|
1032 |
|
1033 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
1034 |
+
'small',
|
1035 |
+
'edit-user',
|
1036 |
+
aamLocal.labels['Edit']
|
1037 |
+
).attr({
|
1038 |
+
href: aamLocal.editUserURI + '?user_id=' + aData[0],
|
1039 |
+
target: '_blank'
|
1040 |
}));
|
1041 |
+
|
1042 |
+
var block = _this.createIcon(
|
1043 |
+
'small',
|
1044 |
+
'block',
|
1045 |
+
aamLocal.labels['Block']
|
1046 |
+
);
|
1047 |
+
if (parseInt(aData[4]) === 1){
|
1048 |
+
_this.activateIcon(block, 'small');
|
1049 |
+
}
|
1050 |
+
block.bind('click', function(event) {
|
1051 |
+
event.preventDefault();
|
1052 |
+
_this.blockUser(this, aData);
|
1053 |
+
});
|
1054 |
+
jQuery('.aam-list-row-actions', nRow).append(block);
|
1055 |
|
1056 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
1057 |
+
'small',
|
1058 |
+
'delete',
|
1059 |
+
aamLocal.labels['Delete']
|
1060 |
+
).bind('click', function(event) {
|
1061 |
+
event.preventDefault();
|
1062 |
+
_this.deleteUser(this, aData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1063 |
}));
|
1064 |
} else {
|
1065 |
+
jQuery('.aam-list-row-actions', nRow).append(jQuery('<a/>', {
|
1066 |
'href': '#',
|
1067 |
+
'class': 'user-action-locked',
|
1068 |
'aam-tooltip': aamLocal.labels['Actions Locked']
|
1069 |
}).bind('click', function(event) {
|
1070 |
event.preventDefault();
|
1109 |
success: function(response) {
|
1110 |
_this.highlight('#control_manager .inside', response.status);
|
1111 |
if (response.user_status === 1) {
|
1112 |
+
_this.activateIcon(button, 'small');
|
1113 |
} else {
|
1114 |
+
_this.deactivateIcon(button);
|
1115 |
}
|
1116 |
},
|
1117 |
error: function() {
|
1173 |
modal: true,
|
1174 |
buttons: buttons,
|
1175 |
close: function() {
|
1176 |
+
_this.deactivateIcon(button);
|
1177 |
}
|
1178 |
});
|
1179 |
};
|
1247 |
],
|
1248 |
fnRowCallback: function(nRow, aData) { //format data
|
1249 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
1250 |
+
'class': 'aam-list-row-actions'
|
1251 |
}));
|
1252 |
|
1253 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
1254 |
+
'small',
|
1255 |
+
'select',
|
1256 |
+
aamLocal.labels['Select Role']
|
1257 |
+
).bind('click', function(event) {
|
|
|
1258 |
event.preventDefault();
|
1259 |
_this.userRoleFilter = aData[0];
|
1260 |
_this.segmentTables.userList.fnDraw();
|
1280 |
modal: true,
|
1281 |
buttons: buttons,
|
1282 |
close: function() {
|
1283 |
+
_this.deactivateIcon(button);
|
1284 |
}
|
1285 |
});
|
1286 |
};
|
1430 |
var userDefault = true;
|
1431 |
|
1432 |
this.blogTables.capabilities = jQuery('#capability_list').dataTable({
|
1433 |
+
sDom: "<'top'lf<'aam-list-top-actions'><'clear'>>t<'footer'ip<'clear'>>",
|
1434 |
sPaginationType: "full_numbers",
|
1435 |
bAutoWidth: false,
|
1436 |
bSort: false,
|
1476 |
});
|
1477 |
},
|
1478 |
fnInitComplete: function() {
|
1479 |
+
var a = jQuery('#capability_list_wrapper .aam-list-top-actions');
|
1480 |
|
1481 |
+
var filter = _this.createIcon(
|
1482 |
+
'medium',
|
1483 |
+
'filter',
|
1484 |
+
aamLocal.labels['Filter Capabilities by Category']
|
1485 |
+
).bind('click', function(event) {
|
1486 |
event.preventDefault();
|
1487 |
+
_this.activateIcon(this, 'medium');
|
1488 |
_this.launchCapabilityFilterDialog(this);
|
1489 |
});
|
1490 |
jQuery(a).append(filter);
|
1492 |
//do not allow for user to add any new capabilities or copy from
|
1493 |
//existing role
|
1494 |
if (_this.getSubject().type !== 'user') {
|
1495 |
+
var copy = _this.createIcon(
|
1496 |
+
'medium',
|
1497 |
+
'copy',
|
1498 |
+
aamLocal.labels['Inherit Capabilities']
|
1499 |
+
).bind('click', function(event) {
|
1500 |
event.preventDefault();
|
|
|
1501 |
_this.launchRoleCopyDialog(this);
|
1502 |
});
|
1503 |
+
|
1504 |
+
jQuery(a).append(copy);
|
1505 |
+
var add = _this.createIcon(
|
1506 |
+
'medium',
|
1507 |
+
'add',
|
1508 |
+
aamLocal.labels['Add New Capability']
|
1509 |
+
).bind('click', function(event) {
|
1510 |
event.preventDefault();
|
|
|
1511 |
_this.launchAddCapabilityDialog(this);
|
1512 |
});
|
|
|
|
|
1513 |
jQuery(a).append(add);
|
1514 |
} else if (userDefault === 0) {
|
1515 |
//add Restore Default Capability button
|
1516 |
+
var restore = _this.createIcon(
|
1517 |
+
'medium',
|
1518 |
+
'restore',
|
1519 |
+
aamLocal.labels['Restore Default Capabilities']
|
1520 |
+
).bind('click', function(event) {
|
1521 |
event.preventDefault();
|
1522 |
var data = _this.compileAjaxPackage('restoreCapabilities', true);
|
1523 |
//show indicator that is running
|
1524 |
+
_this.loadingIcon(jQuery(this), 'medium');
|
1525 |
jQuery.ajax(aamLocal.ajaxurl, {
|
1526 |
type: 'POST',
|
1527 |
dataType: 'json',
|
1538 |
}
|
1539 |
});
|
1540 |
});
|
|
|
1541 |
jQuery(a).append(restore);
|
1542 |
}
|
1543 |
|
1577 |
'aam-tooltip': aamLocal.labels['Delete']
|
1578 |
}).bind('click', function(event) {
|
1579 |
event.preventDefault();
|
|
|
1580 |
_this.launchDeleteCapabilityDialog(this, aData, nRow);
|
1581 |
}));
|
1582 |
_this.initTooltip(nRow);
|
1655 |
title: aamLocal.labels['Delete Capability'],
|
1656 |
buttons: buttons,
|
1657 |
close: function() {
|
|
|
1658 |
}
|
1659 |
});
|
1660 |
};
|
1678 |
bSort: false,
|
1679 |
bDestroy: true,
|
1680 |
fnRowCallback: function(nRow, aData) {
|
1681 |
+
jQuery('.aam-icon-select', nRow).bind('click', function(event) {
|
1682 |
event.preventDefault();
|
1683 |
_this.blogTables.capabilities.fnFilter(
|
1684 |
aData[0].replace('&', '&'), 2
|
1698 |
modal: true,
|
1699 |
buttons: buttons,
|
1700 |
close: function() {
|
1701 |
+
_this.deactivateIcon(button);
|
1702 |
}
|
1703 |
});
|
1704 |
};
|
1772 |
],
|
1773 |
fnRowCallback: function(nRow, aData, iDisplayIndex) { //format data
|
1774 |
jQuery('td:eq(1)', nRow).html(jQuery('<div/>', {
|
1775 |
+
'class': 'aam-list-row-actions'
|
1776 |
})); //
|
1777 |
+
jQuery('.aam-list-row-actions', nRow).empty();
|
1778 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
1779 |
+
'small',
|
1780 |
+
'select',
|
1781 |
+
aamLocal.labels['Select Role']
|
1782 |
+
).bind('click', function(event) {
|
|
|
1783 |
event.preventDefault();
|
1784 |
_this.showMetaboxLoader('#copy_role_dialog');
|
1785 |
var data = _this.compileAjaxPackage('roleCapabilities');
|
1836 |
modal: true,
|
1837 |
buttons: buttons,
|
1838 |
close: function() {
|
1839 |
+
_this.deactivateIcon(button);
|
1840 |
}
|
1841 |
});
|
1842 |
};
|
1905 |
modal: true,
|
1906 |
buttons: buttons,
|
1907 |
close: function() {
|
1908 |
+
_this.deactivateIcon(button);
|
1909 |
}
|
1910 |
});
|
1911 |
};
|
1918 |
* @access public
|
1919 |
*/
|
1920 |
AAM.prototype.initMenuTab = function() {
|
|
|
1921 |
this.initMenuAccordion(false);
|
1922 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1923 |
jQuery('.whole_menu').each(function() {
|
1924 |
jQuery(this).bind('change', function() {
|
1925 |
if (jQuery(this).attr('checked')) {
|
1973 |
AAM.prototype.initMetaboxTab = function() {
|
1974 |
var _this = this;
|
1975 |
|
1976 |
+
jQuery('#retrieve_url').bind('click', function(event) {
|
1977 |
event.preventDefault();
|
1978 |
+
var icon = this;
|
1979 |
var link = jQuery.trim(jQuery('#metabox_link').val());
|
|
|
1980 |
if (link) {
|
1981 |
+
_this.loadingIcon(icon, 'medium');
|
1982 |
//init metaboxes
|
1983 |
var data = _this.compileAjaxPackage('initLink');
|
1984 |
data.link = link;
|
1997 |
},
|
1998 |
error: function() {
|
1999 |
_this.highlight('#metabox_content', 'failure');
|
2000 |
+
},
|
2001 |
+
complete: function(){
|
2002 |
+
_this.removeLoadingIcon(icon);
|
2003 |
}
|
2004 |
});
|
2005 |
} else {
|
2008 |
|
2009 |
});
|
2010 |
|
2011 |
+
jQuery('#refresh_metaboxes').bind('click', function(event) {
|
2012 |
event.preventDefault();
|
2013 |
_this.loadMetaboxes(1);
|
2014 |
});
|
2088 |
});
|
2089 |
|
2090 |
this.blogTables.eventList = jQuery('#event_list').dataTable({
|
2091 |
+
sDom: "<'aam-list-top-actions'><'clear'>t<'footer'p<'clear'>>",
|
2092 |
//bProcessing : false,
|
2093 |
sPaginationType: "full_numbers",
|
2094 |
bAutoWidth: false,
|
2132 |
}
|
2133 |
],
|
2134 |
fnInitComplete: function() {
|
2135 |
+
var add = _this.createIcon(
|
2136 |
+
'medium',
|
2137 |
+
'add',
|
2138 |
+
aamLocal.labels['Add Event']
|
2139 |
+
).bind('click', function(event) {
|
2140 |
event.preventDefault();
|
|
|
2141 |
_this.launchManageEventDialog(this, null);
|
2142 |
});
|
2143 |
+
jQuery('#event_list_wrapper .aam-list-top-actions').append(add);
|
2144 |
+
_this.initTooltip(
|
2145 |
+
jQuery('#event_list_wrapper .aam-list-top-actions')
|
2146 |
+
);
|
2147 |
},
|
2148 |
fnDrawCallback: function() {
|
2149 |
jQuery('#event_list_wrapper .clear-table-filter').bind('click', function(event) {
|
2166 |
'aam-tooltip': aamLocal.labels['Edit Event']
|
2167 |
}).bind('click', function(event) {
|
2168 |
event.preventDefault();
|
|
|
2169 |
_this.launchManageEventDialog(this, aData, nRow);
|
2170 |
}));
|
2171 |
jQuery('.event-actions', nRow).append(jQuery('<a/>', {
|
2174 |
'aam-tooltip': aamLocal.labels['Delete Event']
|
2175 |
}).bind('click', function(event) {
|
2176 |
event.preventDefault();
|
|
|
2177 |
_this.launchDeleteEventDialog(this, aData, nRow);
|
2178 |
}));
|
2179 |
|
2257 |
modal: true,
|
2258 |
buttons: buttons,
|
2259 |
close: function() {
|
|
|
|
|
|
|
|
|
2260 |
}
|
2261 |
});
|
2262 |
};
|
2310 |
title: aamLocal.labels['Delete Event'],
|
2311 |
buttons: buttons,
|
2312 |
close: function() {
|
|
|
2313 |
}
|
2314 |
});
|
2315 |
};
|
2341 |
});
|
2342 |
|
2343 |
this.blogTables.postList = jQuery('#post_list').dataTable({
|
2344 |
+
sDom: "<'top'lf<'aam-list-top-actions'><'clear'>><'post-breadcrumb'>t<'footer'ip<'clear'>>",
|
2345 |
sPaginationType: "full_numbers",
|
2346 |
bAutoWidth: false,
|
2347 |
bSort: false,
|
2383 |
});
|
2384 |
},
|
2385 |
fnInitComplete: function() {
|
2386 |
+
var a = jQuery('#post_list_wrapper .aam-list-top-actions');
|
2387 |
+
|
2388 |
+
var filter = _this.createIcon(
|
2389 |
+
'medium',
|
2390 |
+
'filter',
|
2391 |
+
aamLocal.labels['Filter Posts by Post Type']
|
2392 |
+
).bind('click', function(event) {
|
2393 |
event.preventDefault();
|
|
|
2394 |
_this.launchFilterPostDialog(this);
|
2395 |
});
|
2396 |
+
jQuery(a).append(filter);
|
2397 |
|
2398 |
+
var refresh = _this.createIcon(
|
2399 |
+
'medium',
|
2400 |
+
'refresh',
|
2401 |
+
aamLocal.labels['Refresh List']
|
2402 |
+
).bind('click', function(event) {
|
2403 |
event.preventDefault();
|
2404 |
_this.blogTables.postList.fnDraw();
|
2405 |
});
|
|
|
2406 |
jQuery(a).append(refresh);
|
2407 |
_this.initTooltip(a);
|
2408 |
},
|
2422 |
aTargets: [0, 1, 2, 6]
|
2423 |
}
|
2424 |
],
|
2425 |
+
fnRowCallback: function(nRow, aData) { //format data
|
2426 |
jQuery('td:eq(0)', nRow).html(jQuery('<a/>', {
|
2427 |
'href': "#",
|
2428 |
'class': "post-type-post"
|
2429 |
}).bind('click', function(event) {
|
2430 |
event.preventDefault();
|
2431 |
+
var button = jQuery('.aam-icon-manage', nRow);
|
|
|
2432 |
_this.launchManageAccessDialog(button, nRow, aData, 'post');
|
2433 |
}).text(aData[3]));
|
2434 |
|
2435 |
jQuery('td:eq(2)', nRow).append(jQuery('<div/>', {
|
2436 |
+
'class': 'aam-list-row-actions'
|
2437 |
}));
|
2438 |
+
|
2439 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
2440 |
+
'small',
|
2441 |
+
'manage',
|
2442 |
+
aamLocal.labels['Manage Access']
|
2443 |
+
).bind('click', function(event) {
|
2444 |
event.preventDefault();
|
|
|
2445 |
_this.launchManageAccessDialog(this, nRow, aData, 'post');
|
2446 |
}));
|
2447 |
+
|
2448 |
+
var edit = _this.createIcon(
|
2449 |
+
'small',
|
2450 |
+
'pen',
|
2451 |
+
aamLocal.labels['Edit']
|
2452 |
+
).attr({
|
2453 |
+
href: aData[2].replace('&', '&'),
|
2454 |
+
target: '_blank'
|
2455 |
+
});
|
2456 |
+
jQuery('.aam-list-row-actions', nRow).append(edit);
|
2457 |
|
2458 |
if (aData[1] === 'trash') {
|
2459 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
2460 |
+
'small',
|
2461 |
+
'delete',
|
2462 |
+
aamLocal.labels['Delete Post']
|
2463 |
+
).bind('click', function(event) {
|
2464 |
event.preventDefault();
|
|
|
2465 |
_this.launchDeletePostDialog(this, nRow, aData, true);
|
2466 |
}));
|
2467 |
} else {
|
2468 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
2469 |
+
'small',
|
2470 |
+
'trash',
|
2471 |
+
aamLocal.labels['Move to Trash']
|
2472 |
+
).bind('click', function(event) {
|
2473 |
event.preventDefault();
|
|
|
2474 |
_this.launchDeletePostDialog(this, nRow, aData, false);
|
2475 |
}));
|
2476 |
}
|
2477 |
|
2478 |
if (parseInt(aData[6]) === 1) {
|
2479 |
+
jQuery('.aam-list-row-actions', nRow).append(_this.createIcon(
|
2480 |
+
'small',
|
2481 |
+
'default',
|
2482 |
+
aamLocal.labels['Restore Default Access']
|
2483 |
+
).bind('click', function(event) {
|
2484 |
event.preventDefault();
|
2485 |
_this.restorePostAccess(aData[0], 'post', nRow);
|
2486 |
jQuery(this).remove();
|
2487 |
}));
|
2488 |
}
|
2489 |
|
|
|
2490 |
_this.initTooltip(nRow);
|
2491 |
},
|
2492 |
fnDrawCallback: function() {
|
2528 |
modal: true,
|
2529 |
buttons: buttons,
|
2530 |
close: function() {
|
2531 |
+
_this.deactivateIcon(button);
|
2532 |
}
|
2533 |
});
|
2534 |
};
|
2632 |
title: 'Manage Access',
|
2633 |
buttons: buttons,
|
2634 |
close: function() {
|
|
|
|
|
|
|
2635 |
}
|
2636 |
});
|
2637 |
+
|
2638 |
+
_this.doAction('aam_get_access_loaded');
|
2639 |
},
|
2640 |
error: function() {
|
2641 |
_this.highlight(nRow, 'failure');
|
2714 |
title: aamLocal.labels[(force ? 'Delete' : 'Trash') + ' Post'],
|
2715 |
buttons: buttons,
|
2716 |
close: function() {
|
2717 |
+
_this.deactivateIcon(button);
|
2718 |
}
|
2719 |
});
|
2720 |
};
|
2791 |
}));
|
2792 |
|
2793 |
if (/^[\d]+$/.test(this.postTerm)) {
|
2794 |
+
var edit = _this.createIcon(
|
2795 |
+
'small',
|
2796 |
+
'pen',
|
2797 |
+
aamLocal.labels['Edit Term']
|
2798 |
+
).attr({
|
2799 |
+
href: response.link,
|
2800 |
+
target: '_blank'
|
2801 |
+
});
|
2802 |
+
jQuery('.post-breadcrumb-line-actions').append(edit);
|
2803 |
+
jQuery('.post-breadcrumb-line-actions').append(_this.createIcon(
|
2804 |
+
'small',
|
2805 |
+
'manage',
|
2806 |
+
aamLocal.labels['Manage Access']
|
2807 |
+
).bind('click', {id: response.breadcrumb[i][0]}, function(event) {
|
2808 |
event.preventDefault();
|
|
|
2809 |
var aData = new Array();
|
2810 |
aData[0] = event.data.id;
|
2811 |
_this.launchManageAccessDialog(
|
2812 |
this, jQuery('.post-breadcrumb'), aData, 'term'
|
2813 |
+
);
|
2814 |
}));
|
2815 |
} else {
|
2816 |
jQuery('.post-breadcrumb-line-actions').append(jQuery('<a/>', {
|
2892 |
});
|
2893 |
};
|
2894 |
|
2895 |
+
/**
|
2896 |
+
* Create AAM icon
|
2897 |
+
*
|
2898 |
+
* @param string size
|
2899 |
+
* @param string qualifier
|
2900 |
+
* @param string tooltip
|
2901 |
+
*
|
2902 |
+
* @returns {object}
|
2903 |
+
*
|
2904 |
+
* @access public
|
2905 |
+
*/
|
2906 |
+
AAM.prototype.createIcon = function(size, qualifier, tooltip){
|
2907 |
+
var icon = jQuery('<a/>', {
|
2908 |
+
class: 'aam-icon aam-icon-' + size + ' aam-icon-' + qualifier,
|
2909 |
+
href: '#'
|
2910 |
+
});
|
2911 |
+
//add tooltip if defined
|
2912 |
+
if (typeof tooltip !== 'undefined'){
|
2913 |
+
icon.attr('aam-tooltip', tooltip);
|
2914 |
+
}
|
2915 |
+
|
2916 |
+
//add iternal span to apply table-cell css
|
2917 |
+
icon.html(jQuery('<span/>'));
|
2918 |
+
|
2919 |
+
return icon;
|
2920 |
+
};
|
2921 |
+
|
2922 |
+
/**
|
2923 |
+
* Mark icons as loading
|
2924 |
+
*
|
2925 |
+
* @param object|string icon
|
2926 |
+
* @param string size
|
2927 |
+
*
|
2928 |
+
* @returns void
|
2929 |
+
*
|
2930 |
+
* @access public
|
2931 |
+
*/
|
2932 |
+
AAM.prototype.loadingIcon = function(icon, size){
|
2933 |
+
jQuery(icon).addClass('aam-' + size + '-loader');
|
2934 |
+
};
|
2935 |
+
|
2936 |
+
/**
|
2937 |
+
* Remove loading icon
|
2938 |
+
*
|
2939 |
+
* @param object|string icon
|
2940 |
+
*
|
2941 |
+
* @returns void
|
2942 |
+
*
|
2943 |
+
* @access public
|
2944 |
+
*/
|
2945 |
+
AAM.prototype.removeLoadingIcon = function(icon){
|
2946 |
+
if (jQuery(icon).hasClass('aam-medium-loader')){
|
2947 |
+
jQuery(icon).removeClass('aam-medium-loader');
|
2948 |
+
} else if (jQuery(icon).hasClass('aam-small-loader')){
|
2949 |
+
jQuery(icon).removeClass('aam-small-loader');
|
2950 |
+
}
|
2951 |
+
};
|
2952 |
+
|
2953 |
/**
|
2954 |
* Launch the button
|
2955 |
*
|
2960 |
*
|
2961 |
* @access public
|
2962 |
*/
|
2963 |
+
AAM.prototype.activateIcon = function(element, size) {
|
2964 |
+
jQuery(element).addClass('aam-icon-' + size + '-active');
|
2965 |
};
|
2966 |
|
2967 |
/**
|
2974 |
*
|
2975 |
* @access public
|
2976 |
*/
|
2977 |
+
AAM.prototype.deactivateIcon = function(element) {
|
2978 |
+
if (jQuery(element).hasClass('aam-icon-small-active')){
|
2979 |
+
jQuery(element).removeClass('aam-icon-small-active');
|
2980 |
+
}else if (jQuery(element).hasClass('aam-icon-medium-active')){
|
2981 |
+
jQuery(element).removeClass('aam-icon-medium-active');
|
2982 |
+
}
|
2983 |
};
|
2984 |
|
2985 |
/**
|
media/js/configpress.js
CHANGED
@@ -51,6 +51,5 @@ jQuery(document).ready(function() {
|
|
51 |
highlight('#control_panel', 'failure');
|
52 |
}
|
53 |
});
|
54 |
-
})
|
55 |
-
});
|
56 |
-
|
51 |
highlight('#control_panel', 'failure');
|
52 |
}
|
53 |
});
|
54 |
+
});
|
55 |
+
});
|
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Contributors: vasyl_m
|
3 |
Tags: access manager, access, access control, comments, capability, widget, filter menu, role manager, user access, user control, user
|
4 |
Requires at least: 3.4.2
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
-
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -96,6 +96,26 @@ the list of additional metaboxes can be picked by AAM.
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
= 2.5 =
|
100 |
* Fixed issue with AAM Plus Package and Multisite
|
101 |
* Introduced Development License
|
2 |
Contributors: vasyl_m
|
3 |
Tags: access manager, access, access control, comments, capability, widget, filter menu, role manager, user access, user control, user
|
4 |
Requires at least: 3.4.2
|
5 |
+
Tested up to: 3.9
|
6 |
+
Stable tag: 2.6
|
7 |
|
8 |
+
The enhanced easy-to-use tool for access control to your backend and frontend.
|
9 |
|
10 |
== Description ==
|
11 |
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 2.6 =
|
100 |
+
* Fixed bug with user inheritance
|
101 |
+
* Fixed bug with user restore default settings
|
102 |
+
* Fixed bug with installed extension detection
|
103 |
+
* Improved core extension handling
|
104 |
+
* Improved subject inheritance mechanism
|
105 |
+
* Removed deprecated ConfigPress Tutorial
|
106 |
+
* Optimized CSS
|
107 |
+
* Regenerated translation pot file
|
108 |
+
|
109 |
+
= 2.5.2 =
|
110 |
+
* Fixed issue with AAM Media Manager
|
111 |
+
|
112 |
+
= 2.5.1 =
|
113 |
+
* Extended AAM Media Manager Extension
|
114 |
+
* Adjusted control_area to AAM Media Manager
|
115 |
+
* Fixed issue with mb_* functions
|
116 |
+
* Added Contextual Help Menu
|
117 |
+
* Updated My Feature extension
|
118 |
+
|
119 |
= 2.5 =
|
120 |
* Fixed issue with AAM Plus Package and Multisite
|
121 |
* Introduced Development License
|