Version Description
- New: Quick Edit action for inline editing of attachment metadata
- New: Post Author can be changed
- New: Hyperlink to phpDocs documentation added to Settings page
- New: Shortcode documentation added to settings page
- New: Some book credits added to the "Other Notes" section
- Change: Minified version of JavaScript files are loaded unless 'SCRIPT_DEBUG' is defined as true in wp-config.php
- Change: Global functions moved into classes to minimize the chance of name conflicts
- Change: All class, function and constant names are now checked for conflicts with other plugins and themes
- Fix: Retain pagination values, e.g., page 3 of 5, when returning from row-level actions
- Fix: Retain orderby and order values, e.g., descending sort on date, when returning from row-level actions
Download this release
Release Info
Developer | dglingren |
Plugin | Media Library Assistant |
Version | 0.20 |
Comparing to | |
See all releases |
Code changes from version 0.11 to 0.20
- css/mla-style.css +31 -0
- includes/class-mla-data.php +57 -17
- includes/class-mla-list-table.php +99 -27
- includes/class-mla-main.php +343 -44
- includes/class-mla-objects.php +188 -0
- includes/class-mla-settings.php +24 -9
- includes/class-mla-shortcodes.php +110 -0
- includes/mla-objects.php +0 -172
- includes/mla-plugin-loader.php +62 -0
- includes/mla-shortcodes.php +0 -94
- index.php +79 -45
- js/mla-inline-edit-scripts.dev.js +250 -0
- js/mla-inline-edit-scripts.js +1 -0
- js/{mla-scripts.js → mla-single-edit-scripts.dev.js} +16 -18
- js/mla-single-edit-scripts.js +1 -0
- phpDocs/classes.svg +39 -25
- phpDocs/classes/MLA.html +132 -19
- phpDocs/classes/MLAData.html +23 -26
- phpDocs/classes/MLAObjects.html +224 -0
- phpDocs/classes/MLASettings.html +8 -11
- phpDocs/{packages/Default.html → classes/MLAShortcodes.html} +62 -11
- phpDocs/classes/MLATest.html +4 -7
- phpDocs/classes/MLA_List_Table.html +52 -14
- phpDocs/deprecated.html +4 -7
- phpDocs/errors.html +5 -7
- phpDocs/graph_class.html +4 -7
- phpDocs/index.html +5 -8
- phpDocs/markers.html +4 -7
- phpDocs/namespaces/global.html +23 -119
- phpDocs/packages/Media Library Assistant.html +27 -134
- phpDocs/structure.xml +835 -610
- readme.txt +26 -1
- tests/class-mla-tests.php +43 -44
- tpls/admin-display-settings-page.tpl +15 -0
- tpls/admin-display-single-document.tpl +7 -1
- tpls/admin-display-single-image.tpl +7 -1
- tpls/admin-inline-edit-form.tpl +61 -0
- tpls/help-for-media_page_mla-menu.tpl +2 -2
css/mla-style.css
CHANGED
@@ -61,3 +61,34 @@ textarea[readonly] {
|
|
61 |
.mla-media-item .describe textarea {
|
62 |
width: 100%
|
63 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
.mla-media-item .describe textarea {
|
62 |
width: 100%
|
63 |
}
|
64 |
+
|
65 |
+
/*
|
66 |
+
* MLA Inline editing - adapted from load-styles.php
|
67 |
+
*/
|
68 |
+
#wpbody-content .quick-edit-row-attachment .inline-edit-col-left {
|
69 |
+
width: 40%
|
70 |
+
}
|
71 |
+
|
72 |
+
#wpbody-content .quick-edit-row-attachment .inline-edit-col-center {
|
73 |
+
width: 20%
|
74 |
+
}
|
75 |
+
|
76 |
+
#wpbody-content .quick-edit-row-attachment .inline-edit-col-right {
|
77 |
+
width: 39%
|
78 |
+
}
|
79 |
+
|
80 |
+
.inline-edit-row fieldset.inline-edit-col-left label span.title{
|
81 |
+
width: 6em
|
82 |
+
}
|
83 |
+
|
84 |
+
.inline-edit-row fieldset.inline-edit-col-left label span.input-text-wrap{
|
85 |
+
margin-left: 6em
|
86 |
+
}
|
87 |
+
|
88 |
+
.inline-edit-row fieldset.inline-edit-col-left label.inline-edit-post-parent span.input-text-wrap{
|
89 |
+
width: 5em
|
90 |
+
}
|
91 |
+
|
92 |
+
.inline-edit-row fieldset.inline-edit-col-right label span.title{
|
93 |
+
width: 99%
|
94 |
+
}
|
includes/class-mla-data.php
CHANGED
@@ -36,10 +36,11 @@ class MLAData {
|
|
36 |
*
|
37 |
* @param string $filepath Complete path and name of the template file
|
38 |
*
|
39 |
-
* @return string
|
40 |
-
*
|
41 |
-
*
|
42 |
-
*
|
|
|
43 |
*/
|
44 |
public static function mla_load_template( $filepath ) {
|
45 |
if ( !file_exists( $filepath ) )
|
@@ -64,15 +65,49 @@ class MLAData {
|
|
64 |
$template_key = preg_split( '#"#', $value[0] );
|
65 |
$template_key = $template_key[1];
|
66 |
$template_value = substr( $template, $value[1] + strlen( $value[0] ), $current_offset - ( $value[1] + strlen( $value[0] ) ) );
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
$current_offset = $value[1];
|
69 |
-
}
|
70 |
|
71 |
return $template_array;
|
72 |
}
|
73 |
|
74 |
/**
|
75 |
-
* Expand a template, replacing place holders with their values
|
76 |
*
|
77 |
* A simple parsing function for basic templating.
|
78 |
*
|
@@ -93,7 +128,7 @@ class MLAData {
|
|
93 |
}
|
94 |
|
95 |
/**
|
96 |
-
* Sanitize and expand query arguments from request variables
|
97 |
*
|
98 |
* Prepare the arguments for WP_Query.
|
99 |
* Modeled after wp_edit_attachments_query in wp-admin/post.php
|
@@ -174,9 +209,9 @@ class MLAData {
|
|
174 |
}
|
175 |
|
176 |
/**
|
177 |
-
* Retrieve attachment objects for list table display
|
178 |
*
|
179 |
-
* Supports prepare_items in class-mla-list-table.php
|
180 |
* Modeled after wp_edit_attachments_query in wp-admin/post.php
|
181 |
*
|
182 |
* @since 0.1
|
@@ -208,6 +243,12 @@ class MLAData {
|
|
208 |
$request['posts_per_page'] = $count;
|
209 |
}
|
210 |
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
$results = new WP_Query( $request );
|
212 |
|
213 |
if ( isset( $request['detached'] ) )
|
@@ -235,7 +276,7 @@ class MLAData {
|
|
235 |
* Add references
|
236 |
*/
|
237 |
$references = self::mla_fetch_attachment_references( $attachment->ID, $attachment->post_parent );
|
238 |
-
$attachments[ $index ]->
|
239 |
}
|
240 |
|
241 |
return $attachments;
|
@@ -260,7 +301,7 @@ class MLAData {
|
|
260 |
}
|
261 |
|
262 |
/**
|
263 |
-
* Retrieve an Attachment array given a $post_id
|
264 |
*
|
265 |
* The (associative) array will contain every field that can be found in
|
266 |
* the posts and postmeta tables, and all references to the attachment.
|
@@ -268,7 +309,7 @@ class MLAData {
|
|
268 |
* @since 0.1
|
269 |
*
|
270 |
* @param int $post_id The ID of the attachment post.
|
271 |
-
* @return
|
272 |
*/
|
273 |
function mla_get_attachment_by_id( $post_id ) {
|
274 |
global $wpdb, $post;
|
@@ -307,7 +348,7 @@ class MLAData {
|
|
307 |
}
|
308 |
|
309 |
/**
|
310 |
-
* Find Featured Image and inserted image/link references to an attachment
|
311 |
*
|
312 |
* Searches all post and page content to see if the attachment is used
|
313 |
* as a Featured Image or inserted in the post as an image or link.
|
@@ -436,7 +477,7 @@ class MLAData {
|
|
436 |
}
|
437 |
|
438 |
/**
|
439 |
-
* Returns information about an attachment's parent, if found
|
440 |
*
|
441 |
* @since 0.1
|
442 |
*
|
@@ -460,7 +501,7 @@ class MLAData {
|
|
460 |
}
|
461 |
|
462 |
/**
|
463 |
-
* Fetch and filter meta data for an attachment
|
464 |
*
|
465 |
* Returns a filtered array of a post's meta data. Internal values beginning with '_'
|
466 |
* are stripped out or converted to an 'mla_' equivalent. Array data is replaced with
|
@@ -509,6 +550,5 @@ class MLAData {
|
|
509 |
|
510 |
return $results;
|
511 |
}
|
512 |
-
|
513 |
} // class MLAData
|
514 |
?>
|
36 |
*
|
37 |
* @param string $filepath Complete path and name of the template file
|
38 |
*
|
39 |
+
* @return string|array|false|NULL
|
40 |
+
* string for files that do not contain template divider comments,
|
41 |
+
* array for files containing template divider comments,
|
42 |
+
* false if file does not exist,
|
43 |
+
* NULL if file could not be loaded.
|
44 |
*/
|
45 |
public static function mla_load_template( $filepath ) {
|
46 |
if ( !file_exists( $filepath ) )
|
65 |
$template_key = preg_split( '#"#', $value[0] );
|
66 |
$template_key = $template_key[1];
|
67 |
$template_value = substr( $template, $value[1] + strlen( $value[0] ), $current_offset - ( $value[1] + strlen( $value[0] ) ) );
|
68 |
+
/*
|
69 |
+
* Trim exactly one newline sequence from the start of the value
|
70 |
+
*/
|
71 |
+
if ( 0 === strpos( $template_value, "\r\n" ) )
|
72 |
+
$offset = 2;
|
73 |
+
elseif ( 0 === strpos( $template_value, "\n\r" ) )
|
74 |
+
$offset = 2;
|
75 |
+
elseif ( 0 === strpos( $template_value, "\n" ) )
|
76 |
+
$offset = 1;
|
77 |
+
elseif ( 0 === strpos( $template_value, "\r" ) )
|
78 |
+
$offset = 1;
|
79 |
+
else
|
80 |
+
$offset = 0;
|
81 |
+
|
82 |
+
$template_value = substr( $template_value, $offset );
|
83 |
+
|
84 |
+
/*
|
85 |
+
* Trim exactly one newline sequence from the end of the value
|
86 |
+
*/
|
87 |
+
$length = strlen( $template_value );
|
88 |
+
if ( $length > 2)
|
89 |
+
$postfix = substr( $template_value, ($length - 2), 2 );
|
90 |
+
else
|
91 |
+
$postfix = $template_value;
|
92 |
+
|
93 |
+
if ( 0 === strpos( $postfix, "\r\n" ) )
|
94 |
+
$length -= 2;
|
95 |
+
elseif ( 0 === strpos( $postfix, "\n\r" ) )
|
96 |
+
$length -= 2;
|
97 |
+
elseif ( 0 === strpos( $postfix, "\n" ) )
|
98 |
+
$length -= 1;
|
99 |
+
elseif ( 0 === strpos( $postfix, "\r" ) )
|
100 |
+
$length -= 1;
|
101 |
+
|
102 |
+
$template_array[ $template_key ] = substr( $template_value, 0, $length );
|
103 |
$current_offset = $value[1];
|
104 |
+
} // foreach $matches
|
105 |
|
106 |
return $template_array;
|
107 |
}
|
108 |
|
109 |
/**
|
110 |
+
* Expand a template, replacing place holders with their values
|
111 |
*
|
112 |
* A simple parsing function for basic templating.
|
113 |
*
|
128 |
}
|
129 |
|
130 |
/**
|
131 |
+
* Sanitize and expand query arguments from request variables
|
132 |
*
|
133 |
* Prepare the arguments for WP_Query.
|
134 |
* Modeled after wp_edit_attachments_query in wp-admin/post.php
|
209 |
}
|
210 |
|
211 |
/**
|
212 |
+
* Retrieve attachment objects for list table display
|
213 |
*
|
214 |
+
* Supports prepare_items in class-mla-list-table.php.
|
215 |
* Modeled after wp_edit_attachments_query in wp-admin/post.php
|
216 |
*
|
217 |
* @since 0.1
|
243 |
$request['posts_per_page'] = $count;
|
244 |
}
|
245 |
|
246 |
+
/*
|
247 |
+
* Ignore old paged value; use offset
|
248 |
+
*/
|
249 |
+
if (isset($request['paged']))
|
250 |
+
unset($request['paged']);
|
251 |
+
|
252 |
$results = new WP_Query( $request );
|
253 |
|
254 |
if ( isset( $request['detached'] ) )
|
276 |
* Add references
|
277 |
*/
|
278 |
$references = self::mla_fetch_attachment_references( $attachment->ID, $attachment->post_parent );
|
279 |
+
$attachments[ $index ]->mla_references = $references;
|
280 |
}
|
281 |
|
282 |
return $attachments;
|
301 |
}
|
302 |
|
303 |
/**
|
304 |
+
* Retrieve an Attachment array given a $post_id
|
305 |
*
|
306 |
* The (associative) array will contain every field that can be found in
|
307 |
* the posts and postmeta tables, and all references to the attachment.
|
309 |
* @since 0.1
|
310 |
*
|
311 |
* @param int $post_id The ID of the attachment post.
|
312 |
+
* @return NULL|array NULL on failure else associative array.
|
313 |
*/
|
314 |
function mla_get_attachment_by_id( $post_id ) {
|
315 |
global $wpdb, $post;
|
348 |
}
|
349 |
|
350 |
/**
|
351 |
+
* Find Featured Image and inserted image/link references to an attachment
|
352 |
*
|
353 |
* Searches all post and page content to see if the attachment is used
|
354 |
* as a Featured Image or inserted in the post as an image or link.
|
477 |
}
|
478 |
|
479 |
/**
|
480 |
+
* Returns information about an attachment's parent, if found
|
481 |
*
|
482 |
* @since 0.1
|
483 |
*
|
501 |
}
|
502 |
|
503 |
/**
|
504 |
+
* Fetch and filter meta data for an attachment
|
505 |
*
|
506 |
* Returns a filtered array of a post's meta data. Internal values beginning with '_'
|
507 |
* are stripped out or converted to an 'mla_' equivalent. Array data is replaced with
|
550 |
|
551 |
return $results;
|
552 |
}
|
|
|
553 |
} // class MLAData
|
554 |
?>
|
includes/class-mla-list-table.php
CHANGED
@@ -14,7 +14,9 @@ if ( !class_exists( 'WP_List_Table' ) ) {
|
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
-
* Class MLA (Media Library Assistant) List Table
|
|
|
|
|
18 |
*
|
19 |
* @package Media Library Assistant
|
20 |
* @since 0.1
|
@@ -220,6 +222,10 @@ class MLA_List_Table extends WP_List_Table {
|
|
220 |
) );
|
221 |
|
222 |
$this->currently_hidden = self::get_hidden_columns();
|
|
|
|
|
|
|
|
|
223 |
}
|
224 |
|
225 |
/**
|
@@ -291,6 +297,15 @@ class MLA_List_Table extends WP_List_Table {
|
|
291 |
'page' => $_REQUEST['page'],
|
292 |
'mla_item_ID' => $item->ID
|
293 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
|
295 |
if ( isset( $_REQUEST['detached'] ) )
|
296 |
$view_args['detached'] = $_REQUEST['detached'];
|
@@ -304,22 +319,24 @@ class MLA_List_Table extends WP_List_Table {
|
|
304 |
|
305 |
if ( isset( $_REQUEST['att_cat'] ) )
|
306 |
$view_args['att_cat'] = $_REQUEST['att_cat'];
|
307 |
-
|
308 |
if ( current_user_can( 'edit_post', $item->ID ) ) {
|
309 |
if ( $this->is_trash )
|
310 |
-
$actions['restore'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_RESTORE, MLA::MLA_ADMIN_NONCE ) ) . '">Restore</a>';
|
311 |
-
else
|
312 |
-
$actions['edit'] = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '">Edit</a>';
|
|
|
|
|
313 |
} // edit_post
|
314 |
|
315 |
if ( current_user_can( 'delete_post', $item->ID ) ) {
|
316 |
if ( !$this->is_trash && EMPTY_TRASH_DAYS && MEDIA_TRASH )
|
317 |
-
$actions['trash'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_TRASH, MLA::MLA_ADMIN_NONCE ) ) . '">Move to Trash</a>';
|
318 |
else {
|
319 |
// If using trash for posts and pages but not for attachments, warn before permanently deleting
|
320 |
$delete_ays = EMPTY_TRASH_DAYS && !MEDIA_TRASH ? ' onclick="return showNotice.warn();"' : '';
|
321 |
|
322 |
-
$actions['delete'] = '<a class="submitdelete"' . $delete_ays . ' href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_DELETE, MLA::MLA_ADMIN_NONCE ) ) . '">Delete Permanently</a>';
|
323 |
}
|
324 |
} // delete_post
|
325 |
|
@@ -329,6 +346,46 @@ class MLA_List_Table extends WP_List_Table {
|
|
329 |
return $actions;
|
330 |
}
|
331 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
/**
|
333 |
* Supply the content for a custom column
|
334 |
*
|
@@ -341,7 +398,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
341 |
$row_actions = self::_build_rollover_actions( $item, 'ID_parent' );
|
342 |
|
343 |
if ( !empty( $row_actions ) ) {
|
344 |
-
return sprintf( '%1$s<br><span style="color:silver">(parent:%2$s)</span><br>%3$s', /*%1$s*/ $item->ID, /*%2$s*/ $item->post_parent, /*%3$s*/ $this->row_actions( $row_actions ) );
|
345 |
} else {
|
346 |
return sprintf( '%1$s<br><span style="color:silver">(parent:%2$s)</span>', /*%1$s*/ $item->ID, /*%2$s*/ $item->post_parent );
|
347 |
}
|
@@ -357,13 +414,13 @@ class MLA_List_Table extends WP_List_Table {
|
|
357 |
*/
|
358 |
function column_title_name( $item ) {
|
359 |
$errors = '';
|
360 |
-
if ( !$item->
|
361 |
$errors .= '(ORPHAN) ';
|
362 |
|
363 |
-
if ( $item->
|
364 |
$errors .= '(UNATTACHED) ';
|
365 |
else {
|
366 |
-
if ( !$item->
|
367 |
$errors .= '(BAD PARENT) ';
|
368 |
}
|
369 |
|
@@ -435,9 +492,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
435 |
function column_featured( $item ) {
|
436 |
$value = '';
|
437 |
|
438 |
-
foreach ( $item->
|
439 |
-
// error_log("\$feature = ".var_export($feature, true), 0);
|
440 |
-
|
441 |
if ( $feature_id == $item->post_parent )
|
442 |
$parent = 'PARENT ';
|
443 |
else
|
@@ -460,9 +515,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
460 |
function column_inserted( $item ) {
|
461 |
$value = '';
|
462 |
|
463 |
-
foreach ( $item->
|
464 |
-
// error_log("\$file = ".var_export($file, true), 0);
|
465 |
-
// error_log("\$inserts = ".var_export($inserts, true), 0);
|
466 |
$value .= sprintf( '<strong>%1$s</strong><br>', $file );
|
467 |
|
468 |
foreach ( $inserts as $insert ) {
|
@@ -526,7 +579,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
526 |
* @return string HTML markup to be placed inside the column
|
527 |
*/
|
528 |
function column_base_file( $item ) {
|
529 |
-
return $item->
|
530 |
}
|
531 |
|
532 |
/**
|
@@ -705,7 +758,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
705 |
* @since 0.1
|
706 |
*
|
707 |
* @return array Sortable column information,e.g.,
|
708 |
-
* 'slugs'=>array('data_values',
|
709 |
*/
|
710 |
function get_sortable_columns( ) {
|
711 |
$columns = MLA_List_Table::$default_sortable_columns;
|
@@ -909,7 +962,6 @@ class MLA_List_Table extends WP_List_Table {
|
|
909 |
/*
|
910 |
* REQUIRED for pagination.
|
911 |
*/
|
912 |
-
$current_page = $this->get_pagenum();
|
913 |
$total_items = $this->_count_list_table_items( $_REQUEST );
|
914 |
$user = get_current_user_id();
|
915 |
$screen = get_current_screen();
|
@@ -919,12 +971,6 @@ class MLA_List_Table extends WP_List_Table {
|
|
919 |
$per_page = $screen->get_option( 'per_page', 'default' );
|
920 |
}
|
921 |
|
922 |
-
/*
|
923 |
-
* REQUIRED. Assign sorted and paginated data to the items property, where
|
924 |
-
* it can be used by the rest of the class.
|
925 |
-
*/
|
926 |
-
$this->items = MLAData::mla_query_list_table_items( $_REQUEST, $orderby, $order, ( ( $current_page - 1 ) * $per_page ), $per_page );
|
927 |
-
|
928 |
/*
|
929 |
* REQUIRED. We also have to register our pagination options & calculations.
|
930 |
*/
|
@@ -933,8 +979,34 @@ class MLA_List_Table extends WP_List_Table {
|
|
933 |
'per_page' => $per_page, //WE have to determine how many items to show on a page
|
934 |
'total_pages' => ceil( $total_items / $per_page ) //WE have to calculate the total number of pages
|
935 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
936 |
}
|
937 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
938 |
/**
|
939 |
* Get possible mime types for view preparation.
|
940 |
* Modeled after get_post_mime_types in wp-admin/includes/post.php,
|
@@ -1039,7 +1111,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
1039 |
*
|
1040 |
* @param array Query variables, e.g., from $_REQUEST
|
1041 |
*
|
1042 |
-
* @return
|
1043 |
*/
|
1044 |
private function _count_list_table_items( $request )
|
1045 |
{
|
14 |
}
|
15 |
|
16 |
/**
|
17 |
+
* Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu
|
18 |
+
*
|
19 |
+
* Extends the core WP_List_Table class.
|
20 |
*
|
21 |
* @package Media Library Assistant
|
22 |
* @since 0.1
|
222 |
) );
|
223 |
|
224 |
$this->currently_hidden = self::get_hidden_columns();
|
225 |
+
|
226 |
+
/*
|
227 |
+
* NOTE: There are two add_filter calls at the end of this source file.
|
228 |
+
*/
|
229 |
}
|
230 |
|
231 |
/**
|
297 |
'page' => $_REQUEST['page'],
|
298 |
'mla_item_ID' => $item->ID
|
299 |
);
|
300 |
+
|
301 |
+
if ( isset( $_REQUEST['paged'] ) )
|
302 |
+
$view_args['paged'] = $_REQUEST['paged'];
|
303 |
+
|
304 |
+
if ( isset( $_REQUEST['order'] ) )
|
305 |
+
$view_args['order'] = $_REQUEST['order'];
|
306 |
+
|
307 |
+
if ( isset( $_REQUEST['orderby'] ) )
|
308 |
+
$view_args['orderby'] = $_REQUEST['orderby'];
|
309 |
|
310 |
if ( isset( $_REQUEST['detached'] ) )
|
311 |
$view_args['detached'] = $_REQUEST['detached'];
|
319 |
|
320 |
if ( isset( $_REQUEST['att_cat'] ) )
|
321 |
$view_args['att_cat'] = $_REQUEST['att_cat'];
|
322 |
+
|
323 |
if ( current_user_can( 'edit_post', $item->ID ) ) {
|
324 |
if ( $this->is_trash )
|
325 |
+
$actions['restore'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_RESTORE, MLA::MLA_ADMIN_NONCE ) ) . '" title="Restore this item from the Trash">Restore</a>';
|
326 |
+
else {
|
327 |
+
$actions['edit'] = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '" title="Edit this item">Edit</a>';
|
328 |
+
$actions['inline hide-if-no-js'] = '<a class="editinline" href="#" title="Edit this item inline">Quick Edit</a>';
|
329 |
+
}
|
330 |
} // edit_post
|
331 |
|
332 |
if ( current_user_can( 'delete_post', $item->ID ) ) {
|
333 |
if ( !$this->is_trash && EMPTY_TRASH_DAYS && MEDIA_TRASH )
|
334 |
+
$actions['trash'] = '<a class="submitdelete" href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_TRASH, MLA::MLA_ADMIN_NONCE ) ) . '" title="Move this item to the Trash">Move to Trash</a>';
|
335 |
else {
|
336 |
// If using trash for posts and pages but not for attachments, warn before permanently deleting
|
337 |
$delete_ays = EMPTY_TRASH_DAYS && !MEDIA_TRASH ? ' onclick="return showNotice.warn();"' : '';
|
338 |
|
339 |
+
$actions['delete'] = '<a class="submitdelete"' . $delete_ays . ' href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_DELETE, MLA::MLA_ADMIN_NONCE ) ) . '" title="Delete this item Permanently">Delete Permanently</a>';
|
340 |
}
|
341 |
} // delete_post
|
342 |
|
346 |
return $actions;
|
347 |
}
|
348 |
|
349 |
+
/**
|
350 |
+
* Add hidden fields with the data for use in the inline editor
|
351 |
+
*
|
352 |
+
* @since 0.20
|
353 |
+
*
|
354 |
+
* @param object A singular attachment (post) object
|
355 |
+
*
|
356 |
+
* @return string HTML <div> with row data
|
357 |
+
*/
|
358 |
+
private function _build_inline_data( $item ) {
|
359 |
+
$inline_data = "\r\n" . '<div class="hidden" id="inline_' . $item->ID . "\">\r\n";
|
360 |
+
$inline_data .= ' <div class="post_title">' . $item->post_title . "</div>\r\n";
|
361 |
+
$inline_data .= ' <div class="post_name">' . $item->post_name . "</div>\r\n";
|
362 |
+
|
363 |
+
if ( !empty( $item->mla_wp_attachment_metadata ) ) {
|
364 |
+
if ( isset( $item->mla_wp_attachment_image_alt ) )
|
365 |
+
$inline_data .= ' <div class="image_alt">' . $item->mla_wp_attachment_image_alt . "</div>\r\n";
|
366 |
+
else
|
367 |
+
$inline_data .= ' <div class="image_alt">' . "</div>\r\n";
|
368 |
+
}
|
369 |
+
|
370 |
+
$inline_data .= ' <div class="post_parent">' . $item->post_parent . "</div>\r\n";
|
371 |
+
$inline_data .= ' <div class="post_author">' . $item->post_author . "</div>\r\n";
|
372 |
+
|
373 |
+
$taxonomies = get_object_taxonomies( 'attachment', 'objects' );
|
374 |
+
|
375 |
+
foreach ( $taxonomies as $tax_name => $tax_object ) {
|
376 |
+
if ( $tax_object->hierarchical && $tax_object->show_ui ) {
|
377 |
+
$inline_data .= ' <div class="mla_category" id="' . $tax_name . '_' . $item->ID . '">'
|
378 |
+
. implode( ',', wp_get_object_terms( $item->ID, $tax_name, array( 'fields' => 'ids' ) ) ) . "</div>\r\n";
|
379 |
+
} elseif ( $tax_object->show_ui ) {
|
380 |
+
$inline_data .= ' <div class="mla_tags" id="'.$tax_name.'_'.$item->ID. '">'
|
381 |
+
. esc_html( str_replace( ',', ', ', get_terms_to_edit( $item->ID, $tax_name ) ) ) . "</div>\r\n";
|
382 |
+
}
|
383 |
+
}
|
384 |
+
|
385 |
+
$inline_data .= "</div>\r\n";
|
386 |
+
return $inline_data;
|
387 |
+
}
|
388 |
+
|
389 |
/**
|
390 |
* Supply the content for a custom column
|
391 |
*
|
398 |
$row_actions = self::_build_rollover_actions( $item, 'ID_parent' );
|
399 |
|
400 |
if ( !empty( $row_actions ) ) {
|
401 |
+
return sprintf( '%1$s<br><span style="color:silver">(parent:%2$s)</span><br>%3$s%4$s', /*%1$s*/ $item->ID, /*%2$s*/ $item->post_parent, /*%3$s*/ $this->row_actions( $row_actions ), /*%4$s*/ $this->_build_inline_data( $item ) );
|
402 |
} else {
|
403 |
return sprintf( '%1$s<br><span style="color:silver">(parent:%2$s)</span>', /*%1$s*/ $item->ID, /*%2$s*/ $item->post_parent );
|
404 |
}
|
414 |
*/
|
415 |
function column_title_name( $item ) {
|
416 |
$errors = '';
|
417 |
+
if ( !$item->mla_references['found_reference'] )
|
418 |
$errors .= '(ORPHAN) ';
|
419 |
|
420 |
+
if ( $item->mla_references['is_unattached'] )
|
421 |
$errors .= '(UNATTACHED) ';
|
422 |
else {
|
423 |
+
if ( !$item->mla_references['found_parent'] )
|
424 |
$errors .= '(BAD PARENT) ';
|
425 |
}
|
426 |
|
492 |
function column_featured( $item ) {
|
493 |
$value = '';
|
494 |
|
495 |
+
foreach ( $item->mla_references['features'] as $feature_id => $feature ) {
|
|
|
|
|
496 |
if ( $feature_id == $item->post_parent )
|
497 |
$parent = 'PARENT ';
|
498 |
else
|
515 |
function column_inserted( $item ) {
|
516 |
$value = '';
|
517 |
|
518 |
+
foreach ( $item->mla_references['inserts'] as $file => $inserts ) {
|
|
|
|
|
519 |
$value .= sprintf( '<strong>%1$s</strong><br>', $file );
|
520 |
|
521 |
foreach ( $inserts as $insert ) {
|
579 |
* @return string HTML markup to be placed inside the column
|
580 |
*/
|
581 |
function column_base_file( $item ) {
|
582 |
+
return $item->mla_references['base_file'];
|
583 |
}
|
584 |
|
585 |
/**
|
758 |
* @since 0.1
|
759 |
*
|
760 |
* @return array Sortable column information,e.g.,
|
761 |
+
* 'slugs'=>array('data_values',boolean)
|
762 |
*/
|
763 |
function get_sortable_columns( ) {
|
764 |
$columns = MLA_List_Table::$default_sortable_columns;
|
962 |
/*
|
963 |
* REQUIRED for pagination.
|
964 |
*/
|
|
|
965 |
$total_items = $this->_count_list_table_items( $_REQUEST );
|
966 |
$user = get_current_user_id();
|
967 |
$screen = get_current_screen();
|
971 |
$per_page = $screen->get_option( 'per_page', 'default' );
|
972 |
}
|
973 |
|
|
|
|
|
|
|
|
|
|
|
|
|
974 |
/*
|
975 |
* REQUIRED. We also have to register our pagination options & calculations.
|
976 |
*/
|
979 |
'per_page' => $per_page, //WE have to determine how many items to show on a page
|
980 |
'total_pages' => ceil( $total_items / $per_page ) //WE have to calculate the total number of pages
|
981 |
) );
|
982 |
+
|
983 |
+
$current_page = $this->get_pagenum();
|
984 |
+
|
985 |
+
/*
|
986 |
+
* REQUIRED. Assign sorted and paginated data to the items property, where
|
987 |
+
* it can be used by the rest of the class.
|
988 |
+
*/
|
989 |
+
$this->items = MLAData::mla_query_list_table_items( $_REQUEST, $orderby, $order, ( ( $current_page - 1 ) * $per_page ), $per_page );
|
990 |
}
|
991 |
|
992 |
+
/**
|
993 |
+
* Generates (echoes) content for a single row of the table
|
994 |
+
*
|
995 |
+
* @since .20
|
996 |
+
*
|
997 |
+
* @param object $item The current item
|
998 |
+
*
|
999 |
+
* @return nothing Echoes the row HTML
|
1000 |
+
*/
|
1001 |
+
function single_row( $item ) {
|
1002 |
+
static $row_class = '';
|
1003 |
+
$row_class = ( $row_class == '' ? ' class="alternate"' : '' );
|
1004 |
+
|
1005 |
+
echo '<tr id="attachment-' . $item->ID . '"' . $row_class . '>';
|
1006 |
+
echo parent::single_row_columns( $item );
|
1007 |
+
echo '</tr>';
|
1008 |
+
}
|
1009 |
+
|
1010 |
/**
|
1011 |
* Get possible mime types for view preparation.
|
1012 |
* Modeled after get_post_mime_types in wp-admin/includes/post.php,
|
1111 |
*
|
1112 |
* @param array Query variables, e.g., from $_REQUEST
|
1113 |
*
|
1114 |
+
* @return integer Number of attachment posts
|
1115 |
*/
|
1116 |
private function _count_list_table_items( $request )
|
1117 |
{
|
includes/class-mla-main.php
CHANGED
@@ -38,7 +38,7 @@ class MLA {
|
|
38 |
*
|
39 |
* @var string
|
40 |
*/
|
41 |
-
const CURRENT_MLA_VERSION = '0.
|
42 |
|
43 |
/**
|
44 |
* Minimum version of PHP required for this plugin
|
@@ -68,13 +68,40 @@ class MLA {
|
|
68 |
const STYLESHEET_SLUG = 'mla-style';
|
69 |
|
70 |
/**
|
71 |
-
* Slug for localizing and enqueueing
|
72 |
*
|
73 |
* @since 0.1
|
74 |
*
|
75 |
* @var string
|
76 |
*/
|
77 |
-
const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
/**
|
80 |
* Slug for adding plugin submenu
|
@@ -104,12 +131,24 @@ class MLA {
|
|
104 |
MLATest::min_php_version( self::MIN_PHP_VERSION, self::PLUGIN_NAME );
|
105 |
MLATest::min_WordPress_version( self::MIN_WORDPRESS_VERSION, self::PLUGIN_NAME );
|
106 |
|
|
|
107 |
add_action( 'admin_enqueue_scripts', 'MLA::mla_admin_enqueue_scripts_action' );
|
108 |
add_action( 'admin_menu', 'MLA::mla_admin_menu_action' );
|
109 |
add_filter( 'set-screen-option', 'MLA::mla_set_screen_option_filter', 10, 3 ); // $status, $option, $value
|
110 |
add_filter( 'screen_options_show_screen', 'MLA::mla_screen_options_show_screen_filter', 10, 2 ); // $show_screen, $this
|
111 |
}
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
/**
|
114 |
* Load the plugin's Style Sheet and Javascript files
|
115 |
*
|
@@ -122,20 +161,30 @@ class MLA {
|
|
122 |
public static function mla_admin_enqueue_scripts_action( $page_hook ) {
|
123 |
if ( 'media_page_mla-menu' != $page_hook )
|
124 |
return;
|
125 |
-
|
126 |
wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
|
127 |
wp_enqueue_style( self::STYLESHEET_SLUG );
|
|
|
|
|
128 |
|
129 |
if ( isset( $_REQUEST['mla_admin_action'] ) && ( $_REQUEST['mla_admin_action'] == self::MLA_ADMIN_SINGLE_EDIT_DISPLAY ) ) {
|
130 |
-
wp_enqueue_script( self::
|
131 |
-
|
132 |
-
|
133 |
-
'
|
134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
$script_variables = array(
|
136 |
-
|
|
|
|
|
137 |
);
|
138 |
-
wp_localize_script( self::
|
139 |
}
|
140 |
}
|
141 |
|
@@ -464,15 +513,13 @@ class MLA {
|
|
464 |
|
465 |
switch ( $_REQUEST['mla_admin_action'] ) {
|
466 |
case self::MLA_ADMIN_SINGLE_DELETE:
|
467 |
-
echo "</h2>\r\n";
|
468 |
$page_content = self::_delete_single_item( $_REQUEST['mla_item_ID'] );
|
469 |
break;
|
470 |
case self::MLA_ADMIN_SINGLE_EDIT_DISPLAY:
|
471 |
-
echo " - Edit single item</h2
|
472 |
$page_content = self::_display_single_item( $_REQUEST['mla_item_ID'] );
|
473 |
break;
|
474 |
case self::MLA_ADMIN_SINGLE_EDIT_UPDATE:
|
475 |
-
echo "</h2>\r\n";
|
476 |
if ( !empty( $_REQUEST['update'] ) ) {
|
477 |
$page_content = self::_update_single_item( $_REQUEST['mla_item_ID'], $_REQUEST['attachments'][ $_REQUEST['mla_item_ID'] ], $_REQUEST['tax_input'] );
|
478 |
} else {
|
@@ -483,15 +530,12 @@ class MLA {
|
|
483 |
}
|
484 |
break;
|
485 |
case self::MLA_ADMIN_SINGLE_RESTORE:
|
486 |
-
echo "</h2>\r\n";
|
487 |
$page_content = self::_restore_single_item( $_REQUEST['mla_item_ID'] );
|
488 |
break;
|
489 |
case self::MLA_ADMIN_SINGLE_TRASH:
|
490 |
-
echo "</h2>\r\n";
|
491 |
$page_content = self::_trash_single_item( $_REQUEST['mla_item_ID'] );
|
492 |
break;
|
493 |
default:
|
494 |
-
echo "</h2>\r\n";
|
495 |
$page_content = array(
|
496 |
'message' => sprintf( 'Unknown mla_admin_action - "%1$s"', $_REQUEST['mla_admin_action'] ),
|
497 |
'body' => ''
|
@@ -500,13 +544,13 @@ class MLA {
|
|
500 |
} // switch ($_REQUEST['mla_admin_action'])
|
501 |
} // (!empty($_REQUEST['mla_admin_action'])
|
502 |
|
503 |
-
if ( !empty( $page_content['message'] ) ) {
|
504 |
-
echo " <div style=\"background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\"><p>\r\n";
|
505 |
-
echo ' ' . $page_content['message'] . "\r\n";
|
506 |
-
echo " </p></div>\r\n"; // id="message"
|
507 |
-
}
|
508 |
-
|
509 |
if ( !empty( $page_content['body'] ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
510 |
echo $page_content['body'];
|
511 |
} else {
|
512 |
/*
|
@@ -528,6 +572,12 @@ class MLA {
|
|
528 |
} else
|
529 |
echo "</h2>\r\n";
|
530 |
|
|
|
|
|
|
|
|
|
|
|
|
|
531 |
// Create an instance of our package class...
|
532 |
$MLAListTable = new MLA_List_Table();
|
533 |
|
@@ -560,16 +610,229 @@ class MLA {
|
|
560 |
|
561 |
// Now we can render the completed list table
|
562 |
$MLAListTable->display();
|
563 |
-
echo "</form
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
564 |
}
|
|
|
|
|
565 |
}
|
566 |
|
567 |
/**
|
568 |
-
* Get the current action selected from the bulk actions dropdown
|
569 |
*
|
570 |
* @since 0.1
|
571 |
*
|
572 |
-
* @return string|
|
573 |
*/
|
574 |
private static function _current_bulk_action( )
|
575 |
{
|
@@ -598,7 +861,7 @@ class MLA {
|
|
598 |
* @since 0.1
|
599 |
*
|
600 |
* @param array The form POST data.
|
601 |
-
* @return array success/failure message and
|
602 |
*/
|
603 |
private static function _delete_single_item( $post_id ) {
|
604 |
if ( !current_user_can( 'delete_post', $post_id ) )
|
@@ -630,7 +893,7 @@ class MLA {
|
|
630 |
*/
|
631 |
private static function _display_single_item( $post_id ) {
|
632 |
global $post;
|
633 |
-
|
634 |
/*
|
635 |
* This function sets the global $post
|
636 |
*/
|
@@ -642,6 +905,12 @@ class MLA {
|
|
642 |
'body' => ''
|
643 |
);
|
644 |
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
if ( !empty( $post_data['mla_wp_attachment_metadata'] ) ) {
|
646 |
$page_template_array = MLAData::mla_load_template( MLA_PLUGIN_PATH . 'tpls/admin-display-single-image.tpl' );
|
647 |
$width = $post_data['mla_wp_attachment_metadata']['width'];
|
@@ -661,10 +930,12 @@ class MLA {
|
|
661 |
$page_template_array
|
662 |
) ) {
|
663 |
$page_template = $page_template_array['page'];
|
|
|
664 |
$postbox_template = $page_template_array['postbox'];
|
665 |
} else {
|
666 |
error_log( "ERROR: MLA::_display_single_item \$page_template_array = " . var_export( $page_template_array, true ), 0 );
|
667 |
$page_template = $page_template_array;
|
|
|
668 |
$postbox_template = '';
|
669 |
}
|
670 |
|
@@ -683,6 +954,16 @@ class MLA {
|
|
683 |
}
|
684 |
}
|
685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
$features = '';
|
687 |
|
688 |
foreach ( $post_data['mla_references']['features'] as $feature_id => $feature ) {
|
@@ -710,12 +991,21 @@ class MLA {
|
|
710 |
} // foreach $file
|
711 |
|
712 |
/*
|
713 |
-
* WordPress doesn't look in hidden fields to set the month filter dropdown
|
714 |
*/
|
715 |
if ( isset( $_REQUEST['m'] ) )
|
716 |
-
$
|
717 |
else
|
718 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
|
720 |
/*
|
721 |
* Add the current view arguments
|
@@ -724,21 +1014,22 @@ class MLA {
|
|
724 |
$view_args = '<input type="hidden" name="detached" value="' . $_REQUEST['detached'] . "\" />\r\n";
|
725 |
elseif ( isset( $_REQUEST['status'] ) )
|
726 |
$view_args = '<input type="hidden" name="status" value="' . $_REQUEST['status'] . "\" />\r\n";
|
727 |
-
elseif ( isset( $_REQUEST['post_mime_type'] ) )
|
728 |
-
$view_args = '<input type="hidden" name="post_mime_type" value="' . $_REQUEST['post_mime_type'] . "\" />\r\n";
|
729 |
else
|
730 |
$view_args = '';
|
731 |
|
732 |
if ( isset( $_REQUEST['att_cat'] ) )
|
733 |
$view_args .= sprintf( '<input type="hidden" name="att_cat" value="%1$s" />', $_REQUEST['att_cat'] ) . "\r\n";
|
734 |
|
|
|
|
|
|
|
735 |
$side_info_column = '';
|
736 |
$taxonomies = get_object_taxonomies( 'attachment', 'objects' );
|
737 |
|
738 |
foreach ( $taxonomies as $tax_name => $tax_object ) {
|
739 |
ob_start();
|
740 |
|
741 |
-
if ( $tax_object->hierarchical ) {
|
742 |
$box = array(
|
743 |
'id' => $tax_name . 'div',
|
744 |
'title' => $tax_object->labels->name,
|
@@ -749,7 +1040,7 @@ class MLA {
|
|
749 |
'inside_html' => ''
|
750 |
);
|
751 |
post_categories_meta_box( $post, $box );
|
752 |
-
}
|
753 |
$box = array(
|
754 |
'id' => 'tagsdiv-' . $tax_name,
|
755 |
'title' => $tax_object->labels->name,
|
@@ -774,18 +1065,18 @@ class MLA {
|
|
774 |
'height' => $height,
|
775 |
'image_meta' => $image_meta,
|
776 |
'parent_info' => $parent_info,
|
|
|
777 |
'features' => $features,
|
778 |
'inserts' => $inserts,
|
779 |
'mla_admin_action' => self::MLA_ADMIN_SINGLE_EDIT_UPDATE,
|
780 |
-
'form_url' => admin_url( 'upload.php' ) . '?page=' . self::ADMIN_PAGE_SLUG . $
|
781 |
'view_args' => $view_args,
|
782 |
-
'
|
783 |
'side_info_column' => $side_info_column
|
784 |
);
|
785 |
-
|
786 |
$page_template = MLAData::mla_parse_template( $page_template, $post_data );
|
787 |
return array(
|
788 |
-
|
789 |
'body' => MLAData::mla_parse_template( $page_template, $page_values )
|
790 |
);
|
791 |
}
|
@@ -799,9 +1090,9 @@ class MLA {
|
|
799 |
* @param int The ID of the attachment to be updated
|
800 |
* @param array Field name => value pairs
|
801 |
* @param array Attachment Category and Tag values
|
802 |
-
* @return array success/failure message and
|
803 |
*/
|
804 |
-
private static function _update_single_item( $post_id, $new_data, $tax_input =
|
805 |
$post_data = MLAData::mla_get_attachment_by_id( $post_id );
|
806 |
|
807 |
if ( !isset( $post_data ) )
|
@@ -881,7 +1172,16 @@ class MLA {
|
|
881 |
$message .= sprintf( 'Changing Parent from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
|
882 |
$updates[ $key ] = $value;
|
883 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
884 |
default:
|
|
|
885 |
} // switch $key
|
886 |
} // foreach $new_data
|
887 |
|
@@ -933,7 +1233,7 @@ class MLA {
|
|
933 |
*
|
934 |
* @param array The form POST data
|
935 |
*
|
936 |
-
* @return array success/failure message and
|
937 |
*/
|
938 |
private static function _restore_single_item( $post_id ) {
|
939 |
if ( !current_user_can( 'delete_post', $post_id ) )
|
@@ -968,7 +1268,7 @@ class MLA {
|
|
968 |
* @since 0.1
|
969 |
*
|
970 |
* @param array The form POST data
|
971 |
-
* @return array success/failure message and
|
972 |
*/
|
973 |
private static function _trash_single_item( $post_id ) {
|
974 |
if ( !current_user_can( 'delete_post', $post_id ) )
|
@@ -988,6 +1288,5 @@ class MLA {
|
|
988 |
'body' => ''
|
989 |
);
|
990 |
}
|
991 |
-
|
992 |
} // class MLA
|
993 |
?>
|
38 |
*
|
39 |
* @var string
|
40 |
*/
|
41 |
+
const CURRENT_MLA_VERSION = '0.20';
|
42 |
|
43 |
/**
|
44 |
* Minimum version of PHP required for this plugin
|
68 |
const STYLESHEET_SLUG = 'mla-style';
|
69 |
|
70 |
/**
|
71 |
+
* Slug for localizing and enqueueing JavaScript - edit single item page
|
72 |
*
|
73 |
* @since 0.1
|
74 |
*
|
75 |
* @var string
|
76 |
*/
|
77 |
+
const JAVASCRIPT_SINGLE_EDIT_SLUG = 'mla-single-edit-scripts';
|
78 |
+
|
79 |
+
/**
|
80 |
+
* Object name for localizing JavaScript - edit single item page
|
81 |
+
*
|
82 |
+
* @since 0.1
|
83 |
+
*
|
84 |
+
* @var string
|
85 |
+
*/
|
86 |
+
const JAVASCRIPT_SINGLE_EDIT_OBJECT = 'mla_single_edit_vars';
|
87 |
+
|
88 |
+
/**
|
89 |
+
* Slug for localizing and enqueueing JavaScript - MLA List Table
|
90 |
+
*
|
91 |
+
* @since 0.20
|
92 |
+
*
|
93 |
+
* @var string
|
94 |
+
*/
|
95 |
+
const JAVASCRIPT_INLINE_EDIT_SLUG = 'mla-inline-edit-scripts';
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Object name for localizing JavaScript - MLA List Table
|
99 |
+
*
|
100 |
+
* @since 0.20
|
101 |
+
*
|
102 |
+
* @var string
|
103 |
+
*/
|
104 |
+
const JAVASCRIPT_INLINE_EDIT_OBJECT = 'mla_inline_edit_vars';
|
105 |
|
106 |
/**
|
107 |
* Slug for adding plugin submenu
|
131 |
MLATest::min_php_version( self::MIN_PHP_VERSION, self::PLUGIN_NAME );
|
132 |
MLATest::min_WordPress_version( self::MIN_WORDPRESS_VERSION, self::PLUGIN_NAME );
|
133 |
|
134 |
+
add_action( 'admin_init', 'MLA::mla_admin_init_action' );
|
135 |
add_action( 'admin_enqueue_scripts', 'MLA::mla_admin_enqueue_scripts_action' );
|
136 |
add_action( 'admin_menu', 'MLA::mla_admin_menu_action' );
|
137 |
add_filter( 'set-screen-option', 'MLA::mla_set_screen_option_filter', 10, 3 ); // $status, $option, $value
|
138 |
add_filter( 'screen_options_show_screen', 'MLA::mla_screen_options_show_screen_filter', 10, 2 ); // $show_screen, $this
|
139 |
}
|
140 |
|
141 |
+
/**
|
142 |
+
* Load the plugin's Ajax handler
|
143 |
+
*
|
144 |
+
* @since 0.20
|
145 |
+
*
|
146 |
+
* @return nothing
|
147 |
+
*/
|
148 |
+
public static function mla_admin_init_action() {
|
149 |
+
add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG, 'MLA::mla_inline_edit_action' );
|
150 |
+
}
|
151 |
+
|
152 |
/**
|
153 |
* Load the plugin's Style Sheet and Javascript files
|
154 |
*
|
161 |
public static function mla_admin_enqueue_scripts_action( $page_hook ) {
|
162 |
if ( 'media_page_mla-menu' != $page_hook )
|
163 |
return;
|
164 |
+
|
165 |
wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
|
166 |
wp_enqueue_style( self::STYLESHEET_SLUG );
|
167 |
+
|
168 |
+
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
|
169 |
|
170 |
if ( isset( $_REQUEST['mla_admin_action'] ) && ( $_REQUEST['mla_admin_action'] == self::MLA_ADMIN_SINGLE_EDIT_DISPLAY ) ) {
|
171 |
+
wp_enqueue_script( self::JAVASCRIPT_SINGLE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-single-edit-scripts{$suffix}.js",
|
172 |
+
array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
|
173 |
+
$script_variables = array(
|
174 |
+
'comma' => _x( ',', 'tag delimiter' ),
|
175 |
+
'Ajax_Url' => admin_url( 'admin-ajax.php' )
|
176 |
+
);
|
177 |
+
wp_localize_script( self::JAVASCRIPT_SINGLE_EDIT_SLUG, self::JAVASCRIPT_SINGLE_EDIT_OBJECT, $script_variables );
|
178 |
+
}
|
179 |
+
else {
|
180 |
+
wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
|
181 |
+
array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
|
182 |
$script_variables = array(
|
183 |
+
'comma' => _x( ',', 'tag delimiter' ),
|
184 |
+
'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
|
185 |
+
'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
|
186 |
);
|
187 |
+
wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
|
188 |
}
|
189 |
}
|
190 |
|
513 |
|
514 |
switch ( $_REQUEST['mla_admin_action'] ) {
|
515 |
case self::MLA_ADMIN_SINGLE_DELETE:
|
|
|
516 |
$page_content = self::_delete_single_item( $_REQUEST['mla_item_ID'] );
|
517 |
break;
|
518 |
case self::MLA_ADMIN_SINGLE_EDIT_DISPLAY:
|
519 |
+
echo " - Edit single item</h2>";
|
520 |
$page_content = self::_display_single_item( $_REQUEST['mla_item_ID'] );
|
521 |
break;
|
522 |
case self::MLA_ADMIN_SINGLE_EDIT_UPDATE:
|
|
|
523 |
if ( !empty( $_REQUEST['update'] ) ) {
|
524 |
$page_content = self::_update_single_item( $_REQUEST['mla_item_ID'], $_REQUEST['attachments'][ $_REQUEST['mla_item_ID'] ], $_REQUEST['tax_input'] );
|
525 |
} else {
|
530 |
}
|
531 |
break;
|
532 |
case self::MLA_ADMIN_SINGLE_RESTORE:
|
|
|
533 |
$page_content = self::_restore_single_item( $_REQUEST['mla_item_ID'] );
|
534 |
break;
|
535 |
case self::MLA_ADMIN_SINGLE_TRASH:
|
|
|
536 |
$page_content = self::_trash_single_item( $_REQUEST['mla_item_ID'] );
|
537 |
break;
|
538 |
default:
|
|
|
539 |
$page_content = array(
|
540 |
'message' => sprintf( 'Unknown mla_admin_action - "%1$s"', $_REQUEST['mla_admin_action'] ),
|
541 |
'body' => ''
|
544 |
} // switch ($_REQUEST['mla_admin_action'])
|
545 |
} // (!empty($_REQUEST['mla_admin_action'])
|
546 |
|
|
|
|
|
|
|
|
|
|
|
|
|
547 |
if ( !empty( $page_content['body'] ) ) {
|
548 |
+
if ( !empty( $page_content['message'] ) ) {
|
549 |
+
echo " <div style=\"background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\"><p>\r\n";
|
550 |
+
echo ' ' . $page_content['message'] . "\r\n";
|
551 |
+
echo " </p></div>\r\n"; // id="message"
|
552 |
+
}
|
553 |
+
|
554 |
echo $page_content['body'];
|
555 |
} else {
|
556 |
/*
|
572 |
} else
|
573 |
echo "</h2>\r\n";
|
574 |
|
575 |
+
if ( !empty( $page_content['message'] ) ) {
|
576 |
+
echo " <div style=\"background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\"><p>\r\n";
|
577 |
+
echo ' ' . $page_content['message'] . "\r\n";
|
578 |
+
echo " </p></div>\r\n"; // id="message"
|
579 |
+
}
|
580 |
+
|
581 |
// Create an instance of our package class...
|
582 |
$MLAListTable = new MLA_List_Table();
|
583 |
|
610 |
|
611 |
// Now we can render the completed list table
|
612 |
$MLAListTable->display();
|
613 |
+
echo "</form><!-- id=mla-filter -->\r\n";
|
614 |
+
|
615 |
+
/*
|
616 |
+
* Insert the hidden form and table for inline edits (quick & bulk)
|
617 |
+
*/
|
618 |
+
echo self::_build_inline_edit_form($MLAListTable);
|
619 |
+
|
620 |
+
echo "<div id=\"ajax-response\"></div>\r\n";
|
621 |
+
echo "<br class=\"clear\" />\r\n";
|
622 |
+
echo "</div><!-- class=wrap -->\r\n";
|
623 |
+
}
|
624 |
+
}
|
625 |
+
|
626 |
+
/**
|
627 |
+
* Ajax handler for inline editing (quick and bulk edit)
|
628 |
+
*
|
629 |
+
* Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php
|
630 |
+
*
|
631 |
+
* @since 0.20
|
632 |
+
*
|
633 |
+
* @return string echo HTML <tr> markup for updated row or error message, then die()
|
634 |
+
*/
|
635 |
+
public static function mla_inline_edit_action() {
|
636 |
+
set_current_screen( $_REQUEST['screen'] );
|
637 |
+
|
638 |
+
check_ajax_referer( self::MLA_ADMIN_NONCE, 'nonce' );
|
639 |
+
|
640 |
+
if ( empty( $_REQUEST['post_ID'] ) ) {
|
641 |
+
echo 'Error: no post ID found';
|
642 |
+
die();
|
643 |
+
}
|
644 |
+
else
|
645 |
+
$post_id = $_REQUEST['post_ID'];
|
646 |
+
|
647 |
+
if ( ! current_user_can( 'edit_post', $post_id ) )
|
648 |
+
wp_die( __( 'You are not allowed to edit this Attachment.' ) );
|
649 |
+
|
650 |
+
if ( ! empty( $_REQUEST['tax_input'] ) ) {
|
651 |
+
/*
|
652 |
+
* Flat taxonomy strings must be cleaned up and duplicates removed
|
653 |
+
*/
|
654 |
+
$tax_output = array ();
|
655 |
+
$tax_input = $_REQUEST['tax_input'];
|
656 |
+
foreach ( $tax_input as $tax_name => $tax_value ) {
|
657 |
+
if ( ! is_array( $tax_value ) ) {
|
658 |
+
$comma = _x( ',', 'tag delimiter' );
|
659 |
+
if ( ',' != $comma )
|
660 |
+
$tax_value = str_replace( $comma, ',', $tax_value );
|
661 |
+
|
662 |
+
$tax_value = preg_replace( '#\s*,\s*#', ',', $tax_value );
|
663 |
+
$tax_value = preg_replace( '#,+#', ',', $tax_value );
|
664 |
+
$tax_value = preg_replace( '#[,\s]+$#', '', $tax_value );
|
665 |
+
$tax_value = preg_replace( '#^[,\s]+#', '', $tax_value );
|
666 |
+
|
667 |
+
if ( ',' != $comma )
|
668 |
+
$tax_value = str_replace( ',', $comma, $tax_value );
|
669 |
+
|
670 |
+
$tax_array = array ();
|
671 |
+
$dedup_array = explode( $comma, $tax_value );
|
672 |
+
foreach ( $dedup_array as $tax_value )
|
673 |
+
$tax_array [$tax_value] = $tax_value;
|
674 |
+
|
675 |
+
$tax_value = implode( $comma, $tax_array );
|
676 |
+
} // ! array( $tax_value )
|
677 |
+
|
678 |
+
$tax_output[$tax_name] = $tax_value;
|
679 |
+
} // foreach $tax_input
|
680 |
+
} // ! empty( $_REQUEST['tax_input'] )
|
681 |
+
else
|
682 |
+
$tax_output = NULL;
|
683 |
+
|
684 |
+
$results = self::_update_single_item( $post_id, $_REQUEST, $tax_output );
|
685 |
+
$new_item = (object) MLAData::mla_get_attachment_by_id( $post_id );
|
686 |
+
|
687 |
+
// Create an instance of our package class and echo the new HTML
|
688 |
+
$MLAListTable = new MLA_List_Table();
|
689 |
+
$MLAListTable->single_row( $new_item );
|
690 |
+
die(); // this is required to return a proper result
|
691 |
+
}
|
692 |
+
|
693 |
+
/**
|
694 |
+
* Build the hidden row templates for inline editing (quick and bulk edit).
|
695 |
+
*
|
696 |
+
* inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.
|
697 |
+
*
|
698 |
+
* @since 0.20
|
699 |
+
*
|
700 |
+
* @param object MLA List Table object
|
701 |
+
*
|
702 |
+
* @return string HTML <form> markup for hidden rows
|
703 |
+
*/
|
704 |
+
private static function _build_inline_edit_form( $MLAListTable ) {
|
705 |
+
$taxonomies = get_object_taxonomies( 'attachment', 'objects' );
|
706 |
+
|
707 |
+
$hierarchical_taxonomies = array();
|
708 |
+
$flat_taxonomies = array();
|
709 |
+
foreach ( $taxonomies as $tax_name => $tax_object ) {
|
710 |
+
if ( $tax_object->hierarchical && $tax_object->show_ui ) {
|
711 |
+
$hierarchical_taxonomies[$tax_name] = $tax_object;
|
712 |
+
} elseif ( $tax_object->show_ui ) {
|
713 |
+
$flat_taxonomies[$tax_name] = $tax_object;
|
714 |
+
}
|
715 |
+
}
|
716 |
+
|
717 |
+
$page_template_array = MLAData::mla_load_template( MLA_PLUGIN_PATH . 'tpls/admin-inline-edit-form.tpl' );
|
718 |
+
if ( ! array( $page_template_array ) ) {
|
719 |
+
error_log( "ERROR: MLA::_build_inline_edit_form \$page_template_array = " . var_export( $page_template_array, true ), 0 );
|
720 |
+
return '';
|
721 |
+
}
|
722 |
+
|
723 |
+
if ( $authors = self::_authors_dropdown() ) {
|
724 |
+
$authors_dropdown = ' <label class="inline-edit-author">' . "\r\n";
|
725 |
+
$authors_dropdown .= ' <span class="title">' . __( 'Author' ) . '</span>' . "\r\n";
|
726 |
+
$authors_dropdown .= $authors . "\r\n";
|
727 |
+
$authors_dropdown .= ' </label>' . "\r\n";
|
728 |
+
}
|
729 |
+
else
|
730 |
+
$authors_dropdown = '';
|
731 |
+
|
732 |
+
/*
|
733 |
+
* The middle column contains the hierarchical taxonomies, e.g., Attachment Category
|
734 |
+
*/
|
735 |
+
$middle_column = '';
|
736 |
+
|
737 |
+
if ( count( $hierarchical_taxonomies ) ) {
|
738 |
+
$category_blocks = '';
|
739 |
+
|
740 |
+
foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
|
741 |
+
ob_start();
|
742 |
+
wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name ) );
|
743 |
+
$tax_checklist = ob_get_contents();
|
744 |
+
ob_end_clean();
|
745 |
+
|
746 |
+
$page_values = array(
|
747 |
+
'tax_html' => esc_html( $tax_object->labels->name ),
|
748 |
+
'tax_attr' => esc_attr( $tax_name ),
|
749 |
+
'tax_checklist' => $tax_checklist
|
750 |
+
);
|
751 |
+
$category_blocks .= MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
|
752 |
+
} // foreach $hierarchical_taxonomies
|
753 |
+
|
754 |
+
$page_values = array(
|
755 |
+
'category_blocks' => $category_blocks
|
756 |
+
);
|
757 |
+
$middle_column = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
|
758 |
+
} // count( $hierarchical_taxonomies )
|
759 |
+
|
760 |
+
/*
|
761 |
+
* The right-hand column contains the flat taxonomies, e.g., Attachment Tag
|
762 |
+
*/
|
763 |
+
$right_column = '';
|
764 |
+
|
765 |
+
if ( count( $flat_taxonomies ) ) {
|
766 |
+
$tag_blocks = '';
|
767 |
+
|
768 |
+
foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
|
769 |
+
if ( current_user_can( $tax_object->cap->assign_terms ) ) {
|
770 |
+
$page_values = array(
|
771 |
+
'tax_html' => esc_html( $tax_object->labels->name ),
|
772 |
+
'tax_attr' => esc_attr( $tax_name )
|
773 |
+
);
|
774 |
+
$tag_blocks .= MLAData::mla_parse_template( $page_template_array['tag_block'], $page_values );
|
775 |
+
}
|
776 |
+
} // foreach $flat_taxonomies
|
777 |
+
|
778 |
+
$page_values = array(
|
779 |
+
'tag_blocks' => $tag_blocks
|
780 |
+
);
|
781 |
+
$right_column = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
|
782 |
+
} // count( $flat_taxonomies )
|
783 |
+
|
784 |
+
$page_values = array(
|
785 |
+
'colspan' => count( $MLAListTable->get_columns() ),
|
786 |
+
'authors' => $authors_dropdown,
|
787 |
+
'middle_column' => $middle_column,
|
788 |
+
'right_column' => $right_column,
|
789 |
+
);
|
790 |
+
$page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
|
791 |
+
return $page_template;
|
792 |
+
}
|
793 |
+
|
794 |
+
/**
|
795 |
+
* Get the edit Authors dropdown box, if user has suitable permissions
|
796 |
+
*
|
797 |
+
* @since 0.20
|
798 |
+
*
|
799 |
+
* @param integer User ID of the current author
|
800 |
+
* @param string HTML name attribute
|
801 |
+
* @param string HTML class attribute
|
802 |
+
*
|
803 |
+
* @return string|false HTML markup for the dropdown field or False
|
804 |
+
*/
|
805 |
+
private static function _authors_dropdown( $author = 0, $name = 'post_author', $class = 'authors' ) {
|
806 |
+
$post_type_object = get_post_type_object('attachment');
|
807 |
+
if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) {
|
808 |
+
$users_opt = array(
|
809 |
+
'hide_if_only_one_author' => false,
|
810 |
+
'who' => 'authors',
|
811 |
+
'name' => $name,
|
812 |
+
'class'=> $class,
|
813 |
+
'multi' => 1,
|
814 |
+
'echo' => 0
|
815 |
+
);
|
816 |
+
|
817 |
+
if ( $author > 0 ) {
|
818 |
+
$users_opt['selected'] = $author;
|
819 |
+
$users_opt['include_selected'] = true;
|
820 |
+
}
|
821 |
+
|
822 |
+
if ( $authors = wp_dropdown_users( $users_opt ) ) {
|
823 |
+
return $authors;
|
824 |
+
}
|
825 |
}
|
826 |
+
|
827 |
+
return false;
|
828 |
}
|
829 |
|
830 |
/**
|
831 |
+
* Get the current action selected from the bulk actions dropdown
|
832 |
*
|
833 |
* @since 0.1
|
834 |
*
|
835 |
+
* @return string|false The action name or False if no action was selected
|
836 |
*/
|
837 |
private static function _current_bulk_action( )
|
838 |
{
|
861 |
* @since 0.1
|
862 |
*
|
863 |
* @param array The form POST data.
|
864 |
+
* @return array success/failure message and NULL content
|
865 |
*/
|
866 |
private static function _delete_single_item( $post_id ) {
|
867 |
if ( !current_user_can( 'delete_post', $post_id ) )
|
893 |
*/
|
894 |
private static function _display_single_item( $post_id ) {
|
895 |
global $post;
|
896 |
+
|
897 |
/*
|
898 |
* This function sets the global $post
|
899 |
*/
|
905 |
'body' => ''
|
906 |
);
|
907 |
|
908 |
+
if ( ! current_user_can( 'edit_post', $post_id ) )
|
909 |
+
return array(
|
910 |
+
'message' => 'You are not allowed to edit this Attachment.',
|
911 |
+
'body' => ''
|
912 |
+
);
|
913 |
+
|
914 |
if ( !empty( $post_data['mla_wp_attachment_metadata'] ) ) {
|
915 |
$page_template_array = MLAData::mla_load_template( MLA_PLUGIN_PATH . 'tpls/admin-display-single-image.tpl' );
|
916 |
$width = $post_data['mla_wp_attachment_metadata']['width'];
|
930 |
$page_template_array
|
931 |
) ) {
|
932 |
$page_template = $page_template_array['page'];
|
933 |
+
$authors_template = $page_template_array['authors'];
|
934 |
$postbox_template = $page_template_array['postbox'];
|
935 |
} else {
|
936 |
error_log( "ERROR: MLA::_display_single_item \$page_template_array = " . var_export( $page_template_array, true ), 0 );
|
937 |
$page_template = $page_template_array;
|
938 |
+
$authors_template = '';
|
939 |
$postbox_template = '';
|
940 |
}
|
941 |
|
954 |
}
|
955 |
}
|
956 |
|
957 |
+
if ( $authors = self::_authors_dropdown( $post_data['post_author'], 'attachments[' . $post_data['ID'] . '][post_author]' ) ) {
|
958 |
+
$args = array (
|
959 |
+
'ID' => $post_data['ID'],
|
960 |
+
'authors' => $authors
|
961 |
+
);
|
962 |
+
$authors = MLAData::mla_parse_template( $authors_template, $args );
|
963 |
+
}
|
964 |
+
else
|
965 |
+
$authors = '';
|
966 |
+
|
967 |
$features = '';
|
968 |
|
969 |
foreach ( $post_data['mla_references']['features'] as $feature_id => $feature ) {
|
991 |
} // foreach $file
|
992 |
|
993 |
/*
|
994 |
+
* WordPress doesn't look in hidden fields to set the month filter dropdown or pagination filter
|
995 |
*/
|
996 |
if ( isset( $_REQUEST['m'] ) )
|
997 |
+
$url_args = '&m=' . $_REQUEST['m'];
|
998 |
else
|
999 |
+
$url_args = '';
|
1000 |
+
|
1001 |
+
if ( isset( $_REQUEST['post_mime_type'] ) )
|
1002 |
+
$url_args .= '&post_mime_type=' . $_REQUEST['post_mime_type'];
|
1003 |
+
|
1004 |
+
if ( isset( $_REQUEST['order'] ) )
|
1005 |
+
$url_args .= '&order=' . $_REQUEST['order'];
|
1006 |
+
|
1007 |
+
if ( isset( $_REQUEST['orderby'] ) )
|
1008 |
+
$url_args .= '&orderby=' . $_REQUEST['orderby'];
|
1009 |
|
1010 |
/*
|
1011 |
* Add the current view arguments
|
1014 |
$view_args = '<input type="hidden" name="detached" value="' . $_REQUEST['detached'] . "\" />\r\n";
|
1015 |
elseif ( isset( $_REQUEST['status'] ) )
|
1016 |
$view_args = '<input type="hidden" name="status" value="' . $_REQUEST['status'] . "\" />\r\n";
|
|
|
|
|
1017 |
else
|
1018 |
$view_args = '';
|
1019 |
|
1020 |
if ( isset( $_REQUEST['att_cat'] ) )
|
1021 |
$view_args .= sprintf( '<input type="hidden" name="att_cat" value="%1$s" />', $_REQUEST['att_cat'] ) . "\r\n";
|
1022 |
|
1023 |
+
if ( isset( $_REQUEST['paged'] ) )
|
1024 |
+
$view_args .= sprintf( '<input type="hidden" name="paged" value="%1$s" />', $_REQUEST['paged'] ) . "\r\n";
|
1025 |
+
|
1026 |
$side_info_column = '';
|
1027 |
$taxonomies = get_object_taxonomies( 'attachment', 'objects' );
|
1028 |
|
1029 |
foreach ( $taxonomies as $tax_name => $tax_object ) {
|
1030 |
ob_start();
|
1031 |
|
1032 |
+
if ( $tax_object->hierarchical && $tax_object->show_ui ) {
|
1033 |
$box = array(
|
1034 |
'id' => $tax_name . 'div',
|
1035 |
'title' => $tax_object->labels->name,
|
1040 |
'inside_html' => ''
|
1041 |
);
|
1042 |
post_categories_meta_box( $post, $box );
|
1043 |
+
} elseif ( $tax_object->show_ui ) {
|
1044 |
$box = array(
|
1045 |
'id' => 'tagsdiv-' . $tax_name,
|
1046 |
'title' => $tax_object->labels->name,
|
1065 |
'height' => $height,
|
1066 |
'image_meta' => $image_meta,
|
1067 |
'parent_info' => $parent_info,
|
1068 |
+
'authors' => $authors,
|
1069 |
'features' => $features,
|
1070 |
'inserts' => $inserts,
|
1071 |
'mla_admin_action' => self::MLA_ADMIN_SINGLE_EDIT_UPDATE,
|
1072 |
+
'form_url' => admin_url( 'upload.php' ) . '?page=' . self::ADMIN_PAGE_SLUG . $url_args,
|
1073 |
'view_args' => $view_args,
|
1074 |
+
'wpnonce' => wp_nonce_field( self::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
1075 |
'side_info_column' => $side_info_column
|
1076 |
);
|
|
|
1077 |
$page_template = MLAData::mla_parse_template( $page_template, $post_data );
|
1078 |
return array(
|
1079 |
+
'message' => '',
|
1080 |
'body' => MLAData::mla_parse_template( $page_template, $page_values )
|
1081 |
);
|
1082 |
}
|
1090 |
* @param int The ID of the attachment to be updated
|
1091 |
* @param array Field name => value pairs
|
1092 |
* @param array Attachment Category and Tag values
|
1093 |
+
* @return array success/failure message and NULL content
|
1094 |
*/
|
1095 |
+
private static function _update_single_item( $post_id, $new_data, $tax_input = NULL ) {
|
1096 |
$post_data = MLAData::mla_get_attachment_by_id( $post_id );
|
1097 |
|
1098 |
if ( !isset( $post_data ) )
|
1172 |
$message .= sprintf( 'Changing Parent from "%1$s" to "%2$s"<br>', $post_data[ $key ], $value );
|
1173 |
$updates[ $key ] = $value;
|
1174 |
break;
|
1175 |
+
case 'post_author':
|
1176 |
+
if ( $value == $post_data[ $key ] )
|
1177 |
+
break;
|
1178 |
+
$from_user = get_userdata( $post_data[ $key ] );
|
1179 |
+
$to_user = get_userdata( $value );
|
1180 |
+
$message .= sprintf( 'Changing Author from "%1$s" to "%2$s"<br>', $from_user->display_name, $to_user->display_name );
|
1181 |
+
$updates[ $key ] = $value;
|
1182 |
+
break;
|
1183 |
default:
|
1184 |
+
// Ignore anything else
|
1185 |
} // switch $key
|
1186 |
} // foreach $new_data
|
1187 |
|
1233 |
*
|
1234 |
* @param array The form POST data
|
1235 |
*
|
1236 |
+
* @return array success/failure message and NULL content
|
1237 |
*/
|
1238 |
private static function _restore_single_item( $post_id ) {
|
1239 |
if ( !current_user_can( 'delete_post', $post_id ) )
|
1268 |
* @since 0.1
|
1269 |
*
|
1270 |
* @param array The form POST data
|
1271 |
+
* @return array success/failure message and NULL content
|
1272 |
*/
|
1273 |
private static function _trash_single_item( $post_id ) {
|
1274 |
if ( !current_user_can( 'delete_post', $post_id ) )
|
1288 |
'body' => ''
|
1289 |
);
|
1290 |
}
|
|
|
1291 |
} // class MLA
|
1292 |
?>
|
includes/class-mla-objects.php
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Media Library Assistant Custom Taxonomy and Post Type objects
|
4 |
+
*
|
5 |
+
* @package Media Library Assistant
|
6 |
+
* @since 0.1
|
7 |
+
*/
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags
|
11 |
+
*
|
12 |
+
* @package Media Library Assistant
|
13 |
+
* @since 0.20
|
14 |
+
*/
|
15 |
+
class MLAObjects {
|
16 |
+
/**
|
17 |
+
* Initialization function, similar to __construct()
|
18 |
+
*
|
19 |
+
* @since 0.20
|
20 |
+
*/
|
21 |
+
public static function initialize() {
|
22 |
+
self::_build_taxonomies();
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters
|
27 |
+
*
|
28 |
+
* @since 0.1
|
29 |
+
*/
|
30 |
+
private static function _build_taxonomies( ) {
|
31 |
+
$labels = array(
|
32 |
+
'name' => _x( 'Attachment Categories', 'taxonomy general name' ),
|
33 |
+
'singular_name' => _x( 'Attachment Category', 'taxonomy singular name' ),
|
34 |
+
'search_items' => __( 'Search Attachment Categories' ),
|
35 |
+
'all_items' => __( 'All Attachment Categories' ),
|
36 |
+
'parent_item' => __( 'Parent Attachment Category' ),
|
37 |
+
'parent_item_colon' => __( 'Parent Attachment Category:' ),
|
38 |
+
'edit_item' => __( 'Edit Attachment Category' ),
|
39 |
+
'update_item' => __( 'Update Attachment Category' ),
|
40 |
+
'add_new_item' => __( 'Add New Attachment Category' ),
|
41 |
+
'new_item_name' => __( 'New Attachment Category Name' ),
|
42 |
+
'menu_name' => __( 'Attachment Category' )
|
43 |
+
);
|
44 |
+
|
45 |
+
if ( 'checked' == MLASettings::mla_get_option( 'attachment_category' ) ) {
|
46 |
+
register_taxonomy(
|
47 |
+
'attachment_category',
|
48 |
+
array( 'attachment' ),
|
49 |
+
array(
|
50 |
+
'hierarchical' => true,
|
51 |
+
'labels' => $labels,
|
52 |
+
'show_ui' => true,
|
53 |
+
'query_var' => true,
|
54 |
+
'rewrite' => true
|
55 |
+
)
|
56 |
+
);
|
57 |
+
|
58 |
+
add_filter( 'manage_edit-attachment_category_columns', 'MLAObjects::mla_attachment_category_get_columns_filter', 10, 1 ); // $columns
|
59 |
+
add_filter( 'manage_attachment_category_custom_column', 'MLAObjects::mla_attachment_category_column_filter', 10, 3 ); // $place_holder, $column_name, $tag->term_id
|
60 |
+
}
|
61 |
+
|
62 |
+
$labels = array(
|
63 |
+
'name' => _x( 'Attachment Tags', 'taxonomy general name' ),
|
64 |
+
'singular_name' => _x( 'Attachment Tag', 'taxonomy singular name' ),
|
65 |
+
'search_items' => __( 'Search Attachment Tags' ),
|
66 |
+
'all_items' => __( 'All Attachment Tags' ),
|
67 |
+
'parent_item' => __( 'Parent Attachment Tag' ),
|
68 |
+
'parent_item_colon' => __( 'Parent Attachment Tag:' ),
|
69 |
+
'edit_item' => __( 'Edit Attachment Tag' ),
|
70 |
+
'update_item' => __( 'Update Attachment Tag' ),
|
71 |
+
'add_new_item' => __( 'Add New Attachment Tag' ),
|
72 |
+
'new_item_name' => __( 'New Attachment Tag Name' ),
|
73 |
+
'menu_name' => __( 'Attachment Tag' )
|
74 |
+
);
|
75 |
+
|
76 |
+
if ( 'checked' == MLASettings::mla_get_option( 'attachment_tag' ) ) {
|
77 |
+
register_taxonomy(
|
78 |
+
'attachment_tag',
|
79 |
+
array( 'attachment' ),
|
80 |
+
array(
|
81 |
+
'hierarchical' => false,
|
82 |
+
'labels' => $labels,
|
83 |
+
'show_ui' => true,
|
84 |
+
'query_var' => true,
|
85 |
+
'rewrite' => true
|
86 |
+
)
|
87 |
+
);
|
88 |
+
|
89 |
+
add_filter( 'manage_edit-attachment_tag_columns', 'MLAObjects::mla_attachment_tag_get_columns_filter', 10, 1 ); // $columns
|
90 |
+
add_filter( 'manage_attachment_tag_custom_column', 'MLAObjects::mla_attachment_tag_column_filter', 10, 3 ); // $place_holder, $column_name, $tag->term_id
|
91 |
+
}
|
92 |
+
|
93 |
+
} // mla_build_taxonomies_action
|
94 |
+
|
95 |
+
/**
|
96 |
+
* WordPress Filter for Attachment Category "Attachments" column,
|
97 |
+
* which replaces the "Posts" column with an equivalent "Attachments" column.
|
98 |
+
*
|
99 |
+
* @since 0.1
|
100 |
+
*
|
101 |
+
* @param array column definitions for the Attachment Category list table.
|
102 |
+
*
|
103 |
+
* @return array updated column definitions for the Attachment Category list table.
|
104 |
+
*/
|
105 |
+
public static function mla_attachment_category_get_columns_filter( $columns ) {
|
106 |
+
unset( $columns[ 'posts' ] );
|
107 |
+
$columns[ 'attachments' ] = 'Attachments';
|
108 |
+
return $columns;
|
109 |
+
}
|
110 |
+
|
111 |
+
/**
|
112 |
+
* WordPress Filter for Attachment Category "Attachments" column,
|
113 |
+
* which returns a count of the attachments assigned a given category
|
114 |
+
*
|
115 |
+
* @since 0.1
|
116 |
+
*
|
117 |
+
* @param string unknown, undocumented parameter.
|
118 |
+
* @param array name of the column.
|
119 |
+
* @param array ID of the term for which the count is desired.
|
120 |
+
*
|
121 |
+
* @return array HTML markup for the column content; number of attachments in the category
|
122 |
+
* and alink to retrieve a list of them.
|
123 |
+
*/
|
124 |
+
public static function mla_attachment_category_column_filter( $place_holder, $column_name, $term_id ) {
|
125 |
+
$objects = get_objects_in_term( $term_id, 'attachment_category', array( ) );
|
126 |
+
$term = get_term( $term_id, 'attachment_category' );
|
127 |
+
|
128 |
+
if ( is_wp_error( $term ) ) {
|
129 |
+
error_log( 'ERROR: mla_attachment_category_column_filter - get_term ' . $objects->get_error_message(), 0 );
|
130 |
+
return 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
if ( is_wp_error( $objects ) ) {
|
134 |
+
error_log( 'ERROR: mla_attachment_category_column_filter - get_objects_in_term ' . $objects->get_error_message(), 0 );
|
135 |
+
return 0;
|
136 |
+
}
|
137 |
+
|
138 |
+
return sprintf( '<a href="%s">%d</a>', esc_url( add_query_arg(
|
139 |
+
array( 'page' => 'mla-menu', 'attachment_category' => $term->slug, 'heading_suffix' => urlencode( $term->name ) ), 'upload.php' ) ), count( $objects ) );
|
140 |
+
}
|
141 |
+
|
142 |
+
/**
|
143 |
+
* WordPress Filter for Attachment Tag "Attachments" column,
|
144 |
+
* which replaces the "Posts" column with an equivalent "Attachments" column.
|
145 |
+
*
|
146 |
+
* @since 0.1
|
147 |
+
*
|
148 |
+
* @param array column definitions for the Attachment Category list table.
|
149 |
+
*
|
150 |
+
* @return array updated column definitions for the Attachment Category list table.
|
151 |
+
*/
|
152 |
+
public static function mla_attachment_tag_get_columns_filter( $columns ) {
|
153 |
+
unset( $columns[ 'posts' ] );
|
154 |
+
$columns[ 'attachments' ] = 'Attachments';
|
155 |
+
return $columns;
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* WordPress Filter for Attachment Tag "Attachments" column,
|
160 |
+
* which returns a count of the attachments assigned a given tag
|
161 |
+
*
|
162 |
+
* @since 0.1
|
163 |
+
*
|
164 |
+
* @param string unknown, undocumented parameter
|
165 |
+
* @param array name of the column
|
166 |
+
* @param array ID of the term for which the count is desired
|
167 |
+
*
|
168 |
+
* @return array HTML markup for the column content; number of attachments with the tag
|
169 |
+
* and alink to retrieve a list of them.
|
170 |
+
*/
|
171 |
+
public static function mla_attachment_tag_column_filter( $place_holder, $column_name, $term_id ) {
|
172 |
+
$objects = get_objects_in_term( $term_id, 'attachment_tag', array( ) );
|
173 |
+
$term = get_term( $term_id, 'attachment_tag' );
|
174 |
+
if ( is_wp_error( $term ) ) {
|
175 |
+
error_log( 'ERROR: mla_attachment_tag_column_filter - get_term ' . $objects->get_error_message(), 0 );
|
176 |
+
return 0;
|
177 |
+
}
|
178 |
+
|
179 |
+
if ( is_wp_error( $objects ) ) {
|
180 |
+
error_log( 'ERROR: mla_attachment_tag_column_filter - get_objects_in_term ' . $objects->get_error_message(), 0 );
|
181 |
+
return 0;
|
182 |
+
}
|
183 |
+
|
184 |
+
return sprintf( '<a href="%s">%d</a>', esc_url( add_query_arg(
|
185 |
+
array( 'page' => 'mla-menu', 'attachment_tag' => $term->slug, 'heading_suffix' => urlencode( $term->name ) ), 'upload.php' ) ), count( $objects ) );
|
186 |
+
}
|
187 |
+
} //Class MLAObjects
|
188 |
+
?>
|
includes/class-mla-settings.php
CHANGED
@@ -182,11 +182,11 @@ class MLASettings {
|
|
182 |
}
|
183 |
|
184 |
/**
|
185 |
-
* Render the "Media Library Assistant" subpage in the Settings section
|
186 |
*
|
187 |
* @since 0.1
|
188 |
*
|
189 |
-
* @return HTML markup for the settings subpage
|
190 |
*/
|
191 |
public static function mla_render_settings_page( ) {
|
192 |
if ( !current_user_can( 'manage_options' ) ) {
|
@@ -199,9 +199,13 @@ class MLASettings {
|
|
199 |
*/
|
200 |
$page_template_array = MLAData::mla_load_template( MLA_PLUGIN_PATH . 'tpls/admin-display-settings-page.tpl' );
|
201 |
$page_values = array(
|
202 |
-
|
|
|
203 |
'options_list' => '',
|
204 |
-
'
|
|
|
|
|
|
|
205 |
);
|
206 |
|
207 |
/*
|
@@ -231,12 +235,23 @@ class MLASettings {
|
|
231 |
);
|
232 |
|
233 |
/*
|
234 |
-
* $shortcodes documents the name and description of
|
235 |
*/
|
236 |
$shortcodes = array(
|
237 |
// array("name" => "shortcode", "description" => "This shortcode...")
|
|
|
238 |
);
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
|
241 |
$options_list = '';
|
242 |
foreach ( self::$mla_options as $key => $value ) {
|
@@ -358,7 +373,7 @@ class MLASettings {
|
|
358 |
}
|
359 |
}
|
360 |
|
361 |
-
if ( !empty( $page_content['message'] ) )
|
362 |
$page_values['messages'] = MLAData::mla_parse_template( $page_template_array['messages'], array(
|
363 |
'messages' => $page_content['message']
|
364 |
) );
|
@@ -403,7 +418,7 @@ class MLASettings {
|
|
403 |
error_log( 'ERROR: _save_settings unknown type(1): ' . var_export( $value, true ), 0 );
|
404 |
}
|
405 |
|
406 |
-
$message .= '<br>update_option(' . $key .
|
407 |
} else {
|
408 |
switch ( $value['type'] ) {
|
409 |
case 'checkbox':
|
@@ -427,12 +442,12 @@ class MLASettings {
|
|
427 |
error_log( 'ERROR: _save_settings unknown type(2): ' . var_export( $value, true ), 0 );
|
428 |
}
|
429 |
|
430 |
-
$message .= '<br>delete_option(' . $key .
|
431 |
}
|
432 |
}
|
433 |
|
434 |
$page_content = array(
|
435 |
-
'message' =>
|
436 |
'body' => ''
|
437 |
);
|
438 |
|
182 |
}
|
183 |
|
184 |
/**
|
185 |
+
* Render (echo) the "Media Library Assistant" subpage in the Settings section
|
186 |
*
|
187 |
* @since 0.1
|
188 |
*
|
189 |
+
* @return nothing Echoes HTML markup for the settings subpage
|
190 |
*/
|
191 |
public static function mla_render_settings_page( ) {
|
192 |
if ( !current_user_can( 'manage_options' ) ) {
|
199 |
*/
|
200 |
$page_template_array = MLAData::mla_load_template( MLA_PLUGIN_PATH . 'tpls/admin-display-settings-page.tpl' );
|
201 |
$page_values = array(
|
202 |
+
'messages' => '',
|
203 |
+
'shortcode_list' => '',
|
204 |
'options_list' => '',
|
205 |
+
'mla_admin_action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
|
206 |
+
'page' => self::MLA_SETTINGS_SLUG,
|
207 |
+
'_wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
208 |
+
'phpDocs_url' => MLA_PLUGIN_URL . 'phpDocs/index.html'
|
209 |
);
|
210 |
|
211 |
/*
|
235 |
);
|
236 |
|
237 |
/*
|
238 |
+
* $shortcodes documents the name and description of plugin shortcodes
|
239 |
*/
|
240 |
$shortcodes = array(
|
241 |
// array("name" => "shortcode", "description" => "This shortcode...")
|
242 |
+
array( 'name' => 'mla_attachment_list', 'description' => 'renders a complete list of all attachments and references to them.' )
|
243 |
);
|
244 |
|
245 |
+
$shortcode_list = '';
|
246 |
+
foreach ( $shortcodes as $shortcode ) {
|
247 |
+
$shortcode_values = array ( 'name' => $shortcode['name'], 'description' => $shortcode['description'] );
|
248 |
+
$shortcode_list .= MLAData::mla_parse_template( $page_template_array['shortcodeitem'], $shortcode_values );
|
249 |
+
}
|
250 |
+
|
251 |
+
if ( ! empty( $shortcode_list ) ) {
|
252 |
+
$shortcode_values = array ( 'shortcode_list' => $shortcode_list );
|
253 |
+
$page_values['shortcode_list'] = MLAData::mla_parse_template( $page_template_array['shortcodelist'], $shortcode_values );
|
254 |
+
}
|
255 |
|
256 |
$options_list = '';
|
257 |
foreach ( self::$mla_options as $key => $value ) {
|
373 |
}
|
374 |
}
|
375 |
|
376 |
+
if ( ! empty( $page_content['message'] ) )
|
377 |
$page_values['messages'] = MLAData::mla_parse_template( $page_template_array['messages'], array(
|
378 |
'messages' => $page_content['message']
|
379 |
) );
|
418 |
error_log( 'ERROR: _save_settings unknown type(1): ' . var_export( $value, true ), 0 );
|
419 |
}
|
420 |
|
421 |
+
$message .= '<br>update_option(' . $key . ")\r\n";
|
422 |
} else {
|
423 |
switch ( $value['type'] ) {
|
424 |
case 'checkbox':
|
442 |
error_log( 'ERROR: _save_settings unknown type(2): ' . var_export( $value, true ), 0 );
|
443 |
}
|
444 |
|
445 |
+
$message .= '<br>delete_option(' . $key . ")\r\n";
|
446 |
}
|
447 |
}
|
448 |
|
449 |
$page_content = array(
|
450 |
+
'message' => "<br>Settings saved.\r\n",
|
451 |
'body' => ''
|
452 |
);
|
453 |
|
includes/class-mla-shortcodes.php
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Media Library Assistant Shortcode handler(s)
|
4 |
+
*
|
5 |
+
* @package Media Library Assistant
|
6 |
+
* @since 0.1
|
7 |
+
*/
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users
|
11 |
+
*
|
12 |
+
* @package Media Library Assistant
|
13 |
+
* @since 0.20
|
14 |
+
*/
|
15 |
+
class MLAShortcodes {
|
16 |
+
/**
|
17 |
+
* Initialization function, similar to __construct()
|
18 |
+
*
|
19 |
+
* @since 0.20
|
20 |
+
*/
|
21 |
+
public static function initialize() {
|
22 |
+
add_shortcode( 'mla_attachment_list', 'MLAShortcodes::mla_attachment_list_shortcode' );
|
23 |
+
}
|
24 |
+
|
25 |
+
/**
|
26 |
+
* WordPress Shortcode; renders a complete list of all attachments and references to them
|
27 |
+
*
|
28 |
+
* @since 0.1
|
29 |
+
*
|
30 |
+
* @return string HTML markup for the attachment list
|
31 |
+
*/
|
32 |
+
public static function mla_attachment_list_shortcode( /* $atts */ ) {
|
33 |
+
global $wpdb;
|
34 |
+
|
35 |
+
/* extract(shortcode_atts(array(
|
36 |
+
'item_type'=>'attachment',
|
37 |
+
'organize_by'=>'title',
|
38 |
+
), $atts)); */
|
39 |
+
|
40 |
+
$attachments = $wpdb->get_results( "
|
41 |
+
SELECT ID, post_title, post_name, post_parent
|
42 |
+
FROM $wpdb->posts
|
43 |
+
WHERE post_type = 'attachment'
|
44 |
+
" );
|
45 |
+
|
46 |
+
foreach ( $attachments as $attachment ) {
|
47 |
+
$references = MLAData::mla_fetch_attachment_references( $attachment->ID, $attachment->post_parent );
|
48 |
+
|
49 |
+
echo ' <br><h3>' . $attachment->ID . ', ' . $attachment->post_title . ', Parent: ' . $attachment->post_parent . '<br>' . $attachment->post_name . '<br>' . $references['base_file'] . "</h3>\r\n";
|
50 |
+
|
51 |
+
/*
|
52 |
+
* Look for the "Featured Image(s)"
|
53 |
+
*/
|
54 |
+
if ( empty( $references['features'] ) ) {
|
55 |
+
echo " not featured in any posts.<br>\r\n";
|
56 |
+
} else {
|
57 |
+
echo " Featured in<br>\r\n";
|
58 |
+
foreach ( $references['features'] as $feature_id => $feature ) {
|
59 |
+
echo ' ';
|
60 |
+
|
61 |
+
if ( $feature_id == $attachment->post_parent ) {
|
62 |
+
echo 'PARENT ';
|
63 |
+
$found_parent = true;
|
64 |
+
}
|
65 |
+
|
66 |
+
echo $feature_id . ' (' . $feature->post_type . '), ' . $feature->post_title . "<br>\r\n";
|
67 |
+
}
|
68 |
+
}
|
69 |
+
|
70 |
+
/*
|
71 |
+
* Look for item(s) inserted in post_content
|
72 |
+
*/
|
73 |
+
if ( empty( $references['inserts'] ) ) {
|
74 |
+
echo " no inserts in any post_content.<br>\r\n";
|
75 |
+
} else {
|
76 |
+
foreach ( $references['inserts'] as $file => $inserts ) {
|
77 |
+
echo ' ' . $file . " inserted in<br>\r\n";
|
78 |
+
foreach ( $inserts as $insert ) {
|
79 |
+
echo ' ';
|
80 |
+
|
81 |
+
if ( $insert->ID == $attachment->post_parent ) {
|
82 |
+
echo 'PARENT ';
|
83 |
+
$found_parent = true;
|
84 |
+
}
|
85 |
+
|
86 |
+
echo $insert->ID . ' (' . $insert->post_type . '), ' . $insert->post_title . "<br>\r\n";
|
87 |
+
} // foreach $insert
|
88 |
+
} // foreach $file
|
89 |
+
}
|
90 |
+
|
91 |
+
$errors = '';
|
92 |
+
|
93 |
+
if ( !$references['found_reference'] )
|
94 |
+
$errors .= '(ORPHAN) ';
|
95 |
+
|
96 |
+
if ( $references['is_unattached'] )
|
97 |
+
$errors .= '(UNATTACHED) ';
|
98 |
+
else {
|
99 |
+
if ( !$references['found_parent'] )
|
100 |
+
$errors .= '(BAD PARENT) ';
|
101 |
+
}
|
102 |
+
|
103 |
+
if ( !empty( $errors ) )
|
104 |
+
echo ' ' . $errors . "<br>\r\n";
|
105 |
+
} // foreach attachment
|
106 |
+
|
107 |
+
echo "<br>----- End of Report -----\r\n";
|
108 |
+
}
|
109 |
+
} // Clas MLAShortcodes
|
110 |
+
?>
|
includes/mla-objects.php
DELETED
@@ -1,172 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Media Library Assistant Custom Taxonomy and Post Type objects
|
4 |
-
*
|
5 |
-
* @package Media Library Assistant
|
6 |
-
* @since 0.1
|
7 |
-
*/
|
8 |
-
|
9 |
-
/**
|
10 |
-
* WordPress Action; registers Attachment Categories and Attachment Tags custom taxonomies
|
11 |
-
*
|
12 |
-
* @since 0.1
|
13 |
-
*/
|
14 |
-
function mla_build_taxonomies_action( ) {
|
15 |
-
$labels = array(
|
16 |
-
'name' => _x( 'Attachment Categories', 'taxonomy general name' ),
|
17 |
-
'singular_name' => _x( 'Attachment Category', 'taxonomy singular name' ),
|
18 |
-
'search_items' => __( 'Search Attachment Categories' ),
|
19 |
-
'all_items' => __( 'All Attachment Categories' ),
|
20 |
-
'parent_item' => __( 'Parent Attachment Category' ),
|
21 |
-
'parent_item_colon' => __( 'Parent Attachment Category:' ),
|
22 |
-
'edit_item' => __( 'Edit Attachment Category' ),
|
23 |
-
'update_item' => __( 'Update Attachment Category' ),
|
24 |
-
'add_new_item' => __( 'Add New Attachment Category' ),
|
25 |
-
'new_item_name' => __( 'New Attachment Category Name' ),
|
26 |
-
'menu_name' => __( 'Attachment Category' )
|
27 |
-
);
|
28 |
-
|
29 |
-
if ( 'checked' == MLASettings::mla_get_option( 'attachment_category' ) ) {
|
30 |
-
register_taxonomy(
|
31 |
-
'attachment_category',
|
32 |
-
array( 'attachment' ),
|
33 |
-
array(
|
34 |
-
'hierarchical' => true,
|
35 |
-
'labels' => $labels,
|
36 |
-
'show_ui' => true,
|
37 |
-
'query_var' => true,
|
38 |
-
'rewrite' => true
|
39 |
-
)
|
40 |
-
);
|
41 |
-
|
42 |
-
add_filter( 'manage_edit-attachment_category_columns', 'mla_attachment_category_get_columns_filter', 10, 1 ); // $columns
|
43 |
-
add_filter( 'manage_attachment_category_custom_column', 'mla_attachment_category_column_filter', 10, 3 ); // $place_holder, $column_name, $tag->term_id
|
44 |
-
}
|
45 |
-
|
46 |
-
$labels = array(
|
47 |
-
'name' => _x( 'Attachment Tags', 'taxonomy general name' ),
|
48 |
-
'singular_name' => _x( 'Attachment Tag', 'taxonomy singular name' ),
|
49 |
-
'search_items' => __( 'Search Attachment Tags' ),
|
50 |
-
'all_items' => __( 'All Attachment Tags' ),
|
51 |
-
'parent_item' => __( 'Parent Attachment Tag' ),
|
52 |
-
'parent_item_colon' => __( 'Parent Attachment Tag:' ),
|
53 |
-
'edit_item' => __( 'Edit Attachment Tag' ),
|
54 |
-
'update_item' => __( 'Update Attachment Tag' ),
|
55 |
-
'add_new_item' => __( 'Add New Attachment Tag' ),
|
56 |
-
'new_item_name' => __( 'New Attachment Tag Name' ),
|
57 |
-
'menu_name' => __( 'Attachment Tag' )
|
58 |
-
);
|
59 |
-
|
60 |
-
if ( 'checked' == MLASettings::mla_get_option( 'attachment_tag' ) ) {
|
61 |
-
register_taxonomy(
|
62 |
-
'attachment_tag',
|
63 |
-
array( 'attachment' ),
|
64 |
-
array(
|
65 |
-
'hierarchical' => false,
|
66 |
-
'labels' => $labels,
|
67 |
-
'show_ui' => true,
|
68 |
-
'query_var' => true,
|
69 |
-
'rewrite' => true
|
70 |
-
)
|
71 |
-
);
|
72 |
-
|
73 |
-
add_filter( 'manage_edit-attachment_tag_columns', 'mla_attachment_tag_get_columns_filter', 10, 1 ); // $columns
|
74 |
-
add_filter( 'manage_attachment_tag_custom_column', 'mla_attachment_tag_column_filter', 10, 3 ); // $place_holder, $column_name, $tag->term_id
|
75 |
-
}
|
76 |
-
|
77 |
-
} // mla_build_taxonomies_action
|
78 |
-
add_action( 'init', 'mla_build_taxonomies_action', 0 );
|
79 |
-
|
80 |
-
/**
|
81 |
-
* WordPress Filter for Attachment Category "Attachments" column,
|
82 |
-
* which replaces the "Posts" column with an equivalent "Attachments" column.
|
83 |
-
*
|
84 |
-
* @since 0.1
|
85 |
-
*
|
86 |
-
* @param array column definitions for the Attachment Category list table.
|
87 |
-
*
|
88 |
-
* @return array updated column definitions for the Attachment Category list table.
|
89 |
-
*/
|
90 |
-
function mla_attachment_category_get_columns_filter( $columns ) {
|
91 |
-
unset( $columns[ 'posts' ] );
|
92 |
-
$columns[ 'attachments' ] = 'Attachments';
|
93 |
-
return $columns;
|
94 |
-
}
|
95 |
-
|
96 |
-
/**
|
97 |
-
* WordPress Filter for Attachment Category "Attachments" column,
|
98 |
-
* which returns a count of the attachments assigned a given category
|
99 |
-
*
|
100 |
-
* @since 0.1
|
101 |
-
*
|
102 |
-
* @param string unknown, undocumented parameter.
|
103 |
-
* @param array name of the column.
|
104 |
-
* @param array ID of the term for which the count is desired.
|
105 |
-
*
|
106 |
-
* @return array HTML markup for the column content; number of attachments in the category
|
107 |
-
* and alink to retrieve a list of them.
|
108 |
-
*/
|
109 |
-
function mla_attachment_category_column_filter( $place_holder, $column_name, $term_id ) {
|
110 |
-
$objects = get_objects_in_term( $term_id, 'attachment_category', array( ) );
|
111 |
-
$term = get_term( $term_id, 'attachment_category' );
|
112 |
-
|
113 |
-
if ( is_wp_error( $term ) ) {
|
114 |
-
error_log( 'ERROR: mla_attachment_category_column_filter - get_term ' . $objects->get_error_message(), 0 );
|
115 |
-
return 0;
|
116 |
-
}
|
117 |
-
|
118 |
-
if ( is_wp_error( $objects ) ) {
|
119 |
-
error_log( 'ERROR: mla_attachment_category_column_filter - get_objects_in_term ' . $objects->get_error_message(), 0 );
|
120 |
-
return 0;
|
121 |
-
}
|
122 |
-
|
123 |
-
return sprintf( '<a href="%s">%d</a>', esc_url( add_query_arg(
|
124 |
-
array( 'page' => 'mla-menu', 'attachment_category' => $term->slug, 'heading_suffix' => urlencode( $term->name ) ), 'upload.php' ) ), count( $objects ) );
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* WordPress Filter for Attachment Tag "Attachments" column,
|
129 |
-
* which replaces the "Posts" column with an equivalent "Attachments" column.
|
130 |
-
*
|
131 |
-
* @since 0.1
|
132 |
-
*
|
133 |
-
* @param array column definitions for the Attachment Category list table.
|
134 |
-
*
|
135 |
-
* @return array updated column definitions for the Attachment Category list table.
|
136 |
-
*/
|
137 |
-
function mla_attachment_tag_get_columns_filter( $columns ) {
|
138 |
-
unset( $columns[ 'posts' ] );
|
139 |
-
$columns[ 'attachments' ] = 'Attachments';
|
140 |
-
return $columns;
|
141 |
-
}
|
142 |
-
|
143 |
-
/**
|
144 |
-
* WordPress Filter for Attachment Tag "Attachments" column,
|
145 |
-
* which returns a count of the attachments assigned a given tag
|
146 |
-
*
|
147 |
-
* @since 0.1
|
148 |
-
*
|
149 |
-
* @param string unknown, undocumented parameter
|
150 |
-
* @param array name of the column
|
151 |
-
* @param array ID of the term for which the count is desired
|
152 |
-
*
|
153 |
-
* @return array HTML markup for the column content; number of attachments with the tag
|
154 |
-
* and alink to retrieve a list of them.
|
155 |
-
*/
|
156 |
-
function mla_attachment_tag_column_filter( $place_holder, $column_name, $term_id ) {
|
157 |
-
$objects = get_objects_in_term( $term_id, 'attachment_tag', array( ) );
|
158 |
-
$term = get_term( $term_id, 'attachment_tag' );
|
159 |
-
if ( is_wp_error( $term ) ) {
|
160 |
-
error_log( 'ERROR: mla_attachment_tag_column_filter - get_term ' . $objects->get_error_message(), 0 );
|
161 |
-
return 0;
|
162 |
-
}
|
163 |
-
|
164 |
-
if ( is_wp_error( $objects ) ) {
|
165 |
-
error_log( 'ERROR: mla_attachment_tag_column_filter - get_objects_in_term ' . $objects->get_error_message(), 0 );
|
166 |
-
return 0;
|
167 |
-
}
|
168 |
-
|
169 |
-
return sprintf( '<a href="%s">%d</a>', esc_url( add_query_arg(
|
170 |
-
array( 'page' => 'mla-menu', 'attachment_tag' => $term->slug, 'heading_suffix' => urlencode( $term->name ) ), 'upload.php' ) ), count( $objects ) );
|
171 |
-
}
|
172 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/mla-plugin-loader.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Media Library Assistant Plugin Loader
|
4 |
+
*
|
5 |
+
* Defines constants and loads all of the classes and functions required to run the plugin.
|
6 |
+
* This file is only loaded if the naming conflict tests in index.php are passed.
|
7 |
+
*
|
8 |
+
* @package Media Library Assistant
|
9 |
+
* @since 0.20
|
10 |
+
*/
|
11 |
+
|
12 |
+
if (!defined('MLA_OPTION_PREFIX'))
|
13 |
+
/**
|
14 |
+
* Gives a unique prefix for plugin options; can be set in wp-config.php
|
15 |
+
*/
|
16 |
+
define('MLA_OPTION_PREFIX', 'mla_');
|
17 |
+
|
18 |
+
/*
|
19 |
+
* Template file and database access functions.
|
20 |
+
*/
|
21 |
+
require_once( MLA_PLUGIN_PATH . 'includes/class-mla-data.php' );
|
22 |
+
|
23 |
+
add_action( 'init', 'MLAData::initialize' );
|
24 |
+
|
25 |
+
/*
|
26 |
+
* Custom list table package that extends the core WP_List_Table class.
|
27 |
+
*/
|
28 |
+
require_once( MLA_PLUGIN_PATH . 'includes/class-mla-list-table.php' );
|
29 |
+
|
30 |
+
/*
|
31 |
+
* Custom Taxonomies and WordPress objects.
|
32 |
+
*/
|
33 |
+
require_once( MLA_PLUGIN_PATH . 'includes/class-mla-objects.php' );
|
34 |
+
|
35 |
+
add_action('init', 'MLAObjects::initialize');
|
36 |
+
|
37 |
+
/*
|
38 |
+
* Shortcodes
|
39 |
+
*/
|
40 |
+
require_once( MLA_PLUGIN_PATH . 'includes/class-mla-shortcodes.php');
|
41 |
+
|
42 |
+
add_action('init', 'MLAShortcodes::initialize');
|
43 |
+
|
44 |
+
/*
|
45 |
+
* Basic library of run-time tests.
|
46 |
+
*/
|
47 |
+
require_once( MLA_PLUGIN_PATH . 'tests/class-mla-tests.php' );
|
48 |
+
|
49 |
+
/*
|
50 |
+
* Plugin settings and management page
|
51 |
+
*/
|
52 |
+
require_once( MLA_PLUGIN_PATH . 'includes/class-mla-settings.php' );
|
53 |
+
|
54 |
+
add_action( 'init', 'MLASettings::initialize' );
|
55 |
+
|
56 |
+
/*
|
57 |
+
* Main program
|
58 |
+
*/
|
59 |
+
require_once( MLA_PLUGIN_PATH . 'includes/class-mla-main.php');
|
60 |
+
|
61 |
+
add_action('init', 'MLA::initialize');
|
62 |
+
?>
|
includes/mla-shortcodes.php
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Media Library Assistant Shortcode handler(s)
|
4 |
-
*
|
5 |
-
* @package Media Library Assistant
|
6 |
-
* @since 0.1
|
7 |
-
*/
|
8 |
-
|
9 |
-
/**
|
10 |
-
* WordPress Shortcode; renders a complete list of all attachments and references to them
|
11 |
-
*
|
12 |
-
* @since 0.1
|
13 |
-
*
|
14 |
-
* @return string HTML markup for the attachment list
|
15 |
-
*/
|
16 |
-
function mla_attachment_list_shortcode( /* $atts */ ) {
|
17 |
-
global $wpdb;
|
18 |
-
|
19 |
-
/* extract(shortcode_atts(array(
|
20 |
-
'item_type'=>'attachment',
|
21 |
-
'organize_by'=>'title',
|
22 |
-
), $atts)); */
|
23 |
-
|
24 |
-
$attachments = $wpdb->get_results( "
|
25 |
-
SELECT ID, post_title, post_name, post_parent
|
26 |
-
FROM $wpdb->posts
|
27 |
-
WHERE post_type = 'attachment'
|
28 |
-
" );
|
29 |
-
|
30 |
-
foreach ( $attachments as $attachment ) {
|
31 |
-
$references = MLAData::mla_fetch_attachment_references( $attachment->ID, $attachment->post_parent );
|
32 |
-
|
33 |
-
echo ' <br><h3>' . $attachment->ID . ', ' . $attachment->post_title . ', Parent: ' . $attachment->post_parent . '<br>' . $attachment->post_name . '<br>' . $references['base_file'] . "</h3>\r\n";
|
34 |
-
|
35 |
-
/*
|
36 |
-
* Look for the "Featured Image(s)"
|
37 |
-
*/
|
38 |
-
if ( empty( $references['features'] ) ) {
|
39 |
-
echo " not featured in any posts.<br>\r\n";
|
40 |
-
} else {
|
41 |
-
echo " Featured in<br>\r\n";
|
42 |
-
foreach ( $references['features'] as $feature_id => $feature ) {
|
43 |
-
echo ' ';
|
44 |
-
|
45 |
-
if ( $feature_id == $attachment->post_parent ) {
|
46 |
-
echo 'PARENT ';
|
47 |
-
$found_parent = true;
|
48 |
-
}
|
49 |
-
|
50 |
-
echo $feature_id . ' (' . $feature->post_type . '), ' . $feature->post_title . "<br>\r\n";
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
/*
|
55 |
-
* Look for item(s) inserted in post_content
|
56 |
-
*/
|
57 |
-
if ( empty( $references['inserts'] ) ) {
|
58 |
-
echo " no inserts in any post_content.<br>\r\n";
|
59 |
-
} else {
|
60 |
-
foreach ( $references['inserts'] as $file => $inserts ) {
|
61 |
-
echo ' ' . $file . " inserted in<br>\r\n";
|
62 |
-
foreach ( $inserts as $insert ) {
|
63 |
-
echo ' ';
|
64 |
-
|
65 |
-
if ( $insert->ID == $attachment->post_parent ) {
|
66 |
-
echo 'PARENT ';
|
67 |
-
$found_parent = true;
|
68 |
-
}
|
69 |
-
|
70 |
-
echo $insert->ID . ' (' . $insert->post_type . '), ' . $insert->post_title . "<br>\r\n";
|
71 |
-
} // foreach $insert
|
72 |
-
} // foreach $file
|
73 |
-
}
|
74 |
-
|
75 |
-
$errors = '';
|
76 |
-
|
77 |
-
if ( !$references['found_reference'] )
|
78 |
-
$errors .= '(ORPHAN) ';
|
79 |
-
|
80 |
-
if ( $references['is_unattached'] )
|
81 |
-
$errors .= '(UNATTACHED) ';
|
82 |
-
else {
|
83 |
-
if ( !$references['found_parent'] )
|
84 |
-
$errors .= '(BAD PARENT) ';
|
85 |
-
}
|
86 |
-
|
87 |
-
if ( !empty( $errors ) )
|
88 |
-
echo ' ' . $errors . "<br>\r\n";
|
89 |
-
} // foreach attachment
|
90 |
-
|
91 |
-
echo "<br>----- End of Report -----\r\n";
|
92 |
-
}
|
93 |
-
add_shortcode( 'mla_attachment_list', 'mla_attachment_list_shortcode' );
|
94 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
index.php
CHANGED
@@ -2,8 +2,11 @@
|
|
2 |
/**
|
3 |
* Provides several enhancements to the handling of images and files held in the WordPress Media Library
|
4 |
*
|
|
|
|
|
|
|
5 |
* @package Media Library Assistant
|
6 |
-
* @version 0.
|
7 |
*/
|
8 |
|
9 |
/*
|
@@ -11,64 +14,95 @@ Plugin Name: Media Library Assistant
|
|
11 |
Plugin URI: http://home.comcast.net/~dlingren/
|
12 |
Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
|
13 |
Author: David Lingren
|
14 |
-
Version: 0.
|
15 |
Author URI: http://home.comcast.net/~dlingren/
|
16 |
*/
|
17 |
|
18 |
/**
|
19 |
-
*
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Provides path information to the plugin root in URL format.
|
25 |
*/
|
26 |
-
|
27 |
-
|
28 |
-
if (
|
|
|
|
|
|
|
29 |
/**
|
30 |
-
*
|
31 |
*/
|
32 |
-
define('
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
require_once('includes/class-mla-list-table.php');
|
45 |
-
|
46 |
-
/*
|
47 |
-
* Custom Taxonomies and WordPress objects.
|
48 |
-
*/
|
49 |
-
require_once('includes/mla-objects.php');
|
50 |
|
51 |
-
|
52 |
-
*
|
|
|
|
|
|
|
53 |
*/
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
/*
|
57 |
-
*
|
58 |
*/
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
|
61 |
-
|
62 |
-
*
|
|
|
|
|
63 |
*/
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
add_action('init', 'MLASettings::initialize');
|
67 |
-
|
68 |
/*
|
69 |
-
*
|
70 |
*/
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
2 |
/**
|
3 |
* Provides several enhancements to the handling of images and files held in the WordPress Media Library
|
4 |
*
|
5 |
+
* This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
6 |
+
* will the rest of the plugin be loaded and run.
|
7 |
+
*
|
8 |
* @package Media Library Assistant
|
9 |
+
* @version 0.20
|
10 |
*/
|
11 |
|
12 |
/*
|
14 |
Plugin URI: http://home.comcast.net/~dlingren/
|
15 |
Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
|
16 |
Author: David Lingren
|
17 |
+
Version: 0.20
|
18 |
Author URI: http://home.comcast.net/~dlingren/
|
19 |
*/
|
20 |
|
21 |
/**
|
22 |
+
* Accumulates error messages from name conflict tests
|
23 |
+
*
|
24 |
+
* @since 0.20
|
|
|
|
|
|
|
25 |
*/
|
26 |
+
$mla_name_conflict_error_messages = '';
|
27 |
+
|
28 |
+
if ( defined( 'MLA_PLUGIN_PATH' ) ) {
|
29 |
+
$mla_name_conflict_error_messages .= '<li>constant MLA_PLUGIN_PATH</li>';
|
30 |
+
}
|
31 |
+
else {
|
32 |
/**
|
33 |
+
* Provides path information to the plugin root in file system format.
|
34 |
*/
|
35 |
+
define( 'MLA_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
36 |
+
}
|
37 |
+
|
38 |
+
if ( defined( 'MLA_PLUGIN_URL' ) ) {
|
39 |
+
$mla_name_conflict_error_messages .= '<li>constant MLA_PLUGIN_URL</li>';
|
40 |
+
}
|
41 |
+
else {
|
42 |
+
/**
|
43 |
+
* Provides path information to the plugin root in URL format.
|
44 |
+
*/
|
45 |
+
define( 'MLA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
46 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
+
/**
|
49 |
+
* Defines classes, functions and constants for name conflict tests. There are no global functions
|
50 |
+
* or other constants in this version; everything is wrapped in classes to minimize potential conflicts.
|
51 |
+
*
|
52 |
+
* @since 0.20
|
53 |
*/
|
54 |
+
$mla_name_conflict_candidates =
|
55 |
+
array (
|
56 |
+
'MLA' => 'class',
|
57 |
+
'MLAData' => 'class',
|
58 |
+
'MLAObjects' => 'class',
|
59 |
+
'MLASettings' => 'class',
|
60 |
+
'MLAShortcodes' => 'class',
|
61 |
+
'MLATest' => 'class',
|
62 |
+
'MLA_List_Table' => 'class',
|
63 |
+
);
|
64 |
|
65 |
/*
|
66 |
+
* Check for conflicting names, i.e., already defined by some other plugin or theme
|
67 |
*/
|
68 |
+
foreach ( $mla_name_conflict_candidates as $value => $type ) {
|
69 |
+
switch ($type) {
|
70 |
+
case 'class':
|
71 |
+
if ( class_exists( $value ) )
|
72 |
+
$mla_name_conflict_error_messages .= "<li>class {$value}</li>";
|
73 |
+
break;
|
74 |
+
case 'function':
|
75 |
+
if ( function_exists( $value ) )
|
76 |
+
$mla_name_conflict_error_messages .= "<li>function {$value}</li>";
|
77 |
+
break;
|
78 |
+
case 'constant':
|
79 |
+
if ( defined( $value ) )
|
80 |
+
$mla_name_conflict_error_messages .= "<li>constant {$value}</li>";
|
81 |
+
break;
|
82 |
+
default:
|
83 |
+
} // switch $type
|
84 |
+
}
|
85 |
|
86 |
+
/**
|
87 |
+
* Displays name conflict error messages at the top of the Dashboard
|
88 |
+
*
|
89 |
+
* @since 0.20
|
90 |
*/
|
91 |
+
function mla_name_conflict_reporting_action () {
|
92 |
+
global $mla_name_conflict_error_messages;
|
93 |
+
|
94 |
+
echo '<div class="error"><p><strong>The Media Library Assistant cannot load.</strong> Another plugin or theme has declared conflicting class, function or constant names:</p>'."\r\n";
|
95 |
+
echo "<ul>{$mla_name_conflict_error_messages}</ul>\r\n";
|
96 |
+
echo '<p>You most resolve these conflicts before this plugin can safely load.</p></div>'."\r\n";
|
97 |
+
}
|
98 |
|
|
|
|
|
99 |
/*
|
100 |
+
* Load the plugin or display conflict message(s)
|
101 |
*/
|
102 |
+
if ( empty( $mla_name_conflict_error_messages ) ) {
|
103 |
+
require_once('includes/mla-plugin-loader.php');
|
104 |
+
}
|
105 |
+
else {
|
106 |
+
add_action( 'admin_notices', 'mla_name_conflict_reporting_action' );
|
107 |
+
}
|
108 |
+
?>
|
js/mla-inline-edit-scripts.dev.js
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
// These functions are adapted from wp-admin/js/inline-edit-post.js
|
2 |
+
(function($) {
|
3 |
+
inlineEditAttachment = {
|
4 |
+
|
5 |
+
init : function(){
|
6 |
+
var t = this, qeRow = $('#inline-edit'), bulkRow = $('#bulk-edit');
|
7 |
+
|
8 |
+
t.type = 'attachment';
|
9 |
+
t.what = '#attachment-';
|
10 |
+
|
11 |
+
// prepare the edit rows
|
12 |
+
qeRow.keyup(function(e){
|
13 |
+
if (e.which == 27)
|
14 |
+
return inlineEditAttachment.revert();
|
15 |
+
});
|
16 |
+
bulkRow.keyup(function(e){
|
17 |
+
if (e.which == 27)
|
18 |
+
return inlineEditAttachment.revert();
|
19 |
+
});
|
20 |
+
|
21 |
+
$('a.cancel', qeRow).click(function(){
|
22 |
+
return inlineEditAttachment.revert();
|
23 |
+
});
|
24 |
+
$('a.save', qeRow).click(function(){
|
25 |
+
return inlineEditAttachment.save(this);
|
26 |
+
});
|
27 |
+
$('td', qeRow).keydown(function(e){
|
28 |
+
if ( e.which == 13 )
|
29 |
+
return inlineEditAttachment.save(this);
|
30 |
+
});
|
31 |
+
|
32 |
+
$('a.cancel', bulkRow).click(function(){
|
33 |
+
return inlineEditAttachment.revert();
|
34 |
+
});
|
35 |
+
|
36 |
+
// add events
|
37 |
+
$('a.editinline').live('click', function(){
|
38 |
+
inlineEditAttachment.edit(this);
|
39 |
+
return false;
|
40 |
+
});
|
41 |
+
|
42 |
+
$('#bulk-title-div').parents('fieldset').after(
|
43 |
+
$('#inline-edit fieldset.inline-edit-categories').clone()
|
44 |
+
).siblings( 'fieldset:last' ).prepend(
|
45 |
+
$('#inline-edit label.inline-edit-tags').clone()
|
46 |
+
);
|
47 |
+
|
48 |
+
// hiearchical taxonomies expandable?
|
49 |
+
$('span.catshow').click(function(){
|
50 |
+
$(this).hide().next().show().parent().next().addClass("cat-hover");
|
51 |
+
});
|
52 |
+
|
53 |
+
$('span.cathide').click(function(){
|
54 |
+
$(this).hide().prev().show().parent().next().removeClass("cat-hover");
|
55 |
+
});
|
56 |
+
|
57 |
+
$('select[name="_status"] option[value="future"]', bulkRow).remove();
|
58 |
+
|
59 |
+
$('#doaction, #doaction2').click(function(e){
|
60 |
+
var n = $(this).attr('id').substr(2);
|
61 |
+
if ( $('select[name="'+n+'"]').val() == 'edit' ) {
|
62 |
+
e.preventDefault();
|
63 |
+
t.setBulk();
|
64 |
+
} else if ( $('form#posts-filter tr.inline-editor').length > 0 ) {
|
65 |
+
t.revert();
|
66 |
+
}
|
67 |
+
});
|
68 |
+
|
69 |
+
// Filter button (dates, categories) in top nav bar
|
70 |
+
$('#post-query-submit').mousedown(function(e){
|
71 |
+
t.revert();
|
72 |
+
$('select[name^="action"]').val('-1');
|
73 |
+
});
|
74 |
+
},
|
75 |
+
|
76 |
+
toggle : function(el){
|
77 |
+
var t = this;
|
78 |
+
$(t.what+t.getId(el)).css('display') == 'none' ? t.revert() : t.edit(el);
|
79 |
+
},
|
80 |
+
|
81 |
+
setBulk : function(){
|
82 |
+
var te = '', c = true;
|
83 |
+
this.revert();
|
84 |
+
|
85 |
+
$('#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length);
|
86 |
+
$('table.widefat tbody').prepend( $('#bulk-edit') );
|
87 |
+
$('#bulk-edit').addClass('inline-editor').show();
|
88 |
+
|
89 |
+
$('tbody th.check-column input[type="checkbox"]').each(function(i){
|
90 |
+
if ( $(this).prop('checked') ) {
|
91 |
+
c = false;
|
92 |
+
var id = $(this).val(), theTitle;
|
93 |
+
theTitle = $('#inline_'+id+' .post_title').text() || inlineEditL10n.notitle;
|
94 |
+
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+theTitle+'</div>';
|
95 |
+
}
|
96 |
+
});
|
97 |
+
|
98 |
+
if ( c )
|
99 |
+
return this.revert();
|
100 |
+
|
101 |
+
$('#bulk-titles').html(te);
|
102 |
+
$('#bulk-titles a').click(function(){
|
103 |
+
var id = $(this).attr('id').substr(1);
|
104 |
+
|
105 |
+
$('table.widefat input[value="' + id + '"]').prop('checked', false);
|
106 |
+
$('#ttle'+id).remove();
|
107 |
+
});
|
108 |
+
|
109 |
+
$('html, body').animate( { scrollTop: 0 }, 'fast' );
|
110 |
+
},
|
111 |
+
|
112 |
+
edit : function(id) {
|
113 |
+
var t = this, fields, editRow, rowData, fIndex;
|
114 |
+
t.revert();
|
115 |
+
|
116 |
+
if ( typeof(id) == 'object' )
|
117 |
+
id = t.getId(id);
|
118 |
+
|
119 |
+
fields = ['post_title', 'post_name', 'image_alt', 'post_parent', 'post_author'];
|
120 |
+
|
121 |
+
// add the new blank row
|
122 |
+
editRow = $('#inline-edit').clone(true);
|
123 |
+
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
124 |
+
|
125 |
+
if ( $(t.what+id).hasClass('alternate') )
|
126 |
+
$(editRow).addClass('alternate');
|
127 |
+
$(t.what+id).hide().after(editRow);
|
128 |
+
|
129 |
+
// populate the data
|
130 |
+
rowData = $('#inline_'+id);
|
131 |
+
if ( !$(':input[name="post_author"] option[value="' + $('.post_author', rowData).text() + '"]', editRow).val() ) {
|
132 |
+
// author no longer has edit caps, so we need to add them to the list of authors
|
133 |
+
$(':input[name="post_author"]', editRow).prepend('<option value="' + $('.post_author', rowData).text() + '">' + $('#' + t.type + '-' + id + ' .author').text() + '</option>');
|
134 |
+
}
|
135 |
+
|
136 |
+
if ( $(':input[name="post_author"] option', editRow).length == 1 ) {
|
137 |
+
$('label.inline-edit-author', editRow).hide();
|
138 |
+
}
|
139 |
+
|
140 |
+
for ( fIndex = 0; fIndex < fields.length; fIndex++ ) {
|
141 |
+
$(':input[name="' + fields[fIndex] + '"]', editRow).val( $('.'+fields[fIndex], rowData).text() );
|
142 |
+
}
|
143 |
+
|
144 |
+
if ( $('.image_alt', rowData).length == 0) {
|
145 |
+
$('label.inline-edit-image-alt', editRow).hide();
|
146 |
+
}
|
147 |
+
|
148 |
+
// hierarchical taxonomies
|
149 |
+
$('.mla_category', rowData).each(function(){
|
150 |
+
var term_ids = $(this).text();
|
151 |
+
|
152 |
+
if ( term_ids ) {
|
153 |
+
taxname = $(this).attr('id').replace('_'+id, '');
|
154 |
+
$('ul.'+taxname+'-checklist :checkbox', editRow).val(term_ids.split(','));
|
155 |
+
}
|
156 |
+
});
|
157 |
+
|
158 |
+
//flat taxonomies
|
159 |
+
$('.mla_tags', rowData).each(function(){
|
160 |
+
var terms = $(this).text(),
|
161 |
+
taxname = $(this).attr('id').replace('_' + id, ''),
|
162 |
+
textarea = $('textarea.tax_input_' + taxname, editRow),
|
163 |
+
comma = mla_inline_edit_vars.comma;
|
164 |
+
|
165 |
+
if ( terms ) {
|
166 |
+
if ( ',' !== comma )
|
167 |
+
terms = terms.replace(/,/g, comma);
|
168 |
+
textarea.val(terms);
|
169 |
+
}
|
170 |
+
|
171 |
+
textarea.suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: mla_inline_edit_vars.comma + ' ' } );
|
172 |
+
});
|
173 |
+
|
174 |
+
$(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
|
175 |
+
$('.ptitle', editRow).focus();
|
176 |
+
|
177 |
+
return false;
|
178 |
+
},
|
179 |
+
|
180 |
+
save : function(id) {
|
181 |
+
var params, fields, page = $('.post_status_page').val() || '';
|
182 |
+
|
183 |
+
if ( typeof(id) == 'object' )
|
184 |
+
id = this.getId(id);
|
185 |
+
|
186 |
+
$('table.widefat .inline-edit-save .waiting').show();
|
187 |
+
|
188 |
+
params = {
|
189 |
+
action: mla_inline_edit_vars.ajax_action,
|
190 |
+
nonce: mla_inline_edit_vars.ajax_nonce,
|
191 |
+
post_type: typenow,
|
192 |
+
post_ID: id,
|
193 |
+
edit_date: 'true',
|
194 |
+
post_status: page
|
195 |
+
};
|
196 |
+
|
197 |
+
fields = $('#edit-'+id+' :input').serialize();
|
198 |
+
params = fields + '&' + $.param(params);
|
199 |
+
|
200 |
+
// make ajax request
|
201 |
+
$.post( ajaxurl, params,
|
202 |
+
function(r) {
|
203 |
+
$('table.widefat .inline-edit-save .waiting').hide();
|
204 |
+
|
205 |
+
if (r) {
|
206 |
+
if ( -1 != r.indexOf('<tr') ) {
|
207 |
+
$(inlineEditAttachment.what+id).remove();
|
208 |
+
$('#edit-'+id).before(r).remove();
|
209 |
+
$(inlineEditAttachment.what+id).hide().fadeIn();
|
210 |
+
} else {
|
211 |
+
r = r.replace( /<.[^<>]*?>/g, '' );
|
212 |
+
$('#edit-'+id+' .inline-edit-save .error').html(r).show();
|
213 |
+
}
|
214 |
+
} else {
|
215 |
+
$('#edit-'+id+' .inline-edit-save .error').html(inlineEditL10n.error).show();
|
216 |
+
}
|
217 |
+
}
|
218 |
+
, 'html');
|
219 |
+
return false;
|
220 |
+
},
|
221 |
+
|
222 |
+
revert : function(){
|
223 |
+
var id = $('table.widefat tr.inline-editor').attr('id');
|
224 |
+
|
225 |
+
if ( id ) {
|
226 |
+
$('table.widefat .inline-edit-save .waiting').hide();
|
227 |
+
|
228 |
+
if ( 'bulk-edit' == id ) {
|
229 |
+
$('table.widefat #bulk-edit').removeClass('inline-editor').hide();
|
230 |
+
$('#bulk-titles').html('');
|
231 |
+
$('#inlineedit').append( $('#bulk-edit') );
|
232 |
+
} else {
|
233 |
+
$('#'+id).remove();
|
234 |
+
id = id.substr( id.lastIndexOf('-') + 1 );
|
235 |
+
$(this.what+id).show();
|
236 |
+
}
|
237 |
+
}
|
238 |
+
|
239 |
+
return false;
|
240 |
+
},
|
241 |
+
|
242 |
+
getId : function(o) {
|
243 |
+
var id = $(o).closest('tr').attr('id'),
|
244 |
+
parts = id.split('-');
|
245 |
+
return parts[parts.length - 1];
|
246 |
+
}
|
247 |
+
};
|
248 |
+
|
249 |
+
$(document).ready(function(){inlineEditAttachment.init();});
|
250 |
+
})(jQuery);
|
js/mla-inline-edit-scripts.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(a){inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditAttachment.revert()}});a("a.cancel",d).click(function(){return inlineEditAttachment.revert()});a("a.save",d).click(function(){return inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return inlineEditAttachment.save(this)}});a("a.cancel",b).click(function(){return inlineEditAttachment.revert()});a("a.editinline").live("click",function(){inlineEditAttachment.edit(this);return false});a("#bulk-title-div").parents("fieldset").after(a("#inline-edit fieldset.inline-edit-categories").clone()).siblings("fieldset:last").prepend(a("#inline-edit label.inline-edit-tags").clone());a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(f){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css("display")=="none"?b.revert():b.edit(c)},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(e){if(a(this).prop("checked")){d=false;var f=a(this).val(),c;c=a("#inline_"+f+" .post_title").text()||inlineEditL10n.notitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+inlineEditL10n.ntdeltitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=["post_title","post_name","image_alt","post_parent","post_author"];c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length==0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text();if(h){taxname=a(this).attr("id").replace("_"+g,"");a("ul."+taxname+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla_inline_edit_vars.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .waiting").show();d={action:mla_inline_edit_vars.ajax_action,nonce:mla_inline_edit_vars.ajax_nonce,post_type:typenow,post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .waiting").hide();if(f){if(-1!=f.indexOf("<tr")){a(inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(inlineEditL10n.error).show()}},"html");return false},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .waiting").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest("tr").attr("id"),b=d.split("-");return b[b.length-1]}};a(document).ready(function(){inlineEditAttachment.init()})})(jQuery);
|
js/{mla-scripts.js → mla-single-edit-scripts.dev.js}
RENAMED
@@ -1,8 +1,6 @@
|
|
1 |
-
|
2 |
|
3 |
-
var
|
4 |
-
comma: ','
|
5 |
-
}
|
6 |
|
7 |
// return an array with any duplicate, whitespace or values removed
|
8 |
function array_unique_noempty(a) {
|
@@ -17,20 +15,20 @@ function array_unique_noempty(a) {
|
|
17 |
|
18 |
(function($){
|
19 |
|
20 |
-
tagBox = {
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
parseTags : function(el) {
|
32 |
var id = el.id, num = id.split('-check-num-')[1], taxbox = $(el).closest('.tagsdiv'),
|
33 |
-
thetags = taxbox.find('.the-tags'), comma =
|
34 |
current_tags = thetags.val().split(comma), new_tags = [];
|
35 |
delete current_tags[num];
|
36 |
|
@@ -58,7 +56,7 @@ tagBox = {
|
|
58 |
|
59 |
disabled = thetags.prop('disabled');
|
60 |
|
61 |
-
current_tags = thetags.val().split(
|
62 |
tagchecklist.empty();
|
63 |
|
64 |
$.each( current_tags, function( key, val ) {
|
@@ -88,7 +86,7 @@ tagBox = {
|
|
88 |
a = a || false;
|
89 |
var tags = $('.the-tags', el),
|
90 |
newtag = $('input.newtag', el),
|
91 |
-
comma =
|
92 |
newtags, text;
|
93 |
|
94 |
text = a ? $(a).text() : newtag.val();
|
@@ -157,7 +155,7 @@ tagBox = {
|
|
157 |
}
|
158 |
}).each(function(){
|
159 |
var tax = $(this).closest('div.tagsdiv').attr('id');
|
160 |
-
$(this).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep:
|
161 |
});
|
162 |
|
163 |
// save tags on post save/publish
|
1 |
+
// These functions are adapted from wp-admin/js/post.js
|
2 |
|
3 |
+
var tagBox;
|
|
|
|
|
4 |
|
5 |
// return an array with any duplicate, whitespace or values removed
|
6 |
function array_unique_noempty(a) {
|
15 |
|
16 |
(function($){
|
17 |
|
18 |
+
tagBox = {
|
19 |
+
clean : function(tags) {
|
20 |
+
var comma = mla_single_edit_vars.comma;
|
21 |
+
if ( ',' !== comma )
|
22 |
+
tags = tags.replace(new RegExp(comma, 'g'), ',');
|
23 |
+
tags = tags.replace(/\s*,\s*/g, ',').replace(/,+/g, ',').replace(/[,\s]+$/, '').replace(/^[,\s]+/, '');
|
24 |
+
if ( ',' !== comma )
|
25 |
+
tags = tags.replace(/,/g, comma);
|
26 |
+
return tags;
|
27 |
+
},
|
28 |
|
29 |
parseTags : function(el) {
|
30 |
var id = el.id, num = id.split('-check-num-')[1], taxbox = $(el).closest('.tagsdiv'),
|
31 |
+
thetags = taxbox.find('.the-tags'), comma = mla_single_edit_vars.comma,
|
32 |
current_tags = thetags.val().split(comma), new_tags = [];
|
33 |
delete current_tags[num];
|
34 |
|
56 |
|
57 |
disabled = thetags.prop('disabled');
|
58 |
|
59 |
+
current_tags = thetags.val().split(mla_single_edit_vars.comma);
|
60 |
tagchecklist.empty();
|
61 |
|
62 |
$.each( current_tags, function( key, val ) {
|
86 |
a = a || false;
|
87 |
var tags = $('.the-tags', el),
|
88 |
newtag = $('input.newtag', el),
|
89 |
+
comma = mla_single_edit_vars.comma,
|
90 |
newtags, text;
|
91 |
|
92 |
text = a ? $(a).text() : newtag.val();
|
155 |
}
|
156 |
}).each(function(){
|
157 |
var tax = $(this).closest('div.tagsdiv').attr('id');
|
158 |
+
$(this).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: mla_single_edit_vars.comma + ' ' } );
|
159 |
});
|
160 |
|
161 |
// save tags on post save/publish
|
js/mla-single-edit-scripts.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
var tagBox;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&&jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(c){var b=mla_single_edit_vars.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(f){var i=f.id,c=i.split("-check-num-")[1],e=a(f).closest(".tagsdiv"),h=e.find(".the-tags"),b=mla_single_edit_vars.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.clean(g.join(b)));this.quickClicks(e);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(mla_single_edit_vars.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){tagBox.parseTags(this)});j.prepend(" ").prepend(h)}e.append(j)})},flushTags:function(g,c,h){c=c||false;var d=a(".the-tags",g),j=a("input.newtag",g),b=mla_single_edit_vars.comma,e,i;i=c?a(c).text():j.val();tagsval=d.val();e=tagsval?tagsval+b+i:i;e=this.clean(e);e=array_unique_noempty(e.split(b)).join(b);d.val(e);this.quickClicks(g);if(!c){j.val("")}if("undefined"==typeof(h)){j.focus()}return false},get:function(c){var b=c.substr(c.indexOf("-")+1);a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0==e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){tagBox.flushTags(a(this).closest(".inside").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(){var b=this,c=a("div.ajaxtag");a(".tagsdiv").each(function(){tagBox.quickClicks(this)});a("input.tagadd",c).click(function(){b.flushTags(a(this).closest(".tagsdiv"))});a("div.taghint",c).click(function(){a(this).css("visibility","hidden").parent().siblings(".newtag").focus()});a("input.newtag",c).blur(function(){if(this.value==""){a(this).parent().siblings(".taghint").css("visibility","")}}).focus(function(){a(this).parent().siblings(".taghint").css("visibility","hidden")}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(this).closest(".tagsdiv"));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest("div.tagsdiv").attr("id");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+d,{delay:500,minchars:2,multiple:true,multipleSep:mla_single_edit_vars.comma+" "})});a("#post").submit(function(){a("div.tagsdiv").each(function(){tagBox.flushTags(this,false,1)})});a("a.tagcloud-link").click(function(){tagBox.get(a(this).attr("id"));a(this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false})}}})(jQuery);jQuery(document).ready(function(a){a("#side-info-column").children("div.postbox").each(function(){if(this.id.indexOf("tagsdiv-")===0){tagBox.init();return false}});a(".categorydiv").each(function(){var g=a(this).attr("id"),c=false,f,h,e,b,d;e=g.split("-");e.shift();b=e.join("-");d=b+"_tab";if(b=="category"){d="cats"}a("a","#"+b+"-tabs").click(function(){var i=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");a("#"+b+"-tabs").siblings(".tabs-panel").hide();a(i).show();if("#"+b+"-all"==i){deleteUserSetting(d)}else{setUserSetting(d,"pop")}return false});if(getUserSetting(d)){a('a[href="#'+b+'-pop"]',"#"+b+"-tabs").click()}a("#new"+b).one("focus",function(){a(this).val("").removeClass("form-input-tip")});a("#"+b+"-add-submit").click(function(){a("#new"+b).focus()});f=function(){if(c){return}c=true;var i=jQuery(this),k=i.is(":checked"),j=i.val().toString();a("#in-"+b+"-"+j+", #in-"+b+"-category-"+j).prop("checked",k);c=false};catAddBefore=function(i){if(!a("#new"+b).val()){return false}i.data+="&"+a(":checked","#"+b+"checklist").serialize();a("#"+b+"-add-submit").prop("disabled",true);return i};h=function(l,k){var j,i=a("#new"+b+"_parent");a("#"+b+"-add-submit").prop("disabled",false);if("undefined"!=k.parsed.responses[0]&&(j=k.parsed.responses[0].supplemental.newcat_parent)){i.before(j);i.remove()}};a("#"+b+"checklist").wpList({alt:"",response:b+"-ajax-response",addBefore:catAddBefore,addAfter:h});a("#"+b+"-add-toggle").click(function(){a("#"+b+"-adder").toggleClass("wp-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").click();a("#new"+b).focus();return false});a("#"+b+"checklist li.popular-category :checkbox, #"+b+"checklist-pop :checkbox").live("click",function(){var i=a(this),k=i.is(":checked"),j=i.val();if(j&&i.parents("#taxonomy-"+b).length){a("#in-"+b+"-"+j+", #in-popular-"+b+"-"+j).prop("checked",k)}})})});
|
phpDocs/classes.svg
CHANGED
@@ -4,62 +4,76 @@
|
|
4 |
<!-- Generated by graphviz version 2.28.0 (20110507.0327)
|
5 |
-->
|
6 |
<!-- Title: G Pages: 1 -->
|
7 |
-
<svg width="352pt" height="
|
8 |
-
viewBox="0.00 0.00 352.00
|
9 |
-
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4
|
10 |
<title>G</title>
|
11 |
-
<polygon fill="white" stroke="white" points="-4,5 -4,-
|
12 |
<g id="graph2" class="cluster"><title>cluster_global</title>
|
13 |
<polyline fill="none" stroke="gray" points="220,-8 324,-8 "/>
|
14 |
<path fill="none" stroke="gray" d="M324,-8C330,-8 336,-14 336,-20"/>
|
15 |
-
<polyline fill="none" stroke="gray" points="336,-20 336,-
|
16 |
-
<path fill="none" stroke="gray" d="M336,-
|
17 |
-
<polyline fill="none" stroke="gray" points="324,-
|
18 |
-
<path fill="none" stroke="gray" d="M220,-
|
19 |
-
<polyline fill="none" stroke="gray" points="208,-
|
20 |
<path fill="none" stroke="gray" d="M208,-20C208,-14 214,-8 220,-8"/>
|
21 |
-
<text text-anchor="middle" x="272" y="-
|
22 |
</g>
|
23 |
<!-- \\MLAData -->
|
24 |
<g id="node2" class="node"><title>\\MLAData</title>
|
25 |
<a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
|
26 |
-
<polygon fill="none" stroke="black" points="304,-
|
27 |
-
<text text-anchor="middle" x="272" y="-
|
28 |
</a>
|
29 |
</g>
|
30 |
<!-- \\MLA_List_Table -->
|
31 |
<g id="node3" class="node"><title>\\MLA_List_Table</title>
|
32 |
<a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
|
33 |
-
<polygon fill="none" stroke="black" points="327.5,-
|
34 |
-
<text text-anchor="middle" x="272" y="-
|
35 |
</a>
|
36 |
</g>
|
37 |
<!-- \\WP_List_Table -->
|
38 |
-
<g id="
|
39 |
-
<ellipse fill="none" stroke="black" cx="72" cy="-
|
40 |
-
<text text-anchor="middle" x="72" y="-
|
41 |
</g>
|
42 |
<!-- \\MLA_List_Table->\\WP_List_Table -->
|
43 |
<g id="edge3" class="edge"><title>\\MLA_List_Table->\\WP_List_Table</title>
|
44 |
-
<path fill="none" stroke="black" d="M216.371,-
|
45 |
-
<polygon fill="none" stroke="black" points="153.788,-
|
46 |
</g>
|
47 |
<!-- \\MLA -->
|
48 |
<g id="node4" class="node"><title>\\MLA</title>
|
49 |
<a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
|
50 |
-
<polygon fill="none" stroke="black" points="299,-
|
51 |
-
<text text-anchor="middle" x="272" y="-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
</a>
|
53 |
</g>
|
54 |
<!-- \\MLASettings -->
|
55 |
-
<g id="
|
56 |
<a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
|
57 |
-
<polygon fill="none" stroke="black" points="317.5,-
|
58 |
-
<text text-anchor="middle" x="272" y="-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
</a>
|
60 |
</g>
|
61 |
<!-- \\MLATest -->
|
62 |
-
<g id="
|
63 |
<a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
|
64 |
<polygon fill="none" stroke="black" points="304,-52 240,-52 240,-16 304,-16 304,-52"/>
|
65 |
<text text-anchor="middle" x="272" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
|
4 |
<!-- Generated by graphviz version 2.28.0 (20110507.0327)
|
5 |
-->
|
6 |
<!-- Title: G Pages: 1 -->
|
7 |
+
<svg width="352pt" height="420pt"
|
8 |
+
viewBox="0.00 0.00 352.00 420.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
9 |
+
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 416)">
|
10 |
<title>G</title>
|
11 |
+
<polygon fill="white" stroke="white" points="-4,5 -4,-416 349,-416 349,5 -4,5"/>
|
12 |
<g id="graph2" class="cluster"><title>cluster_global</title>
|
13 |
<polyline fill="none" stroke="gray" points="220,-8 324,-8 "/>
|
14 |
<path fill="none" stroke="gray" d="M324,-8C330,-8 336,-14 336,-20"/>
|
15 |
+
<polyline fill="none" stroke="gray" points="336,-20 336,-392 "/>
|
16 |
+
<path fill="none" stroke="gray" d="M336,-392C336,-398 330,-404 324,-404"/>
|
17 |
+
<polyline fill="none" stroke="gray" points="324,-404 220,-404 "/>
|
18 |
+
<path fill="none" stroke="gray" d="M220,-404C214,-404 208,-398 208,-392"/>
|
19 |
+
<polyline fill="none" stroke="gray" points="208,-392 208,-20 "/>
|
20 |
<path fill="none" stroke="gray" d="M208,-20C208,-14 214,-8 220,-8"/>
|
21 |
+
<text text-anchor="middle" x="272" y="-391.2" font-family="Times New Roman,serif" font-size="11.00" fill="gray">global</text>
|
22 |
</g>
|
23 |
<!-- \\MLAData -->
|
24 |
<g id="node2" class="node"><title>\\MLAData</title>
|
25 |
<a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
|
26 |
+
<polygon fill="none" stroke="black" points="304,-376 240,-376 240,-340 304,-340 304,-376"/>
|
27 |
+
<text text-anchor="middle" x="272" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLAData</text>
|
28 |
</a>
|
29 |
</g>
|
30 |
<!-- \\MLA_List_Table -->
|
31 |
<g id="node3" class="node"><title>\\MLA_List_Table</title>
|
32 |
<a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
|
33 |
+
<polygon fill="none" stroke="black" points="327.5,-322 216.5,-322 216.5,-286 327.5,-286 327.5,-322"/>
|
34 |
+
<text text-anchor="middle" x="272" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
|
35 |
</a>
|
36 |
</g>
|
37 |
<!-- \\WP_List_Table -->
|
38 |
+
<g id="node10" class="node"><title>\\WP_List_Table</title>
|
39 |
+
<ellipse fill="none" stroke="black" cx="72" cy="-304" rx="71.4873" ry="18"/>
|
40 |
+
<text text-anchor="middle" x="72" y="-300.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
|
41 |
</g>
|
42 |
<!-- \\MLA_List_Table->\\WP_List_Table -->
|
43 |
<g id="edge3" class="edge"><title>\\MLA_List_Table->\\WP_List_Table</title>
|
44 |
+
<path fill="none" stroke="black" d="M216.371,-304C197.091,-304 174.98,-304 153.987,-304"/>
|
45 |
+
<polygon fill="none" stroke="black" points="153.788,-300.5 143.788,-304 153.788,-307.5 153.788,-300.5"/>
|
46 |
</g>
|
47 |
<!-- \\MLA -->
|
48 |
<g id="node4" class="node"><title>\\MLA</title>
|
49 |
<a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
|
50 |
+
<polygon fill="none" stroke="black" points="299,-268 245,-268 245,-232 299,-232 299,-268"/>
|
51 |
+
<text text-anchor="middle" x="272" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLA</text>
|
52 |
+
</a>
|
53 |
+
</g>
|
54 |
+
<!-- \\MLAObjects -->
|
55 |
+
<g id="node5" class="node"><title>\\MLAObjects</title>
|
56 |
+
<a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
|
57 |
+
<polygon fill="none" stroke="black" points="314,-214 230,-214 230,-178 314,-178 314,-214"/>
|
58 |
+
<text text-anchor="middle" x="272" y="-193.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
|
59 |
</a>
|
60 |
</g>
|
61 |
<!-- \\MLASettings -->
|
62 |
+
<g id="node6" class="node"><title>\\MLASettings</title>
|
63 |
<a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
|
64 |
+
<polygon fill="none" stroke="black" points="317.5,-160 226.5,-160 226.5,-124 317.5,-124 317.5,-160"/>
|
65 |
+
<text text-anchor="middle" x="272" y="-139.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
|
66 |
+
</a>
|
67 |
+
</g>
|
68 |
+
<!-- \\MLAShortcodes -->
|
69 |
+
<g id="node7" class="node"><title>\\MLAShortcodes</title>
|
70 |
+
<a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
|
71 |
+
<polygon fill="none" stroke="black" points="324,-106 220,-106 220,-70 324,-70 324,-106"/>
|
72 |
+
<text text-anchor="middle" x="272" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
|
73 |
</a>
|
74 |
</g>
|
75 |
<!-- \\MLATest -->
|
76 |
+
<g id="node8" class="node"><title>\\MLATest</title>
|
77 |
<a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
|
78 |
<polygon fill="none" stroke="black" points="304,-52 240,-52 240,-16 304,-16 304,-52"/>
|
79 |
<text text-anchor="middle" x="272" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
|
phpDocs/classes/MLA.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -59,14 +56,18 @@
|
|
59 |
<li class="method public "><a href="#mla_add_help_tab" title="mla_add_help_tab :: Add contextual help tabs to all the MLA pages"><span class="description">Add contextual help tabs to all the MLA pages</span><pre>mla_add_help_tab()</pre></a></li>
|
60 |
<li class="method public "><a href="#mla_add_menu_options" title='mla_add_menu_options :: Add the "XX Entries per page" filter to the Screen Options tab'><span class="description">Add the "XX Entries per page" filter to the Screen Options tab</span><pre>mla_add_menu_options()</pre></a></li>
|
61 |
<li class="method public "><a href="#mla_admin_enqueue_scripts_action" title="mla_admin_enqueue_scripts_action :: Load the plugin's Style Sheet and Javascript files"><span class="description">Load the plugin's Style Sheet and Javascript files</span><pre>mla_admin_enqueue_scripts_action()</pre></a></li>
|
|
|
62 |
<li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
|
63 |
<li class="method public "><a href="#mla_edit_tags_redirect" title="mla_edit_tags_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tags_redirect()</pre></a></li>
|
|
|
64 |
<li class="method public "><a href="#mla_modify_parent_menu" title="mla_modify_parent_menu :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_modify_parent_menu()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_render_admin_page" title='mla_render_admin_page :: Render the "Assistant" subpage in the Media section, using the list_table package'><span class="description">Render the "Assistant" subpage in the Media section, using the list_table package</span><pre>mla_render_admin_page()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the table-list screen"><span class="description">Only show screen options on the table-list screen</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
|
67 |
<li class="method public "><a href="#mla_set_screen_option_filter" title='mla_set_screen_option_filter :: Save the "Entries per page" option set by this user'><span class="description">Save the "Entries per page" option set by this user</span><pre>mla_set_screen_option_filter()</pre></a></li>
|
68 |
<li class="nav-header private">» Private</li>
|
69 |
-
<li class="method private "><a href="#
|
|
|
|
|
70 |
<li class="method private "><a href="#_delete_single_item" title="_delete_single_item :: Delete a single item permanently."><span class="description">Delete a single item permanently.</span><pre>_delete_single_item()</pre></a></li>
|
71 |
<li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
|
72 |
change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
|
@@ -84,7 +85,10 @@ for a single attachment.</span><pre>_update_single_item()</pre></a></li>
|
|
84 |
<i class="icon-custom icon-constant"></i> Constants</li>
|
85 |
<li class="constant "><a href="#ADMIN_PAGE_SLUG" title="ADMIN_PAGE_SLUG :: Slug for adding plugin submenu"><span class="description">Slug for adding plugin submenu</span><pre>ADMIN_PAGE_SLUG</pre></a></li>
|
86 |
<li class="constant "><a href="#CURRENT_MLA_VERSION" title="CURRENT_MLA_VERSION :: Current version number"><span class="description">Current version number</span><pre>CURRENT_MLA_VERSION</pre></a></li>
|
87 |
-
<li class="constant "><a href="#
|
|
|
|
|
|
|
88 |
<li class="constant "><a href="#MIN_PHP_VERSION" title="MIN_PHP_VERSION :: Minimum version of PHP required for this plugin"><span class="description">Minimum version of PHP required for this plugin</span><pre>MIN_PHP_VERSION</pre></a></li>
|
89 |
<li class="constant "><a href="#MIN_WORDPRESS_VERSION" title="MIN_WORDPRESS_VERSION :: Minimum version of WordPress required for this plugin"><span class="description">Minimum version of WordPress required for this plugin</span><pre>MIN_WORDPRESS_VERSION</pre></a></li>
|
90 |
<li class="constant "><a href="#MLA_ADMIN_NONCE" title="MLA_ADMIN_NONCE :: Action name; uniquely identifies the nonce"><span class="description">Action name; uniquely identifies the nonce</span><pre>MLA_ADMIN_NONCE</pre></a></li>
|
@@ -178,6 +182,20 @@ of images and files held in the WordPress Media Library.</p>
|
|
178 |
<div class="subelement response"><code>\nothing</code></div>
|
179 |
</div></div>
|
180 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
<a name="mla_admin_menu_action" id="mla_admin_menu_action"></a><div class="element clickable method public mla_admin_menu_action" data-toggle="collapse" data-target=".mla_admin_menu_action .collapse">
|
182 |
<h2>Add the submenu pages</h2>
|
183 |
<pre>mla_admin_menu_action() </pre>
|
@@ -207,6 +225,21 @@ This filter is the only way to redirect them to the correct WordPress page.</p><
|
|
207 |
</tr></table>
|
208 |
</div></div>
|
209 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
<a name="mla_modify_parent_menu" id="mla_modify_parent_menu"></a><div class="element clickable method public mla_modify_parent_menu" data-toggle="collapse" data-target=".mla_modify_parent_menu .collapse">
|
211 |
<h2>Cleanup menus for Edit Tags/Categories page</h2>
|
212 |
<pre>mla_modify_parent_menu(array $parent_file) : string</pre>
|
@@ -290,9 +323,53 @@ to the right WordPress page for editing/adding taxonomy terms.</p></p>
|
|
290 |
<code>string</code>New value if this is our option, otherwise nothing</div>
|
291 |
</div></div>
|
292 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
<a name="_current_bulk_action" id="_current_bulk_action"></a><div class="element clickable method private _current_bulk_action" data-toggle="collapse" data-target="._current_bulk_action .collapse">
|
294 |
-
<h2>Get the current action selected from the bulk actions dropdown
|
295 |
-
<pre>_current_bulk_action() : string |
|
296 |
<div class="labels"></div>
|
297 |
<div class="row collapse"><div class="detail-description">
|
298 |
<p class="long_description"></p>
|
@@ -302,7 +379,7 @@ to the right WordPress page for editing/adding taxonomy terms.</p></p>
|
|
302 |
</tr></table>
|
303 |
<h3>Returns</h3>
|
304 |
<div class="subelement response">
|
305 |
-
<code>string</code><code>
|
306 |
</div></div>
|
307 |
</div>
|
308 |
<a name="_delete_single_item" id="_delete_single_item"></a><div class="element clickable method private _delete_single_item" data-toggle="collapse" data-target="._delete_single_item .collapse">
|
@@ -321,7 +398,7 @@ to the right WordPress page for editing/adding taxonomy terms.</p></p>
|
|
321 |
<code>array</code><p>The form POST data.</p></div>
|
322 |
<h3>Returns</h3>
|
323 |
<div class="subelement response">
|
324 |
-
<code>array</code>success/failure message and
|
325 |
</div></div>
|
326 |
</div>
|
327 |
<a name="_display_single_item" id="_display_single_item"></a><div class="element clickable method private _display_single_item" data-toggle="collapse" data-target="._display_single_item .collapse">
|
@@ -360,7 +437,7 @@ change the meta data for a single attachment.</h2>
|
|
360 |
<code>array</code><p>The form POST data</p></div>
|
361 |
<h3>Returns</h3>
|
362 |
<div class="subelement response">
|
363 |
-
<code>array</code>success/failure message and
|
364 |
</div></div>
|
365 |
</div>
|
366 |
<a name="_trash_single_item" id="_trash_single_item"></a><div class="element clickable method private _trash_single_item" data-toggle="collapse" data-target="._trash_single_item .collapse">
|
@@ -379,7 +456,7 @@ change the meta data for a single attachment.</h2>
|
|
379 |
<code>array</code><p>The form POST data</p></div>
|
380 |
<h3>Returns</h3>
|
381 |
<div class="subelement response">
|
382 |
-
<code>array</code>success/failure message and
|
383 |
</div></div>
|
384 |
</div>
|
385 |
<a name="_update_single_item" id="_update_single_item"></a><div class="element clickable method private _update_single_item" data-toggle="collapse" data-target="._update_single_item .collapse">
|
@@ -406,7 +483,7 @@ for a single attachment.</h2>
|
|
406 |
<code>array</code><p>Attachment Category and Tag values</p></div>
|
407 |
<h3>Returns</h3>
|
408 |
<div class="subelement response">
|
409 |
-
<code>array</code>success/failure message and
|
410 |
</div></div>
|
411 |
</div>
|
412 |
<h3>
|
@@ -449,9 +526,45 @@ for a single attachment.</h2>
|
|
449 |
</tr></table>
|
450 |
</div></div>
|
451 |
</div>
|
452 |
-
<a name="
|
453 |
-
<h2>
|
454 |
-
<pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
455 |
<div class="labels"></div>
|
456 |
<div class="row collapse"><div class="detail-description">
|
457 |
<p class="long_description"></p>
|
@@ -588,7 +701,7 @@ for a single attachment.</h2>
|
|
588 |
<div class="row"><footer class="span12">
|
589 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
590 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
591 |
-
generated on 2012-
|
592 |
</div>
|
593 |
</body>
|
594 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLA</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
56 |
<li class="method public "><a href="#mla_add_help_tab" title="mla_add_help_tab :: Add contextual help tabs to all the MLA pages"><span class="description">Add contextual help tabs to all the MLA pages</span><pre>mla_add_help_tab()</pre></a></li>
|
57 |
<li class="method public "><a href="#mla_add_menu_options" title='mla_add_menu_options :: Add the "XX Entries per page" filter to the Screen Options tab'><span class="description">Add the "XX Entries per page" filter to the Screen Options tab</span><pre>mla_add_menu_options()</pre></a></li>
|
58 |
<li class="method public "><a href="#mla_admin_enqueue_scripts_action" title="mla_admin_enqueue_scripts_action :: Load the plugin's Style Sheet and Javascript files"><span class="description">Load the plugin's Style Sheet and Javascript files</span><pre>mla_admin_enqueue_scripts_action()</pre></a></li>
|
59 |
+
<li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Load the plugin's Ajax handler"><span class="description">Load the plugin's Ajax handler</span><pre>mla_admin_init_action()</pre></a></li>
|
60 |
<li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
|
61 |
<li class="method public "><a href="#mla_edit_tags_redirect" title="mla_edit_tags_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tags_redirect()</pre></a></li>
|
62 |
+
<li class="method public "><a href="#mla_inline_edit_action" title="mla_inline_edit_action :: Ajax handler for inline editing (quick and bulk edit)"><span class="description">Ajax handler for inline editing (quick and bulk edit)</span><pre>mla_inline_edit_action()</pre></a></li>
|
63 |
<li class="method public "><a href="#mla_modify_parent_menu" title="mla_modify_parent_menu :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_modify_parent_menu()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_render_admin_page" title='mla_render_admin_page :: Render the "Assistant" subpage in the Media section, using the list_table package'><span class="description">Render the "Assistant" subpage in the Media section, using the list_table package</span><pre>mla_render_admin_page()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the table-list screen"><span class="description">Only show screen options on the table-list screen</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_set_screen_option_filter" title='mla_set_screen_option_filter :: Save the "Entries per page" option set by this user'><span class="description">Save the "Entries per page" option set by this user</span><pre>mla_set_screen_option_filter()</pre></a></li>
|
67 |
<li class="nav-header private">» Private</li>
|
68 |
+
<li class="method private "><a href="#_authors_dropdown" title="_authors_dropdown :: Get the edit Authors dropdown box, if user has suitable permissions"><span class="description">Get the edit Authors dropdown box, if user has suitable permissions</span><pre>_authors_dropdown()</pre></a></li>
|
69 |
+
<li class="method private "><a href="#_build_inline_edit_form" title="_build_inline_edit_form :: Build the hidden row templates for inline editing (quick and bulk edit)."><span class="description">Build the hidden row templates for inline editing (quick and bulk edit).</span><pre>_build_inline_edit_form()</pre></a></li>
|
70 |
+
<li class="method private "><a href="#_current_bulk_action" title="_current_bulk_action :: Get the current action selected from the bulk actions dropdown"><span class="description">Get the current action selected from the bulk actions dropdown</span><pre>_current_bulk_action()</pre></a></li>
|
71 |
<li class="method private "><a href="#_delete_single_item" title="_delete_single_item :: Delete a single item permanently."><span class="description">Delete a single item permanently.</span><pre>_delete_single_item()</pre></a></li>
|
72 |
<li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
|
73 |
change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
|
85 |
<i class="icon-custom icon-constant"></i> Constants</li>
|
86 |
<li class="constant "><a href="#ADMIN_PAGE_SLUG" title="ADMIN_PAGE_SLUG :: Slug for adding plugin submenu"><span class="description">Slug for adding plugin submenu</span><pre>ADMIN_PAGE_SLUG</pre></a></li>
|
87 |
<li class="constant "><a href="#CURRENT_MLA_VERSION" title="CURRENT_MLA_VERSION :: Current version number"><span class="description">Current version number</span><pre>CURRENT_MLA_VERSION</pre></a></li>
|
88 |
+
<li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_OBJECT" title="JAVASCRIPT_INLINE_EDIT_OBJECT :: Object name for localizing JavaScript - MLA List Table"><span class="description">Object name for localizing JavaScript - MLA List Table</span><pre>JAVASCRIPT_INLINE_EDIT_OBJECT</pre></a></li>
|
89 |
+
<li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_SLUG" title="JAVASCRIPT_INLINE_EDIT_SLUG :: Slug for localizing and enqueueing JavaScript - MLA List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA List Table</span><pre>JAVASCRIPT_INLINE_EDIT_SLUG</pre></a></li>
|
90 |
+
<li class="constant "><a href="#JAVASCRIPT_SINGLE_EDIT_OBJECT" title="JAVASCRIPT_SINGLE_EDIT_OBJECT :: Object name for localizing JavaScript - edit single item page"><span class="description">Object name for localizing JavaScript - edit single item page</span><pre>JAVASCRIPT_SINGLE_EDIT_OBJECT</pre></a></li>
|
91 |
+
<li class="constant "><a href="#JAVASCRIPT_SINGLE_EDIT_SLUG" title="JAVASCRIPT_SINGLE_EDIT_SLUG :: Slug for localizing and enqueueing JavaScript - edit single item page"><span class="description">Slug for localizing and enqueueing JavaScript - edit single item page</span><pre>JAVASCRIPT_SINGLE_EDIT_SLUG</pre></a></li>
|
92 |
<li class="constant "><a href="#MIN_PHP_VERSION" title="MIN_PHP_VERSION :: Minimum version of PHP required for this plugin"><span class="description">Minimum version of PHP required for this plugin</span><pre>MIN_PHP_VERSION</pre></a></li>
|
93 |
<li class="constant "><a href="#MIN_WORDPRESS_VERSION" title="MIN_WORDPRESS_VERSION :: Minimum version of WordPress required for this plugin"><span class="description">Minimum version of WordPress required for this plugin</span><pre>MIN_WORDPRESS_VERSION</pre></a></li>
|
94 |
<li class="constant "><a href="#MLA_ADMIN_NONCE" title="MLA_ADMIN_NONCE :: Action name; uniquely identifies the nonce"><span class="description">Action name; uniquely identifies the nonce</span><pre>MLA_ADMIN_NONCE</pre></a></li>
|
182 |
<div class="subelement response"><code>\nothing</code></div>
|
183 |
</div></div>
|
184 |
</div>
|
185 |
+
<a name="mla_admin_init_action" id="mla_admin_init_action"></a><div class="element clickable method public mla_admin_init_action" data-toggle="collapse" data-target=".mla_admin_init_action .collapse">
|
186 |
+
<h2>Load the plugin's Ajax handler</h2>
|
187 |
+
<pre>mla_admin_init_action() : \nothing</pre>
|
188 |
+
<div class="labels"></div>
|
189 |
+
<div class="row collapse"><div class="detail-description">
|
190 |
+
<p class="long_description"></p>
|
191 |
+
<table class="table table-bordered"><tr>
|
192 |
+
<th>since</th>
|
193 |
+
<td>0.20</td>
|
194 |
+
</tr></table>
|
195 |
+
<h3>Returns</h3>
|
196 |
+
<div class="subelement response"><code>\nothing</code></div>
|
197 |
+
</div></div>
|
198 |
+
</div>
|
199 |
<a name="mla_admin_menu_action" id="mla_admin_menu_action"></a><div class="element clickable method public mla_admin_menu_action" data-toggle="collapse" data-target=".mla_admin_menu_action .collapse">
|
200 |
<h2>Add the submenu pages</h2>
|
201 |
<pre>mla_admin_menu_action() </pre>
|
225 |
</tr></table>
|
226 |
</div></div>
|
227 |
</div>
|
228 |
+
<a name="mla_inline_edit_action" id="mla_inline_edit_action"></a><div class="element clickable method public mla_inline_edit_action" data-toggle="collapse" data-target=".mla_inline_edit_action .collapse">
|
229 |
+
<h2>Ajax handler for inline editing (quick and bulk edit)</h2>
|
230 |
+
<pre>mla_inline_edit_action() : string</pre>
|
231 |
+
<div class="labels"></div>
|
232 |
+
<div class="row collapse"><div class="detail-description">
|
233 |
+
<p class="long_description"><p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p></p>
|
234 |
+
<table class="table table-bordered"><tr>
|
235 |
+
<th>since</th>
|
236 |
+
<td>0.20</td>
|
237 |
+
</tr></table>
|
238 |
+
<h3>Returns</h3>
|
239 |
+
<div class="subelement response">
|
240 |
+
<code>string</code>echo HTML <tr> markup for updated row or error message, then die()</div>
|
241 |
+
</div></div>
|
242 |
+
</div>
|
243 |
<a name="mla_modify_parent_menu" id="mla_modify_parent_menu"></a><div class="element clickable method public mla_modify_parent_menu" data-toggle="collapse" data-target=".mla_modify_parent_menu .collapse">
|
244 |
<h2>Cleanup menus for Edit Tags/Categories page</h2>
|
245 |
<pre>mla_modify_parent_menu(array $parent_file) : string</pre>
|
323 |
<code>string</code>New value if this is our option, otherwise nothing</div>
|
324 |
</div></div>
|
325 |
</div>
|
326 |
+
<a name="_authors_dropdown" id="_authors_dropdown"></a><div class="element clickable method private _authors_dropdown" data-toggle="collapse" data-target="._authors_dropdown .collapse">
|
327 |
+
<h2>Get the edit Authors dropdown box, if user has suitable permissions</h2>
|
328 |
+
<pre>_authors_dropdown(integer $author, string $name, string $class) : string | false</pre>
|
329 |
+
<div class="labels"></div>
|
330 |
+
<div class="row collapse"><div class="detail-description">
|
331 |
+
<p class="long_description"></p>
|
332 |
+
<table class="table table-bordered"><tr>
|
333 |
+
<th>since</th>
|
334 |
+
<td>0.20</td>
|
335 |
+
</tr></table>
|
336 |
+
<h3>Parameters</h3>
|
337 |
+
<div class="subelement argument">
|
338 |
+
<h4>$author</h4>
|
339 |
+
<code>integer</code><p>User ID of the current author</p></div>
|
340 |
+
<div class="subelement argument">
|
341 |
+
<h4>$name</h4>
|
342 |
+
<code>string</code><p>HTML name attribute</p></div>
|
343 |
+
<div class="subelement argument">
|
344 |
+
<h4>$class</h4>
|
345 |
+
<code>string</code><p>HTML class attribute</p></div>
|
346 |
+
<h3>Returns</h3>
|
347 |
+
<div class="subelement response">
|
348 |
+
<code>string</code><code>false</code>HTML markup for the dropdown field or False</div>
|
349 |
+
</div></div>
|
350 |
+
</div>
|
351 |
+
<a name="_build_inline_edit_form" id="_build_inline_edit_form"></a><div class="element clickable method private _build_inline_edit_form" data-toggle="collapse" data-target="._build_inline_edit_form .collapse">
|
352 |
+
<h2>Build the hidden row templates for inline editing (quick and bulk edit).</h2>
|
353 |
+
<pre>_build_inline_edit_form(object $MLAListTable) : string</pre>
|
354 |
+
<div class="labels"></div>
|
355 |
+
<div class="row collapse"><div class="detail-description">
|
356 |
+
<p class="long_description"><p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p></p>
|
357 |
+
<table class="table table-bordered"><tr>
|
358 |
+
<th>since</th>
|
359 |
+
<td>0.20</td>
|
360 |
+
</tr></table>
|
361 |
+
<h3>Parameters</h3>
|
362 |
+
<div class="subelement argument">
|
363 |
+
<h4>$MLAListTable</h4>
|
364 |
+
<code>object</code><p>MLA List Table object</p></div>
|
365 |
+
<h3>Returns</h3>
|
366 |
+
<div class="subelement response">
|
367 |
+
<code>string</code>HTML <form> markup for hidden rows</div>
|
368 |
+
</div></div>
|
369 |
+
</div>
|
370 |
<a name="_current_bulk_action" id="_current_bulk_action"></a><div class="element clickable method private _current_bulk_action" data-toggle="collapse" data-target="._current_bulk_action .collapse">
|
371 |
+
<h2>Get the current action selected from the bulk actions dropdown</h2>
|
372 |
+
<pre>_current_bulk_action() : string | false</pre>
|
373 |
<div class="labels"></div>
|
374 |
<div class="row collapse"><div class="detail-description">
|
375 |
<p class="long_description"></p>
|
379 |
</tr></table>
|
380 |
<h3>Returns</h3>
|
381 |
<div class="subelement response">
|
382 |
+
<code>string</code><code>false</code>The action name or False if no action was selected</div>
|
383 |
</div></div>
|
384 |
</div>
|
385 |
<a name="_delete_single_item" id="_delete_single_item"></a><div class="element clickable method private _delete_single_item" data-toggle="collapse" data-target="._delete_single_item .collapse">
|
398 |
<code>array</code><p>The form POST data.</p></div>
|
399 |
<h3>Returns</h3>
|
400 |
<div class="subelement response">
|
401 |
+
<code>array</code>success/failure message and NULL content</div>
|
402 |
</div></div>
|
403 |
</div>
|
404 |
<a name="_display_single_item" id="_display_single_item"></a><div class="element clickable method private _display_single_item" data-toggle="collapse" data-target="._display_single_item .collapse">
|
437 |
<code>array</code><p>The form POST data</p></div>
|
438 |
<h3>Returns</h3>
|
439 |
<div class="subelement response">
|
440 |
+
<code>array</code>success/failure message and NULL content</div>
|
441 |
</div></div>
|
442 |
</div>
|
443 |
<a name="_trash_single_item" id="_trash_single_item"></a><div class="element clickable method private _trash_single_item" data-toggle="collapse" data-target="._trash_single_item .collapse">
|
456 |
<code>array</code><p>The form POST data</p></div>
|
457 |
<h3>Returns</h3>
|
458 |
<div class="subelement response">
|
459 |
+
<code>array</code>success/failure message and NULL content</div>
|
460 |
</div></div>
|
461 |
</div>
|
462 |
<a name="_update_single_item" id="_update_single_item"></a><div class="element clickable method private _update_single_item" data-toggle="collapse" data-target="._update_single_item .collapse">
|
483 |
<code>array</code><p>Attachment Category and Tag values</p></div>
|
484 |
<h3>Returns</h3>
|
485 |
<div class="subelement response">
|
486 |
+
<code>array</code>success/failure message and NULL content</div>
|
487 |
</div></div>
|
488 |
</div>
|
489 |
<h3>
|
526 |
</tr></table>
|
527 |
</div></div>
|
528 |
</div>
|
529 |
+
<a name="JAVASCRIPT_INLINE_EDIT_OBJECT" id="JAVASCRIPT_INLINE_EDIT_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_OBJECT .collapse">
|
530 |
+
<h2>Object name for localizing JavaScript - MLA List Table</h2>
|
531 |
+
<pre>JAVASCRIPT_INLINE_EDIT_OBJECT : string</pre>
|
532 |
+
<div class="labels"></div>
|
533 |
+
<div class="row collapse"><div class="detail-description">
|
534 |
+
<p class="long_description"></p>
|
535 |
+
<table class="table table-bordered"><tr>
|
536 |
+
<th>since</th>
|
537 |
+
<td>0.20</td>
|
538 |
+
</tr></table>
|
539 |
+
</div></div>
|
540 |
+
</div>
|
541 |
+
<a name="JAVASCRIPT_INLINE_EDIT_SLUG" id="JAVASCRIPT_INLINE_EDIT_SLUG"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_SLUG .collapse">
|
542 |
+
<h2>Slug for localizing and enqueueing JavaScript - MLA List Table</h2>
|
543 |
+
<pre>JAVASCRIPT_INLINE_EDIT_SLUG : string</pre>
|
544 |
+
<div class="labels"></div>
|
545 |
+
<div class="row collapse"><div class="detail-description">
|
546 |
+
<p class="long_description"></p>
|
547 |
+
<table class="table table-bordered"><tr>
|
548 |
+
<th>since</th>
|
549 |
+
<td>0.20</td>
|
550 |
+
</tr></table>
|
551 |
+
</div></div>
|
552 |
+
</div>
|
553 |
+
<a name="JAVASCRIPT_SINGLE_EDIT_OBJECT" id="JAVASCRIPT_SINGLE_EDIT_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_SINGLE_EDIT_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_SINGLE_EDIT_OBJECT .collapse">
|
554 |
+
<h2>Object name for localizing JavaScript - edit single item page</h2>
|
555 |
+
<pre>JAVASCRIPT_SINGLE_EDIT_OBJECT : string</pre>
|
556 |
+
<div class="labels"></div>
|
557 |
+
<div class="row collapse"><div class="detail-description">
|
558 |
+
<p class="long_description"></p>
|
559 |
+
<table class="table table-bordered"><tr>
|
560 |
+
<th>since</th>
|
561 |
+
<td>0.1</td>
|
562 |
+
</tr></table>
|
563 |
+
</div></div>
|
564 |
+
</div>
|
565 |
+
<a name="JAVASCRIPT_SINGLE_EDIT_SLUG" id="JAVASCRIPT_SINGLE_EDIT_SLUG"> </a><div class="element clickable constant JAVASCRIPT_SINGLE_EDIT_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_SINGLE_EDIT_SLUG .collapse">
|
566 |
+
<h2>Slug for localizing and enqueueing JavaScript - edit single item page</h2>
|
567 |
+
<pre>JAVASCRIPT_SINGLE_EDIT_SLUG : string</pre>
|
568 |
<div class="labels"></div>
|
569 |
<div class="row collapse"><div class="detail-description">
|
570 |
<p class="long_description"></p>
|
701 |
<div class="row"><footer class="span12">
|
702 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
703 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
704 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
705 |
</div>
|
706 |
</body>
|
707 |
</html>
|
phpDocs/classes/MLAData.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -56,16 +53,16 @@
|
|
56 |
<li class="nav-header">
|
57 |
<i class="icon-custom icon-method"></i> Methods</li>
|
58 |
<li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
|
59 |
-
<li class="method public "><a href="#mla_fetch_attachment_references" title="mla_fetch_attachment_references :: Find Featured Image and inserted image/link references to an attachment
|
60 |
-
<li class="method public "><a href="#mla_get_attachment_by_id" title="mla_get_attachment_by_id :: Retrieve an Attachment array given a $post_id
|
61 |
<li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
|
62 |
-
<li class="method public "><a href="#mla_parse_template" title="mla_parse_template :: Expand a template, replacing place holders with their values
|
63 |
-
<li class="method public "><a href="#mla_prepare_list_table_query" title="mla_prepare_list_table_query :: Sanitize and expand query arguments from request variables
|
64 |
-
<li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display
|
65 |
<li class="method public "><a href="#mla_query_list_table_items_helper" title="mla_query_list_table_items_helper :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_list_table_items_helper()</pre></a></li>
|
66 |
<li class="nav-header private">» Private</li>
|
67 |
-
<li class="method private "><a href="#_fetch_attachment_metadata" title="_fetch_attachment_metadata :: Fetch and filter meta data for an attachment
|
68 |
-
<li class="method private "><a href="#_fetch_attachment_parent_data" title="_fetch_attachment_parent_data :: Returns information about an attachment's parent, if found
|
69 |
</ul>
|
70 |
</div>
|
71 |
<div class="span8">
|
@@ -108,7 +105,7 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
|
|
108 |
</div></div>
|
109 |
</div>
|
110 |
<a name="mla_fetch_attachment_references" id="mla_fetch_attachment_references"></a><div class="element clickable method public mla_fetch_attachment_references" data-toggle="collapse" data-target=".mla_fetch_attachment_references .collapse">
|
111 |
-
<h2>Find Featured Image and inserted image/link references to an attachment
|
112 |
<pre>mla_fetch_attachment_references(int $ID, int $parent) : array</pre>
|
113 |
<div class="labels"></div>
|
114 |
<div class="row collapse"><div class="detail-description">
|
@@ -132,8 +129,8 @@ as a Featured Image or inserted in the post as an image or link.</p></p>
|
|
132 |
</div></div>
|
133 |
</div>
|
134 |
<a name="mla_get_attachment_by_id" id="mla_get_attachment_by_id"></a><div class="element clickable method public mla_get_attachment_by_id" data-toggle="collapse" data-target=".mla_get_attachment_by_id .collapse">
|
135 |
-
<h2>Retrieve an Attachment array given a $post_id
|
136 |
-
<pre>mla_get_attachment_by_id(int $post_id) :
|
137 |
<div class="labels"></div>
|
138 |
<div class="row collapse"><div class="detail-description">
|
139 |
<p class="long_description"><p>The (associative) array will contain every field that can be found in
|
@@ -148,12 +145,12 @@ the posts and postmeta tables, and all references to the attachment.</p></p>
|
|
148 |
<code>int</code><p>The ID of the attachment post.</p></div>
|
149 |
<h3>Returns</h3>
|
150 |
<div class="subelement response">
|
151 |
-
<code>
|
152 |
</div></div>
|
153 |
</div>
|
154 |
<a name="mla_load_template" id="mla_load_template"></a><div class="element clickable method public mla_load_template" data-toggle="collapse" data-target=".mla_load_template .collapse">
|
155 |
<h2>Load an HTML template from a file</h2>
|
156 |
-
<pre>mla_load_template(string $filepath) : string</pre>
|
157 |
<div class="labels"></div>
|
158 |
<div class="row collapse"><div class="detail-description">
|
159 |
<p class="long_description"><p>Loads a template to a string or a multi-part template to an array.
|
@@ -169,11 +166,11 @@ where "key" becomes the key part of the array.</p></p>
|
|
169 |
<code>string</code><p>Complete path and name of the template file</p></div>
|
170 |
<h3>Returns</h3>
|
171 |
<div class="subelement response">
|
172 |
-
<code>string</code>
|
173 |
</div></div>
|
174 |
</div>
|
175 |
<a name="mla_parse_template" id="mla_parse_template"></a><div class="element clickable method public mla_parse_template" data-toggle="collapse" data-target=".mla_parse_template .collapse">
|
176 |
-
<h2>Expand a template, replacing place holders with their values
|
177 |
<pre>mla_parse_template(string $tpl, array $hash) : string</pre>
|
178 |
<div class="labels"></div>
|
179 |
<div class="row collapse"><div class="detail-description">
|
@@ -197,7 +194,7 @@ where "key" becomes the key part of the array.</p></p>
|
|
197 |
</div></div>
|
198 |
</div>
|
199 |
<a name="mla_prepare_list_table_query" id="mla_prepare_list_table_query"></a><div class="element clickable method public mla_prepare_list_table_query" data-toggle="collapse" data-target=".mla_prepare_list_table_query .collapse">
|
200 |
-
<h2>Sanitize and expand query arguments from request variables
|
201 |
<pre>mla_prepare_list_table_query(array $request) : array</pre>
|
202 |
<div class="labels"></div>
|
203 |
<div class="row collapse"><div class="detail-description">
|
@@ -219,11 +216,11 @@ NOTE: The caller must remove the 'posts_where' filter, if required.</p></p>
|
|
219 |
</div></div>
|
220 |
</div>
|
221 |
<a name="mla_query_list_table_items" id="mla_query_list_table_items"></a><div class="element clickable method public mla_query_list_table_items" data-toggle="collapse" data-target=".mla_query_list_table_items .collapse">
|
222 |
-
<h2>Retrieve attachment objects for list table display
|
223 |
<pre>mla_query_list_table_items(array $request, string $orderby, string $order, int $offset, int $count) : array</pre>
|
224 |
<div class="labels"></div>
|
225 |
<div class="row collapse"><div class="detail-description">
|
226 |
-
<p class="long_description"><p>Supports prepare_items in class-mla-list-table.php
|
227 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p></p>
|
228 |
<table class="table table-bordered"><tr>
|
229 |
<th>since</th>
|
@@ -272,7 +269,7 @@ Defined as public so callers can remove it after the query</p></p>
|
|
272 |
</div></div>
|
273 |
</div>
|
274 |
<a name="_fetch_attachment_metadata" id="_fetch_attachment_metadata"></a><div class="element clickable method private _fetch_attachment_metadata" data-toggle="collapse" data-target="._fetch_attachment_metadata .collapse">
|
275 |
-
<h2>Fetch and filter meta data for an attachment
|
276 |
<pre>_fetch_attachment_metadata(int $post_id) : array</pre>
|
277 |
<div class="labels"></div>
|
278 |
<div class="row collapse"><div class="detail-description">
|
@@ -293,7 +290,7 @@ a string containing the first array element.</p></p>
|
|
293 |
</div></div>
|
294 |
</div>
|
295 |
<a name="_fetch_attachment_parent_data" id="_fetch_attachment_parent_data"></a><div class="element clickable method private _fetch_attachment_parent_data" data-toggle="collapse" data-target="._fetch_attachment_parent_data .collapse">
|
296 |
-
<h2>Returns information about an attachment's parent, if found
|
297 |
<pre>_fetch_attachment_parent_data(int $parent_id) : array</pre>
|
298 |
<div class="labels"></div>
|
299 |
<div class="row collapse"><div class="detail-description">
|
@@ -319,7 +316,7 @@ a string containing the first array element.</p></p>
|
|
319 |
<div class="row"><footer class="span12">
|
320 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
321 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
322 |
-
generated on 2012-
|
323 |
</div>
|
324 |
</body>
|
325 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLAData</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
53 |
<li class="nav-header">
|
54 |
<i class="icon-custom icon-method"></i> Methods</li>
|
55 |
<li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
|
56 |
+
<li class="method public "><a href="#mla_fetch_attachment_references" title="mla_fetch_attachment_references :: Find Featured Image and inserted image/link references to an attachment"><span class="description">Find Featured Image and inserted image/link references to an attachment</span><pre>mla_fetch_attachment_references()</pre></a></li>
|
57 |
+
<li class="method public "><a href="#mla_get_attachment_by_id" title="mla_get_attachment_by_id :: Retrieve an Attachment array given a $post_id"><span class="description">Retrieve an Attachment array given a $post_id</span><pre>mla_get_attachment_by_id()</pre></a></li>
|
58 |
<li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
|
59 |
+
<li class="method public "><a href="#mla_parse_template" title="mla_parse_template :: Expand a template, replacing place holders with their values"><span class="description">Expand a template, replacing place holders with their values</span><pre>mla_parse_template()</pre></a></li>
|
60 |
+
<li class="method public "><a href="#mla_prepare_list_table_query" title="mla_prepare_list_table_query :: Sanitize and expand query arguments from request variables"><span class="description">Sanitize and expand query arguments from request variables</span><pre>mla_prepare_list_table_query()</pre></a></li>
|
61 |
+
<li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
|
62 |
<li class="method public "><a href="#mla_query_list_table_items_helper" title="mla_query_list_table_items_helper :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_list_table_items_helper()</pre></a></li>
|
63 |
<li class="nav-header private">» Private</li>
|
64 |
+
<li class="method private "><a href="#_fetch_attachment_metadata" title="_fetch_attachment_metadata :: Fetch and filter meta data for an attachment"><span class="description">Fetch and filter meta data for an attachment</span><pre>_fetch_attachment_metadata()</pre></a></li>
|
65 |
+
<li class="method private "><a href="#_fetch_attachment_parent_data" title="_fetch_attachment_parent_data :: Returns information about an attachment's parent, if found"><span class="description">Returns information about an attachment's parent, if found</span><pre>_fetch_attachment_parent_data()</pre></a></li>
|
66 |
</ul>
|
67 |
</div>
|
68 |
<div class="span8">
|
105 |
</div></div>
|
106 |
</div>
|
107 |
<a name="mla_fetch_attachment_references" id="mla_fetch_attachment_references"></a><div class="element clickable method public mla_fetch_attachment_references" data-toggle="collapse" data-target=".mla_fetch_attachment_references .collapse">
|
108 |
+
<h2>Find Featured Image and inserted image/link references to an attachment</h2>
|
109 |
<pre>mla_fetch_attachment_references(int $ID, int $parent) : array</pre>
|
110 |
<div class="labels"></div>
|
111 |
<div class="row collapse"><div class="detail-description">
|
129 |
</div></div>
|
130 |
</div>
|
131 |
<a name="mla_get_attachment_by_id" id="mla_get_attachment_by_id"></a><div class="element clickable method public mla_get_attachment_by_id" data-toggle="collapse" data-target=".mla_get_attachment_by_id .collapse">
|
132 |
+
<h2>Retrieve an Attachment array given a $post_id</h2>
|
133 |
+
<pre>mla_get_attachment_by_id(int $post_id) : NULL | array</pre>
|
134 |
<div class="labels"></div>
|
135 |
<div class="row collapse"><div class="detail-description">
|
136 |
<p class="long_description"><p>The (associative) array will contain every field that can be found in
|
145 |
<code>int</code><p>The ID of the attachment post.</p></div>
|
146 |
<h3>Returns</h3>
|
147 |
<div class="subelement response">
|
148 |
+
<code>NULL</code><code>array</code>NULL on failure else associative array.</div>
|
149 |
</div></div>
|
150 |
</div>
|
151 |
<a name="mla_load_template" id="mla_load_template"></a><div class="element clickable method public mla_load_template" data-toggle="collapse" data-target=".mla_load_template .collapse">
|
152 |
<h2>Load an HTML template from a file</h2>
|
153 |
+
<pre>mla_load_template(string $filepath) : string | array | false | NULL</pre>
|
154 |
<div class="labels"></div>
|
155 |
<div class="row collapse"><div class="detail-description">
|
156 |
<p class="long_description"><p>Loads a template to a string or a multi-part template to an array.
|
166 |
<code>string</code><p>Complete path and name of the template file</p></div>
|
167 |
<h3>Returns</h3>
|
168 |
<div class="subelement response">
|
169 |
+
<code>string</code><code>array</code><code>false</code><code>NULL</code>string for files that do not contain template divider comments, array for files containing template divider comments, false if file does not exist, NULL if file could not be loaded.</div>
|
170 |
</div></div>
|
171 |
</div>
|
172 |
<a name="mla_parse_template" id="mla_parse_template"></a><div class="element clickable method public mla_parse_template" data-toggle="collapse" data-target=".mla_parse_template .collapse">
|
173 |
+
<h2>Expand a template, replacing place holders with their values</h2>
|
174 |
<pre>mla_parse_template(string $tpl, array $hash) : string</pre>
|
175 |
<div class="labels"></div>
|
176 |
<div class="row collapse"><div class="detail-description">
|
194 |
</div></div>
|
195 |
</div>
|
196 |
<a name="mla_prepare_list_table_query" id="mla_prepare_list_table_query"></a><div class="element clickable method public mla_prepare_list_table_query" data-toggle="collapse" data-target=".mla_prepare_list_table_query .collapse">
|
197 |
+
<h2>Sanitize and expand query arguments from request variables</h2>
|
198 |
<pre>mla_prepare_list_table_query(array $request) : array</pre>
|
199 |
<div class="labels"></div>
|
200 |
<div class="row collapse"><div class="detail-description">
|
216 |
</div></div>
|
217 |
</div>
|
218 |
<a name="mla_query_list_table_items" id="mla_query_list_table_items"></a><div class="element clickable method public mla_query_list_table_items" data-toggle="collapse" data-target=".mla_query_list_table_items .collapse">
|
219 |
+
<h2>Retrieve attachment objects for list table display</h2>
|
220 |
<pre>mla_query_list_table_items(array $request, string $orderby, string $order, int $offset, int $count) : array</pre>
|
221 |
<div class="labels"></div>
|
222 |
<div class="row collapse"><div class="detail-description">
|
223 |
+
<p class="long_description"><p>Supports prepare_items in class-mla-list-table.php.
|
224 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p></p>
|
225 |
<table class="table table-bordered"><tr>
|
226 |
<th>since</th>
|
269 |
</div></div>
|
270 |
</div>
|
271 |
<a name="_fetch_attachment_metadata" id="_fetch_attachment_metadata"></a><div class="element clickable method private _fetch_attachment_metadata" data-toggle="collapse" data-target="._fetch_attachment_metadata .collapse">
|
272 |
+
<h2>Fetch and filter meta data for an attachment</h2>
|
273 |
<pre>_fetch_attachment_metadata(int $post_id) : array</pre>
|
274 |
<div class="labels"></div>
|
275 |
<div class="row collapse"><div class="detail-description">
|
290 |
</div></div>
|
291 |
</div>
|
292 |
<a name="_fetch_attachment_parent_data" id="_fetch_attachment_parent_data"></a><div class="element clickable method private _fetch_attachment_parent_data" data-toggle="collapse" data-target="._fetch_attachment_parent_data .collapse">
|
293 |
+
<h2>Returns information about an attachment's parent, if found</h2>
|
294 |
<pre>_fetch_attachment_parent_data(int $parent_id) : array</pre>
|
295 |
<div class="labels"></div>
|
296 |
<div class="row collapse"><div class="detail-description">
|
316 |
<div class="row"><footer class="span12">
|
317 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
318 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
319 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
320 |
</div>
|
321 |
</body>
|
322 |
</html>
|
phpDocs/classes/MLAObjects.html
ADDED
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
|
2 |
+
<head>
|
3 |
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
+
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
+
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLAObjects</title>
|
7 |
+
<meta name="author" content="Mike van Riel">
|
8 |
+
<meta name="description" content="">
|
9 |
+
<link href="../css/template.css" rel="stylesheet" media="all">
|
10 |
+
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
|
11 |
+
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
|
12 |
+
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
|
13 |
+
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
|
14 |
+
</head>
|
15 |
+
<body>
|
16 |
+
<div class="navbar navbar-fixed-top">
|
17 |
+
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
+
<li class="dropdown">
|
20 |
+
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
22 |
+
</li>
|
23 |
+
<li class="dropdown" id="charts-menu">
|
24 |
+
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
25 |
+
Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
|
26 |
+
</li>
|
27 |
+
<li class="dropdown" id="reports-menu">
|
28 |
+
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
|
29 |
+
Reports <b class="caret"></b></a><ul class="dropdown-menu">
|
30 |
+
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors
|
31 |
+
<span class="label label-info">0</span></a></li>
|
32 |
+
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers
|
33 |
+
<ul></ul></a></li>
|
34 |
+
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements
|
35 |
+
<span class="label label-info">0</span></a></li>
|
36 |
+
</ul>
|
37 |
+
</li>
|
38 |
+
</ul></div>
|
39 |
+
</div></div>
|
40 |
+
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top <i class="icon-upload icon-white"></i></a></div>
|
41 |
+
</div>
|
42 |
+
<div id="___" class="container">
|
43 |
+
<noscript><div class="alert alert-warning">
|
44 |
+
Javascript is disabled; several features are only available
|
45 |
+
if Javascript is enabled.
|
46 |
+
</div></noscript>
|
47 |
+
<div class="row">
|
48 |
+
<div class="span4">
|
49 |
+
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
|
50 |
+
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
51 |
+
</div>
|
52 |
+
<ul class="side-nav nav nav-list">
|
53 |
+
<li class="nav-header">
|
54 |
+
<i class="icon-custom icon-method"></i> Methods</li>
|
55 |
+
<li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
|
56 |
+
<li class="method public "><a href="#mla_attachment_category_column_filter" title='mla_attachment_category_column_filter :: WordPress Filter for Attachment Category "Attachments" column,
|
57 |
+
which returns a count of the attachments assigned a given category'><span class="description">WordPress Filter for Attachment Category "Attachments" column,
|
58 |
+
which returns a count of the attachments assigned a given category</span><pre>mla_attachment_category_column_filter()</pre></a></li>
|
59 |
+
<li class="method public "><a href="#mla_attachment_category_get_columns_filter" title='mla_attachment_category_get_columns_filter :: WordPress Filter for Attachment Category "Attachments" column,
|
60 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.'><span class="description">WordPress Filter for Attachment Category "Attachments" column,
|
61 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.</span><pre>mla_attachment_category_get_columns_filter()</pre></a></li>
|
62 |
+
<li class="method public "><a href="#mla_attachment_tag_column_filter" title='mla_attachment_tag_column_filter :: WordPress Filter for Attachment Tag "Attachments" column,
|
63 |
+
which returns a count of the attachments assigned a given tag'><span class="description">WordPress Filter for Attachment Tag "Attachments" column,
|
64 |
+
which returns a count of the attachments assigned a given tag</span><pre>mla_attachment_tag_column_filter()</pre></a></li>
|
65 |
+
<li class="method public "><a href="#mla_attachment_tag_get_columns_filter" title='mla_attachment_tag_get_columns_filter :: WordPress Filter for Attachment Tag "Attachments" column,
|
66 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.'><span class="description">WordPress Filter for Attachment Tag "Attachments" column,
|
67 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.</span><pre>mla_attachment_tag_get_columns_filter()</pre></a></li>
|
68 |
+
<li class="nav-header private">» Private</li>
|
69 |
+
<li class="method private "><a href="#_build_taxonomies" title="_build_taxonomies :: Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters"><span class="description">Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters</span><pre>_build_taxonomies()</pre></a></li>
|
70 |
+
</ul>
|
71 |
+
</div>
|
72 |
+
<div class="span8">
|
73 |
+
<a name="%5CMLAObjects" id="\MLAObjects"></a><ul class="breadcrumb">
|
74 |
+
<li>
|
75 |
+
<a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
|
76 |
+
</li>
|
77 |
+
<li><a href="../namespaces/global.html">global</a></li>
|
78 |
+
<li class="active">
|
79 |
+
<span class="divider">\</span><a href="../classes/MLAObjects.html">MLAObjects</a>
|
80 |
+
</li>
|
81 |
+
</ul>
|
82 |
+
<div href="../classes/MLAObjects.html" class="element class">
|
83 |
+
<p class="short_description">Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags</p>
|
84 |
+
<div class="details">
|
85 |
+
<p class="long_description"></p>
|
86 |
+
<table class="table table-bordered">
|
87 |
+
<tr>
|
88 |
+
<th>package</th>
|
89 |
+
<td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
|
90 |
+
</tr>
|
91 |
+
<tr>
|
92 |
+
<th>since</th>
|
93 |
+
<td>0.20</td>
|
94 |
+
</tr>
|
95 |
+
</table>
|
96 |
+
<h3>
|
97 |
+
<i class="icon-custom icon-method"></i> Methods</h3>
|
98 |
+
<a name="initialize" id="initialize"></a><div class="element clickable method public initialize" data-toggle="collapse" data-target=".initialize .collapse">
|
99 |
+
<h2>Initialization function, similar to __construct()</h2>
|
100 |
+
<pre>initialize() </pre>
|
101 |
+
<div class="labels"></div>
|
102 |
+
<div class="row collapse"><div class="detail-description">
|
103 |
+
<p class="long_description"></p>
|
104 |
+
<table class="table table-bordered"><tr>
|
105 |
+
<th>since</th>
|
106 |
+
<td>0.20</td>
|
107 |
+
</tr></table>
|
108 |
+
</div></div>
|
109 |
+
</div>
|
110 |
+
<a name="mla_attachment_category_column_filter" id="mla_attachment_category_column_filter"></a><div class="element clickable method public mla_attachment_category_column_filter" data-toggle="collapse" data-target=".mla_attachment_category_column_filter .collapse">
|
111 |
+
<h2>WordPress Filter for Attachment Category "Attachments" column,
|
112 |
+
which returns a count of the attachments assigned a given category</h2>
|
113 |
+
<pre>mla_attachment_category_column_filter(string $place_holder, array $column_name, array $term_id) : array</pre>
|
114 |
+
<div class="labels"></div>
|
115 |
+
<div class="row collapse"><div class="detail-description">
|
116 |
+
<p class="long_description"></p>
|
117 |
+
<table class="table table-bordered"><tr>
|
118 |
+
<th>since</th>
|
119 |
+
<td>0.1</td>
|
120 |
+
</tr></table>
|
121 |
+
<h3>Parameters</h3>
|
122 |
+
<div class="subelement argument">
|
123 |
+
<h4>$place_holder</h4>
|
124 |
+
<code>string</code><p>unknown, undocumented parameter.</p></div>
|
125 |
+
<div class="subelement argument">
|
126 |
+
<h4>$column_name</h4>
|
127 |
+
<code>array</code><p>name of the column.</p></div>
|
128 |
+
<div class="subelement argument">
|
129 |
+
<h4>$term_id</h4>
|
130 |
+
<code>array</code><p>ID of the term for which the count is desired.</p></div>
|
131 |
+
<h3>Returns</h3>
|
132 |
+
<div class="subelement response">
|
133 |
+
<code>array</code>HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them.</div>
|
134 |
+
</div></div>
|
135 |
+
</div>
|
136 |
+
<a name="mla_attachment_category_get_columns_filter" id="mla_attachment_category_get_columns_filter"></a><div class="element clickable method public mla_attachment_category_get_columns_filter" data-toggle="collapse" data-target=".mla_attachment_category_get_columns_filter .collapse">
|
137 |
+
<h2>WordPress Filter for Attachment Category "Attachments" column,
|
138 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
139 |
+
<pre>mla_attachment_category_get_columns_filter(array $columns) : array</pre>
|
140 |
+
<div class="labels"></div>
|
141 |
+
<div class="row collapse"><div class="detail-description">
|
142 |
+
<p class="long_description"></p>
|
143 |
+
<table class="table table-bordered"><tr>
|
144 |
+
<th>since</th>
|
145 |
+
<td>0.1</td>
|
146 |
+
</tr></table>
|
147 |
+
<h3>Parameters</h3>
|
148 |
+
<div class="subelement argument">
|
149 |
+
<h4>$columns</h4>
|
150 |
+
<code>array</code><p>column definitions for the Attachment Category list table.</p></div>
|
151 |
+
<h3>Returns</h3>
|
152 |
+
<div class="subelement response">
|
153 |
+
<code>array</code>updated column definitions for the Attachment Category list table.</div>
|
154 |
+
</div></div>
|
155 |
+
</div>
|
156 |
+
<a name="mla_attachment_tag_column_filter" id="mla_attachment_tag_column_filter"></a><div class="element clickable method public mla_attachment_tag_column_filter" data-toggle="collapse" data-target=".mla_attachment_tag_column_filter .collapse">
|
157 |
+
<h2>WordPress Filter for Attachment Tag "Attachments" column,
|
158 |
+
which returns a count of the attachments assigned a given tag</h2>
|
159 |
+
<pre>mla_attachment_tag_column_filter(string $place_holder, array $column_name, array $term_id) : array</pre>
|
160 |
+
<div class="labels"></div>
|
161 |
+
<div class="row collapse"><div class="detail-description">
|
162 |
+
<p class="long_description"></p>
|
163 |
+
<table class="table table-bordered"><tr>
|
164 |
+
<th>since</th>
|
165 |
+
<td>0.1</td>
|
166 |
+
</tr></table>
|
167 |
+
<h3>Parameters</h3>
|
168 |
+
<div class="subelement argument">
|
169 |
+
<h4>$place_holder</h4>
|
170 |
+
<code>string</code><p>unknown, undocumented parameter</p></div>
|
171 |
+
<div class="subelement argument">
|
172 |
+
<h4>$column_name</h4>
|
173 |
+
<code>array</code><p>name of the column</p></div>
|
174 |
+
<div class="subelement argument">
|
175 |
+
<h4>$term_id</h4>
|
176 |
+
<code>array</code><p>ID of the term for which the count is desired</p></div>
|
177 |
+
<h3>Returns</h3>
|
178 |
+
<div class="subelement response">
|
179 |
+
<code>array</code>HTML markup for the column content; number of attachments with the tag and alink to retrieve a list of them.</div>
|
180 |
+
</div></div>
|
181 |
+
</div>
|
182 |
+
<a name="mla_attachment_tag_get_columns_filter" id="mla_attachment_tag_get_columns_filter"></a><div class="element clickable method public mla_attachment_tag_get_columns_filter" data-toggle="collapse" data-target=".mla_attachment_tag_get_columns_filter .collapse">
|
183 |
+
<h2>WordPress Filter for Attachment Tag "Attachments" column,
|
184 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
185 |
+
<pre>mla_attachment_tag_get_columns_filter(array $columns) : array</pre>
|
186 |
+
<div class="labels"></div>
|
187 |
+
<div class="row collapse"><div class="detail-description">
|
188 |
+
<p class="long_description"></p>
|
189 |
+
<table class="table table-bordered"><tr>
|
190 |
+
<th>since</th>
|
191 |
+
<td>0.1</td>
|
192 |
+
</tr></table>
|
193 |
+
<h3>Parameters</h3>
|
194 |
+
<div class="subelement argument">
|
195 |
+
<h4>$columns</h4>
|
196 |
+
<code>array</code><p>column definitions for the Attachment Category list table.</p></div>
|
197 |
+
<h3>Returns</h3>
|
198 |
+
<div class="subelement response">
|
199 |
+
<code>array</code>updated column definitions for the Attachment Category list table.</div>
|
200 |
+
</div></div>
|
201 |
+
</div>
|
202 |
+
<a name="_build_taxonomies" id="_build_taxonomies"></a><div class="element clickable method private _build_taxonomies" data-toggle="collapse" data-target="._build_taxonomies .collapse">
|
203 |
+
<h2>Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters</h2>
|
204 |
+
<pre>_build_taxonomies() </pre>
|
205 |
+
<div class="labels"></div>
|
206 |
+
<div class="row collapse"><div class="detail-description">
|
207 |
+
<p class="long_description"></p>
|
208 |
+
<table class="table table-bordered"><tr>
|
209 |
+
<th>since</th>
|
210 |
+
<td>0.1</td>
|
211 |
+
</tr></table>
|
212 |
+
</div></div>
|
213 |
+
</div>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
</div>
|
217 |
+
</div>
|
218 |
+
<div class="row"><footer class="span12">
|
219 |
+
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
220 |
+
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
221 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
222 |
+
</div>
|
223 |
+
</body>
|
224 |
+
</html>
|
phpDocs/classes/MLASettings.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -62,7 +59,7 @@ add settings link in the Plugins section entry for MLA.'><span class="descriptio
|
|
62 |
add settings link in the Plugins section entry for MLA.</span><pre>mla_admin_menu_action()</pre></a></li>
|
63 |
<li class="method public "><a href="#mla_delete_option" title="mla_delete_option :: Delete the stored value of a defined MLA option"><span class="description">Delete the stored value of a defined MLA option</span><pre>mla_delete_option()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
|
65 |
-
<li class="method public "><a href="#mla_render_settings_page" title='mla_render_settings_page :: Render the "Media Library Assistant" subpage in the Settings section'><span class="description">Render the "Media Library Assistant" subpage in the Settings section</span><pre>mla_render_settings_page()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_update_option" title="mla_update_option :: Add or update the stored value of a defined MLA option"><span class="description">Add or update the stored value of a defined MLA option</span><pre>mla_update_option()</pre></a></li>
|
67 |
<li class="nav-header private">» Private</li>
|
68 |
<li class="method private "><a href="#_reset_settings" title="_reset_settings :: Delete saved settings, restoring default values"><span class="description">Delete saved settings, restoring default values</span><pre>_reset_settings()</pre></a></li>
|
@@ -190,8 +187,8 @@ add settings link in the Plugins section entry for MLA.</h2>
|
|
190 |
</div></div>
|
191 |
</div>
|
192 |
<a name="mla_render_settings_page" id="mla_render_settings_page"></a><div class="element clickable method public mla_render_settings_page" data-toggle="collapse" data-target=".mla_render_settings_page .collapse">
|
193 |
-
<h2>Render the "Media Library Assistant" subpage in the Settings section</h2>
|
194 |
-
<pre>mla_render_settings_page() : \
|
195 |
<div class="labels"></div>
|
196 |
<div class="row collapse"><div class="detail-description">
|
197 |
<p class="long_description"></p>
|
@@ -201,7 +198,7 @@ add settings link in the Plugins section entry for MLA.</h2>
|
|
201 |
</tr></table>
|
202 |
<h3>Returns</h3>
|
203 |
<div class="subelement response">
|
204 |
-
<code>\
|
205 |
</div></div>
|
206 |
</div>
|
207 |
<a name="mla_update_option" id="mla_update_option"></a><div class="element clickable method public mla_update_option" data-toggle="collapse" data-target=".mla_update_option .collapse">
|
@@ -300,7 +297,7 @@ options => array of radio or select option values</p></p></div></div>
|
|
300 |
<div class="row"><footer class="span12">
|
301 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
302 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
303 |
-
generated on 2012-
|
304 |
</div>
|
305 |
</body>
|
306 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLASettings</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
59 |
add settings link in the Plugins section entry for MLA.</span><pre>mla_admin_menu_action()</pre></a></li>
|
60 |
<li class="method public "><a href="#mla_delete_option" title="mla_delete_option :: Delete the stored value of a defined MLA option"><span class="description">Delete the stored value of a defined MLA option</span><pre>mla_delete_option()</pre></a></li>
|
61 |
<li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
|
62 |
+
<li class="method public "><a href="#mla_render_settings_page" title='mla_render_settings_page :: Render (echo) the "Media Library Assistant" subpage in the Settings section'><span class="description">Render (echo) the "Media Library Assistant" subpage in the Settings section</span><pre>mla_render_settings_page()</pre></a></li>
|
63 |
<li class="method public "><a href="#mla_update_option" title="mla_update_option :: Add or update the stored value of a defined MLA option"><span class="description">Add or update the stored value of a defined MLA option</span><pre>mla_update_option()</pre></a></li>
|
64 |
<li class="nav-header private">» Private</li>
|
65 |
<li class="method private "><a href="#_reset_settings" title="_reset_settings :: Delete saved settings, restoring default values"><span class="description">Delete saved settings, restoring default values</span><pre>_reset_settings()</pre></a></li>
|
187 |
</div></div>
|
188 |
</div>
|
189 |
<a name="mla_render_settings_page" id="mla_render_settings_page"></a><div class="element clickable method public mla_render_settings_page" data-toggle="collapse" data-target=".mla_render_settings_page .collapse">
|
190 |
+
<h2>Render (echo) the "Media Library Assistant" subpage in the Settings section</h2>
|
191 |
+
<pre>mla_render_settings_page() : \nothing</pre>
|
192 |
<div class="labels"></div>
|
193 |
<div class="row collapse"><div class="detail-description">
|
194 |
<p class="long_description"></p>
|
198 |
</tr></table>
|
199 |
<h3>Returns</h3>
|
200 |
<div class="subelement response">
|
201 |
+
<code>\nothing</code>Echoes HTML markup for the settings subpage</div>
|
202 |
</div></div>
|
203 |
</div>
|
204 |
<a name="mla_update_option" id="mla_update_option"></a><div class="element clickable method public mla_update_option" data-toggle="collapse" data-target=".mla_update_option .collapse">
|
297 |
<div class="row"><footer class="span12">
|
298 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
299 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
300 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
301 |
</div>
|
302 |
</body>
|
303 |
</html>
|
phpDocs/{packages/Default.html → classes/MLAShortcodes.html}
RENAMED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -49,23 +46,77 @@
|
|
49 |
</div></noscript>
|
50 |
<div class="row">
|
51 |
<div class="span4">
|
52 |
-
<div class="btn-group view pull-right" data-toggle="buttons-radio">
|
53 |
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
54 |
</div>
|
55 |
<ul class="side-nav nav nav-list">
|
56 |
<li class="nav-header">
|
57 |
-
<i class="icon-
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
<li>
|
59 |
-
<
|
|
|
|
|
|
|
|
|
60 |
</li>
|
61 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
</div>
|
63 |
-
<div class="span8 package-contents"></div>
|
64 |
</div>
|
65 |
<div class="row"><footer class="span12">
|
66 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
67 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
68 |
-
generated on 2012-
|
69 |
</div>
|
70 |
</body>
|
71 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLAShortcodes</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
46 |
</div></noscript>
|
47 |
<div class="row">
|
48 |
<div class="span4">
|
49 |
+
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
|
50 |
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
51 |
</div>
|
52 |
<ul class="side-nav nav nav-list">
|
53 |
<li class="nav-header">
|
54 |
+
<i class="icon-custom icon-method"></i> Methods</li>
|
55 |
+
<li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
|
56 |
+
<li class="method public "><a href="#mla_attachment_list_shortcode" title="mla_attachment_list_shortcode :: WordPress Shortcode; renders a complete list of all attachments and references to them"><span class="description">WordPress Shortcode; renders a complete list of all attachments and references to them</span><pre>mla_attachment_list_shortcode()</pre></a></li>
|
57 |
+
</ul>
|
58 |
+
</div>
|
59 |
+
<div class="span8">
|
60 |
+
<a name="%5CMLAShortcodes" id="\MLAShortcodes"></a><ul class="breadcrumb">
|
61 |
<li>
|
62 |
+
<a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
|
63 |
+
</li>
|
64 |
+
<li><a href="../namespaces/global.html">global</a></li>
|
65 |
+
<li class="active">
|
66 |
+
<span class="divider">\</span><a href="../classes/MLAShortcodes.html">MLAShortcodes</a>
|
67 |
</li>
|
68 |
</ul>
|
69 |
+
<div href="../classes/MLAShortcodes.html" class="element class">
|
70 |
+
<p class="short_description">Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users</p>
|
71 |
+
<div class="details">
|
72 |
+
<p class="long_description"></p>
|
73 |
+
<table class="table table-bordered">
|
74 |
+
<tr>
|
75 |
+
<th>package</th>
|
76 |
+
<td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
|
77 |
+
</tr>
|
78 |
+
<tr>
|
79 |
+
<th>since</th>
|
80 |
+
<td>0.20</td>
|
81 |
+
</tr>
|
82 |
+
</table>
|
83 |
+
<h3>
|
84 |
+
<i class="icon-custom icon-method"></i> Methods</h3>
|
85 |
+
<a name="initialize" id="initialize"></a><div class="element clickable method public initialize" data-toggle="collapse" data-target=".initialize .collapse">
|
86 |
+
<h2>Initialization function, similar to __construct()</h2>
|
87 |
+
<pre>initialize() </pre>
|
88 |
+
<div class="labels"></div>
|
89 |
+
<div class="row collapse"><div class="detail-description">
|
90 |
+
<p class="long_description"></p>
|
91 |
+
<table class="table table-bordered"><tr>
|
92 |
+
<th>since</th>
|
93 |
+
<td>0.20</td>
|
94 |
+
</tr></table>
|
95 |
+
</div></div>
|
96 |
+
</div>
|
97 |
+
<a name="mla_attachment_list_shortcode" id="mla_attachment_list_shortcode"></a><div class="element clickable method public mla_attachment_list_shortcode" data-toggle="collapse" data-target=".mla_attachment_list_shortcode .collapse">
|
98 |
+
<h2>WordPress Shortcode; renders a complete list of all attachments and references to them</h2>
|
99 |
+
<pre>mla_attachment_list_shortcode() : string</pre>
|
100 |
+
<div class="labels"></div>
|
101 |
+
<div class="row collapse"><div class="detail-description">
|
102 |
+
<p class="long_description"></p>
|
103 |
+
<table class="table table-bordered"><tr>
|
104 |
+
<th>since</th>
|
105 |
+
<td>0.1</td>
|
106 |
+
</tr></table>
|
107 |
+
<h3>Returns</h3>
|
108 |
+
<div class="subelement response">
|
109 |
+
<code>string</code>HTML markup for the attachment list</div>
|
110 |
+
</div></div>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
</div>
|
114 |
</div>
|
|
|
115 |
</div>
|
116 |
<div class="row"><footer class="span12">
|
117 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
118 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
119 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
120 |
</div>
|
121 |
</body>
|
122 |
</html>
|
phpDocs/classes/MLATest.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -139,7 +136,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
139 |
<div class="row"><footer class="span12">
|
140 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
141 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
142 |
-
generated on 2012-
|
143 |
</div>
|
144 |
</body>
|
145 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLATest</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
136 |
<div class="row"><footer class="span12">
|
137 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
138 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
139 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
140 |
</div>
|
141 |
</body>
|
142 |
</html>
|
phpDocs/classes/MLA_List_Table.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -94,8 +91,10 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
|
|
94 |
<li class="method public "><a href="#mla_manage_columns" title="mla_manage_columns :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns()</pre></a></li>
|
95 |
<li class="method public "><a href="#mla_manage_hidden_columns" title="mla_manage_hidden_columns :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns()</pre></a></li>
|
96 |
<li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying."><span class="description">Prepares the list of items for displaying.</span><pre>prepare_items()</pre></a></li>
|
|
|
97 |
<li class="nav-header private">» Private</li>
|
98 |
<li class="method private "><a href="#_avail_mime_types" title="_avail_mime_types :: Get mime types with one or more attachments for view preparation."><span class="description">Get mime types with one or more attachments for view preparation.</span><pre>_avail_mime_types()</pre></a></li>
|
|
|
99 |
<li class="method private "><a href="#_build_rollover_actions" title="_build_rollover_actions :: Add rollover actions to exactly one of the following displayed columns:
|
100 |
'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
|
101 |
'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
|
@@ -123,9 +122,9 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
|
|
123 |
</li>
|
124 |
</ul>
|
125 |
<div href="../classes/MLA_List_Table.html" class="element class">
|
126 |
-
<p class="short_description">Class MLA (Media Library Assistant) List Table
|
127 |
<div class="details">
|
128 |
-
<p class="long_description"></p>
|
129 |
<table class="table table-bordered">
|
130 |
<tr>
|
131 |
<th>package</th>
|
@@ -619,7 +618,7 @@ if set.</p></p>
|
|
619 |
</tr></table>
|
620 |
<h3>Returns</h3>
|
621 |
<div class="subelement response">
|
622 |
-
<code>array</code>Sortable column information,e.g., 'slugs'=>array('data_values',
|
623 |
</div></div>
|
624 |
</div>
|
625 |
<a name="get_views" id="get_views"></a><div class="element clickable method public get_views" data-toggle="collapse" data-target=".get_views .collapse">
|
@@ -697,6 +696,25 @@ $this->set_pagination_args().</p></p>
|
|
697 |
</tr></table>
|
698 |
</div></div>
|
699 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
700 |
<a name="_avail_mime_types" id="_avail_mime_types"></a><div class="element clickable method private _avail_mime_types" data-toggle="collapse" data-target="._avail_mime_types .collapse">
|
701 |
<h2>Get mime types with one or more attachments for view preparation.</h2>
|
702 |
<pre>_avail_mime_types(array $num_posts) : array</pre>
|
@@ -717,10 +735,30 @@ with additional entries.</p></p>
|
|
717 |
<code>array</code>Mime type names</div>
|
718 |
</div></div>
|
719 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
720 |
<a name="_build_rollover_actions" id="_build_rollover_actions"></a><div class="element clickable method private _build_rollover_actions" data-toggle="collapse" data-target="._build_rollover_actions .collapse">
|
721 |
<h2>Add rollover actions to exactly one of the following displayed columns:
|
722 |
'ID_parent', 'title_name', 'post_title', 'post_name'</h2>
|
723 |
-
<pre>_build_rollover_actions(
|
724 |
<div class="labels"></div>
|
725 |
<div class="row collapse"><div class="detail-description">
|
726 |
<p class="long_description"></p>
|
@@ -731,7 +769,7 @@ with additional entries.</p></p>
|
|
731 |
<h3>Parameters</h3>
|
732 |
<div class="subelement argument">
|
733 |
<h4>$item</h4>
|
734 |
-
<code>
|
735 |
</div>
|
736 |
<div class="subelement argument">
|
737 |
<h4>$column</h4>
|
@@ -743,7 +781,7 @@ with additional entries.</p></p>
|
|
743 |
</div>
|
744 |
<a name="_count_list_table_items" id="_count_list_table_items"></a><div class="element clickable method private _count_list_table_items" data-toggle="collapse" data-target="._count_list_table_items .collapse">
|
745 |
<h2>Get the total number of attachment posts</h2>
|
746 |
-
<pre>_count_list_table_items(array $request) :
|
747 |
<div class="labels"></div>
|
748 |
<div class="row collapse"><div class="detail-description">
|
749 |
<p class="long_description"></p>
|
@@ -758,7 +796,7 @@ with additional entries.</p></p>
|
|
758 |
</div>
|
759 |
<h3>Returns</h3>
|
760 |
<div class="subelement response">
|
761 |
-
<code>
|
762 |
</div></div>
|
763 |
</div>
|
764 |
<a name="_default_hidden_columns" id="_default_hidden_columns"></a><div class="element clickable method private _default_hidden_columns" data-toggle="collapse" data-target="._default_hidden_columns .collapse">
|
@@ -877,7 +915,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
|
|
877 |
<div class="row"><footer class="span12">
|
878 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
879 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
880 |
-
generated on 2012-
|
881 |
</div>
|
882 |
</body>
|
883 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MLA_List_Table</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
91 |
<li class="method public "><a href="#mla_manage_columns" title="mla_manage_columns :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns()</pre></a></li>
|
92 |
<li class="method public "><a href="#mla_manage_hidden_columns" title="mla_manage_hidden_columns :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns()</pre></a></li>
|
93 |
<li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying."><span class="description">Prepares the list of items for displaying.</span><pre>prepare_items()</pre></a></li>
|
94 |
+
<li class="method public "><a href="#single_row" title="single_row :: Generates (echoes) content for a single row of the table"><span class="description">Generates (echoes) content for a single row of the table</span><pre>single_row()</pre></a></li>
|
95 |
<li class="nav-header private">» Private</li>
|
96 |
<li class="method private "><a href="#_avail_mime_types" title="_avail_mime_types :: Get mime types with one or more attachments for view preparation."><span class="description">Get mime types with one or more attachments for view preparation.</span><pre>_avail_mime_types()</pre></a></li>
|
97 |
+
<li class="method private "><a href="#_build_inline_data" title="_build_inline_data :: Add hidden fields with the data for use in the inline editor"><span class="description">Add hidden fields with the data for use in the inline editor</span><pre>_build_inline_data()</pre></a></li>
|
98 |
<li class="method private "><a href="#_build_rollover_actions" title="_build_rollover_actions :: Add rollover actions to exactly one of the following displayed columns:
|
99 |
'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
|
100 |
'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
|
122 |
</li>
|
123 |
</ul>
|
124 |
<div href="../classes/MLA_List_Table.html" class="element class">
|
125 |
+
<p class="short_description">Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu</p>
|
126 |
<div class="details">
|
127 |
+
<p class="long_description"><p>Extends the core WP_List_Table class.</p></p>
|
128 |
<table class="table table-bordered">
|
129 |
<tr>
|
130 |
<th>package</th>
|
618 |
</tr></table>
|
619 |
<h3>Returns</h3>
|
620 |
<div class="subelement response">
|
621 |
+
<code>array</code>Sortable column information,e.g., 'slugs'=>array('data_values',boolean)</div>
|
622 |
</div></div>
|
623 |
</div>
|
624 |
<a name="get_views" id="get_views"></a><div class="element clickable method public get_views" data-toggle="collapse" data-target=".get_views .collapse">
|
696 |
</tr></table>
|
697 |
</div></div>
|
698 |
</div>
|
699 |
+
<a name="single_row" id="single_row"></a><div class="element clickable method public single_row" data-toggle="collapse" data-target=".single_row .collapse">
|
700 |
+
<h2>Generates (echoes) content for a single row of the table</h2>
|
701 |
+
<pre>single_row(object $item) : \nothing</pre>
|
702 |
+
<div class="labels"></div>
|
703 |
+
<div class="row collapse"><div class="detail-description">
|
704 |
+
<p class="long_description"></p>
|
705 |
+
<table class="table table-bordered"><tr>
|
706 |
+
<th>since</th>
|
707 |
+
<td>.20</td>
|
708 |
+
</tr></table>
|
709 |
+
<h3>Parameters</h3>
|
710 |
+
<div class="subelement argument">
|
711 |
+
<h4>$item</h4>
|
712 |
+
<code>object</code><p>The current item</p></div>
|
713 |
+
<h3>Returns</h3>
|
714 |
+
<div class="subelement response">
|
715 |
+
<code>\nothing</code>Echoes the row HTML</div>
|
716 |
+
</div></div>
|
717 |
+
</div>
|
718 |
<a name="_avail_mime_types" id="_avail_mime_types"></a><div class="element clickable method private _avail_mime_types" data-toggle="collapse" data-target="._avail_mime_types .collapse">
|
719 |
<h2>Get mime types with one or more attachments for view preparation.</h2>
|
720 |
<pre>_avail_mime_types(array $num_posts) : array</pre>
|
735 |
<code>array</code>Mime type names</div>
|
736 |
</div></div>
|
737 |
</div>
|
738 |
+
<a name="_build_inline_data" id="_build_inline_data"></a><div class="element clickable method private _build_inline_data" data-toggle="collapse" data-target="._build_inline_data .collapse">
|
739 |
+
<h2>Add hidden fields with the data for use in the inline editor</h2>
|
740 |
+
<pre>_build_inline_data(object $item) : string</pre>
|
741 |
+
<div class="labels"></div>
|
742 |
+
<div class="row collapse"><div class="detail-description">
|
743 |
+
<p class="long_description"></p>
|
744 |
+
<table class="table table-bordered"><tr>
|
745 |
+
<th>since</th>
|
746 |
+
<td>0.20</td>
|
747 |
+
</tr></table>
|
748 |
+
<h3>Parameters</h3>
|
749 |
+
<div class="subelement argument">
|
750 |
+
<h4>$item</h4>
|
751 |
+
<code>object</code><p>A singular attachment (post) object</p>
|
752 |
+
</div>
|
753 |
+
<h3>Returns</h3>
|
754 |
+
<div class="subelement response">
|
755 |
+
<code>string</code>HTML <div> with row data</div>
|
756 |
+
</div></div>
|
757 |
+
</div>
|
758 |
<a name="_build_rollover_actions" id="_build_rollover_actions"></a><div class="element clickable method private _build_rollover_actions" data-toggle="collapse" data-target="._build_rollover_actions .collapse">
|
759 |
<h2>Add rollover actions to exactly one of the following displayed columns:
|
760 |
'ID_parent', 'title_name', 'post_title', 'post_name'</h2>
|
761 |
+
<pre>_build_rollover_actions(object $item, string $column) : array</pre>
|
762 |
<div class="labels"></div>
|
763 |
<div class="row collapse"><div class="detail-description">
|
764 |
<p class="long_description"></p>
|
769 |
<h3>Parameters</h3>
|
770 |
<div class="subelement argument">
|
771 |
<h4>$item</h4>
|
772 |
+
<code>object</code><p>A singular attachment (post) object</p>
|
773 |
</div>
|
774 |
<div class="subelement argument">
|
775 |
<h4>$column</h4>
|
781 |
</div>
|
782 |
<a name="_count_list_table_items" id="_count_list_table_items"></a><div class="element clickable method private _count_list_table_items" data-toggle="collapse" data-target="._count_list_table_items .collapse">
|
783 |
<h2>Get the total number of attachment posts</h2>
|
784 |
+
<pre>_count_list_table_items(array $request) : integer</pre>
|
785 |
<div class="labels"></div>
|
786 |
<div class="row collapse"><div class="detail-description">
|
787 |
<p class="long_description"></p>
|
796 |
</div>
|
797 |
<h3>Returns</h3>
|
798 |
<div class="subelement response">
|
799 |
+
<code>integer</code>Number of attachment posts</div>
|
800 |
</div></div>
|
801 |
</div>
|
802 |
<a name="_default_hidden_columns" id="_default_hidden_columns"></a><div class="element clickable method private _default_hidden_columns" data-toggle="collapse" data-target="._default_hidden_columns .collapse">
|
915 |
<div class="row"><footer class="span12">
|
916 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
917 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
918 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
919 |
</div>
|
920 |
</body>
|
921 |
</html>
|
phpDocs/deprecated.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -65,7 +62,7 @@
|
|
65 |
<div class="row"><footer class="span12">
|
66 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
67 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
68 |
-
generated on 2012-
|
69 |
</div>
|
70 |
</body>
|
71 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
62 |
<div class="row"><footer class="span12">
|
63 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
64 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
65 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
66 |
</div>
|
67 |
</body>
|
68 |
</html>
|
phpDocs/errors.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -71,12 +68,13 @@
|
|
71 |
<div class="package-contents"></div>
|
72 |
<div class="package-contents"></div>
|
73 |
<div class="package-contents"></div>
|
|
|
74 |
</div>
|
75 |
</div>
|
76 |
<div class="row"><footer class="span12">
|
77 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
78 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
79 |
-
generated on 2012-
|
80 |
</div>
|
81 |
</body>
|
82 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
68 |
<div class="package-contents"></div>
|
69 |
<div class="package-contents"></div>
|
70 |
<div class="package-contents"></div>
|
71 |
+
<div class="package-contents"></div>
|
72 |
</div>
|
73 |
</div>
|
74 |
<div class="row"><footer class="span12">
|
75 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
76 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
77 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
78 |
</div>
|
79 |
</body>
|
80 |
</html>
|
phpDocs/graph_class.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -62,7 +59,7 @@
|
|
62 |
</script><div class="row"><footer class="span12">
|
63 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
64 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
65 |
-
generated on 2012-
|
66 |
</div>
|
67 |
</body>
|
68 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
59 |
</script><div class="row"><footer class="span12">
|
60 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
61 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
62 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
63 |
</div>
|
64 |
</body>
|
65 |
</html>
|
phpDocs/index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -48,7 +45,7 @@
|
|
48 |
if Javascript is enabled.
|
49 |
</div></noscript>
|
50 |
<div class="hero-unit">
|
51 |
-
<h1>
|
52 |
<h2>Documentation</h2>
|
53 |
</div>
|
54 |
<div class="row">
|
@@ -82,7 +79,7 @@
|
|
82 |
<div class="row"><footer class="span12">
|
83 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
84 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
85 |
-
generated on 2012-
|
86 |
</div>
|
87 |
</body>
|
88 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
45 |
if Javascript is enabled.
|
46 |
</div></noscript>
|
47 |
<div class="hero-unit">
|
48 |
+
<h1>Media Library Assistant</h1>
|
49 |
<h2>Documentation</h2>
|
50 |
</div>
|
51 |
<div class="row">
|
79 |
<div class="row"><footer class="span12">
|
80 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
81 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
82 |
+
generated on 2012-09-06T12:09:18-07:00.<br></footer></div>
|
83 |
</div>
|
84 |
</body>
|
85 |
</html>
|
phpDocs/markers.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -67,7 +64,7 @@
|
|
67 |
<div class="row"><footer class="span12">
|
68 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
69 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
70 |
-
generated on 2012-
|
71 |
</div>
|
72 |
</body>
|
73 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
64 |
<div class="row"><footer class="span12">
|
65 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
66 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
67 |
+
generated on 2012-09-06T12:09:19-07:00.<br></footer></div>
|
68 |
</div>
|
69 |
</body>
|
70 |
</html>
|
phpDocs/namespaces/global.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -70,122 +67,15 @@
|
|
70 |
<div class="namespace-indent">
|
71 |
<h3>
|
72 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
73 |
-
<a name="
|
74 |
-
<h2>
|
75 |
-
|
76 |
-
<pre>mla_attachment_category_column_filter(string $place_holder, array $column_name, array $term_id) : array</pre>
|
77 |
-
<div class="labels"></div>
|
78 |
-
<div class="row collapse"><div class="detail-description">
|
79 |
-
<p class="long_description"></p>
|
80 |
-
<table class="table table-bordered"><tr>
|
81 |
-
<th>since</th>
|
82 |
-
<td>0.1</td>
|
83 |
-
</tr></table>
|
84 |
-
<h3>Parameters</h3>
|
85 |
-
<div class="subelement argument">
|
86 |
-
<h4>$place_holder</h4>
|
87 |
-
<code>string</code><p>unknown, undocumented parameter.</p></div>
|
88 |
-
<div class="subelement argument">
|
89 |
-
<h4>$column_name</h4>
|
90 |
-
<code>array</code><p>name of the column.</p></div>
|
91 |
-
<div class="subelement argument">
|
92 |
-
<h4>$term_id</h4>
|
93 |
-
<code>array</code><p>ID of the term for which the count is desired.</p></div>
|
94 |
-
<h3>Returns</h3>
|
95 |
-
<div class="subelement response">
|
96 |
-
<code>array</code>HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them.</div>
|
97 |
-
</div></div>
|
98 |
-
</div>
|
99 |
-
<a name="mla_attachment_category_get_columns_filter" id="mla_attachment_category_get_columns_filter"></a><div class="element clickable function mla_attachment_category_get_columns_filter" data-toggle="collapse" data-target=".mla_attachment_category_get_columns_filter .collapse">
|
100 |
-
<h2>WordPress Filter for Attachment Category "Attachments" column,
|
101 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
102 |
-
<pre>mla_attachment_category_get_columns_filter(array $columns) : array</pre>
|
103 |
-
<div class="labels"></div>
|
104 |
-
<div class="row collapse"><div class="detail-description">
|
105 |
-
<p class="long_description"></p>
|
106 |
-
<table class="table table-bordered"><tr>
|
107 |
-
<th>since</th>
|
108 |
-
<td>0.1</td>
|
109 |
-
</tr></table>
|
110 |
-
<h3>Parameters</h3>
|
111 |
-
<div class="subelement argument">
|
112 |
-
<h4>$columns</h4>
|
113 |
-
<code>array</code><p>column definitions for the Attachment Category list table.</p></div>
|
114 |
-
<h3>Returns</h3>
|
115 |
-
<div class="subelement response">
|
116 |
-
<code>array</code>updated column definitions for the Attachment Category list table.</div>
|
117 |
-
</div></div>
|
118 |
-
</div>
|
119 |
-
<a name="mla_attachment_list_shortcode" id="mla_attachment_list_shortcode"></a><div class="element clickable function mla_attachment_list_shortcode" data-toggle="collapse" data-target=".mla_attachment_list_shortcode .collapse">
|
120 |
-
<h2>WordPress Shortcode; renders a complete list of all attachments and references to them</h2>
|
121 |
-
<pre>mla_attachment_list_shortcode() : string</pre>
|
122 |
<div class="labels"></div>
|
123 |
<div class="row collapse"><div class="detail-description">
|
124 |
<p class="long_description"></p>
|
125 |
<table class="table table-bordered"><tr>
|
126 |
<th>since</th>
|
127 |
-
<td>0.
|
128 |
-
</tr></table>
|
129 |
-
<h3>Returns</h3>
|
130 |
-
<div class="subelement response">
|
131 |
-
<code>string</code>HTML markup for the attachment list</div>
|
132 |
-
</div></div>
|
133 |
-
</div>
|
134 |
-
<a name="mla_attachment_tag_column_filter" id="mla_attachment_tag_column_filter"></a><div class="element clickable function mla_attachment_tag_column_filter" data-toggle="collapse" data-target=".mla_attachment_tag_column_filter .collapse">
|
135 |
-
<h2>WordPress Filter for Attachment Tag "Attachments" column,
|
136 |
-
which returns a count of the attachments assigned a given tag</h2>
|
137 |
-
<pre>mla_attachment_tag_column_filter(string $place_holder, array $column_name, array $term_id) : array</pre>
|
138 |
-
<div class="labels"></div>
|
139 |
-
<div class="row collapse"><div class="detail-description">
|
140 |
-
<p class="long_description"></p>
|
141 |
-
<table class="table table-bordered"><tr>
|
142 |
-
<th>since</th>
|
143 |
-
<td>0.1</td>
|
144 |
-
</tr></table>
|
145 |
-
<h3>Parameters</h3>
|
146 |
-
<div class="subelement argument">
|
147 |
-
<h4>$place_holder</h4>
|
148 |
-
<code>string</code><p>unknown, undocumented parameter</p></div>
|
149 |
-
<div class="subelement argument">
|
150 |
-
<h4>$column_name</h4>
|
151 |
-
<code>array</code><p>name of the column</p></div>
|
152 |
-
<div class="subelement argument">
|
153 |
-
<h4>$term_id</h4>
|
154 |
-
<code>array</code><p>ID of the term for which the count is desired</p></div>
|
155 |
-
<h3>Returns</h3>
|
156 |
-
<div class="subelement response">
|
157 |
-
<code>array</code>HTML markup for the column content; number of attachments with the tag and alink to retrieve a list of them.</div>
|
158 |
-
</div></div>
|
159 |
-
</div>
|
160 |
-
<a name="mla_attachment_tag_get_columns_filter" id="mla_attachment_tag_get_columns_filter"></a><div class="element clickable function mla_attachment_tag_get_columns_filter" data-toggle="collapse" data-target=".mla_attachment_tag_get_columns_filter .collapse">
|
161 |
-
<h2>WordPress Filter for Attachment Tag "Attachments" column,
|
162 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
163 |
-
<pre>mla_attachment_tag_get_columns_filter(array $columns) : array</pre>
|
164 |
-
<div class="labels"></div>
|
165 |
-
<div class="row collapse"><div class="detail-description">
|
166 |
-
<p class="long_description"></p>
|
167 |
-
<table class="table table-bordered"><tr>
|
168 |
-
<th>since</th>
|
169 |
-
<td>0.1</td>
|
170 |
-
</tr></table>
|
171 |
-
<h3>Parameters</h3>
|
172 |
-
<div class="subelement argument">
|
173 |
-
<h4>$columns</h4>
|
174 |
-
<code>array</code><p>column definitions for the Attachment Category list table.</p></div>
|
175 |
-
<h3>Returns</h3>
|
176 |
-
<div class="subelement response">
|
177 |
-
<code>array</code>updated column definitions for the Attachment Category list table.</div>
|
178 |
-
</div></div>
|
179 |
-
</div>
|
180 |
-
<a name="mla_build_taxonomies_action" id="mla_build_taxonomies_action"></a><div class="element clickable function mla_build_taxonomies_action" data-toggle="collapse" data-target=".mla_build_taxonomies_action .collapse">
|
181 |
-
<h2>WordPress Action; registers Attachment Categories and Attachment Tags custom taxonomies</h2>
|
182 |
-
<pre>mla_build_taxonomies_action() </pre>
|
183 |
-
<div class="labels"></div>
|
184 |
-
<div class="row collapse"><div class="detail-description">
|
185 |
-
<p class="long_description"></p>
|
186 |
-
<table class="table table-bordered"><tr>
|
187 |
-
<th>since</th>
|
188 |
-
<td>0.1</td>
|
189 |
</tr></table>
|
190 |
</div></div>
|
191 |
</div>
|
@@ -206,6 +96,13 @@ of images and files held in the WordPress Media Library.</p>
|
|
206 |
<div class="details collapse"></div>
|
207 |
<a href="../classes/MLAData.html" class="more">« More »</a>
|
208 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
209 |
<a name="MLASettings" id="MLASettings"></a><div class="element ajax clickable class" href="../classes/MLASettings.html">
|
210 |
<h1>MLASettings<a href="../classes/MLASettings.html">¶</a>
|
211 |
</h1>
|
@@ -214,6 +111,13 @@ and provides the settings page to edit them.</p>
|
|
214 |
<div class="details collapse"></div>
|
215 |
<a href="../classes/MLASettings.html" class="more">« More »</a>
|
216 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
<a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
|
218 |
<h1>MLATest<a href="../classes/MLATest.html">¶</a>
|
219 |
</h1>
|
@@ -225,7 +129,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
225 |
<a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
|
226 |
<h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
|
227 |
</h1>
|
228 |
-
<p class="short_description">Class MLA (Media Library Assistant) List Table
|
229 |
<div class="details collapse"></div>
|
230 |
<a href="../classes/MLA_List_Table.html" class="more">« More »</a>
|
231 |
</div>
|
@@ -255,7 +159,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
255 |
<div class="row"><footer class="span12">
|
256 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
257 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
258 |
-
generated on 2012-
|
259 |
</div>
|
260 |
</body>
|
261 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » global</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
67 |
<div class="namespace-indent">
|
68 |
<h3>
|
69 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
70 |
+
<a name="mla_name_conflict_reporting_action" id="mla_name_conflict_reporting_action"></a><div class="element clickable function mla_name_conflict_reporting_action" data-toggle="collapse" data-target=".mla_name_conflict_reporting_action .collapse">
|
71 |
+
<h2>Displays name conflict error messages at the top of the Dashboard</h2>
|
72 |
+
<pre>mla_name_conflict_reporting_action() </pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
<div class="labels"></div>
|
74 |
<div class="row collapse"><div class="detail-description">
|
75 |
<p class="long_description"></p>
|
76 |
<table class="table table-bordered"><tr>
|
77 |
<th>since</th>
|
78 |
+
<td>0.20</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
</tr></table>
|
80 |
</div></div>
|
81 |
</div>
|
96 |
<div class="details collapse"></div>
|
97 |
<a href="../classes/MLAData.html" class="more">« More »</a>
|
98 |
</div>
|
99 |
+
<a name="MLAObjects" id="MLAObjects"></a><div class="element ajax clickable class" href="../classes/MLAObjects.html">
|
100 |
+
<h1>MLAObjects<a href="../classes/MLAObjects.html">¶</a>
|
101 |
+
</h1>
|
102 |
+
<p class="short_description">Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags</p>
|
103 |
+
<div class="details collapse"></div>
|
104 |
+
<a href="../classes/MLAObjects.html" class="more">« More »</a>
|
105 |
+
</div>
|
106 |
<a name="MLASettings" id="MLASettings"></a><div class="element ajax clickable class" href="../classes/MLASettings.html">
|
107 |
<h1>MLASettings<a href="../classes/MLASettings.html">¶</a>
|
108 |
</h1>
|
111 |
<div class="details collapse"></div>
|
112 |
<a href="../classes/MLASettings.html" class="more">« More »</a>
|
113 |
</div>
|
114 |
+
<a name="MLAShortcodes" id="MLAShortcodes"></a><div class="element ajax clickable class" href="../classes/MLAShortcodes.html">
|
115 |
+
<h1>MLAShortcodes<a href="../classes/MLAShortcodes.html">¶</a>
|
116 |
+
</h1>
|
117 |
+
<p class="short_description">Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users</p>
|
118 |
+
<div class="details collapse"></div>
|
119 |
+
<a href="../classes/MLAShortcodes.html" class="more">« More »</a>
|
120 |
+
</div>
|
121 |
<a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
|
122 |
<h1>MLATest<a href="../classes/MLATest.html">¶</a>
|
123 |
</h1>
|
129 |
<a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
|
130 |
<h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
|
131 |
</h1>
|
132 |
+
<p class="short_description">Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu</p>
|
133 |
<div class="details collapse"></div>
|
134 |
<a href="../classes/MLA_List_Table.html" class="more">« More »</a>
|
135 |
</div>
|
159 |
<div class="row"><footer class="span12">
|
160 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
161 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
162 |
+
generated on 2012-09-06T12:09:18-07:00.<br></footer></div>
|
163 |
</div>
|
164 |
</body>
|
165 |
</html>
|
phpDocs/packages/Media Library Assistant.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
-
<title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
@@ -15,13 +15,10 @@
|
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
-
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
-
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
-
<li><a>Packages</a></li>
|
23 |
-
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
-
</ul>
|
25 |
</li>
|
26 |
<li class="dropdown" id="charts-menu">
|
27 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
@@ -60,28 +57,17 @@
|
|
60 |
</li>
|
61 |
<li class="nav-header">
|
62 |
<i class="icon-custom icon-function"></i> Functions</li>
|
63 |
-
<li class="function "><a href="#
|
64 |
-
which returns a count of the attachments assigned a given category'><span class="description">WordPress Filter for Attachment Category "Attachments" column,
|
65 |
-
which returns a count of the attachments assigned a given category</span><pre>mla_attachment_category_column_filter</pre></a></li>
|
66 |
-
<li class="function "><a href="#mla_attachment_category_get_columns_filter" title='mla_attachment_category_get_columns_filter :: WordPress Filter for Attachment Category "Attachments" column,
|
67 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.'><span class="description">WordPress Filter for Attachment Category "Attachments" column,
|
68 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.</span><pre>mla_attachment_category_get_columns_filter</pre></a></li>
|
69 |
-
<li class="function "><a href="#mla_attachment_list_shortcode" title="mla_attachment_list_shortcode :: WordPress Shortcode; renders a complete list of all attachments and references to them"><span class="description">WordPress Shortcode; renders a complete list of all attachments and references to them</span><pre>mla_attachment_list_shortcode</pre></a></li>
|
70 |
-
<li class="function "><a href="#mla_attachment_tag_column_filter" title='mla_attachment_tag_column_filter :: WordPress Filter for Attachment Tag "Attachments" column,
|
71 |
-
which returns a count of the attachments assigned a given tag'><span class="description">WordPress Filter for Attachment Tag "Attachments" column,
|
72 |
-
which returns a count of the attachments assigned a given tag</span><pre>mla_attachment_tag_column_filter</pre></a></li>
|
73 |
-
<li class="function "><a href="#mla_attachment_tag_get_columns_filter" title='mla_attachment_tag_get_columns_filter :: WordPress Filter for Attachment Tag "Attachments" column,
|
74 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.'><span class="description">WordPress Filter for Attachment Tag "Attachments" column,
|
75 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.</span><pre>mla_attachment_tag_get_columns_filter</pre></a></li>
|
76 |
-
<li class="function "><a href="#mla_build_taxonomies_action" title="mla_build_taxonomies_action :: WordPress Action; registers Attachment Categories and Attachment Tags custom taxonomies"><span class="description">WordPress Action; registers Attachment Categories and Attachment Tags custom taxonomies</span><pre>mla_build_taxonomies_action</pre></a></li>
|
77 |
<li class="nav-header">
|
78 |
<i class="icon-custom icon-class"></i> Classes</li>
|
79 |
<li><a href="#MLAData" title="Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs.">MLAData</a></li>
|
80 |
-
<li><a href="#MLA_List_Table" title=
|
81 |
<li><a href="#MLA" title="Class MLA (Media Library Assistant) provides several enhancements to the handling
|
82 |
of images and files held in the WordPress Media Library.">MLA</a></li>
|
|
|
83 |
<li><a href="#MLASettings" title="Class MLA (Media Library Assistant) Settings manages the plugin option settings
|
84 |
and provides the settings page to edit them.">MLASettings</a></li>
|
|
|
85 |
<li><a href="#MLATest" title="Class MLA (Media Library Assistant) Test provides basic run-time tests
|
86 |
to ensure the plugin can run in the current WordPress envrionment.">MLATest</a></li>
|
87 |
<li class="nav-header">
|
@@ -101,122 +87,15 @@ to ensure the plugin can run in the current WordPress envrionment.">MLATest</a><
|
|
101 |
<div class="package-indent">
|
102 |
<h3>
|
103 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
104 |
-
<a name="
|
105 |
-
<h2>
|
106 |
-
|
107 |
-
<pre>mla_attachment_category_column_filter(string $place_holder, array $column_name, array $term_id) : array</pre>
|
108 |
-
<div class="labels"></div>
|
109 |
-
<div class="row collapse"><div class="detail-description">
|
110 |
-
<p class="long_description"></p>
|
111 |
-
<table class="table table-bordered"><tr>
|
112 |
-
<th>since</th>
|
113 |
-
<td>0.1</td>
|
114 |
-
</tr></table>
|
115 |
-
<h3>Parameters</h3>
|
116 |
-
<div class="subelement argument">
|
117 |
-
<h4>$place_holder</h4>
|
118 |
-
<code>string</code><p>unknown, undocumented parameter.</p></div>
|
119 |
-
<div class="subelement argument">
|
120 |
-
<h4>$column_name</h4>
|
121 |
-
<code>array</code><p>name of the column.</p></div>
|
122 |
-
<div class="subelement argument">
|
123 |
-
<h4>$term_id</h4>
|
124 |
-
<code>array</code><p>ID of the term for which the count is desired.</p></div>
|
125 |
-
<h3>Returns</h3>
|
126 |
-
<div class="subelement response">
|
127 |
-
<code>array</code>HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them.</div>
|
128 |
-
</div></div>
|
129 |
-
</div>
|
130 |
-
<a name="mla_attachment_category_get_columns_filter" id="mla_attachment_category_get_columns_filter"></a><div class="element clickable function mla_attachment_category_get_columns_filter" data-toggle="collapse" data-target=".mla_attachment_category_get_columns_filter .collapse">
|
131 |
-
<h2>WordPress Filter for Attachment Category "Attachments" column,
|
132 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
133 |
-
<pre>mla_attachment_category_get_columns_filter(array $columns) : array</pre>
|
134 |
-
<div class="labels"></div>
|
135 |
-
<div class="row collapse"><div class="detail-description">
|
136 |
-
<p class="long_description"></p>
|
137 |
-
<table class="table table-bordered"><tr>
|
138 |
-
<th>since</th>
|
139 |
-
<td>0.1</td>
|
140 |
-
</tr></table>
|
141 |
-
<h3>Parameters</h3>
|
142 |
-
<div class="subelement argument">
|
143 |
-
<h4>$columns</h4>
|
144 |
-
<code>array</code><p>column definitions for the Attachment Category list table.</p></div>
|
145 |
-
<h3>Returns</h3>
|
146 |
-
<div class="subelement response">
|
147 |
-
<code>array</code>updated column definitions for the Attachment Category list table.</div>
|
148 |
-
</div></div>
|
149 |
-
</div>
|
150 |
-
<a name="mla_attachment_list_shortcode" id="mla_attachment_list_shortcode"></a><div class="element clickable function mla_attachment_list_shortcode" data-toggle="collapse" data-target=".mla_attachment_list_shortcode .collapse">
|
151 |
-
<h2>WordPress Shortcode; renders a complete list of all attachments and references to them</h2>
|
152 |
-
<pre>mla_attachment_list_shortcode() : string</pre>
|
153 |
<div class="labels"></div>
|
154 |
<div class="row collapse"><div class="detail-description">
|
155 |
<p class="long_description"></p>
|
156 |
<table class="table table-bordered"><tr>
|
157 |
<th>since</th>
|
158 |
-
<td>0.
|
159 |
-
</tr></table>
|
160 |
-
<h3>Returns</h3>
|
161 |
-
<div class="subelement response">
|
162 |
-
<code>string</code>HTML markup for the attachment list</div>
|
163 |
-
</div></div>
|
164 |
-
</div>
|
165 |
-
<a name="mla_attachment_tag_column_filter" id="mla_attachment_tag_column_filter"></a><div class="element clickable function mla_attachment_tag_column_filter" data-toggle="collapse" data-target=".mla_attachment_tag_column_filter .collapse">
|
166 |
-
<h2>WordPress Filter for Attachment Tag "Attachments" column,
|
167 |
-
which returns a count of the attachments assigned a given tag</h2>
|
168 |
-
<pre>mla_attachment_tag_column_filter(string $place_holder, array $column_name, array $term_id) : array</pre>
|
169 |
-
<div class="labels"></div>
|
170 |
-
<div class="row collapse"><div class="detail-description">
|
171 |
-
<p class="long_description"></p>
|
172 |
-
<table class="table table-bordered"><tr>
|
173 |
-
<th>since</th>
|
174 |
-
<td>0.1</td>
|
175 |
-
</tr></table>
|
176 |
-
<h3>Parameters</h3>
|
177 |
-
<div class="subelement argument">
|
178 |
-
<h4>$place_holder</h4>
|
179 |
-
<code>string</code><p>unknown, undocumented parameter</p></div>
|
180 |
-
<div class="subelement argument">
|
181 |
-
<h4>$column_name</h4>
|
182 |
-
<code>array</code><p>name of the column</p></div>
|
183 |
-
<div class="subelement argument">
|
184 |
-
<h4>$term_id</h4>
|
185 |
-
<code>array</code><p>ID of the term for which the count is desired</p></div>
|
186 |
-
<h3>Returns</h3>
|
187 |
-
<div class="subelement response">
|
188 |
-
<code>array</code>HTML markup for the column content; number of attachments with the tag and alink to retrieve a list of them.</div>
|
189 |
-
</div></div>
|
190 |
-
</div>
|
191 |
-
<a name="mla_attachment_tag_get_columns_filter" id="mla_attachment_tag_get_columns_filter"></a><div class="element clickable function mla_attachment_tag_get_columns_filter" data-toggle="collapse" data-target=".mla_attachment_tag_get_columns_filter .collapse">
|
192 |
-
<h2>WordPress Filter for Attachment Tag "Attachments" column,
|
193 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
194 |
-
<pre>mla_attachment_tag_get_columns_filter(array $columns) : array</pre>
|
195 |
-
<div class="labels"></div>
|
196 |
-
<div class="row collapse"><div class="detail-description">
|
197 |
-
<p class="long_description"></p>
|
198 |
-
<table class="table table-bordered"><tr>
|
199 |
-
<th>since</th>
|
200 |
-
<td>0.1</td>
|
201 |
-
</tr></table>
|
202 |
-
<h3>Parameters</h3>
|
203 |
-
<div class="subelement argument">
|
204 |
-
<h4>$columns</h4>
|
205 |
-
<code>array</code><p>column definitions for the Attachment Category list table.</p></div>
|
206 |
-
<h3>Returns</h3>
|
207 |
-
<div class="subelement response">
|
208 |
-
<code>array</code>updated column definitions for the Attachment Category list table.</div>
|
209 |
-
</div></div>
|
210 |
-
</div>
|
211 |
-
<a name="mla_build_taxonomies_action" id="mla_build_taxonomies_action"></a><div class="element clickable function mla_build_taxonomies_action" data-toggle="collapse" data-target=".mla_build_taxonomies_action .collapse">
|
212 |
-
<h2>WordPress Action; registers Attachment Categories and Attachment Tags custom taxonomies</h2>
|
213 |
-
<pre>mla_build_taxonomies_action() </pre>
|
214 |
-
<div class="labels"></div>
|
215 |
-
<div class="row collapse"><div class="detail-description">
|
216 |
-
<p class="long_description"></p>
|
217 |
-
<table class="table table-bordered"><tr>
|
218 |
-
<th>since</th>
|
219 |
-
<td>0.1</td>
|
220 |
</tr></table>
|
221 |
</div></div>
|
222 |
</div>
|
@@ -237,6 +116,13 @@ of images and files held in the WordPress Media Library.</p>
|
|
237 |
<div class="details collapse"></div>
|
238 |
<a href="../classes/MLAData.html" class="more">« More »</a>
|
239 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
<a name="MLASettings" id="MLASettings"></a><div class="element ajax clickable class" href="../classes/MLASettings.html">
|
241 |
<h1>MLASettings<a href="../classes/MLASettings.html">¶</a>
|
242 |
</h1>
|
@@ -245,6 +131,13 @@ and provides the settings page to edit them.</p>
|
|
245 |
<div class="details collapse"></div>
|
246 |
<a href="../classes/MLASettings.html" class="more">« More »</a>
|
247 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
248 |
<a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
|
249 |
<h1>MLATest<a href="../classes/MLATest.html">¶</a>
|
250 |
</h1>
|
@@ -256,7 +149,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
256 |
<a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
|
257 |
<h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
|
258 |
</h1>
|
259 |
-
<p class="short_description">Class MLA (Media Library Assistant) List Table
|
260 |
<div class="details collapse"></div>
|
261 |
<a href="../classes/MLA_List_Table.html" class="more">« More »</a>
|
262 |
</div>
|
@@ -286,7 +179,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
286 |
<div class="row"><footer class="span12">
|
287 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
288 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
289 |
-
generated on 2012-
|
290 |
</div>
|
291 |
</body>
|
292 |
</html>
|
3 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » Media Library Assistant</title>
|
7 |
<meta name="author" content="Mike van Riel">
|
8 |
<meta name="description" content="">
|
9 |
<link href="../css/template.css" rel="stylesheet" media="all">
|
15 |
<body>
|
16 |
<div class="navbar navbar-fixed-top">
|
17 |
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
<li class="dropdown">
|
20 |
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
|
|
|
|
|
|
|
22 |
</li>
|
23 |
<li class="dropdown" id="charts-menu">
|
24 |
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
57 |
</li>
|
58 |
<li class="nav-header">
|
59 |
<i class="icon-custom icon-function"></i> Functions</li>
|
60 |
+
<li class="function "><a href="#mla_name_conflict_reporting_action" title="mla_name_conflict_reporting_action :: Displays name conflict error messages at the top of the Dashboard"><span class="description">Displays name conflict error messages at the top of the Dashboard</span><pre>mla_name_conflict_reporting_action</pre></a></li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<li class="nav-header">
|
62 |
<i class="icon-custom icon-class"></i> Classes</li>
|
63 |
<li><a href="#MLAData" title="Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs.">MLAData</a></li>
|
64 |
+
<li><a href="#MLA_List_Table" title='Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu'>MLA_List_Table</a></li>
|
65 |
<li><a href="#MLA" title="Class MLA (Media Library Assistant) provides several enhancements to the handling
|
66 |
of images and files held in the WordPress Media Library.">MLA</a></li>
|
67 |
+
<li><a href="#MLAObjects" title="Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags">MLAObjects</a></li>
|
68 |
<li><a href="#MLASettings" title="Class MLA (Media Library Assistant) Settings manages the plugin option settings
|
69 |
and provides the settings page to edit them.">MLASettings</a></li>
|
70 |
+
<li><a href="#MLAShortcodes" title="Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users">MLAShortcodes</a></li>
|
71 |
<li><a href="#MLATest" title="Class MLA (Media Library Assistant) Test provides basic run-time tests
|
72 |
to ensure the plugin can run in the current WordPress envrionment.">MLATest</a></li>
|
73 |
<li class="nav-header">
|
87 |
<div class="package-indent">
|
88 |
<h3>
|
89 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
90 |
+
<a name="mla_name_conflict_reporting_action" id="mla_name_conflict_reporting_action"></a><div class="element clickable function mla_name_conflict_reporting_action" data-toggle="collapse" data-target=".mla_name_conflict_reporting_action .collapse">
|
91 |
+
<h2>Displays name conflict error messages at the top of the Dashboard</h2>
|
92 |
+
<pre>mla_name_conflict_reporting_action() </pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
<div class="labels"></div>
|
94 |
<div class="row collapse"><div class="detail-description">
|
95 |
<p class="long_description"></p>
|
96 |
<table class="table table-bordered"><tr>
|
97 |
<th>since</th>
|
98 |
+
<td>0.20</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
</tr></table>
|
100 |
</div></div>
|
101 |
</div>
|
116 |
<div class="details collapse"></div>
|
117 |
<a href="../classes/MLAData.html" class="more">« More »</a>
|
118 |
</div>
|
119 |
+
<a name="MLAObjects" id="MLAObjects"></a><div class="element ajax clickable class" href="../classes/MLAObjects.html">
|
120 |
+
<h1>MLAObjects<a href="../classes/MLAObjects.html">¶</a>
|
121 |
+
</h1>
|
122 |
+
<p class="short_description">Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags</p>
|
123 |
+
<div class="details collapse"></div>
|
124 |
+
<a href="../classes/MLAObjects.html" class="more">« More »</a>
|
125 |
+
</div>
|
126 |
<a name="MLASettings" id="MLASettings"></a><div class="element ajax clickable class" href="../classes/MLASettings.html">
|
127 |
<h1>MLASettings<a href="../classes/MLASettings.html">¶</a>
|
128 |
</h1>
|
131 |
<div class="details collapse"></div>
|
132 |
<a href="../classes/MLASettings.html" class="more">« More »</a>
|
133 |
</div>
|
134 |
+
<a name="MLAShortcodes" id="MLAShortcodes"></a><div class="element ajax clickable class" href="../classes/MLAShortcodes.html">
|
135 |
+
<h1>MLAShortcodes<a href="../classes/MLAShortcodes.html">¶</a>
|
136 |
+
</h1>
|
137 |
+
<p class="short_description">Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users</p>
|
138 |
+
<div class="details collapse"></div>
|
139 |
+
<a href="../classes/MLAShortcodes.html" class="more">« More »</a>
|
140 |
+
</div>
|
141 |
<a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
|
142 |
<h1>MLATest<a href="../classes/MLATest.html">¶</a>
|
143 |
</h1>
|
149 |
<a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
|
150 |
<h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
|
151 |
</h1>
|
152 |
+
<p class="short_description">Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu</p>
|
153 |
<div class="details collapse"></div>
|
154 |
<a href="../classes/MLA_List_Table.html" class="more">« More »</a>
|
155 |
</div>
|
179 |
<div class="row"><footer class="span12">
|
180 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
181 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
182 |
+
generated on 2012-09-06T12:09:18-07:00.<br></footer></div>
|
183 |
</div>
|
184 |
</body>
|
185 |
</html>
|
phpDocs/structure.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
2 |
-
<project version="2.0.0a8" title="">
|
3 |
-
<file path="includes\class-mla-data.php" hash="
|
4 |
<docblock line="2">
|
5 |
<description><![CDATA[Database and template file access for MLA needs.]]></description>
|
6 |
<long-description><![CDATA[]]></long-description>
|
@@ -27,7 +27,7 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
|
|
27 |
<tag line="19" name="since" description="0.1"/>
|
28 |
</docblock>
|
29 |
</method>
|
30 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
31 |
<name>mla_load_template</name>
|
32 |
<full_name>mla_load_template</full_name>
|
33 |
<docblock line="28">
|
@@ -39,227 +39,231 @@ where "key" becomes the key part of the array.</p>]]></long-description>
|
|
39 |
<tag line="28" name="param" description="Complete path and name of the template file" type="string" variable="$filepath">
|
40 |
<type by_reference="false">string</type>
|
41 |
</tag>
|
42 |
-
<tag line="28" name="return" description="
|
43 |
<type by_reference="false">string</type>
|
|
|
|
|
|
|
44 |
</tag>
|
45 |
</docblock>
|
46 |
-
<argument line="
|
47 |
<name>$filepath</name>
|
48 |
<default><![CDATA[]]></default>
|
49 |
<type/>
|
50 |
</argument>
|
51 |
</method>
|
52 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
53 |
<name>mla_parse_template</name>
|
54 |
<full_name>mla_parse_template</full_name>
|
55 |
-
<docblock line="
|
56 |
-
<description><![CDATA[Expand a template, replacing place holders with their values
|
57 |
<long-description><![CDATA[<p>A simple parsing function for basic templating.</p>]]></long-description>
|
58 |
-
<tag line="
|
59 |
-
<tag line="
|
60 |
<type by_reference="false">string</type>
|
61 |
</tag>
|
62 |
-
<tag line="
|
63 |
<type by_reference="false">array</type>
|
64 |
</tag>
|
65 |
-
<tag line="
|
66 |
<type by_reference="false">string</type>
|
67 |
</tag>
|
68 |
</docblock>
|
69 |
-
<argument line="
|
70 |
<name>$tpl</name>
|
71 |
<default><![CDATA[]]></default>
|
72 |
<type/>
|
73 |
</argument>
|
74 |
-
<argument line="
|
75 |
<name>$hash</name>
|
76 |
<default><![CDATA[]]></default>
|
77 |
<type/>
|
78 |
</argument>
|
79 |
</method>
|
80 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
81 |
<name>mla_prepare_list_table_query</name>
|
82 |
<full_name>mla_prepare_list_table_query</full_name>
|
83 |
-
<docblock line="
|
84 |
-
<description><![CDATA[Sanitize and expand query arguments from request variables
|
85 |
<long-description><![CDATA[<p>Prepare the arguments for WP_Query.
|
86 |
Modeled after wp_edit_attachments_query in wp-admin/post.php
|
87 |
NOTE: The caller must remove the 'posts_where' filter, if required.</p>]]></long-description>
|
88 |
-
<tag line="
|
89 |
-
<tag line="
|
90 |
<type by_reference="false">array</type>
|
91 |
</tag>
|
92 |
-
<tag line="
|
93 |
<type by_reference="false">array</type>
|
94 |
</tag>
|
95 |
</docblock>
|
96 |
-
<argument line="
|
97 |
<name>$request</name>
|
98 |
<default><![CDATA[]]></default>
|
99 |
<type/>
|
100 |
</argument>
|
101 |
</method>
|
102 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
103 |
<name>mla_query_list_table_items</name>
|
104 |
<full_name>mla_query_list_table_items</full_name>
|
105 |
-
<docblock line="
|
106 |
-
<description><![CDATA[Retrieve attachment objects for list table display
|
107 |
-
<long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php
|
108 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
109 |
-
<tag line="
|
110 |
-
<tag line="
|
111 |
<type by_reference="false">array</type>
|
112 |
</tag>
|
113 |
-
<tag line="
|
114 |
<type by_reference="false">string</type>
|
115 |
</tag>
|
116 |
-
<tag line="
|
117 |
<type by_reference="false">string</type>
|
118 |
</tag>
|
119 |
-
<tag line="
|
120 |
<type by_reference="false">int</type>
|
121 |
</tag>
|
122 |
-
<tag line="
|
123 |
<type by_reference="false">int</type>
|
124 |
</tag>
|
125 |
-
<tag line="
|
126 |
<type by_reference="false">array</type>
|
127 |
</tag>
|
128 |
</docblock>
|
129 |
-
<argument line="
|
130 |
<name>$request</name>
|
131 |
<default><![CDATA[]]></default>
|
132 |
<type/>
|
133 |
</argument>
|
134 |
-
<argument line="
|
135 |
<name>$orderby</name>
|
136 |
<default><![CDATA[]]></default>
|
137 |
<type/>
|
138 |
</argument>
|
139 |
-
<argument line="
|
140 |
<name>$order</name>
|
141 |
<default><![CDATA[]]></default>
|
142 |
<type/>
|
143 |
</argument>
|
144 |
-
<argument line="
|
145 |
<name>$offset</name>
|
146 |
<default><![CDATA[]]></default>
|
147 |
<type/>
|
148 |
</argument>
|
149 |
-
<argument line="
|
150 |
<name>$count</name>
|
151 |
<default><![CDATA[]]></default>
|
152 |
<type/>
|
153 |
</argument>
|
154 |
</method>
|
155 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
156 |
<name>mla_query_list_table_items_helper</name>
|
157 |
<full_name>mla_query_list_table_items_helper</full_name>
|
158 |
-
<docblock line="
|
159 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
160 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php
|
161 |
Defined as public so callers can remove it after the query</p>]]></long-description>
|
162 |
-
<tag line="
|
163 |
-
<tag line="
|
164 |
<type by_reference="false">string</type>
|
165 |
</tag>
|
166 |
-
<tag line="
|
167 |
<type by_reference="false">string</type>
|
168 |
</tag>
|
169 |
</docblock>
|
170 |
-
<argument line="
|
171 |
<name>$where</name>
|
172 |
<default><![CDATA[]]></default>
|
173 |
<type/>
|
174 |
</argument>
|
175 |
</method>
|
176 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
177 |
<name>mla_get_attachment_by_id</name>
|
178 |
<full_name>mla_get_attachment_by_id</full_name>
|
179 |
-
<docblock line="
|
180 |
-
<description><![CDATA[Retrieve an Attachment array given a $post_id
|
181 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
182 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
183 |
-
<tag line="
|
184 |
-
<tag line="
|
185 |
<type by_reference="false">int</type>
|
186 |
</tag>
|
187 |
-
<tag line="
|
188 |
-
<type by_reference="false">
|
|
|
189 |
</tag>
|
190 |
</docblock>
|
191 |
-
<argument line="
|
192 |
<name>$post_id</name>
|
193 |
<default><![CDATA[]]></default>
|
194 |
<type/>
|
195 |
</argument>
|
196 |
</method>
|
197 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
198 |
<name>mla_fetch_attachment_references</name>
|
199 |
<full_name>mla_fetch_attachment_references</full_name>
|
200 |
-
<docblock line="
|
201 |
-
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment
|
202 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
203 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
204 |
-
<tag line="
|
205 |
-
<tag line="
|
206 |
<type by_reference="false">int</type>
|
207 |
</tag>
|
208 |
-
<tag line="
|
209 |
<type by_reference="false">int</type>
|
210 |
</tag>
|
211 |
-
<tag line="
|
212 |
<type by_reference="false">array</type>
|
213 |
</tag>
|
214 |
</docblock>
|
215 |
-
<argument line="
|
216 |
<name>$ID</name>
|
217 |
<default><![CDATA[]]></default>
|
218 |
<type/>
|
219 |
</argument>
|
220 |
-
<argument line="
|
221 |
<name>$parent</name>
|
222 |
<default><![CDATA[]]></default>
|
223 |
<type/>
|
224 |
</argument>
|
225 |
</method>
|
226 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
227 |
<name>_fetch_attachment_parent_data</name>
|
228 |
<full_name>_fetch_attachment_parent_data</full_name>
|
229 |
-
<docblock line="
|
230 |
-
<description><![CDATA[Returns information about an attachment's parent, if found
|
231 |
<long-description><![CDATA[]]></long-description>
|
232 |
-
<tag line="
|
233 |
-
<tag line="
|
234 |
<type by_reference="false">int</type>
|
235 |
</tag>
|
236 |
-
<tag line="
|
237 |
<type by_reference="false">array</type>
|
238 |
</tag>
|
239 |
</docblock>
|
240 |
-
<argument line="
|
241 |
<name>$parent_id</name>
|
242 |
<default><![CDATA[]]></default>
|
243 |
<type/>
|
244 |
</argument>
|
245 |
</method>
|
246 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
247 |
<name>_fetch_attachment_metadata</name>
|
248 |
<full_name>_fetch_attachment_metadata</full_name>
|
249 |
-
<docblock line="
|
250 |
-
<description><![CDATA[Fetch and filter meta data for an attachment
|
251 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
252 |
are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
|
253 |
a string containing the first array element.</p>]]></long-description>
|
254 |
-
<tag line="
|
255 |
-
<tag line="
|
256 |
<type by_reference="false">int</type>
|
257 |
</tag>
|
258 |
-
<tag line="
|
259 |
<type by_reference="false">array</type>
|
260 |
</tag>
|
261 |
</docblock>
|
262 |
-
<argument line="
|
263 |
<name>$post_id</name>
|
264 |
<default><![CDATA[]]></default>
|
265 |
<type/>
|
@@ -267,54 +271,54 @@ a string containing the first array element.</p>]]></long-description>
|
|
267 |
</method>
|
268 |
</class>
|
269 |
</file>
|
270 |
-
<file path="includes\class-mla-list-table.php" hash="
|
271 |
<docblock line="2">
|
272 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
273 |
<long-description><![CDATA[]]></long-description>
|
274 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
275 |
<tag line="2" name="since" description="0.1"/>
|
276 |
</docblock>
|
277 |
-
<include line="13" type="Require Once" package="
|
278 |
<name/>
|
279 |
</include>
|
280 |
-
<class final="false" abstract="false" namespace="global" line="
|
281 |
<extends>\WP_List_Table</extends>
|
282 |
<name>MLA_List_Table</name>
|
283 |
<full_name>\MLA_List_Table</full_name>
|
284 |
<docblock line="16">
|
285 |
-
<description><![CDATA[Class MLA (Media Library Assistant) List Table
|
286 |
-
<long-description><![CDATA[]]></long-description>
|
287 |
<tag line="16" name="package" description="Media Library Assistant"/>
|
288 |
<tag line="16" name="since" description="0.1"/>
|
289 |
</docblock>
|
290 |
-
<property final="false" static="false" visibility="private" line="
|
291 |
<name>$rollover_id</name>
|
292 |
<default><![CDATA[0]]></default>
|
293 |
-
<docblock line="
|
294 |
<description><![CDATA[Records assignment of row-level actions to a table row]]></description>
|
295 |
<long-description><![CDATA[<p>Set to the current Post-ID when row-level actions are output for the row.</p>]]></long-description>
|
296 |
-
<tag line="
|
297 |
-
<tag line="
|
298 |
<type by_reference="false">int</type>
|
299 |
</tag>
|
300 |
</docblock>
|
301 |
</property>
|
302 |
-
<property final="false" static="false" visibility="private" line="
|
303 |
<name>$currently_hidden</name>
|
304 |
<default><![CDATA[array()]]></default>
|
305 |
-
<docblock line="
|
306 |
<description><![CDATA[Currently hidden columns]]></description>
|
307 |
<long-description><![CDATA[<p>Records hidden columns so row-level actions are not assigned to them.</p>]]></long-description>
|
308 |
-
<tag line="
|
309 |
-
<tag line="
|
310 |
<type by_reference="false">array</type>
|
311 |
</tag>
|
312 |
</docblock>
|
313 |
</property>
|
314 |
-
<property final="false" static="true" visibility="private" line="
|
315 |
<name>$default_columns</name>
|
316 |
<default><![CDATA[array('cb' => '<input type="checkbox" />', 'icon' => '', 'ID_parent' => 'ID/Parent', 'title_name' => 'Title/Name', 'post_title' => 'Title', 'post_name' => 'Name', 'parent' => 'Parent ID', 'featured' => 'Featured in', 'inserted' => 'Inserted in', 'alt_text' => 'ALT Text', 'caption' => 'Caption', 'description' => 'Description', 'base_file' => 'Base File', 'date' => 'Date', 'author' => 'Author', 'attached_to' => 'Attached to', 'categories' => 'Att. Categories', 'tags' => 'Att. Tags')]]></default>
|
317 |
-
<docblock line="
|
318 |
<description><![CDATA[Table column definitions]]></description>
|
319 |
<long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
|
320 |
and the value is the column's title text. If you need a checkbox for bulk actions,
|
@@ -323,32 +327,32 @@ use the special slug "cb".</p>
|
|
323 |
<p>The 'cb' column is treated differently than the rest. If including a checkbox
|
324 |
column in your table you must create a column_cb() method. If you don't need
|
325 |
bulk actions or checkboxes, simply leave the 'cb' entry out of your array.</p>]]></long-description>
|
326 |
-
<tag line="
|
327 |
-
<tag line="
|
328 |
<type by_reference="false">array</type>
|
329 |
</tag>
|
330 |
</docblock>
|
331 |
</property>
|
332 |
-
<property final="false" static="true" visibility="private" line="
|
333 |
<name>$default_hidden_columns</name>
|
334 |
<default><![CDATA[array(0 => 'post_title', 1 => 'post_name', 2 => 'parent', 3 => 'alt_text', 4 => 'caption', 5 => 'description', 6 => 'base_file', 7 => 'date', 8 => 'author', 9 => 'attached_to', 10 => 'categories', 11 => 'tags')]]></default>
|
335 |
-
<docblock line="
|
336 |
<description><![CDATA[Default values for hdden columns]]></description>
|
337 |
<long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
|
338 |
the user has not altered the selection of hidden columns.</p>
|
339 |
|
340 |
<p>The value on the right-hand side must match the column slug, e.g.,
|
341 |
array(0 => 'ID_parent, 1 => 'title_name').</p>]]></long-description>
|
342 |
-
<tag line="
|
343 |
-
<tag line="
|
344 |
<type by_reference="false">array</type>
|
345 |
</tag>
|
346 |
</docblock>
|
347 |
</property>
|
348 |
-
<property final="false" static="true" visibility="private" line="
|
349 |
<name>$default_sortable_columns</name>
|
350 |
<default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('name', false), 'parent' => array('parent', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'date' => array('post_date', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
|
351 |
-
<docblock line="
|
352 |
<description><![CDATA[Sortable column definitions]]></description>
|
353 |
<long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
|
354 |
is the column slug that needs to be sortable, and the value is database column
|
@@ -357,651 +361,691 @@ the case (as the value is a column name from the database, not the list table).<
|
|
357 |
|
358 |
<p>The array value also contains a boolean which is 'true' if the data is currently
|
359 |
sorted by that column. This is computed each time the table is displayed.</p>]]></long-description>
|
360 |
-
<tag line="
|
361 |
-
<tag line="
|
362 |
<type by_reference="false">array</type>
|
363 |
</tag>
|
364 |
</docblock>
|
365 |
</property>
|
366 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
367 |
<name>_default_hidden_columns</name>
|
368 |
<full_name>_default_hidden_columns</full_name>
|
369 |
-
<docblock line="
|
370 |
<description><![CDATA[Access the default list of hidden columns]]></description>
|
371 |
<long-description><![CDATA[]]></long-description>
|
372 |
-
<tag line="
|
373 |
-
<tag line="
|
374 |
<type by_reference="false">array</type>
|
375 |
</tag>
|
376 |
</docblock>
|
377 |
</method>
|
378 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
379 |
<name>mla_manage_hidden_columns</name>
|
380 |
<full_name>mla_manage_hidden_columns</full_name>
|
381 |
-
<docblock line="
|
382 |
<description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
|
383 |
<long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
|
384 |
the get_user_option result. Set when the file is loaded because the object
|
385 |
is not created in time for the call from screen.php.</p>]]></long-description>
|
386 |
-
<tag line="
|
387 |
-
<tag line="
|
388 |
<type by_reference="false">string</type>
|
389 |
</tag>
|
390 |
-
<tag line="
|
391 |
<type by_reference="false">string</type>
|
392 |
</tag>
|
393 |
-
<tag line="
|
394 |
<type by_reference="false">object</type>
|
395 |
</tag>
|
396 |
-
<tag line="
|
397 |
<type by_reference="false">array</type>
|
398 |
</tag>
|
399 |
</docblock>
|
400 |
-
<argument line="
|
401 |
<name>$result</name>
|
402 |
<default><![CDATA[]]></default>
|
403 |
<type/>
|
404 |
</argument>
|
405 |
-
<argument line="
|
406 |
<name>$option</name>
|
407 |
<default><![CDATA[]]></default>
|
408 |
<type/>
|
409 |
</argument>
|
410 |
-
<argument line="
|
411 |
<name>$user_data</name>
|
412 |
<default><![CDATA[]]></default>
|
413 |
<type/>
|
414 |
</argument>
|
415 |
</method>
|
416 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
417 |
<name>mla_manage_columns</name>
|
418 |
<full_name>mla_manage_columns</full_name>
|
419 |
-
<docblock line="
|
420 |
<description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
|
421 |
<long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
|
422 |
file is loaded because the list_table object isn't created in time
|
423 |
to affect the "screen options" setup.</p>]]></long-description>
|
424 |
-
<tag line="
|
425 |
-
<tag line="
|
426 |
<type by_reference="false">array</type>
|
427 |
</tag>
|
428 |
</docblock>
|
429 |
</method>
|
430 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
431 |
<name>__construct</name>
|
432 |
<full_name>__construct</full_name>
|
433 |
-
<docblock line="
|
434 |
<description><![CDATA[Initializes some properties from $_REQUEST vairables, then
|
435 |
calls the parent constructor to set some default configs.]]></description>
|
436 |
<long-description><![CDATA[]]></long-description>
|
437 |
-
<tag line="
|
438 |
</docblock>
|
439 |
</method>
|
440 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
441 |
<name>column_default</name>
|
442 |
<full_name>column_default</full_name>
|
443 |
-
<docblock line="
|
444 |
<description><![CDATA[Called when the parent class can't find a method specifically built
|
445 |
for a given column.]]></description>
|
446 |
<long-description><![CDATA[<p>All our columns should have a specific method,
|
447 |
so this function returns a troubleshooting message.</p>]]></long-description>
|
448 |
-
<tag line="
|
449 |
-
<tag line="
|
450 |
<type by_reference="false">array</type>
|
451 |
</tag>
|
452 |
-
<tag line="
|
453 |
<type by_reference="false">array</type>
|
454 |
</tag>
|
455 |
-
<tag line="
|
456 |
<type by_reference="false">string</type>
|
457 |
</tag>
|
458 |
</docblock>
|
459 |
-
<argument line="
|
460 |
<name>$item</name>
|
461 |
<default><![CDATA[]]></default>
|
462 |
<type/>
|
463 |
</argument>
|
464 |
-
<argument line="
|
465 |
<name>$column_name</name>
|
466 |
<default><![CDATA[]]></default>
|
467 |
<type/>
|
468 |
</argument>
|
469 |
</method>
|
470 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
471 |
<name>column_cb</name>
|
472 |
<full_name>column_cb</full_name>
|
473 |
-
<docblock line="
|
474 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
475 |
<long-description><![CDATA[<p>The 'cb' column
|
476 |
is given special treatment when columns are processed.</p>]]></long-description>
|
477 |
-
<tag line="
|
478 |
-
<tag line="
|
479 |
<type by_reference="false">array</type>
|
480 |
</tag>
|
481 |
-
<tag line="
|
482 |
<type by_reference="false">string</type>
|
483 |
</tag>
|
484 |
</docblock>
|
485 |
-
<argument line="
|
486 |
<name>$item</name>
|
487 |
<default><![CDATA[]]></default>
|
488 |
<type/>
|
489 |
</argument>
|
490 |
</method>
|
491 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
492 |
<name>column_icon</name>
|
493 |
<full_name>column_icon</full_name>
|
494 |
-
<docblock line="
|
495 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
496 |
<long-description><![CDATA[]]></long-description>
|
497 |
-
<tag line="
|
498 |
-
<tag line="
|
499 |
<type by_reference="false">array</type>
|
500 |
</tag>
|
501 |
-
<tag line="
|
502 |
<type by_reference="false">string</type>
|
503 |
</tag>
|
504 |
</docblock>
|
505 |
-
<argument line="
|
506 |
<name>$item</name>
|
507 |
<default><![CDATA[]]></default>
|
508 |
<type/>
|
509 |
</argument>
|
510 |
</method>
|
511 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
512 |
<name>_build_rollover_actions</name>
|
513 |
<full_name>_build_rollover_actions</full_name>
|
514 |
-
<docblock line="
|
515 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
516 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
517 |
<long-description><![CDATA[]]></long-description>
|
518 |
-
<tag line="
|
519 |
-
<tag line="
|
520 |
-
<type by_reference="false">
|
521 |
</tag>
|
522 |
-
<tag line="
|
523 |
<type by_reference="false">string</type>
|
524 |
</tag>
|
525 |
-
<tag line="
|
526 |
<type by_reference="false">array</type>
|
527 |
</tag>
|
528 |
</docblock>
|
529 |
-
<argument line="
|
530 |
<name>$item</name>
|
531 |
<default><![CDATA[]]></default>
|
532 |
<type/>
|
533 |
</argument>
|
534 |
-
<argument line="
|
535 |
<name>$column</name>
|
536 |
<default><![CDATA[]]></default>
|
537 |
<type/>
|
538 |
</argument>
|
539 |
</method>
|
540 |
-
<method final="false" abstract="false" static="false" visibility="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
<name>column_ID_parent</name>
|
542 |
<full_name>column_ID_parent</full_name>
|
543 |
-
<docblock line="
|
544 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
545 |
<long-description><![CDATA[]]></long-description>
|
546 |
-
<tag line="
|
547 |
-
<tag line="
|
548 |
<type by_reference="false">array</type>
|
549 |
</tag>
|
550 |
-
<tag line="
|
551 |
<type by_reference="false">string</type>
|
552 |
</tag>
|
553 |
</docblock>
|
554 |
-
<argument line="
|
555 |
<name>$item</name>
|
556 |
<default><![CDATA[]]></default>
|
557 |
<type/>
|
558 |
</argument>
|
559 |
</method>
|
560 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
561 |
<name>column_title_name</name>
|
562 |
<full_name>column_title_name</full_name>
|
563 |
-
<docblock line="
|
564 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
565 |
<long-description><![CDATA[]]></long-description>
|
566 |
-
<tag line="
|
567 |
-
<tag line="
|
568 |
<type by_reference="false">array</type>
|
569 |
</tag>
|
570 |
-
<tag line="
|
571 |
<type by_reference="false">string</type>
|
572 |
</tag>
|
573 |
</docblock>
|
574 |
-
<argument line="
|
575 |
<name>$item</name>
|
576 |
<default><![CDATA[]]></default>
|
577 |
<type/>
|
578 |
</argument>
|
579 |
</method>
|
580 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
581 |
<name>column_post_title</name>
|
582 |
<full_name>column_post_title</full_name>
|
583 |
-
<docblock line="
|
584 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
585 |
<long-description><![CDATA[]]></long-description>
|
586 |
-
<tag line="
|
587 |
-
<tag line="
|
588 |
<type by_reference="false">array</type>
|
589 |
</tag>
|
590 |
-
<tag line="
|
591 |
<type by_reference="false">string</type>
|
592 |
</tag>
|
593 |
</docblock>
|
594 |
-
<argument line="
|
595 |
<name>$item</name>
|
596 |
<default><![CDATA[]]></default>
|
597 |
<type/>
|
598 |
</argument>
|
599 |
</method>
|
600 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
601 |
<name>column_post_name</name>
|
602 |
<full_name>column_post_name</full_name>
|
603 |
-
<docblock line="
|
604 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
605 |
<long-description><![CDATA[]]></long-description>
|
606 |
-
<tag line="
|
607 |
-
<tag line="
|
608 |
<type by_reference="false">array</type>
|
609 |
</tag>
|
610 |
-
<tag line="
|
611 |
<type by_reference="false">string</type>
|
612 |
</tag>
|
613 |
</docblock>
|
614 |
-
<argument line="
|
615 |
<name>$item</name>
|
616 |
<default><![CDATA[]]></default>
|
617 |
<type/>
|
618 |
</argument>
|
619 |
</method>
|
620 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
621 |
<name>column_parent</name>
|
622 |
<full_name>column_parent</full_name>
|
623 |
-
<docblock line="
|
624 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
625 |
<long-description><![CDATA[]]></long-description>
|
626 |
-
<tag line="
|
627 |
-
<tag line="
|
628 |
<type by_reference="false">array</type>
|
629 |
</tag>
|
630 |
-
<tag line="
|
631 |
<type by_reference="false">string</type>
|
632 |
</tag>
|
633 |
</docblock>
|
634 |
-
<argument line="
|
635 |
<name>$item</name>
|
636 |
<default><![CDATA[]]></default>
|
637 |
<type/>
|
638 |
</argument>
|
639 |
</method>
|
640 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
641 |
<name>column_featured</name>
|
642 |
<full_name>column_featured</full_name>
|
643 |
-
<docblock line="
|
644 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
645 |
<long-description><![CDATA[]]></long-description>
|
646 |
-
<tag line="
|
647 |
-
<tag line="
|
648 |
<type by_reference="false">array</type>
|
649 |
</tag>
|
650 |
-
<tag line="
|
651 |
<type by_reference="false">string</type>
|
652 |
</tag>
|
653 |
</docblock>
|
654 |
-
<argument line="
|
655 |
<name>$item</name>
|
656 |
<default><![CDATA[]]></default>
|
657 |
<type/>
|
658 |
</argument>
|
659 |
</method>
|
660 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
661 |
<name>column_inserted</name>
|
662 |
<full_name>column_inserted</full_name>
|
663 |
-
<docblock line="
|
664 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
665 |
<long-description><![CDATA[]]></long-description>
|
666 |
-
<tag line="
|
667 |
-
<tag line="
|
668 |
<type by_reference="false">array</type>
|
669 |
</tag>
|
670 |
-
<tag line="
|
671 |
<type by_reference="false">string</type>
|
672 |
</tag>
|
673 |
</docblock>
|
674 |
-
<argument line="
|
675 |
<name>$item</name>
|
676 |
<default><![CDATA[]]></default>
|
677 |
<type/>
|
678 |
</argument>
|
679 |
</method>
|
680 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
681 |
<name>column_alt_text</name>
|
682 |
<full_name>column_alt_text</full_name>
|
683 |
-
<docblock line="
|
684 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
685 |
<long-description><![CDATA[]]></long-description>
|
686 |
-
<tag line="
|
687 |
-
<tag line="
|
688 |
<type by_reference="false">array</type>
|
689 |
</tag>
|
690 |
-
<tag line="
|
691 |
<type by_reference="false">string</type>
|
692 |
</tag>
|
693 |
</docblock>
|
694 |
-
<argument line="
|
695 |
<name>$item</name>
|
696 |
<default><![CDATA[]]></default>
|
697 |
<type/>
|
698 |
</argument>
|
699 |
</method>
|
700 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
701 |
<name>column_caption</name>
|
702 |
<full_name>column_caption</full_name>
|
703 |
-
<docblock line="
|
704 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
705 |
<long-description><![CDATA[]]></long-description>
|
706 |
-
<tag line="
|
707 |
-
<tag line="
|
708 |
<type by_reference="false">array</type>
|
709 |
</tag>
|
710 |
-
<tag line="
|
711 |
<type by_reference="false">string</type>
|
712 |
</tag>
|
713 |
</docblock>
|
714 |
-
<argument line="
|
715 |
<name>$item</name>
|
716 |
<default><![CDATA[]]></default>
|
717 |
<type/>
|
718 |
</argument>
|
719 |
</method>
|
720 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
721 |
<name>column_description</name>
|
722 |
<full_name>column_description</full_name>
|
723 |
-
<docblock line="
|
724 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
725 |
<long-description><![CDATA[]]></long-description>
|
726 |
-
<tag line="
|
727 |
-
<tag line="
|
728 |
<type by_reference="false">array</type>
|
729 |
</tag>
|
730 |
-
<tag line="
|
731 |
<type by_reference="false">string</type>
|
732 |
</tag>
|
733 |
</docblock>
|
734 |
-
<argument line="
|
735 |
<name>$item</name>
|
736 |
<default><![CDATA[]]></default>
|
737 |
<type/>
|
738 |
</argument>
|
739 |
</method>
|
740 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
741 |
<name>column_base_file</name>
|
742 |
<full_name>column_base_file</full_name>
|
743 |
-
<docblock line="
|
744 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
745 |
<long-description><![CDATA[]]></long-description>
|
746 |
-
<tag line="
|
747 |
-
<tag line="
|
748 |
<type by_reference="false">array</type>
|
749 |
</tag>
|
750 |
-
<tag line="
|
751 |
<type by_reference="false">string</type>
|
752 |
</tag>
|
753 |
</docblock>
|
754 |
-
<argument line="
|
755 |
<name>$item</name>
|
756 |
<default><![CDATA[]]></default>
|
757 |
<type/>
|
758 |
</argument>
|
759 |
</method>
|
760 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
761 |
<name>column_date</name>
|
762 |
<full_name>column_date</full_name>
|
763 |
-
<docblock line="
|
764 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
765 |
<long-description><![CDATA[]]></long-description>
|
766 |
-
<tag line="
|
767 |
-
<tag line="
|
768 |
<type by_reference="false">array</type>
|
769 |
</tag>
|
770 |
-
<tag line="
|
771 |
<type by_reference="false">string</type>
|
772 |
</tag>
|
773 |
</docblock>
|
774 |
-
<argument line="
|
775 |
<name>$item</name>
|
776 |
<default><![CDATA[]]></default>
|
777 |
<type/>
|
778 |
</argument>
|
779 |
</method>
|
780 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
781 |
<name>column_author</name>
|
782 |
<full_name>column_author</full_name>
|
783 |
-
<docblock line="
|
784 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
785 |
<long-description><![CDATA[]]></long-description>
|
786 |
-
<tag line="
|
787 |
-
<tag line="
|
788 |
<type by_reference="false">array</type>
|
789 |
</tag>
|
790 |
-
<tag line="
|
791 |
<type by_reference="false">string</type>
|
792 |
</tag>
|
793 |
</docblock>
|
794 |
-
<argument line="
|
795 |
<name>$item</name>
|
796 |
<default><![CDATA[]]></default>
|
797 |
<type/>
|
798 |
</argument>
|
799 |
</method>
|
800 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
801 |
<name>column_attached_to</name>
|
802 |
<full_name>column_attached_to</full_name>
|
803 |
-
<docblock line="
|
804 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
805 |
<long-description><![CDATA[]]></long-description>
|
806 |
-
<tag line="
|
807 |
-
<tag line="
|
808 |
<type by_reference="false">array</type>
|
809 |
</tag>
|
810 |
-
<tag line="
|
811 |
<type by_reference="false">string</type>
|
812 |
</tag>
|
813 |
</docblock>
|
814 |
-
<argument line="
|
815 |
<name>$item</name>
|
816 |
<default><![CDATA[]]></default>
|
817 |
<type/>
|
818 |
</argument>
|
819 |
</method>
|
820 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
821 |
<name>column_categories</name>
|
822 |
<full_name>column_categories</full_name>
|
823 |
-
<docblock line="
|
824 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
825 |
<long-description><![CDATA[]]></long-description>
|
826 |
-
<tag line="
|
827 |
-
<tag line="
|
828 |
<type by_reference="false">array</type>
|
829 |
</tag>
|
830 |
-
<tag line="
|
831 |
<type by_reference="false">string</type>
|
832 |
</tag>
|
833 |
</docblock>
|
834 |
-
<argument line="
|
835 |
<name>$item</name>
|
836 |
<default><![CDATA[]]></default>
|
837 |
<type/>
|
838 |
</argument>
|
839 |
</method>
|
840 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
841 |
<name>column_tags</name>
|
842 |
<full_name>column_tags</full_name>
|
843 |
-
<docblock line="
|
844 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
845 |
<long-description><![CDATA[]]></long-description>
|
846 |
-
<tag line="
|
847 |
-
<tag line="
|
848 |
<type by_reference="false">array</type>
|
849 |
</tag>
|
850 |
-
<tag line="
|
851 |
<type by_reference="false">string</type>
|
852 |
</tag>
|
853 |
</docblock>
|
854 |
-
<argument line="
|
855 |
<name>$item</name>
|
856 |
<default><![CDATA[]]></default>
|
857 |
<type/>
|
858 |
</argument>
|
859 |
</method>
|
860 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
861 |
<name>get_columns</name>
|
862 |
<full_name>get_columns</full_name>
|
863 |
-
<docblock line="
|
864 |
<description><![CDATA[This method dictates the table's columns and titles.]]></description>
|
865 |
<long-description><![CDATA[]]></long-description>
|
866 |
-
<tag line="
|
867 |
-
<tag line="
|
868 |
<type by_reference="false">array</type>
|
869 |
</tag>
|
870 |
</docblock>
|
871 |
</method>
|
872 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
873 |
<name>get_hidden_columns</name>
|
874 |
<full_name>get_hidden_columns</full_name>
|
875 |
-
<docblock line="
|
876 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
877 |
from default values if the option is not set]]></description>
|
878 |
<long-description><![CDATA[]]></long-description>
|
879 |
-
<tag line="
|
880 |
-
<tag line="
|
881 |
<type by_reference="false">array</type>
|
882 |
</tag>
|
883 |
</docblock>
|
884 |
</method>
|
885 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
886 |
<name>get_sortable_columns</name>
|
887 |
<full_name>get_sortable_columns</full_name>
|
888 |
-
<docblock line="
|
889 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
890 |
and the value is db column to sort by.]]></description>
|
891 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
892 |
if set.</p>]]></long-description>
|
893 |
-
<tag line="
|
894 |
-
<tag line="
|
895 |
<type by_reference="false">array</type>
|
896 |
</tag>
|
897 |
</docblock>
|
898 |
</method>
|
899 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
900 |
<name>get_views</name>
|
901 |
<full_name>get_views</full_name>
|
902 |
-
<docblock line="
|
903 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
904 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
905 |
-
<tag line="
|
906 |
-
<tag line="
|
907 |
<type by_reference="false">array</type>
|
908 |
</tag>
|
909 |
</docblock>
|
910 |
</method>
|
911 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
912 |
<name>get_bulk_actions</name>
|
913 |
<full_name>get_bulk_actions</full_name>
|
914 |
-
<docblock line="
|
915 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
916 |
of bulk actions available on this table.]]></description>
|
917 |
<long-description><![CDATA[]]></long-description>
|
918 |
-
<tag line="
|
919 |
-
<tag line="
|
920 |
<type by_reference="false">array</type>
|
921 |
</tag>
|
922 |
</docblock>
|
923 |
</method>
|
924 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
925 |
<name>extra_tablenav</name>
|
926 |
<full_name>extra_tablenav</full_name>
|
927 |
-
<docblock line="
|
928 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination.]]></description>
|
929 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes</p>]]></long-description>
|
930 |
-
<tag line="
|
931 |
-
<tag line="
|
932 |
<type by_reference="false">string</type>
|
933 |
</tag>
|
934 |
-
<tag line="
|
935 |
<type by_reference="false">array</type>
|
936 |
</tag>
|
937 |
</docblock>
|
938 |
-
<argument line="
|
939 |
<name>$which</name>
|
940 |
<default><![CDATA[]]></default>
|
941 |
<type/>
|
942 |
</argument>
|
943 |
</method>
|
944 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
945 |
<name>prepare_items</name>
|
946 |
<full_name>prepare_items</full_name>
|
947 |
-
<docblock line="
|
948 |
<description><![CDATA[Prepares the list of items for displaying.]]></description>
|
949 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
950 |
be used to query the database, sort and filter the data, and generally
|
951 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
952 |
$this->set_pagination_args().</p>]]></long-description>
|
953 |
-
<tag line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
954 |
</docblock>
|
|
|
|
|
|
|
|
|
|
|
955 |
</method>
|
956 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
957 |
<name>_mime_types</name>
|
958 |
<full_name>_mime_types</full_name>
|
959 |
-
<docblock line="
|
960 |
<description><![CDATA[Get possible mime types for view preparation.]]></description>
|
961 |
<long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
|
962 |
with additional entries.</p>]]></long-description>
|
963 |
-
<tag line="
|
964 |
-
<tag line="
|
965 |
<type by_reference="false">array</type>
|
966 |
</tag>
|
967 |
</docblock>
|
968 |
</method>
|
969 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
970 |
<name>_avail_mime_types</name>
|
971 |
<full_name>_avail_mime_types</full_name>
|
972 |
-
<docblock line="
|
973 |
<description><![CDATA[Get mime types with one or more attachments for view preparation.]]></description>
|
974 |
<long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
|
975 |
with additional entries.</p>]]></long-description>
|
976 |
-
<tag line="
|
977 |
-
<tag line="
|
978 |
<type by_reference="false">array</type>
|
979 |
</tag>
|
980 |
-
<tag line="
|
981 |
<type by_reference="false">array</type>
|
982 |
</tag>
|
983 |
</docblock>
|
984 |
-
<argument line="
|
985 |
<name>$num_posts</name>
|
986 |
<default><![CDATA[]]></default>
|
987 |
<type/>
|
988 |
</argument>
|
989 |
</method>
|
990 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
991 |
<name>_count_list_table_items</name>
|
992 |
<full_name>_count_list_table_items</full_name>
|
993 |
-
<docblock line="
|
994 |
<description><![CDATA[Get the total number of attachment posts]]></description>
|
995 |
<long-description><![CDATA[]]></long-description>
|
996 |
-
<tag line="
|
997 |
-
<tag line="
|
998 |
<type by_reference="false">array</type>
|
999 |
</tag>
|
1000 |
-
<tag line="
|
1001 |
-
<type by_reference="false">
|
1002 |
</tag>
|
1003 |
</docblock>
|
1004 |
-
<argument line="
|
1005 |
<name>$request</name>
|
1006 |
<default><![CDATA[]]></default>
|
1007 |
<type/>
|
@@ -1009,14 +1053,14 @@ with additional entries.</p>]]></long-description>
|
|
1009 |
</method>
|
1010 |
</class>
|
1011 |
</file>
|
1012 |
-
<file path="includes\class-mla-main.php" hash="
|
1013 |
<docblock line="2">
|
1014 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
1015 |
<long-description><![CDATA[]]></long-description>
|
1016 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
1017 |
<tag line="2" name="since" description="0.1"/>
|
1018 |
</docblock>
|
1019 |
-
<include line="13" type="Require Once" package="
|
1020 |
<name/>
|
1021 |
</include>
|
1022 |
<class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
|
@@ -1046,7 +1090,7 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
1046 |
<constant namespace="global" line="41" package="Media Library Assistant">
|
1047 |
<name>CURRENT_MLA_VERSION</name>
|
1048 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
1049 |
-
<value><![CDATA['0.
|
1050 |
<docblock line="34">
|
1051 |
<description><![CDATA[Current version number]]></description>
|
1052 |
<long-description><![CDATA[]]></long-description>
|
@@ -1072,7 +1116,7 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
1072 |
<constant namespace="global" line="59" package="Media Library Assistant">
|
1073 |
<name>MIN_WORDPRESS_VERSION</name>
|
1074 |
<full_name>MIN_WORDPRESS_VERSION</full_name>
|
1075 |
-
<value><![CDATA['3.3
|
1076 |
<docblock line="52">
|
1077 |
<description><![CDATA[Minimum version of WordPress required for this plugin]]></description>
|
1078 |
<long-description><![CDATA[]]></long-description>
|
@@ -1096,11 +1140,11 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
1096 |
</docblock>
|
1097 |
</constant>
|
1098 |
<constant namespace="global" line="77" package="Media Library Assistant">
|
1099 |
-
<name>
|
1100 |
-
<full_name>
|
1101 |
-
<value><![CDATA['mla-scripts']]></value>
|
1102 |
<docblock line="70">
|
1103 |
-
<description><![CDATA[Slug for localizing and enqueueing
|
1104 |
<long-description><![CDATA[]]></long-description>
|
1105 |
<tag line="70" name="since" description="0.1"/>
|
1106 |
<tag line="70" name="var" description="" type="string">
|
@@ -1109,399 +1153,519 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
1109 |
</docblock>
|
1110 |
</constant>
|
1111 |
<constant namespace="global" line="86" package="Media Library Assistant">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1112 |
<name>ADMIN_PAGE_SLUG</name>
|
1113 |
<full_name>ADMIN_PAGE_SLUG</full_name>
|
1114 |
<value><![CDATA['mla-menu']]></value>
|
1115 |
-
<docblock line="
|
1116 |
<description><![CDATA[Slug for adding plugin submenu]]></description>
|
1117 |
<long-description><![CDATA[]]></long-description>
|
1118 |
-
<tag line="
|
1119 |
-
<tag line="
|
1120 |
<type by_reference="false">string</type>
|
1121 |
</tag>
|
1122 |
</docblock>
|
1123 |
</constant>
|
1124 |
-
<constant namespace="global" line="
|
1125 |
<name>MLA_ADMIN_NONCE</name>
|
1126 |
<full_name>MLA_ADMIN_NONCE</full_name>
|
1127 |
<value><![CDATA['mla_admin']]></value>
|
1128 |
-
<docblock line="
|
1129 |
<description><![CDATA[Action name; uniquely identifies the nonce]]></description>
|
1130 |
<long-description><![CDATA[]]></long-description>
|
1131 |
-
<tag line="
|
1132 |
-
<tag line="
|
1133 |
<type by_reference="false">string</type>
|
1134 |
</tag>
|
1135 |
</docblock>
|
1136 |
</constant>
|
1137 |
-
<constant namespace="global" line="
|
1138 |
<name>MLA_ADMIN_SINGLE_DELETE</name>
|
1139 |
<full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
|
1140 |
<value><![CDATA['single_item_delete']]></value>
|
1141 |
-
<docblock line="
|
1142 |
<description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
|
1143 |
<long-description><![CDATA[]]></long-description>
|
1144 |
-
<tag line="
|
1145 |
-
<tag line="
|
1146 |
<type by_reference="false">string</type>
|
1147 |
</tag>
|
1148 |
</docblock>
|
1149 |
</constant>
|
1150 |
-
<constant namespace="global" line="
|
1151 |
<name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
|
1152 |
<full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
|
1153 |
<value><![CDATA['single_item_edit_display']]></value>
|
1154 |
-
<docblock line="
|
1155 |
<description><![CDATA[mla_admin_action value for displaying a single item]]></description>
|
1156 |
<long-description><![CDATA[]]></long-description>
|
1157 |
-
<tag line="
|
1158 |
-
<tag line="
|
1159 |
<type by_reference="false">string</type>
|
1160 |
</tag>
|
1161 |
</docblock>
|
1162 |
</constant>
|
1163 |
-
<constant namespace="global" line="
|
1164 |
<name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
|
1165 |
<full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
|
1166 |
<value><![CDATA['single_item_edit_update']]></value>
|
1167 |
-
<docblock line="
|
1168 |
<description><![CDATA[mla_admin_action value for updating a single item]]></description>
|
1169 |
<long-description><![CDATA[]]></long-description>
|
1170 |
-
<tag line="
|
1171 |
-
<tag line="
|
1172 |
<type by_reference="false">string</type>
|
1173 |
</tag>
|
1174 |
</docblock>
|
1175 |
</constant>
|
1176 |
-
<constant namespace="global" line="
|
1177 |
<name>MLA_ADMIN_SINGLE_RESTORE</name>
|
1178 |
<full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
|
1179 |
<value><![CDATA['single_item_restore']]></value>
|
1180 |
-
<docblock line="
|
1181 |
<description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
|
1182 |
<long-description><![CDATA[]]></long-description>
|
1183 |
-
<tag line="
|
1184 |
-
<tag line="
|
1185 |
<type by_reference="false">string</type>
|
1186 |
</tag>
|
1187 |
</docblock>
|
1188 |
</constant>
|
1189 |
-
<constant namespace="global" line="
|
1190 |
<name>MLA_ADMIN_SINGLE_TRASH</name>
|
1191 |
<full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
|
1192 |
<value><![CDATA['single_item_trash']]></value>
|
1193 |
-
<docblock line="
|
1194 |
<description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
|
1195 |
<long-description><![CDATA[]]></long-description>
|
1196 |
-
<tag line="
|
1197 |
-
<tag line="
|
1198 |
<type by_reference="false">string</type>
|
1199 |
</tag>
|
1200 |
</docblock>
|
1201 |
</constant>
|
1202 |
-
<property final="false" static="true" visibility="private" line="
|
1203 |
<name>$page_hooks</name>
|
1204 |
<default><![CDATA[array()]]></default>
|
1205 |
-
<docblock line="
|
1206 |
<description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
|
1207 |
<long-description><![CDATA[]]></long-description>
|
1208 |
-
<tag line="
|
1209 |
-
<tag line="
|
1210 |
<type by_reference="false">array</type>
|
1211 |
</tag>
|
1212 |
</docblock>
|
1213 |
</property>
|
1214 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1215 |
<name>initialize</name>
|
1216 |
<full_name>initialize</full_name>
|
1217 |
-
<docblock line="
|
1218 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
1219 |
<long-description><![CDATA[]]></long-description>
|
1220 |
-
<tag line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1221 |
</docblock>
|
1222 |
</method>
|
1223 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1224 |
<name>mla_admin_enqueue_scripts_action</name>
|
1225 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
1226 |
-
<docblock line="
|
1227 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
1228 |
<long-description><![CDATA[]]></long-description>
|
1229 |
-
<tag line="
|
1230 |
-
<tag line="
|
1231 |
<type by_reference="false">string</type>
|
1232 |
</tag>
|
1233 |
-
<tag line="
|
1234 |
<type by_reference="false">\nothing</type>
|
1235 |
</tag>
|
1236 |
</docblock>
|
1237 |
-
<argument line="
|
1238 |
<name>$page_hook</name>
|
1239 |
<default><![CDATA[]]></default>
|
1240 |
<type/>
|
1241 |
</argument>
|
1242 |
</method>
|
1243 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1244 |
<name>mla_admin_menu_action</name>
|
1245 |
<full_name>mla_admin_menu_action</full_name>
|
1246 |
-
<docblock line="
|
1247 |
<description><![CDATA[Add the submenu pages]]></description>
|
1248 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
1249 |
add submenu page(s) for attachment taxonomies,
|
1250 |
add filter to clean up taxonomy submenu labels
|
1251 |
add settings page in the "Settings" section,
|
1252 |
add settings link in the Plugins section entry for MLA.</p>]]></long-description>
|
1253 |
-
<tag line="
|
1254 |
</docblock>
|
1255 |
</method>
|
1256 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1257 |
<name>mla_add_menu_options</name>
|
1258 |
<full_name>mla_add_menu_options</full_name>
|
1259 |
-
<docblock line="
|
1260 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
1261 |
<long-description><![CDATA[]]></long-description>
|
1262 |
-
<tag line="
|
1263 |
</docblock>
|
1264 |
</method>
|
1265 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1266 |
<name>mla_screen_options_show_screen_filter</name>
|
1267 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
1268 |
-
<docblock line="
|
1269 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
1270 |
<long-description><![CDATA[]]></long-description>
|
1271 |
-
<tag line="
|
1272 |
-
<tag line="
|
1273 |
<type by_reference="false">boolean</type>
|
1274 |
</tag>
|
1275 |
-
<tag line="
|
1276 |
<type by_reference="false">string</type>
|
1277 |
</tag>
|
1278 |
-
<tag line="
|
1279 |
<type by_reference="false">boolean</type>
|
1280 |
</tag>
|
1281 |
</docblock>
|
1282 |
-
<argument line="
|
1283 |
<name>$show_screen</name>
|
1284 |
<default><![CDATA[]]></default>
|
1285 |
<type/>
|
1286 |
</argument>
|
1287 |
-
<argument line="
|
1288 |
<name>$this_screen</name>
|
1289 |
<default><![CDATA[]]></default>
|
1290 |
<type/>
|
1291 |
</argument>
|
1292 |
</method>
|
1293 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1294 |
<name>mla_set_screen_option_filter</name>
|
1295 |
<full_name>mla_set_screen_option_filter</full_name>
|
1296 |
-
<docblock line="
|
1297 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
1298 |
<long-description><![CDATA[]]></long-description>
|
1299 |
-
<tag line="
|
1300 |
-
<tag line="
|
1301 |
<type by_reference="false">boolean</type>
|
1302 |
</tag>
|
1303 |
-
<tag line="
|
1304 |
<type by_reference="false">string</type>
|
1305 |
</tag>
|
1306 |
-
<tag line="
|
1307 |
<type by_reference="false">string</type>
|
1308 |
</tag>
|
1309 |
-
<tag line="
|
1310 |
<type by_reference="false">string</type>
|
1311 |
</tag>
|
1312 |
</docblock>
|
1313 |
-
<argument line="
|
1314 |
<name>$status</name>
|
1315 |
<default><![CDATA[]]></default>
|
1316 |
<type/>
|
1317 |
</argument>
|
1318 |
-
<argument line="
|
1319 |
<name>$option</name>
|
1320 |
<default><![CDATA[]]></default>
|
1321 |
<type/>
|
1322 |
</argument>
|
1323 |
-
<argument line="
|
1324 |
<name>$value</name>
|
1325 |
<default><![CDATA[]]></default>
|
1326 |
<type/>
|
1327 |
</argument>
|
1328 |
</method>
|
1329 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1330 |
<name>mla_edit_tags_redirect</name>
|
1331 |
<full_name>mla_edit_tags_redirect</full_name>
|
1332 |
-
<docblock line="
|
1333 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
1334 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
1335 |
This filter is the only way to redirect them to the correct WordPress page.</p>]]></long-description>
|
1336 |
-
<tag line="
|
1337 |
</docblock>
|
1338 |
</method>
|
1339 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1340 |
<name>mla_add_help_tab</name>
|
1341 |
<full_name>mla_add_help_tab</full_name>
|
1342 |
-
<docblock line="
|
1343 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
1344 |
<long-description><![CDATA[]]></long-description>
|
1345 |
-
<tag line="
|
1346 |
</docblock>
|
1347 |
</method>
|
1348 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1349 |
<name>mla_modify_parent_menu</name>
|
1350 |
<full_name>mla_modify_parent_menu</full_name>
|
1351 |
-
<docblock line="
|
1352 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
1353 |
<long-description><![CDATA[<p>The submenu entries for custom taxonomies under the "Media" menu are not set up
|
1354 |
correctly by WordPress, so this function cleans them up, redirecting the request
|
1355 |
to the right WordPress page for editing/adding taxonomy terms.</p>]]></long-description>
|
1356 |
-
<tag line="
|
1357 |
-
<tag line="
|
1358 |
<type by_reference="false">array</type>
|
1359 |
</tag>
|
1360 |
-
<tag line="
|
1361 |
<type by_reference="false">string</type>
|
1362 |
</tag>
|
1363 |
</docblock>
|
1364 |
-
<argument line="
|
1365 |
<name>$parent_file</name>
|
1366 |
<default><![CDATA[]]></default>
|
1367 |
<type/>
|
1368 |
</argument>
|
1369 |
</method>
|
1370 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1371 |
<name>mla_render_admin_page</name>
|
1372 |
<full_name>mla_render_admin_page</full_name>
|
1373 |
-
<docblock line="
|
1374 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
1375 |
<long-description><![CDATA[]]></long-description>
|
1376 |
-
<tag line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1377 |
</docblock>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1378 |
</method>
|
1379 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1380 |
<name>_current_bulk_action</name>
|
1381 |
<full_name>_current_bulk_action</full_name>
|
1382 |
-
<docblock line="
|
1383 |
-
<description><![CDATA[Get the current action selected from the bulk actions dropdown
|
1384 |
<long-description><![CDATA[]]></long-description>
|
1385 |
-
<tag line="
|
1386 |
-
<tag line="
|
1387 |
<type by_reference="false">string</type>
|
1388 |
-
<type by_reference="false">
|
1389 |
</tag>
|
1390 |
</docblock>
|
1391 |
</method>
|
1392 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1393 |
<name>_delete_single_item</name>
|
1394 |
<full_name>_delete_single_item</full_name>
|
1395 |
-
<docblock line="
|
1396 |
<description><![CDATA[Delete a single item permanently.]]></description>
|
1397 |
<long-description><![CDATA[]]></long-description>
|
1398 |
-
<tag line="
|
1399 |
-
<tag line="
|
1400 |
<type by_reference="false">array</type>
|
1401 |
</tag>
|
1402 |
-
<tag line="
|
1403 |
<type by_reference="false">array</type>
|
1404 |
</tag>
|
1405 |
</docblock>
|
1406 |
-
<argument line="
|
1407 |
<name>$post_id</name>
|
1408 |
<default><![CDATA[]]></default>
|
1409 |
<type/>
|
1410 |
</argument>
|
1411 |
</method>
|
1412 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1413 |
<name>_display_single_item</name>
|
1414 |
<full_name>_display_single_item</full_name>
|
1415 |
-
<docblock line="
|
1416 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
1417 |
change the meta data for a single attachment.]]></description>
|
1418 |
<long-description><![CDATA[]]></long-description>
|
1419 |
-
<tag line="
|
1420 |
-
<tag line="
|
1421 |
<type by_reference="false">int</type>
|
1422 |
</tag>
|
1423 |
-
<tag line="
|
1424 |
<type by_reference="false">array</type>
|
1425 |
</tag>
|
1426 |
</docblock>
|
1427 |
-
<argument line="
|
1428 |
<name>$post_id</name>
|
1429 |
<default><![CDATA[]]></default>
|
1430 |
<type/>
|
1431 |
</argument>
|
1432 |
</method>
|
1433 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1434 |
<name>_update_single_item</name>
|
1435 |
<full_name>_update_single_item</full_name>
|
1436 |
-
<docblock line="
|
1437 |
<description><![CDATA[Update a single item; change the meta data
|
1438 |
for a single attachment.]]></description>
|
1439 |
<long-description><![CDATA[]]></long-description>
|
1440 |
-
<tag line="
|
1441 |
-
<tag line="
|
1442 |
<type by_reference="false">int</type>
|
1443 |
</tag>
|
1444 |
-
<tag line="
|
1445 |
<type by_reference="false">array</type>
|
1446 |
</tag>
|
1447 |
-
<tag line="
|
1448 |
<type by_reference="false">array</type>
|
1449 |
</tag>
|
1450 |
-
<tag line="
|
1451 |
<type by_reference="false">array</type>
|
1452 |
</tag>
|
1453 |
</docblock>
|
1454 |
-
<argument line="
|
1455 |
<name>$post_id</name>
|
1456 |
<default><![CDATA[]]></default>
|
1457 |
<type/>
|
1458 |
</argument>
|
1459 |
-
<argument line="
|
1460 |
<name>$new_data</name>
|
1461 |
<default><![CDATA[]]></default>
|
1462 |
<type/>
|
1463 |
</argument>
|
1464 |
-
<argument line="
|
1465 |
<name>$tax_input</name>
|
1466 |
-
<default><![CDATA[
|
1467 |
<type/>
|
1468 |
</argument>
|
1469 |
</method>
|
1470 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1471 |
<name>_restore_single_item</name>
|
1472 |
<full_name>_restore_single_item</full_name>
|
1473 |
-
<docblock line="
|
1474 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
1475 |
<long-description><![CDATA[]]></long-description>
|
1476 |
-
<tag line="
|
1477 |
-
<tag line="
|
1478 |
<type by_reference="false">array</type>
|
1479 |
</tag>
|
1480 |
-
<tag line="
|
1481 |
<type by_reference="false">array</type>
|
1482 |
</tag>
|
1483 |
</docblock>
|
1484 |
-
<argument line="
|
1485 |
<name>$post_id</name>
|
1486 |
<default><![CDATA[]]></default>
|
1487 |
<type/>
|
1488 |
</argument>
|
1489 |
</method>
|
1490 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1491 |
<name>_trash_single_item</name>
|
1492 |
<full_name>_trash_single_item</full_name>
|
1493 |
-
<docblock line="
|
1494 |
<description><![CDATA[Move a single item to Trash]]></description>
|
1495 |
<long-description><![CDATA[]]></long-description>
|
1496 |
-
<tag line="
|
1497 |
-
<tag line="
|
1498 |
<type by_reference="false">array</type>
|
1499 |
</tag>
|
1500 |
-
<tag line="
|
1501 |
<type by_reference="false">array</type>
|
1502 |
</tag>
|
1503 |
</docblock>
|
1504 |
-
<argument line="
|
1505 |
<name>$post_id</name>
|
1506 |
<default><![CDATA[]]></default>
|
1507 |
<type/>
|
@@ -1509,7 +1673,160 @@ for a single attachment.]]></description>
|
|
1509 |
</method>
|
1510 |
</class>
|
1511 |
</file>
|
1512 |
-
<file path="includes\class-mla-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1513 |
<docblock line="2">
|
1514 |
<description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
|
1515 |
<long-description><![CDATA[]]></long-description>
|
@@ -1536,7 +1853,7 @@ and provides the settings page to edit them.]]></description>
|
|
1536 |
<long-description><![CDATA[]]></long-description>
|
1537 |
</docblock>
|
1538 |
</constant>
|
1539 |
-
<property final="false" static="true" visibility="private" line="37" namespace="global" package="
|
1540 |
<name>$mla_options</name>
|
1541 |
<default><![CDATA[array('taxonomies' => array('name' => 'Pre-defined Taxonomies', 'type' => 'header'), 'attachment_category' => array('name' => 'Attachment Categories', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('name' => 'Attachment Tags', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'))]]></default>
|
1542 |
<docblock line="22">
|
@@ -1674,49 +1991,49 @@ add settings link in the Plugins section entry for MLA.]]></description>
|
|
1674 |
<name>mla_render_settings_page</name>
|
1675 |
<full_name>mla_render_settings_page</full_name>
|
1676 |
<docblock line="184">
|
1677 |
-
<description><![CDATA[Render the "Media Library Assistant" subpage in the Settings section]]></description>
|
1678 |
<long-description><![CDATA[]]></long-description>
|
1679 |
<tag line="184" name="since" description="0.1"/>
|
1680 |
-
<tag line="184" name="return" description="markup for the settings subpage" type="\
|
1681 |
-
<type by_reference="false">\
|
1682 |
</tag>
|
1683 |
</docblock>
|
1684 |
</method>
|
1685 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1686 |
<name>_save_settings</name>
|
1687 |
<full_name>_save_settings</full_name>
|
1688 |
-
<docblock line="
|
1689 |
<description><![CDATA[Save settings to the options table]]></description>
|
1690 |
<long-description><![CDATA[]]></long-description>
|
1691 |
-
<tag line="
|
1692 |
-
<tag line="
|
1693 |
<type by_reference="false">array</type>
|
1694 |
</tag>
|
1695 |
-
<tag line="
|
1696 |
<type by_reference="false">array</type>
|
1697 |
</tag>
|
1698 |
</docblock>
|
1699 |
-
<argument line="
|
1700 |
<name>$template_array</name>
|
1701 |
<default><![CDATA[]]></default>
|
1702 |
<type/>
|
1703 |
</argument>
|
1704 |
</method>
|
1705 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1706 |
<name>_reset_settings</name>
|
1707 |
<full_name>_reset_settings</full_name>
|
1708 |
-
<docblock line="
|
1709 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
1710 |
<long-description><![CDATA[]]></long-description>
|
1711 |
-
<tag line="
|
1712 |
-
<tag line="
|
1713 |
<type by_reference="false">array</type>
|
1714 |
</tag>
|
1715 |
-
<tag line="
|
1716 |
<type by_reference="false">array</type>
|
1717 |
</tag>
|
1718 |
</docblock>
|
1719 |
-
<argument line="
|
1720 |
<name>$template_array</name>
|
1721 |
<default><![CDATA[]]></default>
|
1722 |
<type/>
|
@@ -1724,216 +2041,125 @@ add settings link in the Plugins section entry for MLA.]]></description>
|
|
1724 |
</method>
|
1725 |
</class>
|
1726 |
</file>
|
1727 |
-
<file path="includes\mla-
|
1728 |
-
<docblock line="2">
|
1729 |
-
<description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
|
1730 |
-
<long-description><![CDATA[]]></long-description>
|
1731 |
-
<tag line="2" name="package" description="Media Library Assistant"/>
|
1732 |
-
<tag line="2" name="since" description="0.1"/>
|
1733 |
-
</docblock>
|
1734 |
-
<function namespace="global" line="14" package="Media Library Assistant">
|
1735 |
-
<name>mla_build_taxonomies_action</name>
|
1736 |
-
<full_name>\mla_build_taxonomies_action</full_name>
|
1737 |
-
<docblock line="9">
|
1738 |
-
<description><![CDATA[WordPress Action; registers Attachment Categories and Attachment Tags custom taxonomies]]></description>
|
1739 |
-
<long-description><![CDATA[]]></long-description>
|
1740 |
-
<tag line="9" name="since" description="0.1"/>
|
1741 |
-
</docblock>
|
1742 |
-
</function>
|
1743 |
-
<function namespace="global" line="90" package="Media Library Assistant">
|
1744 |
-
<name>mla_attachment_category_get_columns_filter</name>
|
1745 |
-
<full_name>\mla_attachment_category_get_columns_filter</full_name>
|
1746 |
-
<docblock line="80">
|
1747 |
-
<description><![CDATA[WordPress Filter for Attachment Category "Attachments" column,
|
1748 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
|
1749 |
-
<long-description><![CDATA[]]></long-description>
|
1750 |
-
<tag line="80" name="since" description="0.1"/>
|
1751 |
-
<tag line="80" name="param" description="column definitions for the Attachment Category list table." type="array" variable="$columns">
|
1752 |
-
<type by_reference="false">array</type>
|
1753 |
-
</tag>
|
1754 |
-
<tag line="80" name="return" description="updated column definitions for the Attachment Category list table." type="array">
|
1755 |
-
<type by_reference="false">array</type>
|
1756 |
-
</tag>
|
1757 |
-
</docblock>
|
1758 |
-
<argument line="90">
|
1759 |
-
<name>$columns</name>
|
1760 |
-
<default><![CDATA[]]></default>
|
1761 |
-
<type/>
|
1762 |
-
</argument>
|
1763 |
-
</function>
|
1764 |
-
<function namespace="global" line="109" package="Media Library Assistant">
|
1765 |
-
<name>mla_attachment_category_column_filter</name>
|
1766 |
-
<full_name>\mla_attachment_category_column_filter</full_name>
|
1767 |
-
<docblock line="96">
|
1768 |
-
<description><![CDATA[WordPress Filter for Attachment Category "Attachments" column,
|
1769 |
-
which returns a count of the attachments assigned a given category]]></description>
|
1770 |
-
<long-description><![CDATA[]]></long-description>
|
1771 |
-
<tag line="96" name="since" description="0.1"/>
|
1772 |
-
<tag line="96" name="param" description="unknown, undocumented parameter." type="string" variable="$place_holder">
|
1773 |
-
<type by_reference="false">string</type>
|
1774 |
-
</tag>
|
1775 |
-
<tag line="96" name="param" description="name of the column." type="array" variable="$column_name">
|
1776 |
-
<type by_reference="false">array</type>
|
1777 |
-
</tag>
|
1778 |
-
<tag line="96" name="param" description="ID of the term for which the count is desired." type="array" variable="$term_id">
|
1779 |
-
<type by_reference="false">array</type>
|
1780 |
-
</tag>
|
1781 |
-
<tag line="96" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them." type="array">
|
1782 |
-
<type by_reference="false">array</type>
|
1783 |
-
</tag>
|
1784 |
-
</docblock>
|
1785 |
-
<argument line="109">
|
1786 |
-
<name>$place_holder</name>
|
1787 |
-
<default><![CDATA[]]></default>
|
1788 |
-
<type/>
|
1789 |
-
</argument>
|
1790 |
-
<argument line="109">
|
1791 |
-
<name>$column_name</name>
|
1792 |
-
<default><![CDATA[]]></default>
|
1793 |
-
<type/>
|
1794 |
-
</argument>
|
1795 |
-
<argument line="109">
|
1796 |
-
<name>$term_id</name>
|
1797 |
-
<default><![CDATA[]]></default>
|
1798 |
-
<type/>
|
1799 |
-
</argument>
|
1800 |
-
</function>
|
1801 |
-
<function namespace="global" line="137" package="Media Library Assistant">
|
1802 |
-
<name>mla_attachment_tag_get_columns_filter</name>
|
1803 |
-
<full_name>\mla_attachment_tag_get_columns_filter</full_name>
|
1804 |
-
<docblock line="127">
|
1805 |
-
<description><![CDATA[WordPress Filter for Attachment Tag "Attachments" column,
|
1806 |
-
which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
|
1807 |
-
<long-description><![CDATA[]]></long-description>
|
1808 |
-
<tag line="127" name="since" description="0.1"/>
|
1809 |
-
<tag line="127" name="param" description="column definitions for the Attachment Category list table." type="array" variable="$columns">
|
1810 |
-
<type by_reference="false">array</type>
|
1811 |
-
</tag>
|
1812 |
-
<tag line="127" name="return" description="updated column definitions for the Attachment Category list table." type="array">
|
1813 |
-
<type by_reference="false">array</type>
|
1814 |
-
</tag>
|
1815 |
-
</docblock>
|
1816 |
-
<argument line="137">
|
1817 |
-
<name>$columns</name>
|
1818 |
-
<default><![CDATA[]]></default>
|
1819 |
-
<type/>
|
1820 |
-
</argument>
|
1821 |
-
</function>
|
1822 |
-
<function namespace="global" line="156" package="Media Library Assistant">
|
1823 |
-
<name>mla_attachment_tag_column_filter</name>
|
1824 |
-
<full_name>\mla_attachment_tag_column_filter</full_name>
|
1825 |
-
<docblock line="143">
|
1826 |
-
<description><![CDATA[WordPress Filter for Attachment Tag "Attachments" column,
|
1827 |
-
which returns a count of the attachments assigned a given tag]]></description>
|
1828 |
-
<long-description><![CDATA[]]></long-description>
|
1829 |
-
<tag line="143" name="since" description="0.1"/>
|
1830 |
-
<tag line="143" name="param" description="unknown, undocumented parameter" type="string" variable="$place_holder">
|
1831 |
-
<type by_reference="false">string</type>
|
1832 |
-
</tag>
|
1833 |
-
<tag line="143" name="param" description="name of the column" type="array" variable="$column_name">
|
1834 |
-
<type by_reference="false">array</type>
|
1835 |
-
</tag>
|
1836 |
-
<tag line="143" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
|
1837 |
-
<type by_reference="false">array</type>
|
1838 |
-
</tag>
|
1839 |
-
<tag line="143" name="return" description="HTML markup for the column content; number of attachments with the tag and alink to retrieve a list of them." type="array">
|
1840 |
-
<type by_reference="false">array</type>
|
1841 |
-
</tag>
|
1842 |
-
</docblock>
|
1843 |
-
<argument line="156">
|
1844 |
-
<name>$place_holder</name>
|
1845 |
-
<default><![CDATA[]]></default>
|
1846 |
-
<type/>
|
1847 |
-
</argument>
|
1848 |
-
<argument line="156">
|
1849 |
-
<name>$column_name</name>
|
1850 |
-
<default><![CDATA[]]></default>
|
1851 |
-
<type/>
|
1852 |
-
</argument>
|
1853 |
-
<argument line="156">
|
1854 |
-
<name>$term_id</name>
|
1855 |
-
<default><![CDATA[]]></default>
|
1856 |
-
<type/>
|
1857 |
-
</argument>
|
1858 |
-
</function>
|
1859 |
-
</file>
|
1860 |
-
<file path="includes\mla-shortcodes.php" hash="327543b963217d11a4f7685784d5f036" package="Media Library Assistant">
|
1861 |
<docblock line="2">
|
1862 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
1863 |
<long-description><![CDATA[]]></long-description>
|
1864 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
1865 |
<tag line="2" name="since" description="0.1"/>
|
1866 |
</docblock>
|
1867 |
-
<
|
1868 |
-
<
|
1869 |
-
<
|
|
|
1870 |
<docblock line="9">
|
1871 |
-
<description><![CDATA[
|
1872 |
<long-description><![CDATA[]]></long-description>
|
1873 |
-
<tag line="9" name="
|
1874 |
-
<tag line="9" name="
|
1875 |
-
<type by_reference="false">string</type>
|
1876 |
-
</tag>
|
1877 |
</docblock>
|
1878 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1879 |
</file>
|
1880 |
-
<file path="
|
1881 |
<docblock line="2">
|
1882 |
-
<description><![CDATA[
|
1883 |
-
<long-description><![CDATA[
|
|
|
1884 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
1885 |
-
<tag line="2" name="
|
1886 |
</docblock>
|
1887 |
-
<include line="
|
1888 |
-
<name
|
1889 |
</include>
|
1890 |
-
<include line="
|
1891 |
-
<name
|
1892 |
</include>
|
1893 |
-
<include line="
|
1894 |
-
<name
|
1895 |
</include>
|
1896 |
-
<include line="
|
1897 |
-
<name
|
1898 |
</include>
|
1899 |
-
<include line="
|
1900 |
-
<name
|
1901 |
</include>
|
1902 |
-
<include line="
|
1903 |
-
<name
|
1904 |
</include>
|
1905 |
-
<include line="
|
1906 |
-
<name
|
1907 |
</include>
|
1908 |
-
<constant namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1909 |
<name>MLA_PLUGIN_PATH</name>
|
1910 |
<full_name>\MLA_PLUGIN_PATH</full_name>
|
1911 |
<value><![CDATA[plugin_dir_path(__FILE__)]]></value>
|
1912 |
-
<docblock line="
|
1913 |
<description><![CDATA[Provides path information to the plugin root in file system format.]]></description>
|
1914 |
<long-description><![CDATA[]]></long-description>
|
1915 |
</docblock>
|
1916 |
</constant>
|
1917 |
-
<constant namespace="global" line="
|
1918 |
<name>MLA_PLUGIN_URL</name>
|
1919 |
<full_name>\MLA_PLUGIN_URL</full_name>
|
1920 |
<value><![CDATA[plugin_dir_url(__FILE__)]]></value>
|
1921 |
-
<docblock line="
|
1922 |
<description><![CDATA[Provides path information to the plugin root in URL format.]]></description>
|
1923 |
<long-description><![CDATA[]]></long-description>
|
1924 |
</docblock>
|
1925 |
</constant>
|
1926 |
-
<
|
1927 |
-
<name>
|
1928 |
-
<full_name>\
|
1929 |
-
<
|
1930 |
-
|
1931 |
-
<description><![CDATA[Gives a unique prefix for plugin options; can be set in wp-config.php]]></description>
|
1932 |
<long-description><![CDATA[]]></long-description>
|
|
|
1933 |
</docblock>
|
1934 |
-
</
|
1935 |
</file>
|
1936 |
-
<file path="tests\class-mla-tests.php" hash="
|
1937 |
<docblock line="2">
|
1938 |
<description><![CDATA[Provides basic run-time tests to ensure the plugin can run in the current WordPress envrionment]]></description>
|
1939 |
<long-description><![CDATA[]]></long-description>
|
@@ -2009,7 +2235,6 @@ to ensure the plugin can run in the current WordPress envrionment.]]></descripti
|
|
2009 |
</method>
|
2010 |
</class>
|
2011 |
</file>
|
2012 |
-
<package name="Default" full_name="Default"/>
|
2013 |
<package name="Media Library Assistant" full_name="Media Library Assistant"/>
|
2014 |
<namespace name="global" full_name="global"/>
|
2015 |
<marker count="0">todo</marker>
|
1 |
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<project version="2.0.0a8" title="Media Library Assistant">
|
3 |
+
<file path="includes\class-mla-data.php" hash="c090a31e8e99a4331fc177cc8607e639" package="Media Library Assistant">
|
4 |
<docblock line="2">
|
5 |
<description><![CDATA[Database and template file access for MLA needs.]]></description>
|
6 |
<long-description><![CDATA[]]></long-description>
|
27 |
<tag line="19" name="since" description="0.1"/>
|
28 |
</docblock>
|
29 |
</method>
|
30 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="45" package="Media Library Assistant">
|
31 |
<name>mla_load_template</name>
|
32 |
<full_name>mla_load_template</full_name>
|
33 |
<docblock line="28">
|
39 |
<tag line="28" name="param" description="Complete path and name of the template file" type="string" variable="$filepath">
|
40 |
<type by_reference="false">string</type>
|
41 |
</tag>
|
42 |
+
<tag line="28" name="return" description="string for files that do not contain template divider comments, array for files containing template divider comments, false if file does not exist, NULL if file could not be loaded." type="string|array|false|NULL">
|
43 |
<type by_reference="false">string</type>
|
44 |
+
<type by_reference="false">array</type>
|
45 |
+
<type by_reference="false">false</type>
|
46 |
+
<type by_reference="false">NULL</type>
|
47 |
</tag>
|
48 |
</docblock>
|
49 |
+
<argument line="45">
|
50 |
<name>$filepath</name>
|
51 |
<default><![CDATA[]]></default>
|
52 |
<type/>
|
53 |
</argument>
|
54 |
</method>
|
55 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="121" package="Media Library Assistant">
|
56 |
<name>mla_parse_template</name>
|
57 |
<full_name>mla_parse_template</full_name>
|
58 |
+
<docblock line="109">
|
59 |
+
<description><![CDATA[Expand a template, replacing place holders with their values]]></description>
|
60 |
<long-description><![CDATA[<p>A simple parsing function for basic templating.</p>]]></long-description>
|
61 |
+
<tag line="109" name="since" description="0.1"/>
|
62 |
+
<tag line="109" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
|
63 |
<type by_reference="false">string</type>
|
64 |
</tag>
|
65 |
+
<tag line="109" name="param" description="An associative array containing keys and values e.g. array('key' => 'value');" type="array" variable="$hash">
|
66 |
<type by_reference="false">array</type>
|
67 |
</tag>
|
68 |
+
<tag line="109" name="return" description="Placeholders corresponding to the keys of the hash will be replaced with their values." type="string">
|
69 |
<type by_reference="false">string</type>
|
70 |
</tag>
|
71 |
</docblock>
|
72 |
+
<argument line="121">
|
73 |
<name>$tpl</name>
|
74 |
<default><![CDATA[]]></default>
|
75 |
<type/>
|
76 |
</argument>
|
77 |
+
<argument line="121">
|
78 |
<name>$hash</name>
|
79 |
<default><![CDATA[]]></default>
|
80 |
<type/>
|
81 |
</argument>
|
82 |
</method>
|
83 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="143" package="Media Library Assistant">
|
84 |
<name>mla_prepare_list_table_query</name>
|
85 |
<full_name>mla_prepare_list_table_query</full_name>
|
86 |
+
<docblock line="130">
|
87 |
+
<description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
|
88 |
<long-description><![CDATA[<p>Prepare the arguments for WP_Query.
|
89 |
Modeled after wp_edit_attachments_query in wp-admin/post.php
|
90 |
NOTE: The caller must remove the 'posts_where' filter, if required.</p>]]></long-description>
|
91 |
+
<tag line="130" name="since" description="0.1"/>
|
92 |
+
<tag line="130" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
93 |
<type by_reference="false">array</type>
|
94 |
</tag>
|
95 |
+
<tag line="130" name="return" description="revised arguments suitable for WP_Query" type="array">
|
96 |
<type by_reference="false">array</type>
|
97 |
</tag>
|
98 |
</docblock>
|
99 |
+
<argument line="143">
|
100 |
<name>$request</name>
|
101 |
<default><![CDATA[]]></default>
|
102 |
<type/>
|
103 |
</argument>
|
104 |
</method>
|
105 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="227" package="Media Library Assistant">
|
106 |
<name>mla_query_list_table_items</name>
|
107 |
<full_name>mla_query_list_table_items</full_name>
|
108 |
+
<docblock line="211">
|
109 |
+
<description><![CDATA[Retrieve attachment objects for list table display]]></description>
|
110 |
+
<long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
|
111 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
112 |
+
<tag line="211" name="since" description="0.1"/>
|
113 |
+
<tag line="211" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
114 |
<type by_reference="false">array</type>
|
115 |
</tag>
|
116 |
+
<tag line="211" name="param" description="database column to sort by" type="string" variable="$orderby">
|
117 |
<type by_reference="false">string</type>
|
118 |
</tag>
|
119 |
+
<tag line="211" name="param" description="ASC or DESC" type="string" variable="$order">
|
120 |
<type by_reference="false">string</type>
|
121 |
</tag>
|
122 |
+
<tag line="211" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
|
123 |
<type by_reference="false">int</type>
|
124 |
</tag>
|
125 |
+
<tag line="211" name="param" description="number of rows on each page" type="int" variable="$count">
|
126 |
<type by_reference="false">int</type>
|
127 |
</tag>
|
128 |
+
<tag line="211" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
|
129 |
<type by_reference="false">array</type>
|
130 |
</tag>
|
131 |
</docblock>
|
132 |
+
<argument line="227">
|
133 |
<name>$request</name>
|
134 |
<default><![CDATA[]]></default>
|
135 |
<type/>
|
136 |
</argument>
|
137 |
+
<argument line="227">
|
138 |
<name>$orderby</name>
|
139 |
<default><![CDATA[]]></default>
|
140 |
<type/>
|
141 |
</argument>
|
142 |
+
<argument line="227">
|
143 |
<name>$order</name>
|
144 |
<default><![CDATA[]]></default>
|
145 |
<type/>
|
146 |
</argument>
|
147 |
+
<argument line="227">
|
148 |
<name>$offset</name>
|
149 |
<default><![CDATA[]]></default>
|
150 |
<type/>
|
151 |
</argument>
|
152 |
+
<argument line="227">
|
153 |
<name>$count</name>
|
154 |
<default><![CDATA[]]></default>
|
155 |
<type/>
|
156 |
</argument>
|
157 |
</method>
|
158 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="297" package="Media Library Assistant">
|
159 |
<name>mla_query_list_table_items_helper</name>
|
160 |
<full_name>mla_query_list_table_items_helper</full_name>
|
161 |
+
<docblock line="285">
|
162 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
163 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php
|
164 |
Defined as public so callers can remove it after the query</p>]]></long-description>
|
165 |
+
<tag line="285" name="since" description="0.1"/>
|
166 |
+
<tag line="285" name="param" description="query clause before modification" type="string" variable="$where">
|
167 |
<type by_reference="false">string</type>
|
168 |
</tag>
|
169 |
+
<tag line="285" name="return" description="query clause after "detached" item modification" type="string">
|
170 |
<type by_reference="false">string</type>
|
171 |
</tag>
|
172 |
</docblock>
|
173 |
+
<argument line="297">
|
174 |
<name>$where</name>
|
175 |
<default><![CDATA[]]></default>
|
176 |
<type/>
|
177 |
</argument>
|
178 |
</method>
|
179 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="314" package="Media Library Assistant">
|
180 |
<name>mla_get_attachment_by_id</name>
|
181 |
<full_name>mla_get_attachment_by_id</full_name>
|
182 |
+
<docblock line="303">
|
183 |
+
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
184 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
185 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
186 |
+
<tag line="303" name="since" description="0.1"/>
|
187 |
+
<tag line="303" name="param" description="The ID of the attachment post." type="int" variable="$post_id">
|
188 |
<type by_reference="false">int</type>
|
189 |
</tag>
|
190 |
+
<tag line="303" name="return" description="NULL on failure else associative array." type="NULL|array">
|
191 |
+
<type by_reference="false">NULL</type>
|
192 |
+
<type by_reference="false">array</type>
|
193 |
</tag>
|
194 |
</docblock>
|
195 |
+
<argument line="314">
|
196 |
<name>$post_id</name>
|
197 |
<default><![CDATA[]]></default>
|
198 |
<type/>
|
199 |
</argument>
|
200 |
</method>
|
201 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="363" package="Media Library Assistant">
|
202 |
<name>mla_fetch_attachment_references</name>
|
203 |
<full_name>mla_fetch_attachment_references</full_name>
|
204 |
+
<docblock line="350">
|
205 |
+
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
206 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
207 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
208 |
+
<tag line="350" name="since" description="0.1"/>
|
209 |
+
<tag line="350" name="param" description="post ID of attachment" type="int" variable="$ID">
|
210 |
<type by_reference="false">int</type>
|
211 |
</tag>
|
212 |
+
<tag line="350" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
|
213 |
<type by_reference="false">int</type>
|
214 |
</tag>
|
215 |
+
<tag line="350" name="return" description="Reference information; see $references array comments" type="array">
|
216 |
<type by_reference="false">array</type>
|
217 |
</tag>
|
218 |
</docblock>
|
219 |
+
<argument line="363">
|
220 |
<name>$ID</name>
|
221 |
<default><![CDATA[]]></default>
|
222 |
<type/>
|
223 |
</argument>
|
224 |
+
<argument line="363">
|
225 |
<name>$parent</name>
|
226 |
<default><![CDATA[]]></default>
|
227 |
<type/>
|
228 |
</argument>
|
229 |
</method>
|
230 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="488" package="Media Library Assistant">
|
231 |
<name>_fetch_attachment_parent_data</name>
|
232 |
<full_name>_fetch_attachment_parent_data</full_name>
|
233 |
+
<docblock line="479">
|
234 |
+
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
235 |
<long-description><![CDATA[]]></long-description>
|
236 |
+
<tag line="479" name="since" description="0.1"/>
|
237 |
+
<tag line="479" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
|
238 |
<type by_reference="false">int</type>
|
239 |
</tag>
|
240 |
+
<tag line="479" name="return" description="Parent information; post_date, post_title and post_type" type="array">
|
241 |
<type by_reference="false">array</type>
|
242 |
</tag>
|
243 |
</docblock>
|
244 |
+
<argument line="488">
|
245 |
<name>$parent_id</name>
|
246 |
<default><![CDATA[]]></default>
|
247 |
<type/>
|
248 |
</argument>
|
249 |
</method>
|
250 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="516" package="Media Library Assistant">
|
251 |
<name>_fetch_attachment_metadata</name>
|
252 |
<full_name>_fetch_attachment_metadata</full_name>
|
253 |
+
<docblock line="503">
|
254 |
+
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
255 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
256 |
are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
|
257 |
a string containing the first array element.</p>]]></long-description>
|
258 |
+
<tag line="503" name="since" description="0.1"/>
|
259 |
+
<tag line="503" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
260 |
<type by_reference="false">int</type>
|
261 |
</tag>
|
262 |
+
<tag line="503" name="return" description="Meta data variables" type="array">
|
263 |
<type by_reference="false">array</type>
|
264 |
</tag>
|
265 |
</docblock>
|
266 |
+
<argument line="516">
|
267 |
<name>$post_id</name>
|
268 |
<default><![CDATA[]]></default>
|
269 |
<type/>
|
271 |
</method>
|
272 |
</class>
|
273 |
</file>
|
274 |
+
<file path="includes\class-mla-list-table.php" hash="627b491236df757ce50f2317a0d6ea3b" package="Media Library Assistant">
|
275 |
<docblock line="2">
|
276 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
277 |
<long-description><![CDATA[]]></long-description>
|
278 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
279 |
<tag line="2" name="since" description="0.1"/>
|
280 |
</docblock>
|
281 |
+
<include line="13" type="Require Once" package="Media Library Assistant">
|
282 |
<name/>
|
283 |
</include>
|
284 |
+
<class final="false" abstract="false" namespace="global" line="24" package="Media Library Assistant">
|
285 |
<extends>\WP_List_Table</extends>
|
286 |
<name>MLA_List_Table</name>
|
287 |
<full_name>\MLA_List_Table</full_name>
|
288 |
<docblock line="16">
|
289 |
+
<description><![CDATA[Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu]]></description>
|
290 |
+
<long-description><![CDATA[<p>Extends the core WP_List_Table class.</p>]]></long-description>
|
291 |
<tag line="16" name="package" description="Media Library Assistant"/>
|
292 |
<tag line="16" name="since" description="0.1"/>
|
293 |
</docblock>
|
294 |
+
<property final="false" static="false" visibility="private" line="38" namespace="global" package="Media Library Assistant">
|
295 |
<name>$rollover_id</name>
|
296 |
<default><![CDATA[0]]></default>
|
297 |
+
<docblock line="29">
|
298 |
<description><![CDATA[Records assignment of row-level actions to a table row]]></description>
|
299 |
<long-description><![CDATA[<p>Set to the current Post-ID when row-level actions are output for the row.</p>]]></long-description>
|
300 |
+
<tag line="29" name="since" description="0.1"/>
|
301 |
+
<tag line="29" name="var" description="" type="int">
|
302 |
<type by_reference="false">int</type>
|
303 |
</tag>
|
304 |
</docblock>
|
305 |
</property>
|
306 |
+
<property final="false" static="false" visibility="private" line="49" namespace="global" package="Media Library Assistant">
|
307 |
<name>$currently_hidden</name>
|
308 |
<default><![CDATA[array()]]></default>
|
309 |
+
<docblock line="40">
|
310 |
<description><![CDATA[Currently hidden columns]]></description>
|
311 |
<long-description><![CDATA[<p>Records hidden columns so row-level actions are not assigned to them.</p>]]></long-description>
|
312 |
+
<tag line="40" name="since" description="0.1"/>
|
313 |
+
<tag line="40" name="var" description="" type="array">
|
314 |
<type by_reference="false">array</type>
|
315 |
</tag>
|
316 |
</docblock>
|
317 |
</property>
|
318 |
+
<property final="false" static="true" visibility="private" line="70" namespace="global" package="Media Library Assistant">
|
319 |
<name>$default_columns</name>
|
320 |
<default><![CDATA[array('cb' => '<input type="checkbox" />', 'icon' => '', 'ID_parent' => 'ID/Parent', 'title_name' => 'Title/Name', 'post_title' => 'Title', 'post_name' => 'Name', 'parent' => 'Parent ID', 'featured' => 'Featured in', 'inserted' => 'Inserted in', 'alt_text' => 'ALT Text', 'caption' => 'Caption', 'description' => 'Description', 'base_file' => 'Base File', 'date' => 'Date', 'author' => 'Author', 'attached_to' => 'Attached to', 'categories' => 'Att. Categories', 'tags' => 'Att. Tags')]]></default>
|
321 |
+
<docblock line="55">
|
322 |
<description><![CDATA[Table column definitions]]></description>
|
323 |
<long-description><![CDATA[<p>This array defines table columns and titles where the key is the column slug (and class)
|
324 |
and the value is the column's title text. If you need a checkbox for bulk actions,
|
327 |
<p>The 'cb' column is treated differently than the rest. If including a checkbox
|
328 |
column in your table you must create a column_cb() method. If you don't need
|
329 |
bulk actions or checkboxes, simply leave the 'cb' entry out of your array.</p>]]></long-description>
|
330 |
+
<tag line="55" name="since" description="0.1"/>
|
331 |
+
<tag line="55" name="var" description="" type="array">
|
332 |
<type by_reference="false">array</type>
|
333 |
</tag>
|
334 |
</docblock>
|
335 |
</property>
|
336 |
+
<property final="false" static="true" visibility="private" line="104" namespace="global" package="Media Library Assistant">
|
337 |
<name>$default_hidden_columns</name>
|
338 |
<default><![CDATA[array(0 => 'post_title', 1 => 'post_name', 2 => 'parent', 3 => 'alt_text', 4 => 'caption', 5 => 'description', 6 => 'base_file', 7 => 'date', 8 => 'author', 9 => 'attached_to', 10 => 'categories', 11 => 'tags')]]></default>
|
339 |
+
<docblock line="91">
|
340 |
<description><![CDATA[Default values for hdden columns]]></description>
|
341 |
<long-description><![CDATA[<p>This array is used when the user-level option is not set, i.e.,
|
342 |
the user has not altered the selection of hidden columns.</p>
|
343 |
|
344 |
<p>The value on the right-hand side must match the column slug, e.g.,
|
345 |
array(0 => 'ID_parent, 1 => 'title_name').</p>]]></long-description>
|
346 |
+
<tag line="91" name="since" description="0.1"/>
|
347 |
+
<tag line="91" name="var" description="" type="array">
|
348 |
<type by_reference="false">array</type>
|
349 |
</tag>
|
350 |
</docblock>
|
351 |
</property>
|
352 |
+
<property final="false" static="true" visibility="private" line="138" namespace="global" package="Media Library Assistant">
|
353 |
<name>$default_sortable_columns</name>
|
354 |
<default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('name', false), 'parent' => array('parent', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'date' => array('post_date', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
|
355 |
+
<docblock line="123">
|
356 |
<description><![CDATA[Sortable column definitions]]></description>
|
357 |
<long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
|
358 |
is the column slug that needs to be sortable, and the value is database column
|
361 |
|
362 |
<p>The array value also contains a boolean which is 'true' if the data is currently
|
363 |
sorted by that column. This is computed each time the table is displayed.</p>]]></long-description>
|
364 |
+
<tag line="123" name="since" description="0.1"/>
|
365 |
+
<tag line="123" name="var" description="" type="array">
|
366 |
<type by_reference="false">array</type>
|
367 |
</tag>
|
368 |
</docblock>
|
369 |
</property>
|
370 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="164" package="Media Library Assistant">
|
371 |
<name>_default_hidden_columns</name>
|
372 |
<full_name>_default_hidden_columns</full_name>
|
373 |
+
<docblock line="157">
|
374 |
<description><![CDATA[Access the default list of hidden columns]]></description>
|
375 |
<long-description><![CDATA[]]></long-description>
|
376 |
+
<tag line="157" name="since" description="0.1"/>
|
377 |
+
<tag line="157" name="return" description="default list of hidden columns" type="array">
|
378 |
<type by_reference="false">array</type>
|
379 |
</tag>
|
380 |
</docblock>
|
381 |
</method>
|
382 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="184" package="Media Library Assistant">
|
383 |
<name>mla_manage_hidden_columns</name>
|
384 |
<full_name>mla_manage_hidden_columns</full_name>
|
385 |
+
<docblock line="169">
|
386 |
<description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
|
387 |
<long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
|
388 |
the get_user_option result. Set when the file is loaded because the object
|
389 |
is not created in time for the call from screen.php.</p>]]></long-description>
|
390 |
+
<tag line="169" name="since" description="0.1"/>
|
391 |
+
<tag line="169" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
|
392 |
<type by_reference="false">string</type>
|
393 |
</tag>
|
394 |
+
<tag line="169" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
|
395 |
<type by_reference="false">string</type>
|
396 |
</tag>
|
397 |
+
<tag line="169" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
|
398 |
<type by_reference="false">object</type>
|
399 |
</tag>
|
400 |
+
<tag line="169" name="return" description="updated list of hidden columns" type="array">
|
401 |
<type by_reference="false">array</type>
|
402 |
</tag>
|
403 |
</docblock>
|
404 |
+
<argument line="184">
|
405 |
<name>$result</name>
|
406 |
<default><![CDATA[]]></default>
|
407 |
<type/>
|
408 |
</argument>
|
409 |
+
<argument line="184">
|
410 |
<name>$option</name>
|
411 |
<default><![CDATA[]]></default>
|
412 |
<type/>
|
413 |
</argument>
|
414 |
+
<argument line="184">
|
415 |
<name>$user_data</name>
|
416 |
<default><![CDATA[]]></default>
|
417 |
<type/>
|
418 |
</argument>
|
419 |
</method>
|
420 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="202" package="Media Library Assistant">
|
421 |
<name>mla_manage_columns</name>
|
422 |
<full_name>mla_manage_columns</full_name>
|
423 |
+
<docblock line="191">
|
424 |
<description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
|
425 |
<long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
|
426 |
file is loaded because the list_table object isn't created in time
|
427 |
to affect the "screen options" setup.</p>]]></long-description>
|
428 |
+
<tag line="191" name="since" description="0.1"/>
|
429 |
+
<tag line="191" name="return" description="list of table columns" type="array">
|
430 |
<type by_reference="false">array</type>
|
431 |
</tag>
|
432 |
</docblock>
|
433 |
</method>
|
434 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="213" package="Media Library Assistant">
|
435 |
<name>__construct</name>
|
436 |
<full_name>__construct</full_name>
|
437 |
+
<docblock line="207">
|
438 |
<description><![CDATA[Initializes some properties from $_REQUEST vairables, then
|
439 |
calls the parent constructor to set some default configs.]]></description>
|
440 |
<long-description><![CDATA[]]></long-description>
|
441 |
+
<tag line="207" name="since" description="0.1"/>
|
442 |
</docblock>
|
443 |
</method>
|
444 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="242" package="Media Library Assistant">
|
445 |
<name>column_default</name>
|
446 |
<full_name>column_default</full_name>
|
447 |
+
<docblock line="231">
|
448 |
<description><![CDATA[Called when the parent class can't find a method specifically built
|
449 |
for a given column.]]></description>
|
450 |
<long-description><![CDATA[<p>All our columns should have a specific method,
|
451 |
so this function returns a troubleshooting message.</p>]]></long-description>
|
452 |
+
<tag line="231" name="since" description="0.1"/>
|
453 |
+
<tag line="231" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
|
454 |
<type by_reference="false">array</type>
|
455 |
</tag>
|
456 |
+
<tag line="231" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
|
457 |
<type by_reference="false">array</type>
|
458 |
</tag>
|
459 |
+
<tag line="231" name="return" description="Text or HTML to be placed inside the column" type="string">
|
460 |
<type by_reference="false">string</type>
|
461 |
</tag>
|
462 |
</docblock>
|
463 |
+
<argument line="242">
|
464 |
<name>$item</name>
|
465 |
<default><![CDATA[]]></default>
|
466 |
<type/>
|
467 |
</argument>
|
468 |
+
<argument line="242">
|
469 |
<name>$column_name</name>
|
470 |
<default><![CDATA[]]></default>
|
471 |
<type/>
|
472 |
</argument>
|
473 |
</method>
|
474 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="256" package="Media Library Assistant">
|
475 |
<name>column_cb</name>
|
476 |
<full_name>column_cb</full_name>
|
477 |
+
<docblock line="247">
|
478 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
479 |
<long-description><![CDATA[<p>The 'cb' column
|
480 |
is given special treatment when columns are processed.</p>]]></long-description>
|
481 |
+
<tag line="247" name="since" description="0.1"/>
|
482 |
+
<tag line="247" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
483 |
<type by_reference="false">array</type>
|
484 |
</tag>
|
485 |
+
<tag line="247" name="return" description="HTML markup to be placed inside the column" type="string">
|
486 |
<type by_reference="false">string</type>
|
487 |
</tag>
|
488 |
</docblock>
|
489 |
+
<argument line="256">
|
490 |
<name>$item</name>
|
491 |
<default><![CDATA[]]></default>
|
492 |
<type/>
|
493 |
</argument>
|
494 |
</method>
|
495 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="272" package="Media Library Assistant">
|
496 |
<name>column_icon</name>
|
497 |
<full_name>column_icon</full_name>
|
498 |
+
<docblock line="264">
|
499 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
500 |
<long-description><![CDATA[]]></long-description>
|
501 |
+
<tag line="264" name="since" description="0.1"/>
|
502 |
+
<tag line="264" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
503 |
<type by_reference="false">array</type>
|
504 |
</tag>
|
505 |
+
<tag line="264" name="return" description="HTML markup to be placed inside the column" type="string">
|
506 |
<type by_reference="false">string</type>
|
507 |
</tag>
|
508 |
</docblock>
|
509 |
+
<argument line="272">
|
510 |
<name>$item</name>
|
511 |
<default><![CDATA[]]></default>
|
512 |
<type/>
|
513 |
</argument>
|
514 |
</method>
|
515 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="288" package="Media Library Assistant">
|
516 |
<name>_build_rollover_actions</name>
|
517 |
<full_name>_build_rollover_actions</full_name>
|
518 |
+
<docblock line="277">
|
519 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
520 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
521 |
<long-description><![CDATA[]]></long-description>
|
522 |
+
<tag line="277" name="since" description="0.1"/>
|
523 |
+
<tag line="277" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
524 |
+
<type by_reference="false">object</type>
|
525 |
</tag>
|
526 |
+
<tag line="277" name="param" description="Current column name" type="string" variable="$column">
|
527 |
<type by_reference="false">string</type>
|
528 |
</tag>
|
529 |
+
<tag line="277" name="return" description="Names and URLs of row-level actions" type="array">
|
530 |
<type by_reference="false">array</type>
|
531 |
</tag>
|
532 |
</docblock>
|
533 |
+
<argument line="288">
|
534 |
<name>$item</name>
|
535 |
<default><![CDATA[]]></default>
|
536 |
<type/>
|
537 |
</argument>
|
538 |
+
<argument line="288">
|
539 |
<name>$column</name>
|
540 |
<default><![CDATA[]]></default>
|
541 |
<type/>
|
542 |
</argument>
|
543 |
</method>
|
544 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="352" package="Media Library Assistant">
|
545 |
+
<name>_build_inline_data</name>
|
546 |
+
<full_name>_build_inline_data</full_name>
|
547 |
+
<docblock line="343">
|
548 |
+
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
549 |
+
<long-description><![CDATA[]]></long-description>
|
550 |
+
<tag line="343" name="since" description="0.20"/>
|
551 |
+
<tag line="343" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
552 |
+
<type by_reference="false">object</type>
|
553 |
+
</tag>
|
554 |
+
<tag line="343" name="return" description="HTML <div> with row data" type="string">
|
555 |
+
<type by_reference="false">string</type>
|
556 |
+
</tag>
|
557 |
+
</docblock>
|
558 |
+
<argument line="352">
|
559 |
+
<name>$item</name>
|
560 |
+
<default><![CDATA[]]></default>
|
561 |
+
<type/>
|
562 |
+
</argument>
|
563 |
+
</method>
|
564 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="391" package="Media Library Assistant">
|
565 |
<name>column_ID_parent</name>
|
566 |
<full_name>column_ID_parent</full_name>
|
567 |
+
<docblock line="383">
|
568 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
569 |
<long-description><![CDATA[]]></long-description>
|
570 |
+
<tag line="383" name="since" description="0.1"/>
|
571 |
+
<tag line="383" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
572 |
<type by_reference="false">array</type>
|
573 |
</tag>
|
574 |
+
<tag line="383" name="return" description="HTML markup to be placed inside the column" type="string">
|
575 |
<type by_reference="false">string</type>
|
576 |
</tag>
|
577 |
</docblock>
|
578 |
+
<argument line="391">
|
579 |
<name>$item</name>
|
580 |
<default><![CDATA[]]></default>
|
581 |
<type/>
|
582 |
</argument>
|
583 |
</method>
|
584 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="409" package="Media Library Assistant">
|
585 |
<name>column_title_name</name>
|
586 |
<full_name>column_title_name</full_name>
|
587 |
+
<docblock line="401">
|
588 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
589 |
<long-description><![CDATA[]]></long-description>
|
590 |
+
<tag line="401" name="since" description="0.1"/>
|
591 |
+
<tag line="401" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
592 |
<type by_reference="false">array</type>
|
593 |
</tag>
|
594 |
+
<tag line="401" name="return" description="HTML markup to be placed inside the column" type="string">
|
595 |
<type by_reference="false">string</type>
|
596 |
</tag>
|
597 |
</docblock>
|
598 |
+
<argument line="409">
|
599 |
<name>$item</name>
|
600 |
<default><![CDATA[]]></default>
|
601 |
<type/>
|
602 |
</argument>
|
603 |
</method>
|
604 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="438" package="Media Library Assistant">
|
605 |
<name>column_post_title</name>
|
606 |
<full_name>column_post_title</full_name>
|
607 |
+
<docblock line="430">
|
608 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
609 |
<long-description><![CDATA[]]></long-description>
|
610 |
+
<tag line="430" name="since" description="0.1"/>
|
611 |
+
<tag line="430" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
612 |
<type by_reference="false">array</type>
|
613 |
</tag>
|
614 |
+
<tag line="430" name="return" description="HTML markup to be placed inside the column" type="string">
|
615 |
<type by_reference="false">string</type>
|
616 |
</tag>
|
617 |
</docblock>
|
618 |
+
<argument line="438">
|
619 |
<name>$item</name>
|
620 |
<default><![CDATA[]]></default>
|
621 |
<type/>
|
622 |
</argument>
|
623 |
</method>
|
624 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="456" package="Media Library Assistant">
|
625 |
<name>column_post_name</name>
|
626 |
<full_name>column_post_name</full_name>
|
627 |
+
<docblock line="448">
|
628 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
629 |
<long-description><![CDATA[]]></long-description>
|
630 |
+
<tag line="448" name="since" description="0.1"/>
|
631 |
+
<tag line="448" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
632 |
<type by_reference="false">array</type>
|
633 |
</tag>
|
634 |
+
<tag line="448" name="return" description="HTML markup to be placed inside the column" type="string">
|
635 |
<type by_reference="false">string</type>
|
636 |
</tag>
|
637 |
</docblock>
|
638 |
+
<argument line="456">
|
639 |
<name>$item</name>
|
640 |
<default><![CDATA[]]></default>
|
641 |
<type/>
|
642 |
</argument>
|
643 |
</method>
|
644 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="474" package="Media Library Assistant">
|
645 |
<name>column_parent</name>
|
646 |
<full_name>column_parent</full_name>
|
647 |
+
<docblock line="466">
|
648 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
649 |
<long-description><![CDATA[]]></long-description>
|
650 |
+
<tag line="466" name="since" description="0.1"/>
|
651 |
+
<tag line="466" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
652 |
<type by_reference="false">array</type>
|
653 |
</tag>
|
654 |
+
<tag line="466" name="return" description="HTML markup to be placed inside the column" type="string">
|
655 |
<type by_reference="false">string</type>
|
656 |
</tag>
|
657 |
</docblock>
|
658 |
+
<argument line="474">
|
659 |
<name>$item</name>
|
660 |
<default><![CDATA[]]></default>
|
661 |
<type/>
|
662 |
</argument>
|
663 |
</method>
|
664 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="486" package="Media Library Assistant">
|
665 |
<name>column_featured</name>
|
666 |
<full_name>column_featured</full_name>
|
667 |
+
<docblock line="478">
|
668 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
669 |
<long-description><![CDATA[]]></long-description>
|
670 |
+
<tag line="478" name="since" description="0.1"/>
|
671 |
+
<tag line="478" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
672 |
<type by_reference="false">array</type>
|
673 |
</tag>
|
674 |
+
<tag line="478" name="return" description="HTML markup to be placed inside the column" type="string">
|
675 |
<type by_reference="false">string</type>
|
676 |
</tag>
|
677 |
</docblock>
|
678 |
+
<argument line="486">
|
679 |
<name>$item</name>
|
680 |
<default><![CDATA[]]></default>
|
681 |
<type/>
|
682 |
</argument>
|
683 |
</method>
|
684 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="509" package="Media Library Assistant">
|
685 |
<name>column_inserted</name>
|
686 |
<full_name>column_inserted</full_name>
|
687 |
+
<docblock line="501">
|
688 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
689 |
<long-description><![CDATA[]]></long-description>
|
690 |
+
<tag line="501" name="since" description="0.1"/>
|
691 |
+
<tag line="501" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
692 |
<type by_reference="false">array</type>
|
693 |
</tag>
|
694 |
+
<tag line="501" name="return" description="HTML markup to be placed inside the column" type="string">
|
695 |
<type by_reference="false">string</type>
|
696 |
</tag>
|
697 |
</docblock>
|
698 |
+
<argument line="509">
|
699 |
<name>$item</name>
|
700 |
<default><![CDATA[]]></default>
|
701 |
<type/>
|
702 |
</argument>
|
703 |
</method>
|
704 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="536" package="Media Library Assistant">
|
705 |
<name>column_alt_text</name>
|
706 |
<full_name>column_alt_text</full_name>
|
707 |
+
<docblock line="528">
|
708 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
709 |
<long-description><![CDATA[]]></long-description>
|
710 |
+
<tag line="528" name="since" description="0.1"/>
|
711 |
+
<tag line="528" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
712 |
<type by_reference="false">array</type>
|
713 |
</tag>
|
714 |
+
<tag line="528" name="return" description="HTML markup to be placed inside the column" type="string">
|
715 |
<type by_reference="false">string</type>
|
716 |
</tag>
|
717 |
</docblock>
|
718 |
+
<argument line="536">
|
719 |
<name>$item</name>
|
720 |
<default><![CDATA[]]></default>
|
721 |
<type/>
|
722 |
</argument>
|
723 |
</method>
|
724 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="551" package="Media Library Assistant">
|
725 |
<name>column_caption</name>
|
726 |
<full_name>column_caption</full_name>
|
727 |
+
<docblock line="543">
|
728 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
729 |
<long-description><![CDATA[]]></long-description>
|
730 |
+
<tag line="543" name="since" description="0.1"/>
|
731 |
+
<tag line="543" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
732 |
<type by_reference="false">array</type>
|
733 |
</tag>
|
734 |
+
<tag line="543" name="return" description="HTML markup to be placed inside the column" type="string">
|
735 |
<type by_reference="false">string</type>
|
736 |
</tag>
|
737 |
</docblock>
|
738 |
+
<argument line="551">
|
739 |
<name>$item</name>
|
740 |
<default><![CDATA[]]></default>
|
741 |
<type/>
|
742 |
</argument>
|
743 |
</method>
|
744 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="563" package="Media Library Assistant">
|
745 |
<name>column_description</name>
|
746 |
<full_name>column_description</full_name>
|
747 |
+
<docblock line="555">
|
748 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
749 |
<long-description><![CDATA[]]></long-description>
|
750 |
+
<tag line="555" name="since" description="0.1"/>
|
751 |
+
<tag line="555" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
752 |
<type by_reference="false">array</type>
|
753 |
</tag>
|
754 |
+
<tag line="555" name="return" description="HTML markup to be placed inside the column" type="string">
|
755 |
<type by_reference="false">string</type>
|
756 |
</tag>
|
757 |
</docblock>
|
758 |
+
<argument line="563">
|
759 |
<name>$item</name>
|
760 |
<default><![CDATA[]]></default>
|
761 |
<type/>
|
762 |
</argument>
|
763 |
</method>
|
764 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="575" package="Media Library Assistant">
|
765 |
<name>column_base_file</name>
|
766 |
<full_name>column_base_file</full_name>
|
767 |
+
<docblock line="567">
|
768 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
769 |
<long-description><![CDATA[]]></long-description>
|
770 |
+
<tag line="567" name="since" description="0.1"/>
|
771 |
+
<tag line="567" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
772 |
<type by_reference="false">array</type>
|
773 |
</tag>
|
774 |
+
<tag line="567" name="return" description="HTML markup to be placed inside the column" type="string">
|
775 |
<type by_reference="false">string</type>
|
776 |
</tag>
|
777 |
</docblock>
|
778 |
+
<argument line="575">
|
779 |
<name>$item</name>
|
780 |
<default><![CDATA[]]></default>
|
781 |
<type/>
|
782 |
</argument>
|
783 |
</method>
|
784 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="587" package="Media Library Assistant">
|
785 |
<name>column_date</name>
|
786 |
<full_name>column_date</full_name>
|
787 |
+
<docblock line="579">
|
788 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
789 |
<long-description><![CDATA[]]></long-description>
|
790 |
+
<tag line="579" name="since" description="0.1"/>
|
791 |
+
<tag line="579" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
792 |
<type by_reference="false">array</type>
|
793 |
</tag>
|
794 |
+
<tag line="579" name="return" description="HTML markup to be placed inside the column" type="string">
|
795 |
<type by_reference="false">string</type>
|
796 |
</tag>
|
797 |
</docblock>
|
798 |
+
<argument line="587">
|
799 |
<name>$item</name>
|
800 |
<default><![CDATA[]]></default>
|
801 |
<type/>
|
802 |
</argument>
|
803 |
</method>
|
804 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="616" package="Media Library Assistant">
|
805 |
<name>column_author</name>
|
806 |
<full_name>column_author</full_name>
|
807 |
+
<docblock line="608">
|
808 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
809 |
<long-description><![CDATA[]]></long-description>
|
810 |
+
<tag line="608" name="since" description="0.1"/>
|
811 |
+
<tag line="608" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
812 |
<type by_reference="false">array</type>
|
813 |
</tag>
|
814 |
+
<tag line="608" name="return" description="HTML markup to be placed inside the column" type="string">
|
815 |
<type by_reference="false">string</type>
|
816 |
</tag>
|
817 |
</docblock>
|
818 |
+
<argument line="616">
|
819 |
<name>$item</name>
|
820 |
<default><![CDATA[]]></default>
|
821 |
<type/>
|
822 |
</argument>
|
823 |
</method>
|
824 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="633" package="Media Library Assistant">
|
825 |
<name>column_attached_to</name>
|
826 |
<full_name>column_attached_to</full_name>
|
827 |
+
<docblock line="625">
|
828 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
829 |
<long-description><![CDATA[]]></long-description>
|
830 |
+
<tag line="625" name="since" description="0.1"/>
|
831 |
+
<tag line="625" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
832 |
<type by_reference="false">array</type>
|
833 |
</tag>
|
834 |
+
<tag line="625" name="return" description="HTML markup to be placed inside the column" type="string">
|
835 |
<type by_reference="false">string</type>
|
836 |
</tag>
|
837 |
</docblock>
|
838 |
+
<argument line="633">
|
839 |
<name>$item</name>
|
840 |
<default><![CDATA[]]></default>
|
841 |
<type/>
|
842 |
</argument>
|
843 |
</method>
|
844 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="660" package="Media Library Assistant">
|
845 |
<name>column_categories</name>
|
846 |
<full_name>column_categories</full_name>
|
847 |
+
<docblock line="652">
|
848 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
849 |
<long-description><![CDATA[]]></long-description>
|
850 |
+
<tag line="652" name="since" description="0.1"/>
|
851 |
+
<tag line="652" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
852 |
<type by_reference="false">array</type>
|
853 |
</tag>
|
854 |
+
<tag line="652" name="return" description="HTML markup to be placed inside the column" type="string">
|
855 |
<type by_reference="false">string</type>
|
856 |
</tag>
|
857 |
</docblock>
|
858 |
+
<argument line="660">
|
859 |
<name>$item</name>
|
860 |
<default><![CDATA[]]></default>
|
861 |
<type/>
|
862 |
</argument>
|
863 |
</method>
|
864 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="693" package="Media Library Assistant">
|
865 |
<name>column_tags</name>
|
866 |
<full_name>column_tags</full_name>
|
867 |
+
<docblock line="685">
|
868 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
869 |
<long-description><![CDATA[]]></long-description>
|
870 |
+
<tag line="685" name="since" description="0.1"/>
|
871 |
+
<tag line="685" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
872 |
<type by_reference="false">array</type>
|
873 |
</tag>
|
874 |
+
<tag line="685" name="return" description="HTML markup to be placed inside the column" type="string">
|
875 |
<type by_reference="false">string</type>
|
876 |
</tag>
|
877 |
</docblock>
|
878 |
+
<argument line="693">
|
879 |
<name>$item</name>
|
880 |
<default><![CDATA[]]></default>
|
881 |
<type/>
|
882 |
</argument>
|
883 |
</method>
|
884 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="725" package="Media Library Assistant">
|
885 |
<name>get_columns</name>
|
886 |
<full_name>get_columns</full_name>
|
887 |
+
<docblock line="718">
|
888 |
<description><![CDATA[This method dictates the table's columns and titles.]]></description>
|
889 |
<long-description><![CDATA[]]></long-description>
|
890 |
+
<tag line="718" name="since" description="0.1"/>
|
891 |
+
<tag line="718" name="return" description="Column information: 'slugs'=>'Visible Titles'" type="array">
|
892 |
<type by_reference="false">array</type>
|
893 |
</tag>
|
894 |
</docblock>
|
895 |
</method>
|
896 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="737" package="Media Library Assistant">
|
897 |
<name>get_hidden_columns</name>
|
898 |
<full_name>get_hidden_columns</full_name>
|
899 |
+
<docblock line="729">
|
900 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
901 |
from default values if the option is not set]]></description>
|
902 |
<long-description><![CDATA[]]></long-description>
|
903 |
+
<tag line="729" name="since" description="0.1"/>
|
904 |
+
<tag line="729" name="return" description="Column information,e.g., array(0 => 'ID_parent, 1 => 'title_name')" type="array">
|
905 |
<type by_reference="false">array</type>
|
906 |
</tag>
|
907 |
</docblock>
|
908 |
</method>
|
909 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="757" package="Media Library Assistant">
|
910 |
<name>get_sortable_columns</name>
|
911 |
<full_name>get_sortable_columns</full_name>
|
912 |
+
<docblock line="747">
|
913 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
914 |
and the value is db column to sort by.]]></description>
|
915 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
916 |
if set.</p>]]></long-description>
|
917 |
+
<tag line="747" name="since" description="0.1"/>
|
918 |
+
<tag line="747" name="return" description="Sortable column information,e.g., 'slugs'=>array('data_values',boolean)" type="array">
|
919 |
<type by_reference="false">array</type>
|
920 |
</tag>
|
921 |
</docblock>
|
922 |
</method>
|
923 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="784" package="Media Library Assistant">
|
924 |
<name>get_views</name>
|
925 |
<full_name>get_views</full_name>
|
926 |
+
<docblock line="776">
|
927 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
928 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
929 |
+
<tag line="776" name="since" description="0.1"/>
|
930 |
+
<tag line="776" name="return" description="View information,e.g., array ( id => link )" type="array">
|
931 |
<type by_reference="false">array</type>
|
932 |
</tag>
|
933 |
</docblock>
|
934 |
</method>
|
935 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="854" package="Media Library Assistant">
|
936 |
<name>get_bulk_actions</name>
|
937 |
<full_name>get_bulk_actions</full_name>
|
938 |
+
<docblock line="846">
|
939 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
940 |
of bulk actions available on this table.]]></description>
|
941 |
<long-description><![CDATA[]]></long-description>
|
942 |
+
<tag line="846" name="since" description="0.1"/>
|
943 |
+
<tag line="846" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
944 |
<type by_reference="false">array</type>
|
945 |
</tag>
|
946 |
</docblock>
|
947 |
</method>
|
948 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="886" package="Media Library Assistant">
|
949 |
<name>extra_tablenav</name>
|
950 |
<full_name>extra_tablenav</full_name>
|
951 |
+
<docblock line="876">
|
952 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination.]]></description>
|
953 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes</p>]]></long-description>
|
954 |
+
<tag line="876" name="since" description="0.1"/>
|
955 |
+
<tag line="876" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
|
956 |
<type by_reference="false">string</type>
|
957 |
</tag>
|
958 |
+
<tag line="876" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
959 |
<type by_reference="false">array</type>
|
960 |
</tag>
|
961 |
</docblock>
|
962 |
+
<argument line="886">
|
963 |
<name>$which</name>
|
964 |
<default><![CDATA[]]></default>
|
965 |
<type/>
|
966 |
</argument>
|
967 |
</method>
|
968 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="942" package="Media Library Assistant">
|
969 |
<name>prepare_items</name>
|
970 |
<full_name>prepare_items</full_name>
|
971 |
+
<docblock line="932">
|
972 |
<description><![CDATA[Prepares the list of items for displaying.]]></description>
|
973 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
974 |
be used to query the database, sort and filter the data, and generally
|
975 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
976 |
$this->set_pagination_args().</p>]]></long-description>
|
977 |
+
<tag line="932" name="since" description="0.1"/>
|
978 |
+
</docblock>
|
979 |
+
</method>
|
980 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="995" package="Media Library Assistant">
|
981 |
+
<name>single_row</name>
|
982 |
+
<full_name>single_row</full_name>
|
983 |
+
<docblock line="986">
|
984 |
+
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
985 |
+
<long-description><![CDATA[]]></long-description>
|
986 |
+
<tag line="986" name="since" description=".20"/>
|
987 |
+
<tag line="986" name="param" description="The current item" type="object" variable="$item">
|
988 |
+
<type by_reference="false">object</type>
|
989 |
+
</tag>
|
990 |
+
<tag line="986" name="return" description="Echoes the row HTML" type="\nothing">
|
991 |
+
<type by_reference="false">\nothing</type>
|
992 |
+
</tag>
|
993 |
</docblock>
|
994 |
+
<argument line="995">
|
995 |
+
<name>$item</name>
|
996 |
+
<default><![CDATA[]]></default>
|
997 |
+
<type/>
|
998 |
+
</argument>
|
999 |
</method>
|
1000 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="1013" package="Media Library Assistant">
|
1001 |
<name>_mime_types</name>
|
1002 |
<full_name>_mime_types</full_name>
|
1003 |
+
<docblock line="1004">
|
1004 |
<description><![CDATA[Get possible mime types for view preparation.]]></description>
|
1005 |
<long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-admin/includes/post.php,
|
1006 |
with additional entries.</p>]]></long-description>
|
1007 |
+
<tag line="1004" name="since" description="0.1"/>
|
1008 |
+
<tag line="1004" name="return" description="Mime type names and HTML markup for views" type="array">
|
1009 |
<type by_reference="false">array</type>
|
1010 |
</tag>
|
1011 |
</docblock>
|
1012 |
</method>
|
1013 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="1090" package="Media Library Assistant">
|
1014 |
<name>_avail_mime_types</name>
|
1015 |
<full_name>_avail_mime_types</full_name>
|
1016 |
+
<docblock line="1079">
|
1017 |
<description><![CDATA[Get mime types with one or more attachments for view preparation.]]></description>
|
1018 |
<long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
|
1019 |
with additional entries.</p>]]></long-description>
|
1020 |
+
<tag line="1079" name="since" description="0.1"/>
|
1021 |
+
<tag line="1079" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
|
1022 |
<type by_reference="false">array</type>
|
1023 |
</tag>
|
1024 |
+
<tag line="1079" name="return" description="Mime type names" type="array">
|
1025 |
<type by_reference="false">array</type>
|
1026 |
</tag>
|
1027 |
</docblock>
|
1028 |
+
<argument line="1090">
|
1029 |
<name>$num_posts</name>
|
1030 |
<default><![CDATA[]]></default>
|
1031 |
<type/>
|
1032 |
</argument>
|
1033 |
</method>
|
1034 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="1110" package="Media Library Assistant">
|
1035 |
<name>_count_list_table_items</name>
|
1036 |
<full_name>_count_list_table_items</full_name>
|
1037 |
+
<docblock line="1101">
|
1038 |
<description><![CDATA[Get the total number of attachment posts]]></description>
|
1039 |
<long-description><![CDATA[]]></long-description>
|
1040 |
+
<tag line="1101" name="since" description="0.1"/>
|
1041 |
+
<tag line="1101" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
|
1042 |
<type by_reference="false">array</type>
|
1043 |
</tag>
|
1044 |
+
<tag line="1101" name="return" description="Number of attachment posts" type="integer">
|
1045 |
+
<type by_reference="false">integer</type>
|
1046 |
</tag>
|
1047 |
</docblock>
|
1048 |
+
<argument line="1110">
|
1049 |
<name>$request</name>
|
1050 |
<default><![CDATA[]]></default>
|
1051 |
<type/>
|
1053 |
</method>
|
1054 |
</class>
|
1055 |
</file>
|
1056 |
+
<file path="includes\class-mla-main.php" hash="1e146664173872f77d7eed7e027daf76" package="Media Library Assistant">
|
1057 |
<docblock line="2">
|
1058 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
1059 |
<long-description><![CDATA[]]></long-description>
|
1060 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
1061 |
<tag line="2" name="since" description="0.1"/>
|
1062 |
</docblock>
|
1063 |
+
<include line="13" type="Require Once" package="Media Library Assistant">
|
1064 |
<name/>
|
1065 |
</include>
|
1066 |
<class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
|
1090 |
<constant namespace="global" line="41" package="Media Library Assistant">
|
1091 |
<name>CURRENT_MLA_VERSION</name>
|
1092 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
1093 |
+
<value><![CDATA['0.20']]></value>
|
1094 |
<docblock line="34">
|
1095 |
<description><![CDATA[Current version number]]></description>
|
1096 |
<long-description><![CDATA[]]></long-description>
|
1116 |
<constant namespace="global" line="59" package="Media Library Assistant">
|
1117 |
<name>MIN_WORDPRESS_VERSION</name>
|
1118 |
<full_name>MIN_WORDPRESS_VERSION</full_name>
|
1119 |
+
<value><![CDATA['3.3']]></value>
|
1120 |
<docblock line="52">
|
1121 |
<description><![CDATA[Minimum version of WordPress required for this plugin]]></description>
|
1122 |
<long-description><![CDATA[]]></long-description>
|
1140 |
</docblock>
|
1141 |
</constant>
|
1142 |
<constant namespace="global" line="77" package="Media Library Assistant">
|
1143 |
+
<name>JAVASCRIPT_SINGLE_EDIT_SLUG</name>
|
1144 |
+
<full_name>JAVASCRIPT_SINGLE_EDIT_SLUG</full_name>
|
1145 |
+
<value><![CDATA['mla-single-edit-scripts']]></value>
|
1146 |
<docblock line="70">
|
1147 |
+
<description><![CDATA[Slug for localizing and enqueueing JavaScript - edit single item page]]></description>
|
1148 |
<long-description><![CDATA[]]></long-description>
|
1149 |
<tag line="70" name="since" description="0.1"/>
|
1150 |
<tag line="70" name="var" description="" type="string">
|
1153 |
</docblock>
|
1154 |
</constant>
|
1155 |
<constant namespace="global" line="86" package="Media Library Assistant">
|
1156 |
+
<name>JAVASCRIPT_SINGLE_EDIT_OBJECT</name>
|
1157 |
+
<full_name>JAVASCRIPT_SINGLE_EDIT_OBJECT</full_name>
|
1158 |
+
<value><![CDATA['mla_single_edit_vars']]></value>
|
1159 |
+
<docblock line="79">
|
1160 |
+
<description><![CDATA[Object name for localizing JavaScript - edit single item page]]></description>
|
1161 |
+
<long-description><![CDATA[]]></long-description>
|
1162 |
+
<tag line="79" name="since" description="0.1"/>
|
1163 |
+
<tag line="79" name="var" description="" type="string">
|
1164 |
+
<type by_reference="false">string</type>
|
1165 |
+
</tag>
|
1166 |
+
</docblock>
|
1167 |
+
</constant>
|
1168 |
+
<constant namespace="global" line="95" package="Media Library Assistant">
|
1169 |
+
<name>JAVASCRIPT_INLINE_EDIT_SLUG</name>
|
1170 |
+
<full_name>JAVASCRIPT_INLINE_EDIT_SLUG</full_name>
|
1171 |
+
<value><![CDATA['mla-inline-edit-scripts']]></value>
|
1172 |
+
<docblock line="88">
|
1173 |
+
<description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA List Table]]></description>
|
1174 |
+
<long-description><![CDATA[]]></long-description>
|
1175 |
+
<tag line="88" name="since" description="0.20"/>
|
1176 |
+
<tag line="88" name="var" description="" type="string">
|
1177 |
+
<type by_reference="false">string</type>
|
1178 |
+
</tag>
|
1179 |
+
</docblock>
|
1180 |
+
</constant>
|
1181 |
+
<constant namespace="global" line="104" package="Media Library Assistant">
|
1182 |
+
<name>JAVASCRIPT_INLINE_EDIT_OBJECT</name>
|
1183 |
+
<full_name>JAVASCRIPT_INLINE_EDIT_OBJECT</full_name>
|
1184 |
+
<value><![CDATA['mla_inline_edit_vars']]></value>
|
1185 |
+
<docblock line="97">
|
1186 |
+
<description><![CDATA[Object name for localizing JavaScript - MLA List Table]]></description>
|
1187 |
+
<long-description><![CDATA[]]></long-description>
|
1188 |
+
<tag line="97" name="since" description="0.20"/>
|
1189 |
+
<tag line="97" name="var" description="" type="string">
|
1190 |
+
<type by_reference="false">string</type>
|
1191 |
+
</tag>
|
1192 |
+
</docblock>
|
1193 |
+
</constant>
|
1194 |
+
<constant namespace="global" line="113" package="Media Library Assistant">
|
1195 |
<name>ADMIN_PAGE_SLUG</name>
|
1196 |
<full_name>ADMIN_PAGE_SLUG</full_name>
|
1197 |
<value><![CDATA['mla-menu']]></value>
|
1198 |
+
<docblock line="106">
|
1199 |
<description><![CDATA[Slug for adding plugin submenu]]></description>
|
1200 |
<long-description><![CDATA[]]></long-description>
|
1201 |
+
<tag line="106" name="since" description="0.1"/>
|
1202 |
+
<tag line="106" name="var" description="" type="string">
|
1203 |
<type by_reference="false">string</type>
|
1204 |
</tag>
|
1205 |
</docblock>
|
1206 |
</constant>
|
1207 |
+
<constant namespace="global" line="284" package="Media Library Assistant">
|
1208 |
<name>MLA_ADMIN_NONCE</name>
|
1209 |
<full_name>MLA_ADMIN_NONCE</full_name>
|
1210 |
<value><![CDATA['mla_admin']]></value>
|
1211 |
+
<docblock line="277">
|
1212 |
<description><![CDATA[Action name; uniquely identifies the nonce]]></description>
|
1213 |
<long-description><![CDATA[]]></long-description>
|
1214 |
+
<tag line="277" name="since" description="0.1"/>
|
1215 |
+
<tag line="277" name="var" description="" type="string">
|
1216 |
<type by_reference="false">string</type>
|
1217 |
</tag>
|
1218 |
</docblock>
|
1219 |
</constant>
|
1220 |
+
<constant namespace="global" line="293" package="Media Library Assistant">
|
1221 |
<name>MLA_ADMIN_SINGLE_DELETE</name>
|
1222 |
<full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
|
1223 |
<value><![CDATA['single_item_delete']]></value>
|
1224 |
+
<docblock line="286">
|
1225 |
<description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
|
1226 |
<long-description><![CDATA[]]></long-description>
|
1227 |
+
<tag line="286" name="since" description="0.1"/>
|
1228 |
+
<tag line="286" name="var" description="" type="string">
|
1229 |
<type by_reference="false">string</type>
|
1230 |
</tag>
|
1231 |
</docblock>
|
1232 |
</constant>
|
1233 |
+
<constant namespace="global" line="302" package="Media Library Assistant">
|
1234 |
<name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
|
1235 |
<full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
|
1236 |
<value><![CDATA['single_item_edit_display']]></value>
|
1237 |
+
<docblock line="295">
|
1238 |
<description><![CDATA[mla_admin_action value for displaying a single item]]></description>
|
1239 |
<long-description><![CDATA[]]></long-description>
|
1240 |
+
<tag line="295" name="since" description="0.1"/>
|
1241 |
+
<tag line="295" name="var" description="" type="string">
|
1242 |
<type by_reference="false">string</type>
|
1243 |
</tag>
|
1244 |
</docblock>
|
1245 |
</constant>
|
1246 |
+
<constant namespace="global" line="311" package="Media Library Assistant">
|
1247 |
<name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
|
1248 |
<full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
|
1249 |
<value><![CDATA['single_item_edit_update']]></value>
|
1250 |
+
<docblock line="304">
|
1251 |
<description><![CDATA[mla_admin_action value for updating a single item]]></description>
|
1252 |
<long-description><![CDATA[]]></long-description>
|
1253 |
+
<tag line="304" name="since" description="0.1"/>
|
1254 |
+
<tag line="304" name="var" description="" type="string">
|
1255 |
<type by_reference="false">string</type>
|
1256 |
</tag>
|
1257 |
</docblock>
|
1258 |
</constant>
|
1259 |
+
<constant namespace="global" line="320" package="Media Library Assistant">
|
1260 |
<name>MLA_ADMIN_SINGLE_RESTORE</name>
|
1261 |
<full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
|
1262 |
<value><![CDATA['single_item_restore']]></value>
|
1263 |
+
<docblock line="313">
|
1264 |
<description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
|
1265 |
<long-description><![CDATA[]]></long-description>
|
1266 |
+
<tag line="313" name="since" description="0.1"/>
|
1267 |
+
<tag line="313" name="var" description="" type="string">
|
1268 |
<type by_reference="false">string</type>
|
1269 |
</tag>
|
1270 |
</docblock>
|
1271 |
</constant>
|
1272 |
+
<constant namespace="global" line="329" package="Media Library Assistant">
|
1273 |
<name>MLA_ADMIN_SINGLE_TRASH</name>
|
1274 |
<full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
|
1275 |
<value><![CDATA['single_item_trash']]></value>
|
1276 |
+
<docblock line="322">
|
1277 |
<description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
|
1278 |
<long-description><![CDATA[]]></long-description>
|
1279 |
+
<tag line="322" name="since" description="0.1"/>
|
1280 |
+
<tag line="322" name="var" description="" type="string">
|
1281 |
<type by_reference="false">string</type>
|
1282 |
</tag>
|
1283 |
</docblock>
|
1284 |
</constant>
|
1285 |
+
<property final="false" static="true" visibility="private" line="122" namespace="global" package="Media Library Assistant">
|
1286 |
<name>$page_hooks</name>
|
1287 |
<default><![CDATA[array()]]></default>
|
1288 |
+
<docblock line="115">
|
1289 |
<description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
|
1290 |
<long-description><![CDATA[]]></long-description>
|
1291 |
+
<tag line="115" name="since" description="0.1"/>
|
1292 |
+
<tag line="115" name="var" description="" type="array">
|
1293 |
<type by_reference="false">array</type>
|
1294 |
</tag>
|
1295 |
</docblock>
|
1296 |
</property>
|
1297 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="129" package="Media Library Assistant">
|
1298 |
<name>initialize</name>
|
1299 |
<full_name>initialize</full_name>
|
1300 |
+
<docblock line="124">
|
1301 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
1302 |
<long-description><![CDATA[]]></long-description>
|
1303 |
+
<tag line="124" name="since" description="0.1"/>
|
1304 |
+
</docblock>
|
1305 |
+
</method>
|
1306 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="148" package="Media Library Assistant">
|
1307 |
+
<name>mla_admin_init_action</name>
|
1308 |
+
<full_name>mla_admin_init_action</full_name>
|
1309 |
+
<docblock line="141">
|
1310 |
+
<description><![CDATA[Load the plugin's Ajax handler]]></description>
|
1311 |
+
<long-description><![CDATA[]]></long-description>
|
1312 |
+
<tag line="141" name="since" description="0.20"/>
|
1313 |
+
<tag line="141" name="return" description="" type="\nothing">
|
1314 |
+
<type by_reference="false">\nothing</type>
|
1315 |
+
</tag>
|
1316 |
</docblock>
|
1317 |
</method>
|
1318 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="161" package="Media Library Assistant">
|
1319 |
<name>mla_admin_enqueue_scripts_action</name>
|
1320 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
1321 |
+
<docblock line="152">
|
1322 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
1323 |
<long-description><![CDATA[]]></long-description>
|
1324 |
+
<tag line="152" name="since" description="0.1"/>
|
1325 |
+
<tag line="152" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
|
1326 |
<type by_reference="false">string</type>
|
1327 |
</tag>
|
1328 |
+
<tag line="152" name="return" description="" type="\nothing">
|
1329 |
<type by_reference="false">\nothing</type>
|
1330 |
</tag>
|
1331 |
</docblock>
|
1332 |
+
<argument line="161">
|
1333 |
<name>$page_hook</name>
|
1334 |
<default><![CDATA[]]></default>
|
1335 |
<type/>
|
1336 |
</argument>
|
1337 |
</method>
|
1338 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="202" package="Media Library Assistant">
|
1339 |
<name>mla_admin_menu_action</name>
|
1340 |
<full_name>mla_admin_menu_action</full_name>
|
1341 |
+
<docblock line="191">
|
1342 |
<description><![CDATA[Add the submenu pages]]></description>
|
1343 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
1344 |
add submenu page(s) for attachment taxonomies,
|
1345 |
add filter to clean up taxonomy submenu labels
|
1346 |
add settings page in the "Settings" section,
|
1347 |
add settings link in the Plugins section entry for MLA.</p>]]></long-description>
|
1348 |
+
<tag line="191" name="since" description="0.1"/>
|
1349 |
</docblock>
|
1350 |
</method>
|
1351 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="231" package="Media Library Assistant">
|
1352 |
<name>mla_add_menu_options</name>
|
1353 |
<full_name>mla_add_menu_options</full_name>
|
1354 |
+
<docblock line="226">
|
1355 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
1356 |
<long-description><![CDATA[]]></long-description>
|
1357 |
+
<tag line="226" name="since" description="0.1"/>
|
1358 |
</docblock>
|
1359 |
</method>
|
1360 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="253" package="Media Library Assistant">
|
1361 |
<name>mla_screen_options_show_screen_filter</name>
|
1362 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
1363 |
+
<docblock line="243">
|
1364 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
1365 |
<long-description><![CDATA[]]></long-description>
|
1366 |
+
<tag line="243" name="since" description="0.1"/>
|
1367 |
+
<tag line="243" name="param" description="True to display "Screen Options", false to suppress them" type="boolean" variable="$show_screen">
|
1368 |
<type by_reference="false">boolean</type>
|
1369 |
</tag>
|
1370 |
+
<tag line="243" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
|
1371 |
<type by_reference="false">string</type>
|
1372 |
</tag>
|
1373 |
+
<tag line="243" name="return" description="True to display "Screen Options", false to suppress them" type="boolean">
|
1374 |
<type by_reference="false">boolean</type>
|
1375 |
</tag>
|
1376 |
</docblock>
|
1377 |
+
<argument line="253">
|
1378 |
<name>$show_screen</name>
|
1379 |
<default><![CDATA[]]></default>
|
1380 |
<type/>
|
1381 |
</argument>
|
1382 |
+
<argument line="253">
|
1383 |
<name>$this_screen</name>
|
1384 |
<default><![CDATA[]]></default>
|
1385 |
<type/>
|
1386 |
</argument>
|
1387 |
</method>
|
1388 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="271" package="Media Library Assistant">
|
1389 |
<name>mla_set_screen_option_filter</name>
|
1390 |
<full_name>mla_set_screen_option_filter</full_name>
|
1391 |
+
<docblock line="260">
|
1392 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
1393 |
<long-description><![CDATA[]]></long-description>
|
1394 |
+
<tag line="260" name="since" description="0.1"/>
|
1395 |
+
<tag line="260" name="param" description="Unknown - always false?" type="boolean" variable="$status">
|
1396 |
<type by_reference="false">boolean</type>
|
1397 |
</tag>
|
1398 |
+
<tag line="260" name="param" description="Name of the option being changed" type="string" variable="$option">
|
1399 |
<type by_reference="false">string</type>
|
1400 |
</tag>
|
1401 |
+
<tag line="260" name="param" description="New value of the option" type="string" variable="$value">
|
1402 |
<type by_reference="false">string</type>
|
1403 |
</tag>
|
1404 |
+
<tag line="260" name="return" description="New value if this is our option, otherwise nothing" type="string">
|
1405 |
<type by_reference="false">string</type>
|
1406 |
</tag>
|
1407 |
</docblock>
|
1408 |
+
<argument line="271">
|
1409 |
<name>$status</name>
|
1410 |
<default><![CDATA[]]></default>
|
1411 |
<type/>
|
1412 |
</argument>
|
1413 |
+
<argument line="271">
|
1414 |
<name>$option</name>
|
1415 |
<default><![CDATA[]]></default>
|
1416 |
<type/>
|
1417 |
</argument>
|
1418 |
+
<argument line="271">
|
1419 |
<name>$value</name>
|
1420 |
<default><![CDATA[]]></default>
|
1421 |
<type/>
|
1422 |
</argument>
|
1423 |
</method>
|
1424 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="339" package="Media Library Assistant">
|
1425 |
<name>mla_edit_tags_redirect</name>
|
1426 |
<full_name>mla_edit_tags_redirect</full_name>
|
1427 |
+
<docblock line="331">
|
1428 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
1429 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
1430 |
This filter is the only way to redirect them to the correct WordPress page.</p>]]></long-description>
|
1431 |
+
<tag line="331" name="since" description="0.1"/>
|
1432 |
</docblock>
|
1433 |
</method>
|
1434 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="353" package="Media Library Assistant">
|
1435 |
<name>mla_add_help_tab</name>
|
1436 |
<full_name>mla_add_help_tab</full_name>
|
1437 |
+
<docblock line="348">
|
1438 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
1439 |
<long-description><![CDATA[]]></long-description>
|
1440 |
+
<tag line="348" name="since" description="0.1"/>
|
1441 |
</docblock>
|
1442 |
</method>
|
1443 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="425" package="Media Library Assistant">
|
1444 |
<name>mla_modify_parent_menu</name>
|
1445 |
<full_name>mla_modify_parent_menu</full_name>
|
1446 |
+
<docblock line="412">
|
1447 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
1448 |
<long-description><![CDATA[<p>The submenu entries for custom taxonomies under the "Media" menu are not set up
|
1449 |
correctly by WordPress, so this function cleans them up, redirecting the request
|
1450 |
to the right WordPress page for editing/adding taxonomy terms.</p>]]></long-description>
|
1451 |
+
<tag line="412" name="since" description="0.1"/>
|
1452 |
+
<tag line="412" name="param" description="The top-level menu page" type="array" variable="$parent_file">
|
1453 |
<type by_reference="false">array</type>
|
1454 |
</tag>
|
1455 |
+
<tag line="412" name="return" description="The updated top-level menu page" type="string">
|
1456 |
<type by_reference="false">string</type>
|
1457 |
</tag>
|
1458 |
</docblock>
|
1459 |
+
<argument line="425">
|
1460 |
<name>$parent_file</name>
|
1461 |
<default><![CDATA[]]></default>
|
1462 |
<type/>
|
1463 |
</argument>
|
1464 |
</method>
|
1465 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="454" package="Media Library Assistant">
|
1466 |
<name>mla_render_admin_page</name>
|
1467 |
<full_name>mla_render_admin_page</full_name>
|
1468 |
+
<docblock line="449">
|
1469 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
1470 |
<long-description><![CDATA[]]></long-description>
|
1471 |
+
<tag line="449" name="since" description="0.1"/>
|
1472 |
+
</docblock>
|
1473 |
+
</method>
|
1474 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="635" package="Media Library Assistant">
|
1475 |
+
<name>mla_inline_edit_action</name>
|
1476 |
+
<full_name>mla_inline_edit_action</full_name>
|
1477 |
+
<docblock line="626">
|
1478 |
+
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
1479 |
+
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
1480 |
+
<tag line="626" name="since" description="0.20"/>
|
1481 |
+
<tag line="626" name="return" description="echo HTML <tr> markup for updated row or error message, then die()" type="string">
|
1482 |
+
<type by_reference="false">string</type>
|
1483 |
+
</tag>
|
1484 |
+
</docblock>
|
1485 |
+
</method>
|
1486 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="704" package="Media Library Assistant">
|
1487 |
+
<name>_build_inline_edit_form</name>
|
1488 |
+
<full_name>_build_inline_edit_form</full_name>
|
1489 |
+
<docblock line="693">
|
1490 |
+
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit).]]></description>
|
1491 |
+
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
1492 |
+
<tag line="693" name="since" description="0.20"/>
|
1493 |
+
<tag line="693" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
|
1494 |
+
<type by_reference="false">object</type>
|
1495 |
+
</tag>
|
1496 |
+
<tag line="693" name="return" description="HTML <form> markup for hidden rows" type="string">
|
1497 |
+
<type by_reference="false">string</type>
|
1498 |
+
</tag>
|
1499 |
+
</docblock>
|
1500 |
+
<argument line="704">
|
1501 |
+
<name>$MLAListTable</name>
|
1502 |
+
<default><![CDATA[]]></default>
|
1503 |
+
<type/>
|
1504 |
+
</argument>
|
1505 |
+
</method>
|
1506 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="805" package="Media Library Assistant">
|
1507 |
+
<name>_authors_dropdown</name>
|
1508 |
+
<full_name>_authors_dropdown</full_name>
|
1509 |
+
<docblock line="794">
|
1510 |
+
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
1511 |
+
<long-description><![CDATA[]]></long-description>
|
1512 |
+
<tag line="794" name="since" description="0.20"/>
|
1513 |
+
<tag line="794" name="param" description="User ID of the current author" type="integer" variable="$author">
|
1514 |
+
<type by_reference="false">integer</type>
|
1515 |
+
</tag>
|
1516 |
+
<tag line="794" name="param" description="HTML name attribute" type="string" variable="$name">
|
1517 |
+
<type by_reference="false">string</type>
|
1518 |
+
</tag>
|
1519 |
+
<tag line="794" name="param" description="HTML class attribute" type="string" variable="$class">
|
1520 |
+
<type by_reference="false">string</type>
|
1521 |
+
</tag>
|
1522 |
+
<tag line="794" name="return" description="HTML markup for the dropdown field or False" type="string|false">
|
1523 |
+
<type by_reference="false">string</type>
|
1524 |
+
<type by_reference="false">false</type>
|
1525 |
+
</tag>
|
1526 |
</docblock>
|
1527 |
+
<argument line="805">
|
1528 |
+
<name>$author</name>
|
1529 |
+
<default><![CDATA[0]]></default>
|
1530 |
+
<type/>
|
1531 |
+
</argument>
|
1532 |
+
<argument line="805">
|
1533 |
+
<name>$name</name>
|
1534 |
+
<default><![CDATA['post_author']]></default>
|
1535 |
+
<type/>
|
1536 |
+
</argument>
|
1537 |
+
<argument line="805">
|
1538 |
+
<name>$class</name>
|
1539 |
+
<default><![CDATA['authors']]></default>
|
1540 |
+
<type/>
|
1541 |
+
</argument>
|
1542 |
</method>
|
1543 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="837" package="Media Library Assistant">
|
1544 |
<name>_current_bulk_action</name>
|
1545 |
<full_name>_current_bulk_action</full_name>
|
1546 |
+
<docblock line="830">
|
1547 |
+
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
1548 |
<long-description><![CDATA[]]></long-description>
|
1549 |
+
<tag line="830" name="since" description="0.1"/>
|
1550 |
+
<tag line="830" name="return" description="The action name or False if no action was selected" type="string|false">
|
1551 |
<type by_reference="false">string</type>
|
1552 |
+
<type by_reference="false">false</type>
|
1553 |
</tag>
|
1554 |
</docblock>
|
1555 |
</method>
|
1556 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="866" package="Media Library Assistant">
|
1557 |
<name>_delete_single_item</name>
|
1558 |
<full_name>_delete_single_item</full_name>
|
1559 |
+
<docblock line="858">
|
1560 |
<description><![CDATA[Delete a single item permanently.]]></description>
|
1561 |
<long-description><![CDATA[]]></long-description>
|
1562 |
+
<tag line="858" name="since" description="0.1"/>
|
1563 |
+
<tag line="858" name="param" description="The form POST data." type="array" variable="$post_id">
|
1564 |
<type by_reference="false">array</type>
|
1565 |
</tag>
|
1566 |
+
<tag line="858" name="return" description="success/failure message and NULL content" type="array">
|
1567 |
<type by_reference="false">array</type>
|
1568 |
</tag>
|
1569 |
</docblock>
|
1570 |
+
<argument line="866">
|
1571 |
<name>$post_id</name>
|
1572 |
<default><![CDATA[]]></default>
|
1573 |
<type/>
|
1574 |
</argument>
|
1575 |
</method>
|
1576 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="894" package="Media Library Assistant">
|
1577 |
<name>_display_single_item</name>
|
1578 |
<full_name>_display_single_item</full_name>
|
1579 |
+
<docblock line="885">
|
1580 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
1581 |
change the meta data for a single attachment.]]></description>
|
1582 |
<long-description><![CDATA[]]></long-description>
|
1583 |
+
<tag line="885" name="since" description="0.1"/>
|
1584 |
+
<tag line="885" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
|
1585 |
<type by_reference="false">int</type>
|
1586 |
</tag>
|
1587 |
+
<tag line="885" name="return" description="message and/or HTML content." type="array">
|
1588 |
<type by_reference="false">array</type>
|
1589 |
</tag>
|
1590 |
</docblock>
|
1591 |
+
<argument line="894">
|
1592 |
<name>$post_id</name>
|
1593 |
<default><![CDATA[]]></default>
|
1594 |
<type/>
|
1595 |
</argument>
|
1596 |
</method>
|
1597 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1089" package="Media Library Assistant">
|
1598 |
<name>_update_single_item</name>
|
1599 |
<full_name>_update_single_item</full_name>
|
1600 |
+
<docblock line="1078">
|
1601 |
<description><![CDATA[Update a single item; change the meta data
|
1602 |
for a single attachment.]]></description>
|
1603 |
<long-description><![CDATA[]]></long-description>
|
1604 |
+
<tag line="1078" name="since" description="0.1"/>
|
1605 |
+
<tag line="1078" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
1606 |
<type by_reference="false">int</type>
|
1607 |
</tag>
|
1608 |
+
<tag line="1078" name="param" description="Field name => value pairs" type="array" variable="$new_data">
|
1609 |
<type by_reference="false">array</type>
|
1610 |
</tag>
|
1611 |
+
<tag line="1078" name="param" description="Attachment Category and Tag values" type="array" variable="$tax_input">
|
1612 |
<type by_reference="false">array</type>
|
1613 |
</tag>
|
1614 |
+
<tag line="1078" name="return" description="success/failure message and NULL content" type="array">
|
1615 |
<type by_reference="false">array</type>
|
1616 |
</tag>
|
1617 |
</docblock>
|
1618 |
+
<argument line="1089">
|
1619 |
<name>$post_id</name>
|
1620 |
<default><![CDATA[]]></default>
|
1621 |
<type/>
|
1622 |
</argument>
|
1623 |
+
<argument line="1089">
|
1624 |
<name>$new_data</name>
|
1625 |
<default><![CDATA[]]></default>
|
1626 |
<type/>
|
1627 |
</argument>
|
1628 |
+
<argument line="1089">
|
1629 |
<name>$tax_input</name>
|
1630 |
+
<default><![CDATA[NULL]]></default>
|
1631 |
<type/>
|
1632 |
</argument>
|
1633 |
</method>
|
1634 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1232" package="Media Library Assistant">
|
1635 |
<name>_restore_single_item</name>
|
1636 |
<full_name>_restore_single_item</full_name>
|
1637 |
+
<docblock line="1223">
|
1638 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
1639 |
<long-description><![CDATA[]]></long-description>
|
1640 |
+
<tag line="1223" name="since" description="0.1"/>
|
1641 |
+
<tag line="1223" name="param" description="The form POST data" type="array" variable="$post_id">
|
1642 |
<type by_reference="false">array</type>
|
1643 |
</tag>
|
1644 |
+
<tag line="1223" name="return" description="success/failure message and NULL content" type="array">
|
1645 |
<type by_reference="false">array</type>
|
1646 |
</tag>
|
1647 |
</docblock>
|
1648 |
+
<argument line="1232">
|
1649 |
<name>$post_id</name>
|
1650 |
<default><![CDATA[]]></default>
|
1651 |
<type/>
|
1652 |
</argument>
|
1653 |
</method>
|
1654 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1267" package="Media Library Assistant">
|
1655 |
<name>_trash_single_item</name>
|
1656 |
<full_name>_trash_single_item</full_name>
|
1657 |
+
<docblock line="1259">
|
1658 |
<description><![CDATA[Move a single item to Trash]]></description>
|
1659 |
<long-description><![CDATA[]]></long-description>
|
1660 |
+
<tag line="1259" name="since" description="0.1"/>
|
1661 |
+
<tag line="1259" name="param" description="The form POST data" type="array" variable="$post_id">
|
1662 |
<type by_reference="false">array</type>
|
1663 |
</tag>
|
1664 |
+
<tag line="1259" name="return" description="success/failure message and NULL content" type="array">
|
1665 |
<type by_reference="false">array</type>
|
1666 |
</tag>
|
1667 |
</docblock>
|
1668 |
+
<argument line="1267">
|
1669 |
<name>$post_id</name>
|
1670 |
<default><![CDATA[]]></default>
|
1671 |
<type/>
|
1673 |
</method>
|
1674 |
</class>
|
1675 |
</file>
|
1676 |
+
<file path="includes\class-mla-objects.php" hash="99f38719ef9e84c20025c2c8334068c6" package="Media Library Assistant">
|
1677 |
+
<docblock line="2">
|
1678 |
+
<description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
|
1679 |
+
<long-description><![CDATA[]]></long-description>
|
1680 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
1681 |
+
<tag line="2" name="since" description="0.1"/>
|
1682 |
+
</docblock>
|
1683 |
+
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
1684 |
+
<extends/>
|
1685 |
+
<name>MLAObjects</name>
|
1686 |
+
<full_name>\MLAObjects</full_name>
|
1687 |
+
<docblock line="9">
|
1688 |
+
<description><![CDATA[Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags]]></description>
|
1689 |
+
<long-description><![CDATA[]]></long-description>
|
1690 |
+
<tag line="9" name="package" description="Media Library Assistant"/>
|
1691 |
+
<tag line="9" name="since" description="0.20"/>
|
1692 |
+
</docblock>
|
1693 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="21" package="Media Library Assistant">
|
1694 |
+
<name>initialize</name>
|
1695 |
+
<full_name>initialize</full_name>
|
1696 |
+
<docblock line="16">
|
1697 |
+
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
1698 |
+
<long-description><![CDATA[]]></long-description>
|
1699 |
+
<tag line="16" name="since" description="0.20"/>
|
1700 |
+
</docblock>
|
1701 |
+
</method>
|
1702 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="30" package="Media Library Assistant">
|
1703 |
+
<name>_build_taxonomies</name>
|
1704 |
+
<full_name>_build_taxonomies</full_name>
|
1705 |
+
<docblock line="25">
|
1706 |
+
<description><![CDATA[Registers Attachment Categories and Attachment Tags custom taxonomies, adds taxonomy-related filters]]></description>
|
1707 |
+
<long-description><![CDATA[]]></long-description>
|
1708 |
+
<tag line="25" name="since" description="0.1"/>
|
1709 |
+
</docblock>
|
1710 |
+
</method>
|
1711 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="105" package="Media Library Assistant">
|
1712 |
+
<name>mla_attachment_category_get_columns_filter</name>
|
1713 |
+
<full_name>mla_attachment_category_get_columns_filter</full_name>
|
1714 |
+
<docblock line="95">
|
1715 |
+
<description><![CDATA[WordPress Filter for Attachment Category "Attachments" column,
|
1716 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
|
1717 |
+
<long-description><![CDATA[]]></long-description>
|
1718 |
+
<tag line="95" name="since" description="0.1"/>
|
1719 |
+
<tag line="95" name="param" description="column definitions for the Attachment Category list table." type="array" variable="$columns">
|
1720 |
+
<type by_reference="false">array</type>
|
1721 |
+
</tag>
|
1722 |
+
<tag line="95" name="return" description="updated column definitions for the Attachment Category list table." type="array">
|
1723 |
+
<type by_reference="false">array</type>
|
1724 |
+
</tag>
|
1725 |
+
</docblock>
|
1726 |
+
<argument line="105">
|
1727 |
+
<name>$columns</name>
|
1728 |
+
<default><![CDATA[]]></default>
|
1729 |
+
<type/>
|
1730 |
+
</argument>
|
1731 |
+
</method>
|
1732 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="124" package="Media Library Assistant">
|
1733 |
+
<name>mla_attachment_category_column_filter</name>
|
1734 |
+
<full_name>mla_attachment_category_column_filter</full_name>
|
1735 |
+
<docblock line="111">
|
1736 |
+
<description><![CDATA[WordPress Filter for Attachment Category "Attachments" column,
|
1737 |
+
which returns a count of the attachments assigned a given category]]></description>
|
1738 |
+
<long-description><![CDATA[]]></long-description>
|
1739 |
+
<tag line="111" name="since" description="0.1"/>
|
1740 |
+
<tag line="111" name="param" description="unknown, undocumented parameter." type="string" variable="$place_holder">
|
1741 |
+
<type by_reference="false">string</type>
|
1742 |
+
</tag>
|
1743 |
+
<tag line="111" name="param" description="name of the column." type="array" variable="$column_name">
|
1744 |
+
<type by_reference="false">array</type>
|
1745 |
+
</tag>
|
1746 |
+
<tag line="111" name="param" description="ID of the term for which the count is desired." type="array" variable="$term_id">
|
1747 |
+
<type by_reference="false">array</type>
|
1748 |
+
</tag>
|
1749 |
+
<tag line="111" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them." type="array">
|
1750 |
+
<type by_reference="false">array</type>
|
1751 |
+
</tag>
|
1752 |
+
</docblock>
|
1753 |
+
<argument line="124">
|
1754 |
+
<name>$place_holder</name>
|
1755 |
+
<default><![CDATA[]]></default>
|
1756 |
+
<type/>
|
1757 |
+
</argument>
|
1758 |
+
<argument line="124">
|
1759 |
+
<name>$column_name</name>
|
1760 |
+
<default><![CDATA[]]></default>
|
1761 |
+
<type/>
|
1762 |
+
</argument>
|
1763 |
+
<argument line="124">
|
1764 |
+
<name>$term_id</name>
|
1765 |
+
<default><![CDATA[]]></default>
|
1766 |
+
<type/>
|
1767 |
+
</argument>
|
1768 |
+
</method>
|
1769 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="152" package="Media Library Assistant">
|
1770 |
+
<name>mla_attachment_tag_get_columns_filter</name>
|
1771 |
+
<full_name>mla_attachment_tag_get_columns_filter</full_name>
|
1772 |
+
<docblock line="142">
|
1773 |
+
<description><![CDATA[WordPress Filter for Attachment Tag "Attachments" column,
|
1774 |
+
which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
|
1775 |
+
<long-description><![CDATA[]]></long-description>
|
1776 |
+
<tag line="142" name="since" description="0.1"/>
|
1777 |
+
<tag line="142" name="param" description="column definitions for the Attachment Category list table." type="array" variable="$columns">
|
1778 |
+
<type by_reference="false">array</type>
|
1779 |
+
</tag>
|
1780 |
+
<tag line="142" name="return" description="updated column definitions for the Attachment Category list table." type="array">
|
1781 |
+
<type by_reference="false">array</type>
|
1782 |
+
</tag>
|
1783 |
+
</docblock>
|
1784 |
+
<argument line="152">
|
1785 |
+
<name>$columns</name>
|
1786 |
+
<default><![CDATA[]]></default>
|
1787 |
+
<type/>
|
1788 |
+
</argument>
|
1789 |
+
</method>
|
1790 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="171" package="Media Library Assistant">
|
1791 |
+
<name>mla_attachment_tag_column_filter</name>
|
1792 |
+
<full_name>mla_attachment_tag_column_filter</full_name>
|
1793 |
+
<docblock line="158">
|
1794 |
+
<description><![CDATA[WordPress Filter for Attachment Tag "Attachments" column,
|
1795 |
+
which returns a count of the attachments assigned a given tag]]></description>
|
1796 |
+
<long-description><![CDATA[]]></long-description>
|
1797 |
+
<tag line="158" name="since" description="0.1"/>
|
1798 |
+
<tag line="158" name="param" description="unknown, undocumented parameter" type="string" variable="$place_holder">
|
1799 |
+
<type by_reference="false">string</type>
|
1800 |
+
</tag>
|
1801 |
+
<tag line="158" name="param" description="name of the column" type="array" variable="$column_name">
|
1802 |
+
<type by_reference="false">array</type>
|
1803 |
+
</tag>
|
1804 |
+
<tag line="158" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
|
1805 |
+
<type by_reference="false">array</type>
|
1806 |
+
</tag>
|
1807 |
+
<tag line="158" name="return" description="HTML markup for the column content; number of attachments with the tag and alink to retrieve a list of them." type="array">
|
1808 |
+
<type by_reference="false">array</type>
|
1809 |
+
</tag>
|
1810 |
+
</docblock>
|
1811 |
+
<argument line="171">
|
1812 |
+
<name>$place_holder</name>
|
1813 |
+
<default><![CDATA[]]></default>
|
1814 |
+
<type/>
|
1815 |
+
</argument>
|
1816 |
+
<argument line="171">
|
1817 |
+
<name>$column_name</name>
|
1818 |
+
<default><![CDATA[]]></default>
|
1819 |
+
<type/>
|
1820 |
+
</argument>
|
1821 |
+
<argument line="171">
|
1822 |
+
<name>$term_id</name>
|
1823 |
+
<default><![CDATA[]]></default>
|
1824 |
+
<type/>
|
1825 |
+
</argument>
|
1826 |
+
</method>
|
1827 |
+
</class>
|
1828 |
+
</file>
|
1829 |
+
<file path="includes\class-mla-settings.php" hash="8eaf837bedde745e07174a87e6aba204" package="Media Library Assistant">
|
1830 |
<docblock line="2">
|
1831 |
<description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
|
1832 |
<long-description><![CDATA[]]></long-description>
|
1853 |
<long-description><![CDATA[]]></long-description>
|
1854 |
</docblock>
|
1855 |
</constant>
|
1856 |
+
<property final="false" static="true" visibility="private" line="37" namespace="global" package="Media Library Assistant">
|
1857 |
<name>$mla_options</name>
|
1858 |
<default><![CDATA[array('taxonomies' => array('name' => 'Pre-defined Taxonomies', 'type' => 'header'), 'attachment_category' => array('name' => 'Attachment Categories', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('name' => 'Attachment Tags', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'))]]></default>
|
1859 |
<docblock line="22">
|
1991 |
<name>mla_render_settings_page</name>
|
1992 |
<full_name>mla_render_settings_page</full_name>
|
1993 |
<docblock line="184">
|
1994 |
+
<description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
|
1995 |
<long-description><![CDATA[]]></long-description>
|
1996 |
<tag line="184" name="since" description="0.1"/>
|
1997 |
+
<tag line="184" name="return" description="Echoes HTML markup for the settings subpage" type="\nothing">
|
1998 |
+
<type by_reference="false">\nothing</type>
|
1999 |
</tag>
|
2000 |
</docblock>
|
2001 |
</method>
|
2002 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="394" package="Media Library Assistant">
|
2003 |
<name>_save_settings</name>
|
2004 |
<full_name>_save_settings</full_name>
|
2005 |
+
<docblock line="385">
|
2006 |
<description><![CDATA[Save settings to the options table]]></description>
|
2007 |
<long-description><![CDATA[]]></long-description>
|
2008 |
+
<tag line="385" name="since" description="0.1"/>
|
2009 |
+
<tag line="385" name="param" description="HTML template(s) for the settings page" type="array" variable="$template_array">
|
2010 |
<type by_reference="false">array</type>
|
2011 |
</tag>
|
2012 |
+
<tag line="385" name="return" description="Message(s) reflecting the results of the operation." type="array">
|
2013 |
<type by_reference="false">array</type>
|
2014 |
</tag>
|
2015 |
</docblock>
|
2016 |
+
<argument line="394">
|
2017 |
<name>$template_array</name>
|
2018 |
<default><![CDATA[]]></default>
|
2019 |
<type/>
|
2020 |
</argument>
|
2021 |
</method>
|
2022 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="470" package="Media Library Assistant">
|
2023 |
<name>_reset_settings</name>
|
2024 |
<full_name>_reset_settings</full_name>
|
2025 |
+
<docblock line="461">
|
2026 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
2027 |
<long-description><![CDATA[]]></long-description>
|
2028 |
+
<tag line="461" name="since" description="0.1"/>
|
2029 |
+
<tag line="461" name="param" description="HTML template(s) for the settings page" type="array" variable="$template_array">
|
2030 |
<type by_reference="false">array</type>
|
2031 |
</tag>
|
2032 |
+
<tag line="461" name="return" description="Message(s) reflecting the results of the operation." type="array">
|
2033 |
<type by_reference="false">array</type>
|
2034 |
</tag>
|
2035 |
</docblock>
|
2036 |
+
<argument line="470">
|
2037 |
<name>$template_array</name>
|
2038 |
<default><![CDATA[]]></default>
|
2039 |
<type/>
|
2041 |
</method>
|
2042 |
</class>
|
2043 |
</file>
|
2044 |
+
<file path="includes\class-mla-shortcodes.php" hash="5f3c91b78d2618020d8494baf1e69ca6" package="Media Library Assistant">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2045 |
<docblock line="2">
|
2046 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
2047 |
<long-description><![CDATA[]]></long-description>
|
2048 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
2049 |
<tag line="2" name="since" description="0.1"/>
|
2050 |
</docblock>
|
2051 |
+
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
2052 |
+
<extends/>
|
2053 |
+
<name>MLAShortcodes</name>
|
2054 |
+
<full_name>\MLAShortcodes</full_name>
|
2055 |
<docblock line="9">
|
2056 |
+
<description><![CDATA[Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available to MLA users]]></description>
|
2057 |
<long-description><![CDATA[]]></long-description>
|
2058 |
+
<tag line="9" name="package" description="Media Library Assistant"/>
|
2059 |
+
<tag line="9" name="since" description="0.20"/>
|
|
|
|
|
2060 |
</docblock>
|
2061 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="21" package="Media Library Assistant">
|
2062 |
+
<name>initialize</name>
|
2063 |
+
<full_name>initialize</full_name>
|
2064 |
+
<docblock line="16">
|
2065 |
+
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
2066 |
+
<long-description><![CDATA[]]></long-description>
|
2067 |
+
<tag line="16" name="since" description="0.20"/>
|
2068 |
+
</docblock>
|
2069 |
+
</method>
|
2070 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="32" package="Media Library Assistant">
|
2071 |
+
<name>mla_attachment_list_shortcode</name>
|
2072 |
+
<full_name>mla_attachment_list_shortcode</full_name>
|
2073 |
+
<docblock line="25">
|
2074 |
+
<description><![CDATA[WordPress Shortcode; renders a complete list of all attachments and references to them]]></description>
|
2075 |
+
<long-description><![CDATA[]]></long-description>
|
2076 |
+
<tag line="25" name="since" description="0.1"/>
|
2077 |
+
<tag line="25" name="return" description="HTML markup for the attachment list" type="string">
|
2078 |
+
<type by_reference="false">string</type>
|
2079 |
+
</tag>
|
2080 |
+
</docblock>
|
2081 |
+
</method>
|
2082 |
+
</class>
|
2083 |
</file>
|
2084 |
+
<file path="includes\mla-plugin-loader.php" hash="95152376c40f4600b6ceceb9aae2aef4" package="Media Library Assistant">
|
2085 |
<docblock line="2">
|
2086 |
+
<description><![CDATA[Media Library Assistant Plugin Loader]]></description>
|
2087 |
+
<long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
|
2088 |
+
This file is only loaded if the naming conflict tests in index.php are passed.</p>]]></long-description>
|
2089 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
2090 |
+
<tag line="2" name="since" description="0.20"/>
|
2091 |
</docblock>
|
2092 |
+
<include line="21" type="Require Once" package="Media Library Assistant">
|
2093 |
+
<name/>
|
2094 |
</include>
|
2095 |
+
<include line="28" type="Require Once" package="Media Library Assistant">
|
2096 |
+
<name/>
|
2097 |
</include>
|
2098 |
+
<include line="33" type="Require Once" package="Media Library Assistant">
|
2099 |
+
<name/>
|
2100 |
</include>
|
2101 |
+
<include line="40" type="Require Once" package="Media Library Assistant">
|
2102 |
+
<name/>
|
2103 |
</include>
|
2104 |
+
<include line="47" type="Require Once" package="Media Library Assistant">
|
2105 |
+
<name/>
|
2106 |
</include>
|
2107 |
+
<include line="52" type="Require Once" package="Media Library Assistant">
|
2108 |
+
<name/>
|
2109 |
</include>
|
2110 |
+
<include line="59" type="Require Once" package="Media Library Assistant">
|
2111 |
+
<name/>
|
2112 |
</include>
|
2113 |
+
<constant namespace="global" line="16" package="Media Library Assistant">
|
2114 |
+
<name>MLA_OPTION_PREFIX</name>
|
2115 |
+
<full_name>\MLA_OPTION_PREFIX</full_name>
|
2116 |
+
<value><![CDATA['mla_']]></value>
|
2117 |
+
<docblock line="13">
|
2118 |
+
<description><![CDATA[Gives a unique prefix for plugin options; can be set in wp-config.php]]></description>
|
2119 |
+
<long-description><![CDATA[]]></long-description>
|
2120 |
+
</docblock>
|
2121 |
+
</constant>
|
2122 |
+
</file>
|
2123 |
+
<file path="index.php" hash="bf35973899953517495c073954bbaf2c" package="Media Library Assistant">
|
2124 |
+
<docblock line="2">
|
2125 |
+
<description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
|
2126 |
+
<long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
2127 |
+
will the rest of the plugin be loaded and run.</p>]]></long-description>
|
2128 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
2129 |
+
<tag line="2" name="version" description="0.20"/>
|
2130 |
+
</docblock>
|
2131 |
+
<include line="103" type="Require Once" package="Media Library Assistant">
|
2132 |
+
<name>includes/mla-plugin-loader.php</name>
|
2133 |
+
</include>
|
2134 |
+
<constant namespace="global" line="35" package="Media Library Assistant">
|
2135 |
<name>MLA_PLUGIN_PATH</name>
|
2136 |
<full_name>\MLA_PLUGIN_PATH</full_name>
|
2137 |
<value><![CDATA[plugin_dir_path(__FILE__)]]></value>
|
2138 |
+
<docblock line="32">
|
2139 |
<description><![CDATA[Provides path information to the plugin root in file system format.]]></description>
|
2140 |
<long-description><![CDATA[]]></long-description>
|
2141 |
</docblock>
|
2142 |
</constant>
|
2143 |
+
<constant namespace="global" line="45" package="Media Library Assistant">
|
2144 |
<name>MLA_PLUGIN_URL</name>
|
2145 |
<full_name>\MLA_PLUGIN_URL</full_name>
|
2146 |
<value><![CDATA[plugin_dir_url(__FILE__)]]></value>
|
2147 |
+
<docblock line="42">
|
2148 |
<description><![CDATA[Provides path information to the plugin root in URL format.]]></description>
|
2149 |
<long-description><![CDATA[]]></long-description>
|
2150 |
</docblock>
|
2151 |
</constant>
|
2152 |
+
<function namespace="global" line="91" package="Media Library Assistant">
|
2153 |
+
<name>mla_name_conflict_reporting_action</name>
|
2154 |
+
<full_name>\mla_name_conflict_reporting_action</full_name>
|
2155 |
+
<docblock line="86">
|
2156 |
+
<description><![CDATA[Displays name conflict error messages at the top of the Dashboard]]></description>
|
|
|
2157 |
<long-description><![CDATA[]]></long-description>
|
2158 |
+
<tag line="86" name="since" description="0.20"/>
|
2159 |
</docblock>
|
2160 |
+
</function>
|
2161 |
</file>
|
2162 |
+
<file path="tests\class-mla-tests.php" hash="e7fea19f4ac0a6a492a595a6879c7f9c" package="Media Library Assistant">
|
2163 |
<docblock line="2">
|
2164 |
<description><![CDATA[Provides basic run-time tests to ensure the plugin can run in the current WordPress envrionment]]></description>
|
2165 |
<long-description><![CDATA[]]></long-description>
|
2235 |
</method>
|
2236 |
</class>
|
2237 |
</file>
|
|
|
2238 |
<package name="Media Library Assistant" full_name="Media Library Assistant"/>
|
2239 |
<namespace name="global" full_name="global"/>
|
2240 |
<marker count="0">todo</marker>
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.4.1
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -20,6 +20,7 @@ The Media Library Assistant provides several enhancements for managing the Media
|
|
20 |
* Allows you to edit the attachment name/slug and to "unattach" items
|
21 |
* Supports custom taxonomies, including pre-defined support for Attachment Categories and Attachment Tags
|
22 |
* Provides additional view filters for mime types and Attachment Categories
|
|
|
23 |
|
24 |
The Assistant is designed to work like the standard Media Library pages, so the learning curve is short and gentle. Contextual help is provided on every new screen to highlight new features.
|
25 |
|
@@ -63,6 +64,18 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
63 |
|
64 |
== Changelog ==
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
= 0.11 =
|
67 |
* Fix: Changed admin URL references from relative (/wp-admin/...) to absolute, using admin_url().
|
68 |
* Fix: Changed wp_nonce_field() calls to suppress duplicate output of nonce field variables.
|
@@ -73,8 +86,20 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
73 |
|
74 |
== Upgrade Notice ==
|
75 |
|
|
|
|
|
|
|
76 |
= 0.11 =
|
77 |
You should upgrade to this version if you are getting "404 Not Found" errors when updating single items.
|
78 |
|
79 |
= 0.1 =
|
80 |
Initial release.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.4.1
|
7 |
+
Stable tag: 0.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
20 |
* Allows you to edit the attachment name/slug and to "unattach" items
|
21 |
* Supports custom taxonomies, including pre-defined support for Attachment Categories and Attachment Tags
|
22 |
* Provides additional view filters for mime types and Attachment Categories
|
23 |
+
* Has an inline "Quick Edit" action for many common fields.
|
24 |
|
25 |
The Assistant is designed to work like the standard Media Library pages, so the learning curve is short and gentle. Contextual help is provided on every new screen to highlight new features.
|
26 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 0.20 =
|
68 |
+
* New: Quick Edit action for inline editing of attachment metadata
|
69 |
+
* New: Post Author can be changed
|
70 |
+
* New: Hyperlink to phpDocs documentation added to Settings page
|
71 |
+
* New: Shortcode documentation added to settings page
|
72 |
+
* New: Some book credits added to the "Other Notes" section
|
73 |
+
* Change: Minified version of JavaScript files are loaded unless 'SCRIPT_DEBUG' is defined as true in wp-config.php
|
74 |
+
* Change: Global functions moved into classes to minimize the chance of name conflicts
|
75 |
+
* Change: All class, function and constant names are now checked for conflicts with other plugins and themes
|
76 |
+
* Fix: Retain pagination values, e.g., page 3 of 5, when returning from row-level actions
|
77 |
+
* Fix: Retain orderby and order values, e.g., descending sort on date, when returning from row-level actions
|
78 |
+
|
79 |
= 0.11 =
|
80 |
* Fix: Changed admin URL references from relative (/wp-admin/...) to absolute, using admin_url().
|
81 |
* Fix: Changed wp_nonce_field() calls to suppress duplicate output of nonce field variables.
|
86 |
|
87 |
== Upgrade Notice ==
|
88 |
|
89 |
+
= 0.20 =
|
90 |
+
You should upgrade to this version if you need "Quick Edit" functionality.
|
91 |
+
|
92 |
= 0.11 =
|
93 |
You should upgrade to this version if you are getting "404 Not Found" errors when updating single items.
|
94 |
|
95 |
= 0.1 =
|
96 |
Initial release.
|
97 |
+
|
98 |
+
= Other Notes =
|
99 |
+
|
100 |
+
I have used and learned much from the following books (among many):
|
101 |
+
|
102 |
+
* Professional WordPress; Design and Development, by Hal Stern, David Damstra and Brad Williams (Apr 5, 2010) ISBN-13: 978-0470560549
|
103 |
+
* Professional WordPress Plugin Development, by Brad Williams, Ozh Richard and Justin Tadlock (Mar 15, 2011) ISBN-13: 978-0470916223
|
104 |
+
* WordPress 3 Plugin Development Essentials, by Brian Bondari and Everett Griffiths (Mar 24, 2011) ISBN-13: 978-1849513524
|
105 |
+
* WordPress and Ajax, by Ronald Huereca (Jan 13, 2011) ISBN-13: 978-1451598650
|
tests/class-mla-tests.php
CHANGED
@@ -5,55 +5,54 @@
|
|
5 |
* @package Media Library Assistant
|
6 |
* @since 0.1
|
7 |
*/
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
/**
|
10 |
-
*
|
11 |
-
* to ensure the plugin can run in the current WordPress envrionment.
|
12 |
*
|
13 |
-
* @package Media Library Assistant
|
14 |
* @since 0.1
|
|
|
|
|
|
|
|
|
|
|
15 |
*/
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
* @since 0.1
|
21 |
-
*
|
22 |
-
* @param string representing the minimum required version of PHP, e.g. '5.3.2'
|
23 |
-
* @param string Name of the plugin for messaging purposes
|
24 |
-
*
|
25 |
-
* @return none Exit with messaging if PHP version is too old
|
26 |
-
*/
|
27 |
-
public static function min_php_version( $min_version, $plugin_name )
|
28 |
-
{
|
29 |
-
$current_version = phpversion();
|
30 |
-
$exit_msg = sprintf( 'The "%1$s" plugin requires PHP %2$s or newer; you have %3$s.<br />Contact your system administrator about updating your version of PHP.', /*$1%s*/ $plugin_name, /*$2%s*/ $min_version, /*$3%s*/ $current_version );
|
31 |
-
|
32 |
-
if ( version_compare( $current_version, $min_version, '<' ) ) {
|
33 |
-
wp_die( $exit_msg );
|
34 |
-
}
|
35 |
-
}
|
36 |
|
37 |
-
|
38 |
-
|
39 |
-
*
|
40 |
-
* @since 0.1
|
41 |
-
*
|
42 |
-
* @param string representing the minimum required version of WordPress, e.g. '3.3.0'
|
43 |
-
* @param string Name of the plugin for messaging purposes
|
44 |
-
*
|
45 |
-
* @return none Exit with messaging if version is too old
|
46 |
-
*/
|
47 |
-
public static function min_WordPress_version( $min_version, $plugin_name )
|
48 |
-
{
|
49 |
-
$current_version = get_bloginfo( 'version' );
|
50 |
-
$exit_msg = sprintf( 'The "%1$s" plugin requires WordPress %2$s or newer; you have %3$s.<br />Contact your system administrator about updating your version of WordPress.', /*$1%s*/ $plugin_name, /*$2%s*/ $min_version, /*$3%s*/ $current_version );
|
51 |
-
|
52 |
-
if ( version_compare( $current_version, $min_version, '<' ) ) {
|
53 |
-
wp_die( $exit_msg );
|
54 |
-
}
|
55 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
|
59 |
?>
|
5 |
* @package Media Library Assistant
|
6 |
* @since 0.1
|
7 |
*/
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class MLA (Media Library Assistant) Test provides basic run-time tests
|
11 |
+
* to ensure the plugin can run in the current WordPress envrionment.
|
12 |
+
*
|
13 |
+
* @package Media Library Assistant
|
14 |
+
* @since 0.1
|
15 |
+
*/
|
16 |
+
class MLATest {
|
17 |
/**
|
18 |
+
* Test that your PHP version is at least that of the $min_php_version
|
|
|
19 |
*
|
|
|
20 |
* @since 0.1
|
21 |
+
*
|
22 |
+
* @param string representing the minimum required version of PHP, e.g. '5.3.2'
|
23 |
+
* @param string Name of the plugin for messaging purposes
|
24 |
+
*
|
25 |
+
* @return none Exit with messaging if PHP version is too old
|
26 |
*/
|
27 |
+
public static function min_php_version( $min_version, $plugin_name )
|
28 |
+
{
|
29 |
+
$current_version = phpversion();
|
30 |
+
$exit_msg = sprintf( 'The "%1$s" plugin requires PHP %2$s or newer; you have %3$s.<br />Contact your system administrator about updating your version of PHP.', /*$1%s*/ $plugin_name, /*$2%s*/ $min_version, /*$3%s*/ $current_version );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
+
if ( version_compare( $current_version, $min_version, '<' ) ) {
|
33 |
+
wp_die( $exit_msg );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
+
}
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Test that your WordPress version is at least that of the $min_version
|
39 |
+
*
|
40 |
+
* @since 0.1
|
41 |
+
*
|
42 |
+
* @param string representing the minimum required version of WordPress, e.g. '3.3.0'
|
43 |
+
* @param string Name of the plugin for messaging purposes
|
44 |
+
*
|
45 |
+
* @return none Exit with messaging if version is too old
|
46 |
+
*/
|
47 |
+
public static function min_WordPress_version( $min_version, $plugin_name )
|
48 |
+
{
|
49 |
+
$current_version = get_bloginfo( 'version' );
|
50 |
+
$exit_msg = sprintf( 'The "%1$s" plugin requires WordPress %2$s or newer; you have %3$s.<br />Contact your system administrator about updating your version of WordPress.', /*$1%s*/ $plugin_name, /*$2%s*/ $min_version, /*$3%s*/ $current_version );
|
51 |
|
52 |
+
if ( version_compare( $current_version, $min_version, '<' ) ) {
|
53 |
+
wp_die( $exit_msg );
|
54 |
+
}
|
55 |
+
}
|
56 |
+
|
57 |
+
} // class MLATest
|
58 |
?>
|
tpls/admin-display-settings-page.tpl
CHANGED
@@ -58,11 +58,21 @@
|
|
58 |
<p>
|
59 |
[+messages+]
|
60 |
</p></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<!-- template="page" -->
|
62 |
<div class="wrap">
|
63 |
<div id="icon-options-general" class="icon32"><br/></div>
|
64 |
<h2>Media Library Assistant Settings</h2>
|
65 |
[+messages+]
|
|
|
66 |
<form method="post" class="mla-display-settings-page" id="mla-display-settings-page-id">
|
67 |
<table class="optiontable">
|
68 |
[+options_list+]
|
@@ -72,4 +82,9 @@
|
|
72 |
<input name="reset" type="submit" class="button-primary" value="Delete all options and restore default settings" style="float:right;"/>
|
73 |
</p>
|
74 |
</form>
|
|
|
|
|
|
|
|
|
|
|
75 |
</div>
|
58 |
<p>
|
59 |
[+messages+]
|
60 |
</p></div>
|
61 |
+
<!-- template="shortcodelist" -->
|
62 |
+
<div id="mla-shortcode-list" style="width: 90%; padding-left: 5%; ">
|
63 |
+
<p>Shortcodes made available by this plugin:</p>
|
64 |
+
<ol>
|
65 |
+
[+shortcode_list+]
|
66 |
+
</ol>
|
67 |
+
</div>
|
68 |
+
<!-- template="shortcodeitem" -->
|
69 |
+
<li><code>[[+name+]]</code> - [+description+]</li>
|
70 |
<!-- template="page" -->
|
71 |
<div class="wrap">
|
72 |
<div id="icon-options-general" class="icon32"><br/></div>
|
73 |
<h2>Media Library Assistant Settings</h2>
|
74 |
[+messages+]
|
75 |
+
[+shortcode_list+]
|
76 |
<form method="post" class="mla-display-settings-page" id="mla-display-settings-page-id">
|
77 |
<table class="optiontable">
|
78 |
[+options_list+]
|
82 |
<input name="reset" type="submit" class="button-primary" value="Delete all options and restore default settings" style="float:right;"/>
|
83 |
</p>
|
84 |
</form>
|
85 |
+
<h3>Plugin Documentation</h3>
|
86 |
+
<p>
|
87 |
+
If you are a developer interested in how this plugin is put together, you should
|
88 |
+
have a look at the <a title="Consult the phpDocs documentation" href="[+phpDocs_url+]" target="_blank">phpDocs documentation</a>.
|
89 |
+
</p>
|
90 |
</div>
|
tpls/admin-display-single-document.tpl
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<!-- template="postbox" -->
|
2 |
<div id="[+id+]" class="postbox" >
|
3 |
<div class="handlediv" title="Click to toggle"><br /></div><h3 class='hndle'><span>[+title+]</span></h3>
|
@@ -11,7 +16,7 @@
|
|
11 |
<input type="hidden" name="attachments[[+ID+]][menu_order]" value="[+menu_order+]" />
|
12 |
<input type="hidden" name="mla_admin_action" value="[+mla_admin_action+]" />
|
13 |
<input type="hidden" name="mla_item_ID" value="[+ID+]" />
|
14 |
-
[+view_args+][+
|
15 |
<p class="submit" style="padding-bottom: 0;">
|
16 |
<input name="update" type="submit" class="button-primary" value="Update" />
|
17 |
<input name="cancel" type="submit" class="button-primary" value="Cancel" />
|
@@ -54,6 +59,7 @@
|
|
54 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
|
55 |
<td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
|
56 |
</tr>
|
|
|
57 |
<tr class='image_url'>
|
58 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
|
59 |
<td class='field'><input type='text' class='text urlfield' readonly='readonly' name='attachments[[+ID+]][url]' value='[+guid+]' /><br /><p class='help'>Location of the uploaded file.</p></td>
|
1 |
+
<!-- template="authors" -->
|
2 |
+
<tr class='post_author'>
|
3 |
+
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][post_author]'><span class='alignleft'>Author</span><br class='clear' /></label></th>
|
4 |
+
<td class='field'>[+authors+]</td>
|
5 |
+
</tr>
|
6 |
<!-- template="postbox" -->
|
7 |
<div id="[+id+]" class="postbox" >
|
8 |
<div class="handlediv" title="Click to toggle"><br /></div><h3 class='hndle'><span>[+title+]</span></h3>
|
16 |
<input type="hidden" name="attachments[[+ID+]][menu_order]" value="[+menu_order+]" />
|
17 |
<input type="hidden" name="mla_admin_action" value="[+mla_admin_action+]" />
|
18 |
<input type="hidden" name="mla_item_ID" value="[+ID+]" />
|
19 |
+
[+view_args+][+wpnonce+]
|
20 |
<p class="submit" style="padding-bottom: 0;">
|
21 |
<input name="update" type="submit" class="button-primary" value="Update" />
|
22 |
<input name="cancel" type="submit" class="button-primary" value="Cancel" />
|
59 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
|
60 |
<td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
|
61 |
</tr>
|
62 |
+
[+authors+]
|
63 |
<tr class='image_url'>
|
64 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
|
65 |
<td class='field'><input type='text' class='text urlfield' readonly='readonly' name='attachments[[+ID+]][url]' value='[+guid+]' /><br /><p class='help'>Location of the uploaded file.</p></td>
|
tpls/admin-display-single-image.tpl
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<!-- template="postbox" -->
|
2 |
<div id="[+id+]" class="postbox" >
|
3 |
<div class="handlediv" title="Click to toggle"><br /></div><h3 class='hndle'><span>[+title+]</span></h3>
|
@@ -11,7 +16,7 @@
|
|
11 |
<input type="hidden" name="attachments[[+ID+]][menu_order]" value="[+menu_order+]" />
|
12 |
<input type="hidden" name="mla_admin_action" value="[+mla_admin_action+]" />
|
13 |
<input type="hidden" name="mla_item_ID" value="[+ID+]" />
|
14 |
-
[+view_args+][+
|
15 |
<p class="submit" style="padding-bottom: 0;">
|
16 |
<input name="update" type="submit" class="button-primary" value="Update" />
|
17 |
<input name="cancel" type="submit" class="button-primary" value="Cancel" />
|
@@ -59,6 +64,7 @@
|
|
59 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
|
60 |
<td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
|
61 |
</tr>
|
|
|
62 |
<tr class='image_url'>
|
63 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
|
64 |
<td class='field'><input type='text' class='text urlfield' readonly='readonly' name='attachments[[+ID+]][image_url]' value='[+guid+]' /><br /><p class='help'>Location of the uploaded file.</p></td>
|
1 |
+
<!-- template="authors" -->
|
2 |
+
<tr class='post_author'>
|
3 |
+
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][post_author]'><span class='alignleft'>Author</span><br class='clear' /></label></th>
|
4 |
+
<td class='field'>[+authors+]</td>
|
5 |
+
</tr>
|
6 |
<!-- template="postbox" -->
|
7 |
<div id="[+id+]" class="postbox" >
|
8 |
<div class="handlediv" title="Click to toggle"><br /></div><h3 class='hndle'><span>[+title+]</span></h3>
|
16 |
<input type="hidden" name="attachments[[+ID+]][menu_order]" value="[+menu_order+]" />
|
17 |
<input type="hidden" name="mla_admin_action" value="[+mla_admin_action+]" />
|
18 |
<input type="hidden" name="mla_item_ID" value="[+ID+]" />
|
19 |
+
[+view_args+][+wpnonce+]
|
20 |
<p class="submit" style="padding-bottom: 0;">
|
21 |
<input name="update" type="submit" class="button-primary" value="Update" />
|
22 |
<input name="cancel" type="submit" class="button-primary" value="Cancel" />
|
64 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][parent_info]'><span class='alignleft'>Parent Info</span><br class='clear' /></label></th>
|
65 |
<td class='field'><table><tr><td style="width: 50px; vertical-align:top" ><input type='text' class='text' name='attachments[[+ID+]][post_parent]' value='[+post_parent+]' /></td><td><input type='text' class='text' readonly='readonly' name='attachments[[+ID+]][parent_info]' value='[+parent_info+]' /></td></tr><tr><td colspan="2"><p class='help'>ID, type and title of parent, if any.</p></td></tr></table></td>
|
66 |
</tr>
|
67 |
+
[+authors+]
|
68 |
<tr class='image_url'>
|
69 |
<th valign='top' scope='row' class='label'><label for='attachments[[+ID+]][image_url]'><span class='alignleft'>File URL</span><br class='clear' /></label></th>
|
70 |
<td class='field'><input type='text' class='text urlfield' readonly='readonly' name='attachments[[+ID+]][image_url]' value='[+guid+]' /><br /><p class='help'>Location of the uploaded file.</p></td>
|
tpls/admin-inline-edit-form.tpl
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- template="category_fieldset" -->
|
2 |
+
<fieldset class="inline-edit-col-center inline-edit-categories"><div class="inline-edit-col">
|
3 |
+
[+category_blocks+] </div></fieldset>
|
4 |
+
<!-- template="category_block" -->
|
5 |
+
<span class="title inline-edit-categories-label">[+tax_html+]
|
6 |
+
<span class="catshow">[more]</span>
|
7 |
+
<span class="cathide" style="display:none;">[less]</span>
|
8 |
+
</span>
|
9 |
+
<input type="hidden" name="tax_input[[+tax_attr+]][]" value="0" />
|
10 |
+
<ul class="cat-checklist [+tax_attr+]-checklist">
|
11 |
+
[+tax_checklist+]
|
12 |
+
</ul>
|
13 |
+
|
14 |
+
<!-- template="tag_fieldset" -->
|
15 |
+
<fieldset class="inline-edit-col-right"><div class="inline-edit-col">
|
16 |
+
[+tag_blocks+] </div></fieldset>
|
17 |
+
<!-- template="tag_block" -->
|
18 |
+
<label class="inline-edit-tags">
|
19 |
+
<span class="title">[+tax_html+]</span>
|
20 |
+
<textarea cols="22" rows="1" name="tax_input[[+tax_attr+]]" class="tax_input_[+tax_attr+]"></textarea>
|
21 |
+
</label>
|
22 |
+
|
23 |
+
<!-- template="page" -->
|
24 |
+
<form method="get" action="">
|
25 |
+
<table style="display: none">
|
26 |
+
<tbody id="inlineedit">
|
27 |
+
<tr id="inline-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment quick-edit-row quick-edit-row-attachment inline-edit-attachment" style="display: none">
|
28 |
+
<td colspan="[+colspan+]" class="colspanchange">
|
29 |
+
<fieldset class="inline-edit-col-left">
|
30 |
+
<div class="inline-edit-col">
|
31 |
+
<h4>Quick Edit</h4>
|
32 |
+
<label> <span class="title">Title</span> <span class="input-text-wrap">
|
33 |
+
<input type="text" name="post_title" class="ptitle" value="" />
|
34 |
+
</span> </label>
|
35 |
+
<label> <span class="title">Name/Slug</span> <span class="input-text-wrap">
|
36 |
+
<input type="text" name="post_name" value="" />
|
37 |
+
</span> </label>
|
38 |
+
<label class="inline-edit-image-alt"> <span class="title">Alt Text</span> <span class="input-text-wrap">
|
39 |
+
<input type="text" name="image_alt" value="" />
|
40 |
+
</span> </label>
|
41 |
+
<label class="inline-edit-post-parent"> <span class="title">Parent ID</span> <span class="input-text-wrap">
|
42 |
+
<input type="text" name="post_parent" value="" />
|
43 |
+
</span> </label>
|
44 |
+
[+authors+]
|
45 |
+
</fieldset>
|
46 |
+
[+middle_column+]
|
47 |
+
[+right_column+]
|
48 |
+
<p class="submit inline-edit-save">
|
49 |
+
<a accesskey="c" href="#inline-edit" title="Cancel" class="button-secondary cancel alignleft">Cancel</a>
|
50 |
+
<a accesskey="s" href="#inline-edit" title="Update" class="button-primary save alignright">Update</a>
|
51 |
+
<input type="hidden" name="page" value="mla-menu" />
|
52 |
+
<input type="hidden" name="screen" value="media_page_mla-menu" />
|
53 |
+
<br class="clear" />
|
54 |
+
<span class="error" style="display:none"></span>
|
55 |
+
</p>
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
</tbody>
|
59 |
+
</table>
|
60 |
+
</form>
|
61 |
+
|
tpls/help-for-media_page_mla-menu.tpl
CHANGED
@@ -19,10 +19,10 @@
|
|
19 |
<p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
|
20 |
<!-- template="mla-available-actions" -->
|
21 |
<!-- title="Available Actions" order="5" -->
|
22 |
-
<p>Hovering over a row reveals action links such as Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file’s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached).</p>
|
23 |
<!-- template="mla-attaching-files" -->
|
24 |
<!-- title="Attaching Files" order="6" -->
|
25 |
-
<p>If a media file has not been attached to any post, you will see
|
26 |
<!-- template="sidebar" -->
|
27 |
<p><strong>For more information:</strong></p>
|
28 |
<p><a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a></p>
|
19 |
<p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
|
20 |
<!-- template="mla-available-actions" -->
|
21 |
<!-- title="Available Actions" order="5" -->
|
22 |
+
<p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file’s metadata. Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached).</p>
|
23 |
<!-- template="mla-attaching-files" -->
|
24 |
<!-- title="Attaching Files" order="6" -->
|
25 |
+
<p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field.</p>
|
26 |
<!-- template="sidebar" -->
|
27 |
<p><strong>For more information:</strong></p>
|
28 |
<p><a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Documentation on Media Library</a></p>
|