Skip to content

Commit

Permalink
Merge pull request #1132 from publishpress/release-v2.13.0
Browse files Browse the repository at this point in the history
Release v2.13.0
  • Loading branch information
olatechpro authored Feb 12, 2024
2 parents b8fcb40 + 78de17a commit c613607
Show file tree
Hide file tree
Showing 25 changed files with 1,903 additions and 1,348 deletions.
4 changes: 2 additions & 2 deletions capsman-enhanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: PublishPress Capabilities
* Plugin URI: https://publishpress.com/capability-manager/
* Description: Manage WordPress role definitions, per-site or network-wide. Organizes post capabilities by post type and operation.
* Version: 2.12.2
* Version: 2.13.0
* Author: PublishPress
* Author URI: https://publishpress.com/
* Text Domain: capability-manager-enhanced
Expand Down Expand Up @@ -69,7 +69,7 @@
add_action('plugins_loaded', function () {

if (!defined('CAPSMAN_VERSION')) {
define('CAPSMAN_VERSION', '2.12.2');
define('CAPSMAN_VERSION', '2.13.0');
define('CAPSMAN_ENH_VERSION', CAPSMAN_VERSION);
define('PUBLISHPRESS_CAPS_VERSION', CAPSMAN_VERSION);
}
Expand Down
10 changes: 7 additions & 3 deletions common/css/admin-caps.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ text-decoration: none;
}

span.cap-x, a.cme-neg-all {
color: red;
color: #EA3323;
font-size: 1.5em;
padding-left: 1px;
padding-right: 2px;
Expand Down Expand Up @@ -150,7 +150,7 @@ text-decoration: line-through !important;
}

td.cap-yes span {
color:green;font-weight:bold;
color:#5ECD89;font-weight:bold;
}

td.cap-no {
Expand Down Expand Up @@ -200,7 +200,7 @@ vertical-align: bottom;
}

a.type-off, a.neg-cap, a.cme-neg-all, a.neg-type-caps {
color: #800;
color: #EA3323;
}

a.type-on, a.cap-on, a.cme-switch-all {
Expand Down Expand Up @@ -397,6 +397,10 @@ table#akmin tr td input[type=checkbox] {
display: inline-block;
}

#ppc-capabilities-wrapper .ppc-capabilities-content > div > h3 a {
color: inherit;
}

.pp-columns-wrapper .pp-sidebar-box {
font-size: inherit;
}
Expand Down
56 changes: 42 additions & 14 deletions common/css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ text-decoration: none;
}

span.cap-x, a.cme-neg-all {
color: red;
color: #EA3323;
font-size: 1.5em;
padding-left: 1px;
padding-right: 2px;
Expand Down Expand Up @@ -146,7 +146,7 @@ text-decoration: line-through !important;
}

td.cap-yes span {
color:green;font-weight:bold;
color:#5ECD89;font-weight:bold;
}

td.cap-no {
Expand Down Expand Up @@ -196,7 +196,7 @@ vertical-align: bottom;
}

a.type-off, a.neg-cap, a.cme-neg-all, a.neg-type-caps {
color: #800;
color: #EA3323;
}

