Version Description
- [Fixed] Custom Fields for Media Library did not work.
- [Fixed] Column type dropdown displayed an empty item.
Download this release
Release Info
Developer | engelen |
Plugin | Admin Columns |
Version | 2.2.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.1.1 to 2.2.2
- assets/js/admin-columns.js +6 -6
- classes/column.php +110 -88
- classes/column/acf-placeholder.php +10 -9
- classes/column/comment/ID.php +10 -5
- classes/column/comment/actions.php +10 -7
- classes/column/comment/agent.php +10 -5
- classes/column/comment/approved.php +10 -5
- classes/column/comment/author-avatar.php +10 -5
- classes/column/comment/author-email.php +10 -5
- classes/column/comment/author-ip.php +10 -5
- classes/column/comment/author-url.php +10 -5
- classes/column/comment/author.php +10 -5
- classes/column/comment/date-gmt.php +10 -5
- classes/column/comment/date.php +10 -5
- classes/column/comment/excerpt.php +12 -8
- classes/column/comment/reply-to.php +10 -5
- classes/column/comment/word-count.php +10 -5
- classes/column/custom-field.php +12 -15
- classes/column/default.php +33 -0
- classes/column/link/ID.php +10 -5
- classes/column/link/actions.php +10 -7
- classes/column/link/description.php +10 -5
- classes/column/link/image.php +12 -7
- classes/column/link/length.php +10 -5
- classes/column/link/notes.php +12 -8
- classes/column/link/owner.php +10 -5
- classes/column/link/rss.php +10 -5
- classes/column/link/target.php +10 -5
- classes/column/media/ID.php +10 -5
- classes/column/media/actions.php +10 -6
- classes/column/media/alternate-text.php +10 -5
- classes/column/media/available-sizes.php +10 -7
- classes/column/media/caption.php +10 -5
- classes/column/media/description.php +10 -5
- classes/column/media/dimensions.php +10 -5
- classes/column/media/exif-data.php +14 -9
- classes/column/media/file-name.php +10 -5
- classes/column/media/file-size.php +10 -5
- classes/column/media/full-path.php +10 -5
- classes/column/media/height.php +10 -5
- classes/column/media/mime-type.php +10 -5
- classes/column/media/width.php +10 -5
- classes/column/post/ID.php +10 -5
- classes/column/post/actions.php +11 -8
- classes/column/post/attachment-count.php +10 -5
- classes/column/post/attachment.php +12 -7
- classes/column/post/author-name.php +14 -9
- classes/column/post/before-moretag.php +12 -9
- classes/column/post/comment-count.php +14 -11
- classes/column/post/comment-status.php +13 -8
- classes/column/post/excerpt.php +12 -8
- classes/column/post/featured-image.php +12 -9
- classes/column/post/formats.php +11 -8
- classes/column/post/modified.php +10 -7
- classes/column/post/order.php +11 -8
- classes/column/post/page-template.php +11 -6
- classes/column/post/parent.php +11 -6
- classes/column/post/permalink.php +11 -6
- classes/column/post/ping-status.php +10 -7
- classes/column/post/roles.php +10 -7
- classes/column/post/slug.php +10 -5
- classes/column/post/status.php +10 -7
- classes/column/post/sticky.php +11 -8
- classes/column/post/word-count.php +11 -6
- classes/column/taxonomy.php +14 -9
- classes/column/user/ID.php +10 -7
- classes/column/user/actions.php +10 -7
- classes/column/user/comment-count.php +10 -7
- classes/column/user/description.php +12 -9
- classes/column/user/first-name.php +10 -7
- classes/column/user/last-name.php +10 -7
- classes/column/user/nickname.php +10 -7
- classes/column/user/post-count.php +13 -10
- classes/column/user/registered.php +12 -8
- classes/column/user/url.php +10 -7
- classes/settings.php +14 -14
- classes/storage_model.php +39 -31
- classes/storage_model/comment.php +5 -4
- classes/storage_model/link.php +7 -5
- classes/storage_model/media.php +8 -5
- classes/storage_model/post.php +7 -7
- classes/storage_model/user.php +11 -8
- classes/third_party.php +6 -6
- classes/upgrade.php +7 -7
- codepress-admin-columns.php +14 -13
- languages/cpac.po +244 -218
- readme.txt +6 -4
assets/js/admin-columns.js
CHANGED
@@ -66,7 +66,7 @@ function cpac_submit_form() {
|
|
66 |
*
|
67 |
* For performance we bind all other events after the click event.
|
68 |
*
|
69 |
-
* @since 2.0
|
70 |
*/
|
71 |
jQuery.fn.column_bind_toggle = function() {
|
72 |
|
@@ -91,7 +91,7 @@ jQuery.fn.column_bind_toggle = function() {
|
|
91 |
/*
|
92 |
* Column: bind remove events
|
93 |
*
|
94 |
-
* @since 2.0
|
95 |
*/
|
96 |
jQuery.fn.column_bind_remove = function() {
|
97 |
|
@@ -136,7 +136,7 @@ jQuery.fn.cpac_column_refresh = function() {
|
|
136 |
/*
|
137 |
* Form Events
|
138 |
*
|
139 |
-
* @since 2.0
|
140 |
*/
|
141 |
jQuery.fn.column_bind_events = function() {
|
142 |
|
@@ -260,7 +260,7 @@ jQuery.fn.column_bind_events = function() {
|
|
260 |
/*
|
261 |
* Column: remove from DOM
|
262 |
*
|
263 |
-
* @since 2.0
|
264 |
*/
|
265 |
jQuery.fn.column_remove = function() {
|
266 |
jQuery(this).addClass('deleting').animate({ opacity : 0, height: 0 }, 350, function(e) {
|
@@ -271,7 +271,7 @@ jQuery.fn.column_remove = function() {
|
|
271 |
/*
|
272 |
* Update clone ID
|
273 |
*
|
274 |
-
* @since 2.0
|
275 |
*/
|
276 |
jQuery.fn.cpac_update_clone_id = function( storage_model ) {
|
277 |
|
@@ -334,7 +334,7 @@ jQuery.fn.cpac_update_clone_id = function( storage_model ) {
|
|
334 |
/*
|
335 |
* Add Column
|
336 |
*
|
337 |
-
* @since 2.0
|
338 |
*/
|
339 |
function cpac_add_column() {
|
340 |
|
66 |
*
|
67 |
* For performance we bind all other events after the click event.
|
68 |
*
|
69 |
+
* @since 2.0
|
70 |
*/
|
71 |
jQuery.fn.column_bind_toggle = function() {
|
72 |
|
91 |
/*
|
92 |
* Column: bind remove events
|
93 |
*
|
94 |
+
* @since 2.0
|
95 |
*/
|
96 |
jQuery.fn.column_bind_remove = function() {
|
97 |
|
136 |
/*
|
137 |
* Form Events
|
138 |
*
|
139 |
+
* @since 2.0
|
140 |
*/
|
141 |
jQuery.fn.column_bind_events = function() {
|
142 |
|
260 |
/*
|
261 |
* Column: remove from DOM
|
262 |
*
|
263 |
+
* @since 2.0
|
264 |
*/
|
265 |
jQuery.fn.column_remove = function() {
|
266 |
jQuery(this).addClass('deleting').animate({ opacity : 0, height: 0 }, 350, function(e) {
|
271 |
/*
|
272 |
* Update clone ID
|
273 |
*
|
274 |
+
* @since 2.0
|
275 |
*/
|
276 |
jQuery.fn.cpac_update_clone_id = function( storage_model ) {
|
277 |
|
334 |
/*
|
335 |
* Add Column
|
336 |
*
|
337 |
+
* @since 2.0
|
338 |
*/
|
339 |
function cpac_add_column() {
|
340 |
|
classes/column.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* CPAC_Column class
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*
|
7 |
* @param object $storage_model CPAC_Storage_Model
|
8 |
*/
|
@@ -11,31 +11,32 @@ class CPAC_Column {
|
|
11 |
/**
|
12 |
* A Storage Model can be a Posttype, User, Comment, Link or Media storage type.
|
13 |
*
|
14 |
-
* @since 2.0
|
15 |
-
* @var
|
16 |
*/
|
17 |
public $storage_model;
|
18 |
|
19 |
/**
|
20 |
-
* @since 2.0
|
21 |
* @var array $options contains the user set options for the CPAC_Column object.
|
22 |
*/
|
23 |
public $options = array();
|
24 |
|
25 |
/**
|
26 |
-
* @since 2.0
|
27 |
* @var object $options_default contains the options for the CPAC_Column object before they are populated with user input.
|
28 |
*/
|
29 |
protected $options_default;
|
30 |
|
31 |
/**
|
32 |
-
* @since 2.0
|
33 |
* @var array $properties describes the fixed properties for the CPAC_Column object.
|
34 |
*/
|
35 |
public $properties = array();
|
36 |
|
37 |
/**
|
38 |
-
* @since 2.0
|
|
|
39 |
* @param int $id ID
|
40 |
* @return string Value
|
41 |
*/
|
@@ -46,13 +47,14 @@ class CPAC_Column {
|
|
46 |
* Not suitable for direct display, use get_value() for that
|
47 |
*
|
48 |
* @since 2.0.3
|
|
|
49 |
* @param int $id ID
|
50 |
* @return mixed Value
|
51 |
*/
|
52 |
public function get_raw_value( $id ) {}
|
53 |
|
54 |
/**
|
55 |
-
* @since 2.0
|
56 |
*/
|
57 |
protected function display_settings() {}
|
58 |
|
@@ -60,7 +62,8 @@ class CPAC_Column {
|
|
60 |
* Overwrite this function in child class to sanitize
|
61 |
* user submitted values.
|
62 |
*
|
63 |
-
* @since 2.0
|
|
|
64 |
* @param $options array User submitted column options
|
65 |
* @return array Options
|
66 |
*/
|
@@ -73,27 +76,49 @@ class CPAC_Column {
|
|
73 |
return $options;
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/**
|
77 |
* An object copy (clone) is created for creating multiple column instances.
|
78 |
*
|
79 |
-
* @since 2.0
|
80 |
*/
|
81 |
public function __clone() {
|
82 |
|
83 |
-
|
84 |
$this->options = clone $this->options;
|
85 |
$this->properties = clone $this->properties;
|
86 |
-
|
87 |
|
88 |
/**
|
89 |
-
* @since 2.0
|
|
|
90 |
* @param object $storage_model CPAC_Storage_Model
|
91 |
*/
|
92 |
-
function __construct( CPAC_Storage_Model $storage_model ) {
|
93 |
|
94 |
$this->storage_model = $storage_model;
|
95 |
|
96 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
$default_properties = array(
|
98 |
'clone' => null, // Unique clone ID
|
99 |
'type' => null, // Unique type
|
@@ -107,73 +132,71 @@ class CPAC_Column {
|
|
107 |
'group' => 'custom'
|
108 |
);
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
// set column name to column type
|
114 |
-
$properties['name'] = $properties['type'];
|
115 |
-
|
116 |
-
// apply conditional statements wheter this column should be available or not.
|
117 |
-
if ( method_exists( $this, 'apply_conditional' ) ) {
|
118 |
-
$properties['is_registered'] = $this->apply_conditional();
|
119 |
}
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
/**
|
122 |
-
* Filter the
|
123 |
-
* Property $column_instance added in Admin Columns 2.2
|
124 |
*
|
125 |
-
* @since 2.
|
126 |
-
* @param array $
|
127 |
* @param CPAC_Column $column_instance Column class instance
|
128 |
*/
|
129 |
-
$
|
130 |
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
* @since 2.0.0
|
136 |
-
* @see Filter cac/column/properties
|
137 |
-
*/
|
138 |
-
$properties = apply_filters( "cac/column/properties/storage_key={$this->storage_model->key}", $properties, $this );
|
139 |
|
140 |
-
|
141 |
-
$this->properties = (object) $properties;
|
142 |
|
143 |
-
//
|
144 |
-
$
|
145 |
-
'
|
146 |
-
|
147 |
-
'state' => 'off' // Active state for this column.
|
148 |
-
);
|
149 |
|
150 |
-
//
|
151 |
-
|
|
|
|
|
152 |
|
153 |
/**
|
154 |
-
* Filter the
|
|
|
155 |
*
|
156 |
-
* @since 2.
|
157 |
-
* @param array $
|
158 |
* @param CPAC_Column $column_instance Column class instance
|
159 |
*/
|
160 |
-
$
|
161 |
|
162 |
/**
|
163 |
-
* Filter the
|
|
|
164 |
*
|
165 |
-
* @since 2.
|
166 |
-
* @see Filter cac/column/
|
167 |
*/
|
168 |
-
$
|
169 |
|
170 |
-
//
|
171 |
-
$this->options
|
|
|
|
|
172 |
|
173 |
-
//
|
174 |
-
$this->
|
|
|
175 |
|
176 |
-
//
|
177 |
$this->populate_options();
|
178 |
|
179 |
$this->sanitize_label();
|
@@ -183,7 +206,7 @@ class CPAC_Column {
|
|
183 |
* Populate Options
|
184 |
* Added $options parameter in 2.2
|
185 |
*
|
186 |
-
* @since 2.0
|
187 |
* @param array $options Optional. Options to populate the storage model with. Defaults to options from database.
|
188 |
*/
|
189 |
public function populate_options( $options = NULL ) {
|
@@ -241,7 +264,7 @@ class CPAC_Column {
|
|
241 |
}
|
242 |
|
243 |
/**
|
244 |
-
* @since 2.0
|
245 |
* @return array Column options
|
246 |
*/
|
247 |
public function read() {
|
@@ -255,10 +278,9 @@ class CPAC_Column {
|
|
255 |
}
|
256 |
|
257 |
/**
|
258 |
-
* @since 2.0
|
259 |
*/
|
260 |
public function sanitize_label() {
|
261 |
-
|
262 |
// check if original label has changed. Example WPML adds a language column, the column heading will have to display the added flag.
|
263 |
if ( $this->properties->hide_label && $this->properties->label !== $this->options->label ) {
|
264 |
$this->options->label = $this->properties->label;
|
@@ -269,7 +291,7 @@ class CPAC_Column {
|
|
269 |
}
|
270 |
|
271 |
/**
|
272 |
-
* @since 2.0
|
273 |
* @param $options array User submitted column options
|
274 |
* @return array Options
|
275 |
*/
|
@@ -297,14 +319,14 @@ class CPAC_Column {
|
|
297 |
}
|
298 |
|
299 |
/**
|
300 |
-
* @since 2.0
|
301 |
*/
|
302 |
function get_label() {
|
303 |
|
304 |
/**
|
305 |
* Filter the column instance label
|
306 |
*
|
307 |
-
* @since 2.0
|
308 |
*
|
309 |
* @param string $label Column instance label
|
310 |
* @param CPAC_Column $column_instance Column class instance
|
@@ -315,7 +337,7 @@ class CPAC_Column {
|
|
315 |
/**
|
316 |
* Sanitizes label using intern wordpress function esc_url so it matches the label sorting url.
|
317 |
*
|
318 |
-
* @since 1.0
|
319 |
* @param string $string
|
320 |
* @return string Sanitized string
|
321 |
*/
|
@@ -337,7 +359,7 @@ class CPAC_Column {
|
|
337 |
}
|
338 |
|
339 |
/**
|
340 |
-
* @since 2.0
|
341 |
* @param $id Cache ID
|
342 |
* @param $cache_object Cache Object
|
343 |
*/
|
@@ -351,7 +373,7 @@ class CPAC_Column {
|
|
351 |
}
|
352 |
|
353 |
/**
|
354 |
-
* @since 2.0
|
355 |
* @param $id Cache ID ( could be a name of an addon for example )
|
356 |
* @return false | mixed Returns either false or the cached objects
|
357 |
*/
|
@@ -366,7 +388,7 @@ class CPAC_Column {
|
|
366 |
}
|
367 |
|
368 |
/**
|
369 |
-
* @since 2.0
|
370 |
* @param $id Cache ID
|
371 |
*/
|
372 |
function delete_cache( $id ) {
|
@@ -403,7 +425,7 @@ class CPAC_Column {
|
|
403 |
}
|
404 |
|
405 |
/**
|
406 |
-
* @since 1.0
|
407 |
* @param int $post_id Post ID
|
408 |
* @return string Post Excerpt.
|
409 |
*/
|
@@ -429,7 +451,7 @@ class CPAC_Column {
|
|
429 |
|
430 |
/**
|
431 |
* @see wp_trim_words();
|
432 |
-
* @since 1.0
|
433 |
* @return string Trimmed text.
|
434 |
*/
|
435 |
protected function get_shortened_string( $text = '', $num_words = 30, $more = null ) {
|
@@ -473,7 +495,7 @@ class CPAC_Column {
|
|
473 |
}
|
474 |
|
475 |
/**
|
476 |
-
* @since 1.0
|
477 |
* @return array Image Sizes.
|
478 |
*/
|
479 |
public function get_all_image_sizes() {
|
@@ -494,7 +516,7 @@ class CPAC_Column {
|
|
494 |
}
|
495 |
|
496 |
/**
|
497 |
-
* @since 2.0
|
498 |
* @param string $name
|
499 |
* @return array Image Sizes
|
500 |
*/
|
@@ -515,7 +537,7 @@ class CPAC_Column {
|
|
515 |
|
516 |
/**
|
517 |
* @see image_resize()
|
518 |
-
* @since 2.0
|
519 |
* @return string Image URL
|
520 |
*/
|
521 |
public function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
|
@@ -544,7 +566,7 @@ class CPAC_Column {
|
|
544 |
}
|
545 |
|
546 |
/**
|
547 |
-
* @since 1.0
|
548 |
* @param mixed $meta Image files or Image ID's
|
549 |
* @param array $args
|
550 |
* @return array HTML img elements
|
@@ -637,7 +659,7 @@ class CPAC_Column {
|
|
637 |
/**
|
638 |
* Implode for multi dimensional array
|
639 |
*
|
640 |
-
* @since 1.0
|
641 |
* @param string $glue
|
642 |
* @param array $pieces
|
643 |
* @return string Imploded array
|
@@ -661,7 +683,7 @@ class CPAC_Column {
|
|
661 |
/**
|
662 |
* Get timestamp
|
663 |
*
|
664 |
-
* @since
|
665 |
* @param string $date
|
666 |
* @return string Formatted date
|
667 |
*/
|
@@ -726,7 +748,7 @@ class CPAC_Column {
|
|
726 |
}
|
727 |
|
728 |
/**
|
729 |
-
* @since 2.0
|
730 |
* @param string $field_key
|
731 |
* @return string Attribute Name
|
732 |
*/
|
@@ -743,7 +765,7 @@ class CPAC_Column {
|
|
743 |
}
|
744 |
|
745 |
/**
|
746 |
-
* @since 2.0
|
747 |
*/
|
748 |
function display_field_date_format() {
|
749 |
|
@@ -767,7 +789,7 @@ class CPAC_Column {
|
|
767 |
}
|
768 |
|
769 |
/**
|
770 |
-
* @since 2.0
|
771 |
*/
|
772 |
function display_field_excerpt_length() {
|
773 |
|
@@ -786,7 +808,7 @@ class CPAC_Column {
|
|
786 |
}
|
787 |
|
788 |
/**
|
789 |
-
* @since 2.0
|
790 |
*/
|
791 |
function display_field_preview_size() {
|
792 |
|
@@ -843,7 +865,7 @@ class CPAC_Column {
|
|
843 |
}
|
844 |
|
845 |
/**
|
846 |
-
* @since 2.0
|
847 |
* @param array Column Objects
|
848 |
* @return string HTML List
|
849 |
*/
|
@@ -873,7 +895,7 @@ class CPAC_Column {
|
|
873 |
}
|
874 |
|
875 |
/**
|
876 |
-
* @since 2.0
|
877 |
*/
|
878 |
public function display() {
|
879 |
|
@@ -909,7 +931,7 @@ class CPAC_Column {
|
|
909 |
/**
|
910 |
* Fires in the meta-element for column options, which is displayed right after the column label
|
911 |
*
|
912 |
-
* @since 2.0
|
913 |
*
|
914 |
* @param CPAC_Column $column_instance Column class instance
|
915 |
*/
|
@@ -974,7 +996,7 @@ class CPAC_Column {
|
|
974 |
/**
|
975 |
* Fires directly before the custom options for a column are displayed in the column form
|
976 |
*
|
977 |
-
* @since 2.0
|
978 |
* @param CPAC_Column $column_instance Column class instance
|
979 |
*/
|
980 |
do_action( 'cac/column/settings_before', $this );
|
@@ -993,7 +1015,7 @@ class CPAC_Column {
|
|
993 |
/**
|
994 |
* Fires directly after the custom options for a column are displayed in the column form
|
995 |
*
|
996 |
-
* @since 2.0
|
997 |
* @param CPAC_Column $column_instance Column class instance
|
998 |
*/
|
999 |
do_action( 'cac/column/settings_after', $this );
|
2 |
/**
|
3 |
* CPAC_Column class
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*
|
7 |
* @param object $storage_model CPAC_Storage_Model
|
8 |
*/
|
11 |
/**
|
12 |
* A Storage Model can be a Posttype, User, Comment, Link or Media storage type.
|
13 |
*
|
14 |
+
* @since 2.0
|
15 |
+
* @var CPAC_Storage_Model $storage_model contains a CPAC_Storage_Model object which the column belongs too.
|
16 |
*/
|
17 |
public $storage_model;
|
18 |
|
19 |
/**
|
20 |
+
* @since 2.0
|
21 |
* @var array $options contains the user set options for the CPAC_Column object.
|
22 |
*/
|
23 |
public $options = array();
|
24 |
|
25 |
/**
|
26 |
+
* @since 2.0
|
27 |
* @var object $options_default contains the options for the CPAC_Column object before they are populated with user input.
|
28 |
*/
|
29 |
protected $options_default;
|
30 |
|
31 |
/**
|
32 |
+
* @since 2.0
|
33 |
* @var array $properties describes the fixed properties for the CPAC_Column object.
|
34 |
*/
|
35 |
public $properties = array();
|
36 |
|
37 |
/**
|
38 |
+
* @since 2.0
|
39 |
+
*
|
40 |
* @param int $id ID
|
41 |
* @return string Value
|
42 |
*/
|
47 |
* Not suitable for direct display, use get_value() for that
|
48 |
*
|
49 |
* @since 2.0.3
|
50 |
+
*
|
51 |
* @param int $id ID
|
52 |
* @return mixed Value
|
53 |
*/
|
54 |
public function get_raw_value( $id ) {}
|
55 |
|
56 |
/**
|
57 |
+
* @since 2.0
|
58 |
*/
|
59 |
protected function display_settings() {}
|
60 |
|
62 |
* Overwrite this function in child class to sanitize
|
63 |
* user submitted values.
|
64 |
*
|
65 |
+
* @since 2.0
|
66 |
+
*
|
67 |
* @param $options array User submitted column options
|
68 |
* @return array Options
|
69 |
*/
|
76 |
return $options;
|
77 |
}
|
78 |
|
79 |
+
/**
|
80 |
+
* Determine whether this column type should be available
|
81 |
+
*
|
82 |
+
* @since 2.3
|
83 |
+
*
|
84 |
+
* @return bool Whether the column type should be available
|
85 |
+
*/
|
86 |
+
public function apply_conditional() {
|
87 |
+
|
88 |
+
return true;
|
89 |
+
}
|
90 |
+
|
91 |
/**
|
92 |
* An object copy (clone) is created for creating multiple column instances.
|
93 |
*
|
94 |
+
* @since 2.0
|
95 |
*/
|
96 |
public function __clone() {
|
97 |
|
98 |
+
// Force a copy of this->object, otherwise it will point to same object.
|
99 |
$this->options = clone $this->options;
|
100 |
$this->properties = clone $this->properties;
|
101 |
+
}
|
102 |
|
103 |
/**
|
104 |
+
* @since 2.0
|
105 |
+
*
|
106 |
* @param object $storage_model CPAC_Storage_Model
|
107 |
*/
|
108 |
+
public function __construct( CPAC_Storage_Model $storage_model ) {
|
109 |
|
110 |
$this->storage_model = $storage_model;
|
111 |
|
112 |
+
$this->init();
|
113 |
+
$this->after_setup();
|
114 |
+
}
|
115 |
+
|
116 |
+
/**
|
117 |
+
* @since 2.2
|
118 |
+
*/
|
119 |
+
public function init() {
|
120 |
+
|
121 |
+
// Default properties
|
122 |
$default_properties = array(
|
123 |
'clone' => null, // Unique clone ID
|
124 |
'type' => null, // Unique type
|
132 |
'group' => 'custom'
|
133 |
);
|
134 |
|
135 |
+
foreach ( $default_properties as $property => $value ) {
|
136 |
+
$this->properties[ $property ] = $value;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
}
|
138 |
|
139 |
+
// Default options
|
140 |
+
$default_options = array(
|
141 |
+
'width' => null, // Width for this column.
|
142 |
+
'state' => 'off' // Active state for this column.
|
143 |
+
);
|
144 |
+
|
145 |
/**
|
146 |
+
* Filter the default options for a column instance, such as label and width
|
|
|
147 |
*
|
148 |
+
* @since 2.2
|
149 |
+
* @param array $default_options Default column options
|
150 |
* @param CPAC_Column $column_instance Column class instance
|
151 |
*/
|
152 |
+
$default_options = apply_filters( 'cac/column/default_options', $default_options, $this );
|
153 |
|
154 |
+
foreach ( $default_options as $option => $value ) {
|
155 |
+
$this->options[ $option ] = $value;
|
156 |
+
}
|
157 |
+
}
|
|
|
|
|
|
|
|
|
158 |
|
159 |
+
public function after_setup() {
|
|
|
160 |
|
161 |
+
// Column name defaults to column type
|
162 |
+
if ( ! isset( $this->properties['name'] ) ) {
|
163 |
+
$this->properties['name'] = $this->properties['type'];
|
164 |
+
}
|
|
|
|
|
165 |
|
166 |
+
// Check whether the column should be available
|
167 |
+
if ( ! isset( $this->properties['is_registered'] ) ) {
|
168 |
+
$this->properties['is_registered'] = $this->apply_conditional();
|
169 |
+
}
|
170 |
|
171 |
/**
|
172 |
+
* Filter the properties of a column type, such as type and is_cloneable
|
173 |
+
* Property $column_instance added in Admin Columns 2.2
|
174 |
*
|
175 |
+
* @since 2.0
|
176 |
+
* @param array $properties Column properties
|
177 |
* @param CPAC_Column $column_instance Column class instance
|
178 |
*/
|
179 |
+
$this->properties = apply_filters( 'cac/column/properties', $this->properties, $this );
|
180 |
|
181 |
/**
|
182 |
+
* Filter the properties of a column type for a specific storage model
|
183 |
+
* Property $column_instance added in Admin Columns 2.2
|
184 |
*
|
185 |
+
* @since 2.0
|
186 |
+
* @see Filter cac/column/properties
|
187 |
*/
|
188 |
+
$this->properties = apply_filters( "cac/column/properties/storage_key={$this->storage_model->key}", $this->properties, $this );
|
189 |
|
190 |
+
// Column label defaults to column type label
|
191 |
+
if ( ! isset( $this->options['label'] ) ) {
|
192 |
+
$this->options['label'] = $this->properties['label'];
|
193 |
+
}
|
194 |
|
195 |
+
// Convert properties and options arrays to object
|
196 |
+
$this->options = (object) $this->options;
|
197 |
+
$this->properties = (object) $this->properties;
|
198 |
|
199 |
+
// Read options from database
|
200 |
$this->populate_options();
|
201 |
|
202 |
$this->sanitize_label();
|
206 |
* Populate Options
|
207 |
* Added $options parameter in 2.2
|
208 |
*
|
209 |
+
* @since 2.0
|
210 |
* @param array $options Optional. Options to populate the storage model with. Defaults to options from database.
|
211 |
*/
|
212 |
public function populate_options( $options = NULL ) {
|
264 |
}
|
265 |
|
266 |
/**
|
267 |
+
* @since 2.0
|
268 |
* @return array Column options
|
269 |
*/
|
270 |
public function read() {
|
278 |
}
|
279 |
|
280 |
/**
|
281 |
+
* @since 2.0
|
282 |
*/
|
283 |
public function sanitize_label() {
|
|
|
284 |
// check if original label has changed. Example WPML adds a language column, the column heading will have to display the added flag.
|
285 |
if ( $this->properties->hide_label && $this->properties->label !== $this->options->label ) {
|
286 |
$this->options->label = $this->properties->label;
|
291 |
}
|
292 |
|
293 |
/**
|
294 |
+
* @since 2.0
|
295 |
* @param $options array User submitted column options
|
296 |
* @return array Options
|
297 |
*/
|
319 |
}
|
320 |
|
321 |
/**
|
322 |
+
* @since 2.0
|
323 |
*/
|
324 |
function get_label() {
|
325 |
|
326 |
/**
|
327 |
* Filter the column instance label
|
328 |
*
|
329 |
+
* @since 2.0
|
330 |
*
|
331 |
* @param string $label Column instance label
|
332 |
* @param CPAC_Column $column_instance Column class instance
|
337 |
/**
|
338 |
* Sanitizes label using intern wordpress function esc_url so it matches the label sorting url.
|
339 |
*
|
340 |
+
* @since 1.0
|
341 |
* @param string $string
|
342 |
* @return string Sanitized string
|
343 |
*/
|
359 |
}
|
360 |
|
361 |
/**
|
362 |
+
* @since 2.0
|
363 |
* @param $id Cache ID
|
364 |
* @param $cache_object Cache Object
|
365 |
*/
|
373 |
}
|
374 |
|
375 |
/**
|
376 |
+
* @since 2.0
|
377 |
* @param $id Cache ID ( could be a name of an addon for example )
|
378 |
* @return false | mixed Returns either false or the cached objects
|
379 |
*/
|
388 |
}
|
389 |
|
390 |
/**
|
391 |
+
* @since 2.0
|
392 |
* @param $id Cache ID
|
393 |
*/
|
394 |
function delete_cache( $id ) {
|
425 |
}
|
426 |
|
427 |
/**
|
428 |
+
* @since 1.0
|
429 |
* @param int $post_id Post ID
|
430 |
* @return string Post Excerpt.
|
431 |
*/
|
451 |
|
452 |
/**
|
453 |
* @see wp_trim_words();
|
454 |
+
* @since 1.0
|
455 |
* @return string Trimmed text.
|
456 |
*/
|
457 |
protected function get_shortened_string( $text = '', $num_words = 30, $more = null ) {
|
495 |
}
|
496 |
|
497 |
/**
|
498 |
+
* @since 1.0
|
499 |
* @return array Image Sizes.
|
500 |
*/
|
501 |
public function get_all_image_sizes() {
|
516 |
}
|
517 |
|
518 |
/**
|
519 |
+
* @since 2.0
|
520 |
* @param string $name
|
521 |
* @return array Image Sizes
|
522 |
*/
|
537 |
|
538 |
/**
|
539 |
* @see image_resize()
|
540 |
+
* @since 2.0
|
541 |
* @return string Image URL
|
542 |
*/
|
543 |
public function image_resize( $file, $max_w, $max_h, $crop = false, $suffix = null, $dest_path = null, $jpeg_quality = 90 ) {
|
566 |
}
|
567 |
|
568 |
/**
|
569 |
+
* @since 1.0
|
570 |
* @param mixed $meta Image files or Image ID's
|
571 |
* @param array $args
|
572 |
* @return array HTML img elements
|
659 |
/**
|
660 |
* Implode for multi dimensional array
|
661 |
*
|
662 |
+
* @since 1.0
|
663 |
* @param string $glue
|
664 |
* @param array $pieces
|
665 |
* @return string Imploded array
|
683 |
/**
|
684 |
* Get timestamp
|
685 |
*
|
686 |
+
* @since 2.0
|
687 |
* @param string $date
|
688 |
* @return string Formatted date
|
689 |
*/
|
748 |
}
|
749 |
|
750 |
/**
|
751 |
+
* @since 2.0
|
752 |
* @param string $field_key
|
753 |
* @return string Attribute Name
|
754 |
*/
|
765 |
}
|
766 |
|
767 |
/**
|
768 |
+
* @since 2.0
|
769 |
*/
|
770 |
function display_field_date_format() {
|
771 |
|
789 |
}
|
790 |
|
791 |
/**
|
792 |
+
* @since 2.0
|
793 |
*/
|
794 |
function display_field_excerpt_length() {
|
795 |
|
808 |
}
|
809 |
|
810 |
/**
|
811 |
+
* @since 2.0
|
812 |
*/
|
813 |
function display_field_preview_size() {
|
814 |
|
865 |
}
|
866 |
|
867 |
/**
|
868 |
+
* @since 2.0
|
869 |
* @param array Column Objects
|
870 |
* @return string HTML List
|
871 |
*/
|
895 |
}
|
896 |
|
897 |
/**
|
898 |
+
* @since 2.0
|
899 |
*/
|
900 |
public function display() {
|
901 |
|
931 |
/**
|
932 |
* Fires in the meta-element for column options, which is displayed right after the column label
|
933 |
*
|
934 |
+
* @since 2.0
|
935 |
*
|
936 |
* @param CPAC_Column $column_instance Column class instance
|
937 |
*/
|
996 |
/**
|
997 |
* Fires directly before the custom options for a column are displayed in the column form
|
998 |
*
|
999 |
+
* @since 2.0
|
1000 |
* @param CPAC_Column $column_instance Column class instance
|
1001 |
*/
|
1002 |
do_action( 'cac/column/settings_before', $this );
|
1015 |
/**
|
1016 |
* Fires directly after the custom options for a column are displayed in the column form
|
1017 |
*
|
1018 |
+
* @since 2.0
|
1019 |
* @param CPAC_Column $column_instance Column class instance
|
1020 |
*/
|
1021 |
do_action( 'cac/column/settings_after', $this );
|
classes/column/acf-placeholder.php
CHANGED
@@ -1,28 +1,28 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_ACF_Placeholder
|
5 |
*
|
6 |
-
* @since
|
7 |
*/
|
8 |
class CPAC_Column_ACF_Placeholder extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
13 |
|
14 |
-
//
|
15 |
$this->properties['type'] = 'column-acf_placeholder';
|
16 |
$this->properties['label'] = __( 'ACF Field', 'cpac' );
|
17 |
$this->properties['is_pro_only'] = true;
|
18 |
-
|
19 |
-
// call construct
|
20 |
-
parent::__construct( $storage_model );
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* @see CPAC_Column::display_settings()
|
25 |
-
* @since
|
26 |
*/
|
27 |
function display_settings() {
|
28 |
|
@@ -45,4 +45,5 @@ class CPAC_Column_ACF_Placeholder extends CPAC_Column {
|
|
45 |
</div>
|
46 |
<?php
|
47 |
}
|
|
|
48 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_ACF_Placeholder
|
4 |
*
|
5 |
+
* @since 2.2
|
6 |
*/
|
7 |
class CPAC_Column_ACF_Placeholder extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-acf_placeholder';
|
19 |
$this->properties['label'] = __( 'ACF Field', 'cpac' );
|
20 |
$this->properties['is_pro_only'] = true;
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* @see CPAC_Column::display_settings()
|
25 |
+
* @since 2.2
|
26 |
*/
|
27 |
function display_settings() {
|
28 |
|
45 |
</div>
|
46 |
<?php
|
47 |
}
|
48 |
+
|
49 |
}
|
classes/column/comment/ID.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_ID
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_ID extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-comment_id';
|
12 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_ID
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_ID extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-comment_id';
|
19 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/actions.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Actions
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Comment_Actions extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-actions';
|
14 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Actions
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Actions extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-actions';
|
19 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/agent.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Agent
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Agent extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-agent';
|
12 |
$this->properties['label'] = __( 'Agent', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Agent
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Agent extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-agent';
|
19 |
$this->properties['label'] = __( 'Agent', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/approved.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Approved
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Approved extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-approved';
|
12 |
$this->properties['label'] = __( 'Approved', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Approved
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Approved extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-approved';
|
19 |
$this->properties['label'] = __( 'Approved', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/author-avatar.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Avatar
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Avatar extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-author_avatar';
|
12 |
$this->properties['label'] = __( 'Avatar', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Avatar
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Avatar extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-author_avatar';
|
19 |
$this->properties['label'] = __( 'Avatar', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/author-email.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Email
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Email extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-author_email';
|
12 |
$this->properties['label'] = __( 'Author email', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Email
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Email extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-author_email';
|
19 |
$this->properties['label'] = __( 'Author email', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/author-ip.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Ip
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Ip extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-author_ip';
|
12 |
$this->properties['label'] = __( 'Author IP', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Ip
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Ip extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-author_ip';
|
19 |
$this->properties['label'] = __( 'Author IP', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/author-url.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Url
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Url extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-author_url';
|
12 |
$this->properties['label'] = __( 'Author url', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author_Url
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author_Url extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-author_url';
|
19 |
$this->properties['label'] = __( 'Author url', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/author.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-author';
|
12 |
$this->properties['label'] = __( 'Author', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Author
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Author extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-author';
|
19 |
$this->properties['label'] = __( 'Author', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/date-gmt.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Date_Gmt
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Date_Gmt extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-date_gmt';
|
12 |
$this->properties['label'] = __( 'Date GMT', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Date_Gmt
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Date_Gmt extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-date_gmt';
|
19 |
$this->properties['label'] = __( 'Date GMT', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/date.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Date
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Date extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-date';
|
12 |
$this->properties['label'] = __( 'Date', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Date
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Date extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-date';
|
19 |
$this->properties['label'] = __( 'Date', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/excerpt.php
CHANGED
@@ -2,25 +2,29 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Excerpt
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Excerpt extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
|
|
|
|
12 |
$this->properties['type'] = 'column-excerpt';
|
13 |
$this->properties['label'] = __( 'Excerpt', 'cpac' );
|
14 |
|
15 |
-
//
|
16 |
$this->options['excerpt_length'] = 15;
|
17 |
-
|
18 |
-
parent::__construct( $storage_model );
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* @see CPAC_Column::get_value()
|
23 |
-
* @since 2.0
|
24 |
*/
|
25 |
function get_value( $id ) {
|
26 |
|
@@ -31,7 +35,7 @@ class CPAC_Column_Comment_Excerpt extends CPAC_Column {
|
|
31 |
|
32 |
/**
|
33 |
* @see CPAC_Column::display_settings()
|
34 |
-
* @since 2.0
|
35 |
*/
|
36 |
function display_settings() {
|
37 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Excerpt
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Excerpt extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-excerpt';
|
19 |
$this->properties['label'] = __( 'Excerpt', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['excerpt_length'] = 15;
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* @see CPAC_Column::get_value()
|
27 |
+
* @since 2.0
|
28 |
*/
|
29 |
function get_value( $id ) {
|
30 |
|
35 |
|
36 |
/**
|
37 |
* @see CPAC_Column::display_settings()
|
38 |
+
* @since 2.0
|
39 |
*/
|
40 |
function display_settings() {
|
41 |
|
classes/column/comment/reply-to.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Reply_To
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Reply_To extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-reply_to';
|
12 |
$this->properties['label'] = __( 'In Reply To', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Reply_To
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Reply_To extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-reply_to';
|
19 |
$this->properties['label'] = __( 'In Reply To', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/comment/word-count.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Wordcount
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Word_Count extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-word_count';
|
12 |
$this->properties['label'] = __( 'Word count', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Comment_Wordcount
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Comment_Word_Count extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-word_count';
|
19 |
$this->properties['label'] = __( 'Word count', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/custom-field.php
CHANGED
@@ -7,17 +7,21 @@
|
|
7 |
*/
|
8 |
class CPAC_Column_Custom_Field extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
13 |
|
14 |
-
//
|
15 |
$this->properties['type'] = 'column-meta';
|
16 |
$this->properties['label'] = __( 'Custom Field', 'cpac' );
|
17 |
$this->properties['classes'] = 'cpac-box-metafield';
|
18 |
$this->properties['is_cloneable'] = true;
|
19 |
|
20 |
-
//
|
21 |
$this->options['field'] = '';
|
22 |
$this->options['field_type'] = '';
|
23 |
$this->options['before'] = '';
|
@@ -31,12 +35,6 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
|
|
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' );
|
37 |
-
|
38 |
-
// call construct
|
39 |
-
parent::__construct( $storage_model );
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -177,7 +175,7 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
|
|
177 |
/**
|
178 |
* Get meta value
|
179 |
*
|
180 |
-
* @since 2.0
|
181 |
*
|
182 |
* @param string $meta Contains Meta Value
|
183 |
* @param int $id Optional Object ID
|
@@ -288,7 +286,7 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
|
|
288 |
/**
|
289 |
* Get meta by ID
|
290 |
*
|
291 |
-
* @since 1.0
|
292 |
*
|
293 |
* @param int $id ID
|
294 |
* @return string Meta Value
|
@@ -337,7 +335,7 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
|
|
337 |
|
338 |
$field_key = $this->get_field_key();
|
339 |
|
340 |
-
$raw_value = get_metadata( $this->storage_model->
|
341 |
|
342 |
return apply_filters( 'cac/column/meta/raw_value', $raw_value, $id, $field_key, $this );
|
343 |
}
|
@@ -375,9 +373,7 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
|
|
375 |
*/
|
376 |
function display_settings() {
|
377 |
|
378 |
-
//$show_hidden_meta = isset( $this->user_settings['show_hidden'] ) && '1' === $this->user_settings['show_hidden'] ? true : false;
|
379 |
$show_hidden_meta = true;
|
380 |
-
|
381 |
?>
|
382 |
|
383 |
<tr class="column_field">
|
@@ -424,4 +420,5 @@ class CPAC_Column_Custom_Field extends CPAC_Column {
|
|
424 |
|
425 |
$this->display_field_before_after();
|
426 |
}
|
|
|
427 |
}
|
7 |
*/
|
8 |
class CPAC_Column_Custom_Field extends CPAC_Column {
|
9 |
|
10 |
+
/**
|
11 |
+
* @see CPAC_Column::init()
|
12 |
+
* @since 2.3
|
13 |
+
*/
|
14 |
+
function init() {
|
15 |
|
16 |
+
parent::init();
|
17 |
|
18 |
+
// Properties
|
19 |
$this->properties['type'] = 'column-meta';
|
20 |
$this->properties['label'] = __( 'Custom Field', 'cpac' );
|
21 |
$this->properties['classes'] = 'cpac-box-metafield';
|
22 |
$this->properties['is_cloneable'] = true;
|
23 |
|
24 |
+
// Options
|
25 |
$this->options['field'] = '';
|
26 |
$this->options['field_type'] = '';
|
27 |
$this->options['before'] = '';
|
35 |
|
36 |
$this->options['date_format'] = '';
|
37 |
$this->options['date_save_format'] = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
}
|
39 |
|
40 |
/**
|
175 |
/**
|
176 |
* Get meta value
|
177 |
*
|
178 |
+
* @since 2.0
|
179 |
*
|
180 |
* @param string $meta Contains Meta Value
|
181 |
* @param int $id Optional Object ID
|
286 |
/**
|
287 |
* Get meta by ID
|
288 |
*
|
289 |
+
* @since 1.0
|
290 |
*
|
291 |
* @param int $id ID
|
292 |
* @return string Meta Value
|
335 |
|
336 |
$field_key = $this->get_field_key();
|
337 |
|
338 |
+
$raw_value = get_metadata( $this->storage_model->meta_type, $id, $field_key, $single );
|
339 |
|
340 |
return apply_filters( 'cac/column/meta/raw_value', $raw_value, $id, $field_key, $this );
|
341 |
}
|
373 |
*/
|
374 |
function display_settings() {
|
375 |
|
|
|
376 |
$show_hidden_meta = true;
|
|
|
377 |
?>
|
378 |
|
379 |
<tr class="column_field">
|
420 |
|
421 |
$this->display_field_before_after();
|
422 |
}
|
423 |
+
|
424 |
}
|
classes/column/default.php
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @since 2.3
|
4 |
+
*/
|
5 |
+
class CPAC_Column_Default extends CPAC_Column {
|
6 |
+
|
7 |
+
/**
|
8 |
+
* @see CPAC_Column::init()
|
9 |
+
* @since 2.3
|
10 |
+
*/
|
11 |
+
public function init() {
|
12 |
+
|
13 |
+
parent::init();
|
14 |
+
|
15 |
+
// Properties
|
16 |
+
$this->properties['type'] = 'column-default';
|
17 |
+
$this->properties['handle'] = NULL;
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* @since 2.3
|
22 |
+
* @see CPAC_Column::get_value()
|
23 |
+
*/
|
24 |
+
public function get_value( $post_id ) {
|
25 |
+
|
26 |
+
if ( $this->properties->column ) {
|
27 |
+
echo $this->storage_model->get_original_column_value( $this->properties->handle, $post_id );
|
28 |
+
}
|
29 |
+
|
30 |
+
return '';
|
31 |
+
}
|
32 |
+
|
33 |
+
}
|
classes/column/link/ID.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_ID
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_ID extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-link_id';
|
12 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_ID
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_ID extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-link_id';
|
19 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/link/actions.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Link_Actions
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Link_Actions extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-actions';
|
14 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Actions
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Actions extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-actions';
|
19 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/link/description.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Description
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Description extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-description';
|
12 |
$this->properties['label'] = __( 'Description', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Description
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Description extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-description';
|
19 |
$this->properties['label'] = __( 'Description', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/link/image.php
CHANGED
@@ -2,26 +2,31 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Image
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Image extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-image';
|
12 |
$this->properties['label'] = __( 'Image', 'cpac' );
|
13 |
|
14 |
-
//
|
15 |
$this->options['image_size'] = '';
|
16 |
$this->options['image_size_w'] = 80;
|
17 |
$this->options['image_size_h'] = 80;
|
18 |
-
|
19 |
-
parent::__construct( $storage_model );
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
-
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
@@ -32,7 +37,7 @@ class CPAC_Column_Link_Image extends CPAC_Column {
|
|
32 |
|
33 |
/**
|
34 |
* @see CPAC_Column::display_settings()
|
35 |
-
* @since 2.0
|
36 |
*/
|
37 |
function display_settings() {
|
38 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Image
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Image extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-image';
|
19 |
$this->properties['label'] = __( 'Image', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['image_size'] = '';
|
23 |
$this->options['image_size_w'] = 80;
|
24 |
$this->options['image_size_h'] = 80;
|
|
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
* @see CPAC_Column::get_value()
|
29 |
+
* @since 2.0
|
30 |
*/
|
31 |
function get_value( $id ) {
|
32 |
|
37 |
|
38 |
/**
|
39 |
* @see CPAC_Column::display_settings()
|
40 |
+
* @since 2.0
|
41 |
*/
|
42 |
function display_settings() {
|
43 |
|
classes/column/link/length.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Length
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Length extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-length';
|
12 |
$this->properties['label'] = __( 'Length', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Length
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Length extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-length';
|
19 |
$this->properties['label'] = __( 'Length', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/link/notes.php
CHANGED
@@ -2,25 +2,29 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Notes
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Notes extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
|
|
|
|
12 |
$this->properties['type'] = 'column-notes';
|
13 |
$this->properties['label'] = __( 'Notes', 'cpac' );
|
14 |
|
15 |
-
//
|
16 |
$this->options['excerpt_length'] = 30;
|
17 |
-
|
18 |
-
parent::__construct( $storage_model );
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* @see CPAC_Column::get_value()
|
23 |
-
* @since 2.0
|
24 |
*/
|
25 |
function get_value( $id ) {
|
26 |
|
@@ -31,7 +35,7 @@ class CPAC_Column_Link_Notes extends CPAC_Column {
|
|
31 |
|
32 |
/**
|
33 |
* @see CPAC_Column::display_settings()
|
34 |
-
* @since 2.0
|
35 |
*/
|
36 |
function display_settings() {
|
37 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Notes
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Notes extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-notes';
|
19 |
$this->properties['label'] = __( 'Notes', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['excerpt_length'] = 30;
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* @see CPAC_Column::get_value()
|
27 |
+
* @since 2.0
|
28 |
*/
|
29 |
function get_value( $id ) {
|
30 |
|
35 |
|
36 |
/**
|
37 |
* @see CPAC_Column::display_settings()
|
38 |
+
* @since 2.0
|
39 |
*/
|
40 |
function display_settings() {
|
41 |
|
classes/column/link/owner.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Owner
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Owner extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-owner';
|
12 |
$this->properties['label'] = __( 'Owner', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Owner
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Owner extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-owner';
|
19 |
$this->properties['label'] = __( 'Owner', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/link/rss.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Rss
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Rss extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-rss';
|
12 |
$this->properties['label'] = __( 'Rss', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Rss
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Rss extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-rss';
|
19 |
$this->properties['label'] = __( 'Rss', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/link/target.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Link_Target
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Target extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-target';
|
12 |
$this->properties['label'] = __( 'Target', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Link_Target
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Link_Target extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-target';
|
19 |
$this->properties['label'] = __( 'Target', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/ID.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_ID
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_ID extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-mediaid';
|
12 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $media_id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_ID
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_ID extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-mediaid';
|
19 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $media_id ) {
|
27 |
|
classes/column/media/actions.php
CHANGED
@@ -3,22 +3,26 @@
|
|
3 |
/**
|
4 |
* CPAC_Column_Media_Actions
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Media_Actions extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-actions';
|
14 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $id ) {
|
24 |
|
3 |
/**
|
4 |
* CPAC_Column_Media_Actions
|
5 |
*
|
6 |
+
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Media_Actions extends CPAC_Column {
|
9 |
|
10 |
+
/**
|
11 |
+
* @see CPAC_Column::init()
|
12 |
+
* @since 2.3
|
13 |
+
*/
|
14 |
+
public function init() {
|
15 |
|
16 |
+
parent::init();
|
17 |
+
|
18 |
+
// Properties
|
19 |
$this->properties['type'] = 'column-actions';
|
20 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* @see CPAC_Column::get_value()
|
25 |
+
* @since 2.0
|
26 |
*/
|
27 |
function get_value( $id ) {
|
28 |
|
classes/column/media/alternate-text.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Alternate_Text
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Alternate_Text extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-alternate_text';
|
12 |
$this->properties['label'] = __( 'Alt', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Alternate_Text
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Alternate_Text extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-alternate_text';
|
19 |
$this->properties['label'] = __( 'Alt', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/available-sizes.php
CHANGED
@@ -3,23 +3,26 @@
|
|
3 |
/**
|
4 |
* CPAC_Column_Media_Available_Sizes
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Media_Available_Sizes extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-available_sizes';
|
14 |
$this->properties['label'] = __( 'Available Sizes', 'cpac' );
|
15 |
-
|
16 |
-
// call contruct
|
17 |
-
parent::__construct( $storage_model );
|
18 |
}
|
19 |
|
20 |
/**
|
21 |
* @see CPAC_Column::get_value()
|
22 |
-
* @since 2.0
|
23 |
*/
|
24 |
function get_value( $id ) {
|
25 |
$paths = array();
|
3 |
/**
|
4 |
* CPAC_Column_Media_Available_Sizes
|
5 |
*
|
6 |
+
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Media_Available_Sizes extends CPAC_Column {
|
9 |
|
10 |
+
/**
|
11 |
+
* @see CPAC_Column::init()
|
12 |
+
* @since 2.3
|
13 |
+
*/
|
14 |
+
public function init() {
|
15 |
|
16 |
+
parent::init();
|
17 |
+
|
18 |
+
// Properties
|
19 |
$this->properties['type'] = 'column-available_sizes';
|
20 |
$this->properties['label'] = __( 'Available Sizes', 'cpac' );
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* @see CPAC_Column::get_value()
|
25 |
+
* @since 2.0
|
26 |
*/
|
27 |
function get_value( $id ) {
|
28 |
$paths = array();
|
classes/column/media/caption.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Caption
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Caption extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-caption';
|
12 |
$this->properties['label'] = __( 'Caption', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Caption
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Caption extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-caption';
|
19 |
$this->properties['label'] = __( 'Caption', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/description.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Description
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Description extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-description';
|
12 |
$this->properties['label'] = __( 'Description', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Description
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Description extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-description';
|
19 |
$this->properties['label'] = __( 'Description', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/dimensions.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Dimensions
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Dimensions extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-dimensions';
|
12 |
$this->properties['label'] = __( 'Dimensions', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Dimensions
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Dimensions extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-dimensions';
|
19 |
$this->properties['label'] = __( 'Dimensions', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/exif-data.php
CHANGED
@@ -2,20 +2,25 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_File_Size
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Exif_Data extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-exif_data';
|
12 |
$this->properties['label'] = __( 'EXIF data', 'cpac' );
|
13 |
$this->properties['is_cloneable'] = true;
|
14 |
|
15 |
-
//
|
16 |
$this->options['exif_datatype'] = '';
|
17 |
-
|
18 |
-
parent::__construct( $storage_model );
|
19 |
}
|
20 |
|
21 |
/**
|
@@ -23,7 +28,7 @@ class CPAC_Column_Media_Exif_Data extends CPAC_Column {
|
|
23 |
*
|
24 |
* Get extended image metadata
|
25 |
*
|
26 |
-
* @since 2.0
|
27 |
*
|
28 |
* @return array EXIF data types
|
29 |
*/
|
@@ -48,7 +53,7 @@ class CPAC_Column_Media_Exif_Data extends CPAC_Column {
|
|
48 |
|
49 |
/**
|
50 |
* @see CPAC_Column::get_value()
|
51 |
-
* @since 2.0
|
52 |
*/
|
53 |
function get_value( $id ) {
|
54 |
|
@@ -70,7 +75,7 @@ class CPAC_Column_Media_Exif_Data extends CPAC_Column {
|
|
70 |
|
71 |
/**
|
72 |
* @see CPAC_Column::apply_conditional()
|
73 |
-
* @since 2.0
|
74 |
*/
|
75 |
function apply_conditional() {
|
76 |
|
@@ -84,7 +89,7 @@ class CPAC_Column_Media_Exif_Data extends CPAC_Column {
|
|
84 |
* Display Settings
|
85 |
*
|
86 |
* @see CPAC_Column::display_settings()
|
87 |
-
* @since 2.0
|
88 |
*/
|
89 |
function display_settings() {
|
90 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_File_Size
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Exif_Data extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-exif_data';
|
19 |
$this->properties['label'] = __( 'EXIF data', 'cpac' );
|
20 |
$this->properties['is_cloneable'] = true;
|
21 |
|
22 |
+
// Options
|
23 |
$this->options['exif_datatype'] = '';
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
28 |
*
|
29 |
* Get extended image metadata
|
30 |
*
|
31 |
+
* @since 2.0
|
32 |
*
|
33 |
* @return array EXIF data types
|
34 |
*/
|
53 |
|
54 |
/**
|
55 |
* @see CPAC_Column::get_value()
|
56 |
+
* @since 2.0
|
57 |
*/
|
58 |
function get_value( $id ) {
|
59 |
|
75 |
|
76 |
/**
|
77 |
* @see CPAC_Column::apply_conditional()
|
78 |
+
* @since 2.0
|
79 |
*/
|
80 |
function apply_conditional() {
|
81 |
|
89 |
* Display Settings
|
90 |
*
|
91 |
* @see CPAC_Column::display_settings()
|
92 |
+
* @since 2.0
|
93 |
*/
|
94 |
function display_settings() {
|
95 |
|
classes/column/media/file-name.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_File_Name
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_File_Name extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-file_name';
|
12 |
$this->properties['label'] = __( 'File name', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_File_Name
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_File_Name extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-file_name';
|
19 |
$this->properties['label'] = __( 'File name', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/file-size.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_File_Size
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_File_Size extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-file_size';
|
12 |
$this->properties['label'] = __( 'File size', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_File_Size
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_File_Size extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-file_size';
|
19 |
$this->properties['label'] = __( 'File size', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/full-path.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Full_Path
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Full_Path extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-full_path';
|
12 |
$this->properties['label'] = __( 'Full path', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Full_Path
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Full_Path extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-full_path';
|
19 |
$this->properties['label'] = __( 'Full path', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/height.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Height
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Height extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-height';
|
12 |
$this->properties['label'] = __( 'Height', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Height
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Height extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-height';
|
19 |
$this->properties['label'] = __( 'Height', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/mime-type.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Mime_Type
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Mime_Type extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-mime_type';
|
12 |
$this->properties['label'] = __( 'Mime type', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Mime_Type
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Mime_Type extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-mime_type';
|
19 |
$this->properties['label'] = __( 'Mime type', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/media/width.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Media_Width
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Width extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-width';
|
12 |
$this->properties['label'] = __( 'Width', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Media_Width
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Media_Width extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-width';
|
19 |
$this->properties['label'] = __( 'Width', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $id ) {
|
27 |
|
classes/column/post/ID.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_ID
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_ID extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-postid';
|
12 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $post_id ) {
|
22 |
return $this->get_raw_value( $post_id );
|
2 |
/**
|
3 |
* CPAC_Column_Post_ID
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_ID extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-postid';
|
19 |
$this->properties['label'] = __( 'ID', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
return $this->get_raw_value( $post_id );
|
classes/column/post/actions.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Actions
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Actions extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-actions';
|
14 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $post_id ) {
|
24 |
|
@@ -27,7 +30,7 @@ class CPAC_Column_Post_Actions extends CPAC_Column {
|
|
27 |
|
28 |
/**
|
29 |
* @see CPAC_Column::get_value()
|
30 |
-
* @since 2.0
|
31 |
*/
|
32 |
function get_raw_value( $post_id ) {
|
33 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Actions
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Actions extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-actions';
|
19 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
30 |
|
31 |
/**
|
32 |
* @see CPAC_Column::get_value()
|
33 |
+
* @since 2.0
|
34 |
*/
|
35 |
function get_raw_value( $post_id ) {
|
36 |
|
classes/column/post/attachment-count.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Attachment_Count
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Attachment_Count extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-attachment_count';
|
12 |
$this->properties['label'] = __( 'No. of Attachments', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $post_id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Attachment_Count
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Attachment_Count extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-attachment_count';
|
19 |
$this->properties['label'] = __( 'No. of Attachments', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
classes/column/post/attachment.php
CHANGED
@@ -2,26 +2,31 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Attachment
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Attachment extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-attachment';
|
12 |
$this->properties['label'] = __( 'Attachment', 'cpac' );
|
13 |
|
14 |
-
//
|
15 |
$this->options['image_size'] = '';
|
16 |
$this->options['image_size_w'] = 80;
|
17 |
$this->options['image_size_h'] = 80;
|
18 |
-
|
19 |
-
parent::__construct( $storage_model );
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
-
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
@@ -47,7 +52,7 @@ class CPAC_Column_Post_Attachment extends CPAC_Column {
|
|
47 |
|
48 |
/**
|
49 |
* @see CPAC_Column::display_settings()
|
50 |
-
* @since 2.0
|
51 |
*/
|
52 |
function display_settings() {
|
53 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Attachment
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Attachment extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-attachment';
|
19 |
$this->properties['label'] = __( 'Attachment', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['image_size'] = '';
|
23 |
$this->options['image_size_w'] = 80;
|
24 |
$this->options['image_size_h'] = 80;
|
|
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
28 |
* @see CPAC_Column::get_value()
|
29 |
+
* @since 2.0
|
30 |
*/
|
31 |
function get_value( $post_id ) {
|
32 |
|
52 |
|
53 |
/**
|
54 |
* @see CPAC_Column::display_settings()
|
55 |
+
* @since 2.0
|
56 |
*/
|
57 |
function display_settings() {
|
58 |
|
classes/column/post/author-name.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Author_Name
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Author_Name extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-author_name';
|
12 |
$this->properties['label'] = __( 'Display Author As', 'cpac' );
|
13 |
$this->properties['is_cloneable'] = true;
|
14 |
$this->properties['object_property'] = 'post_author';
|
15 |
|
16 |
-
//
|
17 |
$this->options['display_author_as'] = '';
|
18 |
-
|
19 |
-
parent::__construct( $storage_model );
|
20 |
}
|
21 |
|
22 |
/**
|
@@ -24,7 +29,7 @@ class CPAC_Column_Post_Author_Name extends CPAC_Column {
|
|
24 |
*
|
25 |
* Used by posts and sortable
|
26 |
*
|
27 |
-
* @since 2.0
|
28 |
*
|
29 |
* @return array Authortypes
|
30 |
*/
|
@@ -49,7 +54,7 @@ class CPAC_Column_Post_Author_Name extends CPAC_Column {
|
|
49 |
*
|
50 |
* Can also be used by addons.
|
51 |
*
|
52 |
-
* @since 2.0
|
53 |
*/
|
54 |
public function get_display_name( $user_id ) {
|
55 |
|
@@ -80,7 +85,7 @@ class CPAC_Column_Post_Author_Name extends CPAC_Column {
|
|
80 |
|
81 |
/**
|
82 |
* @see CPAC_Column::get_value()
|
83 |
-
* @since 2.0
|
84 |
*/
|
85 |
function get_value( $post_id ) {
|
86 |
|
@@ -109,7 +114,7 @@ class CPAC_Column_Post_Author_Name extends CPAC_Column {
|
|
109 |
* Display Settings
|
110 |
*
|
111 |
* @see CPAC_Column::display_settings()
|
112 |
-
* @since 2.0
|
113 |
*/
|
114 |
function display_settings() {
|
115 |
?>
|
2 |
/**
|
3 |
* CPAC_Column_Post_Author_Name
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Author_Name extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-author_name';
|
19 |
$this->properties['label'] = __( 'Display Author As', 'cpac' );
|
20 |
$this->properties['is_cloneable'] = true;
|
21 |
$this->properties['object_property'] = 'post_author';
|
22 |
|
23 |
+
// Options
|
24 |
$this->options['display_author_as'] = '';
|
|
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
29 |
*
|
30 |
* Used by posts and sortable
|
31 |
*
|
32 |
+
* @since 2.0
|
33 |
*
|
34 |
* @return array Authortypes
|
35 |
*/
|
54 |
*
|
55 |
* Can also be used by addons.
|
56 |
*
|
57 |
+
* @since 2.0
|
58 |
*/
|
59 |
public function get_display_name( $user_id ) {
|
60 |
|
85 |
|
86 |
/**
|
87 |
* @see CPAC_Column::get_value()
|
88 |
+
* @since 2.0
|
89 |
*/
|
90 |
function get_value( $post_id ) {
|
91 |
|
114 |
* Display Settings
|
115 |
*
|
116 |
* @see CPAC_Column::display_settings()
|
117 |
+
* @since 2.0
|
118 |
*/
|
119 |
function display_settings() {
|
120 |
?>
|
classes/column/post/before-moretag.php
CHANGED
@@ -1,27 +1,30 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Before_Moretag
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Before_Moretag extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-before_moretag';
|
14 |
$this->properties['label'] = __( 'Before More Tag', 'cpac' );
|
15 |
|
16 |
-
//
|
17 |
$this->options['excerpt_length'] = 15;
|
18 |
-
|
19 |
-
parent::__construct( $storage_model );
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
-
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
@@ -48,7 +51,7 @@ class CPAC_Column_Post_Before_Moretag extends CPAC_Column {
|
|
48 |
|
49 |
/**
|
50 |
* @see CPAC_Column::display_settings()
|
51 |
-
* @since 2.0
|
52 |
*/
|
53 |
function display_settings() {
|
54 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Before_Moretag
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Before_Moretag extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-before_moretag';
|
19 |
$this->properties['label'] = __( 'Before More Tag', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['excerpt_length'] = 15;
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* @see CPAC_Column::get_value()
|
27 |
+
* @since 2.0
|
28 |
*/
|
29 |
function get_value( $post_id ) {
|
30 |
|
51 |
|
52 |
/**
|
53 |
* @see CPAC_Column::display_settings()
|
54 |
+
* @since 2.0
|
55 |
*/
|
56 |
function display_settings() {
|
57 |
|
classes/column/post/comment-count.php
CHANGED
@@ -1,28 +1,31 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Modified
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Comment_Count extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-comment_count';
|
14 |
$this->properties['label'] = __( 'Comment count', 'cpac' );
|
15 |
$this->properties['is_cloneable'] = true;
|
16 |
|
17 |
-
//
|
18 |
$this->options['comment_status'] = '';
|
19 |
-
|
20 |
-
parent::__construct( $storage_model );
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* get_comment_stati
|
25 |
-
* @since 2.0
|
26 |
*/
|
27 |
function get_comment_stati() {
|
28 |
|
@@ -37,7 +40,7 @@ class CPAC_Column_Post_Comment_Count extends CPAC_Column {
|
|
37 |
|
38 |
/**
|
39 |
* @see CPAC_Column::get_value()
|
40 |
-
* @since 2.0
|
41 |
*/
|
42 |
function get_value( $post_id ) {
|
43 |
|
@@ -76,7 +79,7 @@ class CPAC_Column_Post_Comment_Count extends CPAC_Column {
|
|
76 |
|
77 |
/**
|
78 |
* @see CPAC_Column::apply_conditional()
|
79 |
-
* @since 2.0
|
80 |
*/
|
81 |
function apply_conditional() {
|
82 |
|
@@ -87,7 +90,7 @@ class CPAC_Column_Post_Comment_Count extends CPAC_Column {
|
|
87 |
* Display Settings
|
88 |
*
|
89 |
* @see CPAC_Column::display_settings()
|
90 |
-
* @since 2.0
|
91 |
*/
|
92 |
function display_settings() {
|
93 |
?>
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Modified
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Comment_Count extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-comment_count';
|
19 |
$this->properties['label'] = __( 'Comment count', 'cpac' );
|
20 |
$this->properties['is_cloneable'] = true;
|
21 |
|
22 |
+
// Options
|
23 |
$this->options['comment_status'] = '';
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
27 |
* get_comment_stati
|
28 |
+
* @since 2.0
|
29 |
*/
|
30 |
function get_comment_stati() {
|
31 |
|
40 |
|
41 |
/**
|
42 |
* @see CPAC_Column::get_value()
|
43 |
+
* @since 2.0
|
44 |
*/
|
45 |
function get_value( $post_id ) {
|
46 |
|
79 |
|
80 |
/**
|
81 |
* @see CPAC_Column::apply_conditional()
|
82 |
+
* @since 2.0
|
83 |
*/
|
84 |
function apply_conditional() {
|
85 |
|
90 |
* Display Settings
|
91 |
*
|
92 |
* @see CPAC_Column::display_settings()
|
93 |
+
* @since 2.0
|
94 |
*/
|
95 |
function display_settings() {
|
96 |
?>
|
classes/column/post/comment-status.php
CHANGED
@@ -1,20 +1,23 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Comment_Status
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Comment_Status extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
//
|
13 |
$this->properties['type'] = 'column-comment_status';
|
14 |
$this->properties['label'] = __( 'Comment status', 'cpac' );
|
15 |
$this->properties['object_property'] = 'comment_status';
|
16 |
-
|
17 |
-
parent::__construct( $storage_model );
|
18 |
}
|
19 |
|
20 |
/**
|
@@ -28,15 +31,17 @@ class CPAC_Column_Post_Comment_Status extends CPAC_Column {
|
|
28 |
|
29 |
/**
|
30 |
* @see CPAC_Column::get_value()
|
31 |
-
* @since 2.0
|
32 |
*/
|
33 |
function get_value( $post_id ) {
|
34 |
|
35 |
$comment_status = $this->get_raw_value( $post_id );
|
36 |
|
37 |
$value = $this->get_asset_image( 'no.png', $comment_status );
|
38 |
-
|
|
|
39 |
$value = $this->get_asset_image( 'checkmark.png', $comment_status );
|
|
|
40 |
|
41 |
return $value;
|
42 |
}
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Comment_Status
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Comment_Status extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
+
|
15 |
+
parent::init();
|
16 |
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-comment_status';
|
19 |
$this->properties['label'] = __( 'Comment status', 'cpac' );
|
20 |
$this->properties['object_property'] = 'comment_status';
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
31 |
|
32 |
/**
|
33 |
* @see CPAC_Column::get_value()
|
34 |
+
* @since 2.0
|
35 |
*/
|
36 |
function get_value( $post_id ) {
|
37 |
|
38 |
$comment_status = $this->get_raw_value( $post_id );
|
39 |
|
40 |
$value = $this->get_asset_image( 'no.png', $comment_status );
|
41 |
+
|
42 |
+
if ( 'open' == $comment_status ) {
|
43 |
$value = $this->get_asset_image( 'checkmark.png', $comment_status );
|
44 |
+
}
|
45 |
|
46 |
return $value;
|
47 |
}
|
classes/column/post/excerpt.php
CHANGED
@@ -2,26 +2,30 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Excerpt
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Excerpt extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
|
|
|
|
12 |
$this->properties['type'] = 'column-excerpt';
|
13 |
$this->properties['label'] = __( 'Excerpt', 'cpac' );
|
14 |
$this->properties['object_property'] = 'post_excerpt';
|
15 |
|
16 |
-
//
|
17 |
$this->options['excerpt_length'] = 30;
|
18 |
-
|
19 |
-
parent::__construct( $storage_model );
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
-
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
@@ -39,7 +43,7 @@ class CPAC_Column_Post_Excerpt extends CPAC_Column {
|
|
39 |
|
40 |
/**
|
41 |
* @see CPAC_Column::display_settings()
|
42 |
-
* @since 2.0
|
43 |
*/
|
44 |
function display_settings() {
|
45 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Excerpt
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Excerpt extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-excerpt';
|
19 |
$this->properties['label'] = __( 'Excerpt', 'cpac' );
|
20 |
$this->properties['object_property'] = 'post_excerpt';
|
21 |
|
22 |
+
// Options
|
23 |
$this->options['excerpt_length'] = 30;
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
27 |
* @see CPAC_Column::get_value()
|
28 |
+
* @since 2.0
|
29 |
*/
|
30 |
function get_value( $post_id ) {
|
31 |
|
43 |
|
44 |
/**
|
45 |
* @see CPAC_Column::display_settings()
|
46 |
+
* @since 2.0
|
47 |
*/
|
48 |
function display_settings() {
|
49 |
|
classes/column/post/featured-image.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Featured_Image
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Featured_Image extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-featured_image';
|
14 |
$this->properties['label'] = __( 'Featured Image', 'cpac' );
|
15 |
|
16 |
-
//
|
17 |
$this->options['image_size'] = '';
|
18 |
$this->options['image_size_w'] = 80;
|
19 |
$this->options['image_size_h'] = 80;
|
20 |
-
|
21 |
-
parent::__construct( $storage_model );
|
22 |
}
|
23 |
|
24 |
/**
|
@@ -32,7 +35,7 @@ class CPAC_Column_Post_Featured_Image extends CPAC_Column {
|
|
32 |
|
33 |
/**
|
34 |
* @see CPAC_Column::get_value()
|
35 |
-
* @since 2.0
|
36 |
*/
|
37 |
function get_value( $post_id ) {
|
38 |
|
@@ -62,7 +65,7 @@ class CPAC_Column_Post_Featured_Image extends CPAC_Column {
|
|
62 |
|
63 |
/**
|
64 |
* @see CPAC_Column::display_settings()
|
65 |
-
* @since 2.0
|
66 |
*/
|
67 |
function display_settings() {
|
68 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Featured_Image
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Featured_Image extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-featured_image';
|
19 |
$this->properties['label'] = __( 'Featured Image', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['image_size'] = '';
|
23 |
$this->options['image_size_w'] = 80;
|
24 |
$this->options['image_size_h'] = 80;
|
|
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
35 |
|
36 |
/**
|
37 |
* @see CPAC_Column::get_value()
|
38 |
+
* @since 2.0
|
39 |
*/
|
40 |
function get_value( $post_id ) {
|
41 |
|
65 |
|
66 |
/**
|
67 |
* @see CPAC_Column::display_settings()
|
68 |
+
* @since 2.0
|
69 |
*/
|
70 |
function display_settings() {
|
71 |
|
classes/column/post/formats.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Page_Template
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Formats extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-post_formats';
|
14 |
$this->properties['label'] = __( 'Post Format', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::apply_conditional()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function apply_conditional() {
|
24 |
|
@@ -30,7 +33,7 @@ class CPAC_Column_Post_Formats extends CPAC_Column {
|
|
30 |
|
31 |
/**
|
32 |
* @see CPAC_Column::get_value()
|
33 |
-
* @since 2.0
|
34 |
*/
|
35 |
function get_value( $post_id ) {
|
36 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Page_Template
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Formats extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-post_formats';
|
19 |
$this->properties['label'] = __( 'Post Format', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::apply_conditional()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function apply_conditional() {
|
27 |
|
33 |
|
34 |
/**
|
35 |
* @see CPAC_Column::get_value()
|
36 |
+
* @since 2.0
|
37 |
*/
|
38 |
function get_value( $post_id ) {
|
39 |
|
classes/column/post/modified.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Modified
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Modified extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-modified';
|
14 |
$this->properties['label'] = __( 'Last modified', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $post_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Modified
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Modified extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-modified';
|
19 |
$this->properties['label'] = __( 'Last modified', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
classes/column/post/order.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Order
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Order extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-order';
|
14 |
$this->properties['label'] = __( 'Page Order', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::apply_conditional()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function apply_conditional() {
|
24 |
|
@@ -30,7 +33,7 @@ class CPAC_Column_Post_Order extends CPAC_Column {
|
|
30 |
|
31 |
/**
|
32 |
* @see CPAC_Column::get_value()
|
33 |
-
* @since 2.0
|
34 |
*/
|
35 |
function get_value( $post_id ) {
|
36 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Order
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Order extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-order';
|
19 |
$this->properties['label'] = __( 'Page Order', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::apply_conditional()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function apply_conditional() {
|
27 |
|
33 |
|
34 |
/**
|
35 |
* @see CPAC_Column::get_value()
|
36 |
+
* @since 2.0
|
37 |
*/
|
38 |
function get_value( $post_id ) {
|
39 |
|
classes/column/post/page-template.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Page_Template
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Page_Template extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-page_template';
|
12 |
$this->properties['label'] = __( 'Page Template', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $post_id ) {
|
22 |
|
@@ -34,7 +39,7 @@ class CPAC_Column_Post_Page_Template extends CPAC_Column {
|
|
34 |
|
35 |
/**
|
36 |
* @see CPAC_Column::apply_conditional()
|
37 |
-
* @since 2.0
|
38 |
*/
|
39 |
function apply_conditional() {
|
40 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Page_Template
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Page_Template extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-page_template';
|
19 |
$this->properties['label'] = __( 'Page Template', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
39 |
|
40 |
/**
|
41 |
* @see CPAC_Column::apply_conditional()
|
42 |
+
* @since 2.0
|
43 |
*/
|
44 |
function apply_conditional() {
|
45 |
|
classes/column/post/parent.php
CHANGED
@@ -2,22 +2,27 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Parent
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Parent extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-parent';
|
12 |
$this->properties['label'] = __( 'Parent', 'cpac' );
|
13 |
$this->properties['object_property'] = 'post_parent';
|
14 |
-
|
15 |
-
parent::__construct( $storage_model );
|
16 |
}
|
17 |
|
18 |
/**
|
19 |
* @see CPAC_Column::get_value()
|
20 |
-
* @since 2.0
|
21 |
*/
|
22 |
function get_value( $post_id ) {
|
23 |
|
@@ -47,7 +52,7 @@ class CPAC_Column_Post_Parent extends CPAC_Column {
|
|
47 |
|
48 |
/**
|
49 |
* @see CPAC_Column::apply_conditional()
|
50 |
-
* @since 2.0
|
51 |
*/
|
52 |
function apply_conditional() {
|
53 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Parent
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Parent extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-parent';
|
19 |
$this->properties['label'] = __( 'Parent', 'cpac' );
|
20 |
$this->properties['object_property'] = 'post_parent';
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* @see CPAC_Column::get_value()
|
25 |
+
* @since 2.0
|
26 |
*/
|
27 |
function get_value( $post_id ) {
|
28 |
|
52 |
|
53 |
/**
|
54 |
* @see CPAC_Column::apply_conditional()
|
55 |
+
* @since 2.0
|
56 |
*/
|
57 |
function apply_conditional() {
|
58 |
|
classes/column/post/permalink.php
CHANGED
@@ -2,24 +2,29 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_ID
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Permalink extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-permalink';
|
12 |
$this->properties['label'] = __( 'Permalink', 'cpac' );
|
13 |
|
14 |
-
//
|
15 |
$this->options['link_to_post'] = false;
|
16 |
-
|
17 |
-
parent::__construct( $storage_model );
|
18 |
}
|
19 |
|
20 |
/**
|
21 |
* @see CPAC_Column::get_value()
|
22 |
-
* @since 2.0
|
23 |
*/
|
24 |
public function get_value( $post_id ) {
|
25 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_ID
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Permalink extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-permalink';
|
19 |
$this->properties['label'] = __( 'Permalink', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['link_to_post'] = false;
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* @see CPAC_Column::get_value()
|
27 |
+
* @since 2.0
|
28 |
*/
|
29 |
public function get_value( $post_id ) {
|
30 |
|
classes/column/post/ping-status.php
CHANGED
@@ -1,20 +1,23 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Ping_Status
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Ping_Status extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-ping_status';
|
14 |
$this->properties['label'] = __( 'Ping status', 'cpac' );
|
15 |
$this->properties['object_property'] = 'ping_status';
|
16 |
-
|
17 |
-
parent::__construct( $storage_model );
|
18 |
}
|
19 |
|
20 |
/**
|
@@ -28,7 +31,7 @@ class CPAC_Column_Post_Ping_Status extends CPAC_Column {
|
|
28 |
|
29 |
/**
|
30 |
* @see CPAC_Column::get_value()
|
31 |
-
* @since 2.0
|
32 |
*/
|
33 |
function get_value( $post_id ) {
|
34 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Ping_Status
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Ping_Status extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-ping_status';
|
19 |
$this->properties['label'] = __( 'Ping status', 'cpac' );
|
20 |
$this->properties['object_property'] = 'ping_status';
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
31 |
|
32 |
/**
|
33 |
* @see CPAC_Column::get_value()
|
34 |
+
* @since 2.0
|
35 |
*/
|
36 |
function get_value( $post_id ) {
|
37 |
|
classes/column/post/roles.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Roles
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Roles extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-roles';
|
14 |
$this->properties['label'] = __( 'Roles', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $post_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Roles
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Roles extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-roles';
|
19 |
$this->properties['label'] = __( 'Roles', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
classes/column/post/slug.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Slug
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Slug extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-slug';
|
12 |
$this->properties['label'] = __( 'Slug', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $post_id ) {
|
22 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Slug
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Slug extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-slug';
|
19 |
$this->properties['label'] = __( 'Slug', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
classes/column/post/status.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Status
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Status extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-status';
|
14 |
$this->properties['label'] = __( 'Status', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $post_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Status
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Status extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-status';
|
19 |
$this->properties['label'] = __( 'Status', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
classes/column/post/sticky.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_Post_Sticky
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_Post_Sticky extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-sticky';
|
14 |
$this->properties['label'] = __( 'Sticky', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::apply_conditional()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function apply_conditional() {
|
24 |
|
@@ -30,7 +33,7 @@ class CPAC_Column_Post_Sticky extends CPAC_Column {
|
|
30 |
|
31 |
/**
|
32 |
* @see CPAC_Column::get_value()
|
33 |
-
* @since 2.0
|
34 |
*/
|
35 |
function get_value( $post_id ) {
|
36 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Sticky
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Sticky extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-sticky';
|
19 |
$this->properties['label'] = __( 'Sticky', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::apply_conditional()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function apply_conditional() {
|
27 |
|
33 |
|
34 |
/**
|
35 |
* @see CPAC_Column::get_value()
|
36 |
+
* @since 2.0
|
37 |
*/
|
38 |
function get_value( $post_id ) {
|
39 |
|
classes/column/post/word-count.php
CHANGED
@@ -2,21 +2,26 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Word_Count
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Word_Count extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-word_count';
|
12 |
$this->properties['label'] = __( 'Word count', 'cpac' );
|
13 |
-
|
14 |
-
parent::__construct( $storage_model );
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* @see CPAC_Column::get_value()
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function get_value( $post_id ) {
|
22 |
|
@@ -34,7 +39,7 @@ class CPAC_Column_Post_Word_Count extends CPAC_Column {
|
|
34 |
|
35 |
/**
|
36 |
* @see CPAC_Column::apply_conditional()
|
37 |
-
* @since 2.0
|
38 |
*/
|
39 |
function apply_conditional() {
|
40 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Word_Count
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Post_Word_Count extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-word_count';
|
19 |
$this->properties['label'] = __( 'Word count', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $post_id ) {
|
27 |
|
39 |
|
40 |
/**
|
41 |
* @see CPAC_Column::apply_conditional()
|
42 |
+
* @since 2.0
|
43 |
*/
|
44 |
function apply_conditional() {
|
45 |
|
classes/column/taxonomy.php
CHANGED
@@ -2,25 +2,30 @@
|
|
2 |
/**
|
3 |
* CPAC_Column_Post_Taxonomy
|
4 |
*
|
5 |
-
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Taxonomy extends CPAC_Column {
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
11 |
$this->properties['type'] = 'column-taxonomy';
|
12 |
$this->properties['label'] = __( 'Taxonomy', 'cpac' );
|
13 |
$this->properties['is_cloneable'] = true;
|
14 |
|
15 |
-
//
|
16 |
-
$this->options['taxonomy'] = ''; //
|
17 |
-
|
18 |
-
parent::__construct( $storage_model );
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* @see CPAC_Column::get_value()
|
23 |
-
* @since 2.0
|
24 |
*/
|
25 |
function get_value( $post_id ) {
|
26 |
|
@@ -67,7 +72,7 @@ class CPAC_Column_Taxonomy extends CPAC_Column {
|
|
67 |
|
68 |
/**
|
69 |
* @see CPAC_Column::apply_conditional()
|
70 |
-
* @since 2.0
|
71 |
*/
|
72 |
function apply_conditional() {
|
73 |
|
@@ -84,7 +89,7 @@ class CPAC_Column_Taxonomy extends CPAC_Column {
|
|
84 |
* Display Settings
|
85 |
*
|
86 |
* @see CPAC_Column::display_settings()
|
87 |
-
* @since 2.0
|
88 |
*/
|
89 |
function display_settings() {
|
90 |
|
2 |
/**
|
3 |
* CPAC_Column_Post_Taxonomy
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_Taxonomy extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-taxonomy';
|
19 |
$this->properties['label'] = __( 'Taxonomy', 'cpac' );
|
20 |
$this->properties['is_cloneable'] = true;
|
21 |
|
22 |
+
// Options
|
23 |
+
$this->options['taxonomy'] = ''; // Taxonomy slug
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
27 |
* @see CPAC_Column::get_value()
|
28 |
+
* @since 2.0
|
29 |
*/
|
30 |
function get_value( $post_id ) {
|
31 |
|
72 |
|
73 |
/**
|
74 |
* @see CPAC_Column::apply_conditional()
|
75 |
+
* @since 2.0
|
76 |
*/
|
77 |
function apply_conditional() {
|
78 |
|
89 |
* Display Settings
|
90 |
*
|
91 |
* @see CPAC_Column::display_settings()
|
92 |
+
* @since 2.0
|
93 |
*/
|
94 |
function display_settings() {
|
95 |
|
classes/column/user/ID.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_ID
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_ID extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-user_id';
|
14 |
$this->properties['label'] = __( 'User ID', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_ID
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_ID extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-user_id';
|
19 |
$this->properties['label'] = __( 'User ID', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/column/user/actions.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Actions
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Actions extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-actions';
|
14 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Actions
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Actions extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-actions';
|
19 |
$this->properties['label'] = __( 'Actions', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/column/user/comment-count.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Comment_Count
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Comment_Count extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-user_commentcount';
|
14 |
$this->properties['label'] = __( 'Comment Count' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Comment_Count
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Comment_Count extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-user_commentcount';
|
19 |
$this->properties['label'] = __( 'Comment Count' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/column/user/description.php
CHANGED
@@ -1,27 +1,30 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Description
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Description extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-user_description';
|
14 |
$this->properties['label'] = __( 'Description', 'cpac' );
|
15 |
|
16 |
-
//
|
17 |
$this->options['excerpt_length'] = 30;
|
18 |
-
|
19 |
-
parent::__construct( $storage_model );
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
-
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
@@ -39,7 +42,7 @@ class CPAC_Column_User_Description extends CPAC_Column {
|
|
39 |
|
40 |
/**
|
41 |
* @see CPAC_Column::display_settings()
|
42 |
-
* @since 2.0
|
43 |
*/
|
44 |
function display_settings() {
|
45 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Description
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Description extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-user_description';
|
19 |
$this->properties['label'] = __( 'Description', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['excerpt_length'] = 30;
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* @see CPAC_Column::get_value()
|
27 |
+
* @since 2.0
|
28 |
*/
|
29 |
function get_value( $user_id ) {
|
30 |
|
42 |
|
43 |
/**
|
44 |
* @see CPAC_Column::display_settings()
|
45 |
+
* @since 2.0
|
46 |
*/
|
47 |
function display_settings() {
|
48 |
|
classes/column/user/first-name.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_First_Name
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_First_Name extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-first_name';
|
14 |
$this->properties['label'] = __( 'First name', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_First_Name
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_First_Name extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-first_name';
|
19 |
$this->properties['label'] = __( 'First name', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/column/user/last-name.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Last_Name
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Last_Name extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-last_name';
|
14 |
$this->properties['label'] = __( 'Last name', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Last_Name
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Last_Name extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-last_name';
|
19 |
$this->properties['label'] = __( 'Last name', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/column/user/nickname.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Nickname
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Nickname extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-nickname';
|
14 |
$this->properties['label'] = __( 'Nickname', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Nickname
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Nickname extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-nickname';
|
19 |
$this->properties['label'] = __( 'Nickname', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/column/user/post-count.php
CHANGED
@@ -1,29 +1,32 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Post_Count
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Post_Count extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-user_postcount';
|
14 |
$this->properties['label'] = __( 'Post Count', 'cpac' );
|
15 |
$this->properties['is_cloneable'] = true;
|
16 |
|
17 |
-
//
|
18 |
$this->options['post_type'] = '';
|
19 |
-
|
20 |
-
parent::__construct( $storage_model );
|
21 |
}
|
22 |
|
23 |
/**
|
24 |
* Get count
|
25 |
*
|
26 |
-
* @since 2.0
|
27 |
*/
|
28 |
public function get_count( $user_id ) {
|
29 |
|
@@ -45,7 +48,7 @@ class CPAC_Column_User_Post_Count extends CPAC_Column {
|
|
45 |
|
46 |
/**
|
47 |
* @see CPAC_Column::get_value()
|
48 |
-
* @since 2.0
|
49 |
*/
|
50 |
function get_value( $user_id ) {
|
51 |
|
@@ -71,7 +74,7 @@ class CPAC_Column_User_Post_Count extends CPAC_Column {
|
|
71 |
* Display Settings
|
72 |
*
|
73 |
* @see CPAC_Column::display_settings()
|
74 |
-
* @since 2.0
|
75 |
*/
|
76 |
function display_settings() {
|
77 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Post_Count
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Post_Count extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-user_postcount';
|
19 |
$this->properties['label'] = __( 'Post Count', 'cpac' );
|
20 |
$this->properties['is_cloneable'] = true;
|
21 |
|
22 |
+
// Options
|
23 |
$this->options['post_type'] = '';
|
|
|
|
|
24 |
}
|
25 |
|
26 |
/**
|
27 |
* Get count
|
28 |
*
|
29 |
+
* @since 2.0
|
30 |
*/
|
31 |
public function get_count( $user_id ) {
|
32 |
|
48 |
|
49 |
/**
|
50 |
* @see CPAC_Column::get_value()
|
51 |
+
* @since 2.0
|
52 |
*/
|
53 |
function get_value( $user_id ) {
|
54 |
|
74 |
* Display Settings
|
75 |
*
|
76 |
* @see CPAC_Column::display_settings()
|
77 |
+
* @since 2.0
|
78 |
*/
|
79 |
function display_settings() {
|
80 |
|
classes/column/user/registered.php
CHANGED
@@ -1,26 +1,30 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Registered
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Registered extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-user_registered';
|
14 |
$this->properties['label'] = __( 'Registered', 'cpac' );
|
15 |
|
|
|
16 |
$this->options['date_format'] = '';
|
17 |
-
|
18 |
-
parent::__construct( $storage_model );
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* @see CPAC_Column::get_value()
|
23 |
-
* @since 2.0
|
24 |
*/
|
25 |
function get_value( $user_id ) {
|
26 |
|
@@ -43,7 +47,7 @@ class CPAC_Column_User_Registered extends CPAC_Column {
|
|
43 |
|
44 |
/**
|
45 |
* @see CPAC_Column::display_settings()
|
46 |
-
* @since 2.0
|
47 |
*/
|
48 |
function display_settings() {
|
49 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Registered
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Registered extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-user_registered';
|
19 |
$this->properties['label'] = __( 'Registered', 'cpac' );
|
20 |
|
21 |
+
// Options
|
22 |
$this->options['date_format'] = '';
|
|
|
|
|
23 |
}
|
24 |
|
25 |
/**
|
26 |
* @see CPAC_Column::get_value()
|
27 |
+
* @since 2.0
|
28 |
*/
|
29 |
function get_value( $user_id ) {
|
30 |
|
47 |
|
48 |
/**
|
49 |
* @see CPAC_Column::display_settings()
|
50 |
+
* @since 2.0
|
51 |
*/
|
52 |
function display_settings() {
|
53 |
|
classes/column/user/url.php
CHANGED
@@ -1,24 +1,27 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/**
|
4 |
* CPAC_Column_User_Url
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Column_User_Url extends CPAC_Column {
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
|
|
|
|
13 |
$this->properties['type'] = 'column-user_url';
|
14 |
$this->properties['label'] = __( 'Url', 'cpac' );
|
15 |
-
|
16 |
-
parent::__construct( $storage_model );
|
17 |
}
|
18 |
|
19 |
/**
|
20 |
* @see CPAC_Column::get_value()
|
21 |
-
* @since 2.0
|
22 |
*/
|
23 |
function get_value( $user_id ) {
|
24 |
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* CPAC_Column_User_Url
|
4 |
*
|
5 |
+
* @since 2.0
|
6 |
*/
|
7 |
class CPAC_Column_User_Url extends CPAC_Column {
|
8 |
|
9 |
+
/**
|
10 |
+
* @see CPAC_Column::init()
|
11 |
+
* @since 2.3
|
12 |
+
*/
|
13 |
+
public function init() {
|
14 |
|
15 |
+
parent::init();
|
16 |
+
|
17 |
+
// Properties
|
18 |
$this->properties['type'] = 'column-user_url';
|
19 |
$this->properties['label'] = __( 'Url', 'cpac' );
|
|
|
|
|
20 |
}
|
21 |
|
22 |
/**
|
23 |
* @see CPAC_Column::get_value()
|
24 |
+
* @since 2.0
|
25 |
*/
|
26 |
function get_value( $user_id ) {
|
27 |
|
classes/settings.php
CHANGED
@@ -3,19 +3,19 @@
|
|
3 |
/**
|
4 |
* CPAC_Settings Class
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Settings {
|
9 |
|
10 |
/**
|
11 |
* CPAC class
|
12 |
*
|
13 |
-
* @since 2.0
|
14 |
*/
|
15 |
private $cpac;
|
16 |
|
17 |
/**
|
18 |
-
* @since 2.0
|
19 |
* @param object CPAC
|
20 |
*/
|
21 |
function __construct( $cpac ) {
|
@@ -147,7 +147,7 @@ class CPAC_Settings {
|
|
147 |
}
|
148 |
|
149 |
/**
|
150 |
-
* @since 1.0
|
151 |
*/
|
152 |
public function settings_menu() {
|
153 |
|
@@ -171,14 +171,14 @@ class CPAC_Settings {
|
|
171 |
/**
|
172 |
* Allows the capaiblity 'manage_admin_columns' to store data through /wp-admin/options.php
|
173 |
*
|
174 |
-
* @since 2.0
|
175 |
*/
|
176 |
public function add_capability() {
|
177 |
return 'manage_admin_columns';
|
178 |
}
|
179 |
|
180 |
/**
|
181 |
-
* @since 1.0
|
182 |
*/
|
183 |
public function admin_styles() {
|
184 |
wp_enqueue_style( 'wp-pointer' );
|
@@ -187,7 +187,7 @@ class CPAC_Settings {
|
|
187 |
}
|
188 |
|
189 |
/**
|
190 |
-
* @since 1.0
|
191 |
*/
|
192 |
public function admin_scripts() {
|
193 |
|
@@ -205,7 +205,7 @@ class CPAC_Settings {
|
|
205 |
}
|
206 |
|
207 |
/**
|
208 |
-
* @since 1.0
|
209 |
*/
|
210 |
public function handle_column_request() {
|
211 |
|
@@ -246,7 +246,7 @@ class CPAC_Settings {
|
|
246 |
/**
|
247 |
* Restore all column defaults
|
248 |
*
|
249 |
-
* @since 1.0
|
250 |
*/
|
251 |
private function restore_all() {
|
252 |
global $wpdb;
|
@@ -318,7 +318,7 @@ class CPAC_Settings {
|
|
318 |
}
|
319 |
|
320 |
/**
|
321 |
-
* @since 1.0
|
322 |
* @param string $storage_model URL type.
|
323 |
* @return string Url.
|
324 |
*/
|
@@ -345,7 +345,7 @@ class CPAC_Settings {
|
|
345 |
}
|
346 |
|
347 |
/**
|
348 |
-
* @since 2.0
|
349 |
*/
|
350 |
public function uses_custom_fields() {
|
351 |
|
@@ -366,7 +366,7 @@ class CPAC_Settings {
|
|
366 |
/**
|
367 |
* Welcome screen
|
368 |
*
|
369 |
-
* @since 2.0
|
370 |
*/
|
371 |
public function welcome_screen() {
|
372 |
|
@@ -510,7 +510,7 @@ class CPAC_Settings {
|
|
510 |
}
|
511 |
|
512 |
/**
|
513 |
-
* @since 1.0
|
514 |
*/
|
515 |
public function display_settings() {
|
516 |
?>
|
@@ -609,7 +609,7 @@ class CPAC_Settings {
|
|
609 |
}
|
610 |
|
611 |
/**
|
612 |
-
* @since 1.0
|
613 |
*/
|
614 |
public function display() {
|
615 |
|
3 |
/**
|
4 |
* CPAC_Settings Class
|
5 |
*
|
6 |
+
* @since 2.0
|
7 |
*/
|
8 |
class CPAC_Settings {
|
9 |
|
10 |
/**
|
11 |
* CPAC class
|
12 |
*
|
13 |
+
* @since 2.0
|
14 |
*/
|
15 |
private $cpac;
|
16 |
|
17 |
/**
|
18 |
+
* @since 2.0
|
19 |
* @param object CPAC
|
20 |
*/
|
21 |
function __construct( $cpac ) {
|
147 |
}
|
148 |
|
149 |
/**
|
150 |
+
* @since 1.0
|
151 |
*/
|
152 |
public function settings_menu() {
|
153 |
|
171 |
/**
|
172 |
* Allows the capaiblity 'manage_admin_columns' to store data through /wp-admin/options.php
|
173 |
*
|
174 |
+
* @since 2.0
|
175 |
*/
|
176 |
public function add_capability() {
|
177 |
return 'manage_admin_columns';
|
178 |
}
|
179 |
|
180 |
/**
|
181 |
+
* @since 1.0
|
182 |
*/
|
183 |
public function admin_styles() {
|
184 |
wp_enqueue_style( 'wp-pointer' );
|
187 |
}
|
188 |
|
189 |
/**
|
190 |
+
* @since 1.0
|
191 |
*/
|
192 |
public function admin_scripts() {
|
193 |
|
205 |
}
|
206 |
|
207 |
/**
|
208 |
+
* @since 1.0
|
209 |
*/
|
210 |
public function handle_column_request() {
|
211 |
|
246 |
/**
|
247 |
* Restore all column defaults
|
248 |
*
|
249 |
+
* @since 1.0
|
250 |
*/
|
251 |
private function restore_all() {
|
252 |
global $wpdb;
|
318 |
}
|
319 |
|
320 |
/**
|
321 |
+
* @since 1.0
|
322 |
* @param string $storage_model URL type.
|
323 |
* @return string Url.
|
324 |
*/
|
345 |
}
|
346 |
|
347 |
/**
|
348 |
+
* @since 2.0
|
349 |
*/
|
350 |
public function uses_custom_fields() {
|
351 |
|
366 |
/**
|
367 |
* Welcome screen
|
368 |
*
|
369 |
+
* @since 2.0
|
370 |
*/
|
371 |
public function welcome_screen() {
|
372 |
|
510 |
}
|
511 |
|
512 |
/**
|
513 |
+
* @since 1.0
|
514 |
*/
|
515 |
public function display_settings() {
|
516 |
?>
|
609 |
}
|
610 |
|
611 |
/**
|
612 |
+
* @since 1.0
|
613 |
*/
|
614 |
public function display() {
|
615 |
|
classes/storage_model.php
CHANGED
@@ -3,38 +3,45 @@
|
|
3 |
/**
|
4 |
* Storage Model
|
5 |
*
|
6 |
-
* @since 2.0
|
7 |
*/
|
8 |
abstract class CPAC_Storage_Model {
|
9 |
|
10 |
/**
|
11 |
-
* @since 2.0
|
12 |
*/
|
13 |
public $label;
|
14 |
|
15 |
/**
|
16 |
* Identifier for Storage Model; Posttype etc.
|
17 |
*
|
18 |
-
* @since 2.0
|
19 |
*/
|
20 |
public $key;
|
21 |
|
22 |
/**
|
23 |
* Type of storage model; Post, Media, User or Comments
|
24 |
*
|
25 |
-
* @since 2.0
|
26 |
*/
|
27 |
public $type;
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
/**
|
30 |
* Groups the storage model in the menu.
|
31 |
*
|
32 |
-
* @since 2.0
|
33 |
*/
|
34 |
public $menu_type;
|
35 |
|
36 |
/**
|
37 |
-
* @since 2.0
|
38 |
* @var string
|
39 |
*/
|
40 |
public $page;
|
@@ -76,7 +83,7 @@ abstract class CPAC_Storage_Model {
|
|
76 |
public $column_types = array();
|
77 |
|
78 |
/**
|
79 |
-
* @since 2.0
|
80 |
* @return array Column Name | Column Label
|
81 |
*/
|
82 |
abstract function get_default_columns();
|
@@ -97,7 +104,7 @@ abstract class CPAC_Storage_Model {
|
|
97 |
/**
|
98 |
* Checks if menu type is currently viewed
|
99 |
*
|
100 |
-
* @since 1.0
|
101 |
* @param string $key
|
102 |
* @return bool
|
103 |
*/
|
@@ -118,7 +125,7 @@ abstract class CPAC_Storage_Model {
|
|
118 |
}
|
119 |
|
120 |
/**
|
121 |
-
* @since 2.0
|
122 |
* @return array
|
123 |
*/
|
124 |
public function get_meta_keys( $add_hidden_meta = false ) {
|
@@ -150,7 +157,7 @@ abstract class CPAC_Storage_Model {
|
|
150 |
* Filter the available custom field meta keys
|
151 |
* If showing hidden fields is enabled, they are prefixed with "cpachidden" in the list
|
152 |
*
|
153 |
-
* @since 2.0
|
154 |
*
|
155 |
* @param array $keys Available custom field keys
|
156 |
* @param CPAC_Storage_Model $storage_model Storage model class instance
|
@@ -160,14 +167,14 @@ abstract class CPAC_Storage_Model {
|
|
160 |
/**
|
161 |
* Filter the available custom field meta keys for this storage model type
|
162 |
*
|
163 |
-
* @since 2.0
|
164 |
* @see Filter cac/storage_model/meta_keys
|
165 |
*/
|
166 |
return apply_filters( "cac/storage_model/meta_keys/storage_key={$this->key}", $keys, $this );
|
167 |
}
|
168 |
|
169 |
/**
|
170 |
-
* @since 2.0
|
171 |
* @param array $fields Custom fields.
|
172 |
* @return array Custom fields.
|
173 |
*/
|
@@ -198,7 +205,7 @@ abstract class CPAC_Storage_Model {
|
|
198 |
}
|
199 |
|
200 |
/**
|
201 |
-
* @since 2.0
|
202 |
*/
|
203 |
function restore() {
|
204 |
|
@@ -211,7 +218,7 @@ abstract class CPAC_Storage_Model {
|
|
211 |
}
|
212 |
|
213 |
/**
|
214 |
-
* @since 2.0
|
215 |
*/
|
216 |
function store( $columns = '' ) {
|
217 |
|
@@ -292,7 +299,7 @@ abstract class CPAC_Storage_Model {
|
|
292 |
* Filter the available custom column types
|
293 |
* Use this to register a custom column type
|
294 |
*
|
295 |
-
* @since 2.0
|
296 |
* @param array $columns Available custom columns ([class_name] => [class file path])
|
297 |
* @param CPAC_Storage_Model $storage_model Storage model class instance
|
298 |
*/
|
@@ -301,7 +308,7 @@ abstract class CPAC_Storage_Model {
|
|
301 |
/**
|
302 |
* Filter the available custom column types for a specific type
|
303 |
*
|
304 |
-
* @since 2.0
|
305 |
* @see Filter cac/columns/custom
|
306 |
*/
|
307 |
$columns = apply_filters( 'cac/columns/custom/type=' . $this->type, $columns, $this );
|
@@ -309,7 +316,7 @@ abstract class CPAC_Storage_Model {
|
|
309 |
/**
|
310 |
* Filter the available custom column types for a specific type
|
311 |
*
|
312 |
-
* @since 2.0
|
313 |
* @see Filter cac/columns/custom
|
314 |
*/
|
315 |
$columns = apply_filters( 'cac/columns/custom/post_type=' . $this->key, $columns, $this );
|
@@ -318,7 +325,7 @@ abstract class CPAC_Storage_Model {
|
|
318 |
}
|
319 |
|
320 |
/**
|
321 |
-
* @since 2.0
|
322 |
* @param $column_name
|
323 |
* @param $label
|
324 |
* @return object CPAC_Column
|
@@ -352,7 +359,7 @@ abstract class CPAC_Storage_Model {
|
|
352 |
}
|
353 |
|
354 |
/**
|
355 |
-
* @since 2.0
|
356 |
* @return array Column Type | Column Instance
|
357 |
*/
|
358 |
public function get_default_registered_columns() {
|
@@ -378,7 +385,7 @@ abstract class CPAC_Storage_Model {
|
|
378 |
}
|
379 |
|
380 |
/**
|
381 |
-
* @since 2.0
|
382 |
* @return array Column Type | Column Instance
|
383 |
*/
|
384 |
function get_custom_registered_columns() {
|
@@ -388,8 +395,9 @@ abstract class CPAC_Storage_Model {
|
|
388 |
foreach ( $this->columns_filepath as $classname => $path ) {
|
389 |
include_once $path;
|
390 |
|
391 |
-
if ( ! class_exists( $classname ) )
|
392 |
continue;
|
|
|
393 |
|
394 |
$column = new $classname( $this );
|
395 |
|
@@ -408,7 +416,7 @@ abstract class CPAC_Storage_Model {
|
|
408 |
}
|
409 |
|
410 |
/**
|
411 |
-
* @since 1.0
|
412 |
* @param string $key
|
413 |
* @return array Column options
|
414 |
*/
|
@@ -421,7 +429,7 @@ abstract class CPAC_Storage_Model {
|
|
421 |
}
|
422 |
|
423 |
/**
|
424 |
-
* @since 1.0
|
425 |
* @return array Column options
|
426 |
*/
|
427 |
public function get_stored_columns() {
|
@@ -482,7 +490,7 @@ abstract class CPAC_Storage_Model {
|
|
482 |
$grouptypes = array();
|
483 |
|
484 |
foreach ( $columns as $index => $column ) {
|
485 |
-
if ( $column->properties->group == $group ) {
|
486 |
$grouptypes[ $index ] = $column;
|
487 |
unset( $columns[ $index ] );
|
488 |
}
|
@@ -530,7 +538,7 @@ abstract class CPAC_Storage_Model {
|
|
530 |
}
|
531 |
|
532 |
/**
|
533 |
-
* @since 2.0
|
534 |
*/
|
535 |
function get_columns() {
|
536 |
|
@@ -607,7 +615,7 @@ abstract class CPAC_Storage_Model {
|
|
607 |
}
|
608 |
|
609 |
/**
|
610 |
-
* @since 2.0
|
611 |
*/
|
612 |
function get_column_by_name( $name ) {
|
613 |
|
@@ -619,7 +627,7 @@ abstract class CPAC_Storage_Model {
|
|
619 |
}
|
620 |
|
621 |
/**
|
622 |
-
* @since 2.0
|
623 |
*/
|
624 |
public function add_headings( $columns ) {
|
625 |
|
@@ -646,7 +654,7 @@ abstract class CPAC_Storage_Model {
|
|
646 |
* Filter the column headers label for use in a WP_List_Table
|
647 |
* Label needs stripslashes() for HTML tagged labels, like icons and checkboxes
|
648 |
*
|
649 |
-
* @since 2.0
|
650 |
* @param string $label Label
|
651 |
* @param string $column_name Column name
|
652 |
* @param array $options Column options
|
@@ -683,7 +691,7 @@ abstract class CPAC_Storage_Model {
|
|
683 |
}
|
684 |
|
685 |
/**
|
686 |
-
* @since 2.0
|
687 |
* @return string Link
|
688 |
*/
|
689 |
protected function get_screen_link() {
|
@@ -692,7 +700,7 @@ abstract class CPAC_Storage_Model {
|
|
692 |
}
|
693 |
|
694 |
/**
|
695 |
-
* @since 2.0
|
696 |
*/
|
697 |
function screen_link() {
|
698 |
|
@@ -700,7 +708,7 @@ abstract class CPAC_Storage_Model {
|
|
700 |
}
|
701 |
|
702 |
/**
|
703 |
-
* @since 2.0
|
704 |
*/
|
705 |
function get_edit_link() {
|
706 |
|
3 |
/**
|
4 |
* Storage Model
|
5 |
*
|
6 |
+
* @since 2.0
|
7 |
*/
|
8 |
abstract class CPAC_Storage_Model {
|
9 |
|
10 |
/**
|
11 |
+
* @since 2.0
|
12 |
*/
|
13 |
public $label;
|
14 |
|
15 |
/**
|
16 |
* Identifier for Storage Model; Posttype etc.
|
17 |
*
|
18 |
+
* @since 2.0
|
19 |
*/
|
20 |
public $key;
|
21 |
|
22 |
/**
|
23 |
* Type of storage model; Post, Media, User or Comments
|
24 |
*
|
25 |
+
* @since 2.0
|
26 |
*/
|
27 |
public $type;
|
28 |
|
29 |
+
/**
|
30 |
+
* Meta type of storage model; post, user, comment. Mostly used for custom field data.
|
31 |
+
*
|
32 |
+
* @since 3.0
|
33 |
+
*/
|
34 |
+
public $meta_type;
|
35 |
+
|
36 |
/**
|
37 |
* Groups the storage model in the menu.
|
38 |
*
|
39 |
+
* @since 2.0
|
40 |
*/
|
41 |
public $menu_type;
|
42 |
|
43 |
/**
|
44 |
+
* @since 2.0
|
45 |
* @var string
|
46 |
*/
|
47 |
public $page;
|
83 |
public $column_types = array();
|
84 |
|
85 |
/**
|
86 |
+
* @since 2.0
|
87 |
* @return array Column Name | Column Label
|
88 |
*/
|
89 |
abstract function get_default_columns();
|
104 |
/**
|
105 |
* Checks if menu type is currently viewed
|
106 |
*
|
107 |
+
* @since 1.0
|
108 |
* @param string $key
|
109 |
* @return bool
|
110 |
*/
|
125 |
}
|
126 |
|
127 |
/**
|
128 |
+
* @since 2.0
|
129 |
* @return array
|
130 |
*/
|
131 |
public function get_meta_keys( $add_hidden_meta = false ) {
|
157 |
* Filter the available custom field meta keys
|
158 |
* If showing hidden fields is enabled, they are prefixed with "cpachidden" in the list
|
159 |
*
|
160 |
+
* @since 2.0
|
161 |
*
|
162 |
* @param array $keys Available custom field keys
|
163 |
* @param CPAC_Storage_Model $storage_model Storage model class instance
|
167 |
/**
|
168 |
* Filter the available custom field meta keys for this storage model type
|
169 |
*
|
170 |
+
* @since 2.0
|
171 |
* @see Filter cac/storage_model/meta_keys
|
172 |
*/
|
173 |
return apply_filters( "cac/storage_model/meta_keys/storage_key={$this->key}", $keys, $this );
|
174 |
}
|
175 |
|
176 |
/**
|
177 |
+
* @since 2.0
|
178 |
* @param array $fields Custom fields.
|
179 |
* @return array Custom fields.
|
180 |
*/
|
205 |
}
|
206 |
|
207 |
/**
|
208 |
+
* @since 2.0
|
209 |
*/
|
210 |
function restore() {
|
211 |
|
218 |
}
|
219 |
|
220 |
/**
|
221 |
+
* @since 2.0
|
222 |
*/
|
223 |
function store( $columns = '' ) {
|
224 |
|
299 |
* Filter the available custom column types
|
300 |
* Use this to register a custom column type
|
301 |
*
|
302 |
+
* @since 2.0
|
303 |
* @param array $columns Available custom columns ([class_name] => [class file path])
|
304 |
* @param CPAC_Storage_Model $storage_model Storage model class instance
|
305 |
*/
|
308 |
/**
|
309 |
* Filter the available custom column types for a specific type
|
310 |
*
|
311 |
+
* @since 2.0
|
312 |
* @see Filter cac/columns/custom
|
313 |
*/
|
314 |
$columns = apply_filters( 'cac/columns/custom/type=' . $this->type, $columns, $this );
|
316 |
/**
|
317 |
* Filter the available custom column types for a specific type
|
318 |
*
|
319 |
+
* @since 2.0
|
320 |
* @see Filter cac/columns/custom
|
321 |
*/
|
322 |
$columns = apply_filters( 'cac/columns/custom/post_type=' . $this->key, $columns, $this );
|
325 |
}
|
326 |
|
327 |
/**
|
328 |
+
* @since 2.0
|
329 |
* @param $column_name
|
330 |
* @param $label
|
331 |
* @return object CPAC_Column
|
359 |
}
|
360 |
|
361 |
/**
|
362 |
+
* @since 2.0
|
363 |
* @return array Column Type | Column Instance
|
364 |
*/
|
365 |
public function get_default_registered_columns() {
|
385 |
}
|
386 |
|
387 |
/**
|
388 |
+
* @since 2.0
|
389 |
* @return array Column Type | Column Instance
|
390 |
*/
|
391 |
function get_custom_registered_columns() {
|
395 |
foreach ( $this->columns_filepath as $classname => $path ) {
|
396 |
include_once $path;
|
397 |
|
398 |
+
if ( ! class_exists( $classname ) ) {
|
399 |
continue;
|
400 |
+
}
|
401 |
|
402 |
$column = new $classname( $this );
|
403 |
|
416 |
}
|
417 |
|
418 |
/**
|
419 |
+
* @since 1.0
|
420 |
* @param string $key
|
421 |
* @return array Column options
|
422 |
*/
|
429 |
}
|
430 |
|
431 |
/**
|
432 |
+
* @since 1.0
|
433 |
* @return array Column options
|
434 |
*/
|
435 |
public function get_stored_columns() {
|
490 |
$grouptypes = array();
|
491 |
|
492 |
foreach ( $columns as $index => $column ) {
|
493 |
+
if ( $index && $column->properties->group == $group ) {
|
494 |
$grouptypes[ $index ] = $column;
|
495 |
unset( $columns[ $index ] );
|
496 |
}
|
538 |
}
|
539 |
|
540 |
/**
|
541 |
+
* @since 2.0
|
542 |
*/
|
543 |
function get_columns() {
|
544 |
|
615 |
}
|
616 |
|
617 |
/**
|
618 |
+
* @since 2.0
|
619 |
*/
|
620 |
function get_column_by_name( $name ) {
|
621 |
|
627 |
}
|
628 |
|
629 |
/**
|
630 |
+
* @since 2.0
|
631 |
*/
|
632 |
public function add_headings( $columns ) {
|
633 |
|
654 |
* Filter the column headers label for use in a WP_List_Table
|
655 |
* Label needs stripslashes() for HTML tagged labels, like icons and checkboxes
|
656 |
*
|
657 |
+
* @since 2.0
|
658 |
* @param string $label Label
|
659 |
* @param string $column_name Column name
|
660 |
* @param array $options Column options
|
691 |
}
|
692 |
|
693 |
/**
|
694 |
+
* @since 2.0
|
695 |
* @return string Link
|
696 |
*/
|
697 |
protected function get_screen_link() {
|
700 |
}
|
701 |
|
702 |
/**
|
703 |
+
* @since 2.0
|
704 |
*/
|
705 |
function screen_link() {
|
706 |
|
708 |
}
|
709 |
|
710 |
/**
|
711 |
+
* @since 2.0
|
712 |
*/
|
713 |
function get_edit_link() {
|
714 |
|
classes/storage_model/comment.php
CHANGED
@@ -5,13 +5,14 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
|
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
-
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
12 |
$this->key = 'wp-comments';
|
13 |
$this->label = __( 'Comments' );
|
14 |
$this->type = 'comment';
|
|
|
15 |
$this->page = 'edit-comments';
|
16 |
$this->menu_type = 'other';
|
17 |
|
@@ -28,7 +29,7 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
|
|
28 |
* Get WP default supported admin columns per post type.
|
29 |
*
|
30 |
* @see CPAC_Type::get_default_columns()
|
31 |
-
* @since 1.0
|
32 |
*
|
33 |
* @return array
|
34 |
*/
|
@@ -50,7 +51,7 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
|
|
50 |
/**
|
51 |
* Get Meta
|
52 |
*
|
53 |
-
* @since 2.0
|
54 |
*
|
55 |
* @return array
|
56 |
*/
|
@@ -63,7 +64,7 @@ class CPAC_Storage_Model_Comment extends CPAC_Storage_Model {
|
|
63 |
/**
|
64 |
* Manage value
|
65 |
*
|
66 |
-
* @since 2.0
|
67 |
*
|
68 |
* @param string $column_name
|
69 |
* @param int $post_id
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
+
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
12 |
$this->key = 'wp-comments';
|
13 |
$this->label = __( 'Comments' );
|
14 |
$this->type = 'comment';
|
15 |
+
$this->meta_type = 'comment';
|
16 |
$this->page = 'edit-comments';
|
17 |
$this->menu_type = 'other';
|
18 |
|
29 |
* Get WP default supported admin columns per post type.
|
30 |
*
|
31 |
* @see CPAC_Type::get_default_columns()
|
32 |
+
* @since 1.0
|
33 |
*
|
34 |
* @return array
|
35 |
*/
|
51 |
/**
|
52 |
* Get Meta
|
53 |
*
|
54 |
+
* @since 2.0
|
55 |
*
|
56 |
* @return array
|
57 |
*/
|
64 |
/**
|
65 |
* Manage value
|
66 |
*
|
67 |
+
* @since 2.0
|
68 |
*
|
69 |
* @param string $column_name
|
70 |
* @param int $post_id
|
classes/storage_model/link.php
CHANGED
@@ -5,7 +5,7 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
|
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
-
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
@@ -27,13 +27,15 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
|
|
27 |
/**
|
28 |
* Get WP default supported admin columns per post type.
|
29 |
*
|
30 |
-
* @since 1.0
|
31 |
*
|
32 |
* @return array
|
33 |
*/
|
34 |
public function get_default_columns() {
|
35 |
|
36 |
-
if ( ! function_exists('_get_list_table') )
|
|
|
|
|
37 |
|
38 |
// You can use this filter to add thirdparty columns by hooking into this.
|
39 |
// See classes/third_party.php for an example.
|
@@ -49,7 +51,7 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
|
|
49 |
/**
|
50 |
* Get Meta
|
51 |
*
|
52 |
-
* @since 2.0
|
53 |
*
|
54 |
* @return array
|
55 |
*/
|
@@ -58,7 +60,7 @@ class CPAC_Storage_Model_Link extends CPAC_Storage_Model {
|
|
58 |
/**
|
59 |
* Manage value
|
60 |
*
|
61 |
-
* @since 2.0
|
62 |
*
|
63 |
* @param string $column_name
|
64 |
* @param int $post_id
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
+
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
27 |
/**
|
28 |
* Get WP default supported admin columns per post type.
|
29 |
*
|
30 |
+
* @since 1.0
|
31 |
*
|
32 |
* @return array
|
33 |
*/
|
34 |
public function get_default_columns() {
|
35 |
|
36 |
+
if ( ! function_exists('_get_list_table') ) {
|
37 |
+
return array();
|
38 |
+
}
|
39 |
|
40 |
// You can use this filter to add thirdparty columns by hooking into this.
|
41 |
// See classes/third_party.php for an example.
|
51 |
/**
|
52 |
* Get Meta
|
53 |
*
|
54 |
+
* @since 2.0
|
55 |
*
|
56 |
* @return array
|
57 |
*/
|
60 |
/**
|
61 |
* Manage value
|
62 |
*
|
63 |
+
* @since 2.0
|
64 |
*
|
65 |
* @param string $column_name
|
66 |
* @param int $post_id
|
classes/storage_model/media.php
CHANGED
@@ -5,13 +5,14 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
|
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
-
* @since 2.0
|
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 |
$this->menu_type = 'other';
|
@@ -29,13 +30,15 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
|
|
29 |
/**
|
30 |
* Get WP default supported admin columns per post type.
|
31 |
*
|
32 |
-
* @since 1.0
|
33 |
*
|
34 |
* @return array
|
35 |
*/
|
36 |
public function get_default_columns() {
|
37 |
|
38 |
-
if ( ! function_exists('_get_list_table') )
|
|
|
|
|
39 |
|
40 |
// You can use this filter to add thirdparty columns by hooking into this.
|
41 |
// See classes/third_party.php for an example.
|
@@ -54,7 +57,7 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
|
|
54 |
/**
|
55 |
* Get Meta
|
56 |
*
|
57 |
-
* @since 2.0
|
58 |
*
|
59 |
* @return array
|
60 |
*/
|
@@ -67,7 +70,7 @@ class CPAC_Storage_Model_Media extends CPAC_Storage_Model {
|
|
67 |
/**
|
68 |
* Manage value
|
69 |
*
|
70 |
-
* @since 2.0
|
71 |
*
|
72 |
* @param string $column_name
|
73 |
* @param int $post_id
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
+
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
12 |
$this->key = 'wp-media';
|
13 |
$this->label = __( 'Media Library' );
|
14 |
$this->type = 'media';
|
15 |
+
$this->meta_type = 'post';
|
16 |
$this->page = 'upload';
|
17 |
$this->post_type = 'attachment';
|
18 |
$this->menu_type = 'other';
|
30 |
/**
|
31 |
* Get WP default supported admin columns per post type.
|
32 |
*
|
33 |
+
* @since 1.0
|
34 |
*
|
35 |
* @return array
|
36 |
*/
|
37 |
public function get_default_columns() {
|
38 |
|
39 |
+
if ( ! function_exists('_get_list_table') ) {
|
40 |
+
return array();
|
41 |
+
}
|
42 |
|
43 |
// You can use this filter to add thirdparty columns by hooking into this.
|
44 |
// See classes/third_party.php for an example.
|
57 |
/**
|
58 |
* Get Meta
|
59 |
*
|
60 |
+
* @since 2.0
|
61 |
*
|
62 |
* @return array
|
63 |
*/
|
70 |
/**
|
71 |
* Manage value
|
72 |
*
|
73 |
+
* @since 2.0
|
74 |
*
|
75 |
* @param string $column_name
|
76 |
* @param int $post_id
|
classes/storage_model/post.php
CHANGED
@@ -5,13 +5,14 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
-
* @since 2.0
|
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 |
$this->menu_type = 'post';
|
@@ -29,7 +30,6 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
29 |
// values
|
30 |
add_action( "manage_{$this->post_type}_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
|
31 |
|
32 |
-
// Re-load the columns after the posts page load actions are performed
|
33 |
add_action( 'load-edit.php', array( $this, 'set_columns' ), 1000 );
|
34 |
|
35 |
parent::__construct();
|
@@ -80,7 +80,7 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
80 |
/**
|
81 |
* Get screen link
|
82 |
*
|
83 |
-
* @since 2.0
|
84 |
*
|
85 |
* @return string Link
|
86 |
*/
|
@@ -110,7 +110,7 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
110 |
/**
|
111 |
* Get Label
|
112 |
*
|
113 |
-
* @since 2.0
|
114 |
*
|
115 |
* @return string Singular posttype name
|
116 |
*/
|
@@ -124,7 +124,7 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
124 |
* Get WP default supported admin columns per post type.
|
125 |
*
|
126 |
* @see CPAC_Type::get_default_columns()
|
127 |
-
* @since 1.0
|
128 |
*
|
129 |
* @return array
|
130 |
*/
|
@@ -153,7 +153,7 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
153 |
/**
|
154 |
* Get Meta
|
155 |
*
|
156 |
-
* @since 2.0
|
157 |
*
|
158 |
* @return array
|
159 |
*/
|
@@ -166,7 +166,7 @@ class CPAC_Storage_Model_Post extends CPAC_Storage_Model {
|
|
166 |
/**
|
167 |
* Manage value
|
168 |
*
|
169 |
-
* @since 2.0
|
170 |
*
|
171 |
* @param string $column_name
|
172 |
* @param int $post_id
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
+
* @since 2.0
|
9 |
*/
|
10 |
function __construct( $post_type ) {
|
11 |
|
12 |
$this->key = $post_type;
|
13 |
$this->label = $this->get_label();
|
14 |
$this->type = 'post';
|
15 |
+
$this->meta_type = 'post';
|
16 |
$this->page = 'edit';
|
17 |
$this->post_type = $post_type;
|
18 |
$this->menu_type = 'post';
|
30 |
// values
|
31 |
add_action( "manage_{$this->post_type}_posts_custom_column", array( $this, 'manage_value' ), 100, 2 );
|
32 |
|
|
|
33 |
add_action( 'load-edit.php', array( $this, 'set_columns' ), 1000 );
|
34 |
|
35 |
parent::__construct();
|
80 |
/**
|
81 |
* Get screen link
|
82 |
*
|
83 |
+
* @since 2.0
|
84 |
*
|
85 |
* @return string Link
|
86 |
*/
|
110 |
/**
|
111 |
* Get Label
|
112 |
*
|
113 |
+
* @since 2.0
|
114 |
*
|
115 |
* @return string Singular posttype name
|
116 |
*/
|
124 |
* Get WP default supported admin columns per post type.
|
125 |
*
|
126 |
* @see CPAC_Type::get_default_columns()
|
127 |
+
* @since 1.0
|
128 |
*
|
129 |
* @return array
|
130 |
*/
|
153 |
/**
|
154 |
* Get Meta
|
155 |
*
|
156 |
+
* @since 2.0
|
157 |
*
|
158 |
* @return array
|
159 |
*/
|
166 |
/**
|
167 |
* Manage value
|
168 |
*
|
169 |
+
* @since 2.0
|
170 |
*
|
171 |
* @param string $column_name
|
172 |
* @param int $post_id
|
classes/storage_model/user.php
CHANGED
@@ -5,14 +5,15 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
|
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
-
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
12 |
-
$this->key
|
13 |
-
$this->label
|
14 |
-
$this->type
|
15 |
-
$this->
|
|
|
16 |
$this->menu_type = 'other';
|
17 |
|
18 |
// headings
|
@@ -28,13 +29,15 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
|
|
28 |
* Get WP default supported admin columns per post type.
|
29 |
*
|
30 |
* @see CPAC_Type::get_default_columns()
|
31 |
-
* @since 1.0
|
32 |
*
|
33 |
* @return array
|
34 |
*/
|
35 |
public function get_default_columns() {
|
36 |
|
37 |
-
if ( ! function_exists('_get_list_table') )
|
|
|
|
|
38 |
|
39 |
// You can use this filter to add third_party columns by hooking into this.
|
40 |
do_action( "cac/columns/default/storage_key={$this->key}" );
|
@@ -100,7 +103,7 @@ class CPAC_Storage_Model_User extends CPAC_Storage_Model {
|
|
100 |
* Get Meta
|
101 |
*
|
102 |
* @see CPAC_Columns::get_meta_keys()
|
103 |
-
* @since 2.0
|
104 |
*
|
105 |
* @return array
|
106 |
*/
|
5 |
/**
|
6 |
* Constructor
|
7 |
*
|
8 |
+
* @since 2.0
|
9 |
*/
|
10 |
function __construct() {
|
11 |
|
12 |
+
$this->key = 'wp-users';
|
13 |
+
$this->label = __( 'Users' );
|
14 |
+
$this->type = 'user';
|
15 |
+
$this->meta_type = 'user';
|
16 |
+
$this->page = 'users';
|
17 |
$this->menu_type = 'other';
|
18 |
|
19 |
// headings
|
29 |
* Get WP default supported admin columns per post type.
|
30 |
*
|
31 |
* @see CPAC_Type::get_default_columns()
|
32 |
+
* @since 1.0
|
33 |
*
|
34 |
* @return array
|
35 |
*/
|
36 |
public function get_default_columns() {
|
37 |
|
38 |
+
if ( ! function_exists('_get_list_table') ) {
|
39 |
+
return array();
|
40 |
+
}
|
41 |
|
42 |
// You can use this filter to add third_party columns by hooking into this.
|
43 |
do_action( "cac/columns/default/storage_key={$this->key}" );
|
103 |
* Get Meta
|
104 |
*
|
105 |
* @see CPAC_Columns::get_meta_keys()
|
106 |
+
* @since 2.0
|
107 |
*
|
108 |
* @return array
|
109 |
*/
|
classes/third_party.php
CHANGED
@@ -31,7 +31,7 @@ add_action( 'plugins_loaded', 'cpac_pre_load_wordpress_seo_class_metabox', 0 );
|
|
31 |
/**
|
32 |
* WPML compatibility
|
33 |
*
|
34 |
-
* @since 2.0
|
35 |
*/
|
36 |
function cac_add_wpml_columns( $storage_model ) {
|
37 |
|
@@ -63,7 +63,7 @@ add_action( 'cac/get_columns', 'cac_add_wpml_columns' );
|
|
63 |
/**
|
64 |
* Fix which remove the Advanced Custom Fields Type (acf) from the admin columns settings page
|
65 |
*
|
66 |
-
* @since 2.0
|
67 |
*
|
68 |
* @return array Posttypes
|
69 |
*/
|
@@ -79,7 +79,7 @@ add_filter( 'cac/post_types', 'cpac_remove_acf_from_cpac_post_types' );
|
|
79 |
/**
|
80 |
* bbPress - remove posttypes: forum, reply and topic
|
81 |
*
|
82 |
-
* @since 2.0
|
83 |
*
|
84 |
* @return array Posttypes
|
85 |
*/
|
@@ -97,7 +97,7 @@ add_filter( 'cac/post_types', 'cpac_posttypes_remove_bbpress' );
|
|
97 |
/**
|
98 |
* Add support for All in SEO columns
|
99 |
*
|
100 |
-
* @since 2.0
|
101 |
*/
|
102 |
function cpac_load_aioseop_addmycolumns() {
|
103 |
if ( function_exists('aioseop_addmycolumns') ) {
|
@@ -111,7 +111,7 @@ add_action( 'cac/columns/default/posts', 'cpac_load_aioseop_addmycolumns' );
|
|
111 |
*
|
112 |
* To enable the translation of the column labels
|
113 |
*
|
114 |
-
* @since 2.0
|
115 |
*/
|
116 |
function cpac_wpml_register_column_labels() {
|
117 |
global $cpac;
|
@@ -130,7 +130,7 @@ add_action( 'wp_loaded', 'cpac_wpml_register_column_labels', 99 );
|
|
130 |
/**
|
131 |
* WPML Display translated label
|
132 |
*
|
133 |
-
* @since 2.0
|
134 |
*/
|
135 |
function cpac_wpml_set_translated_label( $label, $column_name, $column_options, $storage_model ) {
|
136 |
|
31 |
/**
|
32 |
* WPML compatibility
|
33 |
*
|
34 |
+
* @since 2.0
|
35 |
*/
|
36 |
function cac_add_wpml_columns( $storage_model ) {
|
37 |
|
63 |
/**
|
64 |
* Fix which remove the Advanced Custom Fields Type (acf) from the admin columns settings page
|
65 |
*
|
66 |
+
* @since 2.0
|
67 |
*
|
68 |
* @return array Posttypes
|
69 |
*/
|
79 |
/**
|
80 |
* bbPress - remove posttypes: forum, reply and topic
|
81 |
*
|
82 |
+
* @since 2.0
|
83 |
*
|
84 |
* @return array Posttypes
|
85 |
*/
|
97 |
/**
|
98 |
* Add support for All in SEO columns
|
99 |
*
|
100 |
+
* @since 2.0
|
101 |
*/
|
102 |
function cpac_load_aioseop_addmycolumns() {
|
103 |
if ( function_exists('aioseop_addmycolumns') ) {
|
111 |
*
|
112 |
* To enable the translation of the column labels
|
113 |
*
|
114 |
+
* @since 2.0
|
115 |
*/
|
116 |
function cpac_wpml_register_column_labels() {
|
117 |
global $cpac;
|
130 |
/**
|
131 |
* WPML Display translated label
|
132 |
*
|
133 |
+
* @since 2.0
|
134 |
*/
|
135 |
function cpac_wpml_set_translated_label( $label, $column_name, $column_options, $storage_model ) {
|
136 |
|
classes/upgrade.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* Class largely based on code from ACF ( thanks to Elliot Condon )
|
6 |
*
|
7 |
-
* @since 2.0
|
8 |
*/
|
9 |
class CPAC_Upgrade {
|
10 |
|
@@ -16,7 +16,7 @@ class CPAC_Upgrade {
|
|
16 |
public $update_prevented = false;
|
17 |
|
18 |
/**
|
19 |
-
* @since 2.0
|
20 |
*/
|
21 |
function __construct( $cpac ) {
|
22 |
|
@@ -69,7 +69,7 @@ class CPAC_Upgrade {
|
|
69 |
/**
|
70 |
* Add submenu page & scripts
|
71 |
*
|
72 |
-
* @since 2.0
|
73 |
*/
|
74 |
public function admin_menu() {
|
75 |
|
@@ -83,7 +83,7 @@ class CPAC_Upgrade {
|
|
83 |
}
|
84 |
|
85 |
/**
|
86 |
-
* @since 2.0
|
87 |
*/
|
88 |
public function init() {
|
89 |
|
@@ -149,7 +149,7 @@ class CPAC_Upgrade {
|
|
149 |
/**
|
150 |
* Init Upgrade Process
|
151 |
*
|
152 |
-
* @since 2.0
|
153 |
*/
|
154 |
public function ajax_upgrade() {
|
155 |
|
@@ -348,7 +348,7 @@ class CPAC_Upgrade {
|
|
348 |
/*
|
349 |
* Starting points of the upgrade process
|
350 |
*
|
351 |
-
* @since 2.0
|
352 |
*/
|
353 |
public function start_upgrade() {
|
354 |
|
@@ -378,7 +378,7 @@ class CPAC_Upgrade {
|
|
378 |
/**
|
379 |
* Scripts
|
380 |
*
|
381 |
-
* @since 2.0
|
382 |
*/
|
383 |
public function admin_scripts() {
|
384 |
wp_enqueue_script( 'cpac-upgrade', CPAC_URL . 'assets/js/upgrade.js', array( 'jquery' ), CPAC_VERSION );
|
4 |
*
|
5 |
* Class largely based on code from ACF ( thanks to Elliot Condon )
|
6 |
*
|
7 |
+
* @since 2.0
|
8 |
*/
|
9 |
class CPAC_Upgrade {
|
10 |
|
16 |
public $update_prevented = false;
|
17 |
|
18 |
/**
|
19 |
+
* @since 2.0
|
20 |
*/
|
21 |
function __construct( $cpac ) {
|
22 |
|
69 |
/**
|
70 |
* Add submenu page & scripts
|
71 |
*
|
72 |
+
* @since 2.0
|
73 |
*/
|
74 |
public function admin_menu() {
|
75 |
|
83 |
}
|
84 |
|
85 |
/**
|
86 |
+
* @since 2.0
|
87 |
*/
|
88 |
public function init() {
|
89 |
|
149 |
/**
|
150 |
* Init Upgrade Process
|
151 |
*
|
152 |
+
* @since 2.0
|
153 |
*/
|
154 |
public function ajax_upgrade() {
|
155 |
|
348 |
/*
|
349 |
* Starting points of the upgrade process
|
350 |
*
|
351 |
+
* @since 2.0
|
352 |
*/
|
353 |
public function start_upgrade() {
|
354 |
|
378 |
/**
|
379 |
* Scripts
|
380 |
*
|
381 |
+
* @since 2.0
|
382 |
*/
|
383 |
public function admin_scripts() {
|
384 |
wp_enqueue_script( 'cpac-upgrade', CPAC_URL . 'assets/js/upgrade.js', array( 'jquery' ), CPAC_VERSION );
|
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.
|
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__ ) );
|
@@ -55,7 +55,7 @@ require_once CPAC_DIR . 'api.php';
|
|
55 |
/**
|
56 |
* The Codepress Admin Columns Class
|
57 |
*
|
58 |
-
* @since 1.0
|
59 |
*/
|
60 |
class CPAC {
|
61 |
|
@@ -87,7 +87,7 @@ class CPAC {
|
|
87 |
private $_settings;
|
88 |
|
89 |
/**
|
90 |
-
* @since 1.0
|
91 |
*/
|
92 |
function __construct() {
|
93 |
|
@@ -132,7 +132,7 @@ class CPAC {
|
|
132 |
* Fires when Admin Columns is fully loaded
|
133 |
* Use this for setting up addon functionality
|
134 |
*
|
135 |
-
* @since 2.0
|
136 |
* @param CPAC $cpac_instance Main Admin Columns plugin class instance
|
137 |
*/
|
138 |
do_action( 'cac/loaded', $this );
|
@@ -254,7 +254,7 @@ class CPAC {
|
|
254 |
}
|
255 |
|
256 |
/**
|
257 |
-
* @since 2.0
|
258 |
*/
|
259 |
public function set_storage_models() {
|
260 |
|
@@ -265,6 +265,7 @@ class CPAC {
|
|
265 |
|
266 |
// include parent and childs
|
267 |
require_once CPAC_DIR . 'classes/column.php';
|
|
|
268 |
require_once CPAC_DIR . 'classes/storage_model.php';
|
269 |
require_once CPAC_DIR . 'classes/storage_model/post.php';
|
270 |
require_once CPAC_DIR . 'classes/storage_model/user.php';
|
@@ -295,14 +296,14 @@ class CPAC {
|
|
295 |
* Filter the available storage models
|
296 |
* Used by external plugins to add additional storage models
|
297 |
*
|
298 |
-
* @since 2.0
|
299 |
* @param array $storage_models List of storage model class instances ( [key] => [CPAC_Storage_Model object], where [key] is the storage key, such as "user", "post" or "my_custom_post_type")
|
300 |
*/
|
301 |
$this->storage_models = apply_filters( 'cac/storage_models', $storage_models );
|
302 |
}
|
303 |
|
304 |
/**
|
305 |
-
* @since 2.0
|
306 |
* @return array|false object Storage Model
|
307 |
*/
|
308 |
public function get_storage_model( $key ) {
|
@@ -315,7 +316,7 @@ class CPAC {
|
|
315 |
}
|
316 |
|
317 |
/**
|
318 |
-
* @since 1.0
|
319 |
* @return array Posttypes
|
320 |
*/
|
321 |
public function get_post_types() {
|
@@ -336,14 +337,14 @@ class CPAC {
|
|
336 |
/**
|
337 |
* Filter the post types for which Admin Columns is active
|
338 |
*
|
339 |
-
* @since 2.0
|
340 |
* @param array $post_types List of active post type names
|
341 |
*/
|
342 |
return apply_filters( 'cac/post_types', $post_types );
|
343 |
}
|
344 |
|
345 |
/**
|
346 |
-
* @since 1.0
|
347 |
*/
|
348 |
function add_settings_link( $links, $file ) {
|
349 |
|
@@ -356,7 +357,7 @@ class CPAC {
|
|
356 |
}
|
357 |
|
358 |
/**
|
359 |
-
* @since 1.0
|
360 |
*/
|
361 |
public function column_styles() {
|
362 |
|
@@ -471,7 +472,7 @@ class CPAC {
|
|
471 |
/**
|
472 |
* Init Class Codepress_Admin_Columns ( sets Global for backwards compatibility. )
|
473 |
*
|
474 |
-
* @since 1.0
|
475 |
*/
|
476 |
$GLOBALS['cpac'] = new CPAC();
|
477 |
|
2 |
/*
|
3 |
|
4 |
Plugin Name: Codepress Admin Columns
|
5 |
+
Version: 2.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 |
}
|
34 |
|
35 |
// Plugin information
|
36 |
+
define( 'CPAC_VERSION', '2.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__ ) );
|
55 |
/**
|
56 |
* The Codepress Admin Columns Class
|
57 |
*
|
58 |
+
* @since 1.0
|
59 |
*/
|
60 |
class CPAC {
|
61 |
|
87 |
private $_settings;
|
88 |
|
89 |
/**
|
90 |
+
* @since 1.0
|
91 |
*/
|
92 |
function __construct() {
|
93 |
|
132 |
* Fires when Admin Columns is fully loaded
|
133 |
* Use this for setting up addon functionality
|
134 |
*
|
135 |
+
* @since 2.0
|
136 |
* @param CPAC $cpac_instance Main Admin Columns plugin class instance
|
137 |
*/
|
138 |
do_action( 'cac/loaded', $this );
|
254 |
}
|
255 |
|
256 |
/**
|
257 |
+
* @since 2.0
|
258 |
*/
|
259 |
public function set_storage_models() {
|
260 |
|
265 |
|
266 |
// include parent and childs
|
267 |
require_once CPAC_DIR . 'classes/column.php';
|
268 |
+
require_once CPAC_DIR . 'classes/column/default.php';
|
269 |
require_once CPAC_DIR . 'classes/storage_model.php';
|
270 |
require_once CPAC_DIR . 'classes/storage_model/post.php';
|
271 |
require_once CPAC_DIR . 'classes/storage_model/user.php';
|
296 |
* Filter the available storage models
|
297 |
* Used by external plugins to add additional storage models
|
298 |
*
|
299 |
+
* @since 2.0
|
300 |
* @param array $storage_models List of storage model class instances ( [key] => [CPAC_Storage_Model object], where [key] is the storage key, such as "user", "post" or "my_custom_post_type")
|
301 |
*/
|
302 |
$this->storage_models = apply_filters( 'cac/storage_models', $storage_models );
|
303 |
}
|
304 |
|
305 |
/**
|
306 |
+
* @since 2.0
|
307 |
* @return array|false object Storage Model
|
308 |
*/
|
309 |
public function get_storage_model( $key ) {
|
316 |
}
|
317 |
|
318 |
/**
|
319 |
+
* @since 1.0
|
320 |
* @return array Posttypes
|
321 |
*/
|
322 |
public function get_post_types() {
|
337 |
/**
|
338 |
* Filter the post types for which Admin Columns is active
|
339 |
*
|
340 |
+
* @since 2.0
|
341 |
* @param array $post_types List of active post type names
|
342 |
*/
|
343 |
return apply_filters( 'cac/post_types', $post_types );
|
344 |
}
|
345 |
|
346 |
/**
|
347 |
+
* @since 1.0
|
348 |
*/
|
349 |
function add_settings_link( $links, $file ) {
|
350 |
|
357 |
}
|
358 |
|
359 |
/**
|
360 |
+
* @since 1.0
|
361 |
*/
|
362 |
public function column_styles() {
|
363 |
|
472 |
/**
|
473 |
* Init Class Codepress_Admin_Columns ( sets Global for backwards compatibility. )
|
474 |
*
|
475 |
+
* @since 1.0
|
476 |
*/
|
477 |
$GLOBALS['cpac'] = new CPAC();
|
478 |
|
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: 2014-
|
6 |
-
"PO-Revision-Date: 2014-
|
7 |
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
"Language-Team: Codepress <info@codepress.nl>\n"
|
9 |
"Language: en_GB\n"
|
@@ -18,141 +18,141 @@ msgstr ""
|
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
"X-Poedit-SearchPath-1: ..\n"
|
20 |
|
21 |
-
#: ../classes/addons.php:
|
22 |
msgid "Third party plugin integration"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#: ../classes/addons.php:
|
26 |
msgid "Advanced Custom Fields"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#: ../classes/addons.php:
|
30 |
msgid ""
|
31 |
"Display and edit Advanced Custom Fields fields in the posts overview in "
|
32 |
"seconds!"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../classes/column.php:
|
36 |
msgid "Thumbnail"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../classes/column.php:
|
40 |
msgid "Medium"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../classes/column.php:
|
44 |
msgid "Large"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../classes/column.php:
|
48 |
msgid "Full"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../classes/column.php:
|
52 |
msgid "Date Format"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../classes/column.php:
|
56 |
msgid "This will determine how the date will be displayed."
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../classes/column.php:
|
60 |
msgid "Example:"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../classes/column.php:
|
64 |
#, php-format
|
65 |
msgid ""
|
66 |
"Leave empty for WordPress date format, change your <a href=\"%s\">default "
|
67 |
"date format here</a>."
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: ../classes/column.php:
|
71 |
msgid "Documentation on date and time formatting."
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: ../classes/column.php:
|
75 |
msgid "Excerpt length"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: ../classes/column.php:
|
79 |
msgid "Number of words"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: ../classes/column.php:
|
83 |
msgid "Preview size"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: ../classes/column.php:
|
87 |
msgid "Custom"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: ../classes/column.php:
|
91 |
msgid "width"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: ../classes/column.php:
|
95 |
msgid "height"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: ../classes/column.php:
|
99 |
msgid "Before"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: ../classes/column.php:
|
103 |
msgid "This text will appear before the custom field value."
|
104 |
msgstr ""
|
105 |
|
106 |
-
#: ../classes/column.php:
|
107 |
msgid "After"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: ../classes/column.php:
|
111 |
msgid "This text will appear after the custom field value."
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: ../classes/column.php:
|
115 |
-
#: ../classes/column/link/actions.php:
|
116 |
-
#: ../classes/column/user/actions.php:
|
117 |
msgid "Edit"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: ../classes/column.php:
|
121 |
-
#: ../classes/column/user/actions.php:
|
122 |
msgid "Remove"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: ../classes/column.php:
|
126 |
msgid "Type"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: ../classes/column.php:
|
130 |
msgid "Choose a column type."
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: ../classes/column.php:
|
134 |
-
#: ../classes/column/link/ID.php:
|
135 |
-
#: ../classes/column/post/ID.php:
|
136 |
msgid "ID"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: ../classes/column.php:
|
140 |
msgid "Label"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: ../classes/column.php:
|
144 |
msgid "This is the name which will appear as the column header."
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: ../classes/column.php:
|
148 |
msgid "Width"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: ../classes/column.php:
|
152 |
msgid "default"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: ../classes/column/acf-placeholder.php:
|
156 |
msgid "ACF Field"
|
157 |
msgstr ""
|
158 |
|
@@ -174,509 +174,525 @@ msgid ""
|
|
174 |
"your posts overview."
|
175 |
msgstr ""
|
176 |
|
177 |
-
#: ../classes/column/acf-placeholder.php:
|
178 |
msgid "Find out more"
|
179 |
msgstr ""
|
180 |
|
181 |
-
#: ../classes/column/comment/actions.php:
|
182 |
-
#: ../classes/column/link/actions.php:
|
183 |
-
#: ../classes/column/media/actions.php:
|
184 |
-
#: ../classes/column/post/actions.php:
|
185 |
msgid "Actions"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: ../classes/column/comment/actions.php:
|
189 |
-
#: ../classes/column/comment/actions.php:
|
190 |
msgid "Unapprove"
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: ../classes/column/comment/actions.php:
|
194 |
-
#: ../classes/column/comment/actions.php:
|
195 |
msgid "Approve"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: ../classes/column/comment/actions.php:
|
199 |
-
#: ../classes/column/post/actions.php:
|
200 |
msgid "Restore"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: ../classes/column/comment/actions.php:
|
204 |
-
#: ../classes/column/post/actions.php:
|
205 |
msgid "Delete Permanently"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: ../classes/column/comment/actions.php:
|
209 |
-
#: ../classes/column/post/actions.php:
|
210 |
msgid "Quick Edit"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: ../classes/column/comment/actions.php:
|
214 |
msgid "Reply"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: ../classes/column/comment/agent.php:
|
218 |
msgid "Agent"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: ../classes/column/comment/approved.php:
|
222 |
-
#: ../classes/column/post/comment-count.php:
|
223 |
msgid "Approved"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: ../classes/column/comment/author-avatar.php:
|
227 |
msgid "Avatar"
|
228 |
msgstr ""
|
229 |
|
230 |
-
#: ../classes/column/comment/author-email.php:
|
231 |
msgid "Author email"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: ../classes/column/comment/author-ip.php:
|
235 |
msgid "Author IP"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: ../classes/column/comment/author-url.php:
|
239 |
msgid "Author url"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: ../classes/column/comment/author.php:
|
243 |
msgid "Author"
|
244 |
msgstr ""
|
245 |
|
246 |
-
#: ../classes/column/comment/date-gmt.php:
|
247 |
msgid "Date GMT"
|
248 |
msgstr ""
|
249 |
|
250 |
-
#: ../classes/column/comment/date-gmt.php:
|
251 |
-
#: ../classes/column/comment/date.php:
|
252 |
#, php-format
|
253 |
msgid "Submitted on <a href=\"%1$s\">%2$s at %3$s</a>"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: ../classes/column/comment/date.php:
|
257 |
#: ../classes/settings.php:300
|
258 |
msgid "Date"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: ../classes/column/comment/excerpt.php:
|
262 |
-
#: ../classes/column/custom-field.php:
|
263 |
#: ../classes/settings.php:297
|
264 |
msgid "Excerpt"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: ../classes/column/comment/reply-to.php:
|
268 |
msgid "In Reply To"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: ../classes/column/comment/word-count.php:
|
272 |
-
#: ../classes/column/post/word-count.php:
|
273 |
msgid "Word count"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: ../classes/column/custom-field.php:
|
277 |
-
#: ../classes/column/custom-field.php:
|
278 |
msgid "Custom Field"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: ../classes/column/custom-field.php:
|
282 |
-
#: ../classes/storage_model.php:
|
283 |
msgid "Default"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: ../classes/column/custom-field.php:
|
287 |
msgid "Checkmark (true/false)"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: ../classes/column/custom-field.php:
|
291 |
msgid "Color"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: ../classes/column/custom-field.php:
|
295 |
msgid "Counter"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: ../classes/column/custom-field.php:
|
299 |
#: ../classes/settings.php:296
|
300 |
msgid "Image"
|
301 |
msgstr ""
|
302 |
|
303 |
-
#: ../classes/column/custom-field.php:
|
304 |
msgid "Media Library"
|
305 |
msgstr ""
|
306 |
|
307 |
-
#: ../classes/column/custom-field.php:
|
308 |
msgid "Multiple Values"
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: ../classes/column/custom-field.php:
|
312 |
msgid "Numeric"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: ../classes/column/custom-field.php:
|
316 |
msgid "Post Title (Post ID's)"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: ../classes/column/custom-field.php:
|
320 |
msgid "Username (User ID's)"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: ../classes/column/custom-field.php:
|
324 |
msgid "Select your custom field."
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: ../classes/column/custom-field.php:
|
328 |
msgid "No custom fields available."
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: ../classes/column/custom-field.php:
|
332 |
msgid "Field Type"
|
333 |
msgstr ""
|
334 |
|
335 |
-
#: ../classes/column/custom-field.php:
|
336 |
msgid "This will determine how the value will be displayed."
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: ../classes/column/link/actions.php:
|
340 |
#, php-format
|
341 |
msgid ""
|
342 |
"You are about to delete this link '%s'\n"
|
343 |
" 'Cancel' to stop, 'OK' to delete."
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: ../classes/column/link/actions.php:
|
347 |
msgid "Delete"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: ../classes/column/link/description.php:
|
351 |
-
#: ../classes/column/media/description.php:
|
352 |
-
#: ../classes/column/user/description.php:
|
353 |
msgid "Description"
|
354 |
msgstr ""
|
355 |
|
356 |
-
#: ../classes/column/link/length.php:
|
357 |
msgid "Length"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: ../classes/column/link/notes.php:
|
361 |
msgid "Notes"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: ../classes/column/link/owner.php:
|
365 |
msgid "Owner"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: ../classes/column/link/rss.php:
|
369 |
msgid "Rss"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: ../classes/column/link/target.php:
|
373 |
msgid "Target"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: ../classes/column/media/alternate-text.php:
|
377 |
msgid "Alt"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: ../classes/column/media/available-sizes.php:
|
381 |
msgid "Available Sizes"
|
382 |
msgstr ""
|
383 |
|
384 |
-
#: ../classes/column/media/available-sizes.php:
|
385 |
msgid "full size"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: ../classes/column/media/caption.php:
|
389 |
-
#: ../classes/column/media/exif-data.php:
|
390 |
msgid "Caption"
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: ../classes/column/media/dimensions.php:
|
394 |
msgid "Dimensions"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: ../classes/column/media/exif-data.php:
|
398 |
msgid "EXIF data"
|
399 |
msgstr ""
|
400 |
|
401 |
-
#: ../classes/column/media/exif-data.php:
|
402 |
msgid "Aperture"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: ../classes/column/media/exif-data.php:
|
406 |
msgid "Credit"
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: ../classes/column/media/exif-data.php:
|
410 |
msgid "Camera"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: ../classes/column/media/exif-data.php:
|
414 |
msgid "Timestamp"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: ../classes/column/media/exif-data.php:
|
418 |
msgid "Copyright EXIF"
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: ../classes/column/media/exif-data.php:
|
422 |
msgid "Focal Length"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: ../classes/column/media/exif-data.php:
|
426 |
msgid "ISO"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: ../classes/column/media/exif-data.php:
|
430 |
msgid "Shutter Speed"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: ../classes/column/media/exif-data.php:
|
434 |
msgid "Title"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: ../classes/column/media/file-name.php:
|
438 |
msgid "File name"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: ../classes/column/media/file-size.php:
|
442 |
msgid "File size"
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: ../classes/column/media/full-path.php:
|
446 |
msgid "Full path"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: ../classes/column/media/height.php:
|
450 |
msgid "Height"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: ../classes/column/media/mime-type.php:
|
454 |
msgid "Mime type"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: ../classes/column/post/actions.php:
|
458 |
msgid "Edit this item"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: ../classes/column/post/actions.php:
|
462 |
msgid "Edit this item inline"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: ../classes/column/post/actions.php:
|
466 |
msgid "Restore this item from the Trash"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: ../classes/column/post/actions.php:
|
470 |
msgid "Move this item to the Trash"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: ../classes/column/post/actions.php:
|
474 |
-
#: ../classes/column/post/comment-count.php:
|
475 |
-
#: ../classes/column/post/status.php:
|
476 |
msgid "Trash"
|
477 |
msgstr ""
|
478 |
|
479 |
-
#: ../classes/column/post/actions.php:
|
480 |
msgid "Delete this item permanently"
|
481 |
msgstr ""
|
482 |
|
483 |
-
#: ../classes/column/post/actions.php:
|
484 |
#, php-format
|
485 |
msgid "Preview “%s”"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: ../classes/column/post/actions.php:
|
489 |
msgid "Preview"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: ../classes/column/post/actions.php:
|
493 |
#, php-format
|
494 |
msgid "View “%s”"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: ../classes/column/post/actions.php:
|
498 |
msgid "View"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: ../classes/column/post/attachment-count.php:
|
502 |
msgid "No. of Attachments"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: ../classes/column/post/attachment.php:
|
506 |
msgid "Attachment"
|
507 |
msgstr ""
|
508 |
|
509 |
-
#: ../classes/column/post/author-name.php:
|
510 |
msgid "Display Author As"
|
511 |
msgstr ""
|
512 |
|
513 |
-
#: ../classes/column/post/author-name.php:
|
514 |
msgid "Display Name"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: ../classes/column/post/author-name.php:
|
518 |
msgid "First Name"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: ../classes/column/post/author-name.php:
|
522 |
msgid "Last Name"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: ../classes/column/post/author-name.php:
|
526 |
-
#: ../classes/column/user/nickname.php:
|
527 |
msgid "Nickname"
|
528 |
msgstr ""
|
529 |
|
530 |
-
#: ../classes/column/post/author-name.php:
|
531 |
msgid "User Login"
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: ../classes/column/post/author-name.php:
|
535 |
msgid "User Email"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: ../classes/column/post/author-name.php:
|
539 |
msgid "User ID"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: ../classes/column/post/author-name.php:
|
543 |
msgid "First and Last Name"
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: ../classes/column/post/author-name.php:
|
547 |
msgid "This is the format of the author name."
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: ../classes/column/post/before-moretag.php:
|
551 |
msgid "Before More Tag"
|
552 |
msgstr ""
|
553 |
|
554 |
-
#: ../classes/column/post/comment-count.php:
|
555 |
msgid "Comment count"
|
556 |
msgstr ""
|
557 |
|
558 |
-
#: ../classes/column/post/comment-count.php:
|
559 |
msgid "Total"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: ../classes/column/post/comment-count.php:
|
563 |
msgid "Pending"
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: ../classes/column/post/comment-count.php:
|
567 |
msgid "Spam"
|
568 |
msgstr ""
|
569 |
|
570 |
-
#: ../classes/column/post/comment-count.php:
|
571 |
-
#: ../classes/column/post/comment-status.php:
|
572 |
msgid "Comment status"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: ../classes/column/post/comment-count.php:
|
576 |
msgid "Select which comment status you like to display."
|
577 |
msgstr ""
|
578 |
|
579 |
-
#: ../classes/column/post/featured-image.php:
|
580 |
msgid "Featured Image"
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: ../classes/column/post/formats.php:
|
584 |
msgid "Post Format"
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: ../classes/column/post/modified.php:
|
588 |
msgid "Last modified"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: ../classes/column/post/order.php:
|
592 |
msgid "Page Order"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#: ../classes/column/post/page-template.php:
|
596 |
msgid "Page Template"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: ../classes/column/post/parent.php:
|
600 |
msgid "Parent"
|
601 |
msgstr ""
|
602 |
|
603 |
-
#: ../classes/column/post/permalink.php:
|
604 |
msgid "Permalink"
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: ../classes/column/post/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
msgid "Ping status"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: ../classes/column/post/roles.php:
|
612 |
msgid "Roles"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: ../classes/column/post/slug.php:
|
616 |
msgid "Slug"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: ../classes/column/post/status.php:
|
620 |
msgid "Status"
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: ../classes/column/post/status.php:
|
624 |
msgid "Published"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: ../classes/column/post/status.php:
|
628 |
msgid "Draft"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: ../classes/column/post/status.php:
|
632 |
msgid "Scheduled"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: ../classes/column/post/status.php:
|
636 |
msgid "Private"
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: ../classes/column/post/status.php:
|
640 |
msgid "Pending Review"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: ../classes/column/post/status.php:
|
644 |
msgid "Auto Draft"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: ../classes/column/post/sticky.php:
|
648 |
msgid "Sticky"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: ../classes/column/taxonomy.php:
|
652 |
msgid "Taxonomy"
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: ../classes/column/user/comment-count.php:
|
656 |
msgid "Comment Count"
|
657 |
msgstr ""
|
658 |
|
659 |
-
#: ../classes/column/user/first-name.php:
|
660 |
msgid "First name"
|
661 |
msgstr ""
|
662 |
|
663 |
-
#: ../classes/column/user/last-name.php:
|
664 |
msgid "Last name"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: ../classes/column/user/post-count.php:
|
668 |
msgid "Post Count"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: ../classes/column/user/post-count.php:
|
672 |
msgid "Post Type"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: ../classes/column/user/registered.php:
|
676 |
msgid "Registered"
|
677 |
msgstr ""
|
678 |
|
679 |
-
#: ../classes/column/user/url.php:
|
680 |
msgid "Url"
|
681 |
msgstr ""
|
682 |
|
@@ -693,7 +709,7 @@ msgid "Admin Columns Settings"
|
|
693 |
msgstr ""
|
694 |
|
695 |
#: ../classes/settings.php:155 ../classes/settings.php:619
|
696 |
-
#: ../classes/upgrade.php:
|
697 |
msgid "Admin Columns"
|
698 |
msgstr ""
|
699 |
|
@@ -901,7 +917,7 @@ msgstr ""
|
|
901 |
msgid "Make sure you backup your database and then click"
|
902 |
msgstr ""
|
903 |
|
904 |
-
#: ../classes/settings.php:441 ../classes/upgrade.php:
|
905 |
msgid "Upgrade Database"
|
906 |
msgstr ""
|
907 |
|
@@ -953,7 +969,7 @@ msgstr ""
|
|
953 |
msgid "Changelog for"
|
954 |
msgstr ""
|
955 |
|
956 |
-
#: ../classes/settings.php:469
|
957 |
msgid "Learn more"
|
958 |
msgstr ""
|
959 |
|
@@ -996,7 +1012,7 @@ msgid ""
|
|
996 |
"undone. \\'OK\\' to delete, \\'Cancel\\' to stop"
|
997 |
msgstr ""
|
998 |
|
999 |
-
#: ../classes/settings.php:620 ../codepress-admin-columns.php:
|
1000 |
msgid "Settings"
|
1001 |
msgstr ""
|
1002 |
|
@@ -1042,92 +1058,92 @@ msgstr ""
|
|
1042 |
msgid "columns"
|
1043 |
msgstr ""
|
1044 |
|
1045 |
-
#: ../classes/settings.php:
|
1046 |
msgid "Get Admin Columns Pro"
|
1047 |
msgstr ""
|
1048 |
|
1049 |
-
#: ../classes/settings.php:
|
1050 |
msgid "Add Sorting"
|
1051 |
msgstr ""
|
1052 |
|
1053 |
-
#: ../classes/settings.php:
|
1054 |
msgid "Add Filtering"
|
1055 |
msgstr ""
|
1056 |
|
1057 |
-
#: ../classes/settings.php:
|
1058 |
msgid "Add Import/Export"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
-
#: ../classes/settings.php:
|
1062 |
msgid "Add Direct Editing"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
-
#: ../classes/settings.php:
|
1066 |
#, php-format
|
1067 |
msgid "Check out <a href=\"%s\">Admin Columns Pro</a> for more details!"
|
1068 |
msgstr ""
|
1069 |
|
1070 |
-
#: ../classes/settings.php:
|
1071 |
msgid "Support"
|
1072 |
msgstr ""
|
1073 |
|
1074 |
-
#: ../classes/settings.php:
|
1075 |
msgid "Check the <strong>Help</strong> section in the top-right screen."
|
1076 |
msgstr ""
|
1077 |
|
1078 |
-
#: ../classes/settings.php:
|
1079 |
#, php-format
|
1080 |
msgid ""
|
1081 |
"For full documentation, bug reports, feature suggestions and other tips <a "
|
1082 |
"href='%s'>visit the Admin Columns website</a>"
|
1083 |
msgstr ""
|
1084 |
|
1085 |
-
#: ../classes/settings.php:
|
1086 |
msgid "Drag and drop to reorder"
|
1087 |
msgstr ""
|
1088 |
|
1089 |
-
#: ../classes/settings.php:
|
1090 |
msgid "Add Column"
|
1091 |
msgstr ""
|
1092 |
|
1093 |
-
#: ../classes/settings.php:
|
1094 |
msgid "Active"
|
1095 |
msgstr ""
|
1096 |
|
1097 |
-
#: ../classes/settings.php:
|
1098 |
msgid "Deactivate"
|
1099 |
msgstr ""
|
1100 |
|
1101 |
-
#: ../classes/settings.php:
|
1102 |
msgid "Installed"
|
1103 |
msgstr ""
|
1104 |
|
1105 |
-
#: ../classes/settings.php:
|
1106 |
msgid "Activate"
|
1107 |
msgstr ""
|
1108 |
|
1109 |
-
#: ../classes/settings.php:
|
1110 |
msgid "Download & Install"
|
1111 |
msgstr ""
|
1112 |
|
1113 |
-
#: ../classes/settings.php:
|
1114 |
msgid "Get this add-on"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
-
#: ../classes/storage_model.php:
|
1118 |
msgid "settings succesfully restored."
|
1119 |
msgstr ""
|
1120 |
|
1121 |
-
#: ../classes/storage_model.php:
|
1122 |
msgid "No columns settings available."
|
1123 |
msgstr ""
|
1124 |
|
1125 |
-
#: ../classes/storage_model.php:
|
1126 |
#, php-format
|
1127 |
msgid "You are trying to store the same settings for %s."
|
1128 |
msgstr ""
|
1129 |
|
1130 |
-
#: ../classes/storage_model.php:
|
1131 |
#, php-format
|
1132 |
msgid "Settings for %s updated succesfully."
|
1133 |
msgstr ""
|
@@ -1144,60 +1160,70 @@ msgstr ""
|
|
1144 |
msgid "Users"
|
1145 |
msgstr ""
|
1146 |
|
1147 |
-
#: ../classes/upgrade.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1148 |
msgid "Upgrade"
|
1149 |
msgstr ""
|
1150 |
|
1151 |
-
#: ../classes/upgrade.php:
|
1152 |
msgid "requires a database upgrade"
|
1153 |
msgstr ""
|
1154 |
|
1155 |
-
#: ../classes/upgrade.php:
|
1156 |
msgid "why?"
|
1157 |
msgstr ""
|
1158 |
|
1159 |
-
#: ../classes/upgrade.php:
|
1160 |
msgid "Please"
|
1161 |
msgstr ""
|
1162 |
|
1163 |
-
#: ../classes/upgrade.php:
|
1164 |
msgid "backup your database"
|
1165 |
msgstr ""
|
1166 |
|
1167 |
-
#: ../classes/upgrade.php:
|
1168 |
msgid "then click"
|
1169 |
msgstr ""
|
1170 |
|
1171 |
-
#: ../classes/upgrade.php:
|
1172 |
msgid "Migrating Column Settings"
|
1173 |
msgstr ""
|
1174 |
|
1175 |
-
#: ../classes/upgrade.php:
|
1176 |
msgid "No Upgrade Required"
|
1177 |
msgstr ""
|
1178 |
|
1179 |
-
#: ../classes/upgrade.php:
|
1180 |
msgid "Return to welcome screen."
|
1181 |
msgstr ""
|
1182 |
|
1183 |
-
#: ../classes/upgrade.php:
|
1184 |
msgid "Upgrade Complete!"
|
1185 |
msgstr ""
|
1186 |
|
1187 |
-
#: ../classes/upgrade.php:
|
1188 |
msgid "Return to settings."
|
1189 |
msgstr ""
|
1190 |
|
1191 |
-
#: ../classes/upgrade.php:
|
1192 |
msgid "Error"
|
1193 |
msgstr ""
|
1194 |
|
1195 |
-
#: ../classes/upgrade.php:
|
1196 |
msgid ""
|
1197 |
"Sorry. Something went wrong during the upgrade process. Please report this "
|
1198 |
"on the support forum."
|
1199 |
msgstr ""
|
1200 |
|
1201 |
-
#: ../codepress-admin-columns.php:
|
1202 |
msgid "Edit columns"
|
1203 |
msgstr ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Codepress Admin Columns\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2014-06-25 16:44+0100\n"
|
6 |
+
"PO-Revision-Date: 2014-06-25 16:44+0100\n"
|
7 |
"Last-Translator: Codepress <info@codepress.nl>\n"
|
8 |
"Language-Team: Codepress <info@codepress.nl>\n"
|
9 |
"Language: en_GB\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
"X-Poedit-SearchPath-1: ..\n"
|
20 |
|
21 |
+
#: ../classes/addons.php:110
|
22 |
msgid "Third party plugin integration"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: ../classes/addons.php:135
|
26 |
msgid "Advanced Custom Fields"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: ../classes/addons.php:136
|
30 |
msgid ""
|
31 |
"Display and edit Advanced Custom Fields fields in the posts overview in "
|
32 |
"seconds!"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: ../classes/column.php:503
|
36 |
msgid "Thumbnail"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: ../classes/column.php:504
|
40 |
msgid "Medium"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: ../classes/column.php:505
|
44 |
msgid "Large"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: ../classes/column.php:506
|
48 |
msgid "Full"
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: ../classes/column.php:773
|
52 |
msgid "Date Format"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: ../classes/column.php:774
|
56 |
msgid "This will determine how the date will be displayed."
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: ../classes/column.php:780
|
60 |
msgid "Example:"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: ../classes/column.php:782
|
64 |
#, php-format
|
65 |
msgid ""
|
66 |
"Leave empty for WordPress date format, change your <a href=\"%s\">default "
|
67 |
"date format here</a>."
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: ../classes/column.php:783
|
71 |
msgid "Documentation on date and time formatting."
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: ../classes/column.php:797
|
75 |
msgid "Excerpt length"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: ../classes/column.php:798
|
79 |
msgid "Number of words"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: ../classes/column.php:816
|
83 |
msgid "Preview size"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: ../classes/column.php:833 ../classes/storage_model.php:508
|
87 |
msgid "Custom"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: ../classes/column.php:836
|
91 |
msgid "width"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: ../classes/column.php:839
|
95 |
msgid "height"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: ../classes/column.php:853
|
99 |
msgid "Before"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: ../classes/column.php:853
|
103 |
msgid "This text will appear before the custom field value."
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: ../classes/column.php:859
|
107 |
msgid "After"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: ../classes/column.php:859
|
111 |
msgid "This text will appear after the custom field value."
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: ../classes/column.php:948 ../classes/column/comment/actions.php:99
|
115 |
+
#: ../classes/column/link/actions.php:48 ../classes/column/post/actions.php:60
|
116 |
+
#: ../classes/column/user/actions.php:69
|
117 |
msgid "Edit"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: ../classes/column.php:949 ../classes/column.php:1027
|
121 |
+
#: ../classes/column/user/actions.php:77
|
122 |
msgid "Remove"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: ../classes/column.php:967
|
126 |
msgid "Type"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: ../classes/column.php:967
|
130 |
msgid "Choose a column type."
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: ../classes/column.php:967 ../classes/column/comment/ID.php:19
|
134 |
+
#: ../classes/column/link/ID.php:19 ../classes/column/media/ID.php:19
|
135 |
+
#: ../classes/column/post/ID.php:19
|
136 |
msgid "ID"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: ../classes/column.php:977
|
140 |
msgid "Label"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: ../classes/column.php:977
|
144 |
msgid "This is the name which will appear as the column header."
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: ../classes/column.php:984 ../classes/column/media/width.php:19
|
148 |
msgid "Width"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: ../classes/column.php:986 ../classes/column.php:987
|
152 |
msgid "default"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: ../classes/column/acf-placeholder.php:19
|
156 |
msgid "ACF Field"
|
157 |
msgstr ""
|
158 |
|
174 |
"your posts overview."
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: ../classes/column/acf-placeholder.php:44
|
178 |
msgid "Find out more"
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: ../classes/column/comment/actions.php:19
|
182 |
+
#: ../classes/column/link/actions.php:19
|
183 |
+
#: ../classes/column/media/actions.php:20
|
184 |
+
#: ../classes/column/post/actions.php:19 ../classes/column/user/actions.php:19
|
185 |
msgid "Actions"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: ../classes/column/comment/actions.php:76
|
189 |
+
#: ../classes/column/comment/actions.php:81
|
190 |
msgid "Unapprove"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: ../classes/column/comment/actions.php:78
|
194 |
+
#: ../classes/column/comment/actions.php:80
|
195 |
msgid "Approve"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: ../classes/column/comment/actions.php:89
|
199 |
+
#: ../classes/column/post/actions.php:65 ../classes/settings.php:687
|
200 |
msgid "Restore"
|
201 |
msgstr ""
|
202 |
|
203 |
+
#: ../classes/column/comment/actions.php:93
|
204 |
+
#: ../classes/column/post/actions.php:69
|
205 |
msgid "Delete Permanently"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: ../classes/column/comment/actions.php:100
|
209 |
+
#: ../classes/column/post/actions.php:61
|
210 |
msgid "Quick Edit"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: ../classes/column/comment/actions.php:101
|
214 |
msgid "Reply"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: ../classes/column/comment/agent.php:19
|
218 |
msgid "Agent"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: ../classes/column/comment/approved.php:19
|
222 |
+
#: ../classes/column/post/comment-count.php:34
|
223 |
msgid "Approved"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: ../classes/column/comment/author-avatar.php:19
|
227 |
msgid "Avatar"
|
228 |
msgstr ""
|
229 |
|
230 |
+
#: ../classes/column/comment/author-email.php:19
|
231 |
msgid "Author email"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: ../classes/column/comment/author-ip.php:19
|
235 |
msgid "Author IP"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: ../classes/column/comment/author-url.php:19
|
239 |
msgid "Author url"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: ../classes/column/comment/author.php:19
|
243 |
msgid "Author"
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: ../classes/column/comment/date-gmt.php:19
|
247 |
msgid "Date GMT"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: ../classes/column/comment/date-gmt.php:30
|
251 |
+
#: ../classes/column/comment/date.php:30
|
252 |
#, php-format
|
253 |
msgid "Submitted on <a href=\"%1$s\">%2$s at %3$s</a>"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: ../classes/column/comment/date.php:19 ../classes/column/custom-field.php:67
|
257 |
#: ../classes/settings.php:300
|
258 |
msgid "Date"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: ../classes/column/comment/excerpt.php:19
|
262 |
+
#: ../classes/column/custom-field.php:68 ../classes/column/post/excerpt.php:19
|
263 |
#: ../classes/settings.php:297
|
264 |
msgid "Excerpt"
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: ../classes/column/comment/reply-to.php:19
|
268 |
msgid "In Reply To"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: ../classes/column/comment/word-count.php:19
|
272 |
+
#: ../classes/column/post/word-count.php:19
|
273 |
msgid "Word count"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: ../classes/column/custom-field.php:20
|
277 |
+
#: ../classes/column/custom-field.php:380 ../classes/settings.php:290
|
278 |
msgid "Custom Field"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: ../classes/column/custom-field.php:63 ../classes/settings.php:295
|
282 |
+
#: ../classes/storage_model.php:509
|
283 |
msgid "Default"
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: ../classes/column/custom-field.php:64
|
287 |
msgid "Checkmark (true/false)"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: ../classes/column/custom-field.php:65 ../classes/settings.php:304
|
291 |
msgid "Color"
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: ../classes/column/custom-field.php:66 ../classes/settings.php:305
|
295 |
msgid "Counter"
|
296 |
msgstr ""
|
297 |
|
298 |
+
#: ../classes/column/custom-field.php:69 ../classes/column/link/image.php:19
|
299 |
#: ../classes/settings.php:296
|
300 |
msgid "Image"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: ../classes/column/custom-field.php:70 ../classes/storage_model/media.php:13
|
304 |
msgid "Media Library"
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: ../classes/column/custom-field.php:71 ../classes/settings.php:298
|
308 |
msgid "Multiple Values"
|
309 |
msgstr ""
|
310 |
|
311 |
+
#: ../classes/column/custom-field.php:72 ../classes/settings.php:299
|
312 |
msgid "Numeric"
|
313 |
msgstr ""
|
314 |
|
315 |
+
#: ../classes/column/custom-field.php:73
|
316 |
msgid "Post Title (Post ID's)"
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: ../classes/column/custom-field.php:74
|
320 |
msgid "Username (User ID's)"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: ../classes/column/custom-field.php:380
|
324 |
msgid "Select your custom field."
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: ../classes/column/custom-field.php:390
|
328 |
msgid "No custom fields available."
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: ../classes/column/custom-field.php:397
|
332 |
msgid "Field Type"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: ../classes/column/custom-field.php:397
|
336 |
msgid "This will determine how the value will be displayed."
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: ../classes/column/link/actions.php:49
|
340 |
#, php-format
|
341 |
msgid ""
|
342 |
"You are about to delete this link '%s'\n"
|
343 |
" 'Cancel' to stop, 'OK' to delete."
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: ../classes/column/link/actions.php:49 ../classes/column/user/actions.php:75
|
347 |
msgid "Delete"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: ../classes/column/link/description.php:19
|
351 |
+
#: ../classes/column/media/description.php:19
|
352 |
+
#: ../classes/column/user/description.php:19
|
353 |
msgid "Description"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: ../classes/column/link/length.php:19
|
357 |
msgid "Length"
|
358 |
msgstr ""
|
359 |
|
360 |
+
#: ../classes/column/link/notes.php:19
|
361 |
msgid "Notes"
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: ../classes/column/link/owner.php:19
|
365 |
msgid "Owner"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: ../classes/column/link/rss.php:19
|
369 |
msgid "Rss"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: ../classes/column/link/target.php:19
|
373 |
msgid "Target"
|
374 |
msgstr ""
|
375 |
|
376 |
+
#: ../classes/column/media/alternate-text.php:19
|
377 |
msgid "Alt"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: ../classes/column/media/available-sizes.php:20
|
381 |
msgid "Available Sizes"
|
382 |
msgstr ""
|
383 |
|
384 |
+
#: ../classes/column/media/available-sizes.php:40
|
385 |
msgid "full size"
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: ../classes/column/media/caption.php:19
|
389 |
+
#: ../classes/column/media/exif-data.php:41
|
390 |
msgid "Caption"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: ../classes/column/media/dimensions.php:19
|
394 |
msgid "Dimensions"
|
395 |
msgstr ""
|
396 |
|
397 |
+
#: ../classes/column/media/exif-data.php:19
|
398 |
msgid "EXIF data"
|
399 |
msgstr ""
|
400 |
|
401 |
+
#: ../classes/column/media/exif-data.php:38
|
402 |
msgid "Aperture"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: ../classes/column/media/exif-data.php:39
|
406 |
msgid "Credit"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: ../classes/column/media/exif-data.php:40
|
410 |
msgid "Camera"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: ../classes/column/media/exif-data.php:42
|
414 |
msgid "Timestamp"
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: ../classes/column/media/exif-data.php:43
|
418 |
msgid "Copyright EXIF"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: ../classes/column/media/exif-data.php:44
|
422 |
msgid "Focal Length"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: ../classes/column/media/exif-data.php:45
|
426 |
msgid "ISO"
|
427 |
msgstr ""
|
428 |
|
429 |
+
#: ../classes/column/media/exif-data.php:46
|
430 |
msgid "Shutter Speed"
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: ../classes/column/media/exif-data.php:47
|
434 |
msgid "Title"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: ../classes/column/media/file-name.php:19
|
438 |
msgid "File name"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: ../classes/column/media/file-size.php:19
|
442 |
msgid "File size"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: ../classes/column/media/full-path.php:19
|
446 |
msgid "Full path"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: ../classes/column/media/height.php:19
|
450 |
msgid "Height"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: ../classes/column/media/mime-type.php:19
|
454 |
msgid "Mime type"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: ../classes/column/post/actions.php:60
|
458 |
msgid "Edit this item"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: ../classes/column/post/actions.php:61
|
462 |
msgid "Edit this item inline"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: ../classes/column/post/actions.php:65
|
466 |
msgid "Restore this item from the Trash"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: ../classes/column/post/actions.php:67
|
470 |
msgid "Move this item to the Trash"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: ../classes/column/post/actions.php:67
|
474 |
+
#: ../classes/column/post/comment-count.php:37
|
475 |
+
#: ../classes/column/post/status.php:41
|
476 |
msgid "Trash"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: ../classes/column/post/actions.php:69
|
480 |
msgid "Delete this item permanently"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: ../classes/column/post/actions.php:74
|
484 |
#, php-format
|
485 |
msgid "Preview “%s”"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: ../classes/column/post/actions.php:74
|
489 |
msgid "Preview"
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: ../classes/column/post/actions.php:76
|
493 |
#, php-format
|
494 |
msgid "View “%s”"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: ../classes/column/post/actions.php:76 ../classes/storage_model.php:707
|
498 |
msgid "View"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: ../classes/column/post/attachment-count.php:19
|
502 |
msgid "No. of Attachments"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: ../classes/column/post/attachment.php:19
|
506 |
msgid "Attachment"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: ../classes/column/post/author-name.php:19
|
510 |
msgid "Display Author As"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: ../classes/column/post/author-name.php:39
|
514 |
msgid "Display Name"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: ../classes/column/post/author-name.php:40
|
518 |
msgid "First Name"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: ../classes/column/post/author-name.php:41
|
522 |
msgid "Last Name"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: ../classes/column/post/author-name.php:42
|
526 |
+
#: ../classes/column/user/nickname.php:19
|
527 |
msgid "Nickname"
|
528 |
msgstr ""
|
529 |
|
530 |
+
#: ../classes/column/post/author-name.php:43
|
531 |
msgid "User Login"
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: ../classes/column/post/author-name.php:44
|
535 |
msgid "User Email"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: ../classes/column/post/author-name.php:45 ../classes/column/user/ID.php:19
|
539 |
msgid "User ID"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: ../classes/column/post/author-name.php:46
|
543 |
msgid "First and Last Name"
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: ../classes/column/post/author-name.php:123
|
547 |
msgid "This is the format of the author name."
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: ../classes/column/post/before-moretag.php:19
|
551 |
msgid "Before More Tag"
|
552 |
msgstr ""
|
553 |
|
554 |
+
#: ../classes/column/post/comment-count.php:19
|
555 |
msgid "Comment count"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: ../classes/column/post/comment-count.php:33
|
559 |
msgid "Total"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: ../classes/column/post/comment-count.php:35
|
563 |
msgid "Pending"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: ../classes/column/post/comment-count.php:36
|
567 |
msgid "Spam"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: ../classes/column/post/comment-count.php:98
|
571 |
+
#: ../classes/column/post/comment-status.php:19
|
572 |
msgid "Comment status"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: ../classes/column/post/comment-count.php:98
|
576 |
msgid "Select which comment status you like to display."
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: ../classes/column/post/featured-image.php:19
|
580 |
msgid "Featured Image"
|
581 |
msgstr ""
|
582 |
|
583 |
+
#: ../classes/column/post/formats.php:19
|
584 |
msgid "Post Format"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: ../classes/column/post/modified.php:19
|
588 |
msgid "Last modified"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: ../classes/column/post/order.php:19
|
592 |
msgid "Page Order"
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: ../classes/column/post/page-template.php:19
|
596 |
msgid "Page Template"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: ../classes/column/post/parent.php:19
|
600 |
msgid "Parent"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: ../classes/column/post/permalink.php:19
|
604 |
msgid "Permalink"
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: ../classes/column/post/permalink.php:68
|
608 |
+
msgid "Link to post"
|
609 |
+
msgstr ""
|
610 |
+
|
611 |
+
#: ../classes/column/post/permalink.php:68
|
612 |
+
msgid "This will make the permalink clickable."
|
613 |
+
msgstr ""
|
614 |
+
|
615 |
+
#: ../classes/column/post/permalink.php:72
|
616 |
+
msgid "Yes"
|
617 |
+
msgstr ""
|
618 |
+
|
619 |
+
#: ../classes/column/post/permalink.php:76
|
620 |
+
msgid "No"
|
621 |
+
msgstr ""
|
622 |
+
|
623 |
+
#: ../classes/column/post/ping-status.php:19
|
624 |
msgid "Ping status"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: ../classes/column/post/roles.php:19
|
628 |
msgid "Roles"
|
629 |
msgstr ""
|
630 |
|
631 |
+
#: ../classes/column/post/slug.php:19
|
632 |
msgid "Slug"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: ../classes/column/post/status.php:19
|
636 |
msgid "Status"
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: ../classes/column/post/status.php:35
|
640 |
msgid "Published"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: ../classes/column/post/status.php:36
|
644 |
msgid "Draft"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: ../classes/column/post/status.php:37
|
648 |
msgid "Scheduled"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: ../classes/column/post/status.php:38
|
652 |
msgid "Private"
|
653 |
msgstr ""
|
654 |
|
655 |
+
#: ../classes/column/post/status.php:39
|
656 |
msgid "Pending Review"
|
657 |
msgstr ""
|
658 |
|
659 |
+
#: ../classes/column/post/status.php:40
|
660 |
msgid "Auto Draft"
|
661 |
msgstr ""
|
662 |
|
663 |
+
#: ../classes/column/post/sticky.php:19
|
664 |
msgid "Sticky"
|
665 |
msgstr ""
|
666 |
|
667 |
+
#: ../classes/column/taxonomy.php:19 ../classes/column/taxonomy.php:106
|
668 |
msgid "Taxonomy"
|
669 |
msgstr ""
|
670 |
|
671 |
+
#: ../classes/column/user/comment-count.php:19
|
672 |
msgid "Comment Count"
|
673 |
msgstr ""
|
674 |
|
675 |
+
#: ../classes/column/user/first-name.php:19
|
676 |
msgid "First name"
|
677 |
msgstr ""
|
678 |
|
679 |
+
#: ../classes/column/user/last-name.php:19
|
680 |
msgid "Last name"
|
681 |
msgstr ""
|
682 |
|
683 |
+
#: ../classes/column/user/post-count.php:19
|
684 |
msgid "Post Count"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: ../classes/column/user/post-count.php:102
|
688 |
msgid "Post Type"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: ../classes/column/user/registered.php:19
|
692 |
msgid "Registered"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: ../classes/column/user/url.php:19
|
696 |
msgid "Url"
|
697 |
msgstr ""
|
698 |
|
709 |
msgstr ""
|
710 |
|
711 |
#: ../classes/settings.php:155 ../classes/settings.php:619
|
712 |
+
#: ../classes/upgrade.php:121
|
713 |
msgid "Admin Columns"
|
714 |
msgstr ""
|
715 |
|
917 |
msgid "Make sure you backup your database and then click"
|
918 |
msgstr ""
|
919 |
|
920 |
+
#: ../classes/settings.php:441 ../classes/upgrade.php:129
|
921 |
msgid "Upgrade Database"
|
922 |
msgstr ""
|
923 |
|
969 |
msgid "Changelog for"
|
970 |
msgstr ""
|
971 |
|
972 |
+
#: ../classes/settings.php:469 ../classes/upgrade.php:49
|
973 |
msgid "Learn more"
|
974 |
msgstr ""
|
975 |
|
1012 |
"undone. \\'OK\\' to delete, \\'Cancel\\' to stop"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
+
#: ../classes/settings.php:620 ../codepress-admin-columns.php:355
|
1016 |
msgid "Settings"
|
1017 |
msgstr ""
|
1018 |
|
1058 |
msgid "columns"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
+
#: ../classes/settings.php:706
|
1062 |
msgid "Get Admin Columns Pro"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
+
#: ../classes/settings.php:710
|
1066 |
msgid "Add Sorting"
|
1067 |
msgstr ""
|
1068 |
|
1069 |
+
#: ../classes/settings.php:711
|
1070 |
msgid "Add Filtering"
|
1071 |
msgstr ""
|
1072 |
|
1073 |
+
#: ../classes/settings.php:712
|
1074 |
msgid "Add Import/Export"
|
1075 |
msgstr ""
|
1076 |
|
1077 |
+
#: ../classes/settings.php:713
|
1078 |
msgid "Add Direct Editing"
|
1079 |
msgstr ""
|
1080 |
|
1081 |
+
#: ../classes/settings.php:716
|
1082 |
#, php-format
|
1083 |
msgid "Check out <a href=\"%s\">Admin Columns Pro</a> for more details!"
|
1084 |
msgstr ""
|
1085 |
|
1086 |
+
#: ../classes/settings.php:747
|
1087 |
msgid "Support"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
+
#: ../classes/settings.php:750
|
1091 |
msgid "Check the <strong>Help</strong> section in the top-right screen."
|
1092 |
msgstr ""
|
1093 |
|
1094 |
+
#: ../classes/settings.php:753
|
1095 |
#, php-format
|
1096 |
msgid ""
|
1097 |
"For full documentation, bug reports, feature suggestions and other tips <a "
|
1098 |
"href='%s'>visit the Admin Columns website</a>"
|
1099 |
msgstr ""
|
1100 |
|
1101 |
+
#: ../classes/settings.php:782
|
1102 |
msgid "Drag and drop to reorder"
|
1103 |
msgstr ""
|
1104 |
|
1105 |
+
#: ../classes/settings.php:785
|
1106 |
msgid "Add Column"
|
1107 |
msgstr ""
|
1108 |
|
1109 |
+
#: ../classes/settings.php:858
|
1110 |
msgid "Active"
|
1111 |
msgstr ""
|
1112 |
|
1113 |
+
#: ../classes/settings.php:859
|
1114 |
msgid "Deactivate"
|
1115 |
msgstr ""
|
1116 |
|
1117 |
+
#: ../classes/settings.php:866
|
1118 |
msgid "Installed"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
+
#: ../classes/settings.php:867
|
1122 |
msgid "Activate"
|
1123 |
msgstr ""
|
1124 |
|
1125 |
+
#: ../classes/settings.php:881
|
1126 |
msgid "Download & Install"
|
1127 |
msgstr ""
|
1128 |
|
1129 |
+
#: ../classes/settings.php:886
|
1130 |
msgid "Get this add-on"
|
1131 |
msgstr ""
|
1132 |
|
1133 |
+
#: ../classes/storage_model.php:214
|
1134 |
msgid "settings succesfully restored."
|
1135 |
msgstr ""
|
1136 |
|
1137 |
+
#: ../classes/storage_model.php:229
|
1138 |
msgid "No columns settings available."
|
1139 |
msgstr ""
|
1140 |
|
1141 |
+
#: ../classes/storage_model.php:250
|
1142 |
#, php-format
|
1143 |
msgid "You are trying to store the same settings for %s."
|
1144 |
msgstr ""
|
1145 |
|
1146 |
+
#: ../classes/storage_model.php:254
|
1147 |
#, php-format
|
1148 |
msgid "Settings for %s updated succesfully."
|
1149 |
msgstr ""
|
1160 |
msgid "Users"
|
1161 |
msgstr ""
|
1162 |
|
1163 |
+
#: ../classes/upgrade.php:48
|
1164 |
+
msgid ""
|
1165 |
+
"<strong>Important:</strong> We've noticed that you're using the "
|
1166 |
+
"<em>Pro add-on</em>, which is no longer supported by Admin Columns 2.2+. "
|
1167 |
+
"However, a free license of <strong>Admin Columns Pro</strong> <a href="
|
1168 |
+
"\"http://www.admincolumns.com/pro-addon-information/\" target=\"_blank\">is "
|
1169 |
+
"available</a>, which features a bunch of cool new features, including Direct "
|
1170 |
+
"Inline Editing!"
|
1171 |
+
msgstr ""
|
1172 |
+
|
1173 |
+
#: ../classes/upgrade.php:81
|
1174 |
msgid "Upgrade"
|
1175 |
msgstr ""
|
1176 |
|
1177 |
+
#: ../classes/upgrade.php:122
|
1178 |
msgid "requires a database upgrade"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
+
#: ../classes/upgrade.php:125
|
1182 |
msgid "why?"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
+
#: ../classes/upgrade.php:126
|
1186 |
msgid "Please"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
+
#: ../classes/upgrade.php:127
|
1190 |
msgid "backup your database"
|
1191 |
msgstr ""
|
1192 |
|
1193 |
+
#: ../classes/upgrade.php:128
|
1194 |
msgid "then click"
|
1195 |
msgstr ""
|
1196 |
|
1197 |
+
#: ../classes/upgrade.php:336
|
1198 |
msgid "Migrating Column Settings"
|
1199 |
msgstr ""
|
1200 |
|
1201 |
+
#: ../classes/upgrade.php:372
|
1202 |
msgid "No Upgrade Required"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
+
#: ../classes/upgrade.php:373
|
1206 |
msgid "Return to welcome screen."
|
1207 |
msgstr ""
|
1208 |
|
1209 |
+
#: ../classes/upgrade.php:391
|
1210 |
msgid "Upgrade Complete!"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
+
#: ../classes/upgrade.php:391
|
1214 |
msgid "Return to settings."
|
1215 |
msgstr ""
|
1216 |
|
1217 |
+
#: ../classes/upgrade.php:392
|
1218 |
msgid "Error"
|
1219 |
msgstr ""
|
1220 |
|
1221 |
+
#: ../classes/upgrade.php:393
|
1222 |
msgid ""
|
1223 |
"Sorry. Something went wrong during the upgrade process. Please report this "
|
1224 |
"on the support forum."
|
1225 |
msgstr ""
|
1226 |
|
1227 |
+
#: ../codepress-admin-columns.php:441
|
1228 |
msgid "Edit columns"
|
1229 |
msgstr ""
|
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,10 +246,12 @@ You can find a list of the available actions and filters (and examples on how to
|
|
246 |
|
247 |
== Changelog ==
|
248 |
|
|
|
|
|
|
|
|
|
249 |
= 2.2.1.1 =
|
250 |
* [Fixed] Fixed issue with Posts 2 Posts (and other third party plugins) columns not being displayed because of hooking into late actions on post pages
|
251 |
-
* [Updated] Added russian language, thanks to Arnold Klimenko.
|
252 |
-
* [Updated] Updated translations from Transifex
|
253 |
|
254 |
= 2.2.1 =
|
255 |
* [Added] Option to make permalink in permalink column clickable (linking to post)
|
@@ -329,7 +331,7 @@ You can find a list of the available actions and filters (and examples on how to
|
|
329 |
= 2.0.1 =
|
330 |
* [Fixed] Bug which caused columns to not include properly
|
331 |
|
332 |
-
= 2.0
|
333 |
* [Notice] Database needs an update, make sure to backup first
|
334 |
* [Changed] Sortorder licence is now an Pro Add-on
|
335 |
* [Changed] Some filters and hooks have been changed, see online documentation
|
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.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 |
|
247 |
== Changelog ==
|
248 |
|
249 |
+
= 2.2.2 =
|
250 |
+
* [Fixed] Custom Fields for Media Library did not work.
|
251 |
+
* [Fixed] Column type dropdown displayed an empty item.
|
252 |
+
|
253 |
= 2.2.1.1 =
|
254 |
* [Fixed] Fixed issue with Posts 2 Posts (and other third party plugins) columns not being displayed because of hooking into late actions on post pages
|
|
|
|
|
255 |
|
256 |
= 2.2.1 =
|
257 |
* [Added] Option to make permalink in permalink column clickable (linking to post)
|
331 |
= 2.0.1 =
|
332 |
* [Fixed] Bug which caused columns to not include properly
|
333 |
|
334 |
+
= 2.0 =
|
335 |
* [Notice] Database needs an update, make sure to backup first
|
336 |
* [Changed] Sortorder licence is now an Pro Add-on
|
337 |
* [Changed] Some filters and hooks have been changed, see online documentation
|