Admin Columns - Version 2.2.1

Version Description

  • [Added] Option to make permalink in permalink column clickable (linking to post)
  • [Added] Direct support box in Admin Columns settings screen sidebar
  • [Added] Added filter to suppress pro add-on notice (cpac/suppress_proaddon_notice)
  • [Updated] Minor adjustments for WooCommerce and other third party plugin support, setting up the post object in post columns
  • [Updated] Minor update in default column retrieval for improved 3rd party plugin support
  • [Fixed] Fixed problem with column groups incorrectly handling default 3rd party columns
  • [Updated] Updated translations from Transifex
Download this release

Release Info

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

Code changes from version 2.2 to 2.2.1

assets/css/admin-column.css CHANGED
@@ -702,6 +702,79 @@ h2.cpac-nav-tab-wrapper {
702
  font-size: 15px;
703
  text-decoration: none;
704
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
705
  /**
706
  * Setting Tab
707
  * ----------------------------------------------------------------------------
702
  font-size: 15px;
703
  text-decoration: none;
704
  }
705
+ .columns-right .sidebox#direct-feedback #feedback-support,
706
+ .columns-right .sidebox#direct-feedback #feedback-rate {
707
+ display: none;
708
+ }
709
+ .columns-right .sidebox#direct-feedback .inside > a {
710
+ border-radius: 4px;
711
+ border: 1px solid #CCC;
712
+ width: 48%;
713
+ height: 64px;
714
+ text-align: center;
715
+ line-height: 64px;
716
+ font-weight: bold;
717
+ color: #CCC;
718
+ display: inline-block;
719
+ text-decoration: none;
720
+ }
721
+ .columns-right .sidebox#direct-feedback .inside > a:hover {
722
+ background: #FAFAFA;
723
+ }
724
+ .columns-right .sidebox#direct-feedback .inside form textarea {
725
+ width: 100%;
726
+ height: 120px;
727
+ }
728
+ .columns-right .sidebox#direct-feedback .inside form input[type="submit"] {
729
+ float: right;
730
+ border-radius: 4px;
731
+ border: 1px solid #CCC;
732
+ height: 32px;
733
+ text-align: center;
734
+ line-height: 32px;
735
+ font-weight: bold;
736
+ font-size: 12px;
737
+ padding: 0 32px;
738
+ color: #CCC;
739
+ display: inline-block;
740
+ background: none;
741
+ text-decoration: none;
742
+ cursor: pointer;
743
+ }
744
+ .columns-right .sidebox#direct-feedback .inside form input[type="submit"]:hover {
745
+ background: #FAFAFA;
746
+ }
747
+ .columns-right .sidebox#direct-feedback .inside form p.description {
748
+ float: left;
749
+ font-size: 10px;
750
+ }
751
+ .columns-right .sidebox#direct-feedback .inside ul {
752
+ margin: 0;
753
+ }
754
+ .columns-right .sidebox#direct-feedback .inside ul.share li {
755
+ margin: 0;
756
+ display: block;
757
+ float: left;
758
+ margin-left: 9px;
759
+ width: 30%;
760
+ }
761
+ .columns-right .sidebox#direct-feedback .inside ul.share li a {
762
+ text-decoration: none;
763
+ vertical-align: middle;
764
+ line-height: 20px;
765
+ padding: 16px 0;
766
+ width: 100%;
767
+ text-align: center;
768
+ border: 1px solid #CCC;
769
+ border-radius: 4px;
770
+ display: block;
771
+ }
772
+ .columns-right .sidebox#direct-feedback .inside ul.share li a:hover {
773
+ background: #FAFAFA;
774
+ }
775
+ .columns-right .sidebox#direct-feedback .inside ul.share li:first-child {
776
+ margin-left: 0;
777
+ }
778
  /**
779
  * Setting Tab
780
  * ----------------------------------------------------------------------------
assets/js/admin-columns.js CHANGED
@@ -22,6 +22,7 @@ jQuery(document).ready(function() {
22
  cpac_sidebar_scroll();
23
  cpac_addons();
24
  cpac_importexport();
 
25
 
26
  // we start by binding the toggle and remove events.
27
  jQuery('.cpac-column').each( function( i, col ) {
@@ -377,6 +378,29 @@ function cpac_add_column() {
377
  });
378
  }
379
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
380
  /*
381
  * Sidebar Scroll
382
  *
22
  cpac_sidebar_scroll();
23
  cpac_addons();
24
  cpac_importexport();
25
+ cpac_sidebar_feedback();
26
 
27
  // we start by binding the toggle and remove events.
28
  jQuery('.cpac-column').each( function( i, col ) {
378
  });
379
  }
380
 
381
+ /**
382
+ * @since 2.2.1
383
+ */
384
+ function cpac_sidebar_feedback() {
385
+ jQuery( function( $ ) {
386
+ var sidebox = $( '.sidebox#direct-feedback' );
387
+
388
+ sidebox.find( '#feedback-choice a.no' ).click( function( e ) {
389
+ e.preventDefault();
390
+
391
+ sidebox.find( '#feedback-choice' ).slideUp();
392
+ sidebox.find( '#feedback-support' ).slideDown();
393
+ } );
394
+
395
+ sidebox.find( '#feedback-choice a.yes' ).click( function( e ) {
396
+ e.preventDefault();
397
+
398
+ sidebox.find( '#feedback-choice' ).slideUp();
399
+ sidebox.find( '#feedback-rate' ).slideDown();
400
+ } );
401
+ } );
402
+ }
403
+
404
  /*
405
  * Sidebar Scroll
406
  *
assets/js/admin-columns.min.js CHANGED
@@ -1,4 +1,4 @@
1
  /*
2
  * Fires when the dom is ready
3
  *
4
- */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_add_column(){jQuery("#cpac .add_column").click(function(e){var t=jQuery(this).closest(".columns-container"),n=jQuery(".for-cloning-only .cpac-column",t).first().clone(),r=t.attr("data-type");if(n.length>0){n.cpac_update_clone_id(r);jQuery(".cpac-columns form",t).append(n);n.column_bind_toggle();n.column_bind_remove();n.column_bind_events();n.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:n.offset().top-58},300)});jQuery(document).trigger("column_add",n)}e.preventDefault()})}function cpac_sidebar_scroll(){if(jQuery(".columns-right-inside").length===0)return;if(jQuery(".columns-right-inside:visible").offset()){var e=jQuery(".columns-right-inside:visible").offset().top-parseFloat(jQuery(".columns-right-inside:visible").css("margin-top").replace(/auto/,0))-70;jQuery(window).scroll(function(t){var n=jQuery(this).scrollTop(),r=jQuery("#cpac").offset().top-parseFloat(jQuery("#cpac").css("margin-top").replace(/auto/,0));n>=e+r?jQuery(".columns-right-inside:visible").addClass("fixed"):jQuery(".columns-right-inside:visible").removeClass("fixed")})}}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 t=jQuery("#contextual-help-wrap");t.parent().show();jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',t).trigger("click");t.slideDown("fast",function(){t.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),t=e.attr("rel"),n=e.attr("data-pos"),r={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==n&&(r={at:"right middle",my:"left middle",edge:"left"});e.pointer({content:jQuery("#"+t).html(),position:r,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+r.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").sortable({items:".cpac-column",revert:250,handle:"td.column_sort",forcePlaceholderSize:!0,sort:function(e,t){jQuery(t.placeholder).is(":empty")&&jQuery(t.placeholder).html('<div class="inner-placeholder"></div>')}})}function cpac_menu(){var e=jQuery("#cpac div.cpac-menu");e.find("a").click(function(e,t){var n=jQuery(this).attr("href");if(n){var r=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current");jQuery(".columns-container").hide();jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+r+'"]').show(),s=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",s)}e.preventDefault()});e.find("a.current").trigger("click")}jQuery(document).ready(function(){if(jQuery("#cpac").length===0)return!1;cpac_pointer();cpac_submit_form();cpac_clear_input_defaults();cpac_sortable();cpac_menu();cpac_help();cpac_add_column();cpac_sidebar_scroll();jQuery(".cpac-column").each(function(e,t){jQuery(t).column_bind_toggle();jQuery(t).column_bind_remove();jQuery(t).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(t){t.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.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading");e.find(".column-form").prepend('<span class="spinner" />');jQuery.post(ajaxurl,{action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(t){e.html(t);e.column_bind_toggle();e.column_bind_remove();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),t=e.closest(".columns-container "),n=t.attr("data-type"),r=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),s=i.val(),o=i.text(),u=jQuery(this).next(".msg").hide(),a=t.find('.for-cloning-only .cpac-column[data-type="'+s+'"]');if(a.length)if(a.find(".is-disabled").length){u.html(a.find(".is-disabled").html()).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected")}else{if(typeof a.attr("data-clone")=="undefined"&&jQuery(".cpac-columns",t).find('[data-type="'+s+'"]').length){u.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected");return}var f=a.clone();f.addClass("opened").find(".column-form").show();f.find(".column-meta").replaceWith(e.find(".column-meta"));f.find(".column-form").replaceWith(e.find(".column-form"));f.cpac_update_clone_id(n);e.replaceWith(f);f.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.find(".input-width-range").each(function(){var e=jQuery(this).closest("td").find(".input-width"),t=jQuery(this).closest("td").find(".width-decription"),n=jQuery(e)[0].defaultValue,r=t.attr("title");jQuery(this).slider({range:"min",min:0,max:100,value:n,slide:function(n,i){var s=i.value>0?i.value+"%":r;jQuery(e).val(i.value);jQuery(t).text(s)}})});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");if(jQuery(this).hasClass("image-size-custom")){jQuery(".custom-size-w",e).removeClass("hidden");jQuery(".custom-size-h",e).removeClass("hidden")}else{jQuery(".custom-size-w",e).addClass("hidden");jQuery(".custom-size-h",e).addClass("hidden")}});e.find(".column-form .label label").hover(function(){jQuery(this).find("p.description").show()},function(){jQuery(this).find("p.description").hide()});e.find(".column_type select").val()=="column-meta"&&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.cpac_update_clone_id=function(e){var t=jQuery(this),n=t.attr("data-type"),r=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(r).find('*[data-type="'+n+'"]').not(t),s=jQuery.map(i,function(e,t){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});s.sort();var o=Math.max.apply(null,s)+1;for(var u=0;u<=o;u++)if(-1===jQuery.inArray(u,s))break;if(0===u)return;t.attr("data-clone",u);t.find("input.clone").val(u);t.find("input.column-name").val(n+"-"+u);var a=t.find("input, select, label");jQuery(a).each(function(e,t){var r=n+"-"+u;jQuery(t).attr("name")&&jQuery(t).attr("name",jQuery(t).attr("name").replace(n,r));jQuery(t).attr("for")&&jQuery(t).attr("for",jQuery(t).attr("for").replace(n,r));jQuery(t).attr("id")&&jQuery(t).attr("id",jQuery(t).attr("id").replace(n,r))})};jQuery(document).bind("column_init column_change column_add",function(e,t){jQuery(t).cpac_bind_column_addon_events();jQuery(t).cpac_bind_container_addon_events()});jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),t=e.find("[data-toggle-id] label");t.click(function(){var t=jQuery(this).closest("td.input").data("toggle-id"),n=e.find('[data-indicator-id="'+t+'"]').removeClass("on"),r=jQuery("input",this).val();"on"==r&&n.addClass("on")})};jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),t=e.find("[data-indicator-id]");t.unbind("click").click(function(){var t=jQuery(this).data("indicator-id"),n=e.find('[data-toggle-id="'+t+'"] input');if(jQuery(this).hasClass("on")){jQuery(this).removeClass("on").addClass("off");n.filter("[value=off]").prop("checked",!0)}else{jQuery(this).removeClass("off").addClass("on");n.filter("[value=on]").prop("checked",!0)}})};
1
  /*
2
  * Fires when the dom is ready
3
  *
4
+ */function cpac_importexport(){jQuery("#php-export-results textarea").on("focus, mouseup",function(){jQuery(this).select()}).select().focus()}function cpac_addons(){}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_add_column(){jQuery("#cpac .add_column").click(function(e){var t=jQuery(this).closest(".columns-container"),n=jQuery(".for-cloning-only .cpac-column",t).first().clone(),r=t.attr("data-type");if(n.length>0){n.cpac_update_clone_id(r);jQuery(".cpac-columns form",t).append(n);n.column_bind_toggle();n.column_bind_remove();n.column_bind_events();n.addClass("opened").find(".column-form").slideDown(150,function(){jQuery("html, body").animate({scrollTop:n.offset().top-58},300)});cpac_sortable();jQuery(document).trigger("column_add",n)}e.preventDefault()})}function cpac_sidebar_feedback(){jQuery(function(e){var t=e(".sidebox#direct-feedback");t.find("#feedback-choice a.no").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-support").slideDown()});t.find("#feedback-choice a.yes").click(function(e){e.preventDefault();t.find("#feedback-choice").slideUp();t.find("#feedback-rate").slideDown()})})}function cpac_sidebar_scroll(){if(jQuery(".columns-right-inside").length===0)return;if(jQuery(".columns-right-inside:visible").offset()){var e=jQuery(".columns-right-inside:visible").offset().top-parseFloat(jQuery(".columns-right-inside:visible").css("margin-top").replace(/auto/,0))-70;jQuery(window).scroll(function(t){var n=jQuery(this).scrollTop(),r=jQuery("#cpac").offset().top-parseFloat(jQuery("#cpac").css("margin-top").replace(/auto/,0));n>=e+r?jQuery(".columns-right-inside:visible").addClass("fixed"):jQuery(".columns-right-inside:visible").removeClass("fixed")})}}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 t=jQuery("#contextual-help-wrap");t.parent().show();jQuery('a[href="#tab-panel-cpac-'+jQuery(this).attr("data-help")+'"]',t).trigger("click");t.slideDown("fast",function(){t.focus()})})}function cpac_pointer(){jQuery(".cpac-pointer").each(function(){var e=jQuery(this),t=e.attr("rel"),n=e.attr("data-pos"),r={at:"left top",my:"right top",edge:"right",offset:"0 0"};"right"==n&&(r={at:"right middle",my:"left middle",edge:"left"});e.pointer({content:jQuery("#"+t).html(),position:r,pointerWidth:250,close:function(){e.removeClass("open")},pointerClass:"wp-pointer wp-pointer-"+r.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,t){var n=jQuery(this).attr("href");if(n){var r=n.replace("#cpac-box-","");jQuery(".cpac-menu a").removeClass("current");jQuery(".columns-container").hide();jQuery(this).addClass("current");var i=jQuery('.columns-container[data-type="'+r+'"]').show(),s=i.find(".cpac-columns");jQuery(document).trigger("cac_menu_change",s)}e.preventDefault()});e.find("a.current").trigger("click")}jQuery(document).ready(function(){if(jQuery("#cpac").length===0)return!1;cpac_pointer();cpac_submit_form();cpac_clear_input_defaults();cpac_sortable();cpac_menu();cpac_help();cpac_add_column();cpac_sidebar_scroll();cpac_addons();cpac_importexport();cpac_sidebar_feedback();jQuery(".cpac-column").each(function(e,t){jQuery(t).column_bind_toggle();jQuery(t).column_bind_remove();jQuery(t).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(t){t.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.cpac_column_refresh=function(){var e=jQuery(this);e.addClass("loading");e.find(".column-form").prepend('<span class="spinner" />');jQuery.post(ajaxurl,{action:"cpac_column_refresh",column:jQuery(this).find("input.column-name").val(),formdata:jQuery(this).parents("form").serialize()},function(t){var n=jQuery("<div>"+t+"</div>").children();e.replaceWith(n);e=n;e.column_bind_toggle();e.column_bind_remove();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),t=e.closest(".columns-container "),n=t.attr("data-type"),r=e.find(".column_type select option:selected").val();e.find(".column_type select").change(function(){var i=jQuery("optgroup",this).children(":selected"),s=i.val(),o=i.text(),u=jQuery(this).next(".msg").hide(),a=t.find('.for-cloning-only .cpac-column[data-type="'+s+'"]');if(a.length)if(a.find(".is-disabled").length){u.html(a.find(".is-disabled").html()).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected")}else{if(typeof a.attr("data-clone")=="undefined"&&jQuery(".cpac-columns",t).find('[data-type="'+s+'"]').length){u.html(cpac_i18n.clone.replace("%s","<strong>"+o+"</strong>")).show();jQuery(this).find("option").removeAttr("selected");jQuery(this).find('option[value="'+r+'"]').attr("selected","selected");return}var f=a.clone();f.addClass("opened").find(".column-form").show();f.find(".column-meta").replaceWith(e.find(".column-meta"));f.find(".column-form").replaceWith(e.find(".column-form"));f.cpac_update_clone_id(n);e.replaceWith(f);f.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.find(".input-width-range").each(function(){var e=jQuery(this).closest("td").find(".input-width"),t=jQuery(this).closest("td").find(".width-decription"),n=jQuery(e)[0].defaultValue,r=t.attr("title");jQuery(this).slider({range:"min",min:0,max:100,value:n,slide:function(n,i){var s=i.value>0?i.value+"%":r;jQuery(e).val(i.value);jQuery(t).text(s)}})});e.find(".column_image_size label.custom-size").click(function(){var e=jQuery(this).closest(".input");if(jQuery(this).hasClass("image-size-custom")){jQuery(".custom-size-w",e).removeClass("hidden");jQuery(".custom-size-h",e).removeClass("hidden")}else{jQuery(".custom-size-w",e).addClass("hidden");jQuery(".custom-size-h",e).addClass("hidden")}});e.find(".column-form .label label").hover(function(){jQuery(this).find("p.description").show()},function(){jQuery(this).find("p.description").hide()});e.find(".column_type select").val()=="column-meta"&&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.cpac_update_clone_id=function(e){var t=jQuery(this),n=t.attr("data-type"),r=jQuery('.columns-container[data-type="'+e+'"]').find(".cpac-columns"),i=jQuery(r).find('*[data-type="'+n+'"]').not(t),s=jQuery.map(i,function(e,t){return jQuery(e).attr("data-clone")?parseInt(jQuery(e).attr("data-clone"),10):0});s.sort();var o=Math.max.apply(null,s)+1;for(var u=0;u<=o;u++)if(-1===jQuery.inArray(u,s))break;if(0===u)return;t.attr("data-clone",u);t.find("input.clone").val(u);t.find("input.column-name").val(n+"-"+u);var a=t.find("input, select, label");jQuery(a).each(function(e,t){var r=n+"-"+u;jQuery(t).attr("name")&&jQuery(t).attr("name",jQuery(t).attr("name").replace(n,r));jQuery(t).attr("for")&&jQuery(t).attr("for",jQuery(t).attr("for").replace(n,r));jQuery(t).attr("id")&&jQuery(t).attr("id",jQuery(t).attr("id").replace(n,r))})};jQuery(document).bind("column_init column_change column_add",function(e,t){jQuery(t).cpac_bind_column_addon_events();jQuery(t).cpac_bind_container_addon_events()});jQuery.fn.cpac_bind_column_addon_events=function(){var e=jQuery(this),t=e.find("[data-toggle-id] label");t.click(function(){var t=jQuery(this).closest("td.input").data("toggle-id"),n=e.find('[data-indicator-id="'+t+'"]').removeClass("on"),r=jQuery("input",this).val();"on"==r&&n.addClass("on")})};jQuery.fn.cpac_bind_container_addon_events=function(){var e=jQuery(this),t=e.find("[data-indicator-id]");t.unbind("click").click(function(){var t=jQuery(this).data("indicator-id"),n=e.find('[data-toggle-id="'+t+'"] input');if(jQuery(this).hasClass("on")){jQuery(this).removeClass("on").addClass("off");n.filter("[value=off]").prop("checked",!0)}else{jQuery(this).removeClass("off").addClass("on");n.filter("[value=on]").prop("checked",!0)}})};
assets/less/admin-column.less CHANGED
@@ -844,6 +844,99 @@ h2.cpac-nav-tab-wrapper {
844
  }
845
  }
846
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
847
  }
848
  }