a.type-on, a.cap-on, a.cme-switch-all {
Expand Down Expand Up @@ -403,7 +403,7 @@ div.publishpress-caps-backup td.cme-backup-info li.cme-change {

div.publishpress-caps-backup td.cme-backup-info .cme-plus {
font-weight: bold;
color: green;
color: #5ECD89;
}

.cme-backup-info ul.pp-restore-caps {
Expand Down Expand Up @@ -509,6 +509,14 @@ table#akmin tr td input[type=checkbox] {
transition: all 0.25s ease-out;
}

.pp-capability-menus .dashicons-open-folder {
color: #0073aa;
}

.pp-capability-menus .menu-item-link.restricted .dashicons-open-folder {
color: crimson;
}

.pp-capability-menus-wrapper:not(.nav-menus) .pp-capability-menus .menu-item-link:hover,
.pp-capability-menus-wrapper:not(.nav-menus) .pp-capability-menus .menu-item-link:focus {
cursor: pointer;
Expand Down Expand Up @@ -1142,31 +1150,50 @@ ul.pp-capabilities-description {
justify-content: space-between;
}

.ppc-flex-item {
flex-basis: -moz-available;
}

.ppc-flex-item .button {
margin-right: 10px;
}

.frontend-features-form.simple-form .field-row th {
.ppc-custom-item-parent-table {
border: 1px solid #c3c4c7;
}

.ppc-custom-features-table {
width: 100%;
border: none !important;
}

.frontend-features-form.simple-form .field-row th,
.ppc-custom-features-table .field-row th {
width: 155px;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
vertical-align: baseline;
border: none !important;
text-align: left;
}

.frontend-features-form.simple-form .field-row td {
.frontend-features-form.simple-form .field-row td,
.ppc-custom-features-table .field-row td {
padding-left: 0;
padding-top: 0;
padding-bottom: 0;
}

.frontend-features-form.simple-form .field-row input,
.frontend-features-form.simple-form .field-row textarea {
.frontend-features-form.simple-form .field-row textarea,
.ppc-custom-features-table .field-row input,
.ppc-custom-features-table .field-row textarea {
width: 100%;
}

.frontend-features-form.simple-form .field-row textarea {
.frontend-features-form.simple-form .field-row textarea
.ppc-custom-features-table .field-row textarea {
resize: none;
height: 30px;
vertical-align: top;
Expand Down Expand Up @@ -1194,7 +1221,7 @@ ul.pp-capabilities-description {
}

.frontend-feature-entry-pages {
color: green;
color: #5ECD89;
}

.frontend-feature-red,
Expand Down Expand Up @@ -1350,16 +1377,16 @@ ul.pp-capabilities-description {
}

.pp-capability-menus-wrapper.frontend-features .restrict-column input[type=checkbox]:checked:focus {
border-color: green;
box-shadow: 0 0 0 1px green;
border-color: inherit;
box-shadow: inherit;
}

.pp-capability-menus-wrapper.frontend-features .restrict-column input[type=checkbox]:checked::before {
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%233582c4%27%2F%3E%3C%2Fsvg%3E");
}

.pp-capability-menus-wrapper.frontend-features .pp-capability-menus .menu-item-link.restricted:active {
color: green;
color: #5ECD89;
}

.pp-capability-menus-wrapper.frontend-features .pp-capability-menus .menu-item-link.restricted {
Expand All @@ -1376,10 +1403,11 @@ ul.pp-capabilities-description {
}

.editing-custom-item span.title {
color: green;
color: #5ECD89;
}

.cancel-custom-item-edit {
.cancel-custom-item-edit,
.cancel-custom-features-item-edit {
color: red !important;
cursor: pointer;
visibility: hidden;
Expand Down
60 changes: 60 additions & 0 deletions common/css/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/* User Testing admin bar css*/
#wpadminbar .quicklinks #wp-admin-bar-pp_capabilities_test_user ul li .ab-item {
height: auto;
}

.ppc-test-user-admin-bar-form .search-test-user {
width: 280px !important;
margin: 0 !important;
padding: 0 8px !important;
line-height: 2 !important;
min-height: 30px !important;
box-shadow: 0 0 0 transparent !important;
border-radius: 4px !important;
border: 1px solid #7e8993 !important;
background-color: #ffffff !important;
color: #32373c !important;
font-size: 14px !important;
box-sizing: border-box !important;
vertical-align: top !important;
}

.ppc-test-user-admin-bar-form .search-test-user:focus {
border-color: #007cba !important;
box-shadow: 0 0 0 1px #007cba !important;
outline: 2px solid transparent !important;
}

.ppc-test-user-admin-bar-form .test-user-btn {
font-size: 13px !important;
padding: 0 10px !important;
min-height: 30px !important;
border-width: 1px !important;
border-radius: 3px !important;
color: #0071a1 !important;
border-color: #0071a1 !important;
background-color: #f3f5f6 !important;
line-height: 2 !important;
box-sizing: border-box !important;
vertical-align: top !important;
}

.ppc-test-user-admin-bar-form .test-user-btn:hover {
background: #f1f1f1 !important;
border-color: #016087 !important;
color: #016087 !important;
}

.ppc-test-user-search-spinner {
width: 20px !important;
height: 20px !important;
margin: 4px 10px 0 !important;
}

.test-user-btn span {
line-height: 2 !important;
}

.ppc-test-user-search-response h2 {
color: #E6A341 !important;
}
1 change: 1 addition & 0 deletions common/js/admin.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jQuery(document).ready( function($) {

$('a.cme-fix-read-cap').click(function(){
$('input[name="caps[read]"]').prop('checked', true);
$('input[name="caps[read]"].cme-negation-input').remove();
$('input[name="SaveRole"]').trigger('click');
return false;
});
Expand Down
Loading

0 comments on commit c613607

Please sign in to comment.