Admin Columns - Version 2.1.1

Version Description

  • [Updated] Added page check to posttype edit screens
  • [Updated] taxonomy raw_value outputs term_ids
  • [Added] Taxnomy support for Media
  • [Fixed] In some cases custom field column would trigger a php warning on post titles type
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.1

README.md DELETED
File without changes
assets/css/admin-column.css CHANGED
@@ -89,7 +89,7 @@ a.help {
89
-------------------------------------------------------------- */
90
.columns-container {
91
margin-right: 300px;
92
- max-width: 600px;
93
}
94
.rtl .columns-container {
95
margin-left: 300px;
@@ -202,9 +202,9 @@ a.help {
202
}
203
.column-meta table tr td {
204
vertical-align: top;
205
- height: 16px;
206
border: none;
207
- padding: 12px 8px;
208
border-width: 1px 0 0;
209
border-style: solid;
210
border-color: transparent;
@@ -230,7 +230,7 @@ a.help {
230
.column-meta .column_label .inner {
231
position: relative;
232
overflow: hidden;
233
- height: 16px;
234
}
235
.column-meta .column_label .inner > a {
236
color: #5a5a5a;
@@ -283,7 +283,7 @@ a.help {
283
}
284
.column-meta .column_edit {
285
width: 38px;
286
- background: transparent url('../images/arrow.png') no-repeat 23px 16px;
287
cursor: pointer;
288
}
289
@@ -485,9 +485,9 @@ tr.column_image_size.hidden {
485
padding-right: 0;
486
}
487
.column-form tr td.input p.description {
488
- display: none;
489
margin-top: 4px;
490
- color: #666666;
491
}
492
.column-form a.help {
493
vertical-align: middle;
89
-------------------------------------------------------------- */
90
.columns-container {
91
margin-right: 300px;
92
+ max-width: 700px;
93
}
94
.rtl .columns-container {
95
margin-left: 300px;
202
}
203
.column-meta table tr td {
204
vertical-align: top;
205
+ height: 18px;
206
border: none;
207
+ padding: 11px 8px;
208
border-width: 1px 0 0;
209
border-style: solid;
210
border-color: transparent;
230
.column-meta .column_label .inner {
231
position: relative;
232
overflow: hidden;
233
+ height: 18px;
234
}
235
.column-meta .column_label .inner > a {
236
color: #5a5a5a;
283
}
284
.column-meta .column_edit {
285
width: 38px;
286
+ background: transparent url('../images/arrow.png') no-repeat 23px 18px;
287
cursor: pointer;
288
}
289
485
padding-right: 0;
486
}
487
.column-form tr td.input p.description {
488
+ /*display: none;*/
489
margin-top: 4px;
490
+ color: #888888;
491
}
492
.column-form a.help {
493
vertical-align: middle;
assets/css/column.css CHANGED
@@ -10,6 +10,11 @@ span.status-open {}
10
span.status-closed {
11
color: red;
12
}
13
14
/* =Images Column
15
-------------------------------------------------------------- */
10
span.status-closed {
11
color: red;
12
}
13
+ .tablenav.top .cpac-edit {
14
+ top: 0;
15
+ display: inline-block;
16
+ vertical-align: bottom;
17
+ }
18
19
/* =Images Column
20
-------------------------------------------------------------- */
assets/js/admin-columns.js CHANGED
@@ -29,8 +29,6 @@ jQuery(document).ready(function() {
29
});
30
});
31
32
-
33
-
34
/*
35
* Submit Form
36
*
@@ -92,6 +90,7 @@ jQuery.fn.column_bind_events = function() {
92
93
var column = jQuery(this);
94
var container = column.closest('.columns-container');
95
96
/** select column type */
97
var default_value = column.find('.column_type select option:selected').val();
@@ -122,12 +121,12 @@ jQuery.fn.column_bind_events = function() {
122
// open settings
123
clone.addClass('opened').find('.column-form').show();
124
125
// add to DOM
126
column.replaceWith( clone );
127
128
- // increment clone id
129
- clone.cpac_update_clone_id();
130
-
131
// rebind toggle events
132
clone.column_bind_toggle();
133
@@ -217,18 +216,22 @@ jQuery.fn.column_remove = function() {
217
*
218
* @since 2.0.0
219
*/
220
- jQuery.fn.cpac_update_clone_id = function() {
221
222
var el = jQuery( this );
223
224
var type = el.attr( 'data-type' );
225
var all_columns = el.closest( '.cpac-boxes' ).find( '.cpac-columns' );
226
- var columns = jQuery( all_columns ).find( '*[data-type="' + type + '"]' ).not(el);
227
228
// get clone ID
229
var ids = jQuery.map( columns, function( e, i ) {
230
if ( jQuery(e).attr('data-clone') ){
231
- return parseInt( jQuery( e ).attr( 'data-clone' ) );
232
}
233
return 0;
234
});
@@ -283,14 +286,16 @@ function cpac_add_column() {
283
284
var clone = jQuery('.for-cloning-only .cpac-column', container ).first().clone();
285
286
if ( clone.length > 0 ) {
287
288
// add to DOM
289
jQuery('.cpac-columns form', container).append( clone );
290
291
- // increment clone id
292
- clone.cpac_update_clone_id();
293
-
294
// rebind toggle events
295
clone.column_bind_toggle();
296
29
});
30
});
31
32
/*
33
* Submit Form
34
*
90
91
var column = jQuery(this);
92
var container = column.closest('.columns-container');
93
+ var storage_model = container.attr('data-type');
94
95
/** select column type */
96
var default_value = column.find('.column_type select option:selected').val();
121
// open settings
122
clone.addClass('opened').find('.column-form').show();
123
124
+ // increment clone id
125
+ clone.cpac_update_clone_id( storage_model );
126
+
127
// add to DOM
128
column.replaceWith( clone );
129
130
// rebind toggle events
131
clone.column_bind_toggle();
132
216
*
217
* @since 2.0.0
218
*/
219
+ jQuery.fn.cpac_update_clone_id = function( storage_model ) {
220
221
var el = jQuery( this );
222
223
var type = el.attr( 'data-type' );
224
+ var all_columns = jQuery( '.columns-container[data-type="' + storage_model + '"]').find( '.cpac-columns' );
225
+ var columns = jQuery( all_columns ).find( '*[data-type="' + type + '"]' ).not( el );
226
+
227
+ /* var type = el.attr( 'data-type' );
228
var all_columns = el.closest( '.cpac-boxes' ).find( '.cpac-columns' );
229
+ var columns = jQuery( all_columns ).find( '*[data-type="' + type + '"]' ).not( el );*/
230
231
// get clone ID
232
var ids = jQuery.map( columns, function( e, i ) {
233
if ( jQuery(e).attr('data-clone') ){
234
+ return parseInt( jQuery( e ).attr( 'data-clone' ), 10 );
235
}
236
return 0;
237
});
286
287
var clone = jQuery('.for-cloning-only .cpac-column', container ).first().clone();
288
289
+ var storage_model = container.attr('data-type');
290
+
291
if ( clone.length > 0 ) {
292
293
+ // increment clone id ( before adding to DOM, otherwise radio buttons will reset )
294
+ clone.cpac_update_clone_id( storage_model );
295
+
296
// add to DOM
297
jQuery('.cpac-columns form', container).append( clone );
298
299
// rebind toggle events
300
clone.column_bind_toggle();
301
classes/column.php CHANGED
@@ -123,6 +123,7 @@ class CPAC_Column {
123
'hide_label' => false, // Should the Label be hidden?
124
'is_registered' => true, // Should the column be registered based on conditional logic, example usage see: 'post/page-template.php'
125
'is_cloneable' => true, // Should the column be cloneable
126
);
127
128
// merge arguments with defaults. turn into object for easy handling
@@ -795,7 +796,8 @@ class CPAC_Column {
795
</p>
796
</td>
797
</tr>
798
- <?php
799
}
800
801
/**
@@ -818,7 +820,7 @@ class CPAC_Column {
818
<input type="text" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>" value="<?php echo $this->options->excerpt_length; ?>"/>
819
</td>
820
</tr>
821
- <?php
822
}
823
824
/**
123
'hide_label' => false, // Should the Label be hidden?
124
'is_registered' => true, // Should the column be registered based on conditional logic, example usage see: 'post/page-template.php'
125
'is_cloneable' => true, // Should the column be cloneable
126
+ 'default' => false, // Is this a WP default column
127
);
128
129
// merge arguments with defaults. turn into object for easy handling
796
</p>
797
</td>
798
</tr>
799
+
800
+ <?php
801
}
802
803
/**
820
<input type="text" name="<?php $this->attr_name( $field_key ); ?>" id="<?php $this->attr_id( $field_key ); ?>" value="<?php echo $this->options->excerpt_length; ?>"/>
821
</td>
822
</tr>
823
+ <?php
824
}
825
826
/**
classes/column/custom-field.php CHANGED
@@ -30,6 +30,7 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
30
$this->options['excerpt_length'] = 15;
31
32
$this->options['date_format'] = '';
33
34
// for retireving sorting preference
35
$this->user_settings = get_option( 'cpac_general_options' );
@@ -44,12 +45,6 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
44
*/
45
function sanitize_options( $options ) {
46
47
- //if ( ! empty( $options['before'] ) )
48
- // $options['before'] = trim( $options['before'] );
49
-
50
- //if ( ! empty( $options['after'] ) )
51
- // $options['after'] = trim( $options['after'] );
52
-
53
if ( empty( $options['date_format'] ) ) {
54
$options['date_format'] = get_option( 'date_format' );
55
}
@@ -125,14 +120,15 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
125
*/
126
private function get_titles_by_id( $meta ) {
127
128
- $ids = $this->get_ids_from_meta( $meta );
129
130
// display title with link
131
- if ( $ids && is_array( $ids ) ) {
132
- foreach ( $ids as $id ) {
133
if ( ! is_numeric( $id ) ) continue;
134
135
- $link = get_edit_post_link( $id );
136
if ( $title = get_the_title( $id ) )
137
$titles[] = $link ? "<a href='{$link}'>{$title}</a>" : $title;
138
}
@@ -151,11 +147,11 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
151
*/
152
private function get_users_by_id( $meta ) {
153
154
- $ids = $this->get_ids_from_meta( $meta );
155
156
// display username
157
- if ( $ids && is_array( $ids ) ) {
158
- foreach ( $ids as $id ) {
159
if ( ! is_numeric( $id ) ) continue;
160
161
$userdata = get_userdata( $id );
@@ -203,19 +199,17 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
203
break;
204
205
case "title_by_id" :
206
- if ( $titles = $this->get_titles_by_id( $meta ) )
207
- $meta = $titles;
208
break;
209
210
case "user_by_id" :
211
- if ( $names = $this->get_users_by_id( $meta ) )
212
- $meta = $names;
213
break;
214
215
case "checkmark" :
216
$checkmark = $this->get_asset_image( 'checkmark.png' );
217
218
- if ( empty($meta) || 'false' === $meta || '0' === $meta ) {
219
$checkmark = '';
220
}
221
30
$this->options['excerpt_length'] = 15;
31
32
$this->options['date_format'] = '';
33
+ $this->options['date_save_format'] = '';
34
35
// for retireving sorting preference
36
$this->user_settings = get_option( 'cpac_general_options' );
45
*/
46
function sanitize_options( $options ) {
47
48
if ( empty( $options['date_format'] ) ) {
49
$options['date_format'] = get_option( 'date_format' );
50
}
120
*/
121
private function get_titles_by_id( $meta ) {
122
123
+ $titles = array();
124
125
// display title with link
126
+ if ( $ids = $this->get_ids_from_meta( $meta ) ) {
127
+ foreach ( (array) $ids as $id ) {
128
+
129
if ( ! is_numeric( $id ) ) continue;
130
131
+ $link = get_edit_post_link( $id );
132
if ( $title = get_the_title( $id ) )
133
$titles[] = $link ? "<a href='{$link}'>{$title}</a>" : $title;
134
}
147
*/
148
private function get_users_by_id( $meta ) {
149
150
+ $names = array();
151
152
// display username
153
+ if ( $ids = $this->get_ids_from_meta( $meta ) ) {
154
+ foreach ( (array) $ids as $id ) {
155
if ( ! is_numeric( $id ) ) continue;
156
157
$userdata = get_userdata( $id );
199
break;
200
201
case "title_by_id" :
202
+ $meta = $this->get_titles_by_id( $meta );
203
break;
204
205
case "user_by_id" :
206
+ $meta = $this->get_users_by_id( $meta );
207
break;
208
209
case "checkmark" :
210
$checkmark = $this->get_asset_image( 'checkmark.png' );
211
212
+ if ( empty( $meta ) || 'false' === $meta || '0' === $meta ) {
213
$checkmark = '';
214
}
215
classes/column/post/status.php CHANGED
@@ -34,6 +34,7 @@ class CPAC_Column_Post_Status extends CPAC_Column {
34
'future' => __( 'Scheduled', 'cpac' ) . " <p class='description'>" . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) , strtotime( $p->post_date ) ) . "</p>",
35
'private' => __( 'Private', 'cpac' ),
36
'pending' => __( 'Pending Review', 'cpac' ),
37
'trash' => __( 'Trash', 'cpac' ),
38
);
39
@@ -49,8 +50,6 @@ class CPAC_Column_Post_Status extends CPAC_Column {
49
*/
50
function get_raw_value( $post_id ) {
51
52
- $p = get_post( $post_id );
53
-
54
- return $p->post_status;
55
}
56
}
34
'future' => __( 'Scheduled', 'cpac' ) . " <p class='description'>" . date_i18n( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) , strtotime( $p->post_date ) ) . "</p>",
35
'private' => __( 'Private', 'cpac' ),
36
'pending' => __( 'Pending Review', 'cpac' ),
37
+ 'auto-draft' => __( 'Auto Draft', 'cpac' ),
38
'trash' => __( 'Trash', 'cpac' ),
39
);
40
50
*/
51
function get_raw_value( $post_id ) {
52
53
+ return get_post_field( 'post_status', $post_id );
54
}
55
}
classes/column/post/sticky.php CHANGED
@@ -33,10 +33,13 @@ class CPAC_Column_Post_Sticky extends CPAC_Column {
33
* @since 2.0.0
34
*/
35
function get_value( $post_id ) {
36
- if ( ! ( $sticky = $this->get_raw_value( $post_id ) ) )
37
- return false;
38
39
- return $this->get_asset_image( 'checkmark.png' );
40
}
41
42
/**
33
* @since 2.0.0
34
*/
35
function get_value( $post_id ) {
36
37
+ $value = $this->get_asset_image( 'no.png' );
38
+
39
+ if ( $this->get_raw_value( $post_id ) )
40
+ $value = $this->get_asset_image( 'checkmark.png' );
41
+
42
+ return $value;
43
}
44
45
/**
classes/column/{post/taxonomy.php → taxonomy.php} RENAMED
@@ -4,7 +4,7 @@
4
*
5
* @since 2.0.0
6
*/
7
- class CPAC_Column_Post_Taxonomy extends CPAC_Column {
8
9
function __construct( $storage_model ) {
10
@@ -26,11 +26,20 @@ class CPAC_Column_Post_Taxonomy extends CPAC_Column {
26
27
$values = array();
28
29
- if ( $terms = $this->get_raw_value( $post_id ) ) {
30
- foreach ( $terms as $term ) {
31
32
- $title = esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, $term->taxonomy, 'edit' ) );
33
- $values[] = "<a href='edit.php?post_type={$this->storage_model->key}&{$term->taxonomy}={$term->slug}'>{$title}</a>";
34
}
35
}
36
@@ -43,7 +52,17 @@ class CPAC_Column_Post_Taxonomy extends CPAC_Column {
43
*/
44
function get_raw_value( $post_id ) {
45
46
- return get_the_terms( $post_id, $this->options->taxonomy );
47
}
48
49
/**
@@ -52,7 +71,9 @@ class CPAC_Column_Post_Taxonomy extends CPAC_Column {
52
*/
53
function apply_conditional() {
54
55
- if ( get_object_taxonomies( $this->storage_model->key ) ) {
56
return true;
57
}
58
@@ -67,7 +88,7 @@ class CPAC_Column_Post_Taxonomy extends CPAC_Column {
67
*/
68
function display_settings() {
69
70
- $taxonomies = get_object_taxonomies( $this->storage_model->key, 'objects' );
71
?>
72
73
<tr class="column_taxonomy">
4
*
5
* @since 2.0.0
6
*/
7
+ class CPAC_Column_Taxonomy extends CPAC_Column {
8
9
function __construct( $storage_model ) {
10
26
27
$values = array();
28
29
+ $term_ids = $this->get_raw_value( $post_id );
30
31
+ $post_type = $this->get_post_type();
32
+
33
+ if ( $term_ids && ! is_wp_error( $term_ids ) ) {
34
+ foreach ( $term_ids as $term_id ) {
35
+ $term = get_term( $term_id, $this->options->taxonomy );
36
+ $title = esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, $term->taxonomy, 'edit' ) );
37
+
38
+ $link = "<a href='edit.php?post_type={$post_type}&{$term->taxonomy}={$term->slug}'>{$title}</a>";
39
+ if ( $post_type == 'attachment' )
40
+ $link = "<a href='upload.php?taxonomy={$term->taxonomy}&term={$term->slug}'>{$title}</a>";
41
+
42
+ $values[] = $link;
43
}
44
}
45
52
*/
53
function get_raw_value( $post_id ) {
54
55
+ return wp_get_post_terms( $post_id, $this->options->taxonomy, array( 'fields' => 'ids' ) );
56
+ }
57
+
58
+ /**
59
+ * Get post type
60
+ *
61
+ * @since 2.1.1
62
+ */
63
+ function get_post_type() {
64
+
65
+ return isset( $this->storage_model->post_type ) ? $this->storage_model->post_type : false;
66
}
67
68
/**
71
*/
72
function apply_conditional() {
73
74
+ $post_type = $this->get_post_type();
75
+
76
+ if ( $post_type && get_object_taxonomies( $post_type ) ) {
77
return true;
78
}
79
88
*/
89
function display_settings() {
90
91
+ $taxonomies = get_object_taxonomies( $this->get_post_type(), 'objects' );
92
?>
93
94
<tr class="column_taxonomy">
classes/settings.php CHANGED
@@ -371,6 +371,7 @@ class CPAC_Settings {
371
$installed_sortorder = false;
372
373
?>
374
<div id="cpac-welcome" class="wrap about-wrap">
375
376
<h1><?php _e( "Welcome to Admin Columns",'cpac'); ?> <?php echo CPAC_VERSION; ?></h1>
@@ -523,6 +524,7 @@ class CPAC_Settings {
523
$post_types = array_values( $this->cpac->get_post_types() );
524
$first = array_shift( $post_types );
525
?>
526
<div id="cpac" class="wrap">
527
528
<?php screen_icon( 'codepress-admin-columns' ); ?>
@@ -607,7 +609,10 @@ class CPAC_Settings {
607
</p>
608
</div>
609
</div>
610
- <!--
611
<div class="padding-box newsletter">
612
<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">
613
<?php $user = wp_get_current_user(); ?>
@@ -625,7 +630,7 @@ class CPAC_Settings {
625
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
626
</form>
627
</div>
628
- -->
629
</div>
630
<?php endif; ?>
631
@@ -635,7 +640,9 @@ class CPAC_Settings {
635
<?php if ( version_compare( get_bloginfo( 'version' ), '3.2', '>' ) ) : ?>
636
<p><?php _e( 'Check the <strong>Help</strong> section in the top-right screen.', 'cpac' ); ?></p>
637
<?php endif; ?>
638
- <p><?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') ); ?></p>
639
</div>
640
</div><!--.form-actions-->
641
371
$installed_sortorder = false;
372
373
?>
374
+
375
<div id="cpac-welcome" class="wrap about-wrap">
376
377
<h1><?php _e( "Welcome to Admin Columns",'cpac'); ?> <?php echo CPAC_VERSION; ?></h1>
524
$post_types = array_values( $this->cpac->get_post_types() );
525
$first = array_shift( $post_types );
526
?>
527
+
528
<div id="cpac" class="wrap">
529
530
<?php screen_icon( 'codepress-admin-columns' ); ?>
609
</p>
610
</div>
611
</div>
612
+
613
+ <?php
614
+ // @todo: add newsletter
615
+ if ( false ) : ?>
616
<div class="padding-box newsletter">
617
<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">
618
<?php $user = wp_get_current_user(); ?>
630
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
631
</form>
632
</div>
633
+ <?php endif; ?>
634
</div>
635
<?php endif; ?>
636
640
<?php if ( version_compare( get_bloginfo( 'version' ), '3.2', '>' ) ) : ?>
641
<p><?php _e( 'Check the <strong>Help</strong> section in the top-right screen.', 'cpac' ); ?></p>
642
<?php endif; ?>
643
+ <p>
644
+ <?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') ); ?>
645
+ </p>
646
</div>
647
</div><!--.form-actions-->
648
classes/storage_model.php CHANGED
@@ -242,20 +242,26 @@ abstract class CPAC_Storage_Model {
242
protected function set_columns_filepath() {
243
244
$columns = array(
245
- 'CPAC_Column_Custom_Field' => CPAC_DIR . 'classes/column/custom-field.php'
246
);
247
248
$iterator = new DirectoryIterator( CPAC_DIR . 'classes/column/' . $this->type );
249
250
foreach( $iterator as $leaf ) {
251
252
- // skip files that start with . ( e.g: .SVN .DS_STORE )
253
- if ( $leaf->isDot() || $leaf->isDir() || substr( $leaf->getFilename(), 0, 1 ) === '.' ) continue;
254
255
// build classname from filename
256
- $class_name = implode( '_', array_map( 'ucfirst', explode( '-', basename( $leaf->getFilename(), '.php' ) ) ) );
257
258
- $columns[ 'CPAC_Column_' . ucfirst( $this->type ) . '_' . $class_name ] = $leaf->getPathname();
259
}
260
261
// cac/columns/custom - filter to register column
@@ -285,6 +291,7 @@ abstract class CPAC_Storage_Model {
285
->set_properties( 'name', $column_name )
286
->set_properties( 'label', $label )
287
->set_properties( 'is_cloneable', false )
288
->set_options( 'label', $label )
289
->set_options( 'state', 'on' );
290
@@ -404,7 +411,7 @@ abstract class CPAC_Storage_Model {
404
405
// only set columns on allowed screens
406
// @todo_minor: maybe add exception for AJAX calls
407
- if ( ! $this->is_columns_screen() && ! $this->is_settings_page() )
408
return;
409
410
$this->custom_columns = $this->get_custom_registered_columns();
@@ -614,6 +621,20 @@ abstract class CPAC_Storage_Model {
614
return add_query_arg( array( 'page' => 'codepress-admin-columns', 'cpac_key' => $this->key ), admin_url( 'options-general.php' ) );
615
}
616
617
/**
618
* Is columns screen
619
*
@@ -630,8 +651,17 @@ abstract class CPAC_Storage_Model {
630
if ( $this->page . '.php' != $pagenow )
631
return false;
632
633
- if ( ! empty( $current_screen->post_type ) && $this->key != $current_screen->post_type )
634
- return false;
635
636
return true;
637
}
@@ -650,4 +680,19 @@ abstract class CPAC_Storage_Model {
650
651
return 'options-general.php' == $pagenow && ! empty( $plugin_page ) && 'codepress-admin-columns' == $plugin_page;
652
}
653
}
242
protected function set_columns_filepath() {
243
244
$columns = array(
245
+ 'CPAC_Column_Custom_Field' => CPAC_DIR . 'classes/column/custom-field.php',
246
+ 'CPAC_Column_Taxonomy' => CPAC_DIR . 'classes/column/taxonomy.php'
247
);
248
249
$iterator = new DirectoryIterator( CPAC_DIR . 'classes/column/' . $this->type );
250
251
foreach( $iterator as $leaf ) {
252
253
+ if ( $leaf->isDot() || $leaf->isDir() )
254
+ continue;
255
+
256
+ // only allow php files, exclude .SVN .DS_STORE and such
257
+ if ( substr( $leaf->getFilename(), -4 ) !== '.php' )
258
+ continue;
259
260
// build classname from filename
261
+ $class_name = 'CPAC_Column_' . ucfirst( $this->type ) . '_' . implode( '_', array_map( 'ucfirst', explode( '-', basename( $leaf->getFilename(), '.php' ) ) ) );
262
263
+ // classname | filepath
264
+ $columns[ $class_name ] = $leaf->getPathname();
265
}
266
267
// cac/columns/custom - filter to register column
291
->set_properties( 'name', $column_name )
292
->set_properties( 'label', $label )
293
->set_properties( 'is_cloneable', false )
294
+ ->set_properties( 'default', true )
295
->set_options( 'label', $label )
296
->set_options( 'state', 'on' );
297
411
412
// only set columns on allowed screens
413
// @todo_minor: maybe add exception for AJAX calls
414
+ if ( ! $this->is_doing_ajax() && ! $this->is_columns_screen() && ! $this->is_settings_page() )
415
return;
416
417
$this->custom_columns = $this->get_custom_registered_columns();
621
return add_query_arg( array( 'page' => 'codepress-admin-columns', 'cpac_key' => $this->key ), admin_url( 'options-general.php' ) );
622
}
623
624
+ /**
625
+ * Is doing ajax
626
+ *
627
+ * @since 2.0.5
628
+ *
629
+ * @return boolean
630
+ */
631
+ function is_doing_ajax() {
632
+ if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
633
+ return true;
634
+
635
+ return false;
636
+ }
637
+
638
/**
639
* Is columns screen
640
*
651
if ( $this->page . '.php' != $pagenow )
652
return false;
653
654
+ // posttypes
655
+ if ( 'post' == $this->type ) {
656
+ $post_type = isset( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : $this->type;
657
+
658
+ if ( $this->key != $post_type )
659
+ return false;
660
+ }
661
+
662
+ // @todo: current_screen is still empty at this point...
663
+ //if ( ! empty( $current_screen->post_type ) && $this->key != $current_screen->post_type )
664
+ // return false;
665
666
return true;
667
}
680
681
return 'options-general.php' == $pagenow && ! empty( $plugin_page ) && 'codepress-admin-columns' == $plugin_page;
682
}
683
+
684
+ /**
685
+ * Get general options
686
+ *
687
+ * @since 2.1.1
688
+ */
689
+ public function get_general_option( $option ) {
690
+ $options = get_option( 'cpac_general_options' );
691
+
692
+ if ( ! isset( $options[ $option ] ) )
693
+ return false;
694
+
695
+ return $options[ $option ];
696
+ }
697
+
698
}
classes/storage_model/comment.php CHANGED
@@ -16,8 +16,7 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
16
17
$this->set_columns_filepath();
18
19
- // Populate columns variable.
20
- // This is used for manage_value. By storing these columns we greatly improve performance.
21
add_action( 'admin_init', array( $this, 'set_columns' ) );
22
23
// headings
16
17
$this->set_columns_filepath();
18
19
+ // populate columns variable
20
add_action( 'admin_init', array( $this, 'set_columns' ) );
21
22
// headings
classes/storage_model/link.php CHANGED
@@ -16,8 +16,7 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
16
17
$this->set_columns_filepath();
18
19
- // Populate columns variable.
20
- // This is used for manage_value. By storing these columns we greatly improve performance.
21
add_action( 'admin_init', array( $this, 'set_columns' ) );
22
23
// headings
16
17
$this->set_columns_filepath();
18
19
+ // populate columns variable
20
add_action( 'admin_init', array( $this, 'set_columns' ) );
21
22
// headings
classes/storage_model/media.php CHANGED
@@ -9,15 +9,15 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
9
*/
10
function __construct() {
11
12
- $this->key = 'wp-media';
13
- $this->label = __( 'Media Library' );
14
- $this->type = 'media';
15
- $this->page = 'upload';
16
17
$this->set_columns_filepath();
18
19
- // Populate columns variable.
20
- // This is used for manage_value. By storing these columns we greatly improve performance.
21
add_action( 'admin_init', array( $this, 'set_columns' ) );
22
23
// headings
9
*/
10
function __construct() {
11
12
+ $this->key = 'wp-media';
13
+ $this->label = __( 'Media Library' );
14
+ $this->type = 'media';
15
+ $this->page = 'upload';
16
+ $this->post_type = 'attachment';
17
18
$this->set_columns_filepath();
19
20
+ // populate columns variable
21
add_action( 'admin_init', array( $this, 'set_columns' ) );
22
23
// headings
classes/storage_model/post.php CHANGED
@@ -9,10 +9,11 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
9
*/
10
function __construct( $post_type ) {
11
12
- $this->key = $post_type;
13
- $this->label = $this->get_label();
14
- $this->type = 'post';
15
- $this->page = 'edit';
16
17
// @todo_minor
18
// Add parent::__construct and move these two over:
9
*/
10
function __construct( $post_type ) {
11
12
+ $this->key = $post_type;
13
+ $this->label = $this->get_label();
14
+ $this->type = 'post';
15
+ $this->page = 'edit';
16
+ $this->post_type = $post_type;
17
18
// @todo_minor
19
// Add parent::__construct and move these two over:
classes/storage_model/user.php CHANGED
@@ -16,8 +16,7 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
16
17
$this->set_columns_filepath();
18
19
- // Populate columns variable.
20
- // This is used for manage_value. By storing these columns we greatly improve performance.
21
add_action( 'admin_init', array( $this, 'set_columns' ) );
22
23
// headings
@@ -25,8 +24,6 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
25
26
// values
27
add_filter( 'manage_users_custom_column', array( $this, 'manage_value_callback' ), 10, 3 );
28
-
29
- //@todo: remove parent::__construct();
30
}
31
32
/**
16
17
$this->set_columns_filepath();
18
19
+ // populate columns variable
20
add_action( 'admin_init', array( $this, 'set_columns' ) );
21
22
// headings
24
25
// values
26
add_filter( 'manage_users_custom_column', array( $this, 'manage_value_callback' ), 10, 3 );
27
}
28
29
/**
codepress-admin-columns.php CHANGED
@@ -2,7 +2,7 @@
2
/*
3
4
Plugin Name: Codepress Admin Columns
5
- Version: 2.1.0
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
@@ -29,7 +29,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29
30
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
31
32
- define( 'CPAC_VERSION', '2.1.0' ); // current plugin version
33
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // this is the latest version which requires an upgrade
34
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
35
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
2
/*
3
4
Plugin Name: Codepress Admin Columns
5
+ Version: 2.1.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
29
30
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
31
32
+ define( 'CPAC_VERSION', '2.1.1' ); // current plugin version
33
define( 'CPAC_UPGRADE_VERSION', '2.0.0' ); // this is the latest version which requires an upgrade
34
define( 'CPAC_URL', plugin_dir_url( __FILE__ ) );
35
define( 'CPAC_DIR', plugin_dir_path( __FILE__ ) );
languages/cpac-nl_NL.mo CHANGED
Binary file
languages/cpac-sv_SE.mo CHANGED
Binary file
languages/cpac-sv_SE.po CHANGED
@@ -7,7 +7,7 @@ msgstr ""
7
"Project-Id-Version: Admin Columns\n"
8
"Report-Msgid-Bugs-To: \n"
9
"POT-Creation-Date: 2013-11-14 16:56+0100\n"
10
- "PO-Revision-Date: 2013-11-19 09:57+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"
@@ -636,7 +636,7 @@ msgstr "Support"
636
#: ../classes/settings.php:638
637
msgid "Check the <strong>Help</strong> section in the top-right screen."
638
msgstr ""
639
- "Kolla på <strong>Hjälp</strong> sektionen i den övre högra delen av skärmen."
640
641
#: ../classes/settings.php:641
642
#, php-format
7
"Project-Id-Version: Admin Columns\n"
8
"Report-Msgid-Bugs-To: \n"
9
"POT-Creation-Date: 2013-11-14 16:56+0100\n"
10
+ "PO-Revision-Date: 2013-11-19 09:44+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"
636
#: ../classes/settings.php:638
637
msgid "Check the <strong>Help</strong> section in the top-right screen."
638
msgstr ""
639
+ "Kolla på <strong>Hjälp</ strong> sektionen i den övre högra delen av skärmen."
640
641
#: ../classes/settings.php:641
642
#, php-format
languages/cpac.mo ADDED
Binary file
languages/cpac.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
msgstr ""
3
"Project-Id-Version: Codepress Admin Columns\n"
4
"Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-11-14 15:44+0100\n"
6
- "PO-Revision-Date: 2013-11-14 15:53+0100\n"
7
"Last-Translator: Codepress <info@codepress.nl>\n"
8
"Language-Team: Codepress <info@codepress.nl>\n"
9
"MIME-Version: 1.0\n"
@@ -16,7 +16,7 @@ msgstr ""
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPath-1: ..\n"
18
19
- #: ../codepress-admin-columns.php:236 ../classes/settings.php:534
20
msgid "Settings"
21
msgstr ""
22
@@ -135,7 +135,7 @@ msgstr ""
135
msgid "Admin Columns Settings"
136
msgstr ""
137
138
- #: ../classes/settings.php:64 ../classes/settings.php:533
139
#: ../classes/upgrade.php:89
140
msgid "Admin Columns"
141
msgstr ""
@@ -149,7 +149,7 @@ msgstr ""
149
msgid "Default settings succesfully restored."
150
msgstr ""
151
152
- #: ../classes/settings.php:200 ../classes/settings.php:456
153
msgid "Overview"
154
msgstr ""
155
@@ -309,327 +309,327 @@ msgid ""
309
"number of times the meta key is used by the item."
310
msgstr ""
311
312
- #: ../classes/settings.php:376
313
msgid "Welcome to Admin Columns"
314
msgstr ""
315
316
- #: ../classes/settings.php:379
317
msgid "Thank you for updating to the latest version!"
318
msgstr ""
319
320
- #: ../classes/settings.php:380
321
msgid ""
322
"Admin Columns is more polished and enjoyable than ever before. We hope you "
323
"like it."
324
msgstr ""
325
326
- #: ../classes/settings.php:385
327
msgid "What’s New"
328
msgstr ""
329
330
- #: ../classes/settings.php:386
331
msgid "Changelog"
332
msgstr ""
333
334
- #: ../classes/settings.php:388
335
msgid "Download Addons"
336
msgstr ""
337
338
- #: ../classes/settings.php:394
339
msgid "Addons"
340
msgstr ""
341
342
- #: ../classes/settings.php:396
343
msgid ""
344
"Addons are now activated by downloading and installing individual plugins. "
345
"Although these plugins will not be hosted on the wordpress.org repository, "
346
"each Add-on will continue to receive updates in the usual way."
347
msgstr ""
348
349
- #: ../classes/settings.php:399
350
msgid ""
351
"This website uses the Sortorder Addon. This addon needs to be downloaded."
352
msgstr ""
353
354
- #: ../classes/settings.php:402
355
msgid "Addons are seperate plugins which need to be downloaded."
356
msgstr ""
357
358
- #: ../classes/settings.php:402
359
msgid "Download your Addons"
360
msgstr ""
361
362
- #: ../classes/settings.php:408
363
msgid "This website does not use add-ons"
364
msgstr ""
365
366
- #: ../classes/settings.php:408
367
msgid "See our website for the Pro-addon."
368
msgstr ""
369
370
- #: ../classes/settings.php:415
371
msgid "Important"
372
msgstr ""
373
374
- #: ../classes/settings.php:417
375
msgid "Database Changes"
376
msgstr ""
377
378
- #: ../classes/settings.php:418
379
msgid ""
380
"The database has been changed between versions 1 and 2. But we made sure you "
381
"can still roll back to version 1x without any issues."
382
msgstr ""
383
384
- #: ../classes/settings.php:421
385
msgid "Make sure you backup your database and then click"
386
msgstr ""
387
388
- #: ../classes/settings.php:421 ../classes/upgrade.php:97
389
msgid "Upgrade Database"
390
msgstr ""
391
392
- #: ../classes/settings.php:424
393
msgid "Potential Issues"
394
msgstr ""
395
396
- #: ../classes/settings.php:425
397
msgid ""
398
"Do to the sizable refactoring the code, surounding Addons and action/"
399
"filters, your website may not operate correctly. It is important that you "
400
"read the full"
401
msgstr ""
402
403
- #: ../classes/settings.php:425
404
msgid "Migrating from v1 to v2"
405
msgstr ""
406
407
- #: ../classes/settings.php:425
408
msgid "guide to view the full list of changes."
409
msgstr ""
410
411
- #: ../classes/settings.php:425
412
#, php-format
413
msgid ""
414
"When you have found a bug please <a href=\"%s\">report them to us</a> so we "
415
"can fix it in the next release."
416
msgstr ""
417
418
- #: ../classes/settings.php:428
419
msgid "Important!"
420
msgstr ""
421
422
- #: ../classes/settings.php:428
423
msgid ""
424
"If you updated the Admin Columns plugin without prior knowledge of such "
425
"changes, Please roll back to the latest"
426
msgstr ""
427
428
- #: ../classes/settings.php:428
429
msgid "version 1"
430
msgstr ""
431
432
- #: ../classes/settings.php:428
433
msgid "of this plugin."
434
msgstr ""
435
436
- #: ../classes/settings.php:434
437
msgid "Changelog for"
438
msgstr ""
439
440
- #: ../classes/settings.php:449
441
msgid "Learn more"
442
msgstr ""
443
444
- #: ../classes/settings.php:458
445
msgid ""
446
"New to v2, all Addons act as separate plugins which need to be individually "
447
"downloaded, installed and updated."
448
msgstr ""
449
450
- #: ../classes/settings.php:459
451
msgid ""
452
"This page will assist you in downloading and installing each available Addon."
453
msgstr ""
454
455
- #: ../classes/settings.php:460
456
msgid "Available Addons"
457
msgstr ""
458
459
- #: ../classes/settings.php:465
460
msgid "Name"
461
msgstr ""
462
463
- #: ../classes/settings.php:466 ../classes/settings.php:474
464
msgid "Download"
465
msgstr ""
466
467
- #: ../classes/settings.php:472
468
msgid "Pro Add-on (includes Sortorder add-on)"
469
msgstr ""
470
471
- #: ../classes/settings.php:482
472
msgid "Installation"
473
msgstr ""
474
475
- #: ../classes/settings.php:484
476
msgid "For each Add-on available, please perform the following:"
477
msgstr ""
478
479
- #: ../classes/settings.php:486
480
msgid "Download the Addon plugin (.zip file) to your desktop"
481
msgstr ""
482
483
- #: ../classes/settings.php:487
484
msgid "Navigate to"
485
msgstr ""
486
487
- #: ../classes/settings.php:487
488
msgid "Plugins > Add New > Upload"
489
msgstr ""
490
491
- #: ../classes/settings.php:488
492
msgid "Use the uploader to browse, select and install your Add-on (.zip file)"
493
msgstr ""
494
495
- #: ../classes/settings.php:489
496
msgid ""
497
"Once the plugin has been uploaded and installed, click the 'Activate Plugin' "
498
"link"
499
msgstr ""
500
501
- #: ../classes/settings.php:490
502
msgid "The Add-on is now installed and activated!"
503
msgstr ""
504
505
- #: ../classes/settings.php:491
506
#, php-format
507
msgid ""
508
"For automatic updates make sure to <a href='%s'>enter your licence key</a>."
509
msgstr ""
510
511
- #: ../classes/settings.php:501
512
msgid "Start using Admin Columns"
513
msgstr ""
514
515
- #: ../classes/settings.php:575
516
msgid "Store settings"
517
msgstr ""
518
519
- #: ../classes/settings.php:579
520
msgid "Update"
521
msgstr ""
522
523
- #: ../classes/settings.php:579
524
msgid "Publish"
525
msgstr ""
526
527
- #: ../classes/settings.php:583
528
#, php-format
529
msgid ""
530
"Warning! The %s columns data will be deleted. This cannot be undone. \\'OK"
531
"\\' to delete, \\'Cancel\\' to stop"
532
msgstr ""
533
534
- #: ../classes/settings.php:584 ../classes/column/comment/actions.php:86
535
#: ../classes/column/post/actions.php:53
536
msgid "Restore"
537
msgstr ""
538
539
- #: ../classes/settings.php:584
540
msgid "columns"
541
msgstr ""
542
543
- #: ../classes/settings.php:597
544
msgid "Get the Pro Add-on"
545
msgstr ""
546
547
- #: ../classes/settings.php:601
548
msgid "Add Sorting"
549
msgstr ""
550
551
- #: ../classes/settings.php:602
552
msgid "Add Filtering"
553
msgstr ""
554
555
- #: ../classes/settings.php:603
556
msgid "Add Import/Export"
557
msgstr ""
558
559
- #: ../classes/settings.php:606
560
#, php-format
561
msgid "Check the <a href=\"%s\">Pro Add-on</a> for more details!"
562
msgstr ""
563
564
- #: ../classes/settings.php:615
565
msgid "Subscribe to receive news &amp; updates below."
566
msgstr ""
567
568
- #: ../classes/settings.php:618 ../classes/column/post/author-name.php:35
569
msgid "First Name"
570
msgstr ""
571
572
- #: ../classes/settings.php:622
573
msgid "Your Email"
574
msgstr ""
575
576
- #: ../classes/settings.php:633
577
msgid "Support"
578
msgstr ""
579
580
- #: ../classes/settings.php:636
581
msgid "Check the <strong>Help</strong> section in the top-right screen."
582
msgstr ""
583
584
- #: ../classes/settings.php:638
585
#, php-format
586
msgid ""
587
"For full documentation, bug reports, feature suggestions and other tips <a "
588
"href='%s'>visit the Admin Columns website</a>"
589
msgstr ""
590
591
- #: ../classes/settings.php:665
592
msgid "Drag and drop to reorder"
593
msgstr ""
594
595
- #: ../classes/settings.php:668
596
msgid "Add Column"
597
msgstr ""
598
599
- #: ../classes/settings.php:716
600
msgid "General Settings"
601
msgstr ""
602
603
- #: ../classes/settings.php:717
604
msgid "Customize your Admin Columns settings."
605
msgstr ""
606
607
- #: ../classes/settings.php:730
608
msgid "Show hidden custom fields. Default is <code>off</code>."
609
msgstr ""
610
611
- #: ../classes/settings.php:736
612
msgid ""
613
"Show \"Edit Columns\" button on admin screens. Default is <code>off</code>."
614
msgstr ""
615
616
- #: ../classes/settings.php:743
617
msgid "Save"
618
msgstr ""
619
620
- #: ../classes/settings.php:783
621
msgid "Restore Settings"
622
msgstr ""
623
624
- #: ../classes/settings.php:784
625
msgid "This will delete all column settings and restore the default settings."
626
msgstr ""
627
628
- #: ../classes/settings.php:790
629
msgid "Restore default settings"
630
msgstr ""
631
632
- #: ../classes/settings.php:790
633
msgid ""
634
"Warning! ALL saved admin columns data will be deleted. This cannot be "
635
"undone. \\'OK\\' to delete, \\'Cancel\\' to stop"
2
msgstr ""
3
"Project-Id-Version: Codepress Admin Columns\n"
4
"Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-11-14 16:56+0100\n"
6
+ "PO-Revision-Date: 2013-11-14 16:56+0100\n"
7
"Last-Translator: Codepress <info@codepress.nl>\n"
8
"Language-Team: Codepress <info@codepress.nl>\n"
9
"MIME-Version: 1.0\n"
16
"X-Poedit-SearchPath-0: .\n"
17
"X-Poedit-SearchPath-1: ..\n"
18
19
+ #: ../codepress-admin-columns.php:236 ../classes/settings.php:536
20
msgid "Settings"
21
msgstr ""
22
135
msgid "Admin Columns Settings"
136
msgstr ""
137
138
+ #: ../classes/settings.php:64 ../classes/settings.php:535
139
#: ../classes/upgrade.php:89
140
msgid "Admin Columns"
141
msgstr ""
149
msgid "Default settings succesfully restored."
150
msgstr ""
151
152
+ #: ../classes/settings.php:200 ../classes/settings.php:457
153
msgid "Overview"
154
msgstr ""
155
309
"number of times the meta key is used by the item."
310
msgstr ""
311
312
+ #: ../classes/settings.php:377
313
msgid "Welcome to Admin Columns"
314
msgstr ""
315
316
+ #: ../classes/settings.php:380
317
msgid "Thank you for updating to the latest version!"
318
msgstr ""
319
320
+ #: ../classes/settings.php:381
321
msgid ""
322
"Admin Columns is more polished and enjoyable than ever before. We hope you "
323
"like it."
324
msgstr ""
325
326
+ #: ../classes/settings.php:386
327
msgid "What’s New"
328
msgstr ""
329
330
+ #: ../classes/settings.php:387
331
msgid "Changelog"
332
msgstr ""
333
334
+ #: ../classes/settings.php:389
335
msgid "Download Addons"
336
msgstr ""
337
338
+ #: ../classes/settings.php:395
339
msgid "Addons"
340
msgstr ""
341
342
+ #: ../classes/settings.php:397
343
msgid ""
344
"Addons are now activated by downloading and installing individual plugins. "
345
"Although these plugins will not be hosted on the wordpress.org repository, "
346
"each Add-on will continue to receive updates in the usual way."
347
msgstr ""
348
349
+ #: ../classes/settings.php:400
350
msgid ""
351
"This website uses the Sortorder Addon. This addon needs to be downloaded."
352
msgstr ""
353
354
+ #: ../classes/settings.php:403
355
msgid "Addons are seperate plugins which need to be downloaded."
356
msgstr ""
357
358
+ #: ../classes/settings.php:403
359
msgid "Download your Addons"
360
msgstr ""
361
362
+ #: ../classes/settings.php:409
363
msgid "This website does not use add-ons"
364
msgstr ""
365
366
+ #: ../classes/settings.php:409
367
msgid "See our website for the Pro-addon."
368
msgstr ""
369
370
+ #: ../classes/settings.php:416
371
msgid "Important"
372
msgstr ""
373
374
+ #: ../classes/settings.php:418
375
msgid "Database Changes"
376
msgstr ""
377
378
+ #: ../classes/settings.php:419
379
msgid ""
380
"The database has been changed between versions 1 and 2. But we made sure you "
381
"can still roll back to version 1x without any issues."
382
msgstr ""
383
384
+ #: ../classes/settings.php:422
385
msgid "Make sure you backup your database and then click"
386
msgstr ""
387
388
+ #: ../classes/settings.php:422 ../classes/upgrade.php:97
389
msgid "Upgrade Database"
390
msgstr ""
391
392
+ #: ../classes/settings.php:425
393
msgid "Potential Issues"
394
msgstr ""
395
396
+ #: ../classes/settings.php:426
397
msgid ""
398
"Do to the sizable refactoring the code, surounding Addons and action/"
399
"filters, your website may not operate correctly. It is important that you "
400
"read the full"
401
msgstr ""
402
403
+ #: ../classes/settings.php:426
404
msgid "Migrating from v1 to v2"
405
msgstr ""
406
407
+ #: ../classes/settings.php:426
408
msgid "guide to view the full list of changes."
409
msgstr ""
410
411
+ #: ../classes/settings.php:426
412
#, php-format
413
msgid ""
414
"When you have found a bug please <a href=\"%s\">report them to us</a> so we "
415
"can fix it in the next release."
416
msgstr ""
417
418
+ #: ../classes/settings.php:429
419
msgid "Important!"
420
msgstr ""
421
422
+ #: ../classes/settings.php:429
423
msgid ""
424
"If you updated the Admin Columns plugin without prior knowledge of such "
425
"changes, Please roll back to the latest"
426
msgstr ""
427
428
+ #: ../classes/settings.php:429
429
msgid "version 1"
430
msgstr ""
431
432
+ #: ../classes/settings.php:429
433
msgid "of this plugin."
434
msgstr ""
435
436
+ #: ../classes/settings.php:435
437
msgid "Changelog for"
438
msgstr ""
439
440
+ #: ../classes/settings.php:450
441
msgid "Learn more"
442
msgstr ""
443
444
+ #: ../classes/settings.php:459
445
msgid ""
446
"New to v2, all Addons act as separate plugins which need to be individually "
447
"downloaded, installed and updated."
448
msgstr ""
449
450
+ #: ../classes/settings.php:460
451
msgid ""
452
"This page will assist you in downloading and installing each available Addon."
453
msgstr ""
454
455
+ #: ../classes/settings.php:461
456
msgid "Available Addons"
457
msgstr ""
458
459
+ #: ../classes/settings.php:466
460
msgid "Name"
461
msgstr ""
462
463
+ #: ../classes/settings.php:467 ../classes/settings.php:475
464
msgid "Download"
465
msgstr ""
466
467
+ #: ../classes/settings.php:473
468
msgid "Pro Add-on (includes Sortorder add-on)"
469
msgstr ""
470
471
+ #: ../classes/settings.php:483
472
msgid "Installation"
473
msgstr ""
474
475
+ #: ../classes/settings.php:485
476
msgid "For each Add-on available, please perform the following:"
477
msgstr ""
478
479
+ #: ../classes/settings.php:487
480
msgid "Download the Addon plugin (.zip file) to your desktop"
481
msgstr ""
482
483
+ #: ../classes/settings.php:488
484
msgid "Navigate to"
485
msgstr ""
486
487
+ #: ../classes/settings.php:488
488
msgid "Plugins > Add New > Upload"
489
msgstr ""
490
491
+ #: ../classes/settings.php:489
492
msgid "Use the uploader to browse, select and install your Add-on (.zip file)"
493
msgstr ""
494
495
+ #: ../classes/settings.php:490
496
msgid ""
497
"Once the plugin has been uploaded and installed, click the 'Activate Plugin' "
498
"link"
499
msgstr ""
500
501
+ #: ../classes/settings.php:491
502
msgid "The Add-on is now installed and activated!"
503
msgstr ""
504
505
+ #: ../classes/settings.php:492
506
#, php-format
507
msgid ""
508
"For automatic updates make sure to <a href='%s'>enter your licence key</a>."
509
msgstr ""
510
511
+ #: ../classes/settings.php:502
512
msgid "Start using Admin Columns"
513
msgstr ""
514
515
+ #: ../classes/settings.php:577
516
msgid "Store settings"
517
msgstr ""
518
519
+ #: ../classes/settings.php:581
520
msgid "Update"
521
msgstr ""
522
523
+ #: ../classes/settings.php:581
524
msgid "Publish"
525
msgstr ""
526
527
+ #: ../classes/settings.php:585
528
#, php-format
529
msgid ""
530
"Warning! The %s columns data will be deleted. This cannot be undone. \\'OK"
531
"\\' to delete, \\'Cancel\\' to stop"
532
msgstr ""
533
534
+ #: ../classes/settings.php:586 ../classes/column/comment/actions.php:86
535
#: ../classes/column/post/actions.php:53
536
msgid "Restore"
537
msgstr ""
538
539
+ #: ../classes/settings.php:586
540
msgid "columns"
541
msgstr ""
542
543
+ #: ../classes/settings.php:599
544
msgid "Get the Pro Add-on"
545
msgstr ""
546
547
+ #: ../classes/settings.php:603
548
msgid "Add Sorting"
549
msgstr ""
550
551
+ #: ../classes/settings.php:604
552
msgid "Add Filtering"
553
msgstr ""
554
555
+ #: ../classes/settings.php:605
556
msgid "Add Import/Export"
557
msgstr ""
558
559
+ #: ../classes/settings.php:608
560
#, php-format
561
msgid "Check the <a href=\"%s\">Pro Add-on</a> for more details!"
562
msgstr ""
563
564
+ #: ../classes/settings.php:617
565
msgid "Subscribe to receive news &amp; updates below."
566
msgstr ""
567
568
+ #: ../classes/settings.php:620 ../classes/column/post/author-name.php:35
569
msgid "First Name"
570
msgstr ""
571
572
+ #: ../classes/settings.php:624
573
msgid "Your Email"
574
msgstr ""
575
576
+ #: ../classes/settings.php:635
577
msgid "Support"
578
msgstr ""
579
580
+ #: ../classes/settings.php:638
581
msgid "Check the <strong>Help</strong> section in the top-right screen."
582
msgstr ""
583
584
+ #: ../classes/settings.php:641
585
#, php-format
586
msgid ""
587
"For full documentation, bug reports, feature suggestions and other tips <a "
588
"href='%s'>visit the Admin Columns website</a>"
589
msgstr ""
590
591
+ #: ../classes/settings.php:669
592
msgid "Drag and drop to reorder"
593
msgstr ""
594
595
+ #: ../classes/settings.php:672
596
msgid "Add Column"
597
msgstr ""
598
599
+ #: ../classes/settings.php:720
600
msgid "General Settings"
601
msgstr ""
602
603
+ #: ../classes/settings.php:721
604
msgid "Customize your Admin Columns settings."
605
msgstr ""
606
607
+ #: ../classes/settings.php:734
608
msgid "Show hidden custom fields. Default is <code>off</code>."
609
msgstr ""
610
611
+ #: ../classes/settings.php:740
612
msgid ""
613
"Show \"Edit Columns\" button on admin screens. Default is <code>off</code>."
614
msgstr ""
615
616
+ #: ../classes/settings.php:747
617
msgid "Save"
618
msgstr ""
619
620
+ #: ../classes/settings.php:787
621
msgid "Restore Settings"
622
msgstr ""
623
624
+ #: ../classes/settings.php:788
625
msgid "This will delete all column settings and restore the default settings."
626
msgstr ""
627
628
+ #: ../classes/settings.php:794
629
msgid "Restore default settings"
630
msgstr ""
631
632
+ #: ../classes/settings.php:794
633
msgid ""
634
"Warning! ALL saved admin columns data will be deleted. This cannot be "
635
"undone. \\'OK\\' to delete, \\'Cancel\\' to stop"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: codepress, tschutter, davidmosterd
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
4
Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
Requires at least: 3.5
6
- Tested up to: 3.7.1
7
- Stable tag: 2.1.0
8
9
Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.
10
@@ -220,6 +220,12 @@ Here you will find an overview of filters and examples: http://www.codepresshq.c
220
221
== Changelog ==
222
223
= 2.1.0 =
224
* [Updated] Improved overall performance for script loading and lowered memory usage
225
3
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J
4
Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin
5
Requires at least: 3.5
6
+ Tested up to: 3.8
7
+ Stable tag: 2.1.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
220
221
== Changelog ==
222
223
+ = 2.1.1 =
224
+ * [Updated] Added page check to posttype edit screens
225
+ * [Updated] taxonomy raw_value outputs term_ids
226
+ * [Added] Taxnomy support for Media
227
+ * [Fixed] In some cases custom field column would trigger a php warning on post titles type
228
+
229
= 2.1.0 =
230
* [Updated] Improved overall performance for script loading and lowered memory usage
231