849
 
844
  }
845
  }
846
  }
847
+
848
+ &#direct-feedback {
849
+ #feedback-support,
850
+ #feedback-rate {
851
+ display: none;
852
+ }
853
+
854
+ .inside {
855
+ > a {
856
+ border-radius: 4px;
857
+ border: 1px solid #CCC;
858
+ width: 48%;
859
+ height: 64px;
860
+ text-align: center;
861
+ line-height: 64px;
862
+ font-weight: bold;
863
+ color: #CCC;
864
+ display: inline-block;
865
+ text-decoration: none;
866
+
867
+ &:hover {
868
+ background: #FAFAFA;
869
+ }
870
+ }
871
+
872
+ form {
873
+ textarea {
874
+ width: 100%;
875
+ height: 120px;
876
+ }
877
+
878
+ input[type="submit"] {
879
+ float: right;
880
+ border-radius: 4px;
881
+ border: 1px solid #CCC;
882
+ height: 32px;
883
+ text-align: center;
884
+ line-height: 32px;
885
+ font-weight: bold;
886
+ font-size: 12px;
887
+ padding: 0 32px;
888
+ color: #CCC;
889
+ display: inline-block;
890
+ background: none;
891
+ text-decoration: none;
892
+ cursor: pointer;
893
+
894
+ &:hover {
895
+ background: #FAFAFA;
896
+ }
897
+ }
898
+
899
+ p.description {
900
+ float: left;
901
+ font-size: 10px;
902
+ }
903
+ }
904
+
905
+ ul {
906
+ margin: 0;
907
+
908
+ &.share {
909
+ li {
910
+ margin: 0;
911
+ display: block;
912
+ float: left;
913
+ margin-left: 9px;
914
+ width: 30%;
915
+
916
+ a {
917
+ text-decoration: none;
918
+ vertical-align: middle;
919
+ line-height: 20px;
920
+ padding: 16px 0;
921
+ width: 100%;
922
+ text-align: center;
923
+ border: 1px solid #CCC;
924
+ border-radius: 4px;
925
+ display: block;
926
+
927
+ &:hover {
928
+ background: #FAFAFA;
929
+ }
930
+ }
931
+
932
+ &:first-child {
933
+ margin-left: 0;
934
+ }
935
+ }
936
+ }
937
+ }
938
+ }
939
+ }
940
  }
