Plugin Directory

Changeset 1264693


Ignore:
Timestamp:
10/13/2015 07:48:08 AM (10 years ago)
Author:
codepress
Message:

2.4.7

Location:
codepress-admin-columns
Files:
269 added
30 deleted
101 edited

Legend:

Unmodified
Added
Removed
  • codepress-admin-columns/trunk/api.php

    r1136036 r1264693  
    1919 */
    2020function ac_register_columns( $storage_model, $columns ) {
    21     global $_cac_exported_columns;
     21    global $cpac;
    2222
    2323    $storage_models = (array) $storage_model;
    2424
    2525    foreach ( $storage_models as $storage_model ) {
    26         if ( isset( $_cac_exported_columns[ $storage_model ] ) ) {
    27             $_cac_exported_columns[ $storage_model ] = array_merge( $_cac_exported_columns[ $storage_model ], $columns );
     26        if ( isset( $cpac->exported_columns[ $storage_model ] ) ) {
     27            $cpac->exported_columns[ $storage_model ] = array_merge( $cpac->exported_columns[ $storage_model ], $columns );
    2828        }
    2929        else {
    30             $_cac_exported_columns[ $storage_model ] = $columns;
     30            $cpac->exported_columns[ $storage_model ] = $columns;
    3131        }
    3232    }
  • codepress-admin-columns/trunk/assets/css/admin-column.css

    r1152870 r1264693  
    325325  border: none;
    326326  background: #fcfcfc;
     327}
     328.cpac-column .column-form table tr.hide {
     329  display: none;
    327330}
    328331.cpac-column .column-form table tr td {
     
    626629  -moz-border-top-colors: none;
    627630  background: none repeat scroll 0 0 transparent;
    628   border-color: #dfdfdf -moz-use-text-color -moz-use-text-color;
     631  border-color: #DFDFDF -moz-use-text-color -moz-use-text-color;
    629632  border-image: none;
    630633  border-right: 0 none;
     
    789792  text-decoration: none;
    790793}
     794.columns-right .sidebox#pro-version .inside ul li.acf a {
     795  background-color: #5ee8bf;
     796  color: #808080;
     797}
    791798.columns-right .sidebox#pro-version .inside p {
    792799  color: #fff;
     
    800807  font-size: 15px;
    801808  text-decoration: none;
     809}
     810.columns-right .sidebox#add-acf {
     811  background-color: #5ee8bf;
     812}
     813.columns-right .sidebox#add-acf h3 {
     814  padding: 0;
     815}
     816.columns-right .sidebox#add-acf h3 a {
     817  color: #fff;
     818  text-decoration: none;
     819  font-size: 15px;
    802820}
    803821.columns-right .sidebox#direct-feedback #feedback-support,
  • codepress-admin-columns/trunk/assets/css/admin-column.min.css

    r1152870 r1264693  
    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{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,a.help{height:16px;width: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;display:inline-block;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;display:inline-block}.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;display:inline-block}.icon-no,.icon-yes{display:inline-block;position:relative}.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;top:2px}.icon-no{background:url(../images/no.png) no-repeat;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{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.hide{display:none}.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 ul li.acf a{background-color:#5ee8bf;color:grey}.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#add-acf{background-color:#5ee8bf}.columns-right .sidebox#add-acf h3{padding:0}.columns-right .sidebox#add-acf h3 a{color:#fff;text-decoration:none;font-size:15px}.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}
  • codepress-admin-columns/trunk/assets/css/column.min.css

    r1136036 r1264693  
    1 .cpac-divider{display:inline-block;width:14px;height:12px;background:url(../images/square.png)50% 7px no-repeat}span.status-closed{color:red}.tablenav.top .cpac-edit{top:0;display:inline-block;vertical-align:bottom}.cpac-rounded{display:inline-block;border-radius:10px;min-width:8px;padding:0 6px;height:20px;background-color:#e0e0e0;text-align:center;margin-left:8px;font-size:12px}.cpac-column-value-image{display:inline-block;background:0 0;margin-right:2px;overflow:hidden}.rtl .cpac-column-value-image{margin-left:2px;margin-right:0}.cpac-column-value-image img{display:block;margin:0 auto}.column-column-attachment img{padding-right:5px;padding-bottom:4px}.rtl .column-column-attachment img{padding-left:5px;padding-right:0}div.cpac-color{line-height:26px}div.cpac-color span{display:block;-webkit-border-radius:3px;border-radius:3px;color:#fff;float:left;height:16px;line-height:16px;margin-right:12px;overflow:hidden;padding:4px 5px;font-size:10px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;min-width:47px;text-align:center}.rtl div.cpac-color span{float:right;margin-left:12px;margin-right:0}div.sizes span.not-available{color:#999}.button.cpac-button-action{position:relative;text-indent:9999px;margin-right:4px;padding:0 13px}.button.cpac-button-action:before{position:absolute;top:0;left:0;width:100%;height:100%;text-indent:0}.cpac-tip{display:inline-block}.qtip.qtip-tipsy{background:rgba(0,0,0,.75);font-weight:400;min-width:25px}
     1.cpac-divider{display:inline-block;width:14px;height:12px;background:url(../images/square.png) 50% 7px no-repeat}span.status-closed{color:red}.tablenav.top .cpac-edit{top:0;display:inline-block;vertical-align:bottom}.cpac-rounded{display:inline-block;border-radius:10px;min-width:8px;padding:0 6px;height:20px;background-color:#e0e0e0;text-align:center;margin-left:8px;font-size:12px}.cpac-column-value-image{display:inline-block;background:0 0;margin-right:2px;overflow:hidden}.rtl .cpac-column-value-image{margin-left:2px;margin-right:0}.cpac-column-value-image img{display:block;margin:0 auto}.column-column-attachment img{padding-right:5px;padding-bottom:4px}.rtl .column-column-attachment img{padding-left:5px;padding-right:0}div.cpac-color{line-height:26px}div.cpac-color span{display:block;-webkit-border-radius:3px;border-radius:3px;color:#fff;float:left;height:16px;line-height:16px;margin-right:12px;overflow:hidden;padding:4px 5px;font-size:10px;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;min-width:47px;text-align:center}.rtl div.cpac-color span{float:right;margin-left:12px;margin-right:0}div.sizes span.not-available{color:#999}.button.cpac-button-action{position:relative;text-indent:9999px;margin-right:4px;padding:0 13px}.button.cpac-button-action:before{position:absolute;top:0;left:0;width:100%;height:100%;text-indent:0}.cpac-tip{display:inline-block}.qtip.qtip-tipsy{background:rgba(0,0,0,.75);font-weight:400;min-width:25px}
  • codepress-admin-columns/trunk/assets/js/admin-settings.js

    r1136036 r1264693  
    749749
    750750/*
    751  * Radio Click events
     751 * Optional Radio Click events
    752752 *
    753753 */
     
    757757    var inputs = column.find('[data-toggle-id] label');
    758758
    759     // Enable editing: radio button
    760     inputs.click( function(){
     759    inputs.on( 'click', function(){
    761760
    762761        var id = jQuery( this ).closest('td.input').data('toggle-id');
     762        var state = jQuery( 'input', this ).val();
     763
     764        // Toggle indicator icon
    763765        var label = column.find('[data-indicator-id="' + id + '"]' ).removeClass( 'on' );
    764         var status = jQuery( 'input', this ).val();
    765 
    766         if ( 'on' == status ) {
     766        if ( 'on' == state ) {
    767767            label.addClass( 'on' );
     768        }
     769
     770        // Toggle additional options
     771        var additional = column.find('[data-additional-option-id="' + id + '"]' ).addClass( 'hide' );
     772        if ( 'on' == state ) {
     773            additional.removeClass( 'hide' );
     774        }
     775    });
     776
     777    // Hide additonal options on ready
     778    column.find('[data-toggle-id]').each( function(){
     779        var additional = column.find('[data-additional-option-id="' + jQuery( this ).data('toggle-id') + '"]' ).addClass( 'hide' );
     780        if ( 'on' == jQuery( 'input:checked', this ).val() ) {
     781            additional.removeClass( 'hide' );
    768782        }
    769783    });
  • codepress-admin-columns/trunk/assets/js/admin-settings.min.js

    r1148953 r1264693  
    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))})};
     1function 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"),i={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==t&&(i={at:"right middle",my:"left middle",edge:"left"}),e.pointer({content:jQuery("#"+n).html(),position:i,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+i.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).hasClass("ui-sortable")?jQuery(this).sortable("refresh"):jQuery(this).sortable({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 i=t.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current"),jQuery(".columns-container").hide(),jQuery(this).addClass("current");var c=jQuery('.columns-container[data-type="'+i+'"]').show(),a=c.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"),i=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var c=jQuery("optgroup",this).children(":selected"),a=c.val(),o=c.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="'+i+'"]').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="'+i+'"]').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 c=e.find(".column-meta span.width");c.on("update",function(){var n=e.find("input.width").val(),t=e.find("input.unit").filter(":checked").val();n>0?jQuery(this).text(n+t):jQuery(this).text("")});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(),c.trigger("update")});var o=e.find("input.width").on("keyup",function(){e.column_width_slider(),jQuery(this).trigger("validate"),c.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"),i=t.filter(":checked").val(),c=n.val(),a=e.find(".width-slider"),o=jQuery(this).find(".column-meta span.width");"%"==i&&c>100&&(c=100),n.val(c),a.slider({range:"min",min:0,max:"%"==i?100:500,value:c,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 i=jQuery(this).clone();return i.cpac_update_clone_id(e.attr("data-type")),jQuery(this).after(i),i.column_bind_toggle(),i.column_bind_remove(),i.column_bind_clone(),i.column_bind_events(),cpac_sortable(),jQuery(document).trigger("column_add",i),i},jQuery.fn.cpac_update_clone_id=function(e){var n=jQuery(this),t=n.attr("data-type"),i=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),c=jQuery(i).find('*[data-type="'+t+'"]').not(n),a=jQuery.map(c,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 i=t+"-"+r;jQuery(n).attr("name")&&jQuery(n).attr("name",jQuery(n).attr("name").replace(t+l,i)),jQuery(n).attr("for")&&jQuery(n).attr("for",jQuery(n).attr("for").replace(t+l,i)),jQuery(n).attr("id")&&jQuery(n).attr("id",jQuery(n).attr("id").replace(t+l,i))})}},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.on("click",function(){var n=jQuery(this).closest("td.input").data("toggle-id"),t=jQuery("input",this).val(),i=e.find('[data-indicator-id="'+n+'"]').removeClass("on");"on"==t&&i.addClass("on");var c=e.find('[data-additional-option-id="'+n+'"]').addClass("hide");"on"==t&&c.removeClass("hide")}),e.find("[data-toggle-id]").each(function(){var n=e.find('[data-additional-option-id="'+jQuery(this).data("toggle-id")+'"]').addClass("hide");"on"==jQuery("input:checked",this).val()&&n.removeClass("hide")})},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))})};
  • codepress-admin-columns/trunk/classes/addons.php

    r1136036 r1264693  
    4242        }
    4343
    44         if ( ! class_exists('CAC_Addon_Pro') ) {
     44        if ( ! class_exists( 'CAC_Addon_Pro', false ) ) {
    4545            cpac_admin_message( 'You need Admin Columns Pro.', 'error' );
    4646            return;
     
    108108
    109109        $addon_groups = array(
    110             'integration' => __( 'Plugins', 'cpac' )
     110            'integration' => __( 'Plugins', 'codepress-admin-columns' )
    111111        );
    112112
     
    133133        $addons = array(
    134134            'cac-addon-acf' => array(
    135                 'title'         => __( 'Advanced Custom Fields', 'cpac' ),
    136                 'description'   => __( 'Display and edit Advanced Custom Fields fields in the posts overview in seconds!', 'cpac' ),
     135                'title'         => __( 'Advanced Custom Fields', 'codepress-admin-columns' ),
     136                'description'   => __( 'Display and edit Advanced Custom Fields fields in the posts overview in seconds!', 'codepress-admin-columns' ),
    137137                'group'         => 'integration',
    138138                'image'         => CPAC_URL . 'assets/images/addons/acf.png'
    139139            ),
    140140            'cac-addon-woocommerce' => array(
    141                 'title'         => __( 'WooCommerce', 'cpac' ),
    142                 'description'   => __( 'Enhance the products, orders and coupons overviews with new columns and inline editing.', 'cpac' ),
     141                'title'         => __( 'WooCommerce', 'codepress-admin-columns' ),
     142                'description'   => __( 'Enhance the products, orders and coupons overviews with new columns and inline editing.', 'codepress-admin-columns' ),
    143143                'group'         => 'integration',
    144144                'image'         => CPAC_URL . 'assets/images/addons/woocommerce.png'
  • codepress-admin-columns/trunk/classes/column.php

    r1220017 r1264693  
    3434     */
    3535    public $properties = array();
     36
     37    /**
     38     * @since 2.4.7
     39     */
     40    protected $filtering_model;
    3641
    3742    /**
     
    159164        );
    160165
     166        // @since 2.4.7
     167        $default_properties = apply_filters( 'cac/column/default_properties', $default_properties );
     168
    161169        foreach ( $default_properties as $property => $value ) {
    162170            $this->properties[ $property ] = $value;
     
    208216         * @param CPAC_Storage_Model $storage_model Storage Model class instance
    209217         */
    210         $this->properties = apply_filters( 'cac/column/properties', $this->properties ); // do not pass $this because object is not ready
     218        $this->properties = apply_filters( 'cac/column/properties', $this->properties, $this ); // do not pass $this because object is not ready
    211219
    212220        /**
     
    217225         * @see Filter cac/column/properties
    218226         */
    219         $this->properties = apply_filters( "cac/column/properties/storage_key={$this->storage_model->key}", $this->properties ); // do not pass $this because object is not ready
     227        $this->properties = apply_filters( "cac/column/properties/storage_key={$this->storage_model->key}", $this->properties, $this ); // do not pass $this because object is not ready
    220228
    221229        // Column label defaults to column type label
     
    266274
    267275    /**
     276     * @since 2.4.7
     277     */
     278    public function set_filter( $filtering_model ) {
     279        $this->filtering_model = $filtering_model;
     280
     281        return $this;
     282    }
     283
     284    /**
     285     * @since 2.4.7
     286     */
     287    public function get_filter() {
     288        return $this->filtering_model;
     289    }
     290
     291    /**
    268292     * @param int $id
    269293     * @return object
     
    382406     * @return string Attribute Name
    383407     */
     408    public function get_attr_id( $field_name ) {
     409        return "cpac-{$this->storage_model->key}-{$this->properties->name}-{$field_name}";
     410    }
    384411    public function attr_id( $field_name ) {
    385         echo "cpac-{$this->storage_model->key}-{$this->properties->name}-{$field_name}";
     412        echo $this->get_attr_id( $field_name );
    386413    }
    387414
     
    595622    public function get_all_image_sizes() {
    596623        $image_sizes = array(
    597             'thumbnail' =>  __( "Thumbnail", 'cpac' ),
    598             'medium'    =>  __( "Medium", 'cpac' ),
    599             'large'     =>  __( "Large", 'cpac' ),
    600             'full'      =>  __( "Full", 'cpac' )
     624            'thumbnail' =>  __( "Thumbnail", 'codepress-admin-columns' ),
     625            'medium'    =>  __( "Medium", 'codepress-admin-columns' ),
     626            'large'     =>  __( "Large", 'codepress-admin-columns' ),
     627            'full'      =>  __( "Full", 'codepress-admin-columns' )
    601628        );
    602629
     
    10151042
    10161043        return $name;
     1044    }
     1045
     1046    /**
     1047     * @since 2.4.7
     1048     */
     1049    public function get_filter_operator_label( $name ) {
     1050        $operators = $this->get_filter_operators();
     1051        return isset( $operators[ $name ] ) ? $operators[ $name ] : false;
     1052    }
     1053
     1054    /**
     1055     * @since 2.4.7
     1056     */
     1057    public function get_filter_operators() {
     1058        $operators = array(
     1059            '' => __( 'Exact match', 'codepress-admin-columns' ),
     1060            '<=' => __( 'Lesser than', 'codepress-admin-columns' ),
     1061            '>=' => __( 'Greater than', 'codepress-admin-columns' ),
     1062            'between' => __( 'Between', 'codepress-admin-columns' ),
     1063        );
     1064        return $operators;
    10171065    }
    10181066
     
    10391087
    10401088        $field_key      = 'date_format';
    1041         $label          = __( 'Date Format', 'cpac' );
    1042         $description    = __( 'This will determine how the date will be displayed.', 'cpac' );
     1089        $label          = __( 'Date Format', 'codepress-admin-columns' );
     1090        $description    = __( 'This will determine how the date will be displayed.', 'codepress-admin-columns' );
    10431091
    10441092        ?>
     
    10461094            <?php $this->label_view( $label, $description, $field_key ); ?>
    10471095            <td class="input">
    1048                 <input type="text" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>" value="<?php echo $this->options->date_format; ?>" placeholder="<?php _e( 'Example:', 'cpac' ); ?> d M Y H:i"/>
     1096                <input type="text" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>" value="<?php echo $this->options->date_format; ?>" placeholder="<?php _e( 'Example:', 'codepress-admin-columns' ); ?> d M Y H:i"/>
    10491097                <p class="description">
    1050                     <?php printf( __( 'Leave empty for WordPress date format, change your <a href="%s">default date format here</a>.' , 'cpac' ), admin_url( 'options-general.php' ) . '#date_format_custom_radio' ); ?>
    1051                     <a target='_blank' href='http://codex.wordpress.org/Formatting_Date_and_Time'><?php _e( 'Documentation on date and time formatting.', 'cpac' ); ?></a>
     1098                    <?php printf( __( "Leave empty for WordPress date format, change your <a href='%s'>default date format here</a>." , 'codepress-admin-columns' ), admin_url( 'options-general.php' ) . '#date_format_custom_radio' ); ?>
     1099                    <a target='_blank' href='http://codex.wordpress.org/Formatting_Date_and_Time'><?php _e( 'Documentation on date and time formatting.', 'codepress-admin-columns' ); ?></a>
    10521100                </p>
    10531101            </td>
     
    10631111
    10641112        $field_key      = 'excerpt_length';
    1065         $label          = __( 'Excerpt length', 'cpac' );
    1066         $description    = __( 'Number of words', 'cpac' );
     1113        $label          = __( 'Excerpt length', 'codepress-admin-columns' );
     1114        $description    = __( 'Number of words', 'codepress-admin-columns' );
    10671115
    10681116        ?>
     
    10821130
    10831131        $field_key      = 'image_size';
    1084         $label          = __( 'Preview size', 'cpac' );
     1132        $label          = __( 'Preview size', 'codepress-admin-columns' );
    10851133
    10861134        ?>
     
    10991147                <div class="custom_image_size">
    11001148                    <label for="<?php $this->attr_id( $field_key ); ?>-custom" class="custom-size image-size-custom" >
    1101                         <input type="radio" value="cpac-custom" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-custom"<?php checked( $this->options->image_size, 'cpac-custom' ); ?>><?php _e( 'Custom', 'cpac' ); ?>
     1149                        <input type="radio" value="cpac-custom" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-custom"<?php checked( $this->options->image_size, 'cpac-custom' ); ?>><?php _e( 'Custom', 'codepress-admin-columns' ); ?>
    11021150                    </label>
    11031151                    <label for="<?php $this->attr_id( $field_key ); ?>-w" class="custom-size-w<?php echo $this->options->image_size != 'cpac-custom' ? ' hidden' : ''; ?>">
    1104                         <input type="text" name="<?php $this->attr_name( 'image_size_w' ); ?>" id="<?php $this->attr_id( $field_key ); ?>-w" value="<?php echo $this->options->image_size_w; ?>" /><?php _e( 'width', 'cpac' ); ?>
     1152                        <input type="text" name="<?php $this->attr_name( 'image_size_w' ); ?>" id="<?php $this->attr_id( $field_key ); ?>-w" value="<?php echo $this->options->image_size_w; ?>" /><?php _e( 'width', 'codepress-admin-columns' ); ?>
    11051153                    </label>
    11061154                    <label for="<?php $this->attr_id( $field_key ); ?>-h" class="custom-size-h<?php echo $this->options->image_size != 'cpac-custom' ? ' hidden' : ''; ?>">
    1107                         <input type="text" name="<?php $this->attr_name( 'image_size_h' ); ?>" id="<?php $this->attr_id( $field_key ); ?>-h" value="<?php echo $this->options->image_size_h; ?>" /><?php _e( 'height', 'cpac' ); ?>
     1155                        <input type="text" name="<?php $this->attr_name( 'image_size_h' ); ?>" id="<?php $this->attr_id( $field_key ); ?>-h" value="<?php echo $this->options->image_size_h; ?>" /><?php _e( 'height', 'codepress-admin-columns' ); ?>
    11081156                    </label>
    11091157                </div>
     
    11171165     */
    11181166    public function display_field_before_after() {
    1119         $this->display_field_text( 'before', __( "Before", 'cpac' ), __( 'This text will appear before the custom field value.', 'cpac' ) );
    1120         $this->display_field_text( 'after', __( "After", 'cpac' ), __( 'This text will appear after the custom field value.', 'cpac' ) );
     1167        $this->display_field_text( 'before', __( "Before", 'codepress-admin-columns' ), __( 'This text will appear before the custom field value.', 'codepress-admin-columns' ) );
     1168        $this->display_field_text( 'after', __( "After", 'codepress-admin-columns' ), __( 'This text will appear after the custom field value.', 'codepress-admin-columns' ) );
    11211169    }
    11221170
     
    11271175
    11281176        $nametypes = array(
    1129             'display_name'      => __( 'Display Name', 'cpac' ),
    1130             'first_name'        => __( 'First Name', 'cpac' ),
    1131             'last_name'         => __( 'Last Name', 'cpac' ),
    1132             'nickname'          => __( 'Nickname', 'cpac' ),
    1133             'user_login'        => __( 'User Login', 'cpac' ),
    1134             'user_email'        => __( 'User Email', 'cpac' ),
    1135             'ID'                => __( 'User ID', 'cpac' ),
    1136             'first_last_name'   => __( 'First and Last Name', 'cpac' ),
     1177            'display_name'      => __( 'Display Name', 'codepress-admin-columns' ),
     1178            'first_name'        => __( 'First Name', 'codepress-admin-columns' ),
     1179            'last_name'         => __( 'Last Name', 'codepress-admin-columns' ),
     1180            'nickname'          => __( 'Nickname', 'codepress-admin-columns' ),
     1181            'user_login'        => __( 'User Login', 'codepress-admin-columns' ),
     1182            'user_email'        => __( 'User Email', 'codepress-admin-columns' ),
     1183            'ID'                => __( 'User ID', 'codepress-admin-columns' ),
     1184            'first_last_name'   => __( 'First and Last Name', 'codepress-admin-columns' ),
    11371185        );
    11381186
    1139         $this->display_field_select( 'display_author_as', __( 'Display format', 'cpac' ), $nametypes, __( 'This is the format of the author name.', 'cpac' ) );
     1187        $this->display_field_select( 'display_author_as', __( 'Display format', 'codepress-admin-columns' ), $nametypes, __( 'This is the format of the author name.', 'codepress-admin-columns' ) );
    11401188    }
    11411189
     
    11431191     * @since 2.3.4
    11441192     * @param string $name Name of the column option
    1145      * @return string $label Label
    1146      * @return array $options Select options
    1147      * @return strong $description (optional) Description below the label
    1148      */
    1149     public function display_field_select( $name, $label, $options = array(), $description = '' ) {
     1193     * @param string $label Label
     1194     * @param array $options Select options
     1195     * @param strong $description (optional) Description below the label
     1196     */
     1197    public function display_field_select( $name, $label, $options = array(), $description = '', $optional_toggle_id = '' ) {
    11501198        $current = $this->get_option( $name );
     1199        $data_optional = $optional_toggle_id ? ' data-additional-option-id="' . $this->get_attr_id( $optional_toggle_id ) . '"' : '';
    11511200        ?>
    1152         <tr class="column-<?php echo $name; ?>">
     1201        <tr class="column-<?php echo $name; ?>" <?php echo $data_optional; ?>>
    11531202            <?php $this->label_view( $label, $description, $name ); ?>
    11541203            <td class="input">
     
    11661215     * @since 2.3.4
    11671216     * @param string $name Name of the column option
    1168      * @return string $label Label
    1169      * @return array $options Select options
    1170      * @return strong $description (optional) Description below the label
     1217     * @param string $label Label
     1218     * @param array $options Select options
     1219     * @param strong $description (optional) Description below the label
    11711220     */
    11721221    public function display_field_text( $name, $label, $description = '' ) {
     
    11821231
    11831232    /**
    1184      * @since NEWVERSION
     1233     * @since 2.4.7
    11851234     *
    11861235     * @param string $name Name of the column option
    1187      * @return string $label Label
    1188      * @return array $options Select options
    1189      * @return strong $description (optional) Description below the label
    1190      */
    1191     public function display_field_radio( $name, $label, $options = array(), $description = '' ) {
     1236     * @param string $label Label
     1237     * @param array $options Select options
     1238     * @param strong $description (optional) Description below the label
     1239     * @param string $optional_toggle_id (optional) Toggle ID will hide the row untill the toggle is triggered
     1240     */
     1241    public function display_field_radio( $name, $label, $options = array(), $description = '', $optional_toggle_id = '' ) {
    11921242        $current = $this->get_option( $name );
     1243        $data_optional = $optional_toggle_id ? ' data-additional-option-id="' . $this->get_attr_id( $optional_toggle_id ) . '"' : '';
    11931244        ?>
    1194         <tr class="column-<?php echo $name; ?>">
     1245        <tr class="column-<?php echo $name; ?>" <?php echo $data_optional; ?>>
    11951246            <?php $this->label_view( $label, $description, $name ); ?>
    11961247            <td class="input">
     
    12751326                                    <div class="meta">
    12761327
    1277                                         <span title="<?php echo esc_attr( __( 'width', 'cpac' ) ); ?>" class="width" data-indicator-id="">
     1328                                        <span title="<?php echo esc_attr( __( 'width', 'codepress-admin-columns' ) ); ?>" class="width" data-indicator-id="">
    12781329                                            <?php echo ! empty( $this->options->width ) ? $this->options->width . $this->options->width_unit : ''; ?>
    12791330                                        </span>
     
    12971348                                    </div>
    12981349                                    <a class="toggle" href="javascript:;"><?php echo stripslashes( $this->get_label() ); ?></a>
    1299                                     <a class="edit-button" href="javascript:;"><?php _e( 'Edit', 'cpac' ); ?></a>
     1350                                    <a class="edit-button" href="javascript:;"><?php _e( 'Edit', 'codepress-admin-columns' ); ?></a>
    13001351                                    <?php if ( $this->properties->is_cloneable ) : ?>
    1301                                         <a class="clone-button" href="#"><?php _e( 'Clone', 'cpac' ); ?></a>
     1352                                        <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a>
    13021353                                    <?php endif; ?>
    1303                                     <a class="remove-button" href="javascript:;"><?php _e( 'Remove', 'cpac' ); ?></a>
     1354                                    <a class="remove-button" href="javascript:;"><?php _e( 'Remove', 'codepress-admin-columns' ); ?></a>
    13041355                                </div>
    13051356                            </td>
     
    13191370                    <tbody>
    13201371                        <tr class="column_type">
    1321                             <?php $this->label_view( __( 'Type', 'cpac' ), __( 'Choose a column type.', 'cpac' ) . '<em>' . __( 'Type', 'cpac' ) . ': ' . $this->properties->type . '</em><em>' . __( 'Name', 'cpac' ) . ': ' . $this->properties->name . '</em>', 'type' ); ?>
     1372                            <?php $this->label_view( __( 'Type', 'codepress-admin-columns' ), __( 'Choose a column type.', 'codepress-admin-columns' ) . '<em>' . __( 'Type', 'codepress-admin-columns' ) . ': ' . $this->properties->type . '</em><em>' . __( 'Name', 'codepress-admin-columns' ) . ': ' . $this->properties->name . '</em>', 'type' ); ?>
    13221373                            <td class="input">
    13231374                                <select name="<?php $this->attr_name( 'type' ); ?>" id="<?php $this->attr_id( 'type' ); ?>">
     
    13291380
    13301381                        <tr class="column_label<?php echo $this->properties->hide_label ? ' hidden' : ''; ?>">
    1331                             <?php $this->label_view( __( 'Label', 'cpac' ), __( 'This is the name which will appear as the column header.', 'cpac' ), 'label' ); ?>
     1382                            <?php $this->label_view( __( 'Label', 'codepress-admin-columns' ), __( 'This is the name which will appear as the column header.', 'codepress-admin-columns' ), 'label' ); ?>
    13321383                            <td class="input">
    13331384                                <input class="text" type="text" name="<?php $this->attr_name( 'label' ); ?>" id="<?php $this->attr_id( 'label' ); ?>" value="<?php echo esc_attr( $this->options->label ); //echo sanitize_text_field( $this->options->label ); ?>" />
     
    13361387
    13371388                        <tr class="column_width">
    1338                             <?php $this->label_view( __( 'Width', 'cpac' ), '', 'width' ); ?>
     1389                            <?php $this->label_view( __( 'Width', 'codepress-admin-columns' ), '', 'width' ); ?>
    13391390                            <td class="input">
    1340                                 <div class="description" title="<?php _e( 'default', 'cpac' ); ?>">
    1341                                     <input class="width" type="text" placeholder="<?php _e( 'auto', 'cpac' ); ?>" name="<?php $this->attr_name( 'width' ); ?>" id="<?php $this->attr_id( 'width' ); ?>" value="<?php echo $this->options->width; ?>" />
     1391                                <div class="description" title="<?php _e( 'default', 'codepress-admin-columns' ); ?>">
     1392                                    <input class="width" type="text" placeholder="<?php _e( 'auto', 'codepress-admin-columns' ); ?>" name="<?php $this->attr_name( 'width' ); ?>" id="<?php $this->attr_id( 'width' ); ?>" value="<?php echo $this->options->width; ?>" />
    13421393                                    <span class="unit"><?php echo $this->options->width_unit; ?></span>
    13431394                                </div>
     
    13911442                                <p>
    13921443                                    <?php if ( $this->properties->is_cloneable ) : ?>
    1393                                         <a class="clone-button" href="#"><?php _e( 'Clone', 'cpac' ); ?></a>
     1444                                        <a class="clone-button" href="#"><?php _e( 'Clone', 'codepress-admin-columns' ); ?></a>
    13941445                                    <?php endif; ?>
    13951446                                    <a href="javascript:;" class="remove-button"><?php _e( 'Remove' );?></a>
     
    14041455        <?php
    14051456    }
     1457
     1458    /**
     1459     * Display settings field for post property to display
     1460     *
     1461     * @since 2.4.7
     1462     */
     1463    public function display_field_post_property_display() {
     1464        $this->display_field_select(
     1465            'post_property_display',
     1466            __( 'Property To Display', 'codepress-admin-columns' ),
     1467            array(
     1468                'title' => __( 'Title' ), // default
     1469                'id' => __( 'ID' ),
     1470                'author' => __( 'Author' )
     1471            ),
     1472            __( 'Post property to display for related post(s).', 'codepress-admin-columns' )
     1473        );
     1474    }
     1475
     1476    /**
     1477     * Display settings field for the page the posts should link to
     1478     *
     1479     * @since 2.4.7
     1480     */
     1481    public function display_field_post_link_to() {
     1482        $this->display_field_select(
     1483            'post_link_to',
     1484            __( 'Link To', 'codepress-admin-columns' ),
     1485            array(
     1486                '' => __( 'None' ),
     1487                'edit_post' => __( 'Edit Post' ),
     1488                'view_post' => __( 'View Post' ),
     1489                'edit_author' => __( 'Edit Post Author', 'codepress-admin-columns' ),
     1490                'view_author' => __( 'View Public Post Author Page', 'codepress-admin-columns' )
     1491            ),
     1492            __( 'Page the posts should link to.', 'codepress-admin-columns' )
     1493        );
     1494    }
     1495
     1496    /**
     1497     * @since 2.4.7
     1498     */
     1499    function display_settings_placeholder( $url ) { ?>
     1500        <div class="is-disabled">
     1501            <p>
     1502                <strong><?php printf( __( "The %s column is only available in Admin Columns Pro - Business or Developer.", 'codepress-admin-columns' ), $this->get_label() ); ?></strong>
     1503            </p>
     1504            <p>
     1505                <?php printf( __( "If you have a business or developer licence please download & install your %s add-on from the <a href='%s'>add-ons tab</a>.", 'codepress-admin-columns' ), $this->get_label(), admin_url( 'options-general.php?page=codepress-admin-columns&tab=addons' ) ); ?>
     1506            </p>
     1507            <p>
     1508                <?php printf( __( "Admin Columns Pro offers full %s integration, allowing you to easily display and edit %s fields from within your overview.", 'codepress-admin-columns' ), $this->get_label(), $this->get_label() ); ?>
     1509            </p>
     1510            <a href="<?php echo add_query_arg( array(
     1511                'utm_source' => 'plugin-installation',
     1512                'utm_medium' => $this->get_type(),
     1513                'utm_campaign' => 'plugin-installation'
     1514            ), $url ); ?>" class="button button-primary"><?php _e( 'Find out more', 'codepress-admin-columns' ); ?></a>
     1515        </div>
     1516        <?php
     1517    }
     1518
    14061519}
  • codepress-admin-columns/trunk/classes/column/acf-placeholder.php

    r1136036 r1264693  
    77class CPAC_Column_ACF_Placeholder extends CPAC_Column {
    88
    9     /**
    10      * @see CPAC_Column::init()
    11      * @since 2.2.1
    12      */
    139    public function init() {
    1410
     
    1713        // Properties
    1814        $this->properties['type']           = 'column-acf_placeholder';
    19         $this->properties['label']          = __( 'ACF Field', 'cpac' );
     15        $this->properties['label']          = __( 'Advanced Custom Field', 'codepress-admin-columns' );
    2016        $this->properties['is_pro_only']    = true;
     17        $this->properties['group']          = 'acf';
    2118    }
    2219
    23     /**
    24      * @see CPAC_Column::display_settings()
    25      * @since 2.2
    26      */
    27     function display_settings() {
    28 
    29         ?>
    30         <div class="is-disabled">
    31             <p>
    32                 <strong><?php _e( 'This feature is only available in Admin Columns Pro - Business or Developer.' ); ?></strong>
    33             </p>
    34             <p>
    35                 <?php printf( __( "If you have a developer licence please download & install your ACF add-on from the <a href='%s'>add-ons tab</a>.", 'cpac' ), admin_url( 'options-general.php?page=codepress-admin-columns&tab=addons' ) ); ?>
    36             </p>
    37             <p>
    38                 <?php _e( 'Admin Columns Pro - Developer offers full Advanced Custom Fields integeration, allowing you to easily display and edit ACF fields from within your posts overview.', 'cpac' ); ?>
    39             </p>
    40             <a href="<?php echo add_query_arg( array(
    41                 'utm_source' => 'plugin-installation',
    42                 'utm_medium' => 'acf-placeholder',
    43                 'utm_campaign' => 'plugin-installation'
    44             ), 'http://admincolumns.com/advanced-custom-fields-integration/' ); ?>" class="button button-primary"><?php _e( 'Find out more', 'cpac' ); ?></a>
    45         </div>
    46         <?php
     20    public  function display_settings() {
     21        $this->display_settings_placeholder( 'https://www.admincolumns.com/advanced-custom-fields-columns/' );
    4722    }
    48 
    4923}
  • codepress-admin-columns/trunk/classes/column/actions.php

    r1136036 r1264693  
    2727        // Properties
    2828        $this->properties['type'] = 'column-actions';
    29         $this->properties['label'] = __( 'Actions', 'cpac' );
     29        $this->properties['label'] = __( 'Actions', 'codepress-admin-columns' );
    3030
    3131        // Options
     
    9494        ?>
    9595        <tr class="column_editing">
    96             <?php $this->label_view( __( 'Use icons?', 'cpac' ), __( 'Use icons instead of text for displaying the actions.', 'cpac' ), 'use_icons' ); ?>
     96            <?php $this->label_view( __( 'Use icons?', 'codepress-admin-columns' ), __( 'Use icons instead of text for displaying the actions.', 'codepress-admin-columns' ), 'use_icons' ); ?>
    9797            <td class="input">
    9898                <label for="<?php $this->attr_id( 'use_icons' ); ?>-yes">
  • codepress-admin-columns/trunk/classes/column/comment/ID.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-comment_id';
    19         $this->properties['label']      = __( 'ID', 'cpac' );
     19        $this->properties['label']      = __( 'ID', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/agent.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-agent';
    19         $this->properties['label']   = __( 'Agent', 'cpac' );
     19        $this->properties['label']   = __( 'Agent', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/approved.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-approved';
    19         $this->properties['label']   = __( 'Approved', 'cpac' );
     19        $this->properties['label']   = __( 'Approved', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/author-avatar.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-author_avatar';
    19         $this->properties['label']   = __( 'Avatar', 'cpac' );
     19        $this->properties['label']   = __( 'Avatar', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/author-email.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-author_email';
    19         $this->properties['label']   = __( 'Author email', 'cpac' );
     19        $this->properties['label']   = __( 'Author email', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/author-ip.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-author_ip';
    19         $this->properties['label']   = __( 'Author IP', 'cpac' );
     19        $this->properties['label']   = __( 'Author IP', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/author-name.php

    r1148957 r1264693  
    1010        // Properties
    1111        $this->properties['type']    = 'column-author_name';
    12         $this->properties['label']   = __( 'Author name', 'cpac' );
     12        $this->properties['label']   = __( 'Author name', 'codepress-admin-columns' );
    1313    }
    1414
  • codepress-admin-columns/trunk/classes/column/comment/author-url.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-author_url';
    19         $this->properties['label']   = __( 'Author url', 'cpac' );
     19        $this->properties['label']   = __( 'Author url', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/author.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-author';
    19         $this->properties['label']   = __( 'Author', 'cpac' );
     19        $this->properties['label']   = __( 'Author', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/date-gmt.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-date_gmt';
    19         $this->properties['label']   = __( 'Date GMT', 'cpac' );
     19        $this->properties['label']   = __( 'Date GMT', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/date.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-date';
    19         $this->properties['label']   = __( 'Date', 'cpac' );
     19        $this->properties['label']   = __( 'Date', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/excerpt.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-excerpt';
    19         $this->properties['label']   = __( 'Content', 'cpac' );
     19        $this->properties['label']   = __( 'Content', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/comment/reply-to.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-reply_to';
    19         $this->properties['label']   = __( 'In Reply To', 'cpac' );
     19        $this->properties['label']   = __( 'In Reply To', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/comment/type.php

    r1148957 r1264693  
    1111        // Properties
    1212        $this->properties['type']       = 'column-type';
    13         $this->properties['label']      = __( 'Type', 'cpac' );
     13        $this->properties['label']      = __( 'Type', 'codepress-admin-columns' );
    1414    }
    1515
  • codepress-admin-columns/trunk/classes/column/comment/user.php

    r1148957 r1264693  
    99
    1010        $this->properties['type']    = 'column-user';
    11         $this->properties['label']   = __( 'User', 'cpac' );
     11        $this->properties['label']   = __( 'User', 'codepress-admin-columns' );
    1212    }
    1313
  • codepress-admin-columns/trunk/classes/column/comment/word-count.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-word_count';
    19         $this->properties['label']   = __( 'Word count', 'cpac' );
     19        $this->properties['label']   = __( 'Word count', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/custom-field.php

    r1220017 r1264693  
    2121        // Properties
    2222        $this->properties['type']           = 'column-meta';
    23         $this->properties['label']          = __( 'Custom Field', 'cpac' );
     23        $this->properties['label']          = __( 'Custom Field', 'codepress-admin-columns' );
    2424        $this->properties['classes']        = 'cpac-box-metafield';
    2525        $this->properties['is_cloneable']   = true;
     
    9393
    9494        $custom_field_types = array(
    95             ''              => __( 'Default', 'cpac' ),
    96             'checkmark'     => __( 'Checkmark (true/false)', 'cpac' ),
    97             'color'         => __( 'Color', 'cpac' ),
    98             'count'         => __( 'Counter', 'cpac' ),
    99             'date'          => __( 'Date', 'cpac' ),
     95            ''              => __( 'Default', 'codepress-admin-columns' ),
     96            'checkmark'     => __( 'Checkmark (true/false)', 'codepress-admin-columns' ),
     97            'color'         => __( 'Color', 'codepress-admin-columns' ),
     98            'count'         => __( 'Counter', 'codepress-admin-columns' ),
     99            'date'          => __( 'Date', 'codepress-admin-columns' ),
    100100            'excerpt'       => __( 'Excerpt'),
    101             'image'         => __( 'Image', 'cpac' ),
    102             'library_id'    => __( 'Media Library', 'cpac' ),
    103             'array'         => __( 'Multiple Values', 'cpac' ),
    104             'numeric'       => __( 'Numeric', 'cpac' ),
    105             'title_by_id'   => __( 'Post Title (Post ID\'s)', 'cpac' ),
    106             'user_by_id'    => __( 'Username (User ID\'s)', 'cpac' ),
    107             'term_by_id'    => __( 'Term Name (Term ID\'s)', 'cpac' ),
     101            'image'         => __( 'Image', 'codepress-admin-columns' ),
     102            'library_id'    => __( 'Media Library', 'codepress-admin-columns' ),
     103            'array'         => __( 'Multiple Values', 'codepress-admin-columns' ),
     104            'numeric'       => __( 'Numeric', 'codepress-admin-columns' ),
     105            'title_by_id'   => __( 'Post Title (Post ID\'s)', 'codepress-admin-columns' ),
     106            'user_by_id'    => __( 'Username (User ID\'s)', 'codepress-admin-columns' ),
     107            'term_by_id'    => __( 'Term Name (Term ID\'s)', 'codepress-admin-columns' ),
    108108        );
    109109
     
    377377
    378378    /**
    379      * @since NEWVERSION
     379     * @since 2.4.7
    380380     */
    381381    public function get_meta_keys() {
     
    389389    public function display_settings() { ?>
    390390        <tr class="column_field">
    391             <?php $this->label_view( __( "Custom Field", 'cpac' ), __( "Select your custom field.", 'cpac' ), 'field' ); ?>
     391            <?php $this->label_view( __( "Custom Field", 'codepress-admin-columns' ), __( "Select your custom field.", 'codepress-admin-columns' ), 'field' ); ?>
    392392            <td class="input">
    393393
     
    399399                </select>
    400400                <?php else : ?>
    401                     <?php _e( 'No custom fields available.', 'cpac' ); ?> <?php printf( __( 'Please create a %s item first.', 'cpac' ), '<em>' . $this->storage_model->singular_label . '</em>' ); ?>
     401                    <?php _e( 'No custom fields available.', 'codepress-admin-columns' ); ?> <?php printf( __( 'Please create a %s item first.', 'codepress-admin-columns' ), '<em>' . $this->storage_model->singular_label . '</em>' ); ?>
    402402                <?php endif; ?>
    403403
     
    406406
    407407        <tr class="column_field_type">
    408             <?php $this->label_view( __( "Field Type", 'cpac' ), __( 'This will determine how the value will be displayed.', 'cpac' ) . '<em>' . __( 'Type', 'cpac' ) . ': ' . $this->options->field_type . '</em>', 'field_type' ); ?>
     408            <?php $this->label_view( __( "Field Type", 'codepress-admin-columns' ), __( 'This will determine how the value will be displayed.', 'codepress-admin-columns' ) . '<em>' . __( 'Type', 'codepress-admin-columns' ) . ': ' . $this->options->field_type . '</em>', 'field_type' ); ?>
    409409            <td class="input">
    410410                <select name="<?php $this->attr_name( 'field_type' ); ?>" id="<?php $this->attr_id( 'field_type' ); ?>">
  • codepress-admin-columns/trunk/classes/column/link/ID.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-link_id';
    19         $this->properties['label']      = __( 'ID', 'cpac' );
     19        $this->properties['label']      = __( 'ID', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/link/actions.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-actions';
    19         $this->properties['label']      = __( 'Actions', 'cpac' );
     19        $this->properties['label']      = __( 'Actions', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/link/description.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-description';
    19         $this->properties['label']      = __( 'Description', 'cpac' );
     19        $this->properties['label']      = __( 'Description', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/link/image.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-image';
    19         $this->properties['label']      = __( 'Image', 'cpac' );
     19        $this->properties['label']      = __( 'Image', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/link/length.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-length';
    19         $this->properties['label']      = __( 'Length', 'cpac' );
     19        $this->properties['label']      = __( 'Length', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/link/notes.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-notes';
    19         $this->properties['label']      = __( 'Notes', 'cpac' );
     19        $this->properties['label']      = __( 'Notes', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/link/owner.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-owner';
    19         $this->properties['label']      = __( 'Owner', 'cpac' );
     19        $this->properties['label']      = __( 'Owner', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/link/rss.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-rss';
    19         $this->properties['label']      = __( 'Rss', 'cpac' );
     19        $this->properties['label']      = __( 'Rss', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/link/target.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-target';
    19         $this->properties['label']      = __( 'Target', 'cpac' );
     19        $this->properties['label']      = __( 'Target', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/ID.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type'] = 'column-mediaid';
    19         $this->properties['label'] = __( 'ID', 'cpac' );
     19        $this->properties['label'] = __( 'ID', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/alternate-text.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-alternate_text';
    19         $this->properties['label']   = __( 'Alt', 'cpac' );
     19        $this->properties['label']   = __( 'Alt', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/attached-to.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-attached_to';
    19         $this->properties['label']      = __( 'Attached to post', 'cpac' );
     19        $this->properties['label']      = __( 'Attached to post', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/available-sizes.php

    r1136036 r1264693  
    1818        // Properties
    1919        $this->properties['type']    = 'column-available_sizes';
    20         $this->properties['label']   = __( 'Available Sizes', 'cpac' );
     20        $this->properties['label']   = __( 'Available Sizes', 'codepress-admin-columns' );
    2121    }
    2222
     
    3838            $url        = wp_get_attachment_url( $id );
    3939            $filename   = basename( $url );
    40             $paths[]    = "<a title='{$filename}' href='{$url}'>" . __( 'full size', 'cpac' ) . "</a>";
     40            $paths[]    = "<a title='{$filename}' href='{$url}'>" . __( 'full size', 'codepress-admin-columns' ) . "</a>";
    4141
    4242            foreach ( $intersect as $size ) {
  • codepress-admin-columns/trunk/classes/column/media/caption.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-caption';
    19         $this->properties['label']   = __( 'Caption', 'cpac' );
     19        $this->properties['label']   = __( 'Caption', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/description.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-description';
    19         $this->properties['label']   = __( 'Description', 'cpac' );
     19        $this->properties['label']   = __( 'Description', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/dimensions.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-dimensions';
    19         $this->properties['label']      = __( 'Dimensions', 'cpac' );
     19        $this->properties['label']      = __( 'Dimensions', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/exif-data.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']           = 'column-exif_data';
    19         $this->properties['label']          = __( 'EXIF data', 'cpac' );
     19        $this->properties['label']          = __( 'EXIF data', 'codepress-admin-columns' );
    2020        $this->properties['is_cloneable']   = true;
    2121
     
    3636
    3737        $exif_types = array(
    38             'aperture'          => __( 'Aperture', 'cpac' ),
    39             'credit'            => __( 'Credit', 'cpac' ),
    40             'camera'            => __( 'Camera', 'cpac' ),
    41             'caption'           => __( 'Caption', 'cpac' ),
    42             'created_timestamp' => __( 'Timestamp', 'cpac' ),
    43             'copyright'         => __( 'Copyright EXIF', 'cpac' ),
    44             'focal_length'      => __( 'Focal Length', 'cpac' ),
    45             'iso'               => __( 'ISO', 'cpac' ),
    46             'shutter_speed'     => __( 'Shutter Speed', 'cpac' ),
    47             'title'             => __( 'Title', 'cpac' ),
     38            'aperture'          => __( 'Aperture', 'codepress-admin-columns' ),
     39            'credit'            => __( 'Credit', 'codepress-admin-columns' ),
     40            'camera'            => __( 'Camera', 'codepress-admin-columns' ),
     41            'caption'           => __( 'Caption', 'codepress-admin-columns' ),
     42            'created_timestamp' => __( 'Timestamp', 'codepress-admin-columns' ),
     43            'copyright'         => __( 'Copyright EXIF', 'codepress-admin-columns' ),
     44            'focal_length'      => __( 'Focal Length', 'codepress-admin-columns' ),
     45            'iso'               => __( 'ISO', 'codepress-admin-columns' ),
     46            'shutter_speed'     => __( 'Shutter Speed', 'codepress-admin-columns' ),
     47            'title'             => __( 'Title', 'codepress-admin-columns' ),
    4848        );
    4949
  • codepress-admin-columns/trunk/classes/column/media/file-name.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-file_name';
    19         $this->properties['label']      = __( 'File name', 'cpac' );
     19        $this->properties['label']      = __( 'File name', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/file-size.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-file_size';
    19         $this->properties['label']   = __( 'File size', 'cpac' );
     19        $this->properties['label']   = __( 'File size', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/full-path.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-full_path';
    19         $this->properties['label']   = __( 'Full path', 'cpac' );
     19        $this->properties['label']   = __( 'Full path', 'codepress-admin-columns' );
    2020
    2121        // Options
     
    8181
    8282        $field_key      = 'path_scope';
    83         $label          = __( 'Path scope', 'cpac' );
    84         $description    = __( 'Part of the file path to display', 'cpac' );
     83        $label          = __( 'Path scope', 'codepress-admin-columns' );
     84        $description    = __( 'Part of the file path to display', 'codepress-admin-columns' );
    8585
    8686        ?>
     
    9090                <label for="<?php $this->attr_id( $field_key ); ?>-full">
    9191                    <input type="radio" value="full" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-full"<?php checked( $this->options->path_scope, 'full' ); ?> />
    92                     <?php _e( 'Full path', 'cpac' ); ?>
     92                    <?php _e( 'Full path', 'codepress-admin-columns' ); ?>
    9393                </label>
    9494                <br/>
    9595                <label for="<?php $this->attr_id( $field_key ); ?>-relative-domain">
    9696                    <input type="radio" value="relative-domain" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-relative-domain"<?php checked( $this->options->path_scope, 'relative-domain' ); ?> />
    97                     <?php _e( 'Relative to domain', 'cpac' ); ?>
     97                    <?php _e( 'Relative to domain', 'codepress-admin-columns' ); ?>
    9898                </label>
    9999                <br/>
    100100                <label for="<?php $this->attr_id( $field_key ); ?>-relative-uploads">
    101101                    <input type="radio" value="relative-uploads" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-relative-uploads"<?php checked( $this->options->path_scope, 'relative-uploads' ); ?> />
    102                     <?php _e( 'Relative to main uploads folder ', 'cpac' ); ?>
     102                    <?php _e( 'Relative to main uploads folder ', 'codepress-admin-columns' ); ?>
    103103                </label>
    104104            </td>
  • codepress-admin-columns/trunk/classes/column/media/height.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-height';
    19         $this->properties['label']      = __( 'Height', 'cpac' );
     19        $this->properties['label']      = __( 'Height', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/mime-type.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type'] = 'column-mime_type';
    19         $this->properties['label'] = __( 'Mime type', 'cpac' );
     19        $this->properties['label'] = __( 'Mime type', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/media/width.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-width';
    19         $this->properties['label']      = __( 'Width', 'cpac' );
     19        $this->properties['label']      = __( 'Width', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/ID.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-postid';
    19         $this->properties['label']      = __( 'ID', 'cpac' );
     19        $this->properties['label']      = __( 'ID', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/attachment-count.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-attachment_count';
    19         $this->properties['label']   = __( 'No. of Attachments', 'cpac' );
     19        $this->properties['label']   = __( 'No. of Attachments', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/attachment.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-attachment';
    19         $this->properties['label']   = __( 'Attachments', 'cpac' );
     19        $this->properties['label']   = __( 'Attachments', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/post/author-name.php

    r1136036 r1264693  
    1818        // Properties
    1919        $this->properties['type']               = 'column-author_name';
    20         $this->properties['label']              = __( 'Display Author As', 'cpac' );
     20        $this->properties['label']              = __( 'Display Author As', 'codepress-admin-columns' );
    2121        $this->properties['is_cloneable']       = true;
    2222        $this->properties['object_property']    = 'post_author';
    2323
    2424        // Options
    25         $this->options['display_author_as'] = '';
     25        $this->options['display_author_as']     = '';
     26        $this->options['user_link_to']          = '';
    2627    }
    2728
     
    3637        if ( $user_id = $this->get_raw_value( $post_id ) ) {
    3738            $value = $this->get_display_name( $user_id );
     39        }
     40
     41        switch ( $this->get_option( 'user_link_to' ) ) {
     42            case 'edit_user':
     43                $link = get_edit_user_link( $user_id );
     44                break;
     45            case 'view_user_posts':
     46                $link = add_query_arg( array(
     47                    'post_type' => get_post_field( 'post_type', $post_id ),
     48                    'author' => get_the_author_meta( 'ID' )
     49                ), 'edit.php' );
     50                break;
     51            case 'view_author':
     52                $link = get_author_posts_url( $user_id );
     53                break;
     54            default:
     55                $link = '';
     56        }
     57
     58        if ( $link ) {
     59            $value = '<a href="' . esc_url( $link ) . '">' . $value . '</a>';
    3860        }
    3961
     
    5981
    6082        $this->display_field_user_format();
     83        $this->display_field_user_link_to();
    6184    }
     85
     86    /**
     87     * Display settings field for the page the posts should link to
     88     *
     89     * @since 2.4.7
     90     */
     91    public function display_field_user_link_to() {
     92
     93        $this->display_field_select(
     94            'user_link_to',
     95            __( 'Link To', 'codepress-admin-columns' ),
     96            array(
     97                '' => __( 'None' ),
     98                'edit_user' => __( 'Edit User Profile' ),
     99                'view_user_posts' => __( 'View User Posts' ),
     100                'view_author' => __( 'View Public Author Page', 'codepress-admin-columns' )
     101            ),
     102            __( 'Page the author name should link to.', 'codepress-admin-columns' )
     103        );
     104    }
     105
    62106}
  • codepress-admin-columns/trunk/classes/column/post/before-moretag.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-before_moretag';
    19         $this->properties['label']   = __( 'Before More Tag', 'cpac' );
     19        $this->properties['label']   = __( 'Before More Tag', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/post/comment-count.php

    r1136036 r1264693  
    1818        // Properties
    1919        $this->properties['type']           = 'column-comment_count';
    20         $this->properties['label']          = __( 'Comment count', 'cpac' );
     20        $this->properties['label']          = __( 'Comment count', 'codepress-admin-columns' );
    2121        $this->properties['is_cloneable']   = true;
    2222
     
    3232
    3333        return array(
    34             'total_comments'    => __( 'Total', 'cpac' ),
    35             'approved'          => __( 'Approved', 'cpac' ),
    36             'moderated'         => __( 'Pending', 'cpac' ),
    37             'spam'              => __( 'Spam', 'cpac' ),
    38             'trash'             => __( 'Trash', 'cpac' ),
     34            'total_comments'    => __( 'Total', 'codepress-admin-columns' ),
     35            'approved'          => __( 'Approved', 'codepress-admin-columns' ),
     36            'moderated'         => __( 'Pending', 'codepress-admin-columns' ),
     37            'spam'              => __( 'Spam', 'codepress-admin-columns' ),
     38            'trash'             => __( 'Trash', 'codepress-admin-columns' ),
    3939        );
    4040    }
     
    9797        ?>
    9898        <tr class="column_comment-count">
    99             <?php $this->label_view( __( 'Comment status', 'cpac' ), __( 'Select which comment status you like to display.', 'cpac' ), 'comment-status' ); ?>
     99            <?php $this->label_view( __( 'Comment status', 'codepress-admin-columns' ), __( 'Select which comment status you like to display.', 'codepress-admin-columns' ), 'comment-status' ); ?>
    100100            <td class="input">
    101101                <select name="<?php $this->attr_name( 'comment_status' ); ?>" id="<?php $this->attr_id( 'comment-status' ); ?>">
  • codepress-admin-columns/trunk/classes/column/post/comment-status.php

    r1136036 r1264693  
    1818        // Properties
    1919        $this->properties['type']               = 'column-comment_status';
    20         $this->properties['label']              = __( 'Comment status', 'cpac' );
     20        $this->properties['label']              = __( 'Comment status', 'codepress-admin-columns' );
    2121        $this->properties['object_property']    = 'comment_status';
    2222    }
  • codepress-admin-columns/trunk/classes/column/post/content.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']               = 'column-content';
    19         $this->properties['label']              = __( 'Content', 'cpac' );
     19        $this->properties['label']              = __( 'Content', 'codepress-admin-columns' );
    2020        $this->properties['object_property']    = 'post_content';
    2121
  • codepress-admin-columns/trunk/classes/column/post/depth.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type'] = 'column-depth';
    19         $this->properties['label'] = __( 'Depth', 'cpac' );
     19        $this->properties['label'] = __( 'Depth', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/estimated-reading-time.php

    r1190667 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-estimated_reading_time';
    19         $this->properties['label']   = __( 'Estimated Reading Time', 'cpac' );
     19        $this->properties['label']   = __( 'Estimated Reading Time', 'codepress-admin-columns' );
    2020
    2121        // Options
     
    6464            }
    6565            if ( $minutes < 1 ) {
    66                 $time = $seconds . ' ' . _n( 'second', 'seconds', $seconds, 'cpac' );
     66                $time = $seconds . ' ' . _n( 'second', 'seconds', $seconds, 'codepress-admin-columns' );
    6767            }
    6868            else {
    69                 $time .= ' ' . _n( 'minute', 'minutes', $minutes, 'cpac' );
     69                $time .= ' ' . _n( 'minute', 'minutes', $minutes, 'codepress-admin-columns' );
    7070            }
    7171        }
     
    105105
    106106        $field_key      = 'words_per_minute';
    107         $label          = __( 'Words per minute', 'cpac' );
    108         $description    = __( 'Estimated reading time in words per minute', 'cpac' );
     107        $label          = __( 'Words per minute', 'codepress-admin-columns' );
     108        $description    = __( 'Estimated reading time in words per minute', 'codepress-admin-columns' );
    109109
    110110        ?>
  • codepress-admin-columns/trunk/classes/column/post/excerpt.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']               = 'column-excerpt';
    19         $this->properties['label']              = __( 'Excerpt', 'cpac' );
     19        $this->properties['label']              = __( 'Excerpt', 'codepress-admin-columns' );
    2020        $this->properties['object_property']    = 'post_excerpt';
    2121
  • codepress-admin-columns/trunk/classes/column/post/featured-image.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']   = 'column-featured_image';
    19         $this->properties['label']  = __( 'Featured Image', 'cpac' );
     19        $this->properties['label']  = __( 'Featured Image', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/post/formats.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-post_formats';
    19         $this->properties['label']      = __( 'Post Format', 'cpac' );
     19        $this->properties['label']      = __( 'Post Format', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/last-modified-author.php

    r1136036 r1264693  
    1818        // Properties
    1919        $this->properties['type']               = 'column-last_modified_author';
    20         $this->properties['label']              = __( 'Last Modified Author', 'cpac' );
     20        $this->properties['label']              = __( 'Last Modified Author', 'codepress-admin-columns' );
    2121        $this->properties['is_cloneable']       = true;
    2222
  • codepress-admin-columns/trunk/classes/column/post/modified.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-modified';
    19         $this->properties['label']      = __( 'Last modified', 'cpac' );
    20        
     19        $this->properties['label']      = __( 'Last modified', 'codepress-admin-columns' );
     20
    2121        // Options
    2222        $this->options['date_format'] = '';
  • codepress-admin-columns/trunk/classes/column/post/order.php

    r1193157 r1264693  
    1717        // Properties
    1818        $this->properties['type'] = 'column-order';
    19         $this->properties['label'] = __( 'Order', 'cpac' );
     19        $this->properties['label'] = __( 'Order', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/page-template.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-page_template';
    19         $this->properties['label']      = __( 'Page Template', 'cpac' );
     19        $this->properties['label']      = __( 'Page Template', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/parent.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']               = 'column-parent';
    19         $this->properties['label']              = __( 'Parent', 'cpac' );
     19        $this->properties['label']              = __( 'Parent', 'codepress-admin-columns' );
    2020        $this->properties['object_property']    = 'post_parent';
    2121    }
  • codepress-admin-columns/trunk/classes/column/post/path.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-path';
    19         $this->properties['label']      = __( 'Path', 'cpac' );
     19        $this->properties['label']      = __( 'Path', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/permalink.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-permalink';
    19         $this->properties['label']      = __( 'Permalink', 'cpac' );
     19        $this->properties['label']      = __( 'Permalink', 'codepress-admin-columns' );
    2020
    2121        // Options
     
    6666        ?>
    6767        <tr class="column_<?php echo $field_key; ?>">
    68             <?php $this->label_view( __( 'Link to post', 'cpac' ), __( 'This will make the permalink clickable.', 'cpac' ), $field_key ); ?>
     68            <?php $this->label_view( __( 'Link to post', 'codepress-admin-columns' ), __( 'This will make the permalink clickable.', 'codepress-admin-columns' ), $field_key ); ?>
    6969            <td class="input">
    7070                <label for="<?php $this->attr_id( $field_key ); ?>-on">
    7171                    <input type="radio" value="on" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-on"<?php checked( $this->options->link_to_post, 'on' ); ?> />
    72                     <?php _e( 'Yes'); ?>
     72                    <?php _e( 'Yes' ); ?>
    7373                </label>
    7474                <label for="<?php $this->attr_id( $field_key ); ?>-off">
    7575                    <input type="radio" value="off" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>-off"<?php checked( in_array( $this->options->link_to_post, array( '', 'off' ) ) ); ?> />
    76                     <?php _e( 'No'); ?>
     76                    <?php _e( 'No' ); ?>
    7777                </label>
    7878            </td>
  • codepress-admin-columns/trunk/classes/column/post/ping-status.php

    r1152870 r1264693  
    1717        // Properties
    1818        $this->properties['type']               = 'column-ping_status';
    19         $this->properties['label']              = __( 'Ping status', 'cpac' );
     19        $this->properties['label']              = __( 'Ping status', 'codepress-admin-columns' );
    2020        $this->properties['object_property']    = 'ping_status';
    2121    }
  • codepress-admin-columns/trunk/classes/column/post/roles.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-roles';
    19         $this->properties['label']      = __( 'Roles', 'cpac' );
     19        $this->properties['label']      = __( 'Roles', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/shortcodes.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type'] = 'column-shortcode';
    19         $this->properties['label'] = __( 'Shortcodes', 'cpac' );
     19        $this->properties['label'] = __( 'Shortcodes', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/slug.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-slug';
    19         $this->properties['label']   = __( 'Slug', 'cpac' );
     19        $this->properties['label']   = __( 'Slug', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/status.php

    r1189483 r1264693  
    1919        // Properties
    2020        $this->properties['type'] = 'column-status';
    21         $this->properties['label'] = __( 'Status', 'cpac' );
     21        $this->properties['label'] = __( 'Status', 'codepress-admin-columns' );
    2222    }
    2323
  • codepress-admin-columns/trunk/classes/column/post/sticky.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-sticky';
    19         $this->properties['label']      = __( 'Sticky', 'cpac' );
     19        $this->properties['label']      = __( 'Sticky', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/title-raw.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-title_raw';
    19         $this->properties['label']   = __( 'Title without actions', 'cpac' );
     19        $this->properties['label']   = __( 'Title without actions', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/post/word-count.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']       = 'column-word_count';
    19         $this->properties['label']      = __( 'Word count', 'cpac' );
     19        $this->properties['label']      = __( 'Word count', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/taxonomy.php

    r1189483 r1264693  
    1818        // Properties
    1919        $this->properties['type']           = 'column-taxonomy';
    20         $this->properties['label']          = __( 'Taxonomy', 'cpac' );
     20        $this->properties['label']          = __( 'Taxonomy', 'codepress-admin-columns' );
    2121        $this->properties['is_cloneable']   = true;
    2222
     
    8181
    8282        <tr class="column_taxonomy">
    83             <?php $this->label_view( __( "Taxonomy", 'cpac' ), '', 'taxonomy' ); ?>
     83            <?php $this->label_view( __( "Taxonomy", 'codepress-admin-columns' ), '', 'taxonomy' ); ?>
    8484            <td class="input">
    8585                <select name="<?php $this->attr_name( 'taxonomy' ); ?>" id="<?php $this->attr_id( 'taxonomy' ); ?>">
  • codepress-admin-columns/trunk/classes/column/used-by-menu.php

    r1136036 r1264693  
    1818        // Properties
    1919        $this->properties['type']       = 'column-used_by_menu';
    20         $this->properties['label']      = __( 'Used by Menu', 'cpac' );
     20        $this->properties['label']      = __( 'Used by Menu', 'codepress-admin-columns' );
    2121
    2222        // Options
     
    131131        ?>
    132132        <tr class="column_<?php echo $field_key; ?>">
    133             <?php $this->label_view( __( 'Link to menu', 'cpac' ), __( 'This will make the title link to the menu.', 'cpac' ), $field_key ); ?>
     133            <?php $this->label_view( __( 'Link to menu', 'codepress-admin-columns' ), __( 'This will make the title link to the menu.', 'codepress-admin-columns' ), $field_key ); ?>
    134134            <td class="input">
    135135                <label for="<?php $this->attr_id( $field_key ); ?>-on">
  • codepress-admin-columns/trunk/classes/column/user/ID.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-user_id';
    19         $this->properties['label']   = __( 'User ID', 'cpac' );
     19        $this->properties['label']   = __( 'User ID', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/user/actions.php

    r1136036 r1264693  
    55 * @since 2.0
    66 */
    7 class CPAC_Column_User_Actions extends CPAC_Column {
     7class CPAC_Column_User_Actions extends CPAC_Column_Actions {
    88
    99    /**
    10      * @see CPAC_Column::init()
    11      * @since 2.2.1
     10     * @see CPAC_Column_Actions::get_actions()
     11     * @since 2.4.7
    1212     */
    13     public function init() {
    14 
    15         parent::init();
    16 
    17         // Properties
    18         $this->properties['type']       = 'column-actions';
    19         $this->properties['label']      = __( 'Actions', 'cpac' );
    20     }
    21 
    22     /**
    23      * @see CPAC_Column::get_value()
    24      * @since 2.0
    25      */
    26     function get_value( $user_id ) {
    27 
    28         return $this->get_raw_value( $user_id );
    29     }
    30 
    31     /**
    32      * @see CPAC_Column::get_raw_value()
    33      * @since 2.0.3
    34      */
    35     function get_raw_value( $user_id ) {
    36 
    37         return $this->get_column_value_actions( $user_id );
    38     }
    39 
    40     /**
    41      * Get column value of user actions
    42      *
    43      * This part is copied from the Users List Table class
    44      *
    45      * @since 1.4.2
    46      *
    47      * @param int $id User ID
    48      * @return string Actions
    49      */
    50     private function get_column_value_actions( $id ) {
     13    public function get_actions( $id ) {
    5114        $actions = array();
    5215
     
    7740            $actions['remove'] = "<a class='submitdelete' href='" . wp_nonce_url( $url."action=remove&amp;user=$user_object->ID", 'bulk-users' ) . "'>" . __( 'Remove' ) . "</a>";
    7841
    79         return implode(' | ', $actions);
     42        return $actions;
    8043    }
     44
    8145}
  • codepress-admin-columns/trunk/classes/column/user/description.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-user_description';
    19         $this->properties['label']   = __( 'Description', 'cpac' );
     19        $this->properties['label']   = __( 'Description', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/user/display-name.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-display_name';
    19         $this->properties['label']   = __( 'Display name', 'cpac' );
     19        $this->properties['label']   = __( 'Display name', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/user/first-name.php

    r1220017 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-first_name';
    19         $this->properties['label']   = __( 'First name', 'cpac' );
     19        $this->properties['label']   = __( 'First name', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/user/last-name.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-last_name';
    19         $this->properties['label']   = __( 'Last name', 'cpac' );
     19        $this->properties['label']   = __( 'Last name', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/user/nickname.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-nickname';
    19         $this->properties['label']   = __( 'Nickname', 'cpac' );
     19        $this->properties['label']   = __( 'Nickname', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/user/post-count.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']           = 'column-user_postcount';
    19         $this->properties['label']          = __( 'Post Count', 'cpac' );
     19        $this->properties['label']          = __( 'Post Count', 'codepress-admin-columns' );
    2020        $this->properties['is_cloneable']   = true;
    2121
     
    8787        ?>
    8888        <tr class="<?php $this->properties->type; ?>">
    89             <?php $this->label_view( __( 'Post Type', 'cpac' ), '', 'post_type' ); ?>
     89            <?php $this->label_view( __( 'Post Type', 'codepress-admin-columns' ), '', 'post_type' ); ?>
    9090            <td class="input">
    9191                <select name="<?php $this->attr_name( 'post_type' ); ?>" id="<?php $this->attr_id( 'post_type' ); ?>">
  • codepress-admin-columns/trunk/classes/column/user/registered.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-user_registered';
    19         $this->properties['label']   = __( 'Registered', 'cpac' );
     19        $this->properties['label']   = __( 'Registered', 'codepress-admin-columns' );
    2020
    2121        // Options
  • codepress-admin-columns/trunk/classes/column/user/rich-editing.php

    r1148953 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-rich_editing';
    19         $this->properties['label']   = __( 'Visual Editor', 'cpac' );
     19        $this->properties['label']   = __( 'Visual Editor', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/column/user/url.php

    r1136036 r1264693  
    1717        // Properties
    1818        $this->properties['type']    = 'column-user_url';
    19         $this->properties['label']   = __( 'Url', 'cpac' );
     19        $this->properties['label']   = __( 'Url', 'codepress-admin-columns' );
    2020    }
    2121
  • codepress-admin-columns/trunk/classes/review_notice.php

    r1148953 r1264693  
    5353        }
    5454
    55         $product = __( 'Admin Columns', 'cpac' );
     55        $product = __( 'Admin Columns', 'codepress-admin-columns' );
    5656
    5757        if ( defined( 'ACP_VERSION' ) ) {
    58             $product = __( 'Admin Columns Pro', 'cpac' );
     58            $product = __( 'Admin Columns Pro', 'codepress-admin-columns' );
    5959        }
    6060        ?>
     
    6363                <p>
    6464                    <?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' ),
     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.", 'codepress-admin-columns' ),
    6666                        '<strong>' . $product . '</strong>',
    6767                        $product,
    68                         '<a class="hide-review-notice hide-review-notice-soft" href="#">' . __( 'click here', 'cpac' ) . '</a>'
     68                        '<a class="hide-review-notice hide-review-notice-soft" href="#">' . __( 'click here', 'codepress-admin-columns' ) . '</a>'
    6969                    ); ?>
    7070                </p>
    7171                <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>
     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!', 'codepress-admin-columns' ); ?></a>
     73                    <a class="button button-secondary hide-review-notice" href='#'><?php _e( "Permanently hide notice", 'codepress-admin-columns' ); ?></a>
    7474                </p>
    7575            </div>
     
    7878                <p>
    7979                    <?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' ),
     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.", 'codepress-admin-columns' ),
    8181                        $product,
    82                         '<a href="http://admincolumns.com/documentation/" target="_blank">' . __( 'documentation page', 'cpac' ) . '</a>'
     82                        '<a href="http://admincolumns.com/documentation/" target="_blank">' . __( 'documentation page', 'codepress-admin-columns' ) . '</a>'
    8383                    ); ?>
    8484                    <?php if ( defined( 'ACP_VERSION' ) ) : ?>
    8585                        <?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>'
     86                            __( 'As an Admin Columns Pro user, you can also use your AdminColumns.com account to access product support through %s!', 'codepress-admin-columns' ),
     87                            '<a href="https://www.admincolumns.com/forums/" target="_blank">' . __( 'our forums', 'codepress-admin-columns' ) . '</a>'
    8888                        ); ?>
    8989                    <?php else : ?>
    9090                        <?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>'
     91                            __( 'You can also find help on the %s, and %s.', 'codepress-admin-columns' ),
     92                            '<a href="https://wordpress.org/support/plugin/codepress-admin-columns#postform" target="_blank">' . __( 'Admin Columns forums on WordPress.org', 'codepress-admin-columns' ) . '</a>',
     93                            '<a href="https://wordpress.org/plugins/codepress-admin-columns/faq/#plugin-info" target="_blank">' . __( 'find answers to some frequently asked questions', 'codepress-admin-columns' ) . '</a>'
    9494                        ); ?>
    9595                    <?php endif; ?>
  • codepress-admin-columns/trunk/classes/settings.php

    r1220017 r1264693  
    6565         */
    6666        $settings_urls = apply_filters( 'cac/settings/settings_urls', array(
    67             'admin'         => admin_url( 'options-general.php?page=codepress-admin-columns' ),
    68             'settings'      => admin_url( 'options-general.php?page=codepress-admin-columns&tab=settings' ),
    69             'info'          => admin_url( 'options-general.php?page=codepress-admin-columns&info=' ),
    70             'upgrade'       => admin_url( 'options-general.php?page=cpac-upgrade' )
     67            'admin'             => admin_url( 'options-general.php?page=codepress-admin-columns' ),
     68            'settings'          => admin_url( 'options-general.php?page=codepress-admin-columns&tab=settings' ),
     69            'network_settings'  => network_admin_url( 'settings.php?page=codepress-admin-columns' ),
     70            'info'              => admin_url( 'options-general.php?page=codepress-admin-columns&info=' ),
     71            'upgrade'           => admin_url( 'options-general.php?page=cpac-upgrade' )
    7172        ), $this );
    7273
     
    9091
    9192        if ( ! $page ) {
    92             return $settings_urls['admin'];;
     93            return $settings_urls['admin'];
    9394        }
    9495
     
    110111
    111112        if ( ! empty( $_REQUEST['activate'] ) ) {
    112             $message = __( 'Add-on successfully activated.', 'cpac' );
     113            $message = __( 'Add-on successfully activated.', 'codepress-admin-columns' );
    113114        }
    114115        else if ( ! empty( $_REQUEST['deactivate'] ) ) {
    115             $message = __( 'Add-on successfully deactivated.', 'cpac' );
     116            $message = __( 'Add-on successfully deactivated.', 'codepress-admin-columns' );
    116117        }
    117118
     
    166167     */
    167168    public function settings_menu() {
    168 
    169169        // add settings page
    170         $this->settings_page = add_submenu_page( 'options-general.php', __( 'Admin Columns Settings', 'cpac' ), __( 'Admin Columns', 'cpac' ), 'manage_admin_columns', 'codepress-admin-columns', array( $this, 'display' ), false, 98 );
     170        $this->settings_page = add_submenu_page( 'options-general.php', __( 'Admin Columns Settings', 'codepress-admin-columns' ), __( 'Admin Columns', 'codepress-admin-columns' ), 'manage_admin_columns', 'codepress-admin-columns', array( $this, 'display' ), false, 98 );
    171171
    172172        // add help tabs
    173173        add_action( "load-{$this->settings_page}", array( $this, 'help_tabs' ) );
    174174
    175         // add scripts & styles
    176         add_action( "admin_print_styles-{$this->settings_page}", array( $this, 'admin_styles' ) );
    177         add_action( "admin_print_scripts-{$this->settings_page}", array( $this, 'admin_scripts' ) );
    178 
    179175        // register setting
    180176        register_setting( 'cpac-general-settings', 'cpac_general_options' );
     
    182178        // add cap to options.php
    183179        add_filter( 'option_page_capability_cpac-general-settings', array( $this, 'add_capability' ) );
     180
     181        $this->enqueue_admin_scripts();
     182    }
     183
     184    /**
     185     * Print scripts and styles
     186     *
     187     * @since 2.4.7
     188     */
     189    public function enqueue_admin_scripts() {
     190        add_action( 'admin_print_styles-' . $this->settings_page, array( $this, 'admin_styles' ) );
     191        add_action( 'admin_print_scripts-' . $this->settings_page, array( $this, 'admin_scripts' ) );
    184192    }
    185193
     
    218226        // javascript translations
    219227        wp_localize_script( 'cpac-admin-settings', 'cpac_i18n', array(
    220             'clone' => __( '%s column is already present and can not be duplicated.', 'cpac' ),
     228            'clone' => __( '%s column is already present and can not be duplicated.', 'codepress-admin-columns' ),
    221229        ));
    222230    }
     
    274282        $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'cpac_options_%'" );
    275283
    276         cpac_admin_message( __( 'Default settings succesfully restored.',  'cpac' ), 'updated' );
     284        cpac_admin_message( __( 'Default settings succesfully restored.',  'codepress-admin-columns' ), 'updated' );
    277285    }
    278286
     
    291299        $tabs = array(
    292300            array(
    293                 'title'     => __( "Overview", 'cpac' ),
     301                'title'     => __( "Overview", 'codepress-admin-columns' ),
    294302                'content'   =>
    295303                    "<h5>Admin Columns</h5>
    296                     <p>". __( "This plugin is for adding and removing additional columns to the administration screens for post(types), pages, media library, comments, links and users. Change the column's label and reorder them.", 'cpac' ) . "</p>"
     304                    <p>". __( "This plugin is for adding and removing additional columns to the administration screens for post(types), pages, media library, comments, links and users. Change the column's label and reorder them.", 'codepress-admin-columns' ) . "</p>"
    297305            ),
    298306            array(
    299                 'title'     => __( "Basics", 'cpac' ),
     307                'title'     => __( "Basics", 'codepress-admin-columns' ),
    300308                'content'   => "
    301                     <h5>"   . __( "Change order", 'cpac' ) . "</h5>
    302                     <p>"    . __( "By dragging the columns you can change the order which they will appear in.", 'cpac' ) . "</p>
    303                     <h5>"   . __( "Change label", 'cpac' ) . "</h5>
    304                     <p>"    . __( "By clicking on the triangle you will see the column options. Here you can change each label of the columns heading.", 'cpac' ) . "</p>
    305                     <h5>"   . __( "Change column width", 'cpac' ) . "</h5>
    306                     <p>"    . __( "By clicking on the triangle you will see the column options. By using the draggable slider you can set the width of the columns in percentages.", 'cpac' ) . "</p>
     309                    <h5>"   . __( "Change order", 'codepress-admin-columns' ) . "</h5>
     310                    <p>"    . __( "By dragging the columns you can change the order which they will appear in.", 'codepress-admin-columns' ) . "</p>
     311                    <h5>"   . __( "Change label", 'codepress-admin-columns' ) . "</h5>
     312                    <p>"    . __( "By clicking on the triangle you will see the column options. Here you can change each label of the columns heading.", 'codepress-admin-columns' ) . "</p>
     313                    <h5>"   . __( "Change column width", 'codepress-admin-columns' ) . "</h5>
     314                    <p>"    . __( "By clicking on the triangle you will see the column options. By using the draggable slider you can set the width of the columns in percentages.", 'codepress-admin-columns' ) . "</p>
    307315                "
    308316            ),
    309317            array(
    310                 'title'     => __( "Custom Field", 'cpac' ),
     318                'title'     => __( "Custom Field", 'codepress-admin-columns' ),
    311319                'content'   =>
    312                     "<h5>". __( "'Custom Field' column", 'cpac' ) . "</h5>
    313                     <p>". __( "The custom field colum uses the custom fields from posts and users. There are 10 types which you can set.", 'cpac' ) . "</p>
     320                    "<h5>". __( "'Custom Field' column", 'codepress-admin-columns' ) . "</h5>
     321                    <p>". __( "The custom field colum uses the custom fields from posts and users. There are 10 types which you can set.", 'codepress-admin-columns' ) . "</p>
    314322                    <ul>
    315                         <li><strong>". __( "Default", 'cpac' ) . "</strong><br/>". __( "Value: Can be either a string or array. Arrays will be flattened and values are seperated by a ',' comma.", 'cpac' ) . "</li>
    316                         <li><strong>". __( "Image", 'cpac' ) . "</strong><br/>". __( "Value: should contain an image URL or Attachment IDs ( seperated by a ',' comma ).", 'cpac' ) . "</li>
    317                         <li><strong>". __( "Excerpt", 'cpac' ) . "</strong><br/>". __( "Value: This will show the first 20 words of the Post content.", 'cpac' ) . "</li>
    318                         <li><strong>". __( "Multiple Values", 'cpac' ) . "</strong><br/>". __( "Value: should be an array. This will flatten any ( multi dimensional ) array.", 'cpac' ) . "</li>
    319                         <li><strong>". __( "Numeric", 'cpac' ) . "</strong><br/>". __( "Value: Integers only.<br/>If you have the 'sorting addon' this will be used for sorting, so you can sort your posts on numeric (custom field) values.", 'cpac' ) . "</li>
    320                         <li><strong>". __( "Date", 'cpac' ) . "</strong><br/>". sprintf( __( "Value: Can be unix time stamp or a date format as described in the <a href='%s'>Codex</a>. You can change the outputted date format at the <a href='%s'>general settings</a> page.", 'cpac' ), 'http://codex.wordpress.org/Formatting_Date_and_Time', get_admin_url() . 'options-general.php' ) . "</li>
    321                         <li><strong>". __( "Post Titles", 'cpac' ) . "</strong><br/>". __( "Value: can be one or more Post ID's (seperated by ',').", 'cpac' ) . "</li>
    322                         <li><strong>". __( "Usernames", 'cpac' ) . "</strong><br/>". __( "Value: can be one or more User ID's (seperated by ',').", 'cpac' ) . "</li>
    323                         <li><strong>". __( "Checkmark", 'cpac' ) . "</strong><br/>". __( "Value: should be a 1 (one) or 0 (zero).", 'cpac' ) . "</li>
    324                         <li><strong>". __( "Color", 'cpac' ) . "</strong><br/>". __( "Value: hex value color, such as #808080.", 'cpac' ) . "</li>
    325                         <li><strong>". __( "Counter", 'cpac' ) . "</strong><br/>". __( "Value: Can be either a string or array. This will display a count of the number of times the meta key is used by the item.", 'cpac' ) . "</li>
     323                        <li><strong>". __( "Default", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: Can be either a string or array. Arrays will be flattened and values are seperated by a ',' comma.", 'codepress-admin-columns' ) . "</li>
     324                        <li><strong>". __( "Image", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: should contain an image URL or Attachment IDs ( seperated by a ',' comma ).", 'codepress-admin-columns' ) . "</li>
     325                        <li><strong>". __( "Excerpt", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: This will show the first 20 words of the Post content.", 'codepress-admin-columns' ) . "</li>
     326                        <li><strong>". __( "Multiple Values", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: should be an array. This will flatten any ( multi dimensional ) array.", 'codepress-admin-columns' ) . "</li>
     327                        <li><strong>". __( "Numeric", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: Integers only.<br/>If you have the 'sorting addon' this will be used for sorting, so you can sort your posts on numeric (custom field) values.", 'codepress-admin-columns' ) . "</li>
     328                        <li><strong>". __( "Date", 'codepress-admin-columns' ) . "</strong><br/>". sprintf( __( "Value: Can be unix time stamp or a date format as described in the <a href='%s'>Codex</a>. You can change the outputted date format at the <a href='%s'>general settings</a> page.", 'codepress-admin-columns' ), 'http://codex.wordpress.org/Formatting_Date_and_Time', get_admin_url() . 'options-general.php' ) . "</li>
     329                        <li><strong>". __( "Post Titles", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: can be one or more Post ID's (seperated by ',').", 'codepress-admin-columns' ) . "</li>
     330                        <li><strong>". __( "Usernames", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: can be one or more User ID's (seperated by ',').", 'codepress-admin-columns' ) . "</li>
     331                        <li><strong>". __( "Checkmark", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: should be a 1 (one) or 0 (zero).", 'codepress-admin-columns' ) . "</li>
     332                        <li><strong>". __( "Color", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: hex value color, such as #808080.", 'codepress-admin-columns' ) . "</li>
     333                        <li><strong>". __( "Counter", 'codepress-admin-columns' ) . "</strong><br/>". __( "Value: Can be either a string or array. This will display a count of the number of times the meta key is used by the item.", 'codepress-admin-columns' ) . "</li>
    326334                    </ul>
    327335                "
     
    412420        <div id="cpac-welcome" class="wrap about-wrap">
    413421
    414             <h1><?php _e( "Welcome to Admin Columns",'cpac'); ?> <?php echo CPAC_VERSION; ?></h1>
     422            <h1><?php _e( "Welcome to Admin Columns", 'codepress-admin-columns' ); ?> <?php echo CPAC_VERSION; ?></h1>
    415423
    416424            <div class="about-text">
    417                 <?php _e( "Thank you for updating to the latest version!", 'cpac' ); ?>
    418                 <?php _e( "Admin Columns is more polished and enjoyable than ever before. We hope you like it.", 'cpac' ); ?>
     425                <?php _e( "Thank you for updating to the latest version!", 'codepress-admin-columns' ); ?>
     426                <?php _e( "Admin Columns is more polished and enjoyable than ever before. We hope you like it.", 'codepress-admin-columns' ); ?>
    419427            </div>
    420428
    421429            <div class="cpac-content-body">
    422430                <h2 class="nav-tab-wrapper">
    423                     <a class="cpac-tab-toggle nav-tab <?php if( $tab == 'whats-new' ){ echo 'nav-tab-active'; } ?>" href="<?php echo $this->get_settings_url( 'info' ); ?>whats-new"><?php _e( "What’s New", 'cpac' ); ?></a>
    424                     <a class="cpac-tab-toggle nav-tab <?php if( $tab == 'changelog' ){ echo 'nav-tab-active'; } ?>" href="<?php echo $this->get_settings_url( 'info' ); ?>changelog"><?php _e( "Changelog", 'cpac' ); ?></a>
     431                    <a class="cpac-tab-toggle nav-tab <?php if( $tab == 'whats-new' ){ echo 'nav-tab-active'; } ?>" href="<?php echo $this->get_settings_url( 'info' ); ?>whats-new"><?php _e( "What’s New", 'codepress-admin-columns' ); ?></a>
     432                    <a class="cpac-tab-toggle nav-tab <?php if( $tab == 'changelog' ){ echo 'nav-tab-active'; } ?>" href="<?php echo $this->get_settings_url( 'info' ); ?>changelog"><?php _e( "Changelog", 'codepress-admin-columns' ); ?></a>
    425433                </h2>
    426434
    427435            <?php if ( 'whats-new' === $tab ) : ?>
    428436
    429                 <h3><?php _e( "Important", 'cpac' ); ?></h3>
    430 
    431                 <h4><?php _e( "Database Changes", 'cpac' ); ?></h4>
    432                 <p><?php _e("The database has been changed between versions 1 and 2. But we made sure you can still roll back to version 1x without any issues.",'cpac'); ?></p>
     437                <h3><?php _e( "Important", 'codepress-admin-columns' ); ?></h3>
     438
     439                <h4><?php _e( "Database Changes", 'codepress-admin-columns' ); ?></h4>
     440                <p><?php _e("The database has been changed between versions 1 and 2. But we made sure you can still roll back to version 1x without any issues.", 'codepress-admin-columns' ); ?></p>
    433441
    434442            <?php if ( get_option( 'cpac_version', false ) < CPAC_UPGRADE_VERSION ) : ?>
    435                 <p><?php _e("Make sure you backup your database and then click",'cpac'); ?> <a href="<?php echo $this->get_settings_url( 'upgrade' ); ?>" class="button-primary"><?php _e( "Upgrade Database", 'cpac' );?></a></p>
     443                <p><?php _e("Make sure you backup your database and then click", 'codepress-admin-columns' ); ?> <a href="<?php echo $this->get_settings_url( 'upgrade' ); ?>" class="button-primary"><?php _e( "Upgrade Database", 'codepress-admin-columns' );?></a></p>
    436444            <?php endif; ?>
    437445
    438                 <h4><?php _e( "Potential Issues", 'cpac' ); ?></h4>
    439                 <p><?php _e( "Do to the sizable refactoring the code, surounding Addons and action/filters, your website may not operate correctly. It is important that you read the full", 'cpac' ); ?> <a href="<?php echo $this->get_url('admincolumns'); ?>migrating-from-v1-to-v2" target="_blank"><?php _e( "Migrating from v1 to v2", 'cpac' ); ?></a> <?php _e( "guide to view the full list of changes.", 'cpac' ); ?> <?php printf( __( 'When you have found a bug please <a href="%s">report them to us</a> so we can fix it in the next release.', 'cpac'), 'mailto:[email protected]' ); ?></p>
     446                <h4><?php _e( "Potential Issues", 'codepress-admin-columns' ); ?></h4>
     447                <p><?php _e( "Do to the sizable refactoring the code, surounding Addons and action/filters, your website may not operate correctly. It is important that you read the full", 'codepress-admin-columns' ); ?> <a href="<?php echo $this->get_url('admincolumns'); ?>migrating-from-v1-to-v2" target="_blank"><?php _e( "Migrating from v1 to v2", 'codepress-admin-columns' ); ?></a> <?php _e( "guide to view the full list of changes.", 'codepress-admin-columns' ); ?> <?php printf( __( "When you have found a bug please <a href='%s'>report them to us</a> so we can fix it in the next release.", 'codepress-admin-columns'), 'mailto:[email protected]' ); ?></p>
    440448
    441449                <div class="cpac-alert cpac-alert-error">
    442                     <p><strong><?php _e( "Important!", 'cpac' ); ?></strong> <?php _e( "If you updated the Admin Columns plugin without prior knowledge of such changes, Please roll back to the latest", 'cpac' ); ?> <a href="http://downloads.wordpress.org/plugin/codepress-admin-columns.1.4.9.zip"> <?php _e( "version 1", 'cpac' ); ?></a> <?php _e( "of this plugin.", 'cpac' ); ?></p>
     450                    <p><strong><?php _e( "Important!", 'codepress-admin-columns' ); ?></strong> <?php _e( "If you updated the Admin Columns plugin without prior knowledge of such changes, Please roll back to the latest", 'codepress-admin-columns' ); ?> <a href="http://downloads.wordpress.org/plugin/codepress-admin-columns.1.4.9.zip"> <?php _e( "version 1", 'codepress-admin-columns' ); ?></a> <?php _e( "of this plugin.", 'codepress-admin-columns' ); ?></p>
    443451                </div>
    444452
     
    446454            <?php if ( 'changelog' === $tab ) : ?>
    447455
    448                 <h3><?php _e("Changelog for", 'cpac'); ?> <?php echo CPAC_VERSION; ?></h3>
     456                <h3><?php _e("Changelog for", 'codepress-admin-columns'); ?> <?php echo CPAC_VERSION; ?></h3>
    449457                <?php
    450458
     
    461469                    $item = explode('http', $item);
    462470                ?>
    463                     <li><?php echo $item[0]; ?><?php if( isset($item[1]) ): ?><a href="http<?php echo $item[1]; ?>" target="_blank"><?php _e("Learn more", 'cpac'); ?></a><?php endif; ?></li>
     471                    <li><?php echo $item[0]; ?><?php if( isset($item[1]) ): ?><a href="http<?php echo $item[1]; ?>" target="_blank"><?php _e("Learn more", 'codepress-admin-columns'); ?></a><?php endif; ?></li>
    464472                <?php endforeach; ?>
    465473                </ul>
     
    471479
    472480            <div class="cpac-content-footer">
    473                 <a class="button-primary button-large" href="<?php echo $this->get_settings_url( 'general' ); ?>"><?php _e("Start using Admin Columns",'cpac'); ?></a>
     481                <a class="button-primary button-large" href="<?php echo $this->get_settings_url( 'general' ); ?>"><?php _e("Start using Admin Columns", 'codepress-admin-columns' ); ?></a>
    474482            </div><!--.cpac-content-footer-->
    475483
     
    490498                <tr class="general">
    491499                    <th scope="row">
    492                         <h3><?php _e( 'General Settings', 'cpac' ); ?></h3>
    493                         <p><?php _e( 'Customize your Admin Columns settings.', 'cpac' ); ?></p>
     500                        <h3><?php _e( 'General Settings', 'codepress-admin-columns' ); ?></h3>
     501                        <p><?php _e( 'Customize your Admin Columns settings.', 'codepress-admin-columns' ); ?></p>
    494502                    </th>
    495503                    <td class="padding-22">
     
    502510                                        <input name="cpac_general_options[show_edit_button]" type="hidden" value="0" >
    503511                                        <input name="cpac_general_options[show_edit_button]" id="show_edit_button" type="checkbox" value="1" <?php checked( ! isset( $options['show_edit_button'] ) || ( '1' == $options['show_edit_button'] ) ); ?>>
    504                                         <?php _e( 'Show "Edit Columns" button on admin screens. Default is <code>on</code>.', 'cpac' ); ?>
     512                                        <?php _e( "Show \"Edit Columns\" button on admin screens. Default is <code>on</code>.", 'codepress-admin-columns' ); ?>
    505513                                    </label>
    506514                                </p>
     
    549557                <tr class="restore">
    550558                    <th scope="row">
    551                         <h3><?php _e( 'Restore Settings', 'cpac' ); ?></h3>
    552                         <p><?php _e( 'This will delete all column settings and restore the default settings.', 'cpac' ); ?></p>
     559                        <h3><?php _e( 'Restore Settings', 'codepress-admin-columns' ); ?></h3>
     560                        <p><?php _e( 'This will delete all column settings and restore the default settings.', 'codepress-admin-columns' ); ?></p>
    553561                    </th>
    554562                    <td class="padding-22">
     
    556564                            <?php wp_nonce_field( 'restore-all','_cpac_nonce'); ?>
    557565                            <input type="hidden" name="cpac_action" value="restore_all" />
    558                             <input type="submit" class="button" name="cpac-restore-defaults" value="<?php _e( 'Restore default settings', 'cpac' ) ?>" onclick="return confirm('<?php _e("Warning! ALL saved admin columns data will be deleted. This cannot be undone. \'OK\' to delete, \'Cancel\' to stop", 'cpac' ); ?>');" />
     566                            <input type="submit" class="button" name="cpac-restore-defaults" value="<?php _e( 'Restore default settings', 'codepress-admin-columns' ) ?>" onclick="return confirm('<?php _e("Warning! ALL saved admin columns data will be deleted. This cannot be undone. \'OK\' to delete, \'Cancel\' to stop", 'codepress-admin-columns' ); ?>');" />
    559567                        </form>
    560568                    </td>
     
    572580    private function get_menu_types() {
    573581        $menu_types = array(
    574             'post' => __( 'Posttypes', 'cpac' ),
    575             'other' => __( 'Others', 'cpac' ),
    576             'taxonomy' => __( 'Taxonomies', 'cpac' ),
     582            'post' => __( 'Posttypes', 'codepress-admin-columns' ),
     583            'other' => __( 'Others', 'codepress-admin-columns' ),
     584            'taxonomy' => __( 'Taxonomies', 'codepress-admin-columns' ),
    577585        );
    578586        return apply_filters( 'cac/menu_types', $menu_types );
     
    589597
    590598        $tabs = array(
    591             'general'   => __( 'Admin Columns', 'cpac' ),
    592             'settings'  => __( 'Settings', 'cpac' ),
    593             'addons'    => __( 'Add-ons', 'cpac' )
     599            'general'   => __( 'Admin Columns', 'codepress-admin-columns' ),
     600            'settings'  => __( 'Settings', 'codepress-admin-columns' ),
     601            'addons'    => __( 'Add-ons', 'codepress-admin-columns' )
    594602        );
    595603
     
    659667                                <?php if ( $storage_model->is_using_php_export() ) : ?>
    660668                                    <div class="error below-h2">
    661                                         <p><?php printf( __( 'The columns for %s are set up via PHP and can therefore not be edited in the admin panel.', 'cpac' ), '<strong>' . $storage_model->label . '</strong>' ); ?></p>
     669                                        <p><?php printf( __( 'The columns for %s are set up via PHP and can therefore not be edited in the admin panel.', 'codepress-admin-columns' ), '<strong>' . $storage_model->label . '</strong>' ); ?></p>
    662670                                    </div>
    663671                                <?php endif; ?>
     
    669677                                        <div class="sidebox" id="form-actions">
    670678                                            <h3>
    671                                                 <?php _e( 'Store settings', 'cpac' ) ?>
     679                                                <?php _e( 'Store settings', 'codepress-admin-columns' ) ?>
    672680                                            </h3>
    673681                                            <?php $has_been_stored = $storage_model->get_stored_columns() ? true : false; ?>
     
    677685                                            <?php if ( $has_been_stored ) : ?>
    678686                                            <div class="form-reset">
    679                                                 <a href="<?php echo add_query_arg( array( '_cpac_nonce' => wp_create_nonce('restore-type'), 'cpac_key' => $storage_model->key, 'cpac_action' => 'restore_by_type' ), $this->get_settings_url( 'admin' ) ); ?>" class="reset-column-type" onclick="return confirm('<?php printf( __( "Warning! The %s columns data will be deleted. This cannot be undone. \'OK\' to delete, \'Cancel\' to stop", 'cpac' ), $storage_model->label ); ?>');">
    680                                                     <?php _e( 'Restore', 'cpac' ); ?> <?php echo $storage_model->label; ?> <?php _e( 'columns', 'cpac' ); ?>
     687                                                <a href="<?php echo add_query_arg( array( '_cpac_nonce' => wp_create_nonce('restore-type'), 'cpac_key' => $storage_model->key, 'cpac_action' => 'restore_by_type' ), $this->get_settings_url( 'admin' ) ); ?>" class="reset-column-type" onclick="return confirm('<?php printf( __( "Warning! The %s columns data will be deleted. This cannot be undone. \'OK\' to delete, \'Cancel\' to stop", 'codepress-admin-columns' ), $storage_model->label ); ?>');">
     688                                                    <?php _e( 'Restore', 'codepress-admin-columns' ); ?> <?php echo $storage_model->label; ?> <?php _e( 'columns', 'codepress-admin-columns' ); ?>
    681689                                                </a>
    682690                                            </div>
     
    688696                                    <?php endif; ?>
    689697
    690                                     <?php if ( ! class_exists( 'CAC_Addon_Pro' ) ) : ?>
     698                                    <?php if ( ! cpac_is_pro_active() ) : ?>
    691699                                    <?php $url_args = array(
    692700                                        'utm_source' => 'plugin-installation',
     
    697705                                        <div class="padding-box cta">
    698706                                            <h3>
    699                                                 <a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'title' ) ), $this->get_url( 'admincolumnspro' ) ); ?>"><?php _e( 'Get Admin Columns Pro', 'cpac' ) ?></a>
     707                                                <a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'title' ) ), $this->get_url( 'admincolumnspro' ) ); ?>"><?php _e( 'Get Admin Columns Pro', 'codepress-admin-columns' ) ?></a>
    700708                                            </h3>
    701709                                            <div class="inside">
    702710                                                <ul>
    703                                                     <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-sorting' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Sorting', 'cpac' ); ?></a></li>
    704                                                     <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-filtering' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Filtering', 'cpac' ); ?></a></li>
    705                                                     <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-import-export' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Import/Export', 'cpac' ); ?></a></li>
    706                                                     <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-editing' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Direct Editing', 'cpac' ); ?></a></li>
     711                                                    <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-sorting' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Sorting', 'codepress-admin-columns' ); ?></a></li>
     712                                                    <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-filtering' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Filtering', 'codepress-admin-columns' ); ?></a></li>
     713                                                    <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-import-export' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Import/Export', 'codepress-admin-columns' ); ?></a></li>
     714                                                    <li><a href="<?php echo add_query_arg( array_merge( $url_args, array( 'utm_content' => 'usp-editing' ) ), $this->get_url( 'admincolumnspro' ) ) ?>"><?php _e( 'Add Direct Editing', 'codepress-admin-columns' ); ?></a></li>
    707715                                                </ul>
    708716                                                <p>
    709                                                     <?php printf( __( 'Check out <a href="%s">Admin Columns Pro</a> for more details!', 'cpac' ), add_query_arg( array_merge( $url_args, array( 'utm_content' => 'cta' ) ), $this->get_url( 'admincolumnspro' ) ) ); ?>
     717                                                    <?php printf( __( "Check out <a href='%s'>Admin Columns Pro</a> for more details!", 'codepress-admin-columns' ), add_query_arg( array_merge( $url_args, array( 'utm_content' => 'cta' ) ), $this->get_url( 'admincolumnspro' ) ) ); ?>
    710718                                                </p>
    711719                                            </div>
     
    713721                                    </div>
    714722
    715                                         <?php
    716                                         // @todo: add newsletter
    717                                         /* ?>
    718                                         <div class="padding-box newsletter">
    719                                             <form action="http://codepress.us4.list-manage.com/subscribe/post?u=902ae7f162ce5bc38a0bc8a4f&amp;id=183e843a76" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" target="_blank">
    720                                                 <?php $user = wp_get_current_user(); ?>
    721                                                 <p>
    722                                                     <?php _e ( "Subscribe to receive news &amp; updates below.", 'cpac' ); ?>
    723                                                 </p>
    724                                                 <div class="mc-field-group">
    725                                                     <label for="mce-FNAME"><?php _e( 'First Name', 'cpac' ); ?></label>
    726                                                     <input type="text" value="<?php echo trim( esc_attr( $user->first_name ) ); ?>" name="FNAME" class="" id="mce-FNAME">
    727                                                 </div>
    728                                                 <div class="mc-field-group">
    729                                                     <label for="mce-EMAIL"><?php _e( 'Your Email', 'cpac' ); ?></label>
    730                                                     <input type="email" value="<?php echo trim( esc_attr( $user->user_email ) ); ?>" name="EMAIL" class="required email" id="mce-EMAIL">
    731                                                 </div>
    732                                                 <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
    733                                             </form>
    734                                         </div>
    735                                         <?php */ ?>
    736 
    737 
    738723                                    <div class="sidebox" id="direct-feedback">
    739724                                        <div id="feedback-choice">
    740                                             <h3><?php _e( 'Are you happy with Admin Columns?', 'cpac' ); ?></h3>
     725                                            <h3><?php _e( 'Are you happy with Admin Columns?', 'codepress-admin-columns' ); ?></h3>
    741726                                            <div class="inside">
    742727                                                <a href="#" class="yes">Yes</a>
     
    746731                                        <div id="feedback-support">
    747732                                            <div class="inside">
    748                                                 <p><?php _e( "What's wrong? Need help? Let us know!", 'cpac' ); ?></p>
    749                                                 <p><?php _e( 'Check out our extensive documentation, or you can open a support topic on WordPress.org!', 'cpac' ); ?></p>
     733                                                <p><?php _e( "What's wrong? Need help? Let us know!", 'codepress-admin-columns' ); ?></p>
     734                                                <p><?php _e( 'Check out our extensive documentation, or you can open a support topic on WordPress.org!', 'codepress-admin-columns' ); ?></p>
    750735                                                <ul class="share">
    751736                                                    <li>
     
    755740                                                            'utm_campaign' => 'plugin-installation'
    756741                                                        ), $this->get_url( 'documentation' ) ); ?>" target="_blank">
    757                                                             <div class="dashicons dashicons-editor-help"></div> <?php _e( 'Docs', 'cpac' ); ?>
     742                                                            <div class="dashicons dashicons-editor-help"></div> <?php _e( 'Docs', 'codepress-admin-columns' ); ?>
    758743                                                        </a>
    759744                                                    </li>
    760745                                                    <li>
    761746                                                        <a href="https://wordpress.org/support/plugin/codepress-admin-columns" target="_blank">
    762                                                             <div class="dashicons dashicons-wordpress"></div> <?php _e( 'Forums', 'cpac' ); ?>
     747                                                            <div class="dashicons dashicons-wordpress"></div> <?php _e( 'Forums', 'codepress-admin-columns' ); ?>
    763748                                                        </a>
    764749                                                    </li>
     
    769754                                        <div id="feedback-rate">
    770755                                            <div class="inside">
    771                                                 <p><?php _e( "Woohoo! We're glad to hear that!", 'cpac' ); ?></p>
    772                                                 <p><?php _e( 'We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!', 'cpac' ); ?></p>
     756                                                <p><?php _e( "Woohoo! We're glad to hear that!", 'codepress-admin-columns' ); ?></p>
     757                                                <p><?php _e( 'We would really love it if you could show your appreciation by giving us a rating on WordPress.org or tweet about Admin Columns!', 'codepress-admin-columns' ); ?></p>
    773758                                                <ul class="share">
    774759                                                    <li>
    775760                                                        <a href="http://wordpress.org/support/view/plugin-reviews/codepress-admin-columns#postform" target="_blank">
    776                                                             <div class="dashicons dashicons-star-empty"></div> <?php _e( 'Rate', 'cpac' ); ?>
     761                                                            <div class="dashicons dashicons-star-empty"></div> <?php _e( 'Rate', 'codepress-admin-columns' ); ?>
    777762                                                        </a>
    778763                                                    </li>
     
    780765                                                    <li>
    781766                                                        <a href="<?php echo add_query_arg( array(
    782                                                             'hashtags' => 'wordpress',
     767                                                            'hashtags' => 'admincolumns',
    783768                                                            'text' => urlencode( "I'm using Admin Columns for WordPress!" ),
    784769                                                            'url' => urlencode( 'http://wordpress.org/plugins/codepress-admin-columns/' ),
    785                                                             'via' => 'wpcolumns'
     770                                                            //'via' => 'wpcolumns'
    786771                                                        ), 'https://twitter.com/intent/tweet' ); ?>" target="_blank">
    787                                                             <div class="dashicons dashicons-twitter"></div> <?php _e( 'Tweet', 'cpac' ); ?>
     772                                                            <div class="dashicons dashicons-twitter"></div> <?php _e( 'Tweet', 'codepress-admin-columns' ); ?>
    788773                                                        </a>
    789774                                                    </li>
     
    795780                                                            'utm_campaign' => 'plugin-installation'
    796781                                                        ), $this->get_url( 'admincolumnspro' ) ); ?>" target="_blank">
    797                                                             <div class="dashicons dashicons-cart"></div> <?php _e( 'Buy Pro', 'cpac' ); ?>
     782                                                            <div class="dashicons dashicons-cart"></div> <?php _e( 'Buy Pro', 'codepress-admin-columns' ); ?>
    798783                                                        </a>
    799784                                                    </li>
     
    807792
    808793                                    <div class="sidebox" id="plugin-support">
    809                                         <h3><?php _e( 'Support', 'cpac' ); ?></h3>
     794                                        <h3><?php _e( 'Support', 'codepress-admin-columns' ); ?></h3>
    810795                                        <div class="inside">
    811796                                            <?php if ( version_compare( get_bloginfo( 'version' ), '3.2', '>' ) ) : ?>
    812                                                 <p><?php _e( 'Check the <strong>Help</strong> section in the top-right screen.', 'cpac' ); ?></p>
     797                                                <p><?php _e( 'Check the <strong>Help</strong> section in the top-right screen.', 'codepress-admin-columns' ); ?></p>
    813798                                            <?php endif; ?>
    814799                                            <p>
    815                                                 <?php printf( __("For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>", 'cpac' ), $this->get_url('documentation') ); ?>
     800                                                <?php printf( __("For full documentation, bug reports, feature suggestions and other tips <a href='%s'>visit the Admin Columns website</a>", 'codepress-admin-columns' ), $this->get_url('documentation') ); ?>
    816801                                            </p>
    817802                                        </div>
     
    842827
    843828                                        <div class="column-footer">
    844                                             <div class="order-message"><?php _e( 'Drag and drop to reorder', 'cpac' ); ?></div>
     829                                            <div class="order-message"><?php _e( 'Drag and drop to reorder', 'codepress-admin-columns' ); ?></div>
    845830
    846831                                            <div class="button-container">
    847                                                 <a href="javascript:;" class="add_column button button-primary">+ <?php _e( 'Add Column', 'cpac' );?></a><br/>
     832                                                <a href="javascript:;" class="add_column button button-primary">+ <?php _e( 'Add Column', 'codepress-admin-columns' );?></a><br/>
    848833                                            </div>
    849834
     
    926911                                        'cpac-redirect' => true
    927912                                    ), admin_url( 'plugins.php' ) ), 'deactivate-plugin_' . $plugin_basename ); ?>
    928                                     <a href="#" class="button button-disabled cpac-installed"><?php _e( 'Active', 'cpac' ); ?></a>
    929                                     <a href="<?php echo esc_attr( $deactivation_url ); ?>" class="button right"><?php _e( 'Deactivate', 'cpac' ); ?></a>
     913                                    <a href="#" class="button button-disabled cpac-installed"><?php _e( 'Active', 'codepress-admin-columns' ); ?></a>
     914                                    <a href="<?php echo esc_attr( $deactivation_url ); ?>" class="button right"><?php _e( 'Deactivate', 'codepress-admin-columns' ); ?></a>
    930915                                <?php else : ?>
    931916                                    <?php $activation_url = wp_nonce_url( add_query_arg( array(
     
    934919                                        'cpac-redirect' => true
    935920                                    ), admin_url( 'plugins.php' ) ), 'activate-plugin_' . $plugin_basename ); ?>
    936                                     <a href="#" class="button button-disabled cpac-installed"><?php _e( 'Installed', 'cpac' ); ?></a>
    937                                     <a href="<?php echo esc_attr( $activation_url ); ?>" class="button right"><?php _e( 'Activate', 'cpac' ); ?></a>
     921                                    <a href="#" class="button button-disabled cpac-installed"><?php _e( 'Installed', 'codepress-admin-columns' ); ?></a>
     922                                    <a href="<?php echo esc_attr( $activation_url ); ?>" class="button right"><?php _e( 'Activate', 'codepress-admin-columns' ); ?></a>
    938923                                <?php endif; ?>
    939924                            <?php
     
    949934                                    ), $this->get_settings_url( 'addons' ) ), 'install-cac-addon' );
    950935                                    ?>
    951                                     <a href="<?php echo esc_attr( $install_url ); ?>" class="button"><?php _e( 'Download & Install', 'cpac' ); ?></a>
     936                                    <a href="<?php echo esc_attr( $install_url ); ?>" class="button"><?php _e( 'Download & Install', 'codepress-admin-columns' ); ?></a>
    952937                                <?php
    953938
    954939                                // Get ACP?
    955940                                else : ?>
    956                                     <a target="_blank" href="<?php echo esc_attr( $this->get_url('pricing') ); ?>" class="button"><?php _e( 'Get this add-on', 'cpac' ); ?></a>
     941                                    <a target="_blank" href="<?php echo esc_attr( $this->get_url('pricing') ); ?>" class="button"><?php _e( 'Get this add-on', 'codepress-admin-columns' ); ?></a>
    957942                                <?php endif; ?>
    958943                            <?php endif; ?>
  • codepress-admin-columns/trunk/classes/storage_model.php

    r1220017 r1264693  
    4747
    4848    /**
     49     * @since NEWVERSIOM
     50     */
     51    private $column_headings;
     52
     53    /**
    4954     * @since 2.0
    5055     * @var string
     
    143148                return true;
    144149            }
     150        }
    145151
    146152        // settings page has not yet been saved
    147         } elseif ( $first_posttype == $this->key ) {
     153        elseif ( $first_posttype == $this->key ) {
    148154            return true;
    149155        }
     
    153159
    154160    /**
    155      * @since NEWVERSION
     161     * @since 2.4.7
    156162     */
    157163    public function format_meta_keys( $keys ) {
     
    221227     */
    222228    protected function add_hidden_meta( $fields ) {
    223         if ( ! $fields )
     229        if ( ! $fields ) {
    224230            return false;
     231        }
    225232
    226233        $combined_fields = array();
     
    253260        delete_option( "cpac_options_{$this->key}" );
    254261
    255         cpac_admin_message( "<strong>{$this->label}</strong> " . __( 'settings succesfully restored.',  'cpac' ), 'updated' );
     262        cpac_admin_message( "<strong>{$this->label}</strong> " . __( 'settings succesfully restored.',  'codepress-admin-columns' ), 'updated' );
    256263
    257264        // refresh columns otherwise the removed columns will still display
     
    269276
    270277        if ( ! $columns ) {
    271             cpac_admin_message( __( 'No columns settings available.',  'cpac' ), 'error' );
     278            cpac_admin_message( __( 'No columns settings available.',  'codepress-admin-columns' ), 'error' );
    272279            return false;
    273280        }
     
    290297        // error
    291298        if ( ! $result && ! $result_default ) {
    292             cpac_admin_message( sprintf( __( 'You are trying to store the same settings for %s.', 'cpac' ), "<strong>{$this->label}</strong>" ), 'error' );
     299            cpac_admin_message( sprintf( __( 'You are trying to store the same settings for %s.', 'codepress-admin-columns' ), "<strong>{$this->label}</strong>" ), 'error' );
    293300            return false;
    294301        }
    295302
    296         cpac_admin_message( sprintf( __( 'Settings for %s updated successfully.',  'cpac' ), "<strong>{$this->label}</strong>" ), 'updated' );
     303        cpac_admin_message( sprintf( __( 'Settings for %s updated successfully.',  'codepress-admin-columns' ), "<strong>{$this->label}</strong>" ), 'updated' );
    297304
    298305        // refresh columns otherwise the newly added columns will not be displayed
     
    327334        );
    328335
    329         // Display ACF placeholder
    330         if ( class_exists('acf') && ! class_exists( 'CAC_Addon_Pro' ) ) {
    331             $columns[ 'CPAC_Column_ACF_Placeholder' ] = CPAC_DIR . 'classes/column/acf-placeholder.php';
     336        // Add-on placeholders
     337        if ( ! cpac_is_pro_active() ) {
     338
     339            // Display ACF placeholder
     340            if ( cpac_is_acf_active() ) {
     341                $columns[ 'CPAC_Column_ACF_Placeholder' ] = CPAC_DIR . 'classes/column/acf-placeholder.php';
     342            }
     343
     344            // Display WooCommerce placeholder
     345            if ( cpac_is_woocommerce_active() ) {
     346                $columns[ 'CPAC_Column_WC_Placeholder' ] = CPAC_DIR . 'classes/column/wc-placeholder.php';
     347            }
    332348        }
    333349
     
    601617        $this->column_types = $this->get_grouped_column_types();
    602618        $this->columns = $this->get_columns();
     619
     620        do_action( 'cac/set_columns/after', $this );
    603621    }
    604622
     
    629647
    630648        $groups = array(
    631             'default' => __( 'Default', 'cpac' ),
    632             'custom-field' => __( 'Custom Field', 'cpac' ),
    633             'custom' => __( 'Custom', 'cpac' ),
    634             'plugin' => __( 'Columns by Plugins', 'cpac' ),
     649            'default' => __( 'Default', 'codepress-admin-columns' ),
     650            'custom-field' => __( 'Custom Field', 'codepress-admin-columns' ),
     651            'custom' => __( 'Custom', 'codepress-admin-columns' ),
     652            'plugin' => __( 'Columns by Plugins', 'codepress-admin-columns' ),
     653            'acf' => __( 'Advanced Custom Fields', 'codepress-admin-columns' ),
     654            'woocommerce' => __( 'WooCommerce', 'codepress-admin-columns' )
    635655        );
    636656
     
    777797    public function add_headings( $columns ) {
    778798
     799        // make sure we run this only once
     800        if ( $this->column_headings ) {
     801            return $this->column_headings;
     802        }
     803
    779804        // only add headings on overview screens, to prevent deactivating columns on the column settings screen
    780805        if ( ! $this->is_columns_screen() ) {
     
    786811        }
    787812
    788         $column_headings = array();
     813        if ( ! $this->default_columns ) {
     814            return $columns;
     815        }
     816
     817        $this->column_headings = array();
    789818
    790819        // add mandatory checkbox
    791820        if ( isset( $columns['cb'] ) ) {
    792             $column_headings['cb'] = $columns['cb'];
     821            $this->column_headings['cb'] = $columns['cb'];
    793822        }
    794823
     
    812841            $label = str_replace( '[cpac_site_url]', site_url(), $label );
    813842
    814             $column_headings[ $column_name ] = $label;
     843            $this->column_headings[ $column_name ] = $label;
    815844        }
    816845
     
    820849        if ( ! $this->is_using_php_export() && ( $diff = array_diff( array_keys( $columns ), $this->get_default_stored_columns() ) ) ) {
    821850            foreach ( $diff as $column_name ) {
    822                 $column_headings[ $column_name ] = $columns[ $column_name ];
    823             }
    824         }
    825 
    826         return $column_headings;
     851                $this->column_headings[ $column_name ] = $columns[ $column_name ];
     852            }
     853        }
     854
     855        return $this->column_headings;
    827856    }
    828857
     
    842871
    843872        if ( $link = $this->get_screen_link() ) {
    844             echo '<a href="' . $link . '" class="add-new-h2">' . __('View', 'cpac') . '</a>';
     873            echo '<a href="' . $link . '" class="add-new-h2">' . __('View', 'codepress-admin-columns') . '</a>';
    845874        }
    846875    }
     
    938967        return $options[ $option ];
    939968    }
    940 
    941     /**
    942      * @since 2.4.2
    943      */
    944     public function is_cache_enabled() {
    945         return apply_filters( 'cac/is_cache_enabled', true );
    946     }
    947 
    948     /**
    949      * @since 3.1.2
    950      * @param $id Cache ID
    951      * @param $column_name Column property name
    952      * @return string MD5 Cache ID
    953      */
    954     public function get_cache_id( $id, $column_name ) {
    955         return md5( $this->key . $id . $column_name );
    956     }
    957 
    958     /**
    959      * @since 3.1.2
    960      * @param $id Cache ID
    961      * @param $column_name Column property name
    962      * @param $cache_object Cache Object
    963      * @param $duration int Cache duration in seconds. default is 1 day.
    964      */
    965     public function set_cache( $id, $column_name, $cache_object, $duration = 86400 ) {
    966         if ( empty( $cache_object ) ) {
    967             return false;
    968         }
    969         set_transient( $this->get_cache_id( $id, $column_name ), $cache_object, $duration );
    970     }
    971 
    972     /**
    973      * @since 3.1.2
    974      * @param $id Cache ID ( could be a name of an addon for example )
    975      * @param $column_name Column property name
    976      * @return false | mixed Returns either false or the cached objects
    977      */
    978     public function get_cache( $id, $column_name ) {
    979         $cache = get_transient( $this->get_cache_id( $id, $column_name ) );
    980 
    981         if ( empty( $cache ) ) {
    982             return false;
    983         }
    984 
    985         return $cache;
    986     }
    987 
    988     /**
    989      * @since 3.1.2
    990      * @param $id Cache ID
    991      * @param $column_name Column property name
    992      */
    993     public function delete_cache( $id, $column_name ) {
    994         delete_transient( $this->get_cache_id( $id, $column_name ) );
    995     }
    996969}
  • codepress-admin-columns/trunk/classes/storage_model/post.php

    r1220017 r1264693  
    2727
    2828        // Since 3.1
    29         add_filter( "manage_{$post_type}_posts_columns", array( $this, 'add_headings' ), 100, 1 );
     29        add_filter( "manage_{$post_type}_posts_columns", array( $this, 'add_headings' ), 100 );
    3030
    3131        // Deprecated ( as of 3.1 ) Note: This one is still used by woocommerce.
     
    3333        // Filter is located in get_column_headers().
    3434        // @todo_minor check compatibility issues for this deprecated filter
    35         add_filter( "manage_{$this->page}-{$post_type}_columns",  array( $this, 'add_headings' ), 100, 1 );
     35        add_filter( "manage_{$this->page}-{$post_type}_columns",  array( $this, 'add_headings' ), 100 );
    3636
    3737        // values
     
    5757     * Get post ID's
    5858     *
    59      * @since NEWVERSION
     59     * @since 2.4.7
    6060     *
    6161     * @param array $args
     
    135135     */
    136136    public function get_default_column_names() {
    137         if ( ! in_array( $this->post_type, array( 'post', 'page' ) ) ) {
    138             return false;
    139         }
    140         return array( 'author', 'cb', 'categories', 'comments', 'date', 'parent', 'tags', 'title' );
     137
     138        $defaults = array( 'date' );
     139
     140        if ( post_type_supports( $this->post_type, 'title' ) ) {
     141            $defaults[] = 'title';
     142        }
     143        if ( post_type_supports( $this->post_type, 'comments' ) ) {
     144            $defaults[] = 'comments';
     145        }
     146
     147        if ( in_array( $this->post_type, array( 'post', 'page' ) ) ) {
     148            $defaults[] = 'cb';
     149            $defaults[] = 'author';
     150            $defaults[] = 'categories';
     151            $defaults[] = 'comments';
     152            $defaults[] = 'parent';
     153            $defaults[] = 'tags';
     154        }
     155
     156        return $defaults;
    141157    }
    142158
  • codepress-admin-columns/trunk/classes/storage_model/user.php

    r1220017 r1264693  
    2525
    2626        parent::__construct();
     27    }
     28
     29    /**
     30     * @since 2.4.7
     31     */
     32    public function get_original_column_value( $column, $id ) {
     33
     34        // Remove Admin Columns action for this column's value
     35        remove_action( "manage_users_custom_column", array( $this, 'manage_value_callback' ), 100, 3 );
     36
     37        ob_start();
     38
     39        do_action( "manage_users_custom_column", $column, $id );
     40
     41        $contents = ob_get_clean();
     42
     43        // Add removed Admin Columns action for this column's value
     44        add_action( "manage_users_custom_column", array( $this, 'manage_value_callback' ), 100, 3 );
     45
     46        return $contents;
    2747    }
    2848
  • codepress-admin-columns/trunk/classes/third_party.php

    r1136036 r1264693  
    11<?php
    2 
    3 /**
    4  * Fix for getting the columns loaded by WordPress SEO Yoast
    5  *
    6  * The added columns from WordPress SEO by Yoast weren't available on
    7  * the admin columns settings page. The reason was that class-metabox.php was prevented
    8  * from loading. This fix will also load this class when admin columns is loaded.
    9  *
    10  * @since 1.4.6
    11  */
    12 function cpac_pre_load_wordpress_seo_class_metabox() {
    13 
    14     if ( ! defined('WPSEO_PATH') || ! file_exists( WPSEO_PATH . 'admin/class-metabox.php' ) ) {
    15         return;
    16     }
    17 
    18     global $pagenow;
    19 
    20     // page is a CPAC page or CPAC ajax event
    21     if (
    22         ( isset( $_GET['page'] ) && 'codepress-admin-columns' == $_GET['page'] && 'options-general.php' == $pagenow )
    23         ||
    24         // for when column list is populated through ajax
    25         ( defined('DOING_AJAX') && DOING_AJAX &&
    26             ( ! empty( $_POST['type'] )
    27                 ||
    28                 ( ! empty( $_POST['plugin_id'] ) && 'cpac' === $_POST['plugin_id'] ) )
    29             )
    30         ) {
    31 
    32         require_once WPSEO_PATH . 'admin/class-metabox.php';
    33         if ( class_exists( 'WPSEO_Metabox', false ) ) {
    34             new WPSEO_Metabox;
    35         }
    36     }
    37 
    38 }
    39 add_action( 'plugins_loaded', 'cpac_pre_load_wordpress_seo_class_metabox', 0 );
    40 
    41 /**
    42  * WPML compatibility
    43  *
    44  * @since 2.0
    45  */
    46 function cac_add_wpml_columns( $storage_model ) {
    47 
    48     if ( ! class_exists( 'SitePress', false ) ) {
    49         return;
    50     }
    51 
    52     if ( 'post' !== $storage_model->type ) {
    53         return;
    54     }
    55 
    56     global $pagenow, $cpac;
    57 
    58     // check if we are on the correct page or when a columns is being refreshed by ajax.
    59     if ( ( 'options-general.php' !== $pagenow ) && ( empty( $_POST['action'] ) || 'cpac_column_refresh' !== $_POST['action'] ) ) {
    60         return;
    61     }
    62 
    63     // prevent PHP errors from SitePress
    64     global $sitepress, $posts, $__management_columns_posts_translations;
    65     $__management_columns_posts_translations = 'not_null';
    66     $posts = get_posts( array(
    67         'post_type'     => $storage_model->post_type,
    68         'numberposts'   => -1
    69     ));
    70 
    71     // Trigger SitePress::add_posts_management_column()
    72     add_filter( 'manage_' . $storage_model->post_type . 's_columns', array( $sitepress, 'add_posts_management_column' ) );
    73 }
    74 add_action( 'cac/set_columns', 'cac_add_wpml_columns' );
    75 
    76 /**
    77  * Fix which remove the Advanced Custom Fields Type (acf) from the admin columns settings page
    78  *
    79  * @since 2.0
    80  *
    81  * @return array Posttypes
    82  */
    83 function cpac_remove_acf_from_cpac_post_types( $post_types ) {
    84     if ( class_exists( 'Acf', false ) ) {
    85         if ( isset( $post_types['acf'] ) ) {
    86             unset( $post_types['acf'] );
    87         }
    88         if ( isset( $post_types['acf-field-group'] ) ) {
    89             unset( $post_types['acf-field-group'] );
    90         }
    91     }
    92 
    93     return $post_types;
    94 }
    95 add_filter( 'cac/post_types', 'cpac_remove_acf_from_cpac_post_types' );
    96 
    97 /**
    98  * bbPress - remove posttypes: forum, reply and topic
    99  *
    100  * The default columns of bbPress are not recognised by Admin Columns as of yet.
    101  *
    102  * @since 2.0
    103  *
    104  * @return array Posttypes
    105  */
    106 function cpac_posttypes_remove_bbpress( $post_types ) {
    107     if ( class_exists( 'bbPress', false ) ) {
    108         unset( $post_types['topic'] );
    109         unset( $post_types['reply'] );
    110         unset( $post_types['forum'] );
    111     }
    112 
    113     return $post_types;
    114 }
    115 add_filter( 'cac/post_types', 'cpac_posttypes_remove_bbpress' );
    116 
    117 /**
    118  * Fix for Ninja Forms
    119  *
    120  * @since 2.0
    121  *
    122  * @return array Posttypes
    123  */
    124 function cpac_remove_ninja_forms_from_cpac_post_types( $post_types ) {
    125     if ( class_exists( 'Ninja_Forms', false ) ) {
    126         if ( isset( $post_types['nf_sub'] ) ) {
    127             unset( $post_types['nf_sub'] );
    128         }
    129     }
    130 
    131     return $post_types;
    132 }
    133 add_filter( 'cac/post_types', 'cpac_remove_ninja_forms_from_cpac_post_types' );
    134 
    135 /**
    136  * Add support for All in SEO columns
    137  *
    138 * @since 2.0
    139  */
    140 function cpac_load_aioseop_addmycolumns() {
    141     if ( function_exists('aioseop_addmycolumns') ) {
    142         aioseop_addmycolumns();
    143     }
    144 }
    145 add_action( 'cac/columns/default/posts', 'cpac_load_aioseop_addmycolumns' );
    146 
    147 /**
    148  * WPML Register labels
    149  *
    150  * To enable the translation of the column labels
    151  *
    152  * @since 2.0
    153  */
    154 function cpac_wpml_register_column_labels() {
    155     global $cpac;
    156 
    157     // dont load this unless required by WPML
    158     if ( !isset( $_GET['page'] ) || 'wpml-string-translation/menu/string-translation.php' !== $_GET['page'] ) return;
    159 
    160     foreach ( $cpac->storage_models as $storage_model ) {
    161         foreach ( $storage_model->get_stored_columns() as $column_name => $options ) {
    162             icl_register_string( 'Admin Columns', $storage_model->key . '_' . $column_name, stripslashes( $options['label'] ) );
    163         }
    164     }
    165 }
    166 add_action( 'wp_loaded', 'cpac_wpml_register_column_labels', 99 );
    167 
    168 /**
    169  * WPML Display translated label
    170  *
    171  * @since 2.0
    172  */
    173 function cpac_wpml_set_translated_label( $label, $column_name, $column_options, $storage_model ) {
    174 
    175     // register with WPML
    176     if( function_exists('icl_t') ) {
    177         $name   = $storage_model->key . '_' . $column_name;
    178         $label  = icl_t( 'Admin Columns', $name, $label );
    179     }
    180 
    181     return $label;
    182 }
    183 add_filter( 'cac/headings/label', 'cpac_wpml_set_translated_label', 10, 4 );
    184 
    185 /**
    186  * Set WPML to be a columns screen for translation so that storage models are loaded
    187  *
    188  * @since 2.2
    189  */
    190 function cpac_wpml_is_cac_screen( $is_columns_screen ) {
    191 
    192     if ( isset( $_GET['page'] ) && $_GET['page'] == 'wpml-string-translation/menu/string-translation.php' ) {
    193         return true;
    194     }
    195 
    196     return $is_columns_screen;
    197 }
    198 add_filter( 'cac/is_cac_screen', 'cpac_wpml_is_cac_screen' );
     2require_once CPAC_DIR . 'classes/third_party/all-in-seo.php';
     3require_once CPAC_DIR . 'classes/third_party/bbpress.php';
     4require_once CPAC_DIR . 'classes/third_party/ninja_forms.php';
     5require_once CPAC_DIR . 'classes/third_party/wpml.php';
     6require_once CPAC_DIR . 'classes/third_party/yoast_seo.php';
  • codepress-admin-columns/trunk/classes/upgrade.php

    r1136036 r1264693  
    6060        <div class="message error">
    6161            <p>
    62                 <?php _e( 'The pro add-on is no longer supported. Please login to your account and download Admin Columns Pro', 'cpac' ); ?>
    63                 <a href="https://www.admincolumns.com/pro-addon-information/" target="_blank"><?php _e( 'Learn more', 'cpac' ); ?></a>
     62                <?php _e( 'The pro add-on is no longer supported. Please login to your account and download Admin Columns Pro', 'codepress-admin-columns' ); ?>
     63                <a href="https://www.admincolumns.com/pro-addon-information/" target="_blank"><?php _e( 'Learn more', 'codepress-admin-columns' ); ?></a>
    6464            </p>
    6565        </div>
     
    9393        }
    9494
    95         $upgrade_page = add_submenu_page( 'options-general.php', __( 'Upgrade', 'cpac' ), __( 'Upgrade', 'cpac' ), 'manage_options', 'cpac-upgrade', array( $this, 'start_upgrade' ) );
     95        $upgrade_page = add_submenu_page( 'options-general.php', __( 'Upgrade', 'codepress-admin-columns' ), __( 'Upgrade', 'codepress-admin-columns' ), 'manage_options', 'cpac-upgrade', array( $this, 'start_upgrade' ) );
    9696        add_action( "admin_print_scripts-{$upgrade_page}", array( $this, 'admin_scripts' ) );
    9797    }
     
    133133                if ( ! ( isset( $_REQUEST['page'] ) && 'cpac-upgrade' === $_REQUEST['page'] ) ) {
    134134
    135                     $message =  __( 'Admin Columns', 'cpac' ) . ' v' . CPAC_VERSION . ' ' .
    136                                 __( 'requires a database upgrade','cpac' ) .
     135                    $message =  __( 'Admin Columns', 'codepress-admin-columns' ) . ' v' . CPAC_VERSION . ' ' .
     136                                __( 'requires a database upgrade','codepress-admin-columns' ) .
    137137                                ' (<a class="thickbox" href="' . admin_url() .
    138138                                'plugin-install.php?tab=plugin-information&plugin=codepress-admin-columns&section=changelog&TB_iframe=true&width=640&height=559">' .
    139                                 __( 'why?', 'cpac' ) .'</a>). ' .
    140                                 __( "Please", 'cpac' ) .' <a href="http://codex.wordpress.org/Backing_Up_Your_Database">' .
    141                                 __( "backup your database", 'cpac' ) .'</a>, '.
    142                                 __( "then click", 'cpac' ) . ' <a href="' . admin_url() . 'options-general.php?page=cpac-upgrade" class="button">' .
    143                                 __( "Upgrade Database", 'cpac' ) . '</a>';
     139                                __( 'why?', 'codepress-admin-columns' ) .'</a>). '  .
     140                                __( "Please", 'codepress-admin-columns' ) .' <a href="http://codex.wordpress.org/Backing_Up_Your_Database">' .
     141                                __( "backup your database", 'codepress-admin-columns' ) .'</a>, '.
     142                                __( "then click", 'codepress-admin-columns' ) . ' <a href="' . admin_url() . 'options-general.php?page=cpac-upgrade" class="button">' .
     143                                __( "Upgrade Database", 'codepress-admin-columns' ) . '</a>';
    144144
    145145                    cpac_admin_message( $message, 'updated' );
     
    349349                $return = array(
    350350                    'status'    =>  true,
    351                     'message'   =>  __( "Migrating Column Settings", 'cpac' ) . '...',
     351                    'message'   =>  __( "Migrating Column Settings", 'codepress-admin-columns' ) . '...',
    352352                    'next'      =>  false,
    353353                );
     
    385385        // No update required
    386386        else : ?>
    387             <p><?php _e( 'No Upgrade Required', 'cpac' ); ?></p>
    388             <a href="<?php echo admin_url('options-general.php'); ?>?page=codepress-admin-columns&amp;info"><?php _e( 'Return to welcome screen.', 'cpac' ); ?></a>
     387            <p><?php _e( 'No Upgrade Required', 'codepress-admin-columns' ); ?></p>
     388            <a href="<?php echo admin_url('options-general.php'); ?>?page=codepress-admin-columns&amp;info"><?php _e( 'Return to welcome screen.', 'codepress-admin-columns' ); ?></a>
    389389        <?php
    390390        endif;
     
    404404        // javascript translations
    405405        wp_localize_script( 'cpac-upgrade', 'cpac_upgrade_i18n', array(
    406             'complete'      => __( 'Upgrade Complete!', 'cpac' ) . '</p><p><a href="' . admin_url('options-general.php')  . '?page=codepress-admin-columns&info">' . __( 'Return to settings.', 'cpac' ) . "</a>" ,
    407             'error'         => __( 'Error', 'cpac' ),
    408             'major_error'   => __( 'Sorry. Something went wrong during the upgrade process. Please report this on the support forum.', 'cpac' )
     406            'complete'      => __( 'Upgrade Complete!', 'codepress-admin-columns' ) . '</p><p><a href="' . admin_url('options-general.php')  . '?page=codepress-admin-columns&info">' . __( 'Return to settings.', 'codepress-admin-columns' ) . "</a>" ,
     407            'error'         => __( 'Error', 'codepress-admin-columns' ),
     408            'major_error'   => __( 'Sorry. Something went wrong during the upgrade process. Please report this on the support forum.', 'codepress-admin-columns' )
    409409        ));
    410410    }
  • codepress-admin-columns/trunk/classes/utility.php

    r1220017 r1264693  
    7070}
    7171
    72 function cpac_get_ids_from_array( $array ) {
    73     $array = trim( str_replace( ' ','', $array ) );
    74     $ids = array();
    75     if ( strpos( $array, ',' ) !== false ) {
    76         $ids = explode( ',', $array );
    77         $ids = array_map( 'intval', $ids );
    78     }
    79     elseif ( is_numeric( $array ) ) {
    80         $ids[] = $array;
    81     }
    82     return $ids;
     72function cpac_is_acf_active() {
     73    return class_exists( 'acf', false );
    8374}
     75
     76function cpac_is_woocommerce_active() {
     77    return class_exists( 'WooCommerce', false );
     78}
     79
     80function cpac_is_pro_active() {
     81    return class_exists( 'CAC_Addon_Pro', false );
     82}
  • codepress-admin-columns/trunk/codepress-admin-columns.php

    r1220017 r1264693  
    22/*
    33Plugin Name: Admin Columns
    4 Version: 2.4.6
     4Version: 2.4.7
    55Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
    66Author: AdminColumns.com
    77Author URI: http://www.admincolumns.com
    88Plugin URI: http://www.admincolumns.com
    9 Text Domain: cpac
     9Text Domain: codepress-admin-columns
    1010Domain Path: /languages
    1111License: GPLv2
     
    3333
    3434// Plugin information
    35 define( 'CPAC_VERSION',         '2.4.6' ); // Current plugin version
     35define( 'CPAC_VERSION',         '2.4.7' ); // Current plugin version
    3636define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // Latest version which requires an upgrade
    3737define( 'CPAC_URL',             plugin_dir_url( __FILE__ ) );
     
    9797
    9898    /**
     99     * Column settings to import from a column PHP export
     100     *
     101     * @since 2.4.7
     102     * @var array
     103     */
     104    public $exported_columns;
     105
     106    /**
    99107     * @since 1.0
    100108     */
     
    151159    public function localize() {
    152160
    153         load_plugin_textdomain( 'cpac', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     161        load_plugin_textdomain( 'codepress-admin-columns', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    154162    }
    155163
     
    208216     */
    209217    public function maybe_load_php_export() {
    210         global $_cac_exported_columns;
    211         if ( $_cac_exported_columns ) {
    212             foreach( $_cac_exported_columns as $model => $columns ) {
     218        if ( ! empty( $this->exported_columns ) ) {
     219            foreach( $this->exported_columns as $model => $columns ) {
    213220                if ( $storage_model = $this->get_storage_model( $model ) ) {
    214221                    $storage_model->set_stored_columns( $columns );
     
    442449        <script type="text/javascript">
    443450            jQuery(document).ready(function() {
    444                 jQuery('.tablenav.top .actions:last').append('<a href="<?php echo $edit_link; ?>" class="cpac-edit add-new-h2"><?php _e( 'Edit columns', 'cpac' ); ?></a>');
     451                jQuery('.tablenav.top .actions:last').append('<a href="<?php echo $edit_link; ?>" class="cpac-edit add-new-h2"><?php _e( 'Edit columns', 'codepress-admin-columns' ); ?></a>');
    445452            });
    446453        </script>
  • codepress-admin-columns/trunk/readme.txt

    r1233078 r1264693  
    44Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
    55Requires at least: 3.5
    6 Tested up to: 4.3
    7 Stable tag: 2.4.6
     6Tested up to: 4.3.1
     7Stable tag: 2.4.7
    88
    99Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
     
    213213== Changelog ==
    214214
     215= 2.4.7 =
     216* [Added] Comment Post column added
     217* [Update] User Actions columns extends CPAC_Actions object
     218* [Update] PHP export columns no longer uses global
     219* [Added] Added "Link To" selection field for the author column
     220* [Fixed] Date and Title column are labeled as Default column for posts
     221* [Fixed] WPML columns will display the correct flag on the overview when switching language
     222
    215223= 2.4.6 =
    216224* [Fixed] Page Order column is now available on all supported posttypes
    217 * [Fixed] Time reading columns shows "-"" instead of zero when there is no content
     225* [Fixed] Time reading columns shows "-" instead of zero when there is no content
    218226
    219227= 2.4.5 =
Note: See TracChangeset for help on using the changeset viewer.