Admin Columns - Version 3.0.1

Version Description

Release Date: June 12th, 2017

  • [Improved] Clicking the toggle icons in the header of the column settings won't open the column settings anymore
  • [Improved] Fallback for the autoloader to work with lowercase files
  • [Improved] User Nicename available as an option for User display
  • [Fixed] Media Path now shows correct http protocol
Download this release

Release Info

Developer tschutter
Plugin Icon 128x128 Admin Columns
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0 to 3.0.1

assets/css/admin-page-addons.css CHANGED
@@ -73,7 +73,7 @@
73
padding: 25px 15px;
74
-moz-box-sizing: border-box;
75
box-sizing: border-box;
76
- min-height: 160px; }
77
.ac-addon ul li .addon-content > *:first-child {
78
margin-top: 0; }
79
.ac-addon ul li .addon-content > *:last-child {
@@ -99,5 +99,6 @@
99
vertical-align: middle;
100
font-size: 17px;
101
margin: -2px 3px 0 -5px; }
102
- .ac-addon ul li.ac-addon-types .addon-header .inner img {
103
max-height: 68px; }
73
padding: 25px 15px;
74
-moz-box-sizing: border-box;
75
box-sizing: border-box;
76
+ min-height: 162px; }
77
.ac-addon ul li .addon-content > *:first-child {
78
margin-top: 0; }
79
.ac-addon ul li .addon-content > *:last-child {
99
vertical-align: middle;
100
font-size: 17px;
101
margin: -2px 3px 0 -5px; }
102
+ .ac-addon ul li.ac-addon-types .addon-header .inner img,
103
+ .ac-addon ul li.ac-addon-buddypress .addon-header .inner img {
104
max-height: 68px; }
assets/css/admin-page-addons.min.css CHANGED
@@ -1 +1 @@
1
- .ac-addon{display:inline-block;margin-right:16px;float:left}.ac-addon.group-default{float:none;clear:both;display:table}.ac-addon h2{border-bottom:1px solid #ccc;padding-bottom:10px}.ac-addon ul{overflow:hidden}.ac-addon ul li{width:200px;background:#fff;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #ddd;box-shadow:0 3px 10px 0 rgba(0,0,0,.15)}.ac-addon ul li:last-child{margin-right:0}.ac-addon ul li:hover{box-shadow:0 3px 10px 0 rgba(0,0,0,.25)}.ac-addon ul li a{color:#444}.ac-addon ul li .addon-header{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #ddd;background:#0069a4;background:-webkit-gradient(radial,center center,0,center center,100%,color-stop(0,#0069a4),color-stop(100%,#085079));background:-webkit-radial-gradient(center,ellipse cover,#0069a4 0,#085079 100%);background:radial-gradient(ellipse at center,#0069a4 0,#085079 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="$addon-color-lightblue",endColorstr="$addon-color-blue",GradientType=1)}.ac-addon ul li .addon-header .inner{display:table-cell;vertical-align:middle;padding:15px 20px}.ac-addon ul li .addon-header .inner h3{padding:0 16px;color:#fff;line-height:150%}.ac-addon ul li .addon-header .inner img{display:inline-block;max-height:52px;max-width:100%}.ac-addon ul li .addon-notice{background-color:#fff8e5;margin:0;padding:15px}.ac-addon ul li .addon-notice a{font-weight:700;text-decoration:none;color:#0073aa}.ac-addon ul li .addon-content{width:100%;padding:25px 15px;box-sizing:border-box;min-height:160px}.ac-addon ul li .addon-content>:first-child{margin-top:0}.ac-addon ul li .addon-content>:last-child{margin-bottom:0}.ac-addon ul li .addon-actions{background:#eee;border-top:1px solid #ddd;padding:8px;overflow:hidden}.ac-addon ul li .addon-actions span.active,.ac-addon ul li .addon-actions span.active:hover{display:inline-block;height:28px;line-height:28px;cursor:default;border-color:#69c471;color:#388f40;margin-left:8px}.ac-addon ul li .addon-actions span.active:before,.ac-addon ul li .addon-actions span.active:hover:before{content:"\f147";font-family:dashicons,sans-serif;vertical-align:middle;font-size:17px;margin:-2px 3px 0 -5px}.ac-addon ul li.ac-addon-types .addon-header .inner img{max-height:68px}
1
+ .ac-addon{display:inline-block;margin-right:16px;float:left}.ac-addon.group-default{float:none;clear:both;display:table}.ac-addon h2{border-bottom:1px solid #ccc;padding-bottom:10px}.ac-addon ul{overflow:hidden}.ac-addon ul li{width:200px;background:#fff;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #ddd;box-shadow:0 3px 10px 0 rgba(0,0,0,.15)}.ac-addon ul li:last-child{margin-right:0}.ac-addon ul li:hover{box-shadow:0 3px 10px 0 rgba(0,0,0,.25)}.ac-addon ul li a{color:#444}.ac-addon ul li .addon-header{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #ddd;background:#0069a4;background:-webkit-gradient(radial,center center,0,center center,100%,color-stop(0,#0069a4),color-stop(100%,#085079));background:-webkit-radial-gradient(center,ellipse cover,#0069a4 0,#085079 100%);background:radial-gradient(ellipse at center,#0069a4 0,#085079 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="$addon-color-lightblue",endColorstr="$addon-color-blue",GradientType=1)}.ac-addon ul li .addon-header .inner{display:table-cell;vertical-align:middle;padding:15px 20px}.ac-addon ul li .addon-header .inner h3{padding:0 16px;color:#fff;line-height:150%}.ac-addon ul li .addon-header .inner img{display:inline-block;max-height:52px;max-width:100%}.ac-addon ul li .addon-notice{background-color:#fff8e5;margin:0;padding:15px}.ac-addon ul li .addon-notice a{font-weight:700;text-decoration:none;color:#0073aa}.ac-addon ul li .addon-content{width:100%;padding:25px 15px;box-sizing:border-box;min-height:162px}.ac-addon ul li .addon-content>:first-child{margin-top:0}.ac-addon ul li .addon-content>:last-child{margin-bottom:0}.ac-addon ul li .addon-actions{background:#eee;border-top:1px solid #ddd;padding:8px;overflow:hidden}.ac-addon ul li .addon-actions span.active,.ac-addon ul li .addon-actions span.active:hover{display:inline-block;height:28px;line-height:28px;cursor:default;border-color:#69c471;color:#388f40;margin-left:8px}.ac-addon ul li .addon-actions span.active:before,.ac-addon ul li .addon-actions span.active:hover:before{content:"\f147";font-family:dashicons,sans-serif;vertical-align:middle;font-size:17px;margin:-2px 3px 0 -5px}.ac-addon ul li.ac-addon-buddypress .addon-header .inner img,.ac-addon ul li.ac-addon-types .addon-header .inner img{max-height:68px}
assets/css/admin-page-columns.css CHANGED
@@ -756,6 +756,17 @@
756
color: #fff; }
757
#ac-pro-version h3 a span {
758
color: #e9426e; }
759
#ac-pro-version .acp-button {
760
background: #e9426e;
761
border: none;
756
color: #fff; }
757
#ac-pro-version h3 a span {
758
color: #e9426e; }
759
+ #ac-pro-version sup {
760
+ text-decoration: line-through;
761
+ font-size: 13px;
762
+ color: #ccc; }
763
+ #ac-pro-version .ac-pro-prices {
764
+ color: #ffcac0;
765
+ text-decoration: none; }
766
+ #ac-pro-version .ac-pro-prices:hover {
767
+ text-decoration: underline; }
768
+ #ac-pro-version .ac-pro-prices:hover sup {
769
+ text-decoration: none; }
770
#ac-pro-version .acp-button {
771
background: #e9426e;
772
border: none;
assets/css/admin-page-columns.min.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@font-face{font-family:cpac_icons;src:url(../fonts/cpac_icons.woff) format("woff")}[class*=" cpacicon-"],[class^=cpacicon-]{font-family:cpac_icons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=" cpacicon-"]:before,[class^=cpacicon-]:before{font-size:100%}.cpacicon-move:before{content:""}.ui-sortable-helper{box-shadow:1px 3px 6px 0 rgba(1,1,1,.4)}.ui-sortable-helper .column-meta{border-width:1px}.ac-column .comment-grey-bubble{height:16px;width:16px}.ac-column .comment-grey-bubble:before{content:"\f101";font:normal 20px/.5 dashicons;speak:none;display:inline-block;padding:0;top:4px;left:0;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.rtl .ac-column .comment-grey-bubble:before{right:0;left:auto}.ac-admin{margin-right:300px;max-width:740px}.ac-admin #add-new-column-template{display:none}.ac-admin .ac-left{float:left;width:100%}.ac-admin .ac-left .column-footer a.add_column{padding-left:16px;padding-right:16px;text-align:center}.ac-admin .ac-left .column-footer a.submit.save,.ac-admin .ac-left .column-footer a.submit.update{padding-left:20px;padding-right:20px;text-align:center}.ac-admin .ac-left .column-footer .submit.save{display:inline-block}.ac-admin .ac-left .column-footer .submit.update{display:none}.ac-admin .ac-right{float:right;margin-right:-300px;width:280px}.ac-admin .ac-right .ac-right-inside.fixed{width:280px}.ac-admin .column-footer .spinner{display:none}.ac-admin.saving .ac-right-inside .spinner{visibility:visible}.ac-admin.saving .column-footer .spinner{margin:4px 0 0;background-position:50%;float:none;display:inline-block;visibility:visible}.ac-admin.stored .ac-right .sidebox.form-actions .submit.save{display:none}.ac-admin.stored .ac-right .sidebox.form-actions .form-reset,.ac-admin.stored .ac-right .sidebox.form-actions .submit.update{display:block}.ac-admin.stored .column-footer .submit.save{display:none}.ac-admin.stored .column-footer .submit.update{display:inline-block}.ac-left .ac-notice{background:#fff;border-left:4px solid #ffba00;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-bottom:15px;padding:1px 12px}.ac-left .ajax-message{display:none}.ac-left .ac-message{margin-top:0!important}.ac-left .ac-boxes .ac-columns form{box-shadow:0 1px 3px rgba(0,0,0,.1);margin:0}.ac-left .ac-boxes.disabled{opacity:.7}.ac-left .ac-boxes.disabled .column_action,.ac-left .ac-boxes.disabled a.clone-button,.ac-left .ac-boxes.disabled a.remove-button{display:none!important}.ac-left .ac-boxes.disabled .column-meta td.column_sort{display:none}.ac-left .ac-boxes.disabled .column-meta td.column_label{padding-left:10px}.ac-left .ac-boxes.disabled .meta span{cursor:default!important;opacity:.45}.ac-left .ac-boxes.disabled .meta span:before{color:gray!important}.ac-left .ac-boxes.disabled .meta span.on{opacity:1}.ac-left .ac-boxes.disabled .column-footer{display:none}.ac-column a{cursor:pointer}.ac-column a:active,.ac-column a:focus{box-shadow:none}.ac-column.loading .ac-column-body>.spinner{position:absolute;left:50%;top:50%;z-index:5;margin-left:-10px;margin-top:-10px;display:block}.ac-column.loading .ac-column-body:before{content:"";position:absolute;width:100%;height:100%;background:#fff;z-index:4;opacity:.5}.ac-column.opened{margin-bottom:-1px}.ac-column.opened .ac-column-header{background-color:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column-header:hover .column_label .inner>a.close-button{display:inline-block}.ac-column.opened .ac-column-header .column_edit:after{content:"\f142"}.ac-column.opened .ac-column-header table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td a{color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td.column_sort span{color:#9b9b9b}.ac-column.opened .ac-column-header table td.column_label .meta span{color:#8d8d8d;text-shadow:none}.ac-column.opened .ac-column-header table td.column_label a.edit-button{display:none}.ac-column.opened .ac-column-header table td.column_type{color:#5c5c5c}.ac-column.opened .ac-column-header table td.column_edit:after{color:#9b9b9b}.ac-column.opened .ac-column-body{border:1px solid #ccc;border-top:1px solid #d4d4d4}.ac-column-setting{width:100%;clear:both;border-spacing:0;margin:0;border-top:1px solid #e8e8e8}.ac-column-setting:first-child{border-top:0}.ac-column-setting tr.hide{display:none}.ac-column-setting tr td{vertical-align:top;border:none;padding:0;background:#fff}.ac-column-setting td.col-label{position:relative;line-height:24px;overflow:visible;background:#f5f5f5;border-right:1px solid #dedede;width:34%;padding:10px;padding-left:12px}.ac-column-setting td.col-label span.label{font-weight:700;display:block;color:#333;font-style:normal}.ac-column-setting td.col-label div.tooltip{font-size:12px;font-style:normal;line-height:16px;margin:0!important;display:none;position:absolute;max-width:200px;z-index:3;top:40px;left:0;font-weight:400;color:#fff;background-color:#333;box-shadow:0 1px 3px rgba(0,0,0,.2);padding:.618em 1em;border-radius:3px}.ac-column-setting td.col-label div.tooltip em{margin-top:3px;display:block;color:#999}.ac-column-setting td.col-input div.msg{margin-top:5px;display:none;color:#333;padding:6px 10px;background-color:#ffebe8;border:1px solid #fff;border-radius:3px}.ac-column-setting td.col-input div.msg p{margin:.5em 0 1em}.ac-column-setting td.col-input div.msg a.button{margin-bottom:1em}.ac-column-setting td.col-input .help-msg{margin:10px 0 0;color:#666;font-size:13px}.ac-column-setting .ac-column-setting td.col_label{background-color:#fcfcfc}.ac-column-setting .ac-column-setting td.col_label .label{font-size:12px;color:#595959}.ac-column-setting span.ac-setting-error{display:block;margin:0;background-color:#ffebe8;padding:7px 10px}.ac-column-setting-actions .col-settings p{padding-left:10px}.ac-column-setting-actions .col-settings a{text-decoration:none}.ac-column-setting-actions .col-settings a.clone-button,.ac-column-setting-actions .col-settings a.close-button{margin-right:10px}.ac-column-setting-actions .col-settings a.remove-button{color:#a00;text-decoration:none;text-shadow:none;margin-right:5px}.ac-column-setting-actions .col-settings a.remove-button:hover{color:red}.ac-setting-input{padding:10px;line-height:24px}.ac-setting-input input,.ac-setting-input select{width:99.95%}.ac-setting-input input[type=checkbox],.ac-setting-input input[type=radio]{width:auto;margin-right:4px}.ac-setting-input .checkbox-labels>label,.ac-setting-input .radio-labels>label{padding-right:10px;vertical-align:top}.ac-setting-input .checkbox-labels.vertical input[type=radio],.ac-setting-input .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-setting-input .checkbox-labels.vertical>label,.ac-setting-input .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-setting-input-date .ac-setting-input-date__custom{display:inline-block;width:71px;margin-right:5px}.ac-setting-input-date .ac-setting-input-date__value{display:inline-block;width:165px}.ac-setting-input-date .ac-setting-input-date__example{margin-left:8px}.ac-setting-input-date .ac-setting-input-date__example .spinner{float:none;vertical-align:top}.ac-setting-input-date code{display:inline-block;min-width:60px;padding-top:0;padding-bottom:0;text-align:center}.ac-setting-input-width{position:relative}.ac-setting-input-width div.description{font-size:12px;width:68px;position:absolute;display:table}.ac-setting-input-width div.description input{margin:0;text-align:right;vertical-align:middle;display:table-cell}.ac-setting-input-width div.description input::-webkit-input-placeholder{font-size:13px}.ac-setting-input-width div.description input:-moz-placeholder,.ac-setting-input-width div.description input::-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input:-ms-input-placeholder{font-size:13px}.ac-setting-input-width div.description span{background:#efefef;display:table-cell;width:26px;line-height:23px;text-align:center;vertical-align:middle;border:1px solid #dedede;border-left:none;color:#505050}.ac-setting-input-width div.width-slider{margin-left:82px;margin-right:88px;position:relative;top:8px}.ac-setting-input-width div.width-slider .ui-slider-handle{cursor:ew-resize}.ac-setting-input-width div.unit-select{position:absolute;top:11px;right:6px;width:82px;text-align:right}.ac-setting-input-width div.unit-select .radio-labels{padding:0}.ac-setting-input-width div.unit-select .radio-labels label{padding:0;margin-right:6px}.ac-setting-input-width div.unit-select .radio-labels label input{margin-right:2px}.ac-column-header{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.ac-column-header:nth-child(2n) .column-meta{background:#f9f9f9}.ac-column-header img{margin-right:3px}.ac-column-header table{border:none;background:transparent;border-radius:0}.ac-column-header table tr td{vertical-align:top;height:18px;padding:12px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}.ac-column-header table tr td.column_sort{position:relative;cursor:move;padding:9px 16px}.ac-column-header table tr td.column_sort span.cpacicon-move{position:absolute;top:12px;left:12px;font-size:22px;display:inline-block;color:#bdbdbd}.ac-column-header table tr td.column_label{width:70%;font-weight:700;vertical-align:middle;position:relative;padding:15px 0}.ac-column-header table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.ac-column-header table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.ac-column-header table tr td.column_label .inner>a:hover{color:#333}.ac-column-header table tr td.column_label .inner>a.clone-button,.ac-column-header table tr td.column_label .inner>a.close-button,.ac-column-header table tr td.column_label .inner>a.edit-button,.ac-column-header table tr td.column_label .inner>a.remove-button{display:none;color:#0074a2;text-decoration:none;text-shadow:none;font-weight:400;margin-left:5px;font-size:12px}.ac-column-header table tr td.column_label .inner>a.clone-button:hover,.ac-column-header table tr td.column_label .inner>a.close-button:hover,.ac-column-header table tr td.column_label .inner>a.edit-button:hover,.ac-column-header table tr td.column_label .inner>a.remove-button:hover{color:#2ea2cc}.ac-column-header table tr td.column_label .inner>a.remove-button{color:#a00}.ac-column-header table tr td.column_label .inner>a.remove-button:hover{color:red}.ac-column-header table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:400;color:#b2b2b2;font-size:12px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting{cursor:pointer;margin-left:4px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-heading-setting--width{margin-right:3px;cursor:auto;color:#737373}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator{margin-left:3px;font-size:24px;line-height:17px;width:22px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--filter{font-size:20px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on,.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on span{color:#21759b}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.disabled{cursor:default}.ac-column-header table tr td.column_label span.vers{float:left}.ac-column-header table tr td.column_type{width:auto;min-width:120px;text-align:right;color:#999;padding-right:0}.ac-column-header table tr td.column_type .inner{display:inline-block;height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;vertical-align:middle}.ac-column-header table tr td.column_type .inner a{margin-top:2px;color:#999}.ac-column-header table tr td.column_edit{width:38px;min-width:38px;text-align:center;cursor:pointer}.ac-column-header table tr td.column_edit:after{right:0;content:"\f140";font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 5px 0 0;bottom:0;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#b4b9be}.ac-column-header table tr:hover td.column_sort span{color:#9b9b9b}.ac-column-header:hover .column_label .inner>a.clone-button,.ac-column-header:hover .column_label .inner>a.edit-button,.ac-column-header:hover .column_label .inner>a.remove-button{display:inline-block}.ac-column-header span.vers{padding-top:2px}.ac-column-header span.vers .comment-grey-bubble{float:right}.ac-column-body{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{background:transparent url(../images/order_arrow.png) no-repeat 0 0;color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .button-container{float:right;display:inline-block;min-height:29px}.column-footer .button-container a{display:inline-block;margin-left:5px;vertical-align:top}.column-footer .button-container a.clear-columns{color:#bc0b0b;text-decoration:none;margin-right:8px;margin-top:5px}.column-footer .button-container a.clear-columns:hover{color:red}.ac-right .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid #dedede;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,.1);position:relative;margin-bottom:14px}.ac-right .sidebox h3{padding:10px;margin:0;position:relative}.ac-right .sidebox h3.title{font-family:Georgia,Times New Roman,Bitstream Charter,Times,serif;font-size:15px;font-weight:400;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:-webkit-gradient(linear,left bottom,left top,from(#ececec),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(0deg,#ececec,#f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.ac-right .sidebox h3 span.left{position:relative;background:#fff;z-index:2;padding-right:8px}.ac-right .sidebox h3 span.contenttype{display:block;line-height:20px;font-size:12px;text-transform:uppercase;color:gray;margin-top:4px}.ac-right .sidebox h3 span.contenttype.right{position:absolute;display:inline-block;z-index:1;right:10px;text-align:right;margin-top:0}.ac-right .sidebox .inside{padding:10px}.ac-right .sidebox .inside p{margin-top:0}.ac-right .sidebox.form-actions .form-reset{display:none;border-bottom:1px solid #f5f5f5;padding:8px}.ac-right .sidebox.form-actions .reset-column-type{text-decoration:none;color:#bc0b0b;line-height:25px;display:inline-block;background:none;border:none;padding:0;font-size:13px;cursor:pointer;margin:0}.ac-right .sidebox.form-actions .reset-column-type:hover{color:red}.ac-right .sidebox.form-actions .form-update{padding:8px;overflow:hidden}.ac-right .sidebox.form-actions .submit{display:none;width:100%;height:28px;line-height:28px;text-align:center}.ac-right .sidebox.form-actions .submit.save{display:block}.ac-right .sidebox#direct-feedback #feedback-rate,.ac-right .sidebox#direct-feedback #feedback-support{display:none}.ac-right .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #ccc;width:48%;height:64px;text-align:center;line-height:64px;font-weight:700;color:#222;display:inline-block;text-decoration:none}.ac-right .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.ac-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.ac-right .sidebox#direct-feedback .inside form input[type=submit]{display:inline-block;float:right;border-radius:4px;border:1px solid #ccc;height:32px;text-align:center;line-height:32px;font-weight:700;font-size:12px;padding:0 32px;color:#ccc;background:none;text-decoration:none;cursor:pointer}.ac-right .sidebox#direct-feedback .inside form input[type=submit]:hover{background:#fafafa}.ac-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.ac-right .sidebox#direct-feedback .inside ul{margin:0}.ac-right .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.ac-right .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #ccc;border-radius:4px;display:block}.ac-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.ac-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.ac-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}#ac-pro-version{background:none}#ac-pro-version .padding-box{padding:20px 10px 10px;background:#3d4350;color:#fff}#ac-pro-version .nopadding{margin:0;padding:0}#ac-pro-version h2{color:#fff}#ac-pro-version h3{font-size:34px}#ac-pro-version h3 a{text-decoration:none;color:#fff}#ac-pro-version h3 a span{color:#e9426e}#ac-pro-version .acp-button{cursor:pointer}#ac-pro-version .more{color:#ffee85;text-decoration:none}#ac-pro-version .more:hover{text-decoration:underline}#ac-pro-version p.center{text-align:center}#ac-pro-version p.nomargin{margin-bottom:0}#ac-pro-version ul.features a:hover{text-decoration:underline}#ac-pro-version ul li{padding-bottom:3px}#ac-pro-version ul li a{color:#fff;text-decoration:none}#ac-pro-version ul li a:before{content:"\2713";font-weight:700;font-size:16px;display:inline-block;vertical-align:top;margin-right:10px}#ac-pro-version ul li.acp-integration{padding:0;min-height:23px;line-height:23px}#ac-pro-version ul li.acp-integration img{height:23px;display:inline-block;vertical-align:middle;margin-right:3px}#ac-pro-version ul li.acp-integration img.ac-addon-pods{margin-top:-4px}#ac-pro-version ul li.acp-integration img.ac-addon-types{height:18px}#ac-pro-version ul li.acp-integration img.cac-addon-acf{margin-top:-4px;height:15px}#ac-pro-version ul li.acp-integration a:before{content:"+"}#ac-pro-version .padding-box.ac-pro-deal{color:#3d4350;padding-bottom:20px;text-align:center;background:#ffef8f}#ac-pro-version .padding-box.ac-pro-deal h3{font-size:20px;line-height:26px;padding-top:0;padding-bottom:0;margin-bottom:18px}#ac-pro-version .padding-box.ac-pro-deal a.acp-button{font-size:16px}#ac-pro-version .padding-box.ac-pro-newsletter{background:#fff;color:#3d4350}#ac-pro-version .padding-box.ac-pro-newsletter h3{font-size:20px;padding-bottom:0}#ac-pro-version .padding-box.ac-pro-newsletter input{width:100%;margin-bottom:8px}#ac-pro-version .padding-box.ac-pro-newsletter .acp-button{margin-top:12px;margin-bottom:0;padding:7px 20px}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px}@media only screen and (max-width:900px){.ac-admin{margin-right:0}.ac-admin .ac-left,.ac-admin .menu{float:none}.ac-admin .ac-right{float:none;margin-top:0;margin-right:0;width:100%}}
1
+ @charset "UTF-8";@font-face{font-family:cpac_icons;src:url(../fonts/cpac_icons.woff) format("woff")}[class*=" cpacicon-"],[class^=cpacicon-]{font-family:cpac_icons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[class*=" cpacicon-"]:before,[class^=cpacicon-]:before{font-size:100%}.cpacicon-move:before{content:""}.ui-sortable-helper{box-shadow:1px 3px 6px 0 rgba(1,1,1,.4)}.ui-sortable-helper .column-meta{border-width:1px}.ac-column .comment-grey-bubble{height:16px;width:16px}.ac-column .comment-grey-bubble:before{content:"\f101";font:normal 20px/.5 dashicons;speak:none;display:inline-block;padding:0;top:4px;left:0;position:relative;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important}.rtl .ac-column .comment-grey-bubble:before{right:0;left:auto}.ac-admin{margin-right:300px;max-width:740px}.ac-admin #add-new-column-template{display:none}.ac-admin .ac-left{float:left;width:100%}.ac-admin .ac-left .column-footer a.add_column{padding-left:16px;padding-right:16px;text-align:center}.ac-admin .ac-left .column-footer a.submit.save,.ac-admin .ac-left .column-footer a.submit.update{padding-left:20px;padding-right:20px;text-align:center}.ac-admin .ac-left .column-footer .submit.save{display:inline-block}.ac-admin .ac-left .column-footer .submit.update{display:none}.ac-admin .ac-right{float:right;margin-right:-300px;width:280px}.ac-admin .ac-right .ac-right-inside.fixed{width:280px}.ac-admin .column-footer .spinner{display:none}.ac-admin.saving .ac-right-inside .spinner{visibility:visible}.ac-admin.saving .column-footer .spinner{margin:4px 0 0;background-position:50%;float:none;display:inline-block;visibility:visible}.ac-admin.stored .ac-right .sidebox.form-actions .submit.save{display:none}.ac-admin.stored .ac-right .sidebox.form-actions .form-reset,.ac-admin.stored .ac-right .sidebox.form-actions .submit.update{display:block}.ac-admin.stored .column-footer .submit.save{display:none}.ac-admin.stored .column-footer .submit.update{display:inline-block}.ac-left .ac-notice{background:#fff;border-left:4px solid #ffba00;box-shadow:0 1px 1px 0 rgba(0,0,0,.1);margin-bottom:15px;padding:1px 12px}.ac-left .ajax-message{display:none}.ac-left .ac-message{margin-top:0!important}.ac-left .ac-boxes .ac-columns form{box-shadow:0 1px 3px rgba(0,0,0,.1);margin:0}.ac-left .ac-boxes.disabled{opacity:.7}.ac-left .ac-boxes.disabled .column_action,.ac-left .ac-boxes.disabled a.clone-button,.ac-left .ac-boxes.disabled a.remove-button{display:none!important}.ac-left .ac-boxes.disabled .column-meta td.column_sort{display:none}.ac-left .ac-boxes.disabled .column-meta td.column_label{padding-left:10px}.ac-left .ac-boxes.disabled .meta span{cursor:default!important;opacity:.45}.ac-left .ac-boxes.disabled .meta span:before{color:gray!important}.ac-left .ac-boxes.disabled .meta span.on{opacity:1}.ac-left .ac-boxes.disabled .column-footer{display:none}.ac-column a{cursor:pointer}.ac-column a:active,.ac-column a:focus{box-shadow:none}.ac-column.loading .ac-column-body>.spinner{position:absolute;left:50%;top:50%;z-index:5;margin-left:-10px;margin-top:-10px;display:block}.ac-column.loading .ac-column-body:before{content:"";position:absolute;width:100%;height:100%;background:#fff;z-index:4;opacity:.5}.ac-column.opened{margin-bottom:-1px}.ac-column.opened .ac-column-header{background-color:#eaeaea;border-color:#ccc}.ac-column.opened .ac-column-header:hover .column_label .inner>a.close-button{display:inline-block}.ac-column.opened .ac-column-header .column_edit:after{content:"\f142"}.ac-column.opened .ac-column-header table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td a{color:#333;text-shadow:0 1px 0 #fff}.ac-column.opened .ac-column-header table td.column_sort span{color:#9b9b9b}.ac-column.opened .ac-column-header table td.column_label .meta span{color:#8d8d8d;text-shadow:none}.ac-column.opened .ac-column-header table td.column_label a.edit-button{display:none}.ac-column.opened .ac-column-header table td.column_type{color:#5c5c5c}.ac-column.opened .ac-column-header table td.column_edit:after{color:#9b9b9b}.ac-column.opened .ac-column-body{border:1px solid #ccc;border-top:1px solid #d4d4d4}.ac-column-setting{width:100%;clear:both;border-spacing:0;margin:0;border-top:1px solid #e8e8e8}.ac-column-setting:first-child{border-top:0}.ac-column-setting tr.hide{display:none}.ac-column-setting tr td{vertical-align:top;border:none;padding:0;background:#fff}.ac-column-setting td.col-label{position:relative;line-height:24px;overflow:visible;background:#f5f5f5;border-right:1px solid #dedede;width:34%;padding:10px;padding-left:12px}.ac-column-setting td.col-label span.label{font-weight:700;display:block;color:#333;font-style:normal}.ac-column-setting td.col-label div.tooltip{font-size:12px;font-style:normal;line-height:16px;margin:0!important;display:none;position:absolute;max-width:200px;z-index:3;top:40px;left:0;font-weight:400;color:#fff;background-color:#333;box-shadow:0 1px 3px rgba(0,0,0,.2);padding:.618em 1em;border-radius:3px}.ac-column-setting td.col-label div.tooltip em{margin-top:3px;display:block;color:#999}.ac-column-setting td.col-input div.msg{margin-top:5px;display:none;color:#333;padding:6px 10px;background-color:#ffebe8;border:1px solid #fff;border-radius:3px}.ac-column-setting td.col-input div.msg p{margin:.5em 0 1em}.ac-column-setting td.col-input div.msg a.button{margin-bottom:1em}.ac-column-setting td.col-input .help-msg{margin:10px 0 0;color:#666;font-size:13px}.ac-column-setting .ac-column-setting td.col_label{background-color:#fcfcfc}.ac-column-setting .ac-column-setting td.col_label .label{font-size:12px;color:#595959}.ac-column-setting span.ac-setting-error{display:block;margin:0;background-color:#ffebe8;padding:7px 10px}.ac-column-setting-actions .col-settings p{padding-left:10px}.ac-column-setting-actions .col-settings a{text-decoration:none}.ac-column-setting-actions .col-settings a.clone-button,.ac-column-setting-actions .col-settings a.close-button{margin-right:10px}.ac-column-setting-actions .col-settings a.remove-button{color:#a00;text-decoration:none;text-shadow:none;margin-right:5px}.ac-column-setting-actions .col-settings a.remove-button:hover{color:red}.ac-setting-input{padding:10px;line-height:24px}.ac-setting-input input,.ac-setting-input select{width:99.95%}.ac-setting-input input[type=checkbox],.ac-setting-input input[type=radio]{width:auto;margin-right:4px}.ac-setting-input .checkbox-labels>label,.ac-setting-input .radio-labels>label{padding-right:10px;vertical-align:top}.ac-setting-input .checkbox-labels.vertical input[type=radio],.ac-setting-input .radio-labels.vertical input[type=radio]{margin-right:6px}.ac-setting-input .checkbox-labels.vertical>label,.ac-setting-input .radio-labels.vertical>label{display:block;margin-bottom:5px}.ac-setting-input-date .ac-setting-input-date__custom{display:inline-block;width:71px;margin-right:5px}.ac-setting-input-date .ac-setting-input-date__value{display:inline-block;width:165px}.ac-setting-input-date .ac-setting-input-date__example{margin-left:8px}.ac-setting-input-date .ac-setting-input-date__example .spinner{float:none;vertical-align:top}.ac-setting-input-date code{display:inline-block;min-width:60px;padding-top:0;padding-bottom:0;text-align:center}.ac-setting-input-width{position:relative}.ac-setting-input-width div.description{font-size:12px;width:68px;position:absolute;display:table}.ac-setting-input-width div.description input{margin:0;text-align:right;vertical-align:middle;display:table-cell}.ac-setting-input-width div.description input::-webkit-input-placeholder{font-size:13px}.ac-setting-input-width div.description input:-moz-placeholder,.ac-setting-input-width div.description input::-moz-placeholder{font-size:13px}.ac-setting-input-width div.description input:-ms-input-placeholder{font-size:13px}.ac-setting-input-width div.description span{background:#efefef;display:table-cell;width:26px;line-height:23px;text-align:center;vertical-align:middle;border:1px solid #dedede;border-left:none;color:#505050}.ac-setting-input-width div.width-slider{margin-left:82px;margin-right:88px;position:relative;top:8px}.ac-setting-input-width div.width-slider .ui-slider-handle{cursor:ew-resize}.ac-setting-input-width div.unit-select{position:absolute;top:11px;right:6px;width:82px;text-align:right}.ac-setting-input-width div.unit-select .radio-labels{padding:0}.ac-setting-input-width div.unit-select .radio-labels label{padding:0;margin-right:6px}.ac-setting-input-width div.unit-select .radio-labels label input{margin-right:2px}.ac-column-header{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.ac-column-header:nth-child(2n) .column-meta{background:#f9f9f9}.ac-column-header img{margin-right:3px}.ac-column-header table{border:none;background:transparent;border-radius:0}.ac-column-header table tr td{vertical-align:top;height:18px;padding:12px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}.ac-column-header table tr td.column_sort{position:relative;cursor:move;padding:9px 16px}.ac-column-header table tr td.column_sort span.cpacicon-move{position:absolute;top:12px;left:12px;font-size:22px;display:inline-block;color:#bdbdbd}.ac-column-header table tr td.column_label{width:70%;font-weight:700;vertical-align:middle;position:relative;padding:15px 0}.ac-column-header table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.ac-column-header table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.ac-column-header table tr td.column_label .inner>a:hover{color:#333}.ac-column-header table tr td.column_label .inner>a.clone-button,.ac-column-header table tr td.column_label .inner>a.close-button,.ac-column-header table tr td.column_label .inner>a.edit-button,.ac-column-header table tr td.column_label .inner>a.remove-button{display:none;color:#0074a2;text-decoration:none;text-shadow:none;font-weight:400;margin-left:5px;font-size:12px}.ac-column-header table tr td.column_label .inner>a.clone-button:hover,.ac-column-header table tr td.column_label .inner>a.close-button:hover,.ac-column-header table tr td.column_label .inner>a.edit-button:hover,.ac-column-header table tr td.column_label .inner>a.remove-button:hover{color:#2ea2cc}.ac-column-header table tr td.column_label .inner>a.remove-button{color:#a00}.ac-column-header table tr td.column_label .inner>a.remove-button:hover{color:red}.ac-column-header table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:400;color:#b2b2b2;font-size:12px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting{cursor:pointer;margin-left:4px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-heading-setting--width{margin-right:3px;cursor:auto;color:#737373}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator{margin-left:3px;font-size:24px;line-height:17px;width:22px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.ac-column-indicator--filter{font-size:20px}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on,.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.ac-column-indicator.on span{color:#21759b}.ac-column-header table tr td.column_label .inner .meta .ac-column-heading-setting.disabled{cursor:default}.ac-column-header table tr td.column_label span.vers{float:left}.ac-column-header table tr td.column_type{width:auto;min-width:120px;text-align:right;color:#999;padding-right:0}.ac-column-header table tr td.column_type .inner{display:inline-block;height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:120px;vertical-align:middle}.ac-column-header table tr td.column_type .inner a{margin-top:2px;color:#999}.ac-column-header table tr td.column_edit{width:38px;min-width:38px;text-align:center;cursor:pointer}.ac-column-header table tr td.column_edit:after{right:0;content:"\f140";font:normal 20px/1 dashicons;speak:none;display:inline-block;padding:0 5px 0 0;bottom:0;position:relative;vertical-align:bottom;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none!important;color:#b4b9be}.ac-column-header table tr:hover td.column_sort span{color:#9b9b9b}.ac-column-header:hover .column_label .inner>a.clone-button,.ac-column-header:hover .column_label .inner>a.edit-button,.ac-column-header:hover .column_label .inner>a.remove-button{display:inline-block}.ac-column-header span.vers{padding-top:2px}.ac-column-header span.vers .comment-grey-bubble{float:right}.ac-column-body{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.column-footer{background:#eaf2fa;border:1px solid #c7d7e2;min-height:26px;padding:8px;overflow:hidden}.column-footer .order-message{background:transparent url(../images/order_arrow.png) no-repeat 0 0;color:#7a9bbe;float:left;font-family:Comic Sans MS,sans-serif;font-size:11px;height:13px;line-height:1em;margin-left:4px;padding:7px 0 0 22px;text-shadow:0 1px 0 #fff;display:inline-block}.column-footer .button-container{float:right;display:inline-block;min-height:29px}.column-footer .button-container a{display:inline-block;margin-left:5px;vertical-align:top}.column-footer .button-container a.clear-columns{color:#bc0b0b;text-decoration:none;margin-right:8px;margin-top:5px}.column-footer .button-container a.clear-columns:hover{color:red}.ac-right .sidebox{background:none repeat scroll 0 0 #fff;border:1px solid #dedede;border-radius:0 0 0 0;box-shadow:0 1px 3px rgba(0,0,0,.1);position:relative;margin-bottom:14px}.ac-right .sidebox h3{padding:10px;margin:0;position:relative}.ac-right .sidebox h3.title{font-family:Georgia,Times New Roman,Bitstream Charter,Times,serif;font-size:15px;font-weight:400;line-height:1;margin:0;padding:7px 10px;background:#f1f1f1;background-image:-webkit-gradient(linear,left bottom,left top,from(#ececec),to(#f9f9f9));background-image:-webkit-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(0deg,#ececec,#f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.ac-right .sidebox h3 span.left{position:relative;background:#fff;z-index:2;padding-right:8px}.ac-right .sidebox h3 span.contenttype{display:block;line-height:20px;font-size:12px;text-transform:uppercase;color:gray;margin-top:4px}.ac-right .sidebox h3 span.contenttype.right{position:absolute;display:inline-block;z-index:1;right:10px;text-align:right;margin-top:0}.ac-right .sidebox .inside{padding:10px}.ac-right .sidebox .inside p{margin-top:0}.ac-right .sidebox.form-actions .form-reset{display:none;border-bottom:1px solid #f5f5f5;padding:8px}.ac-right .sidebox.form-actions .reset-column-type{text-decoration:none;color:#bc0b0b;line-height:25px;display:inline-block;background:none;border:none;padding:0;font-size:13px;cursor:pointer;margin:0}.ac-right .sidebox.form-actions .reset-column-type:hover{color:red}.ac-right .sidebox.form-actions .form-update{padding:8px;overflow:hidden}.ac-right .sidebox.form-actions .submit{display:none;width:100%;height:28px;line-height:28px;text-align:center}.ac-right .sidebox.form-actions .submit.save{display:block}.ac-right .sidebox#direct-feedback #feedback-rate,.ac-right .sidebox#direct-feedback #feedback-support{display:none}.ac-right .sidebox#direct-feedback .inside>a{border-radius:4px;border:1px solid #ccc;width:48%;height:64px;text-align:center;line-height:64px;font-weight:700;color:#222;display:inline-block;text-decoration:none}.ac-right .sidebox#direct-feedback .inside>a:hover{background:#fafafa}.ac-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.ac-right .sidebox#direct-feedback .inside form input[type=submit]{display:inline-block;float:right;border-radius:4px;border:1px solid #ccc;height:32px;text-align:center;line-height:32px;font-weight:700;font-size:12px;padding:0 32px;color:#ccc;background:none;text-decoration:none;cursor:pointer}.ac-right .sidebox#direct-feedback .inside form input[type=submit]:hover{background:#fafafa}.ac-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.ac-right .sidebox#direct-feedback .inside ul{margin:0}.ac-right .sidebox#direct-feedback .inside ul.share li{margin:0;display:block;float:left;margin-left:9px;width:30%}.ac-right .sidebox#direct-feedback .inside ul.share li a{text-decoration:none;vertical-align:middle;line-height:20px;padding:16px 0;width:100%;text-align:center;border:1px solid #ccc;border-radius:4px;display:block}.ac-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#fafafa}.ac-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.ac-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}#ac-pro-version{background:none}#ac-pro-version .padding-box{padding:20px 10px 10px;background:#3d4350;color:#fff}#ac-pro-version .nopadding{margin:0;padding:0}#ac-pro-version h2{color:#fff}#ac-pro-version h3{font-size:34px}#ac-pro-version h3 a{text-decoration:none;color:#fff}#ac-pro-version h3 a span{color:#e9426e}#ac-pro-version sup{text-decoration:line-through;font-size:13px;color:#ccc}#ac-pro-version .ac-pro-prices{color:#ffcac0;text-decoration:none}#ac-pro-version .ac-pro-prices:hover{text-decoration:underline}#ac-pro-version .ac-pro-prices:hover sup{text-decoration:none}#ac-pro-version .acp-button{cursor:pointer}#ac-pro-version .more{color:#ffee85;text-decoration:none}#ac-pro-version .more:hover{text-decoration:underline}#ac-pro-version p.center{text-align:center}#ac-pro-version p.nomargin{margin-bottom:0}#ac-pro-version ul.features a:hover{text-decoration:underline}#ac-pro-version ul li{padding-bottom:3px}#ac-pro-version ul li a{color:#fff;text-decoration:none}#ac-pro-version ul li a:before{content:"\2713";font-weight:700;font-size:16px;display:inline-block;vertical-align:top;margin-right:10px}#ac-pro-version ul li.acp-integration{padding:0;min-height:23px;line-height:23px}#ac-pro-version ul li.acp-integration img{height:23px;display:inline-block;vertical-align:middle;margin-right:3px}#ac-pro-version ul li.acp-integration img.ac-addon-pods{margin-top:-4px}#ac-pro-version ul li.acp-integration img.ac-addon-types{height:18px}#ac-pro-version ul li.acp-integration img.cac-addon-acf{margin-top:-4px;height:15px}#ac-pro-version ul li.acp-integration a:before{content:"+"}#ac-pro-version .padding-box.ac-pro-deal{color:#3d4350;padding-bottom:20px;text-align:center;background:#ffef8f}#ac-pro-version .padding-box.ac-pro-deal h3{font-size:20px;line-height:26px;padding-top:0;padding-bottom:0;margin-bottom:18px}#ac-pro-version .padding-box.ac-pro-deal a.acp-button{font-size:16px}#ac-pro-version .padding-box.ac-pro-newsletter{background:#fff;color:#3d4350}#ac-pro-version .padding-box.ac-pro-newsletter h3{font-size:20px;padding-bottom:0}#ac-pro-version .padding-box.ac-pro-newsletter input{width:100%;margin-bottom:8px}#ac-pro-version .padding-box.ac-pro-newsletter .acp-button{margin-top:12px;margin-bottom:0;padding:7px 20px}#ac-pro-version .acp-button{background:#e9426e;border:none;color:#fff;text-decoration:none;text-align:center;display:block;padding:6px 20px;border-radius:3px}@media only screen and (max-width:900px){.ac-admin{margin-right:0}.ac-admin .ac-left,.ac-admin .menu{float:none}.ac-admin .ac-right{float:none;margin-top:0;margin-right:0;width:100%}}
assets/images/addons/buddypress-icon.png ADDED
Binary file
assets/images/addons/buddypress.png ADDED
Binary file
assets/images/addons/pods-icon.png CHANGED
Binary file
assets/js/admin-page-columns.js CHANGED
@@ -296,6 +296,7 @@ function cpac_reset_columns( $ ) {
296
var el = $( this );
297
var select = el.find( '[data-refresh="column"]' );
298
var column_name = $( this ).attr( 'data-column-name' );
299
300
// Allow plugins to hook into this event
301
$( document ).trigger( 'pre_column_refresh', el );
@@ -337,7 +338,9 @@ function cpac_reset_columns( $ ) {
337
el.column_bind_events();
338
339
// Open settings
340
- el.addClass( 'opened' ).find( '.ac-column-body' ).show();
341
342
// Allow plugins to hook into this event
343
296
var el = $( this );
297
var select = el.find( '[data-refresh="column"]' );
298
var column_name = $( this ).attr( 'data-column-name' );
299
+ var opened = el.hasClass( 'opened' );
300
301
// Allow plugins to hook into this event
302
$( document ).trigger( 'pre_column_refresh', el );
338
el.column_bind_events();
339
340
// Open settings
341
+ if ( opened ) {
342
+ el.addClass( 'opened' ).find( '.ac-column-body' ).show();
343
+ }
344
345
// Allow plugins to hook into this event
346
assets/js/admin-page-columns.min.js CHANGED
@@ -1 +1 @@
1
- function ac_show_ajax_message(n,e){var t=jQuery('<div class="ac-message hidden '+e+'"><p>'+n+"</p></div>");jQuery(".ac-boxes").before(t),t.slideDown()}function cpac_submit_form(n){var e=n(".sidebox a.submit, .column-footer a.submit");e.click(function(){var t=n(this),i=t.closest(".ac-admin").addClass("saving"),a=i.find(".ac-columns form").serialize();e.attr("disabled","disabled"),i.find(".ac-message").remove();var c=n.post(ajaxurl,{action:"ac_columns_save",data:a,_ajax_nonce:AC._ajax_nonce,list_screen:AC.list_screen,layout:AC.layout,original_columns:AC.original_columns},function(n){n&&(n.success?(ac_show_ajax_message(n.data,"updated"),i.addClass("stored")):n.data&&ac_show_ajax_message(n.data.message,"notice notice-warning"))},"json");c.fail(function(n){}),c.always(function(){e.removeAttr("disabled","disabled"),i.removeClass("saving")}),n(document).trigger("cac_update",i)})}function cpac_add_column(n){n(".add_column").click(function(e){e.preventDefault();var t=n("#add-new-column-template").find(".ac-column").clone();t.cpac_update_clone_id(),t.addClass("opened").find(".ac-column-body").slideDown(150,function(){n("html, body").animate({scrollTop:t.offset().top-58},300)}),n(".ac-columns form").append(t),t.column_bind_toggle(),t.column_bind_remove(),t.column_bind_clone(),t.column_bind_events(),n(document).trigger("column_add",t)})}function cpac_sidebar_feedback(n){var e=n(".sidebox#direct-feedback");e.find("#feedback-choice a.no").click(function(n){n.preventDefault(),e.find("#feedback-choice").slideUp(),e.find("#feedback-support").slideDown()}),e.find("#feedback-choice a.yes").click(function(n){n.preventDefault(),e.find("#feedback-choice").slideUp(),e.find("#feedback-rate").slideDown()})}function cpac_init(n){var e=n(".ac-admin"),t=e.find(".ac-boxes");if(t.hasClass("disabled"))t.find(".ac-column").each(function(e,t){n(t).column_bind_toggle(),n(t).find("input, select").prop("disabled",!0)});else{var i=t.find(".ac-columns");i.find(".ac-column").each(function(e,t){n(t).column_bind_toggle(),n(t).column_bind_remove(),n(t).column_bind_clone(),n(t).cpac_bind_indicator_events()}),i.cpac_bind_ordering()}n(document).trigger("cac_menu_change",i),n(document).trigger("cac_model_ready",e.data("type"))}function cpac_menu(n){n("#ac_list_screen").on("change",function(){n(".view-link").hide(),n(this).parents("form").submit(),n(this).prop("disabled",!0).next(".spinner").css("display","inline-block")})}function cpac_reset_columns(n){var e=n(".ac-admin");n("a[data-clear-columns]").on("click",function(){e.find(".ac-column").each(function(){n(this).find(".remove-button").trigger("click")})})}var AC,incremental_column_name=0;jQuery(document).ready(function(n){if(0===n("#cpac").length)return!1;cpac_init(n),cpac_submit_form(n),cpac_reset_columns(n),cpac_menu(n),cpac_add_column(n),cpac_sidebar_feedback(n)}),function(n){n.fn.column_bind_toggle=function(){var e=n(this),t=e.closest(".ac-boxes").hasClass("disabled");e.find('[data-toggle="column"]').click(function(i){i.preventDefault(),e.toggleClass("opened").find(".ac-column-body").slideToggle(150),t||(e.hasClass("events-binded")||e.column_bind_events(),e.addClass("events-binded"),n(document).trigger("column_init",e))}).css("cursor","pointer")},n.fn.column_bind_remove=function(){n(this).find(".remove-button").click(function(e){n(this).closest(".ac-column").column_remove(),e.preventDefault()})},n.fn.column_bind_clone=function(){n(this).find(".clone-button").click(function(e){e.preventDefault();var t=n(this).closest(".ac-column").column_clone();void 0!==t&&t.removeClass("loading").hide().slideDown()})},n.fn.cpac_column_refresh=function(){var e=n(this),t=e.find('[data-refresh="column"]'),i=n(this).attr("data-column-name");n(document).trigger("pre_column_refresh",e);var a=n(this).find(":input").serializeArray(),c={action:"ac_column_refresh",_ajax_nonce:AC._ajax_nonce,list_screen:AC.list_screen,layout:AC.layout,column_name:i,original_columns:AC.original_columns};n.each(c,function(n,e){a.push({name:n,value:e})}),e.addClass("loading"),t.prop("disabled",1);var o=n.post(ajaxurl,a,function(t){if(t){var i=n("<div>"+t.data+"</div>").children();e.replaceWith(i),e=i,e.column_bind_toggle(),e.column_bind_remove(),e.column_bind_clone(),e.column_bind_events(),e.addClass("opened").find(".ac-column-body").show(),n(document).trigger("column_change",e)}},"json");o.fail(function(n){var t=e.closest(".ac-admin").find(".ajax-message");t.addClass("error").find("p").html(AC.i18n.error),t.slideDown(),e.slideUp(function(){e.remove()}),console.log("responseText: "+n.responseText)}),o.always(function(){e.removeClass("loading"),t.prop("disabled",!1)})},n.fn.column_bind_events=function(){var e=n(this),t=e.closest(".ac-admin "),i=e.find("select.ac-setting-input_type option:selected").val();e.find("select.ac-setting-input_type").change(function(){var a=n("optgroup",this).children(":selected"),c=a.val(),o=n(this).next(".msg").hide(),s=n(this),l=[];t.find(".ac-column[data-original=1]").each(function(){l.push(n(this).data("type"))}),e.addClass("loading"),n.ajax({url:ajaxurl,method:"post",dataType:"json",data:{action:"ac_column_select",type:c,current_original_columns:l,original_columns:AC.original_columns,list_screen:AC.list_screen,layout:AC.layout,_ajax_nonce:AC._ajax_nonce}}).done(function(t){if(t)if(t.success){var a=e.closest(".ac-column"),c=n("<div>"+t.data+"</div>").children();a.replaceWith(c),a=c,a.column_bind_toggle(),a.column_bind_remove(),a.column_bind_clone(),a.column_bind_events(),a.addClass("opened").find(".ac-column-body").show(),a.cpac_update_clone_id(),n(document).trigger("column_change",a)}else t.data&&"message"===t.data.type&&(o.html(t.data.error).show(),s.find("option").removeAttr("selected"),s.find('option[value="'+i+'"]').attr("selected","selected"))}).always(function(){e.removeClass("loading")})}),e.find(".ac-column-setting--label input").bind("keyup change",function(){var e=n(this).val();n(this).closest(".ac-column").find("td.column_label .inner > a.toggle").html(e)}),e.find(".ac-column-body .col-label .label").hover(function(){n(this).parents(".col-label").find("div.tooltip").show()},function(){n(this).parents(".col-label").find("div.tooltip").hide()}),e.find('select[data-label="update"]').change(function(){var t=e.find("input.ac-setting-input_label"),i=n(this).find("option:selected").text();t.val(i),t.trigger("change")}),e.find('[data-refresh="column"]').change(function(){e.cpac_column_refresh()}),n(document).trigger("init_settings",e)},n.fn.column_bind_settings=function(){var e=n(this);e.find(".ac-column-setting--image_size").cpac_column_setting_image_size(),e.find(".ac-column-setting--width").cpac_column_setting_width()},n.fn.column_remove=function(){n(this).addClass("deleting").animate({opacity:0,height:0},350,function(){n(this).remove()})},n.fn.column_clone=function(){var e=n(this),t=n(this).closest("ac-columns");if("1"===e.attr("data-original")){var i=AC.i18n.clone.replace("%s","<strong>"+e.find(".column_label .toggle").text()+"</strong>");return e.addClass("opened").find(".ac-column-body").slideDown(150),void e.find(".ac-setting-input_type").next(".msg").html(i).show()}var a=n(this).clone();return a.cpac_update_clone_id(),n(this).after(a),a.column_bind_toggle(),a.column_bind_remove(),a.column_bind_clone(),a.column_bind_events(),t.cpac_bind_ordering(),n(document).trigger("column_add",a),a},n.fn.cpac_update_clone_id=function(){var e=n(this),t=e.attr("data-column-name"),i="_new_column_"+incremental_column_name,a=e.find("input, select, label");n(a).each(function(e,a){n(a).attr("name")&&n(a).attr("name",n(a).attr("name").replace("columns["+t+"]","columns["+i+"]")),n(a).attr("id")&&n(a).attr("id",n(a).attr("id").replace("-"+t+"-","-"+i+"-"))}),e.attr("data-column-name",i),incremental_column_name++},n(document).bind("column_init column_change column_add",function(e,t){n(t).closest(".ac-boxes").hasClass("disabled")||(n(t).cpac_bind_column_addon_events(),n(t).cpac_bind_indicator_events())}),n.fn.cpac_bind_column_addon_events=function(){var e=n(this);e.find("[data-trigger] label").on("click",function(){var t=n(this).closest("td.input").data("trigger"),i=n("input",this).val(),a=e.find('[data-indicator-id="'+t+'"]').removeClass("on");"on"==i&&a.addClass("on");var c=e.find('[data-handle="'+t+'"]').addClass("hide");"on"==i&&c.removeClass("hide")}),e.find("[data-trigger]").each(function(){var t=n(this).data("trigger"),i=e.find('[data-handle="'+t+'"]').addClass("hide");"on"==n("input:checked",this).val()&&i.removeClass("hide")})},n.fn.cpac_bind_indicator_events=function(){var e=n(this);e.find(".ac-column-header [data-indicator-toggle]").each(function(){var t=n(this),i=n(this).data("setting"),a=e.find(".ac-column-setting[data-setting="+i+"]"),c=a.find(".col-input:first .ac-setting-input:first input[type=radio]");t.unbind("click").on("click",function(e){e.preventDefault(),t.toggleClass("on"),n(this).hasClass("on")?c.filter("[value=on]").prop("checked",!0).trigger("click").trigger("change"):c.filter("[value=off]").prop("checked",!0).trigger("click").trigger("change")}),c.on("change",function(){"on"==c.filter(":checked").val()?t.addClass("on"):t.removeClass("on")})})},n.fn.cpac_bind_ordering=function(){n(this).each(function(){n(this).hasClass("ui-sortable")?n(this).sortable("refresh"):n(this).sortable({items:".ac-column",handle:".column_sort"})})},n.fn.cpac_column_setting_image_size=function(){function e(n,e){"cpac-custom"==e.val()?n.find(".ac-column-setting").show():n.find(".ac-column-setting").hide()}n(this).each(function(){var t=n(this),i=n(this).find(".ac-setting-input select");e(t,i),i.on("change",function(){e(t,n(this))})})},n(document).on("init_settings",function(e,t){n(t).find(".ac-column-setting--image").cpac_column_setting_image_size()}),n.fn.column_width_slider=function(){var e=n(this).find(".ac-setting-input-width"),t=e.find(".description input"),i=e.find(".unit-select input"),a=i.filter(":checked").val(),c=t.val(),o=e.find(".width-slider"),s=n(this).find(".ac-column-header .ac-column-heading-setting--width");"%"==a&&c>100&&(c=100),t.val(c),o.slider({range:"min",min:0,max:"%"==a?100:500,value:c,slide:function(n,e){t.val(e.value),s.trigger("update"),t.trigger("validate")}})},n.fn.cpac_column_setting_width=function(){n(this).each(function(){var e=n(this).parents(".ac-column");e.column_width_slider();var t=e.find(".ac-column-header .ac-column-heading-setting--width");t.on("update",function(){var t=e.find(".ac-setting-input-width .description input").val(),i=e.find(".ac-setting-input-width .description .unit").text();t>0?n(this).text(t+i):n(this).text("")}),e.find(".ac-setting-input-width .unit-select label").on("click",function(){e.find("span.unit").text(n(this).find("input").val()),e.column_width_slider(),t.trigger("update")});var i=e.find(".ac-setting-input-width .description input").on("keyup",function(){e.column_width_slider(),n(this).trigger("validate"),t.trigger("update")}).on("validate",function(){var e=i.val(),t=n.trim(e);n.isNumeric(t)||(t=t.replace(/\D/g,"")),t.length>3&&(t=t.substring(0,3)),t<=0&&(t=""),t!==e&&i.val(t)})})},n.fn.cpac_column_sub_setting_toggle=function(e){function t(n,e){var t=e.filter(":checked").val(),a=n.find(i.subfield);i.value_show==t?a.show():a.hide()}var i=n.extend({value_show:"on",subfield:".ac-column-setting"},e);n(this).each(function(){var e=n(this),i=n(this).find('.ac-setting-input input[type="radio"]');t(e,i),i.on("change",function(){t(e,i)})})},n.fn.cpac_column_setting_date=function(){n(this).each(function(){var e=n(this),t=e.find("input.custom"),i=e.find(".ac-setting-input-date__custom"),a=e.find(".ac-setting-input-date__example"),c=e.find("input[type=radio]:checked"),o=e.find(".help-msg");e.find("input[type=radio]").on("change",function(){var e=n(this),t=e.closest("label"),c=t.find("code").text(),s=t.find(".ac-setting-input-date__more").html();c&&i.val(c).trigger("change"),e.hasClass("diff")&&(i.val(""),a.text("")),i.prop("disabled",!0),e.hasClass("custom")&&(e.val(i.val()),i.prop("disabled",!1),o.show()),o.hide(),s&&o.html(s).show()}),i.on("change",function(){a.html('<span class="spinner is-active"></span>'),t.val(i.val());var e=n(this).val();if(!e)return void a.text("");n.ajax({url:ajaxurl,method:"post",data:{action:"date_format",date:e}}).done(function(n){a.text(n)})}),c.trigger("change"),0===c.length&&t.trigger("click")})},n(document).on("init_settings",function(e,t){n(t).find(".ac-column-setting--width").cpac_column_setting_width(),n(t).find(".ac-column-setting--date").cpac_column_setting_date(),n(t).find(".ac-column-setting--filter").cpac_column_sub_setting_toggle(),n(t).find(".ac-column-setting--sort").cpac_column_sub_setting_toggle(),n(t).find(".ac-column-setting--edit").cpac_column_sub_setting_toggle()})}(jQuery);
1
+ function ac_show_ajax_message(n,e){var t=jQuery('<div class="ac-message hidden '+e+'"><p>'+n+"</p></div>");jQuery(".ac-boxes").before(t),t.slideDown()}function cpac_submit_form(n){var e=n(".sidebox a.submit, .column-footer a.submit");e.click(function(){var t=n(this),i=t.closest(".ac-admin").addClass("saving"),a=i.find(".ac-columns form").serialize();e.attr("disabled","disabled"),i.find(".ac-message").remove();var c=n.post(ajaxurl,{action:"ac_columns_save",data:a,_ajax_nonce:AC._ajax_nonce,list_screen:AC.list_screen,layout:AC.layout,original_columns:AC.original_columns},function(n){n&&(n.success?(ac_show_ajax_message(n.data,"updated"),i.addClass("stored")):n.data&&ac_show_ajax_message(n.data.message,"notice notice-warning"))},"json");c.fail(function(n){}),c.always(function(){e.removeAttr("disabled","disabled"),i.removeClass("saving")}),n(document).trigger("cac_update",i)})}function cpac_add_column(n){n(".add_column").click(function(e){e.preventDefault();var t=n("#add-new-column-template").find(".ac-column").clone();t.cpac_update_clone_id(),t.addClass("opened").find(".ac-column-body").slideDown(150,function(){n("html, body").animate({scrollTop:t.offset().top-58},300)}),n(".ac-columns form").append(t),t.column_bind_toggle(),t.column_bind_remove(),t.column_bind_clone(),t.column_bind_events(),n(document).trigger("column_add",t)})}function cpac_sidebar_feedback(n){var e=n(".sidebox#direct-feedback");e.find("#feedback-choice a.no").click(function(n){n.preventDefault(),e.find("#feedback-choice").slideUp(),e.find("#feedback-support").slideDown()}),e.find("#feedback-choice a.yes").click(function(n){n.preventDefault(),e.find("#feedback-choice").slideUp(),e.find("#feedback-rate").slideDown()})}function cpac_init(n){var e=n(".ac-admin"),t=e.find(".ac-boxes");if(t.hasClass("disabled"))t.find(".ac-column").each(function(e,t){n(t).column_bind_toggle(),n(t).find("input, select").prop("disabled",!0)});else{var i=t.find(".ac-columns");i.find(".ac-column").each(function(e,t){n(t).column_bind_toggle(),n(t).column_bind_remove(),n(t).column_bind_clone(),n(t).cpac_bind_indicator_events()}),i.cpac_bind_ordering()}n(document).trigger("cac_menu_change",i),n(document).trigger("cac_model_ready",e.data("type"))}function cpac_menu(n){n("#ac_list_screen").on("change",function(){n(".view-link").hide(),n(this).parents("form").submit(),n(this).prop("disabled",!0).next(".spinner").css("display","inline-block")})}function cpac_reset_columns(n){var e=n(".ac-admin");n("a[data-clear-columns]").on("click",function(){e.find(".ac-column").each(function(){n(this).find(".remove-button").trigger("click")})})}var AC,incremental_column_name=0;jQuery(document).ready(function(n){if(0===n("#cpac").length)return!1;cpac_init(n),cpac_submit_form(n),cpac_reset_columns(n),cpac_menu(n),cpac_add_column(n),cpac_sidebar_feedback(n)}),function(n){n.fn.column_bind_toggle=function(){var e=n(this),t=e.closest(".ac-boxes").hasClass("disabled");e.find('[data-toggle="column"]').click(function(i){i.preventDefault(),e.toggleClass("opened").find(".ac-column-body").slideToggle(150),t||(e.hasClass("events-binded")||e.column_bind_events(),e.addClass("events-binded"),n(document).trigger("column_init",e))}).css("cursor","pointer")},n.fn.column_bind_remove=function(){n(this).find(".remove-button").click(function(e){n(this).closest(".ac-column").column_remove(),e.preventDefault()})},n.fn.column_bind_clone=function(){n(this).find(".clone-button").click(function(e){e.preventDefault();var t=n(this).closest(".ac-column").column_clone();void 0!==t&&t.removeClass("loading").hide().slideDown()})},n.fn.cpac_column_refresh=function(){var e=n(this),t=e.find('[data-refresh="column"]'),i=n(this).attr("data-column-name"),a=e.hasClass("opened");n(document).trigger("pre_column_refresh",e);var c=n(this).find(":input").serializeArray(),o={action:"ac_column_refresh",_ajax_nonce:AC._ajax_nonce,list_screen:AC.list_screen,layout:AC.layout,column_name:i,original_columns:AC.original_columns};n.each(o,function(n,e){c.push({name:n,value:e})}),e.addClass("loading"),t.prop("disabled",1);var s=n.post(ajaxurl,c,function(t){if(t){var i=n("<div>"+t.data+"</div>").children();e.replaceWith(i),e=i,e.column_bind_toggle(),e.column_bind_remove(),e.column_bind_clone(),e.column_bind_events(),a&&e.addClass("opened").find(".ac-column-body").show(),n(document).trigger("column_change",e)}},"json");s.fail(function(n){var t=e.closest(".ac-admin").find(".ajax-message");t.addClass("error").find("p").html(AC.i18n.error),t.slideDown(),e.slideUp(function(){e.remove()}),console.log("responseText: "+n.responseText)}),s.always(function(){e.removeClass("loading"),t.prop("disabled",!1)})},n.fn.column_bind_events=function(){var e=n(this),t=e.closest(".ac-admin "),i=e.find("select.ac-setting-input_type option:selected").val();e.find("select.ac-setting-input_type").change(function(){var a=n("optgroup",this).children(":selected"),c=a.val(),o=n(this).next(".msg").hide(),s=n(this),l=[];t.find(".ac-column[data-original=1]").each(function(){l.push(n(this).data("type"))}),e.addClass("loading"),n.ajax({url:ajaxurl,method:"post",dataType:"json",data:{action:"ac_column_select",type:c,current_original_columns:l,original_columns:AC.original_columns,list_screen:AC.list_screen,layout:AC.layout,_ajax_nonce:AC._ajax_nonce}}).done(function(t){if(t)if(t.success){var a=e.closest(".ac-column"),c=n("<div>"+t.data+"</div>").children();a.replaceWith(c),a=c,a.column_bind_toggle(),a.column_bind_remove(),a.column_bind_clone(),a.column_bind_events(),a.addClass("opened").find(".ac-column-body").show(),a.cpac_update_clone_id(),n(document).trigger("column_change",a)}else t.data&&"message"===t.data.type&&(o.html(t.data.error).show(),s.find("option").removeAttr("selected"),s.find('option[value="'+i+'"]').attr("selected","selected"))}).always(function(){e.removeClass("loading")})}),e.find(".ac-column-setting--label input").bind("keyup change",function(){var e=n(this).val();n(this).closest(".ac-column").find("td.column_label .inner > a.toggle").html(e)}),e.find(".ac-column-body .col-label .label").hover(function(){n(this).parents(".col-label").find("div.tooltip").show()},function(){n(this).parents(".col-label").find("div.tooltip").hide()}),e.find('select[data-label="update"]').change(function(){var t=e.find("input.ac-setting-input_label"),i=n(this).find("option:selected").text();t.val(i),t.trigger("change")}),e.find('[data-refresh="column"]').change(function(){e.cpac_column_refresh()}),n(document).trigger("init_settings",e)},n.fn.column_bind_settings=function(){var e=n(this);e.find(".ac-column-setting--image_size").cpac_column_setting_image_size(),e.find(".ac-column-setting--width").cpac_column_setting_width()},n.fn.column_remove=function(){n(this).addClass("deleting").animate({opacity:0,height:0},350,function(){n(this).remove()})},n.fn.column_clone=function(){var e=n(this),t=n(this).closest("ac-columns");if("1"===e.attr("data-original")){var i=AC.i18n.clone.replace("%s","<strong>"+e.find(".column_label .toggle").text()+"</strong>");return e.addClass("opened").find(".ac-column-body").slideDown(150),void e.find(".ac-setting-input_type").next(".msg").html(i).show()}var a=n(this).clone();return a.cpac_update_clone_id(),n(this).after(a),a.column_bind_toggle(),a.column_bind_remove(),a.column_bind_clone(),a.column_bind_events(),t.cpac_bind_ordering(),n(document).trigger("column_add",a),a},n.fn.cpac_update_clone_id=function(){var e=n(this),t=e.attr("data-column-name"),i="_new_column_"+incremental_column_name,a=e.find("input, select, label");n(a).each(function(e,a){n(a).attr("name")&&n(a).attr("name",n(a).attr("name").replace("columns["+t+"]","columns["+i+"]")),n(a).attr("id")&&n(a).attr("id",n(a).attr("id").replace("-"+t+"-","-"+i+"-"))}),e.attr("data-column-name",i),incremental_column_name++},n(document).bind("column_init column_change column_add",function(e,t){n(t).closest(".ac-boxes").hasClass("disabled")||(n(t).cpac_bind_column_addon_events(),n(t).cpac_bind_indicator_events())}),n.fn.cpac_bind_column_addon_events=function(){var e=n(this);e.find("[data-trigger] label").on("click",function(){var t=n(this).closest("td.input").data("trigger"),i=n("input",this).val(),a=e.find('[data-indicator-id="'+t+'"]').removeClass("on");"on"==i&&a.addClass("on");var c=e.find('[data-handle="'+t+'"]').addClass("hide");"on"==i&&c.removeClass("hide")}),e.find("[data-trigger]").each(function(){var t=n(this).data("trigger"),i=e.find('[data-handle="'+t+'"]').addClass("hide");"on"==n("input:checked",this).val()&&i.removeClass("hide")})},n.fn.cpac_bind_indicator_events=function(){var e=n(this);e.find(".ac-column-header [data-indicator-toggle]").each(function(){var t=n(this),i=n(this).data("setting"),a=e.find(".ac-column-setting[data-setting="+i+"]"),c=a.find(".col-input:first .ac-setting-input:first input[type=radio]");t.unbind("click").on("click",function(e){e.preventDefault(),t.toggleClass("on"),n(this).hasClass("on")?c.filter("[value=on]").prop("checked",!0).trigger("click").trigger("change"):c.filter("[value=off]").prop("checked",!0).trigger("click").trigger("change")}),c.on("change",function(){"on"==c.filter(":checked").val()?t.addClass("on"):t.removeClass("on")})})},n.fn.cpac_bind_ordering=function(){n(this).each(function(){n(this).hasClass("ui-sortable")?n(this).sortable("refresh"):n(this).sortable({items:".ac-column",handle:".column_sort"})})},n.fn.cpac_column_setting_image_size=function(){function e(n,e){"cpac-custom"==e.val()?n.find(".ac-column-setting").show():n.find(".ac-column-setting").hide()}n(this).each(function(){var t=n(this),i=n(this).find(".ac-setting-input select");e(t,i),i.on("change",function(){e(t,n(this))})})},n(document).on("init_settings",function(e,t){n(t).find(".ac-column-setting--image").cpac_column_setting_image_size()}),n.fn.column_width_slider=function(){var e=n(this).find(".ac-setting-input-width"),t=e.find(".description input"),i=e.find(".unit-select input"),a=i.filter(":checked").val(),c=t.val(),o=e.find(".width-slider"),s=n(this).find(".ac-column-header .ac-column-heading-setting--width");"%"==a&&c>100&&(c=100),t.val(c),o.slider({range:"min",min:0,max:"%"==a?100:500,value:c,slide:function(n,e){t.val(e.value),s.trigger("update"),t.trigger("validate")}})},n.fn.cpac_column_setting_width=function(){n(this).each(function(){var e=n(this).parents(".ac-column");e.column_width_slider();var t=e.find(".ac-column-header .ac-column-heading-setting--width");t.on("update",function(){var t=e.find(".ac-setting-input-width .description input").val(),i=e.find(".ac-setting-input-width .description .unit").text();t>0?n(this).text(t+i):n(this).text("")}),e.find(".ac-setting-input-width .unit-select label").on("click",function(){e.find("span.unit").text(n(this).find("input").val()),e.column_width_slider(),t.trigger("update")});var i=e.find(".ac-setting-input-width .description input").on("keyup",function(){e.column_width_slider(),n(this).trigger("validate"),t.trigger("update")}).on("validate",function(){var e=i.val(),t=n.trim(e);n.isNumeric(t)||(t=t.replace(/\D/g,"")),t.length>3&&(t=t.substring(0,3)),t<=0&&(t=""),t!==e&&i.val(t)})})},n.fn.cpac_column_sub_setting_toggle=function(e){function t(n,e){var t=e.filter(":checked").val(),a=n.find(i.subfield);i.value_show==t?a.show():a.hide()}var i=n.extend({value_show:"on",subfield:".ac-column-setting"},e);n(this).each(function(){var e=n(this),i=n(this).find('.ac-setting-input input[type="radio"]');t(e,i),i.on("change",function(){t(e,i)})})},n.fn.cpac_column_setting_date=function(){n(this).each(function(){var e=n(this),t=e.find("input.custom"),i=e.find(".ac-setting-input-date__custom"),a=e.find(".ac-setting-input-date__example"),c=e.find("input[type=radio]:checked"),o=e.find(".help-msg");e.find("input[type=radio]").on("change",function(){var e=n(this),t=e.closest("label"),c=t.find("code").text(),s=t.find(".ac-setting-input-date__more").html();c&&i.val(c).trigger("change"),e.hasClass("diff")&&(i.val(""),a.text("")),i.prop("disabled",!0),e.hasClass("custom")&&(e.val(i.val()),i.prop("disabled",!1),o.show()),o.hide(),s&&o.html(s).show()}),i.on("change",function(){a.html('<span class="spinner is-active"></span>'),t.val(i.val());var e=n(this).val();if(!e)return void a.text("");n.ajax({url:ajaxurl,method:"post",data:{action:"date_format",date:e}}).done(function(n){a.text(n)})}),c.trigger("change"),0===c.length&&t.trigger("click")})},n(document).on("init_settings",function(e,t){n(t).find(".ac-column-setting--width").cpac_column_setting_width(),n(t).find(".ac-column-setting--date").cpac_column_setting_date(),n(t).find(".ac-column-setting--filter").cpac_column_sub_setting_toggle(),n(t).find(".ac-column-setting--sort").cpac_column_sub_setting_toggle(),n(t).find(".ac-column-setting--edit").cpac_column_sub_setting_toggle()})}(jQuery);
classes/Addon/BuddyPress.php ADDED
@@ -0,0 +1,30 @@
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ class AC_Addon_BuddyPress extends AC_Addon {
8
+
9
+ public function __construct() {
10
+ parent::__construct( 'ac-addon-buddypress' );
11
+
12
+ $this
13
+ ->set_title( __( 'BuddyPress', 'codepress-admin-columns' ) )
14
+ ->set_logo( AC()->get_plugin_url() . 'assets/images/addons/buddypress.png' )
15
+ ->set_icon( AC()->get_plugin_url() . 'assets/images/addons/buddypress-icon.png' )
16
+ ->set_link( ac_get_site_utm_url( 'buddypress-columns', 'addon', 'buddypress' ) )
17
+ ->set_description( __( 'Display any of your Profile Fields for BuddyPress on your users overview.', 'codepress-admin-columns' ) )
18
+ ->add_plugin( 'buddypress' );
19
+ }
20
+
21
+ public function display_promo() {
22
+ echo $this->get_title() . ' ';
23
+ $this->display_icon();
24
+ }
25
+
26
+ public function is_plugin_active() {
27
+ return class_exists( 'BuddyPress', false );
28
+ }
29
+
30
+ }
classes/Addon/Pods.php CHANGED
@@ -18,6 +18,11 @@ class AC_Addon_Pods extends AC_Addon {
18
->add_plugin( 'pods' );
19
}
20
21
public function show_missing_notice_on_current_page() {
22
global $pagenow;
23
18
->add_plugin( 'pods' );
19
}
20
21
+ public function display_promo() {
22
+ echo $this->get_title() . ' ';
23
+ $this->display_icon();
24
+ }
25
+
26
public function show_missing_notice_on_current_page() {
27
global $pagenow;
28
classes/Admin/Page/Columns.php CHANGED
@@ -38,9 +38,9 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
38
* Admin scripts
39
*/
40
public function admin_scripts() {
41
- if ( ! $this->is_current_screen() ) {
42
- return;
43
- }
44
45
$list_screen = $this->get_current_list_screen();
46
@@ -457,69 +457,69 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
457
458
?>
459
460
- <div class="ac-admin<?php echo $list_screen->get_settings() ? ' stored' : ''; ?>" data-type="<?php echo esc_attr( $list_screen->get_key() ); ?>">
461
- <div class="main">
462
- <div class="menu">
463
- <form>
464
<?php $this->nonce_field( 'select-list-screen' ); ?>
465
- <input type="hidden" name="page" value="<?php echo esc_attr( AC_Admin::MENU_SLUG ); ?>">
466
467
- <select name="list_screen" title="Select type" id="ac_list_screen">
468
<?php foreach ( $this->get_grouped_list_screens() as $group ) : ?>
469
- <optgroup label="<?php echo esc_attr( $group['title'] ); ?>">
470
<?php foreach ( $group['options'] as $key => $label ) : ?>
471
- <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $list_screen->get_key() ); ?>><?php echo esc_html( $label ); ?></option>
472
<?php endforeach; ?>
473
- </optgroup>
474
<?php endforeach; ?>
475
- </select>
476
- <span class="spinner"></span>
477
478
<?php if ( $link = $list_screen->get_screen_link() ) : ?>
479
- <a href="<?php echo esc_url( $link ); ?>" class="page-title-action view-link"><?php echo esc_html__( 'View', 'codepress-admin-columns' ); ?></a>
480
<?php endif; ?>
481
- </form>
482
- </div>
483
484
<?php do_action( 'ac/settings/after_title', $list_screen ); ?>
485
486
- </div>
487
488
- <div class="ac-right">
489
- <div class="ac-right-inner">
490
491
<?php if ( ! $list_screen->is_read_only() ) : ?>
492
- <div class="sidebox form-actions">
493
<?php $mainlabel = __( 'Store settings', 'codepress-admin-columns' ); ?>
494
- <h3>
495
- <span class="left"><?php echo esc_html( $mainlabel ); ?></span>
496
<?php if ( 18 > strlen( $mainlabel ) && ( $truncated_label = $this->get_truncated_side_label( $list_screen->get_label(), $mainlabel ) ) ) : ?>
497
- <span class="right contenttype"><?php echo esc_html( $truncated_label ); ?></span>
498
<?php else : ?>
499
- <span class="clear contenttype"><?php echo esc_html( $list_screen->get_label() ); ?></span>
500
<?php endif; ?>
501
- </h3>
502
503
- <div class="form-update">
504
- <a class="button-primary submit update"><?php _e( 'Update' ); ?></a>
505
- <a class="button-primary submit save"><?php _e( 'Save' ); ?></a>
506
- </div>
507
508
- <form class="form-reset" method="post">
509
- <input type="hidden" name="list_screen" value="<?php echo esc_attr( $list_screen->get_key() ); ?>"/>
510
- <input type="hidden" name="layout" value="<?php echo esc_attr( $list_screen->get_layout_id() ); ?>"/>
511
- <input type="hidden" name="cpac_action" value="restore_by_type"/>
512
513
<?php $this->nonce_field( 'restore-type' ); ?>
514
515
<?php $onclick = AC()->use_delete_confirmation() ? ' onclick="return confirm(\'' . esc_js( sprintf( __( "Warning! The %s columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop", 'codepress-admin-columns' ), "'" . $this->get_list_screen_message_label( $list_screen ) . "'" ) ) . '\');"' : ''; ?>
516
- <input class="reset-column-type" type="submit"<?php echo $onclick; ?> value="<?php _e( 'Restore columns', 'codepress-admin-columns' ); ?>">
517
- <span class="spinner"></span>
518
- </form>
519
520
<?php do_action( 'ac/settings/form_actions', $this ); ?>
521
522
- </div><!--form-actions-->
523
<?php endif; ?>
524
525
<?php do_action( 'ac/settings/sidebox', $list_screen ); ?>
@@ -528,17 +528,17 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
528
529
<?php $active_promotion = $this->get_active_promotion(); ?>
530
531
- <div class="sidebox" id="ac-pro-version">
532
- <div class="padding-box">
533
- <h3>
534
- <a href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner', 'title' ) ); ?>">
535
<?php _e( 'Upgrade to', 'codepress-admin-columns' ); ?>&nbsp;<span><?php _e( 'Pro', 'codepress-admin-columns' ); ?></span>
536
- </a>
537
- </h3>
538
539
- <div class="inside">
540
- <p><?php _e( 'Take Admin Columns to the next level:', 'codepress-admin-columns' ); ?></p>
541
- <ul class="features">
542
<?php
543
544
$items = array(
@@ -550,174 +550,177 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
550
);
551
552
foreach ( $items as $utm_content => $label ) : ?>
553
- <li>
554
- <a href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner', 'usp-' . $utm_content ) ); ?>"><?php echo esc_html( $label ); ?></a>
555
- </li>
556
<?php endforeach; ?>
557
558
- </ul>
559
560
<?php if ( $promos = AC()->addons()->get_missing_addons() ) : ?>
561
- <strong><?php _e( 'Extra Columns for:', 'codepress-admin-columns' ); ?></strong>
562
- <ul>
563
<?php foreach ( $promos as $addon ) : ?>
564
- <li class="acp-integration">
565
- <a href="<?php echo esc_url( $addon->get_link() ); ?>" target="_blank"><?php $addon->display_promo(); ?></a>
566
- </li>
567
<?php endforeach; ?>
568
- </ul>
569
<?php endif; ?>
570
571
- <p class="center nopadding">
572
<?php if ( ! $active_promotion ) : ?>
573
- <a target="_blank" href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner' ) ); ?>" class="more">
574
<?php _e( 'Learn more about Pro', 'codepress-admin-columns' ); ?>
575
- </a>
576
<?php endif; ?>
577
- </p>
578
- </div>
579
- </div>
580
581
<?php if ( $active_promotion ) : ?>
582
583
- <div class="padding-box ac-pro-deal">
584
<?php $active_promotion->display(); ?>
585
- </div>
586
587
<?php else : ?>
588
589
- <div class="padding-box ac-pro-newsletter">
590
- <h3>
591
<?php echo esc_html( sprintf( __( 'Get %s Off!', 'codepress-admin-columns' ), '20%' ) ); ?>
592
- </h3>
593
- <div class="inside">
594
- <p>
595
- <?php echo esc_html( sprintf( __( "Submit your email and we'll send you a coupon for %s off.", 'codepress-admin-columns' ), '20%' ) ); ?>
596
- </p>
597
<?php
598
$user_data = get_userdata( get_current_user_id() );
599
?>
600
- <form method="post" action="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'send-coupon' ) ); ?>" target="_blank">
601
- <input name="action" type="hidden" value="mc_upgrade_pro">
602
- <input name="EMAIL" placeholder="<?php esc_attr_e( "Your Email", 'codepress-admin-columns' ); ?>" value="<?php echo esc_attr( $user_data->user_email ); ?>">
603
- <input name="FNAME" placeholder="<?php esc_attr_e( "Your First Name", 'codepress-admin-columns' ); ?>">
604
- <input type="submit" value="<?php esc_attr_e( "Send me the coupon", 'codepress-admin-columns' ); ?>" class="acp-button">
605
- </form>
606
- </div>
607
- </div>
608
609
<?php endif; ?>
610
611
- </div>
612
613
- <div class="sidebox" id="direct-feedback">
614
- <div id="feedback-choice">
615
- <h3><?php _e( 'Are you happy with Admin Columns?', 'codepress-admin-columns' ); ?></h3>
616
617
- <div class="inside">
618
- <a href="#" class="yes"><?php _e( 'Yes' ); ?></a>
619
- <a href="#" class="no"><?php _e( 'No' ); ?></a>
620
- </div>
621
- </div>
622
- <div id="feedback-support">
623
- <div class="inside">
624
- <p>
625
<?php _e( "What's wrong? Need help? Let us know!", 'codepress-admin-columns' ); ?>
626
- </p>
627
- <p>
628
<?php _e( 'Check out our extensive documentation, or you can open a support topic on WordPress.org!', 'codepress-admin-columns' ); ?>
629
- </p>
630
- <ul class="share">
631
- <li>
632
- <a href="<?php echo esc_url( ac_get_site_utm_url( 'documentation', 'feedback-docs-button' ) ); ?>" target="_blank">
633
- <div class="dashicons dashicons-editor-help"></div> <?php _e( 'Docs', 'codepress-admin-columns' ); ?>
634
- </a>
635
- </li>
636
- <li>
637
- <a href="https://wordpress.org/support/plugin/codepress-admin-columns" target="_blank">
638
- <div class="dashicons dashicons-wordpress"></div> <?php _e( 'Forums', 'codepress-admin-columns' ); ?>
639
- </a>
640
- </li>
641
- </ul>
642
- <div class="clear"></div>
643
- </div>
644
- </div>
645
- <div id="feedback-rate">
646
- <div class="inside">
647
- <p>
648
<?php _e( "Woohoo! We're glad to hear that!", 'codepress-admin-columns' ); ?>
649
- </p>
650
- <p>
651
<?php _e( 'We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!', 'codepress-admin-columns' ); ?>
652
- </p>
653
- <ul class="share">
654
- <li>
655
- <a href="http://wordpress.org/support/view/plugin-reviews/codepress-admin-columns#postform" target="_blank">
656
- <div class="dashicons dashicons-star-empty"></div> <?php _e( 'Rate', 'codepress-admin-columns' ); ?>
657
- </a>
658
- </li>
659
-
660
- <li>
661
- <a href="<?php echo esc_url( add_query_arg( array( 'hashtags' => 'admincolumns', 'text' => urlencode( __( "I'm using Admin Columns for WordPress!", 'codepress-admin-columns' ) ), 'url' => urlencode( 'http://wordpress.org/plugins/codepress-admin-columns/' ), 'via' => ac_get_twitter_handle() ), 'https://twitter.com/intent/tweet' ) ); ?>" target="_blank">
662
- <div class="dashicons dashicons-twitter"></div> <?php _e( 'Tweet', 'codepress-admin-columns' ); ?>
663
- </a>
664
- </li>
665
-
666
- <li>
667
- <a href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'feedback-purchase-button' ) ); ?>" target="_blank">
668
- <div class="dashicons dashicons-cart"></div> <?php _e( 'Buy Pro', 'codepress-admin-columns' ); ?>
669
- </a>
670
- </li>
671
- </ul>
672
- <div class="clear"></div>
673
- </div>
674
- </div>
675
- </div>
676
677
<?php endif; ?>
678
679
- <div class="sidebox" id="plugin-support">
680
- <h3><?php _e( 'Support', 'codepress-admin-columns' ); ?></h3>
681
682
- <div class="inside">
683
<?php if ( version_compare( get_bloginfo( 'version' ), '3.2', '>' ) ) : ?>
684
- <p>
685
<?php _e( "Check the <strong>Help</strong> section in the top-right screen.", 'codepress-admin-columns' ); ?>
686
- </p>
687
<?php endif; ?>
688
- <p>
689
<?php printf( __( "For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>", 'codepress-admin-columns' ), ac_get_site_utm_url( 'documentation', 'support' ) ); ?>
690
- </p>
691
- </div>
692
- </div><!--plugin-support-->
693
694
- </div><!--.ac-right-inner-->
695
- </div><!--.ac-right-->
696
697
- <div class="ac-left">
698
<?php if ( ! $list_screen->get_stored_default_headings() && ! $list_screen->is_read_only() ) : ?>
699
- <div class="notice notice-warning">
700
- <p>
701
<?php echo $this->get_error_message_visit_list_screen( $list_screen ); ?>
702
- </p>
703
- </div>
704
<?php endif ?>
705
706
<?php $this->display_notices(); ?>
707
708
<?php if ( $list_screen->is_read_only() ) : ?>
709
- <div class="ac-notice notice-warning below-h2">
710
- <p><?php echo $this->get_read_only_message( $list_screen ); ?></p>
711
- </div>
712
<?php endif; ?>
713
714
- <div class="ac-boxes<?php echo esc_attr( $list_screen->is_read_only() ? ' disabled' : '' ); ?>">
715
716
- <div class="ac-columns">
717
- <form method="post" action="<?php echo esc_attr( $this->get_link() ); ?>">
718
719
- <input type="hidden" name="list_screen" value="<?php echo esc_attr( $list_screen->get_key() ); ?>"/>
720
- <input type="hidden" name="cpac_action" value="update_by_type"/>
721
722
<?php $this->nonce_field( 'update-type' ); ?>
723
@@ -730,16 +733,16 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
730
$this->display_column( $column );
731
}
732
?>
733
- </form>
734
735
- </div>
736
737
- <div class="column-footer">
738
<?php if ( ! $list_screen->is_read_only() ) : ?>
739
- <div class="order-message">
740
<?php _e( 'Drag and drop to reorder', 'codepress-admin-columns' ); ?>
741
- </div>
742
- <div class="button-container">
743
<?php
744
745
/**
@@ -751,31 +754,31 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
751
*/
752
if ( apply_filters( 'ac/enable_clear_columns_button', false ) ) :
753
?>
754
- <a class="clear-columns" data-clear-columns><?php _e( 'Clear all columns ', 'codepress-admin-columns' ) ?></a>
755
<?php endif; ?>
756
757
- <span class="spinner"></span>
758
- <a class="button-primary submit update"><?php _e( 'Update' ); ?></a>
759
- <a class="button-primary submit save"><?php _e( 'Save' ); ?></a>
760
- <a class="add_column button">+ <?php _e( 'Add Column', 'codepress-admin-columns' ); ?></a>
761
- </div>
762
<?php endif; ?>
763
- </div>
764
765
- </div><!--.ac-boxes-->
766
767
<?php do_action( 'ac/settings/after_columns', $list_screen ); ?>
768
769
- </div><!--.ac-left-->
770
- <div class="clear"></div>
771
772
- <div id="add-new-column-template">
773
<?php $this->display_column_template( $list_screen ); ?>
774
- </div>
775
776
- </div><!--.ac-admin-->
777
778
- <div class="clear"></div>
779
780
<?php
781
}
@@ -805,21 +808,21 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
805
*/
806
public function display_column( AC_Column $column ) { ?>
807
808
- <div class="ac-column ac-<?php echo esc_attr( $column->get_type() ); ?>"
809
- data-type="<?php echo esc_attr( $column->get_type() ); ?>"
810
- data-original="<?php echo esc_attr( $column->is_original() ); ?>"
811
- data-column-name="<?php echo esc_attr( $column->get_name() ); ?>">
812
-
813
- <div class="ac-column-header">
814
- <table class="widefat">
815
- <tbody>
816
- <tr>
817
- <td class="column_sort">
818
- <span class="cpacicon-move"></span>
819
- </td>
820
- <td class="column_label">
821
- <div class="inner">
822
- <div class="meta">
823
<?php
824
825
foreach ( $column->get_settings() as $setting ) {
@@ -838,32 +841,32 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
838
do_action( 'ac/column/header', $column );
839
840
?>
841
- </div>
842
- <a class="toggle" data-toggle="column">
843
<?php echo $column->get_setting( 'label' )->get_value(); // do not escape ?>
844
- </a>
845
- <a class="edit-button" data-toggle="column"><?php _e( 'Edit', 'codepress-admin-columns' ); ?></a>
846
- <a class="close-button" data-toggle="column"><?php _e( 'Close', 'codepress-admin-columns' ); ?></a>
847
<?php if ( ! $column->is_original() ) : ?>
848
- <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a>
849
<?php endif; ?>
850
- <a class="remove-button"><?php _e( 'Remove', 'codepress-admin-columns' ); ?></a>
851
- </div>
852
- </td>
853
- <td class="column_type">
854
- <div class="inner" data-toggle="column">
855
<?php echo ac_helper()->html->strip_attributes( $column->get_label(), array( 'style', 'class' ) ); ?>
856
- </div>
857
- </td>
858
- <td class="column_edit" data-toggle="column">
859
- </td>
860
- </tr>
861
- </tbody>
862
- </table>
863
- </div>
864
-
865
- <div class="ac-column-body">
866
- <div class="ac-column-settings">
867
868
<?php
869
@@ -873,24 +876,24 @@ class AC_Admin_Page_Columns extends AC_Admin_Page {
873
874
?>
875
876
- <table class="ac-column-setting ac-column-setting-actions">
877
- <tr>
878
- <td class="col-label"></td>
879
- <td class="col-settings">
880
- <p>
881
- <a href="#" class="close-button" data-toggle="column"><?php _e( 'Close', 'codepress-admin-columns' ); ?></a>
882
<?php if ( ! $column->is_original() ) : ?>
883
- <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a>
884
<?php endif; ?>
885
- <a href="#" class="remove-button"><?php _e( 'Remove' ); ?></a>
886
- </p>
887
- </td>
888
- </tr>
889
-
890
- </table>
891
- </div>
892
- </div>
893
- </div>
894
<?php
895
}
896
38
* Admin scripts
39
*/
40
public function admin_scripts() {
41
+ if ( ! $this->is_current_screen() ) {
42
+ return;
43
+ }
44
45
$list_screen = $this->get_current_list_screen();
46
457
458
?>
459
460
+ <div class="ac-admin<?php echo $list_screen->get_settings() ? ' stored' : ''; ?>" data-type="<?php echo esc_attr( $list_screen->get_key() ); ?>">
461
+ <div class="main">
462
+ <div class="menu">
463
+ <form>
464
<?php $this->nonce_field( 'select-list-screen' ); ?>
465
+ <input type="hidden" name="page" value="<?php echo esc_attr( AC_Admin::MENU_SLUG ); ?>">
466
467
+ <select name="list_screen" title="Select type" id="ac_list_screen">
468
<?php foreach ( $this->get_grouped_list_screens() as $group ) : ?>
469
+ <optgroup label="<?php echo esc_attr( $group['title'] ); ?>">
470
<?php foreach ( $group['options'] as $key => $label ) : ?>
471
+ <option value="<?php echo esc_attr( $key ); ?>" <?php selected( $key, $list_screen->get_key() ); ?>><?php echo esc_html( $label ); ?></option>
472
<?php endforeach; ?>
473
+ </optgroup>
474
<?php endforeach; ?>
475
+ </select>
476
+ <span class="spinner"></span>
477
478
<?php if ( $link = $list_screen->get_screen_link() ) : ?>
479
+ <a href="<?php echo esc_url( $link ); ?>" class="page-title-action view-link"><?php esc_html_e( 'View', 'codepress-admin-columns' ); ?></a>
480
<?php endif; ?>
481
+ </form>
482
+ </div>
483
484
<?php do_action( 'ac/settings/after_title', $list_screen ); ?>
485
486
+ </div>
487
488
+ <div class="ac-right">
489
+ <div class="ac-right-inner">
490
491
<?php if ( ! $list_screen->is_read_only() ) : ?>
492
+ <div class="sidebox form-actions">
493
<?php $mainlabel = __( 'Store settings', 'codepress-admin-columns' ); ?>
494
+ <h3>
495
+ <span class="left"><?php echo esc_html( $mainlabel ); ?></span>
496
<?php if ( 18 > strlen( $mainlabel ) && ( $truncated_label = $this->get_truncated_side_label( $list_screen->get_label(), $mainlabel ) ) ) : ?>
497
+ <span class="right contenttype"><?php echo esc_html( $truncated_label ); ?></span>
498
<?php else : ?>
499
+ <span class="clear contenttype"><?php echo esc_html( $list_screen->get_label() ); ?></span>
500
<?php endif; ?>
501
+ </h3>
502
503
+ <div class="form-update">
504
+ <a class="button-primary submit update"><?php _e( 'Update' ); ?></a>
505
+ <a class="button-primary submit save"><?php _e( 'Save' ); ?></a>
506
+ </div>
507
508
+ <form class="form-reset" method="post">
509
+ <input type="hidden" name="list_screen" value="<?php echo esc_attr( $list_screen->get_key() ); ?>"/>
510
+ <input type="hidden" name="layout" value="<?php echo esc_attr( $list_screen->get_layout_id() ); ?>"/>
511
+ <input type="hidden" name="cpac_action" value="restore_by_type"/>
512
513
<?php $this->nonce_field( 'restore-type' ); ?>
514
515
<?php $onclick = AC()->use_delete_confirmation() ? ' onclick="return confirm(\'' . esc_js( sprintf( __( "Warning! The %s columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop", 'codepress-admin-columns' ), "'" . $this->get_list_screen_message_label( $list_screen ) . "'" ) ) . '\');"' : ''; ?>
516
+ <input class="reset-column-type" type="submit"<?php echo $onclick; ?> value="<?php _e( 'Restore columns', 'codepress-admin-columns' ); ?>">
517
+ <span class="spinner"></span>
518
+ </form>
519
520
<?php do_action( 'ac/settings/form_actions', $this ); ?>
521
522
+ </div><!--form-actions-->
523
<?php endif; ?>
524
525
<?php do_action( 'ac/settings/sidebox', $list_screen ); ?>
528
529
<?php $active_promotion = $this->get_active_promotion(); ?>
530
531
+ <div class="sidebox" id="ac-pro-version">
532
+ <div class="padding-box">
533
+ <h3>
534
+ <a href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner', 'title' ) ); ?>">
535
<?php _e( 'Upgrade to', 'codepress-admin-columns' ); ?>&nbsp;<span><?php _e( 'Pro', 'codepress-admin-columns' ); ?></span>
536
+ </a>
537
+ </h3>
538
539
+ <div class="inside">
540
+ <p><?php _e( 'Take Admin Columns to the next level:', 'codepress-admin-columns' ); ?></p>
541
+ <ul class="features">
542
<?php
543
544
$items = array(
550
);
551
552
foreach ( $items as $utm_content => $label ) : ?>
553
+ <li>
554
+ <a href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner', 'usp-' . $utm_content ) ); ?>"><?php echo esc_html( $label ); ?></a>
555
+ </li>
556
<?php endforeach; ?>
557
558
+ </ul>
559
560
<?php if ( $promos = AC()->addons()->get_missing_addons() ) : ?>
561
+ <strong><?php _e( 'Extra Columns for:', 'codepress-admin-columns' ); ?></strong>
562
+ <ul>
563
<?php foreach ( $promos as $addon ) : ?>
564
+ <li class="acp-integration">
565
+ <a href="<?php echo esc_url( $addon->get_link() ); ?>" target="_blank"><?php $addon->display_promo(); ?></a>
566
+ </li>
567
<?php endforeach; ?>
568
+ </ul>
569
<?php endif; ?>
570
571
+ <p class="center">
572
+ <?php echo ac_helper()->html->link( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner' ), sprintf( __( 'Prices starting from %s', 'codepress-admin-columns' ), '$39.20' ), array( 'class' => 'ac-pro-prices' ) ); ?> <sup>$49</sup>
573
+ </p>
574
+ <p class="center nopadding">
575
<?php if ( ! $active_promotion ) : ?>
576
+ <a target="_blank" href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'banner' ) ); ?>" class="more">
577
<?php _e( 'Learn more about Pro', 'codepress-admin-columns' ); ?>
578
+ </a>
579
<?php endif; ?>
580
+ </p>
581
+ </div>
582
+ </div>
583
584
<?php if ( $active_promotion ) : ?>
585
586
+ <div class="padding-box ac-pro-deal">
587
<?php $active_promotion->display(); ?>
588
+ </div>
589
590
<?php else : ?>
591
592
+ <div class="padding-box ac-pro-newsletter">
593
+ <h3>
594
<?php echo esc_html( sprintf( __( 'Get %s Off!', 'codepress-admin-columns' ), '20%' ) ); ?>
595
+ </h3>
596
+ <div class="inside">
597
+ <p>
598
+ <?php echo esc_html( sprintf( __( "Submit your email and we'll send you a discount for %s off.", 'codepress-admin-columns' ), '20%' ) ); ?>
599
+ </p>
600
<?php
601
$user_data = get_userdata( get_current_user_id() );
602
?>
603
+ <form method="post" action="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'send-coupon' ) ); ?>" target="_blank">
604
+ <input name="action" type="hidden" value="mc_upgrade_pro">
605
+ <input name="EMAIL" placeholder="<?php esc_attr_e( "Your Email", 'codepress-admin-columns' ); ?>" value="<?php echo esc_attr( $user_data->user_email ); ?>" required>
606
+ <input name="FNAME" placeholder="<?php esc_attr_e( "Your First Name", 'codepress-admin-columns' ); ?>" required>
607
+ <input type="submit" value="<?php esc_attr_e( "Send me the discount", 'codepress-admin-columns' ); ?>" class="acp-button">
608
+ </form>
609
+ </div>
610
+ </div>
611
612
<?php endif; ?>
613
614
+ </div>
615
616
+ <div class="sidebox" id="direct-feedback">
617
+ <div id="feedback-choice">
618
+ <h3><?php _e( 'Are you happy with Admin Columns?', 'codepress-admin-columns' ); ?></h3>
619
620
+ <div class="inside">
621
+ <a href="#" class="yes"><?php _e( 'Yes' ); ?></a>
622
+ <a href="#" class="no"><?php _e( 'No' ); ?></a>
623
+ </div>
624
+ </div>
625
+ <div id="feedback-support">
626
+ <div class="inside">
627
+ <p>
628
<?php _e( "What's wrong? Need help? Let us know!", 'codepress-admin-columns' ); ?>
629
+ </p>
630
+ <p>
631
<?php _e( 'Check out our extensive documentation, or you can open a support topic on WordPress.org!', 'codepress-admin-columns' ); ?>
632
+ </p>
633
+ <ul class="share">
634
+ <li>
635
+ <a href="<?php echo esc_url( ac_get_site_utm_url( 'documentation', 'feedback-docs-button' ) ); ?>" target="_blank">
636
+ <div class="dashicons dashicons-editor-help"></div> <?php _e( 'Docs', 'codepress-admin-columns' ); ?>
637
+ </a>
638
+ </li>
639
+ <li>
640
+ <a href="https://wordpress.org/support/plugin/codepress-admin-columns" target="_blank">
641
+ <div class="dashicons dashicons-wordpress"></div> <?php _e( 'Forums', 'codepress-admin-columns' ); ?>
642
+ </a>
643
+ </li>
644
+ </ul>
645
+ <div class="clear"></div>
646
+ </div>
647
+ </div>
648
+ <div id="feedback-rate">
649
+ <div class="inside">
650
+ <p>
651
<?php _e( "Woohoo! We're glad to hear that!", 'codepress-admin-columns' ); ?>
652
+ </p>
653
+ <p>
654
<?php _e( 'We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!', 'codepress-admin-columns' ); ?>
655
+ </p>
656
+ <ul class="share">
657
+ <li>
658
+ <a href="http://wordpress.org/support/view/plugin-reviews/codepress-admin-columns#postform" target="_blank">
659
+ <div class="dashicons dashicons-star-empty"></div> <?php _e( 'Rate', 'codepress-admin-columns' ); ?>
660
+ </a>
661
+ </li>
662
+
663
+ <li>
664
+ <a href="<?php echo esc_url( add_query_arg( array( 'hashtags' => 'admincolumns', 'text' => urlencode( __( "I'm using Admin Columns for WordPress!", 'codepress-admin-columns' ) ), 'url' => urlencode( 'http://wordpress.org/plugins/codepress-admin-columns/' ), 'via' => ac_get_twitter_handle() ), 'https://twitter.com/intent/tweet' ) ); ?>" target="_blank">
665
+ <div class="dashicons dashicons-twitter"></div> <?php _e( 'Tweet', 'codepress-admin-columns' ); ?>
666
+ </a>
667
+ </li>
668
+
669
+ <li>
670
+ <a href="<?php echo esc_url( ac_get_site_utm_url( 'upgrade-to-admin-columns-pro', 'feedback-purchase-button' ) ); ?>" target="_blank">
671
+ <div class="dashicons dashicons-cart"></div> <?php _e( 'Buy Pro', 'codepress-admin-columns' ); ?>
672
+ </a>
673
+ </li>
674
+ </ul>
675
+ <div class="clear"></div>
676
+ </div>
677
+ </div>
678
+ </div>
679
680
<?php endif; ?>
681
682
+ <div class="sidebox" id="plugin-support">
683
+ <h3><?php _e( 'Support', 'codepress-admin-columns' ); ?></h3>
684
685
+ <div class="inside">
686
<?php if ( version_compare( get_bloginfo( 'version' ), '3.2', '>' ) ) : ?>
687
+ <p>
688
<?php _e( "Check the <strong>Help</strong> section in the top-right screen.", 'codepress-admin-columns' ); ?>
689
+ </p>
690
<?php endif; ?>
691
+ <p>
692
<?php printf( __( "For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>", 'codepress-admin-columns' ), ac_get_site_utm_url( 'documentation', 'support' ) ); ?>
693
+ </p>
694
+ </div>
695
+ </div><!--plugin-support-->
696
697
+ </div><!--.ac-right-inner-->
698
+ </div><!--.ac-right-->
699
700
+ <div class="ac-left">
701
<?php if ( ! $list_screen->get_stored_default_headings() && ! $list_screen->is_read_only() ) : ?>
702
+ <div class="notice notice-warning">
703
+ <p>
704
<?php echo $this->get_error_message_visit_list_screen( $list_screen ); ?>
705
+ </p>
706
+ </div>
707
<?php endif ?>
708
709
<?php $this->display_notices(); ?>
710
711
<?php if ( $list_screen->is_read_only() ) : ?>
712
+ <div class="ac-notice notice-warning below-h2">
713
+ <p><?php echo $this->get_read_only_message( $list_screen ); ?></p>
714
+ </div>
715
<?php endif; ?>
716
717
+ <div class="ac-boxes<?php echo esc_attr( $list_screen->is_read_only() ? ' disabled' : '' ); ?>">
718
719
+ <div class="ac-columns">
720
+ <form method="post" action="<?php echo esc_attr( $this->get_link() ); ?>">
721
722
+ <input type="hidden" name="list_screen" value="<?php echo esc_attr( $list_screen->get_key() ); ?>"/>
723
+ <input type="hidden" name="cpac_action" value="update_by_type"/>
724
725
<?php $this->nonce_field( 'update-type' ); ?>
726
733
$this->display_column( $column );
734
}
735
?>
736
+ </form>
737
738
+ </div>
739
740
+ <div class="column-footer">
741
<?php if ( ! $list_screen->is_read_only() ) : ?>
742
+ <div class="order-message">
743
<?php _e( 'Drag and drop to reorder', 'codepress-admin-columns' ); ?>
744
+ </div>
745
+ <div class="button-container">
746
<?php
747
748
/**
754
*/
755
if ( apply_filters( 'ac/enable_clear_columns_button', false ) ) :
756
?>
757
+ <a class="clear-columns" data-clear-columns><?php _e( 'Clear all columns ', 'codepress-admin-columns' ) ?></a>
758
<?php endif; ?>
759
760
+ <span class="spinner"></span>
761
+ <a class="button-primary submit update"><?php _e( 'Update' ); ?></a>
762
+ <a class="button-primary submit save"><?php _e( 'Save' ); ?></a>
763
+ <a class="add_column button">+ <?php _e( 'Add Column', 'codepress-admin-columns' ); ?></a>
764
+ </div>
765
<?php endif; ?>
766
+ </div>
767
768
+ </div><!--.ac-boxes-->
769
770
<?php do_action( 'ac/settings/after_columns', $list_screen ); ?>
771
772
+ </div><!--.ac-left-->
773
+ <div class="clear"></div>
774
775
+ <div id="add-new-column-template">
776
<?php $this->display_column_template( $list_screen ); ?>
777
+ </div>
778
779
+ </div><!--.ac-admin-->
780
781
+ <div class="clear"></div>
782
783
<?php
784
}
808
*/
809
public function display_column( AC_Column $column ) { ?>
810
811
+ <div class="ac-column ac-<?php echo esc_attr( $column->get_type() ); ?>"
812
+ data-type="<?php echo esc_attr( $column->get_type() ); ?>"
813
+ data-original="<?php echo esc_attr( $column->is_original() ); ?>"
814
+ data-column-name="<?php echo esc_attr( $column->get_name() ); ?>">
815
+
816
+ <div class="ac-column-header">
817
+ <table class="widefat">
818
+ <tbody>
819
+ <tr>
820
+ <td class="column_sort">
821
+ <span class="cpacicon-move"></span>
822
+ </td>
823
+ <td class="column_label">
824
+ <div class="inner">
825
+ <div class="meta">
826
<?php
827
828
foreach ( $column->get_settings() as $setting ) {
841
do_action( 'ac/column/header', $column );
842
843
?>
844
+ </div>
845
+ <a class="toggle" data-toggle="column">
846
<?php echo $column->get_setting( 'label' )->get_value(); // do not escape ?>
847
+ </a>
848
+ <a class="edit-button" data-toggle="column"><?php _e( 'Edit', 'codepress-admin-columns' ); ?></a>
849
+ <a class="close-button" data-toggle="column"><?php _e( 'Close', 'codepress-admin-columns' ); ?></a>
850
<?php if ( ! $column->is_original() ) : ?>
851
+ <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a>
852
<?php endif; ?>
853
+ <a class="remove-button"><?php _e( 'Remove', 'codepress-admin-columns' ); ?></a>
854
+ </div>
855
+ </td>
856
+ <td class="column_type">
857
+ <div class="inner" data-toggle="column">
858
<?php echo ac_helper()->html->strip_attributes( $column->get_label(), array( 'style', 'class' ) ); ?>
859
+ </div>
860
+ </td>
861
+ <td class="column_edit" data-toggle="column">
862
+ </td>
863
+ </tr>
864
+ </tbody>
865
+ </table>
866
+ </div>
867
+
868
+ <div class="ac-column-body">
869
+ <div class="ac-column-settings">
870
871
<?php
872
876
877
?>
878
879
+ <table class="ac-column-setting ac-column-setting-actions">
880
+ <tr>
881
+ <td class="col-label"></td>
882
+ <td class="col-settings">
883
+ <p>
884
+ <a href="#" class="close-button" data-toggle="column"><?php _e( 'Close', 'codepress-admin-columns' ); ?></a>
885
<?php if ( ! $column->is_original() ) : ?>
886
+ <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a>
887
<?php endif; ?>
888
+ <a href="#" class="remove-button"><?php _e( 'Remove' ); ?></a>
889
+ </p>
890
+ </td>
891
+ </tr>
892
+
893
+ </table>
894
+ </div>
895
+ </div>
896
+ </div>
897
<?php
898
}
899
classes/Autoloader.php CHANGED
@@ -54,18 +54,29 @@ class AC_Autoloader {
54
* @param $class
55
*/
56
public function autoload( $class ) {
57
- foreach ( $this->prefixes as $prefix => $path ) {
58
if ( 0 !== strpos( $class, $prefix ) ) {
59
continue;
60
}
61
62
- $file = $path . str_replace( array( $prefix, '_' ), array( '', '/' ), $class ) . '.php';
63
64
if ( is_readable( $file ) ) {
65
require_once $file;
66
67
break;
68
}
69
}
70
}
71
54
* @param $class
55
*/
56
public function autoload( $class ) {
57
+ foreach ( $this->prefixes as $prefix => $prefix_path ) {
58
if ( 0 !== strpos( $class, $prefix ) ) {
59
continue;
60
}
61
62
+ $class_path = str_replace( array( $prefix, '_' ), array( '', '/' ), $class );
63
+ $file = $prefix_path . $class_path . '.php';
64
65
if ( is_readable( $file ) ) {
66
require_once $file;
67
68
break;
69
}
70
+
71
+ // Git does not detect case-difference in a filename and older versions used same filename but with a different case
72
+ $basename = basename( $file );
73
+ $file_lc = str_replace( $basename, strtolower( $basename ), $file );
74
+
75
+ if ( is_readable( $file_lc ) ) {
76
+ require_once $file_lc;
77
+
78
+ break;
79
+ }
80
}
81
}
82
classes/ListScreen.php CHANGED
@@ -479,7 +479,7 @@ abstract class AC_ListScreen {
479
* @param array $columns
480
*/
481
public function set_original_columns( $columns ) {
482
- $this->original_columns = $columns;
483
}
484
485
/**
479
* @param array $columns
480
*/
481
public function set_original_columns( $columns ) {
482
+ $this->original_columns = (array) $columns;
483
}
484
485
/**
classes/Notice/Review.php CHANGED
@@ -18,11 +18,11 @@ class AC_Notice_Review {
18
}
19
20
public function insert_install_timestamp() {
21
- add_site_option( self::OPTION_INSTALL_DATE, time() );
22
}
23
24
private function get_install_timestamp() {
25
- $timestamp = get_site_option( self::OPTION_INSTALL_DATE, '' );
26
27
if ( '' == $timestamp ) {
28
$this->insert_install_timestamp();
@@ -34,26 +34,28 @@ class AC_Notice_Review {
34
}
35
36
public function maybe_display_review_notice() {
37
- global $pagenow;
38
-
39
- // Only show review notice on plugin or settings screen
40
- if ( ! in_array( $pagenow, array( 'options-general.php', 'plugins.php' ) ) ) {
41
return;
42
}
43
44
- if ( AC()->suppress_site_wide_notices() ) {
45
return;
46
}
47
48
- if ( AC()->user_can_manage_admin_columns() && ( ! get_user_meta( get_current_user_id(), self::OPTION_ADMIN_NOTICE_KEY, true ) ) ) {
49
50
- // Display notice after 30 days
51
- if ( ( time() - ( 30 * DAY_IN_SECONDS ) ) >= $this->get_install_timestamp() ) {
52
- add_action( 'admin_notices', array( $this, 'display_review_notice' ) );
53
- }
54
}
55
}
56
57
public function ajax_hide_review_notice() {
58
update_user_meta( get_current_user_id(), self::OPTION_ADMIN_NOTICE_KEY, '1', true );
59
}
18
}
19
20
public function insert_install_timestamp() {
21
+ ac_helper()->user->update_meta_site( self::OPTION_INSTALL_DATE, time() );
22
}
23
24
private function get_install_timestamp() {
25
+ $timestamp = ac_helper()->user->get_meta_site( self::OPTION_INSTALL_DATE, true );
26
27
if ( '' == $timestamp ) {
28
$this->insert_install_timestamp();
34
}
35
36
public function maybe_display_review_notice() {
37
+ if ( AC()->suppress_site_wide_notices() ) {
38
return;
39
}
40
41
+ if ( ! AC()->user_can_manage_admin_columns() ) {
42
return;
43
}
44
45
+ if ( $this->is_review_notice_shown() ) {
46
+ return;
47
+ }
48
49
+ // Display notice after 30 days
50
+ if ( ( time() - ( 30 * DAY_IN_SECONDS ) ) >= $this->get_install_timestamp() ) {
51
+ add_action( 'admin_notices', array( $this, 'display_review_notice' ) );
52
}
53
}
54
55
+ public function is_review_notice_shown() {
56
+ return '1' === get_user_meta( get_current_user_id(), self::OPTION_ADMIN_NOTICE_KEY, true );
57
+ }
58
+
59
public function ajax_hide_review_notice() {
60
update_user_meta( get_current_user_id(), self::OPTION_ADMIN_NOTICE_KEY, '1', true );
61
}
classes/Settings/Column/PathScope.php CHANGED
@@ -58,10 +58,10 @@ class AC_Settings_Column_PathScope extends AC_Settings_Column
58
$value = '';
59
60
if ( $file ) {
61
- $file = str_replace( 'https://', 'http://', $file );
62
63
switch ( $this->get_path_scope() ) {
64
case 'relative-domain' :
65
$url = str_replace( 'https://', 'http://', home_url( '/' ) );
66
67
if ( strpos( $file, $url ) === 0 ) {
@@ -70,6 +70,7 @@ class AC_Settings_Column_PathScope extends AC_Settings_Column
70
71
break;
72
case 'relative-uploads' :
73
$upload_dir = wp_upload_dir();
74
$url = str_replace( 'https://', 'http://', $upload_dir['baseurl'] );
75
58
$value = '';
59
60
if ( $file ) {
61
62
switch ( $this->get_path_scope() ) {
63
case 'relative-domain' :
64
+ $file = str_replace( 'https://', 'http://', $file );
65
$url = str_replace( 'https://', 'http://', home_url( '/' ) );
66
67
if ( strpos( $file, $url ) === 0 ) {
70
71
break;
72
case 'relative-uploads' :
73
+ $file = str_replace( 'https://', 'http://', $file );
74
$upload_dir = wp_upload_dir();
75
$url = str_replace( 'https://', 'http://', $upload_dir['baseurl'] );
76
classes/Settings/Column/User.php CHANGED
@@ -115,6 +115,7 @@ class AC_Settings_Column_User extends AC_Settings_Column
115
'user_email' => __( 'User Email', 'codepress-admin-columns' ),
116
'ID' => __( 'User ID', 'codepress-admin-columns' ),
117
'first_last_name' => __( 'First and Last Name', 'codepress-admin-columns' ),
118
);
119
120
// resort for possible translations
115
'user_email' => __( 'User Email', 'codepress-admin-columns' ),
116
'ID' => __( 'User ID', 'codepress-admin-columns' ),
117
'first_last_name' => __( 'First and Last Name', 'codepress-admin-columns' ),
118
+ 'user_nicename' => __( 'User Nicename', 'codepress-admin-columns' ),
119
);
120
121
// resort for possible translations
codepress-admin-columns.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
- Version: 3.0
5
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
Author: AdminColumns.com
7
Author URI: https://www.admincolumns.com
1
<?php
2
/*
3
Plugin Name: Admin Columns
4
+ Version: 3.0.1
5
Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
6
Author: AdminColumns.com
7
Author URI: https://www.admincolumns.com
languages/codepress-admin-columns.pot CHANGED
@@ -16,19 +16,19 @@ msgstr ""
16
"X-Poedit-SourceCharset: UTF-8\n"
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
19
- #: ../codepress-admin-columns.php:336, ../classes/Admin/Help/CustomField.php:18, ../classes/Settings/Column/CustomFieldType.php:164, ../classes/Settings/Column/Image.php:67, ../classes/Settings/Column/Separator.php:19
20
msgid "Default"
21
msgstr ""
22
23
- #: ../codepress-admin-columns.php:337, ../classes/Settings/Column/Meta.php:110
24
msgid "Custom Fields"
25
msgstr ""
26
27
- #: ../codepress-admin-columns.php:339, ../classes/Settings/Column/CustomFieldType.php:149, ../classes/Settings/Column/Image.php:107
28
msgid "Custom"
29
msgstr ""
30
31
- #: ../codepress-admin-columns.php:493, ../classes/Settings/Column/CustomFieldType.php:76, ../classes/Settings/Column/PostType.php:19
32
msgid "Post Type"
33
msgstr ""
34
@@ -36,19 +36,35 @@ msgstr ""
36
msgid "Display and edit %s fields in the posts overview in seconds!"
37
msgstr ""
38
39
- #: ../classes/Admin.php:124
40
msgid "Admin Columns Settings"
41
msgstr ""
42
43
- #: ../classes/Admin.php:124, ../classes/Notice/Review.php:58, ../classes/Admin/Page/Columns.php:20
44
msgid "Admin Columns"
45
msgstr ""
46
47
- #: ../classes/ListScreen.php:663
48
msgid "No columns settings available."
49
msgstr ""
50
51
- #: ../classes/TableScreen.php:144
52
msgid "Edit columns"
53
msgstr ""
54
@@ -112,67 +128,67 @@ msgstr ""
112
msgid "Used by Menu"
113
msgstr ""
114
115
- #: ../classes/Helper/Html.php:276
116
msgid "Show %s more"
117
msgstr ""
118
119
- #: ../classes/Helper/Html.php:280
120
msgid "Hide"
121
msgstr ""
122
123
- #: ../classes/Helper/String.php:258
124
msgid " or "
125
msgstr ""
126
127
- #: ../classes/Helper/String.php:260
128
msgid " and "
129
msgstr ""
130
131
- #: ../classes/Notice/Review.php:61, ../classes/Admin/Page/Addons.php:61
132
msgid "Admin Columns Pro"
133
msgstr ""
134
135
- #: ../classes/Notice/Review.php:70
136
msgid "We don't mean to bug you, but you've been using %s for some time now, and we were wondering if you're happy with the plugin. If so, could you please leave a review at wordpress.org? If you're not happy with %s, please %s."
137
msgstr ""
138
139
- #: ../classes/Notice/Review.php:74
140
msgid "click here"
141
msgstr ""
142
143
- #: ../classes/Notice/Review.php:78
144
msgid "Leave a review!"
145
msgstr ""
146
147
- #: ../classes/Notice/Review.php:79
148
msgid "Permanently hide notice"
149
msgstr ""
150
151
- #: ../classes/Notice/Review.php:86
152
msgid "We're sorry to hear that; maybe we can help! If you're having problems properly setting up %s or if you would like help with some more advanced features, please visit our %s."
153
msgstr ""
154
155
- #: ../classes/Notice/Review.php:88
156
msgid "documentation page"
157
msgstr ""
158
159
- #: ../classes/Notice/Review.php:92
160
msgid "As an Admin Columns Pro user, you can also use your AdminColumns.com account to access product support through %s!"
161
msgstr ""
162
163
- #: ../classes/Notice/Review.php:93
164
msgid "our forums"
165
msgstr ""
166
167
- #: ../classes/Notice/Review.php:97
168
msgid "You can also find help on the %s, and %s."
169
msgstr ""
170
171
- #: ../classes/Notice/Review.php:98
172
msgid "Admin Columns forums on WordPress.org"
173
msgstr ""
174
175
- #: ../classes/Notice/Review.php:99
176
msgid "find answers to some frequently asked questions"
177
msgstr ""
178
@@ -312,331 +328,335 @@ msgstr ""
312
msgid "This plugin is for adding and removing additional columns to the administration screens for post(types), pages, media library, comments, links and users. Change the column's label and reorder them."
313
msgstr ""
314
315
- #: ../classes/Admin/Page/Addons.php:20
316
msgid "Add-ons"
317
msgstr ""
318
319
- #: ../classes/Admin/Page/Addons.php:43
320
msgid "%s plugin needs to be installed for the add-on to work."
321
msgstr ""
322
323
- #: ../classes/Admin/Page/Addons.php:45
324
msgid "%s plugin is installed, but not active."
325
msgstr ""
326
327
- #: ../classes/Admin/Page/Addons.php:48
328
msgid "Click %s to activate the plugin."
329
msgstr ""
330
331
- #: ../classes/Admin/Page/Addons.php:61
332
msgid "%s add-on requires %s."
333
msgid_plural "%s add-ons requires %s."
334
msgstr[0] ""
335
msgstr[1] ""
336
337
- #: ../classes/Admin/Page/Addons.php:108
338
msgid "%s plugin successfully activated."
339
msgstr ""
340
341
- #: ../classes/Admin/Page/Addons.php:109
342
msgid "%s plugin successfully deactivated."
343
msgstr ""
344
345
- #: ../classes/Admin/Page/Addons.php:114
346
msgid "%s successfully activated."
347
msgstr ""
348
349
- #: ../classes/Admin/Page/Addons.php:115
350
msgid "%s successfully deactivated."
351
msgstr ""
352
353
- #: ../classes/Admin/Page/Addons.php:124
354
msgid "%s could not be activated."
355
msgstr ""
356
357
- #: ../classes/Admin/Page/Addons.php:238
358
msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
359
msgstr ""
360
361
- #: ../classes/Admin/Page/Addons.php:238
362
msgid "the addons page"
363
msgstr ""
364
365
- #: ../classes/Admin/Page/Addons.php:269
366
msgid "Addon does not exist."
367
msgstr ""
368
369
- #: ../classes/Admin/Page/Addons.php:275
370
msgid "You need Admin Columns Pro."
371
msgstr ""
372
373
- #: ../classes/Admin/Page/Addons.php:346
374
msgid "Installed"
375
msgstr ""
376
377
- #: ../classes/Admin/Page/Addons.php:347
378
msgid "Recommended"
379
msgstr ""
380
381
- #: ../classes/Admin/Page/Addons.php:348
382
msgid "Available"
383
msgstr ""
384
385
- #: ../classes/Admin/Page/Addons.php:479
386
msgid "Active"
387
msgstr ""
388
389
- #: ../classes/Admin/Page/Addons.php:480
390
msgid "Deactivate"
391
msgstr ""
392
393
- #: ../classes/Admin/Page/Addons.php:484
394
msgid "Activate"
395
msgstr ""
396
397
- #: ../classes/Admin/Page/Addons.php:493
398
msgid "Download & Install"
399
msgstr ""
400
401
- #: ../classes/Admin/Page/Addons.php:495
402
msgid "Get this add-on"
403
msgstr ""
404
405
- #: ../classes/Admin/Page/Columns.php:57, ../classes/Admin/Page/Columns.php:220
406
msgid "%s column is already present and can not be duplicated."
407
msgstr ""
408
409
- #: ../classes/Admin/Page/Columns.php:58
410
msgid "Invalid response."
411
msgstr ""
412
413
- #: ../classes/Admin/Page/Columns.php:126
414
msgid "Settings for %s restored successfully."
415
msgstr ""
416
417
- #: ../classes/Admin/Page/Columns.php:184
418
msgid "Please visit the %s screen once to load all available columns"
419
msgstr ""
420
421
- #: ../classes/Admin/Page/Columns.php:281
422
msgid "You need at least one column"
423
msgstr ""
424
425
- #: ../classes/Admin/Page/Columns.php:301
426
msgid "You are trying to store the same settings for %s."
427
msgstr ""
428
429
- #: ../classes/Admin/Page/Columns.php:314
430
msgid "Settings for %s updated successfully."
431
msgstr ""
432
433
- #: ../classes/Admin/Page/Columns.php:315
434
msgid "View %s screen"
435
msgstr ""
436
437
- #: ../classes/Admin/Page/Columns.php:415
438
msgid "The columns for %s are set up via PHP and can therefore not be edited."
439
msgstr ""
440
441
- #: ../classes/Admin/Page/Columns.php:446
442
msgid "View"
443
msgstr ""
444
445
- #: ../classes/Admin/Page/Columns.php:460
446
msgid "Store settings"
447
msgstr ""
448
449
- #: ../classes/Admin/Page/Columns.php:482
450
msgid "Warning! The %s columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop"
451
msgstr ""
452
453
- #: ../classes/Admin/Page/Columns.php:483
454
msgid "Restore columns"
455
msgstr ""
456
457
- #: ../classes/Admin/Page/Columns.php:502
458
msgid "Upgrade to"
459
msgstr ""
460
461
- #: ../classes/Admin/Page/Columns.php:502
462
msgid "Pro"
463
msgstr ""
464
465
- #: ../classes/Admin/Page/Columns.php:507
466
msgid "Take Admin Columns to the next level:"
467
msgstr ""
468
469
- #: ../classes/Admin/Page/Columns.php:512
470
msgid "Add sortable columns"
471
msgstr ""
472
473
- #: ../classes/Admin/Page/Columns.php:513
474
msgid "Add filterable columns"
475
msgstr ""
476
477
- #: ../classes/Admin/Page/Columns.php:514
478
msgid "Edit your column content directly"
479
msgstr ""
480
481
- #: ../classes/Admin/Page/Columns.php:515
482
msgid "Create multiple columns sets"
483
msgstr ""
484
485
- #: ../classes/Admin/Page/Columns.php:516
486
msgid "Import &amp; Export settings"
487
msgstr ""
488
489
- #: ../classes/Admin/Page/Columns.php:528
490
msgid "Extra Columns for:"
491
msgstr ""
492
493
- #: ../classes/Admin/Page/Columns.php:541
494
msgid "Learn more about Pro"
495
msgstr ""
496
497
- #: ../classes/Admin/Page/Columns.php:558
498
msgid "Get %s Off!"
499
msgstr ""
500
501
- #: ../classes/Admin/Page/Columns.php:562
502
- msgid "Submit your email and we'll send you a coupon for %s off."
503
msgstr ""
504
505
- #: ../classes/Admin/Page/Columns.php:569
506
msgid "Your Email"
507
msgstr ""
508
509
- #: ../classes/Admin/Page/Columns.php:570
510
msgid "Your First Name"
511
msgstr ""
512
513
- #: ../classes/Admin/Page/Columns.php:571
514
- msgid "Send me the coupon"
515
msgstr ""
516
517
- #: ../classes/Admin/Page/Columns.php:582
518
msgid "Are you happy with Admin Columns?"
519
msgstr ""
520
521
- #: ../classes/Admin/Page/Columns.php:592
522
msgid "What's wrong? Need help? Let us know!"
523
msgstr ""
524
525
- #: ../classes/Admin/Page/Columns.php:595
526
msgid "Check out our extensive documentation, or you can open a support topic on WordPress.org!"
527
msgstr ""
528
529
- #: ../classes/Admin/Page/Columns.php:600
530
msgid "Docs"
531
msgstr ""
532
533
- #: ../classes/Admin/Page/Columns.php:605
534
msgid "Forums"
535
msgstr ""
536
537
- #: ../classes/Admin/Page/Columns.php:615
538
msgid "Woohoo! We're glad to hear that!"
539
msgstr ""
540
541
- #: ../classes/Admin/Page/Columns.php:618
542
msgid "We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!"
543
msgstr ""
544
545
- #: ../classes/Admin/Page/Columns.php:623
546
msgid "Rate"
547
msgstr ""
548
549
- #: ../classes/Admin/Page/Columns.php:628
550
msgid "I'm using Admin Columns for WordPress!"
551
msgstr ""
552
553
- #: ../classes/Admin/Page/Columns.php:629
554
msgid "Tweet"
555
msgstr ""
556
557
- #: ../classes/Admin/Page/Columns.php:635
558
msgid "Buy Pro"
559
msgstr ""
560
561
- #: ../classes/Admin/Page/Columns.php:647
562
msgid "Support"
563
msgstr ""
564
565
- #: ../classes/Admin/Page/Columns.php:652
566
msgid "Check the <strong>Help</strong> section in the top-right screen."
567
msgstr ""
568
569
- #: ../classes/Admin/Page/Columns.php:656
570
msgid "For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>"
571
msgstr ""
572
573
- #: ../classes/Admin/Page/Columns.php:707
574
msgid "Drag and drop to reorder"
575
msgstr ""
576
577
- #: ../classes/Admin/Page/Columns.php:721
578
msgid "Clear all columns "
579
msgstr ""
580
581
- #: ../classes/Admin/Page/Columns.php:727
582
msgid "Add Column"
583
msgstr ""
584
585
- #: ../classes/Admin/Page/Columns.php:812
586
msgid "Edit"
587
msgstr ""
588
589
- #: ../classes/Admin/Page/Columns.php:813, ../classes/Admin/Page/Columns.php:848
590
msgid "Close"
591
msgstr ""
592
593
- #: ../classes/Admin/Page/Columns.php:815, ../classes/Admin/Page/Columns.php:850
594
msgid "Clone"
595
msgstr ""
596
597
- #: ../classes/Admin/Page/Columns.php:817
598
msgid "Remove"
599
msgstr ""
600
601
- #: ../classes/Admin/Page/Help.php:29, ../classes/Admin/Page/Help.php:301
602
msgid "Help"
603
msgstr ""
604
605
- #: ../classes/Admin/Page/Help.php:161
606
msgid "Deprecated Filters"
607
msgstr ""
608
609
- #: ../classes/Admin/Page/Help.php:162
610
msgid "Deprecated Actions"
611
msgstr ""
612
613
- #: ../classes/Admin/Page/Help.php:175
614
msgid "The filter %s used on this website is deprecated since %s."
615
msgstr ""
616
617
- #: ../classes/Admin/Page/Help.php:188
618
msgid "The action %s used on this website is deprecated since %s."
619
msgstr ""
620
621
- #: ../classes/Admin/Page/Help.php:238
622
msgid "View documentation"
623
msgstr ""
624
625
- #: ../classes/Admin/Page/Help.php:293
626
msgid "The callback used is %s."
627
msgid_plural "The callbacks used are %s"
628
msgstr[0] ""
629
msgstr[1] ""
630
631
- #: ../classes/Admin/Page/Help.php:303
632
msgid "The Admin Columns plugin has undergone some major changes in version 4."
633
msgstr ""
634
635
- #: ../classes/Admin/Page/Help.php:305
636
msgid "This site is using some actions or filters that have changed. Please read %s to resolve them."
637
msgstr ""
638
639
- #: ../classes/Admin/Page/Help.php:305
640
msgid "our documentation"
641
msgstr ""
642
@@ -644,83 +664,95 @@ msgstr ""
644
msgid "Settings"
645
msgstr ""
646
647
- #: ../classes/Admin/Page/Settings.php:98
648
msgid "Default settings succesfully restored."
649
msgstr ""
650
651
- #: ../classes/Admin/Page/Settings.php:124
652
msgid "Instructions"
653
msgstr ""
654
655
- #: ../classes/Admin/Page/Settings.php:130
656
msgid "Notice"
657
msgstr ""
658
659
- #: ../classes/Admin/Page/Settings.php:143
660
msgid "General Settings"
661
msgstr ""
662
663
- #: ../classes/Admin/Page/Settings.php:144
664
msgid "Customize your Admin Columns settings."
665
msgstr ""
666
667
- #: ../classes/Admin/Page/Settings.php:154
668
- msgid "Show \"Edit Columns\" button on admin screens. Default is <code>on</code>."
669
msgstr ""
670
671
- #: ../classes/Admin/Page/Settings.php:203
672
msgid "Restore Settings"
673
msgstr ""
674
675
- #: ../classes/Admin/Page/Settings.php:204
676
msgid "This will delete all column settings and restore the default settings."
677
msgstr ""
678
679
- #: ../classes/Admin/Page/Settings.php:212
680
msgid "Restore default settings"
681
msgstr ""
682
683
- #: ../classes/Admin/Page/Settings.php:212
684
msgid "Warning! ALL saved admin columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop"
685
msgstr ""
686
687
- #: ../classes/Admin/Page/Upgrade.php:22, ../classes/Admin/Page/Upgrade.php:309
688
msgid "Upgrade"
689
msgstr ""
690
691
- #: ../classes/Admin/Page/Upgrade.php:40
692
msgid "The pro add-on is no longer supported. Please login to your account and download Admin Columns Pro"
693
msgstr ""
694
695
- #: ../classes/Admin/Page/Upgrade.php:41
696
msgid "Learn more"
697
msgstr ""
698
699
- #: ../classes/Admin/Page/Upgrade.php:249
700
msgid "Migrating Column Settings"
701
msgstr ""
702
703
- #: ../classes/Admin/Page/Upgrade.php:285
704
msgid "No Upgrade Required"
705
msgstr ""
706
707
- #: ../classes/Admin/Page/Upgrade.php:286
708
msgid "Return to welcome screen."
709
msgstr ""
710
711
- #: ../classes/Admin/Page/Upgrade.php:298
712
msgid "Upgrade Complete!"
713
msgstr ""
714
715
- #: ../classes/Admin/Page/Upgrade.php:298
716
msgid "Return to settings."
717
msgstr ""
718
719
- #: ../classes/Admin/Page/Upgrade.php:299
720
msgid "Error"
721
msgstr ""
722
723
- #: ../classes/Admin/Page/Upgrade.php:300
724
msgid "Sorry. Something went wrong during the upgrade process. Please report this on the support forum."
725
msgstr ""
726
@@ -1028,8 +1060,8 @@ msgstr ""
1028
msgid "Show Toolbar"
1029
msgstr ""
1030
1031
- #: ../classes/Column/User/Url.php:10, ../classes/Settings/Column/CustomFieldType.php:100
1032
- msgid "Url"
1033
msgstr ""
1034
1035
#: ../classes/Settings/Column/ActionIcons.php:22
@@ -1096,15 +1128,15 @@ msgstr ""
1096
msgid "Total"
1097
msgstr ""
1098
1099
- #: ../classes/Settings/Column/CustomField.php:31
1100
msgid "No custom fields available."
1101
msgstr ""
1102
1103
- #: ../classes/Settings/Column/CustomField.php:31
1104
msgid "Please create a %s item first."
1105
msgstr ""
1106
1107
- #: ../classes/Settings/Column/CustomField.php:35, ../classes/Settings/Column/Meta.php:59, ../classes/Settings/Column/Post.php:67
1108
msgid "Field"
1109
msgstr ""
1110
@@ -1124,6 +1156,10 @@ msgstr ""
1124
msgid "Multiple ids should be separated by a comma."
1125
msgstr ""
1126
1127
#: ../classes/Settings/Column/CustomFieldType.php:101
1128
msgid "Number"
1129
msgstr ""
@@ -1392,7 +1428,11 @@ msgstr ""
1392
msgid "First and Last Name"
1393
msgstr ""
1394
1395
- #: ../classes/Settings/Column/User.php:130
1396
msgid "View Public Author Page"
1397
msgstr ""
1398
16
"X-Poedit-SourceCharset: UTF-8\n"
17
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18
19
+ #: ../codepress-admin-columns.php:338, ../classes/Admin/Help/CustomField.php:18, ../classes/Settings/Column/CustomFieldType.php:164, ../classes/Settings/Column/Image.php:67, ../classes/Settings/Column/Separator.php:19
20
msgid "Default"
21
msgstr ""
22
23
+ #: ../codepress-admin-columns.php:340, ../classes/Settings/Column/Meta.php:110
24
msgid "Custom Fields"
25
msgstr ""
26
27
+ #: ../codepress-admin-columns.php:341, ../classes/Settings/Column/CustomFieldType.php:149, ../classes/Settings/Column/Image.php:107
28
msgid "Custom"
29
msgstr ""
30
31
+ #: ../codepress-admin-columns.php:497, ../classes/Settings/Column/CustomFieldType.php:76, ../classes/Settings/Column/PostType.php:19
32
msgid "Post Type"
33
msgstr ""
34
36
msgid "Display and edit %s fields in the posts overview in seconds!"
37
msgstr ""
38
39
+ #: ../classes/Admin.php:126
40
msgid "Admin Columns Settings"
41
msgstr ""
42
43
+ #: ../classes/Admin.php:126, ../classes/Notice/Review.php:60, ../classes/Admin/Page/Columns.php:20
44
msgid "Admin Columns"
45
msgstr ""
46
47
+ #: ../classes/ListScreen.php:638
48
msgid "No columns settings available."
49
msgstr ""
50
51
+ #: ../classes/TableScreen.php:35
52
+ msgid "Invalid item ID."
53
+ msgstr ""
54
+
55
+ #: ../classes/TableScreen.php:41
56
+ msgid "Invalid list screen."
57
+ msgstr ""
58
+
59
+ #: ../classes/TableScreen.php:49
60
+ msgid "Invalid column."
61
+ msgstr ""
62
+
63
+ #: ../classes/TableScreen.php:53
64
+ msgid "Invalid method."
65
+ msgstr ""
66
+
67
+ #: ../classes/TableScreen.php:188, ../classes/Admin/Page/Settings.php:167
68
msgid "Edit columns"
69
msgstr ""
70
128
msgid "Used by Menu"
129
msgstr ""
130
131
+ #: ../classes/Helper/Html.php:336
132
msgid "Show %s more"
133
msgstr ""
134
135
+ #: ../classes/Helper/Html.php:340
136
msgid "Hide"
137
msgstr ""
138
139
+ #: ../classes/Helper/String.php:264
140
msgid " or "
141
msgstr ""
142
143
+ #: ../classes/Helper/String.php:266
144
msgid " and "
145
msgstr ""
146
147
+ #: ../classes/Notice/Review.php:63, ../classes/Admin/Page/Addons.php:67
148
msgid "Admin Columns Pro"
149
msgstr ""
150
151
+ #: ../classes/Notice/Review.php:72
152
msgid "We don't mean to bug you, but you've been using %s for some time now, and we were wondering if you're happy with the plugin. If so, could you please leave a review at wordpress.org? If you're not happy with %s, please %s."
153
msgstr ""
154
155
+ #: ../classes/Notice/Review.php:76
156
msgid "click here"
157
msgstr ""
158
159
+ #: ../classes/Notice/Review.php:80
160
msgid "Leave a review!"
161
msgstr ""
162
163
+ #: ../classes/Notice/Review.php:81
164
msgid "Permanently hide notice"
165
msgstr ""
166
167
+ #: ../classes/Notice/Review.php:88
168
msgid "We're sorry to hear that; maybe we can help! If you're having problems properly setting up %s or if you would like help with some more advanced features, please visit our %s."
169
msgstr ""
170
171
+ #: ../classes/Notice/Review.php:90
172
msgid "documentation page"
173
msgstr ""
174
175
+ #: ../classes/Notice/Review.php:94
176
msgid "As an Admin Columns Pro user, you can also use your AdminColumns.com account to access product support through %s!"
177
msgstr ""
178
179
+ #: ../classes/Notice/Review.php:95
180
msgid "our forums"
181
msgstr ""
182
183
+ #: ../classes/Notice/Review.php:99
184
msgid "You can also find help on the %s, and %s."
185
msgstr ""
186
187
+ #: ../classes/Notice/Review.php:100
188
msgid "Admin Columns forums on WordPress.org"
189
msgstr ""
190
191
+ #: ../classes/Notice/Review.php:101
192
msgid "find answers to some frequently asked questions"
193
msgstr ""
194
328
msgid "This plugin is for adding and removing additional columns to the administration screens for post(types), pages, media library, comments, links and users. Change the column's label and reorder them."
329
msgstr ""
330
331
+ #: ../classes/Admin/Page/Addons.php:15
332
msgid "Add-ons"
333
msgstr ""
334
335
+ #: ../classes/Admin/Page/Addons.php:49
336
msgid "%s plugin needs to be installed for the add-on to work."
337
msgstr ""
338
339
+ #: ../classes/Admin/Page/Addons.php:51
340
msgid "%s plugin is installed, but not active."
341
msgstr ""
342
343
+ #: ../classes/Admin/Page/Addons.php:54
344
msgid "Click %s to activate the plugin."
345
msgstr ""
346
347
+ #: ../classes/Admin/Page/Addons.php:67
348
msgid "%s add-on requires %s."
349
msgid_plural "%s add-ons requires %s."
350
msgstr[0] ""
351
msgstr[1] ""
352
353
+ #: ../classes/Admin/Page/Addons.php:100
354
msgid "%s plugin successfully activated."
355
msgstr ""
356
357
+ #: ../classes/Admin/Page/Addons.php:101
358
msgid "%s plugin successfully deactivated."
359
msgstr ""
360
361
+ #: ../classes/Admin/Page/Addons.php:106
362
msgid "%s successfully activated."
363
msgstr ""
364
365
+ #: ../classes/Admin/Page/Addons.php:107
366
msgid "%s successfully deactivated."
367
msgstr ""
368
369
+ #: ../classes/Admin/Page/Addons.php:116
370
msgid "%s could not be activated."
371
msgstr ""
372
373
+ #: ../classes/Admin/Page/Addons.php:179
374
msgid "Did you know Admin Columns Pro has an integration addon for %s? With the proper Admin Columns Pro license, you can download them from %s!"
375
msgstr ""
376
377
+ #: ../classes/Admin/Page/Addons.php:179
378
msgid "the addons page"
379
msgstr ""
380
381
+ #: ../classes/Admin/Page/Addons.php:210
382
msgid "Addon does not exist."
383
msgstr ""
384
385
+ #: ../classes/Admin/Page/Addons.php:216
386
msgid "You need Admin Columns Pro."
387
msgstr ""
388
389
+ #: ../classes/Admin/Page/Addons.php:287
390
msgid "Installed"
391
msgstr ""
392
393
+ #: ../classes/Admin/Page/Addons.php:288
394
msgid "Recommended"
395
msgstr ""
396
397
+ #: ../classes/Admin/Page/Addons.php:289
398
msgid "Available"
399
msgstr ""
400
401
+ #: ../classes/Admin/Page/Addons.php:401
402
msgid "Active"
403
msgstr ""
404
405
+ #: ../classes/Admin/Page/Addons.php:404
406
msgid "Deactivate"
407
msgstr ""
408
409
+ #: ../classes/Admin/Page/Addons.php:408
410
msgid "Activate"
411
msgstr ""
412
413
+ #: ../classes/Admin/Page/Addons.php:414
414
msgid "Download & Install"
415
msgstr ""
416
417
+ #: ../classes/Admin/Page/Addons.php:416
418
msgid "Get this add-on"
419
msgstr ""
420
421
+ #: ../classes/Admin/Page/Columns.php:69, ../classes/Admin/Page/Columns.php:271
422
msgid "%s column is already present and can not be duplicated."
423
msgstr ""
424
425
+ #: ../classes/Admin/Page/Columns.php:70
426
msgid "Invalid response."
427
msgstr ""
428
429
+ #: ../classes/Admin/Page/Columns.php:170
430
msgid "Settings for %s restored successfully."
431
msgstr ""
432
433
+ #: ../classes/Admin/Page/Columns.php:244
434
msgid "Please visit the %s screen once to load all available columns"
435
msgstr ""
436
437
+ #: ../classes/Admin/Page/Columns.php:324
438
msgid "You need at least one column"
439
msgstr ""
440
441
+ #: ../classes/Admin/Page/Columns.php:336
442
msgid "You are trying to store the same settings for %s."
443
msgstr ""
444
445
+ #: ../classes/Admin/Page/Columns.php:349
446
msgid "Settings for %s updated successfully."
447
msgstr ""
448
449
+ #: ../classes/Admin/Page/Columns.php:350
450
msgid "View %s screen"
451
msgstr ""
452
453
+ #: ../classes/Admin/Page/Columns.php:443
454
msgid "The columns for %s are set up via PHP and can therefore not be edited."
455
msgstr ""
456
457
+ #: ../classes/Admin/Page/Columns.php:475
458
msgid "View"
459
msgstr ""
460
461
+ #: ../classes/Admin/Page/Columns.php:489
462
msgid "Store settings"
463
msgstr ""
464
465
+ #: ../classes/Admin/Page/Columns.php:511
466
msgid "Warning! The %s columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop"
467
msgstr ""
468
469
+ #: ../classes/Admin/Page/Columns.php:512
470
msgid "Restore columns"
471
msgstr ""
472
473
+ #: ../classes/Admin/Page/Columns.php:531
474
msgid "Upgrade to"
475
msgstr ""
476
477
+ #: ../classes/Admin/Page/Columns.php:531
478
msgid "Pro"
479
msgstr ""
480
481
+ #: ../classes/Admin/Page/Columns.php:536
482
msgid "Take Admin Columns to the next level:"
483
msgstr ""
484
485
+ #: ../classes/Admin/Page/Columns.php:541
486
msgid "Add sortable columns"
487
msgstr ""
488
489
+ #: ../classes/Admin/Page/Columns.php:542
490
msgid "Add filterable columns"
491
msgstr ""
492
493
+ #: ../classes/Admin/Page/Columns.php:543
494
msgid "Edit your column content directly"
495
msgstr ""
496
497
+ #: ../classes/Admin/Page/Columns.php:544
498
msgid "Create multiple columns sets"
499
msgstr ""
500
501
+ #: ../classes/Admin/Page/Columns.php:545
502
msgid "Import &amp; Export settings"
503
msgstr ""
504
505
+ #: ../classes/Admin/Page/Columns.php:557
506
msgid "Extra Columns for:"
507
msgstr ""
508
509
+ #: ../classes/Admin/Page/Columns.php:568
510
+ msgid "Prices starting from %s"
511
+ msgstr ""
512
+
513
+ #: ../classes/Admin/Page/Columns.php:573
514
msgid "Learn more about Pro"
515
msgstr ""
516
517
+ #: ../classes/Admin/Page/Columns.php:590
518
msgid "Get %s Off!"
519
msgstr ""
520
521
+ #: ../classes/Admin/Page/Columns.php:594
522
+ msgid "Submit your email and we'll send you a discount for %s off."
523
msgstr ""
524
525
+ #: ../classes/Admin/Page/Columns.php:601
526
msgid "Your Email"
527
msgstr ""
528
529
+ #: ../classes/Admin/Page/Columns.php:602
530
msgid "Your First Name"
531
msgstr ""
532
533
+ #: ../classes/Admin/Page/Columns.php:603
534
+ msgid "Send me the discount"
535
msgstr ""
536
537
+ #: ../classes/Admin/Page/Columns.php:614
538
msgid "Are you happy with Admin Columns?"
539
msgstr ""
540
541
+ #: ../classes/Admin/Page/Columns.php:624
542
msgid "What's wrong? Need help? Let us know!"
543
msgstr ""
544
545
+ #: ../classes/Admin/Page/Columns.php:627
546
msgid "Check out our extensive documentation, or you can open a support topic on WordPress.org!"
547
msgstr ""
548
549
+ #: ../classes/Admin/Page/Columns.php:632
550
msgid "Docs"
551
msgstr ""
552
553
+ #: ../classes/Admin/Page/Columns.php:637
554
msgid "Forums"
555
msgstr ""
556
557
+ #: ../classes/Admin/Page/Columns.php:647
558
msgid "Woohoo! We're glad to hear that!"
559
msgstr ""
560
561
+ #: ../classes/Admin/Page/Columns.php:650
562
msgid "We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!"
563
msgstr ""
564
565
+ #: ../classes/Admin/Page/Columns.php:655
566
msgid "Rate"
567
msgstr ""
568
569
+ #: ../classes/Admin/Page/Columns.php:660
570
msgid "I'm using Admin Columns for WordPress!"
571
msgstr ""
572
573
+ #: ../classes/Admin/Page/Columns.php:661
574
msgid "Tweet"
575
msgstr ""
576
577
+ #: ../classes/Admin/Page/Columns.php:667
578
msgid "Buy Pro"
579
msgstr ""
580
581
+ #: ../classes/Admin/Page/Columns.php:679
582
msgid "Support"
583
msgstr ""
584
585
+ #: ../classes/Admin/Page/Columns.php:684
586
msgid "Check the <strong>Help</strong> section in the top-right screen."
587
msgstr ""
588
589
+ #: ../classes/Admin/Page/Columns.php:688
590
msgid "For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>"
591
msgstr ""
592
593
+ #: ../classes/Admin/Page/Columns.php:739
594
msgid "Drag and drop to reorder"
595
msgstr ""
596
597
+ #: ../classes/Admin/Page/Columns.php:753
598
msgid "Clear all columns "
599
msgstr ""
600
601
+ #: ../classes/Admin/Page/Columns.php:759
602
msgid "Add Column"
603
msgstr ""
604
605
+ #: ../classes/Admin/Page/Columns.php:844
606
msgid "Edit"
607
msgstr ""
608
609
+ #: ../classes/Admin/Page/Columns.php:845, ../classes/Admin/Page/Columns.php:880
610
msgid "Close"
611
msgstr ""
612
613
+ #: ../classes/Admin/Page/Columns.php:847, ../classes/Admin/Page/Columns.php:882
614
msgid "Clone"
615
msgstr ""
616
617
+ #: ../classes/Admin/Page/Columns.php:849
618
msgid "Remove"
619
msgstr ""
620
621
+ #: ../classes/Admin/Page/Help.php:30, ../classes/Admin/Page/Help.php:307
622
msgid "Help"
623
msgstr ""
624
625
+ #: ../classes/Admin/Page/Help.php:167
626
msgid "Deprecated Filters"
627
msgstr ""
628
629
+ #: ../classes/Admin/Page/Help.php:168
630
msgid "Deprecated Actions"
631
msgstr ""
632
633
+ #: ../classes/Admin/Page/Help.php:181
634
msgid "The filter %s used on this website is deprecated since %s."
635
msgstr ""
636
637
+ #: ../classes/Admin/Page/Help.php:194
638
msgid "The action %s used on this website is deprecated since %s."
639
msgstr ""
640
641
+ #: ../classes/Admin/Page/Help.php:244
642
msgid "View documentation"
643
msgstr ""
644
645
+ #: ../classes/Admin/Page/Help.php:299
646
msgid "The callback used is %s."
647
msgid_plural "The callbacks used are %s"
648
msgstr[0] ""
649
msgstr[1] ""
650
651
+ #: ../classes/Admin/Page/Help.php:309
652
msgid "The Admin Columns plugin has undergone some major changes in version 4."
653
msgstr ""
654
655
+ #: ../classes/Admin/Page/Help.php:311
656
msgid "This site is using some actions or filters that have changed. Please read %s to resolve them."
657
msgstr ""
658
659
+ #: ../classes/Admin/Page/Help.php:311
660
msgid "our documentation"
661
msgstr ""
662
664
msgid "Settings"
665
msgstr ""
666
667
+ #: ../classes/Admin/Page/Settings.php:97
668
msgid "Default settings succesfully restored."
669
msgstr ""
670
671
+ #: ../classes/Admin/Page/Settings.php:123
672
msgid "Instructions"
673
msgstr ""
674
675
+ #: ../classes/Admin/Page/Settings.php:129
676
msgid "Notice"
677
msgstr ""
678
679
+ #: ../classes/Admin/Page/Settings.php:142
680
+ msgid "off"
681
+ msgstr ""
682
+
683
+ #: ../classes/Admin/Page/Settings.php:145
684
+ msgid "on"
685
+ msgstr ""
686
+
687
+ #: ../classes/Admin/Page/Settings.php:148
688
+ msgid "Default is %s."
689
+ msgstr ""
690
+
691
+ #: ../classes/Admin/Page/Settings.php:156
692
msgid "General Settings"
693
msgstr ""
694
695
+ #: ../classes/Admin/Page/Settings.php:157
696
msgid "Customize your Admin Columns settings."
697
msgstr ""
698
699
+ #: ../classes/Admin/Page/Settings.php:167
700
+ msgid "Show %s button on table screen."
701
msgstr ""
702
703
+ #: ../classes/Admin/Page/Settings.php:216
704
msgid "Restore Settings"
705
msgstr ""
706
707
+ #: ../classes/Admin/Page/Settings.php:217
708
msgid "This will delete all column settings and restore the default settings."
709
msgstr ""
710
711
+ #: ../classes/Admin/Page/Settings.php:225
712
msgid "Restore default settings"
713
msgstr ""
714
715
+ #: ../classes/Admin/Page/Settings.php:225
716
msgid "Warning! ALL saved admin columns data will be deleted. This cannot be undone. 'OK' to delete, 'Cancel' to stop"
717
msgstr ""
718
719
+ #: ../classes/Admin/Page/Upgrade.php:22, ../classes/Admin/Page/Upgrade.php:315
720
msgid "Upgrade"
721
msgstr ""
722
723
+ #: ../classes/Admin/Page/Upgrade.php:42
724
msgid "The pro add-on is no longer supported. Please login to your account and download Admin Columns Pro"
725
msgstr ""
726
727
+ #: ../classes/Admin/Page/Upgrade.php:43
728
msgid "Learn more"
729
msgstr ""
730
731
+ #: ../classes/Admin/Page/Upgrade.php:251
732
msgid "Migrating Column Settings"
733
msgstr ""
734
735
+ #: ../classes/Admin/Page/Upgrade.php:287
736
msgid "No Upgrade Required"
737
msgstr ""
738
739
+ #: ../classes/Admin/Page/Upgrade.php:288
740
msgid "Return to welcome screen."
741
msgstr ""
742
743
+ #: ../classes/Admin/Page/Upgrade.php:304
744
msgid "Upgrade Complete!"
745
msgstr ""
746
747
+ #: ../classes/Admin/Page/Upgrade.php:304
748
msgid "Return to settings."
749
msgstr ""
750
751
+ #: ../classes/Admin/Page/Upgrade.php:305
752
msgid "Error"
753
msgstr ""
754
755
+ #: ../classes/Admin/Page/Upgrade.php:306
756
msgid "Sorry. Something went wrong during the upgrade process. Please report this on the support forum."
757
msgstr ""
758
1060
msgid "Show Toolbar"
1061
msgstr ""
1062
1063
+ #: ../classes/Column/User/Url.php:10
1064
+ msgid "Website"
1065
msgstr ""
1066
1067
#: ../classes/Settings/Column/ActionIcons.php:22
1128
msgid "Total"
1129
msgstr ""
1130
1131
+ #: ../classes/Settings/Column/CustomField.php:28
1132
msgid "No custom fields available."
1133
msgstr ""
1134
1135
+ #: ../classes/Settings/Column/CustomField.php:28
1136
msgid "Please create a %s item first."
1137
msgstr ""
1138
1139
+ #: ../classes/Settings/Column/CustomField.php:32, ../classes/Settings/Column/Meta.php:59, ../classes/Settings/Column/Post.php:67
1140
msgid "Field"
1141
msgstr ""
1142
1156
msgid "Multiple ids should be separated by a comma."
1157
msgstr ""
1158
1159
+ #: ../classes/Settings/Column/CustomFieldType.php:100
1160
+ msgid "Url"
1161
+ msgstr ""
1162
+
1163
#: ../classes/Settings/Column/CustomFieldType.php:101
1164
msgid "Number"
1165
msgstr ""
1428
msgid "First and Last Name"
1429
msgstr ""
1430
1431
+ #: ../classes/Settings/Column/User.php:114
1432
+ msgid "User Nicename"
1433
+ msgstr ""
1434
+
1435
+ #: ../classes/Settings/Column/User.php:131
1436
msgid "View Public Author Page"
1437
msgstr ""
1438
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: codepress, tschutter, davidmosterd, engelen, dungengronovius
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
4
Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
Requires at least: 4.5
6
- Tested up to: 4.7.3
7
- Stable tag: 3.0
8
9
Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
@@ -218,6 +218,15 @@ You can find a list of the available actions and filters (and examples on how to
218
219
== Changelog ==
220
221
= 3.0 =
222
223
Release Date: May 3rd, 2017
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
4
Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
Requires at least: 4.5
6
+ Tested up to: 4.8
7
+ Stable tag: 3.0.1
8
9
Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
218
219
== Changelog ==
220
221
+ = 3.0.1 =
222
+
223
+ Release Date: June 12th, 2017
224
+
225
+ * [Improved] Clicking the toggle icons in the header of the column settings won't open the column settings anymore
226
+ * [Improved] Fallback for the autoloader to work with lowercase files
227
+ * [Improved] User Nicename available as an option for User display
228
+ * [Fixed] Media Path now shows correct http protocol
229
+
230
= 3.0 =
231
232
Release Date: May 3rd, 2017