941
  }
942
 
classes/column/acf-placeholder.php CHANGED
@@ -37,7 +37,11 @@ class CPAC_Column_ACF_Placeholder extends CPAC_Column {
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="http://admincolumns.com/advanced-custom-fields-integration/" class="button button-primary"><?php _e( 'Find out more', 'cpac' ); ?></a>
 
 
 
 
41
  </div>
42
  <?php
43
  }
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
47
  }
classes/column/post/permalink.php CHANGED
@@ -6,11 +6,14 @@
6
  */
7
  class CPAC_Column_Post_Permalink extends CPAC_Column {
8
 
9
- function __construct( $storage_model ) {
10
 
11
  $this->properties['type'] = 'column-permalink';
12
  $this->properties['label'] = __( 'Permalink', 'cpac' );
13
 
 
 
 
14
  parent::__construct( $storage_model );
15
  }
16
 
@@ -18,15 +21,58 @@ class CPAC_Column_Post_Permalink extends CPAC_Column {
18
  * @see CPAC_Column::get_value()
19
  * @since 2.0.0
20
  */
21
- function get_value( $post_id ) {
22
- return $this->get_raw_value( $post_id );
 
 
 
 
 
 
 
23
  }
24
 
25
  /**
26
  * @see CPAC_Column::get_value()
27
  * @since 2.0.3
28
  */
29
- function get_raw_value( $post_id ) {
 
30
  return get_permalink( $post_id );
31
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  }
6
  */
7
  class CPAC_Column_Post_Permalink extends CPAC_Column {
8
 
9
+ public function __construct( $storage_model ) {
10
 
11
  $this->properties['type'] = 'column-permalink';
12
  $this->properties['label'] = __( 'Permalink', 'cpac' );
13
 
14
+ // define additional options
15
+ $this->options['link_to_post'] = false;
16
+
17
  parent::__construct( $storage_model );
18
  }
19
 
21
  * @see CPAC_Column::get_value()
22
  * @since 2.0.0
23
  */
24
+ public function get_value( $post_id ) {
25
+
26
+ $value = $this->get_raw_value( $post_id );
27
+
28
+ if ( $this->options->link_to_post == 'on' ) {
29
+ $value = '<a href="' . esc_attr( $value ) .'" target="_blank">' . $value . '</a>';
30
+ }
31
+
32
+ return $value;
33
  }
34
 
35
  /**
36
  * @see CPAC_Column::get_value()
37
  * @since 2.0.3
38
  */
39
+ public function get_raw_value( $post_id ) {
40
+
41
  return get_permalink( $post_id );
42
  }
43
+
44
+ /**
45
+ * @see CPAC_Column::display_settings()
46
+ * @since 2.2.1
47
+ */
48
+ public function display_settings() {
49
+
50
+ $this->display_field_link_to_post();
51
+ }
52
+
53
+ /**
54
+ * Display the settings field for selecting whether the column value should link to the corresponding post
55
+ *
56
+ * @since 2.2.1
57
+ */
58
+ public function display_field_link_to_post() {
59
+
60
+ $field_key = 'link_to_post';
61
+ ?>
62
+ <tr class="column_<?php echo $field_key; ?>">
63
+ <?php $this->label_view( __( 'Link to post', 'cpac' ), __( 'This will make the permalink clickable.', 'cpac' ), $field_key ); ?>
64
+ <td class="input">
65
+ <label for="<?php $this->attr_id( $field_key ); ?>-on">
66
+ <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' ); ?> />
67
+ <?php _e( 'Yes'); ?>
68
+ </label>
69
+ <label for="<?php $this->attr_id( $field_key ); ?>-off">
70
+ <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' ) ) ); ?> />
71
+ <?php _e( 'No'); ?>
72
+ </label>
73
+ </td>
74
+ </tr>
75
+ <?php
76
+ }
77
+
78
  }
classes/settings.php CHANGED
@@ -36,7 +36,7 @@ class CPAC_Settings {
36
  /**
37
  * Get available Admin Columns admin page URLs
38
  *
39
- * @since 2.3
40
  * @return array Available settings URLs ([settings_page] => [url])
41
  */
42
  public function get_settings_urls() {
@@ -44,7 +44,7 @@ class CPAC_Settings {
44
  /**
45
  * Filter the URLs for the different settings screens available in admin columns
46
  *
47
- * @since 2.3
48
  *
49
  * @param array $settings_urls Available settings URLs ([settings_page] => [url])
50
  * @param CPAC_Settings $settings_instance Settings class instance
@@ -61,7 +61,7 @@ class CPAC_Settings {
61
  /**
62
  * Get the settings URL for a page
63
  *
64
- * @since 2.3
65
  * @param string $page Optional. Admin page to get the URL from. Defaults to the basic Admin Columns page
66
  * @return string Settings page URL
67
  */
@@ -695,20 +695,25 @@ class CPAC_Settings {
695
  <?php endif; ?>
696
 
697
  <?php if ( ! class_exists( 'CAC_Addon_Pro' ) ) : ?>
 
 
 
 
 
698
  <div class="sidebox" id="pro-version">
699
  <div class="padding-box cta">
700
  <h3>
701
- <a href="<?php echo $this->get_url('admincolumnspro'); ?>"><?php _e( 'Get Admin Columns Pro', 'cpac' ) ?></a>
702
  </h3>
703
  <div class="inside">
704
  <ul>
705
- <li><a href="<?php echo $this->get_url( 'admincolumnspro' ); ?>"><?php _e( 'Add Sorting', 'cpac' ); ?></a></li>
706
- <li><a href="<?php echo $this->get_url( 'admincolumnspro' ); ?>"><?php _e( 'Add Filtering', 'cpac' ); ?></a></li>
707
- <li><a href="<?php echo $this->get_url( 'admincolumnspro' ); ?>"><?php _e( 'Add Import/Export', 'cpac' ); ?></a></li>
708
- <li><a href="<?php echo $this->get_url( 'admincolumnspro' ); ?>"><?php _e( 'Add Direct Editing', 'cpac' ); ?></a></li>
709
  </ul>
710
  <p>
711
- <?php printf( __( 'Check out <a href="%s">Admin Columns Pro</a> for more details!', 'cpac' ), $this->get_url('admincolumnspro') ); ?>
712
  </p>
713
  </div>
714
  </div>
36
  /**
37
  * Get available Admin Columns admin page URLs
38
  *
39
+ * @since 2.2
40
  * @return array Available settings URLs ([settings_page] => [url])
41
  */
42
  public function get_settings_urls() {
44
  /**
45
  * Filter the URLs for the different settings screens available in admin columns
46
  *
47
+ * @since 2.2
48
  *
49
  * @param array $settings_urls Available settings URLs ([settings_page] => [url])
50
  * @param CPAC_Settings $settings_instance Settings class instance
61
  /**
62
  * Get the settings URL for a page
63
  *
64
+ * @since 2.2
65
  * @param string $page Optional. Admin page to get the URL from. Defaults to the basic Admin Columns page
66
  * @return string Settings page URL
67
  */
695
  <?php endif; ?>
696
 
697
  <?php if ( ! class_exists( 'CAC_Addon_Pro' ) ) : ?>
698
+ <?php $url_args = array(
699
+ 'utm_source' => 'plugin-installation',
700
+ 'utm_medium' => 'banner',
701
+ 'utm_campaign' => 'plugin-installation'
702
+ ); ?>
703
  <div class="sidebox" id="pro-version">
704
  <div class="padding-box cta">
705
  <h3>
706
+ <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
  </h3>
708
  <div class="inside">
709
  <ul>
710
+ <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>
711
+ <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>
712
+ <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>
713
+ <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>
714
  </ul>
715
  <p>
716
+ <?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
  </p>
718
  </div>
719
  </div>
classes/storage_model.php CHANGED
@@ -70,7 +70,7 @@ abstract class CPAC_Storage_Model {
70
  public $stored_columns = NULL;
71
 
72
  /**
73
- * @since 2.3
74
  * @var array
75
  */
76
  public $column_types = array();
@@ -539,26 +539,26 @@ abstract class CPAC_Storage_Model {
539
  $columns = array();
540
 
541
  // get columns
542
- $default_columns = $this->column_types['default'];
543
 
544
  // @todo check if this solves the issue with not displaying value when using "manage_{$post_type}_posts_columns" at CPAC_Storage_Model_Post
545
  $registered_columns = $this->get_registered_columns();
546
 
547
  if ( $stored_columns = $this->get_stored_columns() ) {
548
-
549
  $stored_names = array();
550
- foreach ( $stored_columns as $name => $options ) {
551
 
552
- if ( ! isset( $options['type'] ) )
 
553
  continue;
 
554
 
555
  $stored_names[] = $name;
556
 
557
  // In case of a disabled plugin, we will skip column.
558
  // This means the stored column type is not available anymore.
559
- if ( ! in_array( $options['type'], array_keys( $registered_columns ) ) )
560
  continue;
561
-
562
 
563
  // add an clone number which defines the instance
564
  $column = clone $registered_columns[ $options['type'] ];
@@ -573,27 +573,28 @@ abstract class CPAC_Storage_Model {
573
 
574
  // In case of an enabled plugin, we will add that column.
575
  // When $diff contains items, it means a default column has not been stored.
576
- if( $diff = array_diff( array_keys( $default_columns ), $this->get_default_stored_columns() ) ) {
577
- foreach( $diff as $name ) {
578
-
579
  // because of the filter "manage_{$post_type}_posts_columns" the columns
580
  // that are being added by CPAC will also appear in the $default_columns.
581
  // this will filter out those columns.
582
- if ( isset( $columns[ $name ] ) ) continue;
 
 
583
 
584
  // is the column registered?
585
- if ( ! isset( $registered_columns[ $name ] ) ) continue;
 
 
586
 
587
  $columns[ $name ] = clone $registered_columns[ $name ];
588
  }
589
  }
590
  }
591
-
592
  // When nothing has been saved yet, we return the default WP columns.
593
  else {
594
-
595
- foreach( array_keys( $default_columns ) as $name ) {
596
- if( isset( $registered_columns[ $name ] ) ) {
597
  $columns[ $name ] = clone $registered_columns[ $name ];
598
  }
599
  }
@@ -610,8 +611,9 @@ abstract class CPAC_Storage_Model {
610
  */
611
  function get_column_by_name( $name ) {
612
 
613
- if ( ! isset( $this->columns[ $name ] ) )
614
  return false;
 
615
 
616
  return $this->columns[ $name ];
617
  }
70
  public $stored_columns = NULL;
71
 
72
  /**
73
+ * @since 2.2
74
  * @var array
75
  */
76
  public $column_types = array();
539
  $columns = array();
540
 
541
  // get columns
542
+ $default_columns = $this->get_default_columns();
543
 
544
  // @todo check if this solves the issue with not displaying value when using "manage_{$post_type}_posts_columns" at CPAC_Storage_Model_Post
545
  $registered_columns = $this->get_registered_columns();
546
 
547
  if ( $stored_columns = $this->get_stored_columns() ) {
 
548
  $stored_names = array();
 
549
 
550
+ foreach ( $stored_columns as $name => $options ) {
551
+ if ( ! isset( $options['type'] ) ) {
552
  continue;
553
+ }
554
 
555
  $stored_names[] = $name;
556
 
557
  // In case of a disabled plugin, we will skip column.
558
  // This means the stored column type is not available anymore.
559
+ if ( ! in_array( $options['type'], array_keys( $registered_columns ) ) ) {
560
  continue;
561
+ }
562
 
563
  // add an clone number which defines the instance
564
  $column = clone $registered_columns[ $options['type'] ];
573
 
574
  // In case of an enabled plugin, we will add that column.
575
  // When $diff contains items, it means a default column has not been stored.
576
+ if ( $diff = array_diff( array_keys( $default_columns ), $this->get_default_stored_columns() ) ) {
577
+ foreach ( $diff as $name ) {
 
578
  // because of the filter "manage_{$post_type}_posts_columns" the columns
579
  // that are being added by CPAC will also appear in the $default_columns.
580
  // this will filter out those columns.
581
+ if ( isset( $columns[ $name ] ) ) {
582
+ continue;
583
+ }
584
 
585
  // is the column registered?
586
+ if ( ! isset( $registered_columns[ $name ] ) ) {
587
+ continue;
588
+ }
589
 
590
  $columns[ $name ] = clone $registered_columns[ $name ];
591
  }
592
  }
593
  }
 
594
  // When nothing has been saved yet, we return the default WP columns.
595
  else {
596
+ foreach ( array_keys( $default_columns ) as $name ) {
597
+ if ( isset( $registered_columns[ $name ] ) ) {
 
598
  $columns[ $name ] = clone $registered_columns[ $name ];
599
  }
600
  }
611
  */
612
  function get_column_by_name( $name ) {
613
 
614
+ if ( ! isset( $this->columns[ $name ] ) ) {
615
  return false;
616
+ }
617
 
618
  return $this->columns[ $name ];
619
  }
classes/storage_model/post.php CHANGED
@@ -27,11 +27,53 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
27
  add_filter( "manage_{$this->page}-{$post_type}_columns", array( $this, 'add_headings' ), 100, 1 );
28
 
29
  // values
30
- add_action( "manage_{$post_type}_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
31
 
32
  parent::__construct();
33
  }
34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  /**
36
  * Get screen link
37
  *
@@ -85,33 +127,19 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
85
  */
86
  public function get_default_columns() {
87
 
88
- if ( ! function_exists('_get_list_table') )
89
  return array();
90
-
91
- //if ( ! $this->is_columns_screen() && ! $this->is_settings_page() )
92
- //return array();
93
-
94
- // You can use this filter to add thirdparty columns by hooking into this.
95
- // See classes/third_party.php for an example.
96
- do_action( "cac/columns/default/posts" );
97
- do_action( "cac/columns/default/storage_key={$this->key}" );
98
-
99
- // Get the WP default columns
100
- $table = _get_list_table( 'WP_Posts_List_Table', array( 'screen' => $this->key ) );
101
- $columns = (array) $table->get_columns();
102
-
103
- // Get columns that have been set by other plugins. If a plugin use the hook "manage_edit-{$post_type}_columns"
104
- // we know that the columns have been overwritten. Use these columns instead of the WP default ones.
105
- //
106
- // We have to make sure this filter only loads on the Admin Columns settings page. To prevent a loop
107
- // when it's being called by CPAC_Storage_Model::add_headings()
108
- if ( $this->is_settings_page() || $this->is_doing_ajax() ) {
109
- if ( function_exists( 'get_column_headers' ) && ! $this->is_doing_quick_edit() ) {
110
- $columns = array_merge( get_column_headers( 'edit-' . $this->key ), $columns );
111
- }
112
  }
113
 
114
- return array_filter( $columns );
 
 
 
 
 
 
 
 
115
  }
116
 
117
  /**
@@ -137,18 +165,30 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
137
  */
138
  public function manage_value( $column_name, $post_id ) {
139
 
140
- $value = '';
141
 
142
- $column = $this->get_column_by_name( $column_name );
 
 
 
143
 
144
- // get value
145
- if ( $column )
 
146
  $value = $column->get_value( $post_id );
 
147
 
148
  // Filters
149
  $value = apply_filters( "cac/column/value", $value, $post_id, $column, $this->key );
150
  $value = apply_filters( "cac/column/value/{$this->type}", $value, $post_id, $column, $this->key );
151
 
 
 
 
 
 
 
 
152
  echo $value;
153
  }
154
  }
27
  add_filter( "manage_{$this->page}-{$post_type}_columns", array( $this, 'add_headings' ), 100, 1 );
28
 
29
  // values
30
+ add_action( "manage_{$this->post_type}_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
31
 
32
  parent::__construct();
33
  }
34
 
35
+ /**
36
+ * @since 2.2.1
37
+ */
38
+ public function get_original_column_value( $column, $id ) {
39
+
40
+ global $post;
41
+
42
+ // Setup post data for current post
43
+ $post_old = $post;
44
+ $post = get_post( $id );
45
+ setup_postdata( $post );
46
+
47
+ // Remove Admin Columns action for this column's value
48
+ remove_action( "manage_{$this->post_type}_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
49
+
50
+ ob_start();
51
+
52
+ // Run WordPress native actions to display column content
53
+ if ( is_post_type_hierarchical( $this->post_type ) ) {
54
+ do_action( 'manage_pages_custom_column', $column, $id );
55
+ }
56
+ else {
57
+ do_action( 'manage_posts_custom_column', $column, $id );
58
+ }
59
+
60
+ do_action( "manage_{$this->post_type}_posts_custom_column", $column, $id );
61
+
62
+ $contents = ob_get_clean();
63
+
64
+ // Add removed Admin Columns action for this column's value
65
+ add_action( "manage_{$this->post_type}_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
66
+
67
+ // Restore original post object
68
+ $post = $post_old;
69
+
70
+ if ( $post ) {
71
+ setup_postdata( $post );
72
+ }
73
+
74
+ return $contents;
75
+ }
76
+
77
  /**
78
  * Get screen link
79
  *
127
  */
128
  public function get_default_columns() {
129
 
130
+ if ( ! function_exists('_get_list_table') ) {
131
  return array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
  }
133
 
134
+ // Initialize table so it can add actions to manage_{screenid}_columns
135
+ _get_list_table( 'WP_Posts_List_Table', array( 'screen' => 'edit-' . $this->key ) );
136
+
137
+ // get_column_headers() runs through both the manage_{screenid}_columns
138
+ // and manage_{$post_type}_posts_columns filters
139
+ $columns = get_column_headers( 'edit-' . $this->key );
140
+ $columns = array_filter( $columns );
141
+
142
+ return $columns;
143
  }
144
 
145
  /**
165
  */
166
  public function manage_value( $column_name, $post_id ) {
167
 
168
+ global $post;
169
 
170
+ // Setup post data for current post
171
+ $post_old = $post;
172
+ $post = get_post( $post_id );
173
+ setup_postdata( $post );
174
 
175
+ // Column value
176
+ $value = '';
177
+ if ( $column = $this->get_column_by_name( $column_name ) ) {
178
  $value = $column->get_value( $post_id );
179
+ }
180
 
181
  // Filters
182
  $value = apply_filters( "cac/column/value", $value, $post_id, $column, $this->key );
183
  $value = apply_filters( "cac/column/value/{$this->type}", $value, $post_id, $column, $this->key );
184
 
185
+ // Reset query to old post
186
+ $post = $post_old;
187
+
188
+ if ( $post ) {
189
+ setup_postdata( $post );
190
+ }
191
+
192
  echo $value;
193
  }
194
  }
classes/upgrade.php CHANGED
@@ -39,6 +39,9 @@ class CPAC_Upgrade {
39
  */
40
  public function proaddon_notice() {
41
 
 
 
 
42
  ?>
43
  <div class="message error">
44
  <p>
39
  */
40
  public function proaddon_notice() {
41
 
42
+ if ( apply_filters( 'cpac/suppress_proaddon_notice', false ) ) {
43
+ return;
44
+ }
45
  ?>
46
  <div class="message error">
47
  <p>
codepress-admin-columns.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
 
4
  Plugin Name: Codepress Admin Columns
5
- Version: 2.2
6
  Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
7
  Author: Codepress
8
  Author URI: http://www.codepresshq.com
@@ -33,7 +33,7 @@ if ( ! defined( 'ABSPATH' ) ) {
33
  }
34
 
35
  // Plugin information
36
- define( 'CPAC_VERSION', '2.2' ); // current plugin version
37
  define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // this is the latest version which requires an upgrade
38
  define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
39
  define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
@@ -359,6 +359,7 @@ class CPAC {
359
  * @since 1.0.0
360
  */
361
  public function column_styles() {
 
362
  wp_enqueue_style( 'cpac-columns', CPAC_URL . 'assets/css/column.css', array(), CPAC_VERSION, 'all' );
363
  }
364
 
2
  /*
3
 
4
  Plugin Name: Codepress Admin Columns
5
+ Version: 2.2.1
6
  Description: Customize columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
7
  Author: Codepress
8
  Author URI: http://www.codepresshq.com
33
  }
34
 
35
  // Plugin information
36
+ define( 'CPAC_VERSION', '2.2.1' ); // current plugin version
37
  define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // this is the latest version which requires an upgrade
38
  define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
39
  define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
359
  * @since 1.0.0
360
  */
361
  public function column_styles() {
362
+
363
  wp_enqueue_style( 'cpac-columns', CPAC_URL . 'assets/css/column.css', array(), CPAC_VERSION, 'all' );
364
  }
365
 
languages/cpac-ar.mo CHANGED
Binary file
languages/cpac-ar.po CHANGED
@@ -1,12 +1,12 @@
1
  #
2
  # Translators:
3
- # TheHassan, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-22 17:50+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Arabic (http://www.transifex.com/projects/p/admin-columns/"
12
  "language/ar/)\n"
1
  #
2
  # Translators:
3
+ # Hassan, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Arabic (http://www.transifex.com/projects/p/admin-columns/"
12
  "language/ar/)\n"
languages/cpac-da_DK.mo CHANGED
Binary file
languages/cpac-da_DK.po CHANGED
@@ -1,13 +1,13 @@
1
  #
2
  # Translators:
3
- # mikkelbreum <mikkel@wpkitchen.com>, 2013
4
- # iosoftgame <support@iosoftgame.com>, 2013
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: Admin Columns\n"
8
  "Report-Msgid-Bugs-To: \n"
9
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
10
- "PO-Revision-Date: 2014-05-22 17:50+0100\n"
11
  "Last-Translator: Codepress <info@codepress.nl>\n"
12
  "Language-Team: Danish (Denmark) (http://www.transifex.com/projects/p/admin-"
13
  "columns/language/da_DK/)\n"
1
  #
2
  # Translators:
3
+ # Mikkel Breum <mikkel@wpkitchen.com>, 2013
4
+ # Morten Dalgaard Johansen <support@iosoftgame.com>, 2013
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: Admin Columns\n"
8
  "Report-Msgid-Bugs-To: \n"
9
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
10
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
11
  "Last-Translator: Codepress <info@codepress.nl>\n"
12
  "Language-Team: Danish (Denmark) (http://www.transifex.com/projects/p/admin-"
13
  "columns/language/da_DK/)\n"
languages/cpac-es_ES.mo CHANGED
Binary file
languages/cpac-es_ES.po CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-28 12:44+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/es_ES/)\n"
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Spanish (Spain) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/es_ES/)\n"
languages/cpac-fr_FR.mo CHANGED
Binary file
languages/cpac-fr_FR.po CHANGED
@@ -1,14 +1,14 @@
1
  #
2
  # Translators:
3
  # 16kbit <code@ms-studio.net>, 2014
4
- # jcbrebion <pro@jcbrebion.com>, 2014
5
  # Etic <pub@eticweb.ca>, 2014
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: Admin Columns\n"
9
  "Report-Msgid-Bugs-To: \n"
10
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
11
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
12
  "Last-Translator: Codepress <info@codepress.nl>\n"
13
  "Language-Team: French (France) (http://www.transifex.com/projects/p/admin-"
14
  "columns/language/fr_FR/)\n"
1
  #
2
  # Translators:
3
  # 16kbit <code@ms-studio.net>, 2014
4
+ # Jean-Christophe Brebion <pro@jcbrebion.com>, 2014
5
  # Etic <pub@eticweb.ca>, 2014
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: Admin Columns\n"
9
  "Report-Msgid-Bugs-To: \n"
10
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
11
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
12
  "Last-Translator: Codepress <info@codepress.nl>\n"
13
  "Language-Team: French (France) (http://www.transifex.com/projects/p/admin-"
14
  "columns/language/fr_FR/)\n"
languages/cpac-hu_HU.mo CHANGED
Binary file
languages/cpac-hu_HU.po CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Hungarian (Hungary) (http://www.transifex.com/projects/p/"
12
  "admin-columns/language/hu_HU/)\n"
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Hungarian (Hungary) (http://www.transifex.com/projects/p/"
12
  "admin-columns/language/hu_HU/)\n"
languages/cpac-ja.mo CHANGED
Binary file
languages/cpac-ja.po CHANGED
@@ -6,7 +6,7 @@ msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Japanese (Japan) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/ja_JP/)\n"
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Japanese (Japan) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/ja_JP/)\n"
languages/cpac-nl_NL.mo CHANGED
Binary file
languages/cpac-nl_NL.po CHANGED
@@ -1,12 +1,12 @@
1
  #
2
  # Translators:
3
- # codepress <info@codepress.nl>, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/"
12
  "admin-columns/language/nl_NL/)\n"
1
  #
2
  # Translators:
3
+ # Tobias Schutter <info@codepress.nl>, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/"
12
  "admin-columns/language/nl_NL/)\n"
languages/cpac-pl_PL.mo CHANGED
Binary file
languages/cpac-pl_PL.po CHANGED
@@ -1,12 +1,12 @@
1
  #
2
  # Translators:
3
- # codepress <info@codepress.nl>, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/pl_PL/)\n"
1
  #
2
  # Translators:
3
+ # Tobias Schutter <info@codepress.nl>, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/pl_PL/)\n"
languages/cpac-sv_SE.mo CHANGED
Binary file
languages/cpac-sv_SE.po CHANGED
@@ -1,13 +1,13 @@
1
  #
2
  # Translators:
3
- # fanderzzon <fidde.andersson@telia.com>, 2013-2014
4
- # codepress <info@codepress.nl>, 2013
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: Admin Columns\n"
8
  "Report-Msgid-Bugs-To: \n"
9
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
10
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
11
  "Last-Translator: Codepress <info@codepress.nl>\n"
12
  "Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/admin-"
13
  "columns/language/sv_SE/)\n"
@@ -25,17 +25,19 @@ msgstr ""
25
 
26
  #: ../classes/addons.php:117
27
  msgid "Third party plugin integration"
28
- msgstr ""
29
 
30
  #: ../classes/addons.php:142
31
  msgid "Advanced Custom Fields"
32
- msgstr ""
33
 
34
  #: ../classes/addons.php:143
35
  msgid ""
36
  "Display and edit Advanced Custom Fields fields in the posts overview in "
37
  "seconds!"
38
  msgstr ""
 
 
39
 
40
  #: ../classes/column.php:481
41
  msgid "Thumbnail"
@@ -161,11 +163,12 @@ msgstr "standard"
161
 
162
  #: ../classes/column/acf-placeholder.php:16
163
  msgid "ACF Field"
164
- msgstr ""
165
 
166
  #: ../classes/column/acf-placeholder.php:32
167
  msgid "This feature is only available in Admin Columns Pro - Developer."
168
  msgstr ""
 
169
 
170
  #: ../classes/column/acf-placeholder.php:35
171
  #, php-format
@@ -173,6 +176,8 @@ msgid ""
173
  "If you have a developer licence please download & install your ACF add-on "
174
  "from the <a href='%s'>add-ons tab</a>."
175
  msgstr ""
 
 
176
 
177
  #: ../classes/column/acf-placeholder.php:38
178
  msgid ""
@@ -180,10 +185,13 @@ msgid ""
180
  "integeration, allowing you to easily display and edit ACF fields from within "
181
  "your posts overview."
182
  msgstr ""
 
 
 
183
 
184
  #: ../classes/column/acf-placeholder.php:40
185
  msgid "Find out more"
186
- msgstr ""
187
 
188
  #: ../classes/column/comment/actions.php:14
189
  #: ../classes/column/link/actions.php:14
@@ -611,7 +619,7 @@ msgstr "Förälder"
611
 
612
  #: ../classes/column/post/permalink.php:12
613
  msgid "Permalink"
614
- msgstr ""
615
 
616
  #: ../classes/column/post/ping-status.php:14
617
  msgid "Ping status"
@@ -651,7 +659,7 @@ msgstr "Väntar på granskning"
651
 
652
  #: ../classes/column/post/status.php:37
653
  msgid "Auto Draft"
654
- msgstr ""
655
 
656
  #: ../classes/column/post/sticky.php:14
657
  msgid "Sticky"
@@ -691,11 +699,11 @@ msgstr "Url"
691
 
692
  #: ../classes/settings.php:97
693
  msgid "Add-on successfully activated."
694
- msgstr ""
695
 
696
  #: ../classes/settings.php:100
697
  msgid "Add-on successfully deactivated."
698
- msgstr ""
699
 
700
  #: ../classes/settings.php:155
701
  msgid "Admin Columns Settings"
@@ -918,7 +926,7 @@ msgstr "Denna webbsida använder inte tillägg"
918
 
919
  #: ../classes/settings.php:428
920
  msgid "See our website for Admin Columns Pro."
921
- msgstr ""
922
 
923
  #: ../classes/settings.php:435
924
  msgid "Important"
@@ -1054,19 +1062,19 @@ msgstr "Inställningar"
1054
 
1055
  #: ../classes/settings.php:621
1056
  msgid "Add-ons"
1057
- msgstr ""
1058
 
1059
  #: ../classes/settings.php:647
1060
  msgid "Posttypes"
1061
- msgstr ""
1062
 
1063
  #: ../classes/settings.php:648
1064
  msgid "Others"
1065
- msgstr ""
1066
 
1067
  #: ../classes/settings.php:649
1068
  msgid "Taxonomies"
1069
- msgstr ""
1070
 
1071
  #: ../classes/settings.php:668
1072
  #, php-format
@@ -1074,6 +1082,8 @@ msgid ""
1074
  "The columns for <strong>%s</strong> are set up via PHP and can therefore not "
1075
  "be edited in the admin panel."
1076
  msgstr ""
 
 
1077
 
1078
  #: ../classes/settings.php:678
1079
  msgid "Store settings"
@@ -1098,7 +1108,7 @@ msgstr "kolumner"
1098
 
1099
  #: ../classes/settings.php:701
1100
  msgid "Get Admin Columns Pro"
1101
- msgstr ""
1102
 
1103
  #: ../classes/settings.php:705
1104
  msgid "Add Sorting"
@@ -1114,12 +1124,12 @@ msgstr "Lägg till Import/Export"
1114
 
1115
  #: ../classes/settings.php:708
1116
  msgid "Add Direct Editing"
1117
- msgstr ""
1118
 
1119
  #: ../classes/settings.php:711
1120
  #, php-format
1121
  msgid "Check out <a href=\"%s\">Admin Columns Pro</a> for more details!"
1122
- msgstr ""
1123
 
1124
  #: ../classes/settings.php:742
1125
  msgid "Support"
@@ -1149,27 +1159,27 @@ msgstr "Lägg till kolumn"
1149
 
1150
  #: ../classes/settings.php:853
1151
  msgid "Active"
1152
- msgstr ""
1153
 
1154
  #: ../classes/settings.php:854
1155
  msgid "Deactivate"
1156
- msgstr ""
1157
 
1158
  #: ../classes/settings.php:861
1159
  msgid "Installed"
1160
- msgstr ""
1161
 
1162
  #: ../classes/settings.php:862
1163
  msgid "Activate"
1164
- msgstr ""
1165
 
1166
  #: ../classes/settings.php:876
1167
  msgid "Download & Install"
1168
- msgstr ""
1169
 
1170
  #: ../classes/settings.php:881
1171
  msgid "Get this add-on"
1172
- msgstr ""
1173
 
1174
  #: ../classes/storage_model.php:207
1175
  msgid "settings succesfully restored."
1
  #
2
  # Translators:
3
+ # Fredrik Andersson <fidde.andersson@telia.com>, 2013-2014
4
+ # Tobias Schutter <info@codepress.nl>, 2013
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: Admin Columns\n"
8
  "Report-Msgid-Bugs-To: \n"
9
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
10
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
11
  "Last-Translator: Codepress <info@codepress.nl>\n"
12
  "Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/admin-"
13
  "columns/language/sv_SE/)\n"
25
 
26
  #: ../classes/addons.php:117
27
  msgid "Third party plugin integration"
28
+ msgstr "Tredjeparts plugin integration"
29
 
30
  #: ../classes/addons.php:142
31
  msgid "Advanced Custom Fields"
32
+ msgstr "Advanced Custom Fields"
33
 
34
  #: ../classes/addons.php:143
35
  msgid ""
36
  "Display and edit Advanced Custom Fields fields in the posts overview in "
37
  "seconds!"
38
  msgstr ""
39
+ "Visa och redigera Advanced Custom Fields fält vid inläggets överblick på "
40
+ "några sekunder! "
41
 
42
  #: ../classes/column.php:481
43
  msgid "Thumbnail"
163
 
164
  #: ../classes/column/acf-placeholder.php:16
165
  msgid "ACF Field"
166
+ msgstr "ACF Fält"
167
 
168
  #: ../classes/column/acf-placeholder.php:32
169
  msgid "This feature is only available in Admin Columns Pro - Developer."
170
  msgstr ""
171
+ "Den här funktionen är endast tillgänglig i Admin Columns Pro - Utvecklare."
172
 
173
  #: ../classes/column/acf-placeholder.php:35
174
  #, php-format
176
  "If you have a developer licence please download & install your ACF add-on "
177
  "from the <a href='%s'>add-ons tab</a>."
178
  msgstr ""
179
+ "Om du har en utvecklarlicens vänligen ladda ner & installera ditt ACF "
180
+ "tillägg från <a href='%s'>fliken tillägg</a>."
181
 
182
  #: ../classes/column/acf-placeholder.php:38
183
  msgid ""
185
  "integeration, allowing you to easily display and edit ACF fields from within "
186
  "your posts overview."
187
  msgstr ""
188
+ "Admins Columns Pro - Utvecklare erbjuder full integration med Advanced "
189
+ "Custom Fields, vilket gör att du enkelt kan visa och redigera ACF fält i "
190
+ "överblick för dina inlägg."
191
 
192
  #: ../classes/column/acf-placeholder.php:40
193
  msgid "Find out more"
194
+ msgstr "Läs mer"
195
 
196
  #: ../classes/column/comment/actions.php:14
197
  #: ../classes/column/link/actions.php:14
619
 
620
  #: ../classes/column/post/permalink.php:12
621
  msgid "Permalink"
622
+ msgstr "Permalänk"
623
 
624
  #: ../classes/column/post/ping-status.php:14
625
  msgid "Ping status"
659
 
660
  #: ../classes/column/post/status.php:37
661
  msgid "Auto Draft"
662
+ msgstr "Automatiskt utkast"
663
 
664
  #: ../classes/column/post/sticky.php:14
665
  msgid "Sticky"
699
 
700
  #: ../classes/settings.php:97
701
  msgid "Add-on successfully activated."
702
+ msgstr "Tillägget aktiverat."
703
 
704
  #: ../classes/settings.php:100
705
  msgid "Add-on successfully deactivated."
706
+ msgstr "Tillägget inaktiverat."
707
 
708
  #: ../classes/settings.php:155
709
  msgid "Admin Columns Settings"
926
 
927
  #: ../classes/settings.php:428
928
  msgid "See our website for Admin Columns Pro."
929
+ msgstr "Besök vår webbsida för Admin Columns Pro."
930
 
931
  #: ../classes/settings.php:435
932
  msgid "Important"
1062
 
1063
  #: ../classes/settings.php:621
1064
  msgid "Add-ons"
1065
+ msgstr "Tillägg"
1066
 
1067
  #: ../classes/settings.php:647
1068
  msgid "Posttypes"
1069
+ msgstr "Posttyper"
1070
 
1071
  #: ../classes/settings.php:648
1072
  msgid "Others"
1073
+ msgstr "Annat"
1074
 
1075
  #: ../classes/settings.php:649
1076
  msgid "Taxonomies"
1077
+ msgstr "Taxanomier"
1078
 
1079
  #: ../classes/settings.php:668
1080
  #, php-format
1082
  "The columns for <strong>%s</strong> are set up via PHP and can therefore not "
1083
  "be edited in the admin panel."
1084
  msgstr ""
1085
+ "Kolumnerna för <strong>%s</strong> är inställda via PHP och kan därför inte "
1086
+ "redigeras i adminpanelen."
1087
 
1088
  #: ../classes/settings.php:678
1089
  msgid "Store settings"
1108
 
1109
  #: ../classes/settings.php:701
1110
  msgid "Get Admin Columns Pro"
1111
+ msgstr "Skaffa Admin Columns Pro"
1112
 
1113
  #: ../classes/settings.php:705
1114
  msgid "Add Sorting"
1124
 
1125
  #: ../classes/settings.php:708
1126
  msgid "Add Direct Editing"
1127
+ msgstr "Lägg till snabbredigering"
1128
 
1129
  #: ../classes/settings.php:711
1130
  #, php-format
1131
  msgid "Check out <a href=\"%s\">Admin Columns Pro</a> for more details!"
1132
+ msgstr "Kolla <a href=\"%s\">Admin Columns Pro</a> för mer information!"
1133
 
1134
  #: ../classes/settings.php:742
1135
  msgid "Support"
1159
 
1160
  #: ../classes/settings.php:853
1161
  msgid "Active"
1162
+ msgstr "Aktiv"
1163
 
1164
  #: ../classes/settings.php:854
1165
  msgid "Deactivate"
1166
+ msgstr "Inaktivera"
1167
 
1168
  #: ../classes/settings.php:861
1169
  msgid "Installed"
1170
+ msgstr "Installerad"
1171
 
1172
  #: ../classes/settings.php:862
1173
  msgid "Activate"
1174
+ msgstr "Aktivera"
1175
 
1176
  #: ../classes/settings.php:876
1177
  msgid "Download & Install"
1178
+ msgstr "Ladda ner & installera"
1179
 
1180
  #: ../classes/settings.php:881
1181
  msgid "Get this add-on"
1182
+ msgstr "Skaffa detta tillägget"
1183
 
1184
  #: ../classes/storage_model.php:207
1185
  msgid "settings succesfully restored."
languages/cpac-zh_CN.mo CHANGED
Binary file
languages/cpac-zh_CN.po CHANGED
@@ -1,12 +1,12 @@
1
  #
2
  # Translators:
3
- # XadillaX <admin@xcoder.in>, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
- "PO-Revision-Date: 2014-05-22 17:51+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/zh_CN/)\n"
1
  #
2
  # Translators:
3
+ # XadillaX Free <admin@xcoder.in>, 2013
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Admin Columns\n"
7
  "Report-Msgid-Bugs-To: \n"
8
  "POT-Creation-Date: 2014-05-22 17:03+0100\n"
9
+ "PO-Revision-Date: 2014-06-17 11:49+0100\n"
10
  "Last-Translator: Codepress <info@codepress.nl>\n"
11
  "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/admin-"
12
  "columns/language/zh_CN/)\n"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
  Requires at least: 3.5
6
  Tested up to: 3.9.1
7
- Stable tag: 2.2
8
 
9
  Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
 
@@ -246,6 +246,15 @@ You can find a list of the available actions and filters (and examples on how to
246
 
247
  == Changelog ==
248
 
 
 
 
 
 
 
 
 
 
249
  = 2.2 =
250
  * [Added] AJAX refreshing of columns in columns settings screen
251
  * [Added] Support for managing columns via code instead of UI
@@ -295,7 +304,7 @@ You can find a list of the available actions and filters (and examples on how to
295
  = 2.0.3 =
296
  * [Updated] Danish translation - thanks to iosoftgame
297
  * [Updated] Spanish translation - thanks to redywebs
298
- * [Added] Chinese translation - thanks to 倡萌
299
  * [Fixed] Solved bug with before and after field
300
  * [Added] Fieldtype "Counter" to Custom Fields
301
  * [Added] Column type ID when you hover over the column type label
4
  Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
  Requires at least: 3.5
6
  Tested up to: 3.9.1
7
+ Stable tag: 2.2.1
8
 
9
  Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
 
246
 
247
  == Changelog ==
248
 
249
+ = 2.2.1 =
250
+ * [Added] Option to make permalink in permalink column clickable (linking to post)
251
+ * [Added] Direct support box in Admin Columns settings screen sidebar
252
+ * [Added] Added filter to suppress pro add-on notice (`cpac/suppress_proaddon_notice`)
253
+ * [Updated] Minor adjustments for WooCommerce and other third party plugin support, setting up the post object in post columns
254
+ * [Updated] Minor update in default column retrieval for improved 3rd party plugin support
255
+ * [Fixed] Fixed problem with column groups incorrectly handling default 3rd party columns
256
+ * [Updated] Updated translations from Transifex
257
+
258
  = 2.2 =
259
  * [Added] AJAX refreshing of columns in columns settings screen
260
  * [Added] Support for managing columns via code instead of UI
304
  = 2.0.3 =
305
  * [Updated] Danish translation - thanks to iosoftgame
306
  * [Updated] Spanish translation - thanks to redywebs
307
+ * [Added] Chinese translation - thanks to 倡萌
308
  * [Fixed] Solved bug with before and after field
309
  * [Added] Fieldtype "Counter" to Custom Fields
310
  * [Added] Column type ID when you hover over the column type label