Version Description
- [Added] Added new comment columns: type, author and user.
- [Added] Width indicator text is darker
- [Fixed] Remove ' symbol from column label, because it causing issues when sorting
- [Fixed] Review notice will only show on admin columns page and with an improved hide button
Download this release
Release Info
Developer | codepress |
Plugin | Admin Columns |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- assets/css/admin-column.css +27 -0
- assets/css/admin-column.min.css +1 -1
- assets/js/admin-columns.min.js +1 -1
- assets/js/admin-settings.min.js +1 -1
- classes/column.php +17 -2
- classes/column/comment/ID.php +1 -2
- classes/column/comment/agent.php +7 -2
- classes/column/comment/approved.php +9 -10
- classes/column/comment/author-avatar.php +1 -2
- classes/column/comment/author-email.php +8 -2
- classes/column/comment/author-ip.php +7 -2
- classes/column/comment/author-name.php +23 -0
- classes/column/comment/author-url.php +8 -3
- classes/column/comment/author.php +7 -2
- classes/column/comment/date-gmt.php +12 -4
- classes/column/comment/date.php +12 -4
- classes/column/comment/excerpt.php +10 -6
- classes/column/comment/reply-to.php +13 -8
- classes/column/comment/type.php +24 -0
- classes/column/comment/user.php +32 -0
- classes/column/comment/word-count.php +1 -1
- classes/column/user/post-count.php +1 -14
- classes/column/user/rich-editing.php +3 -3
- classes/review_notice.php +119 -10
- classes/storage_model.php +8 -1
- codepress-admin-columns.php +3 -3
- languages/cpac.mo +0 -0
- languages/cpac.po +118 -67
- readme.txt +8 -2
assets/css/admin-column.css
CHANGED
@@ -81,6 +81,32 @@ a.help {
|
|
81 |
position: relative;
|
82 |
top: 2px;
|
83 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
/**
|
85 |
* Header
|
86 |
* ----------------------------------------------------------------------------
|
@@ -251,6 +277,7 @@ h2.cpac-nav-tab-wrapper {
|
|
251 |
.cpac-column .column-meta table tr td.column_label .inner .meta span.width {
|
252 |
margin-right: 5px;
|
253 |
cursor: auto;
|
|
|
254 |
}
|
255 |
.cpac-column .column-meta table tr td.column_label span.vers {
|
256 |
float: left;
|
81 |
position: relative;
|
82 |
top: 2px;
|
83 |
}
|
84 |
+
/**
|
85 |
+
* Dashicons used on list screens
|
86 |
+
* ----------------------------------------------------------------------------
|
87 |
+
*/
|
88 |
+
.cpac-column .comment-grey-bubble {
|
89 |
+
height: 16px;
|
90 |
+
width: 16px;
|
91 |
+
}
|
92 |
+
.cpac-column .comment-grey-bubble:before {
|
93 |
+
content: '\f101';
|
94 |
+
font: normal 20px/0.5 'dashicons';
|
95 |
+
speak: none;
|
96 |
+
display: inline-block;
|
97 |
+
padding: 0;
|
98 |
+
top: 4px;
|
99 |
+
left: 0;
|
100 |
+
position: relative;
|
101 |
+
vertical-align: top;
|
102 |
+
-webkit-font-smoothing: antialiased;
|
103 |
+
-moz-osx-font-smoothing: grayscale;
|
104 |
+
text-decoration: none !important;
|
105 |
+
}
|
106 |
+
.rtl .cpac-column .comment-grey-bubble:before {
|
107 |
+
right: 0;
|
108 |
+
left: auto;
|
109 |
+
}
|
110 |
/**
|
111 |
* Header
|
112 |
* ----------------------------------------------------------------------------
|
277 |
.cpac-column .column-meta table tr td.column_label .inner .meta span.width {
|
278 |
margin-right: 5px;
|
279 |
cursor: auto;
|
280 |
+
color: #737373;
|
281 |
}
|
282 |
.cpac-column .column-meta table tr td.column_label span.vers {
|
283 |
float: left;
|
assets/css/admin-column.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.button.loading span,.cpac-settings-link,.icon-no,.icon-yes,a.help{display:inline-block}.button.loading span,.icon-no,.icon-yes{width:16px;height:16px}#cpac a:active,#cpac a:focus{outline:0}#icon-codepress-admin-columns{background:url(../images/icon.png)no-repeat}.cpac-settings-link{float:right;margin:12px 14px 5px 0;background:url(../images/settings.png)no-repeat;padding-left:20px;text-decoration:none;line-height:16px}.cpac-settings-link.current{font-weight:700}.rtl .cpac-settings-link{float:left;margin:12px 0 5px 14px;padding-right:20px;padding-left:0}.cpac-menu,h2.cpac-nav-tab-wrapper{margin-bottom:10px}a.help{background:url(../images/help.png)no-repeat;width:16px;height:16px}.button.loading{padding-right:25px;position:relative}.rtl .button.loading{padding-left:25px;padding-right:0}.button.loading span{position:absolute;top:2px;right:6px;background:url(../images/loading.gif)right 50% no-repeat}.rtl .button.loading span{left:6px;right:auto}.cpac_message.error.warning{border-left:4px solid #ffba00}.icon-yes{background:url(../images/yes.png)no-repeat;position:relative;top:2px}.icon-no{background:url(../images/no.png)no-repeat;position:relative;top:2px}.cpac-menu{clear:both;overflow:hidden}.cpac-menu .subsubsub{white-space:normal;width:100%;margin:0 14px 0 0}.cpac-menu .subsubsub li.first{font-weight:700;min-width:100px}.columns-container{margin-right:300px;max-width:700px}.columns-container .columns-left{float:left;width:100%}.columns-container .columns-right{float:right;margin-right:-300px;width:280px}.columns-container .columns-right .columns-right-inside.fixed{position:fixed;top:40px;width:280px}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,.4)}.columns-left .cpac-boxes .cpac-columns form,.columns-right .sidebox{box-shadow:0 1px 3px rgba(0,0,0,.1)}.ui-sortable-helper .column-meta{border-width:1px}.cpac-placeholder{visibility:visible!important;border-top:1px solid #dfdfdf;padding:5px 4px 7px 0}.cpac-placeholder .inner-placeholder{border:1px dashed grey;background:#eee;width:100%;height:100%}.cpac-placeholder :first-child{border:none}.cpac-column .column-meta{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.cpac-column .column-meta:nth-child(2n) .column-meta{background:#f9f9f9}.cpac-column .column-meta img{margin-right:3px}.cpac-column .column-meta table{border:none;background:0 0;border-radius:0}.cpac-column .column-meta table tr td{vertical-align:top;height:18px;border:none;padding:11px 8px;border-width:1px 0 0;border-style:solid;border-color:transparent}.cpac-column .column-meta table tr td.column_sort{width:10px;background:url(../images/drag.png)8px 8px no-repeat;cursor:move}.cpac-column .column-meta table tr td.column_label{width:70%;font-weight:700;vertical-align:middle;position:relative}.cpac-column .column-meta table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.cpac-column .column-meta table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.cpac-column .column-meta table tr td.column_label .inner>a:hover{color:#333}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button{display:none;color:#a00;text-decoration:none;text-shadow:none;font-weight:400;margin-left:5px;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button:hover{color:red}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button{color:#0074a2}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover{color:#2ea2cc}.cpac-column .column-meta table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:400;color:#b2b2b2;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner .meta span{cursor:pointer}.cpac-column .column-meta table tr td.column_label .inner .meta span.width{margin-right:5px;cursor:auto}.cpac-column .column-meta table tr td.column_label span.vers{float:left}.cpac-column .column-meta table tr td.column_type{width:auto;min-width:120px;text-align:right;vertical-align:middle;color:#999;padding-right:0}.cpac-column .column-meta table tr td.column_type .inner{height:18px;overflow:hidden}.cpac-column .column-meta table tr td.column_type .inner a{color:#999}.cpac-column .column-meta table tr td.column_edit{width:38px;min-width:38px;background:url(../images/arrow.png)23px 18px no-repeat;cursor:pointer}.cpac-column .column-meta:hover .column_label .inner>a.clone-button,.cpac-column .column-meta:hover .column_label .inner>a.edit-button,.cpac-column .column-meta:hover .column_label .inner>a.remove-button{display:inline-block}.cpac-column .column-meta span.vers{padding-top:2px}.cpac-column .column-meta span.vers .comment-grey-bubble{background:url(../images/comment-grey-bubble.png)no-repeat;height:12px;width:12px;float:right}.cpac-column .column-form{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.cpac-column .column-form table{border:none;background:#fcfcfc}.cpac-column .column-form table tr td{vertical-align:top;border:none;padding:8px;background:#fff;border-top:1px solid #F5F5F5}.cpac-column .column-form table tr td input[type=text],.cpac-column .column-form table tr td select{width:99.95%}.cpac-column .column-form table tr td input[type=text].small,.cpac-column .column-form table tr td select.small{width:100px}.cpac-column .column-form table tr td span.suffix{line-height:40px;color:grey}.cpac-column .column-form table tr td select optgroup:nth-child(2n){background:#F9F9F9}.cpac-column .column-form table tr td.label{position:relative;overflow:visible;background:#f5f5f5;border-right:1px solid #E1E1E1;vertical-align:top;width:34%;border-top:1px solid #F0F0F0}.column-footer,.wp-pointer-content{overflow:hidden}.cpac-column .column-form table tr td.label label{font-weight:700;color:#333;display:block;position:relative}.cpac-column .column-form table tr td.label p{color:#666;display:block;font-size:12px;font-style:normal;line-height:16px;margin:0!important}.cpac-column .column-form table tr td.label p.description{display:none;position:absolute;z-index:99;top:30px;left:0;background:#eaf2fa;border-radius:5px;border:1px solid #c7d7e2;padding:5px 8px!important;font-weight:400}.cpac-column .column-form table tr td.label p.description em{display:block;color:#999}.cpac-column .column-form table tr td.label .info{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cpac-column .column-form table tr td.label .info:before{position:absolute;z-index:1;right:10px;top:50%;margin-top:-7px;content:'';display:block;border-radius:32px;border:1px solid #E6E6E6;width:12px;height:12px}.cpac-column .column-form table tr td.label .info:after{position:absolute;z-index:1;right:10px;top:50%;margin-top:-6px;content:'?';display:block;width:14px;height:14px;color:#E6E6E6;font:700 10px Arial;text-align:center;vertical-align:middle;line-height:14px}.cpac-column .column-form table tr td.input label{padding-left:10px;padding-right:0}.cpac-column .column-form table tr td.input div.msg{margin-top:5px;display:none;color:#333;padding:6px 8px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.cpac-column .column-form table tr td.input .section{padding:12px}.cpac-column .column-form table tr.column_width .input{position:relative}.cpac-column .column-form table tr.column_width .input div.description{font-size:11px;width:54px;position:absolute;left:10px;text-align:middle}.cpac-column .column-form table tr.column_width .input div.description input{background:#efefef;border:none;height:20px;line-height:20px;text-align:right;width:36px;font-size:12px}.cpac-column .column-form table tr.column_width .input div.width-slider{margin-left:60px;margin-right:100px;position:relative;margin-top:4px}.cpac-column .column-form table tr.column_width .input div.width-slider .ui-slider-handle{cursor:ew-resize}.cpac-column .column-form table tr.column_width .input div.unit-select{position:absolute;top:8px;right:10px;width:90px;text-align:right}.cpac-column .column-form table tr.column_width .input div.unit-select label{padding-left:5px}.cpac-column .column-form table tr.column_image_size{border:10px solid red}.cpac-column .column-form table tr.column_image_size td.input label.custom-size{display:inline-block;margin-top:4px;margin-bottom:4px}.cpac-column .column-form table tr.column_image_size td.input label.custom-size input{margin-right:3px}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size{display:inline-block}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w{margin:0}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type=text],.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type=text]{margin-right:3px;width:40px!important}.cpac-column .column-form table tr.column_action td{background:#f9f9f9}.cpac-column .column-form table tr.column_action td p{margin:0}.cpac-column .column-form table tr.column_action td p a.remove-button{color:#a00;text-decoration:none;text-shadow:none;font-weight:400;margin-left:5px;font-size:12px;padding:0 5px}.cpac-column .column-form table tr.column_action td p a.remove-button:hover{color:#fff;background:red}.cpac-column .column-form table tr:first-child td{border-top:none}.cpac-column.loading .column-form>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.cpac-column.loading .column-form:before{content:'';position:absolute;width:100%;height:100%;background:#FFF;z-index:100;opacity:.5}.cpac-column.opened .column-meta{background-color:#c7c7c7;background-image:-ms-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:-moz-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:-o-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:-webkit-gradient(linear,left top,left bottom,from(#e9e9e9),to(#c7c7c7));background-image:-webkit-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:linear-gradient(top,#e9e9e9,#c7c7c7);border-color:#aeaeae}.cpac-column.opened .column-meta table{background:0 0}.cpac-column.opened .column-meta table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #FFF}.cpac-column.opened .column-meta table td a{color:#333;text-shadow:0 1px 0 #FFF}.cpac-column.opened .column-meta table td.column_sort{background-position:8px -39px}.cpac-column.opened .column-meta table td.column_label .inner .meta span{color:grey;text-shadow:none}.cpac-column.opened .column-meta table td.column_type{color:#5C5C5C}.column-footer{background:#EAF2FA;border:1px solid #c7d7e2;min-height:26px;padding:8px}.column-footer .order-message{background:url(../images/order_arrow.png)no-repeat;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;margin-top:-5px}.column-footer .button-container a{display:inline-block;margin-top:5px}.cpac-content-body hr{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:none;border-color:#dfdfdf -moz-use-text-color -moz-use-text-color;border-image:none;border-right:0 none;border-style:solid none none;border-width:1px 0 0;clear:both;margin:30px 0;opacity:.2}#cpac-welcome.about-wrap div.error{display:block!important}.cpac-alert{display:inline-block;background:#FCF8E3;border:1px solid #FBEED5;border-radius:4px;color:#C09853;margin:20px 0;padding:16px 14px;text-shadow:0 1px 0 rgba(255,255,255,.5)}.cpac-alert p{margin:0}.cpac-alert.cpac-alert-success{background-color:#DFF0D8;border-color:#D6E9C6;color:#468847}.cpac-alert.cpac-alert-error{background-color:#F2DEDE;border-color:#EED3D7;color:#B94A48}.cpac-alert a.button-primary{height:28px;line-height:28px;display:inline-block}#cpac-download-add-ons-table{max-width:600px}.wp-core-ui .button-large{height:40px;line-height:40px;font-size:16px;padding:0 15px;text-shadow:0 1px 0 rgba(0,0,0,.5)}.cac-notification.updated{border-left-color:#0071aa}.cac-notification.updated .learnmore{float:right}.cac-notification.updated .learnmore:after{content:"\f139";font:400 20px/1 dashicons;float:right}.columns-right{margin-top:54px}.columns-right .sidebox{background:#FFF;border:1px solid #E1E1E1;border-radius:0;position:relative;margin-bottom:14px}.columns-right .sidebox h3{padding:10px;margin:0}.columns-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:-moz-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-o-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(to top,#ececec,#f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;-webkit-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.columns-right .sidebox .inside{padding:10px}.columns-right .sidebox .inside p{margin-top:0}.columns-right .sidebox#form-actions .form-reset{border-bottom:1px solid #F5F5F5;padding:8px}.columns-right .sidebox#form-actions .reset-column-type{text-decoration:none;color:#BC0B0B;line-height:25px;display:inline-block}.columns-right .sidebox#form-actions .form-update{padding:8px;overflow:hidden}.columns-right .sidebox#form-actions .submit-update{display:block;width:100%;height:28px;line-height:28px;text-align:center}.columns-right .sidebox#pro-version .cta{background:url(../images/get_the_addon.png)no-repeat;background-size:cover}.columns-right .sidebox#pro-version .padding-box{padding:8px 15px 0}.columns-right .sidebox#pro-version h3 a{color:#fff;font-size:19px;text-decoration:none;font-weight:400;margin-top:6px}.columns-right .sidebox#pro-version .inside ul{margin:0 0 10px}.columns-right .sidebox#pro-version .inside ul li{margin:0;padding:0}.columns-right .sidebox#pro-version .inside ul li a{display:inline-block;min-height:24px;font-size:19px;line-height:24px;margin-bottom:1px;padding:0 5px;background:#000;color:#fff;text-decoration:none}.columns-right .sidebox#pro-version .inside p{color:#fff;font-size:12px}.columns-right .sidebox#pro-version .inside p a{color:#fff;display:inline-block;background:#a4c518;padding:0 2px;font-size:15px;text-decoration:none}.columns-right .sidebox#direct-feedback #feedback-rate,.columns-right .sidebox#direct-feedback #feedback-support{display:none}.columns-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}.columns-right .sidebox#direct-feedback .inside>a:hover{background:#FAFAFA}.columns-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.columns-right .sidebox#direct-feedback .inside form input[type=submit]{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;display:inline-block;background:0 0;text-decoration:none;cursor:pointer}.columns-right .sidebox#direct-feedback .inside form input[type=submit]:hover,.columns-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#FAFAFA}.columns-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.columns-right .sidebox#direct-feedback .inside ul{margin:0}.columns-right .sidebox#direct-feedback .inside ul.share li{margin:0 0 0 9px;display:block;float:left;width:30%}.columns-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}.columns-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.columns-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}table.cpac-form-table{max-width:1100px;margin-top:20px}table.cpac-form-table>tbody>tr>td,table.cpac-form-table>tbody>tr>th{vertical-align:top}table.cpac-form-table td.padding-22{padding-top:22px}table.cpac-form-table td .cpac_export .ms-container{background:url(../images/switch_bw.png)50% 50% no-repeat}table.cpac-form-table td .cpac_export .ms-container .ms-selectable{width:48%;margin-right:0}table.cpac-form-table td .cpac_export .ms-container .ms-selection{float:right;width:48%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list{width:100%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list li{margin:0;padding-top:5px;padding-bottom:5px}table.cpac-form-table.settings tr td{padding-top:74px}table.cpac-form-table.settings tr:first-child th{padding-top:0}table.cpac-form-table.settings tr:first-child td{padding-top:54px}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .cpac-menu .subsubsub{margin-left:14px;margin-right:0}body.rtl .columns-container{margin-left:300px;margin-right:0}body.rtl .columns-left{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info,body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description,body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label{padding-left:10px;padding-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help{float:left}body.rtl .columns-left .column-footer .order-message{float:right;padding-right:22px;padding-left:0;background:url(../images/order_arrow-rtl.png)right top no-repeat}body.rtl .columns-left .column-footer .button-container,body.rtl .cpac_export .ms-container .ms-selection{float:left}body.rtl .columns-right{float:left;margin-left:-300px;margin-right:0}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}@media only screen and (max-width:900px){.columns-container{margin-right:0}.columns-container .columns-left{float:none}.columns-container .columns-right{float:none;margin-top:0;margin-right:0;width:100%}.columns-container .columns-right .columns-right-inside.fixed{position:relative;top:0;width:100%}}.cpac-addons li{width:200px;background:#FFF;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #DDD;-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,.15);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,.15);box-shadow:0 3px 10px 0 rgba(0,0,0,.15)}.cpac-addons li:hover{-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,.25);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,.25);box-shadow:0 3px 10px 0 rgba(0,0,0,.25)}.cpac-addons li a{color:#444}.cpac-addons li .cpac-addon-content{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #DDD;background:#0069a4;background:-moz-radial-gradient(center,ellipse cover,#0069a4 0,#085079 100%);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:-o-radial-gradient(center,ellipse cover,#0069a4 0,#085079 100%);background:-ms-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='#0069a4', endColorstr='#085079', GradientType=1)}.cpac-addons li .cpac-addon-content>*{display:table-cell;vertical-align:middle}.cpac-addons li .cpac-addon-content h3{padding:0 16px;color:#FFF;line-height:150%}.cpac-addons li .cpac-addon-content img{width:100%}.cpac-addons li .cpac-addon-header{width:100%;padding:25px 15px;-moz-box-sizing:border-box;box-sizing:border-box}.cpac-addons li .cpac-addon-header>:first-child{margin-top:0}.cpac-addons li .cpac-addon-header>:last-child{margin-bottom:0}.cpac-addons li .cpac-addon-actions{background:#EEE;border-top:1px solid #DDD;padding:8px}.cpac-addons li .cpac-addon-actions .cpac-installed:before{content:"\f147";font-family:dashicons;vertical-align:middle;margin-left:-5px;margin-right:3px}
|
1 |
+
.button.loading span,.cpac-column .comment-grey-bubble,.icon-no,.icon-yes{height:16px;width:16px}.button.loading span,.cpac-settings-link,.icon-no,.icon-yes,a.help{display:inline-block}#cpac a:active,#cpac a:focus{outline:0}#icon-codepress-admin-columns{background:url(../images/icon.png)no-repeat}.cpac-settings-link{float:right;margin:12px 14px 5px 0;background:url(../images/settings.png)no-repeat;padding-left:20px;text-decoration:none;line-height:16px}.cpac-settings-link.current{font-weight:700}.rtl .cpac-settings-link{float:left;margin:12px 0 5px 14px;padding-right:20px;padding-left:0}.cpac-menu,h2.cpac-nav-tab-wrapper{margin-bottom:10px}a.help{background:url(../images/help.png)no-repeat;width:16px;height:16px}.button.loading{padding-right:25px;position:relative}.rtl .button.loading{padding-left:25px;padding-right:0}.button.loading span{position:absolute;top:2px;right:6px;background:url(../images/loading.gif)right 50% no-repeat}.rtl .button.loading span{left:6px;right:auto}.cpac_message.error.warning{border-left:4px solid #ffba00}.icon-yes{background:url(../images/yes.png)no-repeat;position:relative;top:2px}.icon-no{background:url(../images/no.png)no-repeat;position:relative;top:2px}.cpac-column .comment-grey-bubble:before{content:'\f101';font:400 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 .cpac-column .comment-grey-bubble:before{right:0;left:auto}.cpac-menu{clear:both;overflow:hidden}.cpac-menu .subsubsub{white-space:normal;width:100%;margin:0 14px 0 0}.cpac-menu .subsubsub li.first{font-weight:700;min-width:100px}.columns-container{margin-right:300px;max-width:700px}.columns-container .columns-left{float:left;width:100%}.columns-container .columns-right{float:right;margin-right:-300px;width:280px}.columns-container .columns-right .columns-right-inside.fixed{position:fixed;top:40px;width:280px}.ui-sortable-helper{-webkit-box-shadow:1px 3px 6px 0 rgba(1,1,1,.4);box-shadow:1px 3px 6px 0 rgba(1,1,1,.4)}.columns-left .cpac-boxes .cpac-columns form,.columns-right .sidebox{box-shadow:0 1px 3px rgba(0,0,0,.1)}.ui-sortable-helper .column-meta{border-width:1px}.cpac-placeholder{visibility:visible!important;border-top:1px solid #dfdfdf;padding:5px 4px 7px 0}.cpac-placeholder .inner-placeholder{border:1px dashed grey;background:#eee;width:100%;height:100%}.cpac-placeholder :first-child{border:none}.cpac-column .column-meta{border-style:solid;border-color:#dfdfdf;border-width:1px 1px 0;background:#fcfcfc}.cpac-column .column-meta:nth-child(2n) .column-meta{background:#f9f9f9}.cpac-column .column-meta img{margin-right:3px}.cpac-column .column-meta table{border:none;background:0 0;border-radius:0}.cpac-column .column-meta table tr td{vertical-align:top;height:18px;border:none solid transparent;padding:11px 8px;border-width:1px 0 0}.cpac-column .column-meta table tr td.column_sort{width:10px;background:url(../images/drag.png)8px 8px no-repeat;cursor:move}.cpac-column .column-meta table tr td.column_label{width:70%;font-weight:700;vertical-align:middle;position:relative}.cpac-column .column-meta table tr td.column_label .inner{position:relative;overflow:hidden;height:18px}.cpac-column .column-meta table tr td.column_label .inner>a{color:#5a5a5a;padding:0 4px}.cpac-column .column-meta table tr td.column_label .inner>a:hover{color:#333}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button{display:none;color:#a00;text-decoration:none;text-shadow:none;font-weight:400;margin-left:5px;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.remove-button:hover{color:red}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button{color:#0074a2}.cpac-column .column-meta table tr td.column_label .inner>a.clone-button:hover,.cpac-column .column-meta table tr td.column_label .inner>a.edit-button:hover{color:#2ea2cc}.cpac-column .column-meta table tr td.column_label .inner .meta{display:inline-block;float:right;font-weight:400;color:#b2b2b2;font-size:12px}.cpac-column .column-meta table tr td.column_label .inner .meta span{cursor:pointer}.cpac-column .column-meta table tr td.column_label .inner .meta span.width{margin-right:5px;cursor:auto;color:#737373}.cpac-column .column-meta table tr td.column_label span.vers{float:left}.cpac-column .column-meta table tr td.column_type{width:auto;min-width:120px;text-align:right;vertical-align:middle;color:#999;padding-right:0}.cpac-column .column-meta table tr td.column_type .inner{height:18px;overflow:hidden}.cpac-column .column-meta table tr td.column_type .inner a{color:#999}.cpac-column .column-meta table tr td.column_edit{width:38px;min-width:38px;background:url(../images/arrow.png)23px 18px no-repeat;cursor:pointer}.cpac-column .column-meta:hover .column_label .inner>a.clone-button,.cpac-column .column-meta:hover .column_label .inner>a.edit-button,.cpac-column .column-meta:hover .column_label .inner>a.remove-button{display:inline-block}.cpac-column .column-meta span.vers{padding-top:2px}.cpac-column .column-meta span.vers .comment-grey-bubble{background:url(../images/comment-grey-bubble.png)no-repeat;height:12px;width:12px;float:right}.cpac-column .column-form{display:none;border-width:1px 1px 0;border-style:solid;border-color:#dfdfdf;position:relative}.cpac-column .column-form table{border:none;background:#fcfcfc}.cpac-column .column-form table tr td{vertical-align:top;border:none;padding:8px;background:#fff;border-top:1px solid #F5F5F5}.cpac-column .column-form table tr td input[type=text],.cpac-column .column-form table tr td select{width:99.95%}.cpac-column .column-form table tr td input[type=text].small,.cpac-column .column-form table tr td select.small{width:100px}.cpac-column .column-form table tr td span.suffix{line-height:40px;color:grey}.cpac-column .column-form table tr td select optgroup:nth-child(2n){background:#F9F9F9}.cpac-column .column-form table tr td.label{position:relative;overflow:visible;background:#f5f5f5;border-right:1px solid #E1E1E1;vertical-align:top;width:34%;border-top:1px solid #F0F0F0}.column-footer,.wp-pointer-content{overflow:hidden}.cpac-column .column-form table tr td.label label{font-weight:700;color:#333;display:block;position:relative}.cpac-column .column-form table tr td.label p{color:#666;display:block;font-size:12px;font-style:normal;line-height:16px;margin:0!important}.cpac-column .column-form table tr td.label p.description{display:none;position:absolute;z-index:99;top:30px;left:0;background:#eaf2fa;border-radius:5px;border:1px solid #c7d7e2;padding:5px 8px!important;font-weight:400}.cpac-column .column-form table tr td.label p.description em{display:block;color:#999}.cpac-column .column-form table tr td.label .info{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.cpac-column .column-form table tr td.label .info:before{position:absolute;z-index:1;right:10px;top:50%;margin-top:-7px;content:'';display:block;border-radius:32px;border:1px solid #E6E6E6;width:12px;height:12px}.cpac-column .column-form table tr td.label .info:after{position:absolute;z-index:1;right:10px;top:50%;margin-top:-6px;content:'?';display:block;width:14px;height:14px;color:#E6E6E6;font:700 10px Arial;text-align:center;vertical-align:middle;line-height:14px}.cpac-column .column-form table tr td.input label{padding-left:10px;padding-right:0}.cpac-column .column-form table tr td.input div.msg{margin-top:5px;display:none;color:#333;padding:6px 8px;background-color:#ffebe8;border:1px solid #fff;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.cpac-column .column-form table tr td.input .section{padding:12px}.cpac-column .column-form table tr.column_width .input{position:relative}.cpac-column .column-form table tr.column_width .input div.description{font-size:11px;width:54px;position:absolute;left:10px;text-align:middle}.cpac-column .column-form table tr.column_width .input div.description input{background:#efefef;border:none;height:20px;line-height:20px;text-align:right;width:36px;font-size:12px}.cpac-column .column-form table tr.column_width .input div.width-slider{margin-left:60px;margin-right:100px;position:relative;margin-top:4px}.cpac-column .column-form table tr.column_width .input div.width-slider .ui-slider-handle{cursor:ew-resize}.cpac-column .column-form table tr.column_width .input div.unit-select{position:absolute;top:8px;right:10px;width:90px;text-align:right}.cpac-column .column-form table tr.column_width .input div.unit-select label{padding-left:5px}.cpac-column .column-form table tr.column_image_size{border:10px solid red}.cpac-column .column-form table tr.column_image_size td.input label.custom-size{display:inline-block;margin-top:4px;margin-bottom:4px}.cpac-column .column-form table tr.column_image_size td.input label.custom-size input{margin-right:3px}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size{display:inline-block}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w.hidden,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .hidden{display:none}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h,.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w{margin:0}.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-h input[type=text],.cpac-column .column-form table tr.column_image_size td.input .custom_image_size .custom-size-w input[type=text]{margin-right:3px;width:40px!important}.cpac-column .column-form table tr.column_action td{background:#f9f9f9}.cpac-column .column-form table tr.column_action td p{margin:0}.cpac-column .column-form table tr.column_action td p a.remove-button{color:#a00;text-decoration:none;text-shadow:none;font-weight:400;margin-left:5px;font-size:12px;padding:0 5px}.cpac-column .column-form table tr.column_action td p a.remove-button:hover{color:#fff;background:red}.cpac-column .column-form table tr:first-child td{border-top:none}.cpac-column.loading .column-form>.spinner{position:absolute;left:50%;top:50%;z-index:200;margin-left:-10px;margin-top:-10px;display:block}.cpac-column.loading .column-form:before{content:'';position:absolute;width:100%;height:100%;background:#FFF;z-index:100;opacity:.5}.cpac-column.opened .column-meta{background-color:#c7c7c7;background-image:-ms-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:-moz-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:-o-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:-webkit-gradient(linear,left top,left bottom,from(#e9e9e9),to(#c7c7c7));background-image:-webkit-linear-gradient(top,#e9e9e9,#c7c7c7);background-image:linear-gradient(top,#e9e9e9,#c7c7c7);border-color:#aeaeae}.cpac-column.opened .column-meta table{background:0 0}.cpac-column.opened .column-meta table td{border-color:#f8f8f8;color:#333;text-shadow:0 1px 0 #FFF}.cpac-column.opened .column-meta table td a{color:#333;text-shadow:0 1px 0 #FFF}.cpac-column.opened .column-meta table td.column_sort{background-position:8px -39px}.cpac-column.opened .column-meta table td.column_label .inner .meta span{color:grey;text-shadow:none}.cpac-column.opened .column-meta table td.column_type{color:#5C5C5C}.column-footer{background:#EAF2FA;border:1px solid #c7d7e2;min-height:26px;padding:8px}.column-footer .order-message{background:url(../images/order_arrow.png)no-repeat;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;margin-top:-5px}.column-footer .button-container a{display:inline-block;margin-top:5px}.cpac-content-body hr{-moz-border-bottom-colors:none;-moz-border-left-colors:none;-moz-border-right-colors:none;-moz-border-top-colors:none;background:none;border-color:#dfdfdf -moz-use-text-color -moz-use-text-color;border-image:none;border-right:0 none;border-style:solid none none;border-width:1px 0 0;clear:both;margin:30px 0;opacity:.2}#cpac-welcome.about-wrap div.error{display:block!important}.cpac-alert{display:inline-block;background:#FCF8E3;border:1px solid #FBEED5;border-radius:4px;color:#C09853;margin:20px 0;padding:16px 14px;text-shadow:0 1px 0 rgba(255,255,255,.5)}.cpac-alert p{margin:0}.cpac-alert.cpac-alert-success{background-color:#DFF0D8;border-color:#D6E9C6;color:#468847}.cpac-alert.cpac-alert-error{background-color:#F2DEDE;border-color:#EED3D7;color:#B94A48}.cpac-alert a.button-primary{height:28px;line-height:28px;display:inline-block}#cpac-download-add-ons-table{max-width:600px}.wp-core-ui .button-large{height:40px;line-height:40px;font-size:16px;padding:0 15px;text-shadow:0 1px 0 rgba(0,0,0,.5)}.cac-notification.updated{border-left-color:#0071aa}.cac-notification.updated .learnmore{float:right}.cac-notification.updated .learnmore:after{content:"\f139";font:400 20px/1 dashicons;float:right}.columns-right{margin-top:54px}.columns-right .sidebox{background:#FFF;border:1px solid #E1E1E1;border-radius:0;position:relative;margin-bottom:14px}.columns-right .sidebox h3{padding:10px;margin:0}.columns-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:-moz-linear-gradient(bottom,#ececec,#f9f9f9);background-image:-o-linear-gradient(bottom,#ececec,#f9f9f9);background-image:linear-gradient(to top,#ececec,#f9f9f9);border-bottom-color:#dfdfdf;text-shadow:#fff 0 1px 0;-webkit-box-shadow:0 1px 0 #fff;box-shadow:0 1px 0 #fff;border-bottom-style:solid;border-bottom-width:1px}.columns-right .sidebox .inside{padding:10px}.columns-right .sidebox .inside p{margin-top:0}.columns-right .sidebox#form-actions .form-reset{border-bottom:1px solid #F5F5F5;padding:8px}.columns-right .sidebox#form-actions .reset-column-type{text-decoration:none;color:#BC0B0B;line-height:25px;display:inline-block}.columns-right .sidebox#form-actions .form-update{padding:8px;overflow:hidden}.columns-right .sidebox#form-actions .submit-update{display:block;width:100%;height:28px;line-height:28px;text-align:center}.columns-right .sidebox#pro-version .cta{background:url(../images/get_the_addon.png)no-repeat;background-size:cover}.columns-right .sidebox#pro-version .padding-box{padding:8px 15px 0}.columns-right .sidebox#pro-version h3 a{color:#fff;font-size:19px;text-decoration:none;font-weight:400;margin-top:6px}.columns-right .sidebox#pro-version .inside ul{margin:0 0 10px}.columns-right .sidebox#pro-version .inside ul li{margin:0;padding:0}.columns-right .sidebox#pro-version .inside ul li a{display:inline-block;min-height:24px;font-size:19px;line-height:24px;margin-bottom:1px;padding:0 5px;background:#000;color:#fff;text-decoration:none}.columns-right .sidebox#pro-version .inside p{color:#fff;font-size:12px}.columns-right .sidebox#pro-version .inside p a{color:#fff;display:inline-block;background:#a4c518;padding:0 2px;font-size:15px;text-decoration:none}.columns-right .sidebox#direct-feedback #feedback-rate,.columns-right .sidebox#direct-feedback #feedback-support{display:none}.columns-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}.columns-right .sidebox#direct-feedback .inside>a:hover{background:#FAFAFA}.columns-right .sidebox#direct-feedback .inside form textarea{width:100%;height:120px}.columns-right .sidebox#direct-feedback .inside form input[type=submit]{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;display:inline-block;background:0 0;text-decoration:none;cursor:pointer}.columns-right .sidebox#direct-feedback .inside form input[type=submit]:hover,.columns-right .sidebox#direct-feedback .inside ul.share li a:hover{background:#FAFAFA}.columns-right .sidebox#direct-feedback .inside form p.description{float:left;font-size:10px}.columns-right .sidebox#direct-feedback .inside ul{margin:0}.columns-right .sidebox#direct-feedback .inside ul.share li{margin:0 0 0 9px;display:block;float:left;width:30%}.columns-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}.columns-right .sidebox#direct-feedback .inside ul.share li:first-child{margin-left:0}.columns-right .sidebox#direct-feedback #feedback-support .inside ul.share li{width:48%}table.cpac-form-table{max-width:1100px;margin-top:20px}table.cpac-form-table>tbody>tr>td,table.cpac-form-table>tbody>tr>th{vertical-align:top}table.cpac-form-table td.padding-22{padding-top:22px}table.cpac-form-table td .cpac_export .ms-container{background:url(../images/switch_bw.png)50% 50% no-repeat}table.cpac-form-table td .cpac_export .ms-container .ms-selectable{width:48%;margin-right:0}table.cpac-form-table td .cpac_export .ms-container .ms-selection{float:right;width:48%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list{width:100%}table.cpac-form-table td .cpac_export .ms-container ul.ms-list li{margin:0;padding-top:5px;padding-bottom:5px}table.cpac-form-table.settings tr td{padding-top:74px}table.cpac-form-table.settings tr:first-child th{padding-top:0}table.cpac-form-table.settings tr:first-child td{padding-top:54px}.wp-pointer-content ol{margin-left:1.5em;padding:0 15px}.wp-pointer-right{margin-right:15px}body.rtl .wp-pointer-right{margin-left:15px;margin-right:0}body.rtl .wp-pointer-right ol{margin-right:1.5em;margin-left:0}body.rtl .cpac-menu .subsubsub{margin-left:14px;margin-right:0}body.rtl .columns-container{margin-left:300px;margin-right:0}body.rtl .columns-left{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-meta img{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner>a.remove-button{margin-right:12px;margin-left:0}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label .inner .meta{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_label span.vers{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label a.more-info,body.rtl .columns-left .cpac-columns .cpac-column .column-meta span.vers .comment-grey-bubble{float:left}body.rtl .columns-left .cpac-columns .cpac-column .column-meta .column_type{text-align:left;padding-left:0;padding-right:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr.column_image_size td.input label input{margin-left:3px;margin-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form table tr td.label p.description{right:0;left:auto}body.rtl .columns-left .cpac-columns .cpac-column .column-form div.description,body.rtl .columns-left .cpac-columns .cpac-column .column-form div.input-width-range{float:right}body.rtl .columns-left .cpac-columns .cpac-column .column-form tr td.input label{padding-left:10px;padding-right:0}body.rtl .columns-left .cpac-columns .cpac-column .column-form a.help{float:left}body.rtl .columns-left .column-footer .order-message{float:right;padding-right:22px;padding-left:0;background:url(../images/order_arrow-rtl.png)right top no-repeat}body.rtl .columns-left .column-footer .button-container,body.rtl .cpac_export .ms-container .ms-selection{float:left}body.rtl .columns-right{float:left;margin-left:-300px;margin-right:0}body.rtl .cpac-placeholder{padding:5px 0 7px 4px}@media only screen and (max-width:900px){.columns-container{margin-right:0}.columns-container .columns-left{float:none}.columns-container .columns-right{float:none;margin-top:0;margin-right:0;width:100%}.columns-container .columns-right .columns-right-inside.fixed{position:relative;top:0;width:100%}}.cpac-addons li{width:200px;background:#FFF;float:left;margin-right:16px;margin-bottom:16px;border:1px solid #DDD;-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,.15);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,.15);box-shadow:0 3px 10px 0 rgba(0,0,0,.15)}.cpac-addons li:hover{-webkit-box-shadow:0 3px 10px 0 rgba(0,0,0,.25);-moz-box-shadow:0 3px 10px 0 rgba(0,0,0,.25);box-shadow:0 3px 10px 0 rgba(0,0,0,.25)}.cpac-addons li a{color:#444}.cpac-addons li .cpac-addon-content{display:table;width:100%;height:125px;text-align:center;vertical-align:middle;border-top:1px solid #DDD;background:#0069a4;background:-moz-radial-gradient(center,ellipse cover,#0069a4 0,#085079 100%);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:-o-radial-gradient(center,ellipse cover,#0069a4 0,#085079 100%);background:-ms-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='#0069a4', endColorstr='#085079', GradientType=1)}.cpac-addons li .cpac-addon-content>*{display:table-cell;vertical-align:middle}.cpac-addons li .cpac-addon-content h3{padding:0 16px;color:#FFF;line-height:150%}.cpac-addons li .cpac-addon-content img{width:100%}.cpac-addons li .cpac-addon-header{width:100%;padding:25px 15px;-moz-box-sizing:border-box;box-sizing:border-box}.cpac-addons li .cpac-addon-header>:first-child{margin-top:0}.cpac-addons li .cpac-addon-header>:last-child{margin-bottom:0}.cpac-addons li .cpac-addon-actions{background:#EEE;border-top:1px solid #DDD;padding:8px}.cpac-addons li .cpac-addon-actions .cpac-installed:before{content:"\f147";font-family:dashicons;vertical-align:middle;margin-left:-5px;margin-right:3px}
|
assets/js/admin-columns.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function cpac_tooltips(){"undefined"!=typeof jQuery.fn.qtip&&jQuery(".cpac-tip").qtip({content:{attr:"data-tip"},position:{my:"top center",at:"bottom center"},style:{tip:!0,classes:"qtip-tipsy"}})}jQuery(document).ready(function(){cpac_tooltips()});
|
1 |
+
function cpac_tooltips(){"undefined"!=typeof jQuery.fn.qtip&&jQuery(".cpac-tip").qtip({content:{attr:"data-tip"},position:{my:"top center",at:"bottom center"},style:{tip:!0,classes:"qtip-tipsy"}})}jQuery(document).ready(function(t){cpac_tooltips()});
|
assets/js/admin-settings.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_submit_form(){jQuery(".form-update a.submit-update").click(function(e){e.preventDefault(),jQuery(this).closest(".columns-container").find(".cpac-columns form").submit()})}function cpac_create_column(e){var n=jQuery(".for-cloning-only .cpac-column",e).first().clone(),t=e.attr("data-type");return n.length>0&&(n.cpac_update_clone_id(t),jQuery(".cpac-columns form",e).append(n),n.column_bind_toggle(),n.column_bind_remove(),n.column_bind_clone(),n.column_bind_events(),cpac_sortable(),jQuery(document).trigger("column_add",n)),n}function cpac_add_column(){jQuery("#cpac .add_column").click(function(e){var n=jQuery(this).closest(".columns-container"),t=cpac_create_column(n);t.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:t.offset().top-58},300)}),e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var n=e(".sidebox#direct-feedback");n.find("#feedback-choice a.no").click(function(e){e.preventDefault(),n.find("#feedback-choice").slideUp(),n.find("#feedback-support").slideDown()}),n.find("#feedback-choice a.yes").click(function(e){e.preventDefault(),n.find("#feedback-choice").slideUp(),n.find("#feedback-rate").slideDown()})})}function cpac_clear_input_defaults(){jQuery.fn.cleardefault=function(){return this.focus(function(){this.value==this.defaultValue&&(this.value="")}).blur(function(){this.value.length||(this.value=this.defaultValue)})},jQuery("#cpac-box-plugin_settings .addons input").cleardefault()}function cpac_help(){jQuery("#cpac a.help").click(function(e){e.preventDefault();var n=jQuery("#contextual-help-wrap");n.parent().show(),jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',n).trigger("click"),n.slideDown("fast",function(){n.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),n=e.attr("rel"),t=e.attr("data-pos"),c={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==t&&(c={at:"right middle",my:"left middle",edge:"left"}),e.pointer({content:jQuery("#"+n).html(),position:c,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+c.edge}),e.click(function(){e.hasClass("open")?e.removeClass("open"):e.addClass("open")}),e.hover(function(){jQuery(this).pointer("open")},function(){e.hasClass("open")||jQuery(this).pointer("close")})})}function cpac_sortable(){jQuery("div.cpac-columns").each(function(){jQuery(this).sortable(jQuery(this).hasClass("ui-sortable")?"refresh":{items:".cpac-column"})})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e){var n=jQuery(this).attr("href");if(n){var t=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current"),jQuery(".columns-container").hide(),jQuery(this).addClass("current");var c=jQuery('.columns-container[data-type="'+t+'"]').show(),i=c.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",i)}e.preventDefault()}),e.find("a.current").trigger("click")}jQuery(document).ready(function(){return 0===jQuery("#cpac").length?!1:(cpac_pointer(),cpac_submit_form(),cpac_clear_input_defaults(),cpac_sortable(),cpac_menu(),cpac_help(),cpac_add_column(),cpac_importexport(),cpac_sidebar_feedback(),void jQuery(".cpac-column").each(function(e,n){jQuery(n).column_bind_toggle(),jQuery(n).column_bind_remove(),jQuery(n).column_bind_clone(),jQuery(n).cpac_bind_container_addon_events()}))}),jQuery.fn.column_bind_toggle=function(){var e=jQuery(this);e.find("td.column_type a, td.column_edit, td.column_label a.toggle, td.column_label .edit-button").click(function(n){n.preventDefault(),e.toggleClass("opened").find(".column-form").slideToggle(150),e.hasClass("events-binded")||e.column_bind_events(),e.addClass("events-binded"),jQuery(document).trigger("column_init",e)})},jQuery.fn.column_bind_remove=function(){jQuery(this).find(".remove-button").click(function(e){jQuery(this).closest(".cpac-column").column_remove(),e.preventDefault()})},jQuery.fn.column_bind_clone=function(){jQuery(this).find(".clone-button").click(function(e){var n,t;e.preventDefault(),n=jQuery(this).closest(".cpac-column"),t=n.column_clone(),"undefined"!=typeof t&&t.removeClass("loading").hide().slideDown()})},jQuery.fn.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading"),e.find(".column-form").prepend('<span class="spinner" />'),jQuery.post(ajaxurl,{plugin_id:"cpac",action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(n){var t=jQuery("<div>"+n+"</div>").children();e.replaceWith(t),e=t,e.column_bind_toggle(),e.column_bind_remove(),e.column_bind_clone(),e.column_bind_events(),e.removeClass("loading").addClass("opened").find(".column-form").show(),jQuery(document).trigger("column_change",e)})},jQuery.fn.column_bind_events=function(){var e=jQuery(this),n=e.closest(".columns-container "),t=n.attr("data-type"),c=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),a=i.val(),o=i.text(),r=jQuery(this).next(".msg").hide(),u=n.find('.for-cloning-only .cpac-column[data-type="'+a+'"]');if(u.length)if(u.find(".is-disabled").length)r.html(u.find(".is-disabled").html()).show(),jQuery(this).find("option").removeAttr("selected"),jQuery(this).find('option[value="'+c+'"]').attr("selected","selected");else{if("undefined"==typeof u.attr("data-clone")&&jQuery(".cpac-columns",n).find('[data-type="'+a+'"]').length)return r.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show(),jQuery(this).find("option").removeAttr("selected"),void jQuery(this).find('option[value="'+c+'"]').attr("selected","selected");var l=u.clone();l.addClass("opened").find(".column-form").show(),l.find(".column-meta").replaceWith(e.find(".column-meta")),l.find(".column-form").replaceWith(e.find(".column-form")),l.cpac_update_clone_id(t),e.replaceWith(l),l.cpac_column_refresh()}}),e.find(".column_label .input input").bind("keyup change",function(){var e=jQuery(this).val();jQuery(this).closest(".cpac-column").find("td.column_label .inner > a.toggle").text(e)}),e.column_width_slider();var i=e.find(".column-meta span.width");i.on("update",function(){var n=e.find("input.width").val(),t=e.find("input.unit").filter(":checked").val();jQuery(this).text(n>0?n+t:"")});var a=e.find(".column_width .unit-select label");a.on("click",function(){e.find("span.unit").text(jQuery(this).find("input").val()),e.column_width_slider(),i.trigger("update")});var o=e.find("input.width").on("keyup",function(){e.column_width_slider(),jQuery(this).trigger("validate"),i.trigger("update")}).on("validate",function(){var e=o.val(),n=jQuery.trim(e);jQuery.isNumeric(n)||(n=n.replace(/\D/g,"")),n.length>3&&(n=n.substring(0,3)),0>=n&&(n=""),n!==e&&o.val(n)});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");jQuery(this).hasClass("image-size-custom")?(jQuery(".custom-size-w",e).removeClass("hidden"),jQuery(".custom-size-h",e).removeClass("hidden")):(jQuery(".custom-size-w",e).addClass("hidden"),jQuery(".custom-size-h",e).addClass("hidden"))}),e.find(".column-form .label label, .column-form .label .info").hover(function(){jQuery(this).parents(".label").find("p.description").show()},function(){jQuery(this).parents(".label").find("p.description").hide()}),"column-meta"==e.find(".column_type select").val()&&e.find(".column_field_type select").change(function(){e.cpac_column_refresh()})},jQuery.fn.column_remove=function(){jQuery(this).addClass("deleting").animate({opacity:0,height:0},350,function(){jQuery(this).remove()})},jQuery.fn.column_width_slider=function(){var e=jQuery(this).find(".column_width"),n=e.find("input.width"),t=e.find("input.unit"),c=t.filter(":checked").val(),i=n.val(),a=e.find(".width-slider"),o=jQuery(this).find(".column-meta span.width");"%"==c&&i>100&&(i=100),n.val(i),a.slider({range:"min",min:0,max:"%"==c?100:500,value:i,slide:function(e,t){n.val(t.value),o.trigger("update"),n.trigger("validate")}})},jQuery.fn.column_clone=function(){var e=jQuery(this).closest(".columns-container"),n=jQuery(this);if("undefined"==typeof n.attr("data-clone")){var t=cpac_i18n.clone.replace("%s","<strong>"+n.find(".column_label .toggle").text()+"</strong>");return n.addClass("opened").find(".column-form").slideDown(150),void n.find(".msg").html(t).show()}var c=jQuery(this).clone();return c.cpac_update_clone_id(e.attr("data-type")),jQuery(this).after(c),c.column_bind_toggle(),c.column_bind_remove(),c.column_bind_clone(),c.column_bind_events(),cpac_sortable(),jQuery(document).trigger("column_add",c),c},jQuery.fn.cpac_update_clone_id=function(e){var n=jQuery(this),t=n.attr("data-type"),c=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(c).find('*[data-type="'+t+'"]').not(n),a=jQuery.map(i,function(e){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});a.sort();for(var o=Math.max.apply(null,a)+1,r=0;o>=r&&-1!==jQuery.inArray(r,a);r++);if(0!==r){var u=n.attr("data-clone"),l="";u&&(l="-"+u),n.attr("data-clone",r),n.find("input.clone").val(r),n.find("input.column-name").val(t+"-"+r);var d=n.find("input, select, label");jQuery(d).each(function(e,n){var c=t+"-"+r;jQuery(n).attr("name")&&jQuery(n).attr("name",jQuery(n).attr("name").replace(t+l,c)),jQuery(n).attr("for")&&jQuery(n).attr("for",jQuery(n).attr("for").replace(t+l,c)),jQuery(n).attr("id")&&jQuery(n).attr("id",jQuery(n).attr("id").replace(t+l,c))})}},jQuery(document).bind("column_init column_change column_add",function(e,n){jQuery(n).cpac_bind_column_addon_events(),jQuery(n).cpac_bind_container_addon_events()}),jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),n=e.find("[data-toggle-id] label");n.click(function(){var n=jQuery(this).closest("td.input").data("toggle-id"),t=e.find('[data-indicator-id="'+n+'"]').removeClass("on"),c=jQuery("input",this).val();"on"==c&&t.addClass("on")})},jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),n=e.find("[data-indicator-id]");n.unbind("click").click(function(){var n=jQuery(this).data("indicator-id"),t=e.find('[data-toggle-id="'+n+'"] input');jQuery(this).hasClass("on")?(jQuery(this).removeClass("on").addClass("off"),t.filter("[value=off]").prop("checked",!0)):(jQuery(this).removeClass("off").addClass("on"),t.filter("[value=on]").prop("checked",!0))})};
|
1 |
+
function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_submit_form(){jQuery(".form-update a.submit-update").click(function(e){e.preventDefault(),jQuery(this).closest(".columns-container").find(".cpac-columns form").submit()})}function cpac_create_column(e){var n=jQuery(".for-cloning-only .cpac-column",e).first().clone(),t=e.attr("data-type");return n.length>0&&(n.cpac_update_clone_id(t),jQuery(".cpac-columns form",e).append(n),n.column_bind_toggle(),n.column_bind_remove(),n.column_bind_clone(),n.column_bind_events(),cpac_sortable(),jQuery(document).trigger("column_add",n)),n}function cpac_add_column(){jQuery("#cpac .add_column").click(function(e){var n=jQuery(this).closest(".columns-container"),t=cpac_create_column(n);t.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:t.offset().top-58},300)}),e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var n=e(".sidebox#direct-feedback");n.find("#feedback-choice a.no").click(function(e){e.preventDefault(),n.find("#feedback-choice").slideUp(),n.find("#feedback-support").slideDown()}),n.find("#feedback-choice a.yes").click(function(e){e.preventDefault(),n.find("#feedback-choice").slideUp(),n.find("#feedback-rate").slideDown()})})}function cpac_clear_input_defaults(){jQuery.fn.cleardefault=function(){return this.focus(function(){this.value==this.defaultValue&&(this.value="")}).blur(function(){this.value.length||(this.value=this.defaultValue)})},jQuery("#cpac-box-plugin_settings .addons input").cleardefault()}function cpac_help(){jQuery("#cpac a.help").click(function(e){e.preventDefault();var n=jQuery("#contextual-help-wrap");n.parent().show(),jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',n).trigger("click"),n.slideDown("fast",function(){n.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),n=e.attr("rel"),t=e.attr("data-pos"),c={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==t&&(c={at:"right middle",my:"left middle",edge:"left"}),e.pointer({content:jQuery("#"+n).html(),position:c,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+c.edge}),e.click(function(){e.hasClass("open")?e.removeClass("open"):e.addClass("open")}),e.hover(function(){jQuery(this).pointer("open")},function(){e.hasClass("open")||jQuery(this).pointer("close")})})}function cpac_sortable(){jQuery("div.cpac-columns").each(function(){jQuery(this).sortable(jQuery(this).hasClass("ui-sortable")?"refresh":{items:".cpac-column"})})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e,n){var t=jQuery(this).attr("href");if(t){var c=t.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current"),jQuery(".columns-container").hide(),jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+c+'"]').show(),a=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",a)}e.preventDefault()}),e.find("a.current").trigger("click")}jQuery(document).ready(function(){return 0===jQuery("#cpac").length?!1:(cpac_pointer(),cpac_submit_form(),cpac_clear_input_defaults(),cpac_sortable(),cpac_menu(),cpac_help(),cpac_add_column(),cpac_importexport(),cpac_sidebar_feedback(),void jQuery(".cpac-column").each(function(e,n){jQuery(n).column_bind_toggle(),jQuery(n).column_bind_remove(),jQuery(n).column_bind_clone(),jQuery(n).cpac_bind_container_addon_events()}))}),jQuery.fn.column_bind_toggle=function(){var e=jQuery(this);e.find("td.column_type a, td.column_edit, td.column_label a.toggle, td.column_label .edit-button").click(function(n){n.preventDefault(),e.toggleClass("opened").find(".column-form").slideToggle(150),e.hasClass("events-binded")||e.column_bind_events(),e.addClass("events-binded"),jQuery(document).trigger("column_init",e)})},jQuery.fn.column_bind_remove=function(){jQuery(this).find(".remove-button").click(function(e){jQuery(this).closest(".cpac-column").column_remove(),e.preventDefault()})},jQuery.fn.column_bind_clone=function(){jQuery(this).find(".clone-button").click(function(e){var n,t;e.preventDefault(),n=jQuery(this).closest(".cpac-column"),t=n.column_clone(),"undefined"!=typeof t&&t.removeClass("loading").hide().slideDown()})},jQuery.fn.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading"),e.find(".column-form").prepend('<span class="spinner" />'),jQuery.post(ajaxurl,{plugin_id:"cpac",action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(n){var t=jQuery("<div>"+n+"</div>").children();e.replaceWith(t),e=t,e.column_bind_toggle(),e.column_bind_remove(),e.column_bind_clone(),e.column_bind_events(),e.removeClass("loading").addClass("opened").find(".column-form").show(),jQuery(document).trigger("column_change",e)})},jQuery.fn.column_bind_events=function(){var e=jQuery(this),n=e.closest(".columns-container "),t=n.attr("data-type"),c=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),a=i.val(),o=i.text(),r=jQuery(this).next(".msg").hide(),u=n.find('.for-cloning-only .cpac-column[data-type="'+a+'"]');if(u.length)if(u.find(".is-disabled").length)r.html(u.find(".is-disabled").html()).show(),jQuery(this).find("option").removeAttr("selected"),jQuery(this).find('option[value="'+c+'"]').attr("selected","selected");else{if("undefined"==typeof u.attr("data-clone")&&jQuery(".cpac-columns",n).find('[data-type="'+a+'"]').length)return r.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show(),jQuery(this).find("option").removeAttr("selected"),void jQuery(this).find('option[value="'+c+'"]').attr("selected","selected");var l=u.clone();l.addClass("opened").find(".column-form").show(),l.find(".column-meta").replaceWith(e.find(".column-meta")),l.find(".column-form").replaceWith(e.find(".column-form")),l.cpac_update_clone_id(t),e.replaceWith(l),l.cpac_column_refresh()}}),e.find(".column_label .input input").bind("keyup change",function(){var e=jQuery(this).val();jQuery(this).closest(".cpac-column").find("td.column_label .inner > a.toggle").text(e)}),e.column_width_slider();var i=e.find(".column-meta span.width");i.on("update",function(){var n=e.find("input.width").val(),t=e.find("input.unit").filter(":checked").val();jQuery(this).text(n>0?n+t:"")});var a=e.find(".column_width .unit-select label");a.on("click",function(){e.find("span.unit").text(jQuery(this).find("input").val()),e.column_width_slider(),i.trigger("update")});var o=e.find("input.width").on("keyup",function(){e.column_width_slider(),jQuery(this).trigger("validate"),i.trigger("update")}).on("validate",function(){var e=o.val(),n=jQuery.trim(e);jQuery.isNumeric(n)||(n=n.replace(/\D/g,"")),n.length>3&&(n=n.substring(0,3)),0>=n&&(n=""),n!==e&&o.val(n)});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");jQuery(this).hasClass("image-size-custom")?(jQuery(".custom-size-w",e).removeClass("hidden"),jQuery(".custom-size-h",e).removeClass("hidden")):(jQuery(".custom-size-w",e).addClass("hidden"),jQuery(".custom-size-h",e).addClass("hidden"))}),e.find(".column-form .label label, .column-form .label .info").hover(function(){jQuery(this).parents(".label").find("p.description").show()},function(){jQuery(this).parents(".label").find("p.description").hide()}),"column-meta"==e.find(".column_type select").val()&&e.find(".column_field_type select").change(function(){e.cpac_column_refresh()})},jQuery.fn.column_remove=function(){jQuery(this).addClass("deleting").animate({opacity:0,height:0},350,function(e){jQuery(this).remove()})},jQuery.fn.column_width_slider=function(){var e=jQuery(this).find(".column_width"),n=e.find("input.width"),t=e.find("input.unit"),c=t.filter(":checked").val(),i=n.val(),a=e.find(".width-slider"),o=jQuery(this).find(".column-meta span.width");"%"==c&&i>100&&(i=100),n.val(i),a.slider({range:"min",min:0,max:"%"==c?100:500,value:i,slide:function(e,t){n.val(t.value),o.trigger("update"),n.trigger("validate")}})},jQuery.fn.column_clone=function(){var e=jQuery(this).closest(".columns-container"),n=jQuery(this);if("undefined"==typeof n.attr("data-clone")){var t=cpac_i18n.clone.replace("%s","<strong>"+n.find(".column_label .toggle").text()+"</strong>");return n.addClass("opened").find(".column-form").slideDown(150),void n.find(".msg").html(t).show()}var c=jQuery(this).clone();return c.cpac_update_clone_id(e.attr("data-type")),jQuery(this).after(c),c.column_bind_toggle(),c.column_bind_remove(),c.column_bind_clone(),c.column_bind_events(),cpac_sortable(),jQuery(document).trigger("column_add",c),c},jQuery.fn.cpac_update_clone_id=function(e){var n=jQuery(this),t=n.attr("data-type"),c=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(c).find('*[data-type="'+t+'"]').not(n),a=jQuery.map(i,function(e,n){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});a.sort();for(var o=Math.max.apply(null,a)+1,r=0;o>=r&&-1!==jQuery.inArray(r,a);r++);if(0!==r){var u=n.attr("data-clone"),l="";u&&(l="-"+u),n.attr("data-clone",r),n.find("input.clone").val(r),n.find("input.column-name").val(t+"-"+r);var d=n.find("input, select, label");jQuery(d).each(function(e,n){var c=t+"-"+r;jQuery(n).attr("name")&&jQuery(n).attr("name",jQuery(n).attr("name").replace(t+l,c)),jQuery(n).attr("for")&&jQuery(n).attr("for",jQuery(n).attr("for").replace(t+l,c)),jQuery(n).attr("id")&&jQuery(n).attr("id",jQuery(n).attr("id").replace(t+l,c))})}},jQuery(document).bind("column_init column_change column_add",function(e,n){jQuery(n).cpac_bind_column_addon_events(),jQuery(n).cpac_bind_container_addon_events()}),jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),n=e.find("[data-toggle-id] label");n.click(function(){var n=jQuery(this).closest("td.input").data("toggle-id"),t=e.find('[data-indicator-id="'+n+'"]').removeClass("on"),c=jQuery("input",this).val();"on"==c&&t.addClass("on")})},jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),n=e.find("[data-indicator-id]");n.unbind("click").click(function(){var n=jQuery(this).data("indicator-id"),t=e.find('[data-toggle-id="'+n+'"] input');jQuery(this).hasClass("on")?(jQuery(this).removeClass("on").addClass("off"),t.filter("[value=off]").prop("checked",!0)):(jQuery(this).removeClass("off").addClass("on"),t.filter("[value=on]").prop("checked",!0))})};
|
classes/column.php
CHANGED
@@ -429,11 +429,12 @@ class CPAC_Column {
|
|
429 |
|
430 |
if ( ! empty( $options['label'] ) ) {
|
431 |
|
432 |
-
// Label can not contains the character
|
433 |
// CPAC_Column::get_sanitized_label() will return an empty string
|
434 |
// and make an exception for site_url()
|
435 |
if ( false === strpos( $options['label'], site_url() ) ) {
|
436 |
$options['label'] = str_replace( ':', '', $options['label'] );
|
|
|
437 |
}
|
438 |
}
|
439 |
|
@@ -552,10 +553,24 @@ class CPAC_Column {
|
|
552 |
if ( ! $name ) {
|
553 |
return false;
|
554 |
}
|
555 |
-
|
556 |
return sprintf( "<img alt='' src='%s' title='%s'/>", CPAC_URL . "assets/images/{$name}", esc_attr( $title ) );
|
557 |
}
|
558 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
/**
|
560 |
* @since 1.2.0
|
561 |
* @param string $url
|
429 |
|
430 |
if ( ! empty( $options['label'] ) ) {
|
431 |
|
432 |
+
// Label can not contains the character ":"" and "'", because
|
433 |
// CPAC_Column::get_sanitized_label() will return an empty string
|
434 |
// and make an exception for site_url()
|
435 |
if ( false === strpos( $options['label'], site_url() ) ) {
|
436 |
$options['label'] = str_replace( ':', '', $options['label'] );
|
437 |
+
$options['label'] = str_replace( "'", '', $options['label'] );
|
438 |
}
|
439 |
}
|
440 |
|
553 |
if ( ! $name ) {
|
554 |
return false;
|
555 |
}
|
|
|
556 |
return sprintf( "<img alt='' src='%s' title='%s'/>", CPAC_URL . "assets/images/{$name}", esc_attr( $title ) );
|
557 |
}
|
558 |
|
559 |
+
/**
|
560 |
+
* @since 3.4.4
|
561 |
+
*/
|
562 |
+
public function get_user_postcount( $user_id, $post_type ) {
|
563 |
+
global $wpdb;
|
564 |
+
$sql = "
|
565 |
+
SELECT COUNT(ID)
|
566 |
+
FROM {$wpdb->posts}
|
567 |
+
WHERE post_status = 'publish'
|
568 |
+
AND post_author = %d
|
569 |
+
AND post_type = %s
|
570 |
+
";
|
571 |
+
return $wpdb->get_var( $wpdb->prepare( $sql, $user_id, $post_type ) );
|
572 |
+
}
|
573 |
+
|
574 |
/**
|
575 |
* @since 1.2.0
|
576 |
* @param string $url
|
classes/column/comment/ID.php
CHANGED
@@ -23,8 +23,7 @@ class CPAC_Column_Comment_ID extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
-
|
28 |
return $id;
|
29 |
}
|
30 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
|
|
27 |
return $id;
|
28 |
}
|
29 |
}
|
classes/column/comment/agent.php
CHANGED
@@ -23,10 +23,15 @@ class CPAC_Column_Comment_Agent extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
28 |
$comment = get_comment( $id );
|
29 |
-
|
30 |
return $comment->comment_agent;
|
31 |
}
|
32 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
+
return $this->get_raw_value( $id );
|
28 |
+
}
|
29 |
|
30 |
+
/**
|
31 |
+
* @since 2.4.2
|
32 |
+
*/
|
33 |
+
public function get_raw_value( $id ) {
|
34 |
$comment = get_comment( $id );
|
|
|
35 |
return $comment->comment_agent;
|
36 |
}
|
37 |
}
|
classes/column/comment/approved.php
CHANGED
@@ -23,16 +23,15 @@ class CPAC_Column_Comment_Approved extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
$value = $this->get_asset_image( 'no.png' );
|
31 |
-
if ( $comment->comment_approved ) {
|
32 |
-
|
33 |
-
$value = $this->get_asset_image( 'checkmark.png' );
|
34 |
-
}
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
+
return $this->get_raw_value( $id ) ? $this->get_asset_image( 'checkmark.png' ) : $this->get_asset_image( 'no.png' );
|
28 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
+
/**
|
31 |
+
* @since 2.4.2
|
32 |
+
*/
|
33 |
+
public function get_raw_value( $id ) {
|
34 |
+
$comment = get_comment( $id );
|
35 |
+
return $comment->comment_approved;
|
36 |
}
|
37 |
}
|
classes/column/comment/author-avatar.php
CHANGED
@@ -23,10 +23,9 @@ class CPAC_Column_Comment_Author_Avatar extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
|
28 |
$comment = get_comment( $id );
|
29 |
-
|
30 |
return get_avatar( $comment, 80 );
|
31 |
}
|
32 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
|
28 |
$comment = get_comment( $id );
|
|
|
29 |
return get_avatar( $comment, 80 );
|
30 |
}
|
31 |
}
|
classes/column/comment/author-email.php
CHANGED
@@ -23,10 +23,16 @@ class CPAC_Column_Comment_Author_Email extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
|
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
28 |
$comment = get_comment( $id );
|
29 |
-
|
30 |
return $comment->comment_author_email;
|
31 |
}
|
32 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
+
$email = $this->get_raw_value( $id );
|
28 |
+
return '<a href="' . $email . '">' . $email . '</a>';
|
29 |
+
}
|
30 |
|
31 |
+
/**
|
32 |
+
* @since 2.4.2
|
33 |
+
*/
|
34 |
+
public function get_raw_value( $id ) {
|
35 |
$comment = get_comment( $id );
|
|
|
36 |
return $comment->comment_author_email;
|
37 |
}
|
38 |
}
|
classes/column/comment/author-ip.php
CHANGED
@@ -23,10 +23,15 @@ class CPAC_Column_Comment_Author_Ip extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
28 |
$comment = get_comment( $id );
|
29 |
-
|
30 |
return $comment->comment_author_IP;
|
31 |
}
|
32 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
+
return $this->get_raw_value( $id );
|
28 |
+
}
|
29 |
|
30 |
+
/**
|
31 |
+
* @since 2.4.2
|
32 |
+
*/
|
33 |
+
public function get_raw_value( $id ) {
|
34 |
$comment = get_comment( $id );
|
|
|
35 |
return $comment->comment_author_IP;
|
36 |
}
|
37 |
}
|
classes/column/comment/author-name.php
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @since 2.4.2
|
4 |
+
*/
|
5 |
+
class CPAC_Column_Comment_Author_Name extends CPAC_Column {
|
6 |
+
|
7 |
+
public function init() {
|
8 |
+
parent::init();
|
9 |
+
|
10 |
+
// Properties
|
11 |
+
$this->properties['type'] = 'column-author_name';
|
12 |
+
$this->properties['label'] = __( 'Author name', 'cpac' );
|
13 |
+
}
|
14 |
+
|
15 |
+
public function get_value( $id ) {
|
16 |
+
return $this->get_raw_value( $id );
|
17 |
+
}
|
18 |
+
|
19 |
+
public function get_raw_value( $id ) {
|
20 |
+
$comment = get_comment( $id );
|
21 |
+
return $comment->comment_author;
|
22 |
+
}
|
23 |
+
}
|
classes/column/comment/author-url.php
CHANGED
@@ -23,10 +23,15 @@ class CPAC_Column_Comment_Author_Url extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
28 |
$comment = get_comment( $id );
|
29 |
-
|
30 |
-
return $this->get_shorten_url( $comment->comment_author_url );
|
31 |
}
|
32 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
+
return $this->get_shorten_url( $this->get_raw_value( $id ) );
|
28 |
+
}
|
29 |
|
30 |
+
/**
|
31 |
+
* @since 2.4.2
|
32 |
+
*/
|
33 |
+
public function get_raw_value( $id ) {
|
34 |
$comment = get_comment( $id );
|
35 |
+
return $comment->comment_author_url;
|
|
|
36 |
}
|
37 |
}
|
classes/column/comment/author.php
CHANGED
@@ -23,10 +23,15 @@ class CPAC_Column_Comment_Author extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
|
|
|
|
27 |
|
|
|
|
|
|
|
|
|
28 |
$comment = get_comment( $id );
|
29 |
-
|
30 |
return $comment->comment_author;
|
31 |
}
|
32 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
+
return $this->get_raw_value( $id );
|
28 |
+
}
|
29 |
|
30 |
+
/**
|
31 |
+
* @since 2.4.2
|
32 |
+
*/
|
33 |
+
public function get_raw_value( $id ) {
|
34 |
$comment = get_comment( $id );
|
|
|
35 |
return $comment->comment_author;
|
36 |
}
|
37 |
}
|
classes/column/comment/date-gmt.php
CHANGED
@@ -23,16 +23,24 @@ class CPAC_Column_Comment_Date_Gmt extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
|
28 |
-
$
|
29 |
|
30 |
$value = sprintf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ),
|
31 |
esc_url( get_comment_link( $id ) ),
|
32 |
-
$this->get_date( $
|
33 |
-
$this->get_time( $
|
34 |
);
|
35 |
|
36 |
return "<div class='submitted-on'>{$value}</div>";
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
|
28 |
+
$date_gmt = $this->get_raw_value( $id );
|
29 |
|
30 |
$value = sprintf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ),
|
31 |
esc_url( get_comment_link( $id ) ),
|
32 |
+
$this->get_date( $date_gmt ),
|
33 |
+
$this->get_time( $date_gmt )
|
34 |
);
|
35 |
|
36 |
return "<div class='submitted-on'>{$value}</div>";
|
37 |
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* @since 2.4.2
|
41 |
+
*/
|
42 |
+
public function get_raw_value( $id ) {
|
43 |
+
$comment = get_comment( $id );
|
44 |
+
return $comment->comment_date_gmt;
|
45 |
+
}
|
46 |
}
|
classes/column/comment/date.php
CHANGED
@@ -23,16 +23,24 @@ class CPAC_Column_Comment_Date extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
|
28 |
-
$
|
29 |
|
30 |
$value = sprintf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ),
|
31 |
esc_url( get_comment_link( $id ) ),
|
32 |
-
$this->get_date( $
|
33 |
-
$this->get_time( $
|
34 |
);
|
35 |
|
36 |
return "<div class='submitted-on'>{$value}</div>";
|
37 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
|
28 |
+
$date = $this->get_raw_value( $id );
|
29 |
|
30 |
$value = sprintf( __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>' ),
|
31 |
esc_url( get_comment_link( $id ) ),
|
32 |
+
$this->get_date( $date ),
|
33 |
+
$this->get_time( $date )
|
34 |
);
|
35 |
|
36 |
return "<div class='submitted-on'>{$value}</div>";
|
37 |
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* @since 2.4.2
|
41 |
+
*/
|
42 |
+
public function get_raw_value( $id ) {
|
43 |
+
$comment = get_comment( $id );
|
44 |
+
return $comment->comment_date;
|
45 |
+
}
|
46 |
}
|
classes/column/comment/excerpt.php
CHANGED
@@ -16,7 +16,7 @@ class CPAC_Column_Comment_Excerpt extends CPAC_Column {
|
|
16 |
|
17 |
// Properties
|
18 |
$this->properties['type'] = 'column-excerpt';
|
19 |
-
$this->properties['label'] = __( '
|
20 |
|
21 |
// Options
|
22 |
$this->options['excerpt_length'] = 15;
|
@@ -26,19 +26,23 @@ class CPAC_Column_Comment_Excerpt extends CPAC_Column {
|
|
26 |
* @see CPAC_Column::get_value()
|
27 |
* @since 2.0
|
28 |
*/
|
29 |
-
function get_value( $id ) {
|
|
|
|
|
30 |
|
|
|
|
|
|
|
|
|
31 |
$comment = get_comment( $id );
|
32 |
-
|
33 |
-
return $this->get_shortened_string( $comment->comment_content, $this->options->excerpt_length );
|
34 |
}
|
35 |
|
36 |
/**
|
37 |
* @see CPAC_Column::display_settings()
|
38 |
* @since 2.0
|
39 |
*/
|
40 |
-
function display_settings() {
|
41 |
-
|
42 |
$this->display_field_excerpt_length();
|
43 |
}
|
44 |
}
|
16 |
|
17 |
// Properties
|
18 |
$this->properties['type'] = 'column-excerpt';
|
19 |
+
$this->properties['label'] = __( 'Content', 'cpac' );
|
20 |
|
21 |
// Options
|
22 |
$this->options['excerpt_length'] = 15;
|
26 |
* @see CPAC_Column::get_value()
|
27 |
* @since 2.0
|
28 |
*/
|
29 |
+
public function get_value( $id ) {
|
30 |
+
return $this->get_shortened_string( $this->get_raw_value( $id ), $this->options->excerpt_length );
|
31 |
+
}
|
32 |
|
33 |
+
/**
|
34 |
+
* @since 2.4.2
|
35 |
+
*/
|
36 |
+
public function get_raw_value( $id ) {
|
37 |
$comment = get_comment( $id );
|
38 |
+
return $comment->comment_content;
|
|
|
39 |
}
|
40 |
|
41 |
/**
|
42 |
* @see CPAC_Column::display_settings()
|
43 |
* @since 2.0
|
44 |
*/
|
45 |
+
public function display_settings() {
|
|
|
46 |
$this->display_field_excerpt_length();
|
47 |
}
|
48 |
}
|
classes/column/comment/reply-to.php
CHANGED
@@ -23,17 +23,22 @@ class CPAC_Column_Comment_Reply_To extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
-
|
28 |
$value = '';
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
$parent = get_comment( $comment->comment_parent );
|
34 |
-
$value = sprintf( '<a href="%1$s">%2$s</a>', esc_url( get_comment_link( $comment->comment_parent ) ), get_comment_author( $parent->comment_ID ) );
|
35 |
}
|
36 |
|
37 |
return $value;
|
38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
|
|
27 |
$value = '';
|
28 |
+
$parent = $this->get_raw_value( $id );
|
29 |
+
if ( $parent ) {
|
30 |
+
$parent = get_comment( $parent );
|
31 |
+
$value = sprintf( '<a href="%1$s">%2$s</a>', esc_url( get_comment_link( $parent ) ), get_comment_author( $parent->comment_ID ) );
|
|
|
|
|
32 |
}
|
33 |
|
34 |
return $value;
|
35 |
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* @since 2.4.2
|
39 |
+
*/
|
40 |
+
public function get_raw_value( $id ) {
|
41 |
+
$comment = get_comment( $id );
|
42 |
+
return $comment->comment_parent;
|
43 |
+
}
|
44 |
}
|
classes/column/comment/type.php
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @since 2.4.2
|
4 |
+
*/
|
5 |
+
class CPAC_Column_Comment_Type extends CPAC_Column {
|
6 |
+
|
7 |
+
public function init() {
|
8 |
+
|
9 |
+
parent::init();
|
10 |
+
|
11 |
+
// Properties
|
12 |
+
$this->properties['type'] = 'column-type';
|
13 |
+
$this->properties['label'] = __( 'Type', 'cpac' );
|
14 |
+
}
|
15 |
+
|
16 |
+
public function get_value( $id ) {
|
17 |
+
return $this->get_raw_value( $id );
|
18 |
+
}
|
19 |
+
|
20 |
+
public function get_raw_value( $id ) {
|
21 |
+
$comment = get_comment( $id );
|
22 |
+
return $comment->comment_type;
|
23 |
+
}
|
24 |
+
}
|
classes/column/comment/user.php
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @since 2.4.2
|
4 |
+
*/
|
5 |
+
class CPAC_Column_Comment_User extends CPAC_Column {
|
6 |
+
|
7 |
+
public function init() {
|
8 |
+
parent::init();
|
9 |
+
|
10 |
+
$this->properties['type'] = 'column-user';
|
11 |
+
$this->properties['label'] = __( 'User', 'cpac' );
|
12 |
+
}
|
13 |
+
|
14 |
+
public function get_value( $id ) {
|
15 |
+
$user_id = $this->get_raw_value( $id );
|
16 |
+
|
17 |
+
if ( ! $user_id ) {
|
18 |
+
return false;
|
19 |
+
}
|
20 |
+
|
21 |
+
$display_name = $this->get_display_name( $user_id );
|
22 |
+
if ( $edit_link = get_edit_profile_url( $user_id ) ) {
|
23 |
+
$display_name = '<a href="' . $edit_link . ' ">' . $display_name . '</a>';
|
24 |
+
}
|
25 |
+
return $display_name;
|
26 |
+
}
|
27 |
+
|
28 |
+
public function get_raw_value( $id ) {
|
29 |
+
$comment = get_comment( $id );
|
30 |
+
return $comment->user_id;
|
31 |
+
}
|
32 |
+
}
|
classes/column/comment/word-count.php
CHANGED
@@ -23,7 +23,7 @@ class CPAC_Column_Comment_Word_Count extends CPAC_Column {
|
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
-
function get_value( $id ) {
|
27 |
|
28 |
$comment = get_comment( $id );
|
29 |
|
23 |
* @see CPAC_Column::get_value()
|
24 |
* @since 2.0
|
25 |
*/
|
26 |
+
public function get_value( $id ) {
|
27 |
|
28 |
$comment = get_comment( $id );
|
29 |
|
classes/column/user/post-count.php
CHANGED
@@ -30,20 +30,7 @@ class CPAC_Column_User_Post_Count extends CPAC_Column {
|
|
30 |
*/
|
31 |
public function get_count( $user_id ) {
|
32 |
|
33 |
-
|
34 |
-
return false;
|
35 |
-
|
36 |
-
global $wpdb;
|
37 |
-
|
38 |
-
$sql = "
|
39 |
-
SELECT COUNT(ID)
|
40 |
-
FROM {$wpdb->posts}
|
41 |
-
WHERE post_status = 'publish'
|
42 |
-
AND post_author = %d
|
43 |
-
AND post_type = %s
|
44 |
-
";
|
45 |
-
|
46 |
-
return $wpdb->get_var( $wpdb->prepare( $sql, $user_id, $this->options->post_type ) );
|
47 |
}
|
48 |
|
49 |
/**
|
30 |
*/
|
31 |
public function get_count( $user_id ) {
|
32 |
|
33 |
+
return $this->get_user_postcount( $user_id, $this->options->post_type );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
36 |
/**
|
classes/column/user/rich-editing.php
CHANGED
@@ -25,9 +25,9 @@ class CPAC_Column_User_Rich_Editing extends CPAC_Column {
|
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
28 |
-
$value = $this->get_asset_image( '
|
29 |
-
if ( '
|
30 |
-
$value = $this->get_asset_image( '
|
31 |
}
|
32 |
|
33 |
return $value;
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
28 |
+
$value = $this->get_asset_image( 'checkmark.png' );
|
29 |
+
if ( 'false' === $this->get_raw_value( $user_id ) ) {
|
30 |
+
$value = $this->get_asset_image( 'no.png' );
|
31 |
}
|
32 |
|
33 |
return $value;
|
classes/review_notice.php
CHANGED
@@ -10,13 +10,13 @@ class CPAC_Review_Notice {
|
|
10 |
|
11 |
function __construct( $cpac ) {
|
12 |
|
13 |
-
register_activation_hook( __FILE__, array( $this, '
|
14 |
|
15 |
// show notice after x days of installing
|
16 |
-
$this->days_since_install =
|
17 |
|
18 |
add_action( 'admin_init', array( $this, 'maybe_display_review_notice' ) );
|
19 |
-
add_action( 'wp_ajax_cpac_hide_review_notice', array( $this, '
|
20 |
}
|
21 |
|
22 |
public function insert_install_timestamp() {
|
@@ -40,29 +40,138 @@ class CPAC_Review_Notice {
|
|
40 |
}
|
41 |
}
|
42 |
|
43 |
-
public function
|
44 |
-
|
45 |
}
|
46 |
|
47 |
public function display_admin_review_notice() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
?>
|
49 |
<div class="cpac_message updated">
|
50 |
-
<
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
<script type="text/javascript">
|
56 |
jQuery( function( $ ) {
|
57 |
$( document ).ready( function() {
|
58 |
$( '.updated a.hide-review-notice' ).click( function( e ) {
|
59 |
e.preventDefault();
|
|
|
60 |
var el = $( this ).parents( '.cpac_message' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
$.post( ajaxurl, {
|
62 |
'action': 'cpac_hide_review_notice'
|
63 |
}, function( data ) {
|
64 |
-
|
|
|
|
|
|
|
65 |
} );
|
|
|
66 |
return false;
|
67 |
} );
|
68 |
} );
|
10 |
|
11 |
function __construct( $cpac ) {
|
12 |
|
13 |
+
register_activation_hook( __FILE__, array( $this, 'insert_install_timestamp' ) );
|
14 |
|
15 |
// show notice after x days of installing
|
16 |
+
$this->days_since_install = 30; // 30 days
|
17 |
|
18 |
add_action( 'admin_init', array( $this, 'maybe_display_review_notice' ) );
|
19 |
+
add_action( 'wp_ajax_cpac_hide_review_notice', array( $this, 'ajax_hide_review_notice' ) );
|
20 |
}
|
21 |
|
22 |
public function insert_install_timestamp() {
|
40 |
}
|
41 |
}
|
42 |
|
43 |
+
public function ajax_hide_review_notice() {
|
44 |
+
update_user_meta( get_current_user_id(), self::OPTION_ADMIN_NOTICE_KEY, '1', true );
|
45 |
}
|
46 |
|
47 |
public function display_admin_review_notice() {
|
48 |
+
$screen = get_current_screen();
|
49 |
+
|
50 |
+
// only display on settings and plugins page
|
51 |
+
if ( ! $screen || ! in_array( $screen->parent_base, array( 'options-general', 'plugins' ) ) ) {
|
52 |
+
return false;
|
53 |
+
}
|
54 |
+
|
55 |
+
$product = __( 'Admin Columns', 'cpac' );
|
56 |
+
|
57 |
+
if ( defined( 'ACP_VERSION' ) ) {
|
58 |
+
$product = __( 'Admin Columns Pro', 'cpac' );
|
59 |
+
}
|
60 |
?>
|
61 |
<div class="cpac_message updated">
|
62 |
+
<div class="info">
|
63 |
+
<p>
|
64 |
+
<?php printf( __(
|
65 |
+
"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.", 'cpac' ),
|
66 |
+
'<strong>' . $product . '</strong>',
|
67 |
+
$product,
|
68 |
+
'<a class="hide-review-notice hide-review-notice-soft" href="#">' . __( 'click here', 'cpac' ) . '</a>'
|
69 |
+
); ?>
|
70 |
+
</p>
|
71 |
+
<p class="buttons">
|
72 |
+
<a class="button button-primary" href="https://wordpress.org/support/view/plugin-reviews/codepress-admin-columns?rate=5#postform" target="_blank"><?php _e( 'Leave a review!', 'cpac' ); ?></a>
|
73 |
+
<a class="button button-secondary hide-review-notice" href='#'><?php _e( "Permanently hide notice", 'cpac' ); ?></a>
|
74 |
+
</p>
|
75 |
+
</div>
|
76 |
+
<div class="help">
|
77 |
+
<a href="#" class="hide-notice hide-review-notice"></a>
|
78 |
+
<p>
|
79 |
+
<?php printf(
|
80 |
+
__( "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.", 'cpac' ),
|
81 |
+
$product,
|
82 |
+
'<a href="http://admincolumns.com/documentation/" target="_blank">' . __( 'documentation page', 'cpac' ) . '</a>'
|
83 |
+
); ?>
|
84 |
+
<?php if ( defined( 'ACP_VERSION' ) ) : ?>
|
85 |
+
<?php printf(
|
86 |
+
__( 'As an Admin Columns Pro user, you can also use your AdminColumns.com account to access product support through %s!', 'cpac' ),
|
87 |
+
'<a href="https://www.admincolumns.com/forums/" target="_blank">' . __( 'our forums', 'cpac' ) . '</a>'
|
88 |
+
); ?>
|
89 |
+
<?php else : ?>
|
90 |
+
<?php printf(
|
91 |
+
__( 'You can also find help on the %s, and %s.', 'cpac' ),
|
92 |
+
'<a href="https://wordpress.org/support/plugin/codepress-admin-columns#postform" target="_blank">' . __( 'Admin Columns forums on WordPress.org', 'cpac' ) . '</a>',
|
93 |
+
'<a href="https://wordpress.org/plugins/codepress-admin-columns/faq/#plugin-info" target="_blank">' . __( 'find answers to some frequently asked questions', 'cpac' ) . '</a>'
|
94 |
+
); ?>
|
95 |
+
<?php endif; ?>
|
96 |
+
</p>
|
97 |
+
</div>
|
98 |
+
<div class="clear"></div>
|
99 |
</div>
|
100 |
+
<style type="text/css">
|
101 |
+
body .wrap .cpac_message {
|
102 |
+
position: relative;
|
103 |
+
padding-right: 40px;
|
104 |
+
}
|
105 |
+
.cpac_message .spinner.right {
|
106 |
+
visibility: visible;
|
107 |
+
display: block;
|
108 |
+
right: 8px;
|
109 |
+
text-decoration: none;
|
110 |
+
text-align: right;
|
111 |
+
position: absolute;
|
112 |
+
top: 50%;
|
113 |
+
margin-top: -10px;
|
114 |
+
}
|
115 |
+
.cpac_message .spinner.inline {
|
116 |
+
display: inline-block;
|
117 |
+
position: absolute;
|
118 |
+
margin: 4px 0 0 4px;
|
119 |
+
padding: 0;
|
120 |
+
float: none;
|
121 |
+
}
|
122 |
+
.cpac_message .hide-notice {
|
123 |
+
right: 8px;
|
124 |
+
text-decoration: none;
|
125 |
+
width: 32px;
|
126 |
+
text-align: right;
|
127 |
+
position: absolute;
|
128 |
+
top: 50%;
|
129 |
+
height: 32px;
|
130 |
+
margin-top: -16px;
|
131 |
+
}
|
132 |
+
.cpac_message .hide-notice:before {
|
133 |
+
display: block;
|
134 |
+
content: '\f335';
|
135 |
+
font-family: 'Dashicons';
|
136 |
+
margin: .5em 0;
|
137 |
+
padding: 2px;
|
138 |
+
}
|
139 |
+
.cpac_message .buttons {
|
140 |
+
margin-top: 8px;
|
141 |
+
}
|
142 |
+
.cpac_message .help {
|
143 |
+
display: none;
|
144 |
+
}
|
145 |
+
</style>
|
146 |
<script type="text/javascript">
|
147 |
jQuery( function( $ ) {
|
148 |
$( document ).ready( function() {
|
149 |
$( '.updated a.hide-review-notice' ).click( function( e ) {
|
150 |
e.preventDefault();
|
151 |
+
|
152 |
var el = $( this ).parents( '.cpac_message' );
|
153 |
+
var el_close = el.find( '.hide-notice' );
|
154 |
+
var soft = $( this ).hasClass( 'hide-review-notice-soft' );
|
155 |
+
|
156 |
+
if ( soft ) {
|
157 |
+
el.find( '.info' ).slideUp();
|
158 |
+
el.find( '.help' ).slideDown();
|
159 |
+
}
|
160 |
+
else {
|
161 |
+
el_close.hide();
|
162 |
+
el_close.after( '<div class="spinner right"></div>' );
|
163 |
+
el.find( '.spinner' ).show();
|
164 |
+
}
|
165 |
+
|
166 |
$.post( ajaxurl, {
|
167 |
'action': 'cpac_hide_review_notice'
|
168 |
}, function( data ) {
|
169 |
+
if ( ! soft ) {
|
170 |
+
el.find( '.spinner' ).remove();
|
171 |
+
el.slideUp();
|
172 |
+
}
|
173 |
} );
|
174 |
+
|
175 |
return false;
|
176 |
} );
|
177 |
} );
|
classes/storage_model.php
CHANGED
@@ -270,7 +270,7 @@ abstract class CPAC_Storage_Model {
|
|
270 |
$result_default = update_option( "cpac_options_{$this->key}_default", array_keys( $this->get_default_columns() ) );
|
271 |
|
272 |
// error
|
273 |
-
if( ! $result && ! $result_default ) {
|
274 |
cpac_admin_message( sprintf( __( 'You are trying to store the same settings for %s.', 'cpac' ), "<strong>{$this->label}</strong>" ), 'error' );
|
275 |
return false;
|
276 |
}
|
@@ -903,6 +903,13 @@ abstract class CPAC_Storage_Model {
|
|
903 |
return $options[ $option ];
|
904 |
}
|
905 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
906 |
/**
|
907 |
* @since 3.1.2
|
908 |
* @param $id Cache ID
|
270 |
$result_default = update_option( "cpac_options_{$this->key}_default", array_keys( $this->get_default_columns() ) );
|
271 |
|
272 |
// error
|
273 |
+
if ( ! $result && ! $result_default ) {
|
274 |
cpac_admin_message( sprintf( __( 'You are trying to store the same settings for %s.', 'cpac' ), "<strong>{$this->label}</strong>" ), 'error' );
|
275 |
return false;
|
276 |
}
|
903 |
return $options[ $option ];
|
904 |
}
|
905 |
|
906 |
+
/**
|
907 |
+
* @since 2.4.2
|
908 |
+
*/
|
909 |
+
public function is_cache_enabled() {
|
910 |
+
return apply_filters( 'cac/is_cache_enabled', true );
|
911 |
+
}
|
912 |
+
|
913 |
/**
|
914 |
* @since 3.1.2
|
915 |
* @param $id Cache ID
|
codepress-admin-columns.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Admin Columns
|
4 |
-
Version: 2.4.
|
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: http://www.admincolumns.com
|
@@ -32,7 +32,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
32 |
}
|
33 |
|
34 |
// Plugin information
|
35 |
-
define( 'CPAC_VERSION', '2.4.
|
36 |
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
|
37 |
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
|
38 |
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
|
@@ -506,7 +506,7 @@ class CPAC {
|
|
506 |
return false;
|
507 |
}
|
508 |
|
509 |
-
if ( $tab && isset( $_GET['tab'] ) && $tab !== $_GET['tab'] ) {
|
510 |
return false;
|
511 |
}
|
512 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Admin Columns
|
4 |
+
Version: 2.4.2
|
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: http://www.admincolumns.com
|
32 |
}
|
33 |
|
34 |
// Plugin information
|
35 |
+
define( 'CPAC_VERSION', '2.4.2' ); // Current plugin version
|
36 |
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
|
37 |
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
|
38 |
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
|
506 |
return false;
|
507 |
}
|
508 |
|
509 |
+
if ( $tab && ( empty( $_GET['tab'] ) || ( isset( $_GET['tab'] ) && $tab !== $_GET['tab'] ) ) ) {
|
510 |
return false;
|
511 |
}
|
512 |
|
languages/cpac.mo
CHANGED
Binary file
|
languages/cpac.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Admin Columns\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2015-04-
|
6 |
-
"PO-Revision-Date: 2015-04-
|
7 |
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
"Language-Team: Admin Columns <info@admincolumns.com>\n"
|
9 |
"Language: en_GB\n"
|
@@ -15,7 +15,7 @@ msgstr ""
|
|
15 |
"esc_html_x:1,2c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Generator: Poedit 1.7.
|
19 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPath-1: ..\n"
|
@@ -50,166 +50,167 @@ msgid ""
|
|
50 |
"inline editing."
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: ../classes/column.php:
|
54 |
msgid "Thumbnail"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: ../classes/column.php:
|
58 |
msgid "Medium"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: ../classes/column.php:
|
62 |
msgid "Large"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: ../classes/column.php:
|
66 |
msgid "Full"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: ../classes/column.php:
|
70 |
msgid "Date Format"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: ../classes/column.php:
|
74 |
msgid "This will determine how the date will be displayed."
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: ../classes/column.php:
|
78 |
msgid "Example:"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: ../classes/column.php:
|
82 |
#, php-format
|
83 |
msgid ""
|
84 |
"Leave empty for WordPress date format, change your <a href=\"%s\">default "
|
85 |
"date format here</a>."
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: ../classes/column.php:
|
89 |
msgid "Documentation on date and time formatting."
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: ../classes/column.php:
|
93 |
msgid "Excerpt length"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: ../classes/column.php:
|
97 |
msgid "Number of words"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: ../classes/column.php:
|
101 |
msgid "Preview size"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: ../classes/column.php:
|
105 |
msgid "Custom"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: ../classes/column.php:
|
109 |
msgid "width"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: ../classes/column.php:
|
113 |
msgid "height"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: ../classes/column.php:
|
117 |
msgid "Before"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: ../classes/column.php:
|
121 |
msgid "This text will appear before the custom field value."
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: ../classes/column.php:
|
125 |
msgid "After"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: ../classes/column.php:
|
129 |
msgid "This text will appear after the custom field value."
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: ../classes/column.php:
|
133 |
msgid "Display Name"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: ../classes/column.php:
|
137 |
msgid "First Name"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: ../classes/column.php:
|
141 |
msgid "Last Name"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: ../classes/column.php:
|
145 |
msgid "Nickname"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: ../classes/column.php:
|
149 |
msgid "User Login"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: ../classes/column.php:
|
153 |
msgid "User Email"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: ../classes/column.php:
|
157 |
msgid "User ID"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: ../classes/column.php:
|
161 |
msgid "First and Last Name"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: ../classes/column.php:
|
165 |
msgid "Display format"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: ../classes/column.php:
|
169 |
msgid "This is the format of the author name."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: ../classes/column.php:
|
173 |
msgid "Edit"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: ../classes/column.php:
|
177 |
msgid "Clone"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: ../classes/column.php:
|
181 |
msgid "Remove"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: ../classes/column.php:
|
|
|
185 |
msgid "Type"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: ../classes/column.php:
|
189 |
msgid "Choose a column type."
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: ../classes/column.php:
|
193 |
msgid "Name"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: ../classes/column.php:
|
197 |
msgid "Label"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: ../classes/column.php:
|
201 |
msgid "This is the name which will appear as the column header."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: ../classes/column.php:
|
205 |
msgid "Width"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: ../classes/column.php:
|
209 |
msgid "default"
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: ../classes/column.php:
|
213 |
msgid "auto"
|
214 |
msgstr ""
|
215 |
|
@@ -288,6 +289,10 @@ msgstr ""
|
|
288 |
msgid "Author IP"
|
289 |
msgstr ""
|
290 |
|
|
|
|
|
|
|
|
|
291 |
#: ../classes/column/comment/author-url.php:19
|
292 |
msgid "Author url"
|
293 |
msgstr ""
|
@@ -312,15 +317,18 @@ msgid "Date"
|
|
312 |
msgstr ""
|
313 |
|
314 |
#: ../classes/column/comment/excerpt.php:19
|
315 |
-
#: ../classes/column/
|
316 |
-
|
317 |
-
msgid "Excerpt"
|
318 |
msgstr ""
|
319 |
|
320 |
#: ../classes/column/comment/reply-to.php:19
|
321 |
msgid "In Reply To"
|
322 |
msgstr ""
|
323 |
|
|
|
|
|
|
|
|
|
324 |
#: ../classes/column/comment/word-count.php:19
|
325 |
#: ../classes/column/post/word-count.php:19
|
326 |
msgid "Word count"
|
@@ -348,6 +356,11 @@ msgstr ""
|
|
348 |
msgid "Counter"
|
349 |
msgstr ""
|
350 |
|
|
|
|
|
|
|
|
|
|
|
351 |
#: ../classes/column/custom-field.php:100 ../classes/column/link/image.php:19
|
352 |
#: ../classes/settings.php:314
|
353 |
msgid "Image"
|
@@ -573,10 +586,6 @@ msgstr ""
|
|
573 |
msgid "Select which comment status you like to display."
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: ../classes/column/post/content.php:19
|
577 |
-
msgid "Content"
|
578 |
-
msgstr ""
|
579 |
-
|
580 |
#: ../classes/column/post/date-published.php:17
|
581 |
msgid "Date Published"
|
582 |
msgstr ""
|
@@ -741,7 +750,7 @@ msgstr ""
|
|
741 |
msgid "Post Count"
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: ../classes/column/user/post-count.php:
|
745 |
msgid "Post Type"
|
746 |
msgstr ""
|
747 |
|
@@ -757,18 +766,69 @@ msgstr ""
|
|
757 |
msgid "Url"
|
758 |
msgstr ""
|
759 |
|
760 |
-
#: ../classes/review_notice.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
761 |
msgid ""
|
762 |
-
"
|
763 |
-
"
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: ../classes/review_notice.php:
|
767 |
-
msgid "
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: ../classes/review_notice.php:
|
771 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
772 |
msgstr ""
|
773 |
|
774 |
#: ../classes/settings.php:112
|
@@ -783,11 +843,6 @@ msgstr ""
|
|
783 |
msgid "Admin Columns Settings"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: ../classes/settings.php:170 ../classes/settings.php:589
|
787 |
-
#: ../classes/upgrade.php:135
|
788 |
-
msgid "Admin Columns"
|
789 |
-
msgstr ""
|
790 |
-
|
791 |
#: ../classes/settings.php:220
|
792 |
#, php-format
|
793 |
msgid "%s column is already present and can not be duplicated."
|
@@ -1267,10 +1322,6 @@ msgstr ""
|
|
1267 |
msgid "Users"
|
1268 |
msgstr ""
|
1269 |
|
1270 |
-
#: ../classes/storage_model/user.php:14
|
1271 |
-
msgid "User"
|
1272 |
-
msgstr ""
|
1273 |
-
|
1274 |
#: ../classes/upgrade.php:62
|
1275 |
msgid ""
|
1276 |
"The pro add-on is no longer supported. Please login to your account and "
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Admin Columns\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2015-04-29 13:58+0100\n"
|
6 |
+
"PO-Revision-Date: 2015-04-29 13:58+0100\n"
|
7 |
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
"Language-Team: Admin Columns <info@admincolumns.com>\n"
|
9 |
"Language: en_GB\n"
|
15 |
"esc_html_x:1,2c\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
+
"X-Generator: Poedit 1.7.6\n"
|
19 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
20 |
"X-Poedit-SearchPath-0: .\n"
|
21 |
"X-Poedit-SearchPath-1: ..\n"
|
50 |
"inline editing."
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: ../classes/column.php:597
|
54 |
msgid "Thumbnail"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: ../classes/column.php:598
|
58 |
msgid "Medium"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: ../classes/column.php:599
|
62 |
msgid "Large"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: ../classes/column.php:600
|
66 |
msgid "Full"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: ../classes/column.php:1041
|
70 |
msgid "Date Format"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: ../classes/column.php:1042
|
74 |
msgid "This will determine how the date will be displayed."
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: ../classes/column.php:1048
|
78 |
msgid "Example:"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: ../classes/column.php:1050
|
82 |
#, php-format
|
83 |
msgid ""
|
84 |
"Leave empty for WordPress date format, change your <a href=\"%s\">default "
|
85 |
"date format here</a>."
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: ../classes/column.php:1051
|
89 |
msgid "Documentation on date and time formatting."
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../classes/column.php:1065
|
93 |
msgid "Excerpt length"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: ../classes/column.php:1066
|
97 |
msgid "Number of words"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: ../classes/column.php:1084
|
101 |
msgid "Preview size"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: ../classes/column.php:1101 ../classes/storage_model.php:595
|
105 |
msgid "Custom"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: ../classes/column.php:1104 ../classes/column.php:1251
|
109 |
msgid "width"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../classes/column.php:1107
|
113 |
msgid "height"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: ../classes/column.php:1119
|
117 |
msgid "Before"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: ../classes/column.php:1119
|
121 |
msgid "This text will appear before the custom field value."
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: ../classes/column.php:1120
|
125 |
msgid "After"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: ../classes/column.php:1120
|
129 |
msgid "This text will appear after the custom field value."
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: ../classes/column.php:1129
|
133 |
msgid "Display Name"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: ../classes/column.php:1130
|
137 |
msgid "First Name"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: ../classes/column.php:1131
|
141 |
msgid "Last Name"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ../classes/column.php:1132 ../classes/column/user/nickname.php:19
|
145 |
msgid "Nickname"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ../classes/column.php:1133
|
149 |
msgid "User Login"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../classes/column.php:1134
|
153 |
msgid "User Email"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: ../classes/column.php:1135 ../classes/column/user/ID.php:19
|
157 |
msgid "User ID"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: ../classes/column.php:1136
|
161 |
msgid "First and Last Name"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: ../classes/column.php:1139
|
165 |
msgid "Display format"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: ../classes/column.php:1139
|
169 |
msgid "This is the format of the author name."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: ../classes/column.php:1273
|
173 |
msgid "Edit"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: ../classes/column.php:1275 ../classes/column.php:1367
|
177 |
msgid "Clone"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: ../classes/column.php:1277 ../classes/column.php:1369
|
181 |
msgid "Remove"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: ../classes/column.php:1295 ../classes/column/comment/type.php:13
|
185 |
+
#: ../classes/column/custom-field.php:407
|
186 |
msgid "Type"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: ../classes/column.php:1295
|
190 |
msgid "Choose a column type."
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../classes/column.php:1295
|
194 |
msgid "Name"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: ../classes/column.php:1305
|
198 |
msgid "Label"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: ../classes/column.php:1305
|
202 |
msgid "This is the name which will appear as the column header."
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: ../classes/column.php:1312 ../classes/column/media/width.php:19
|
206 |
msgid "Width"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: ../classes/column.php:1314
|
210 |
msgid "default"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: ../classes/column.php:1315
|
214 |
msgid "auto"
|
215 |
msgstr ""
|
216 |
|
289 |
msgid "Author IP"
|
290 |
msgstr ""
|
291 |
|
292 |
+
#: ../classes/column/comment/author-name.php:12
|
293 |
+
msgid "Author name"
|
294 |
+
msgstr ""
|
295 |
+
|
296 |
#: ../classes/column/comment/author-url.php:19
|
297 |
msgid "Author url"
|
298 |
msgstr ""
|
317 |
msgstr ""
|
318 |
|
319 |
#: ../classes/column/comment/excerpt.php:19
|
320 |
+
#: ../classes/column/post/content.php:19
|
321 |
+
msgid "Content"
|
|
|
322 |
msgstr ""
|
323 |
|
324 |
#: ../classes/column/comment/reply-to.php:19
|
325 |
msgid "In Reply To"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: ../classes/column/comment/user.php:11 ../classes/storage_model/user.php:14
|
329 |
+
msgid "User"
|
330 |
+
msgstr ""
|
331 |
+
|
332 |
#: ../classes/column/comment/word-count.php:19
|
333 |
#: ../classes/column/post/word-count.php:19
|
334 |
msgid "Word count"
|
356 |
msgid "Counter"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: ../classes/column/custom-field.php:99 ../classes/column/post/excerpt.php:19
|
360 |
+
#: ../classes/settings.php:315
|
361 |
+
msgid "Excerpt"
|
362 |
+
msgstr ""
|
363 |
+
|
364 |
#: ../classes/column/custom-field.php:100 ../classes/column/link/image.php:19
|
365 |
#: ../classes/settings.php:314
|
366 |
msgid "Image"
|
586 |
msgid "Select which comment status you like to display."
|
587 |
msgstr ""
|
588 |
|
|
|
|
|
|
|
|
|
589 |
#: ../classes/column/post/date-published.php:17
|
590 |
msgid "Date Published"
|
591 |
msgstr ""
|
750 |
msgid "Post Count"
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: ../classes/column/user/post-count.php:89
|
754 |
msgid "Post Type"
|
755 |
msgstr ""
|
756 |
|
766 |
msgid "Url"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: ../classes/review_notice.php:55 ../classes/settings.php:170
|
770 |
+
#: ../classes/settings.php:589 ../classes/upgrade.php:135
|
771 |
+
msgid "Admin Columns"
|
772 |
+
msgstr ""
|
773 |
+
|
774 |
+
#: ../classes/review_notice.php:58
|
775 |
+
msgid "Admin Columns Pro"
|
776 |
+
msgstr ""
|
777 |
+
|
778 |
+
#: ../classes/review_notice.php:65
|
779 |
+
#, php-format
|
780 |
+
msgid ""
|
781 |
+
"We don't mean to bug you, but you've been using %s for some time now, and we "
|
782 |
+
"were wondering if you're happy with the plugin. If so, could you please "
|
783 |
+
"leave a review at wordpress.org? If you're not happy with %s, please %s."
|
784 |
+
msgstr ""
|
785 |
+
|
786 |
+
#: ../classes/review_notice.php:68
|
787 |
+
msgid "click here"
|
788 |
+
msgstr ""
|
789 |
+
|
790 |
+
#: ../classes/review_notice.php:72
|
791 |
+
msgid "Leave a review!"
|
792 |
+
msgstr ""
|
793 |
+
|
794 |
+
#: ../classes/review_notice.php:73
|
795 |
+
msgid "Permanently hide notice"
|
796 |
+
msgstr ""
|
797 |
+
|
798 |
+
#: ../classes/review_notice.php:80
|
799 |
+
#, php-format
|
800 |
+
msgid ""
|
801 |
+
"We're sorry to hear that; maybe we can help! If you're having problems "
|
802 |
+
"properly setting up %s or if you would like help with some more advanced "
|
803 |
+
"features, please visit our %s."
|
804 |
+
msgstr ""
|
805 |
+
|
806 |
+
#: ../classes/review_notice.php:82
|
807 |
+
msgid "documentation page"
|
808 |
+
msgstr ""
|
809 |
+
|
810 |
+
#: ../classes/review_notice.php:86
|
811 |
+
#, php-format
|
812 |
msgid ""
|
813 |
+
"As an Admin Columns Pro user, you can also use your AdminColumns.com account "
|
814 |
+
"to access product support through %s!"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: ../classes/review_notice.php:87
|
818 |
+
msgid "our forums"
|
819 |
msgstr ""
|
820 |
|
821 |
+
#: ../classes/review_notice.php:91
|
822 |
+
#, php-format
|
823 |
+
msgid "You can also find help on the %s, and %s."
|
824 |
+
msgstr ""
|
825 |
+
|
826 |
+
#: ../classes/review_notice.php:92
|
827 |
+
msgid "Admin Columns forums on WordPress.org"
|
828 |
+
msgstr ""
|
829 |
+
|
830 |
+
#: ../classes/review_notice.php:93
|
831 |
+
msgid "find answers to some frequently asked questions"
|
832 |
msgstr ""
|
833 |
|
834 |
#: ../classes/settings.php:112
|
843 |
msgid "Admin Columns Settings"
|
844 |
msgstr ""
|
845 |
|
|
|
|
|
|
|
|
|
|
|
846 |
#: ../classes/settings.php:220
|
847 |
#, php-format
|
848 |
msgid "%s column is already present and can not be duplicated."
|
1322 |
msgid "Users"
|
1323 |
msgstr ""
|
1324 |
|
|
|
|
|
|
|
|
|
1325 |
#: ../classes/upgrade.php:62
|
1326 |
msgid ""
|
1327 |
"The pro add-on is no longer supported. Please login to your account and "
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: codepress, tschutter, davidmosterd, engelen
|
|
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: 3.5
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.4.
|
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 |
|
@@ -212,6 +212,12 @@ You can find a list of the available actions and filters (and examples on how to
|
|
212 |
|
213 |
== Changelog ==
|
214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
= 2.4.1 =
|
216 |
* [Added] Added the development filter 'cac/menu_types' to add custom menu types
|
217 |
* [Added] Added public method set_menu_type() to the storage model
|
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: 3.5
|
6 |
+
Tested up to: 4.2.1
|
7 |
+
Stable tag: 2.4.2
|
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 |
|
212 |
|
213 |
== Changelog ==
|
214 |
|
215 |
+
= 2.4.2 =
|
216 |
+
* [Added] Added new comment columns: type, author and user.
|
217 |
+
* [Added] Width indicator text is darker
|
218 |
+
* [Fixed] Remove ' symbol from column label, because it causing issues when sorting
|
219 |
+
* [Fixed] Review notice will only show on admin columns page and with an improved hide button
|
220 |
+
|
221 |
= 2.4.1 =
|
222 |
* [Added] Added the development filter 'cac/menu_types' to add custom menu types
|
223 |
* [Added] Added public method set_menu_type() to the storage model
|