Version Description
- New: Any custom field can be added as a sortable, searchable (click on a value to filter the table display) column in the Media/Assistant submenu. Custom fields can also be added to the quick edit and bulk edit areas. Use the Settings/Media Library Assistant Custom Field tab to control all three uses.
- New: Access to EXIF data expanded to include the COMPUTED, THUMBNAIL and COMMENT arrays. Pseudo-values
ALL_EXIF
andALL_IPTC
added. Details in the Other Notes section and the Settings/Media Library Assistant Documentation tab. - New: For the
[mla_gallery]
shortcode,mla_viewer=true
and related parameters can be coded to supply thumbnail images for non-image file types pdf, txt, doc, xls and ppt using the Google File Viewer. - New: For the
[mla_gallery]
shortcode,post_parent=none
orpost_parent=any
can be coded to restrict gallery output to unattached or attached items respectively. - New: For the
[mla_gallery]
shortcode,mla_style=none
parameter can be coded to suppress the inline CSS styles added to gallery output. - Fix: Corrected occasional error in field-level markup substitution using the
exif
prefix. - Fix: Corrected error in Custom Field Mapping of
_wp_attachment_metadata
during Media/Add New processing.
Download this release
Release Info
Developer | dglingren |
Plugin | Media Library Assistant |
Version | 1.13 |
Comparing to | |
See all releases |
Code changes from version 1.11 to 1.13
- includes/class-mla-data.php +76 -16
- includes/class-mla-list-table.php +40 -15
- includes/class-mla-main.php +95 -5
- includes/class-mla-options.php +82 -25
- includes/class-mla-settings.php +15 -0
- includes/class-mla-shortcodes.php +89 -21
- index.php +2 -2
- js/mla-inline-edit-scripts.js +2 -6
- js/mla-inline-edit-scripts.min.js +1 -1
- phpDocs/classes/MLA.html +27 -1
- phpDocs/classes/MLAData.html +29 -2
- phpDocs/classes/MLAEdit.html +1 -1
- phpDocs/classes/MLAObjects.html +1 -1
- phpDocs/classes/MLAOptions.html +3 -3
- phpDocs/classes/MLASettings.html +1 -1
- phpDocs/classes/MLAShortcodes.html +19 -1
- phpDocs/classes/MLATest.html +1 -1
- phpDocs/classes/MLA_List_Table.html +1 -1
- phpDocs/deprecated.html +1 -1
- phpDocs/errors.html +1 -1
- phpDocs/graph_class.html +1 -1
- phpDocs/index.html +1 -1
- phpDocs/markers.html +1 -1
- phpDocs/namespaces/global.html +1 -1
- phpDocs/packages/Media Library Assistant.html +1 -1
- phpDocs/structure.xml +888 -814
- readme.txt +55 -174
- tpls/admin-display-settings-page.tpl +4 -1
- tpls/admin-inline-edit-form.tpl +6 -0
- tpls/documentation-settings-tab.tpl +56 -8
- tpls/mla-option-templates.tpl +25 -1
includes/class-mla-data.php
CHANGED
@@ -279,6 +279,8 @@ class MLAData {
|
|
279 |
* The parameters are set up in the _prepare_list_table_query function, and
|
280 |
* any further logic required to translate those values is contained in the filters.
|
281 |
*
|
|
|
|
|
282 |
* @since 0.30
|
283 |
*
|
284 |
* @var array
|
@@ -393,6 +395,10 @@ class MLAData {
|
|
393 |
case 'mla-search-fields':
|
394 |
$clean_request[ $key ] = $value;
|
395 |
break;
|
|
|
|
|
|
|
|
|
396 |
default:
|
397 |
// ignore anything else in $_REQUEST
|
398 |
} // switch $key
|
@@ -401,7 +407,7 @@ class MLAData {
|
|
401 |
/*
|
402 |
* Pass query parameters to the filters for _execute_list_table_query
|
403 |
*/
|
404 |
-
self::$query_parameters = array( '
|
405 |
self::$query_parameters['detached'] = isset( $clean_request['detached'] );
|
406 |
self::$query_parameters['orderby'] = $clean_request['orderby'];
|
407 |
self::$query_parameters['order'] = $clean_request['order'];
|
@@ -419,7 +425,8 @@ class MLAData {
|
|
419 |
self::$query_parameters['exact'] = isset( $clean_request['exact'] );
|
420 |
|
421 |
if ( in_array( 'alt-text', self::$query_parameters['mla-search-fields'] ) )
|
422 |
-
self::$query_parameters['
|
|
|
423 |
} // !empty
|
424 |
|
425 |
unset( $clean_request['s'] );
|
@@ -436,9 +443,12 @@ class MLAData {
|
|
436 |
if ( 'c_' == substr( self::$query_parameters['orderby'], 0, 2 ) ) {
|
437 |
$option_value = MLAOptions::mla_custom_field_option_value( self::$query_parameters['orderby'] );
|
438 |
if ( isset( $option_value['name'] ) ) {
|
439 |
-
|
440 |
-
|
441 |
-
$clean_request['
|
|
|
|
|
|
|
442 |
}
|
443 |
} // custom field
|
444 |
else {
|
@@ -447,7 +457,8 @@ class MLAData {
|
|
447 |
* '_wp_attachment_image_alt' is special; we'll handle it in the JOIN and ORDERBY filters
|
448 |
*/
|
449 |
case '_wp_attachment_image_alt':
|
450 |
-
self::$query_parameters['
|
|
|
451 |
if ( isset($clean_request['orderby']) )
|
452 |
unset($clean_request['orderby']);
|
453 |
if ( isset($clean_request['order']) )
|
@@ -508,7 +519,7 @@ class MLAData {
|
|
508 |
unset( $clean_request['mla_filter_term'] );
|
509 |
} // isset mla_filter_term
|
510 |
|
511 |
-
if ( isset( $clean_request['mla-tax'] ) ) {
|
512 |
$clean_request['tax_query'] = array(
|
513 |
array(
|
514 |
'taxonomy' => $clean_request['mla-tax'],
|
@@ -522,6 +533,14 @@ class MLAData {
|
|
522 |
unset( $clean_request['mla-term'] );
|
523 |
} // isset mla_tax
|
524 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
525 |
return $clean_request;
|
526 |
}
|
527 |
|
@@ -538,12 +557,13 @@ class MLAData {
|
|
538 |
global $wpdb, $table_prefix;
|
539 |
|
540 |
/*
|
541 |
-
*
|
542 |
* an intermediate table and modify the JOIN to include posts
|
543 |
-
* with no value for
|
544 |
*/
|
545 |
-
if ( self::$query_parameters['
|
546 |
$view_name = self::$mla_alt_text_view;
|
|
|
547 |
$table_name = $table_prefix . 'postmeta';
|
548 |
|
549 |
$result = $wpdb->query(
|
@@ -551,7 +571,7 @@ class MLAData {
|
|
551 |
CREATE OR REPLACE VIEW {$view_name} AS
|
552 |
SELECT post_id, meta_value
|
553 |
FROM {$table_name}
|
554 |
-
WHERE {$table_name}.meta_key = '
|
555 |
"
|
556 |
);
|
557 |
}
|
@@ -568,7 +588,7 @@ class MLAData {
|
|
568 |
remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
|
569 |
remove_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter' );
|
570 |
|
571 |
-
if ( self::$query_parameters['
|
572 |
$result = $wpdb->query( "DROP VIEW {$view_name}" );
|
573 |
}
|
574 |
|
@@ -674,7 +694,7 @@ class MLAData {
|
|
674 |
* build an intermediate table and modify the JOIN to include posts with
|
675 |
* no value for this metadata field.
|
676 |
*/
|
677 |
-
if ( self::$query_parameters['
|
678 |
$view_name = self::$mla_alt_text_view;
|
679 |
$join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
|
680 |
}
|
@@ -720,7 +740,7 @@ class MLAData {
|
|
720 |
|
721 |
if ( isset( self::$query_parameters['orderby'] ) ) {
|
722 |
if ( 'c_' == substr( self::$query_parameters['orderby'], 0, 2 ) ) {
|
723 |
-
$orderby =
|
724 |
} // custom field sort
|
725 |
else {
|
726 |
switch ( self::$query_parameters['orderby'] ) {
|
@@ -1346,6 +1366,37 @@ class MLAData {
|
|
1346 |
return $gallery_refs;
|
1347 |
}
|
1348 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1349 |
/**
|
1350 |
* Fetch and filter IPTC and EXIF meta data for an image attachment
|
1351 |
*
|
@@ -1364,8 +1415,6 @@ class MLAData {
|
|
1364 |
'mla_exif_metadata' => array()
|
1365 |
);
|
1366 |
|
1367 |
-
// $post_meta = get_metadata( 'post', $post_id, '_wp_attachment_metadata' );
|
1368 |
-
// if ( is_array( $post_meta ) && isset( $post_meta[0]['file'] ) ) {
|
1369 |
if ( 0 != $post_id )
|
1370 |
$path = get_attached_file($post_id);
|
1371 |
|
@@ -1399,6 +1448,17 @@ class MLAData {
|
|
1399 |
}
|
1400 |
}
|
1401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1402 |
return $results;
|
1403 |
}
|
1404 |
|
279 |
* The parameters are set up in the _prepare_list_table_query function, and
|
280 |
* any further logic required to translate those values is contained in the filters.
|
281 |
*
|
282 |
+
* Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla-search-connector, mla-search-fields, sentence, exact
|
283 |
+
*
|
284 |
* @since 0.30
|
285 |
*
|
286 |
* @var array
|
395 |
case 'mla-search-fields':
|
396 |
$clean_request[ $key ] = $value;
|
397 |
break;
|
398 |
+
case 'mla-metakey':
|
399 |
+
case 'mla-metavalue':
|
400 |
+
$clean_request[ $key ] = stripslashes( $value );
|
401 |
+
break;
|
402 |
default:
|
403 |
// ignore anything else in $_REQUEST
|
404 |
} // switch $key
|
407 |
/*
|
408 |
* Pass query parameters to the filters for _execute_list_table_query
|
409 |
*/
|
410 |
+
self::$query_parameters = array( 'use_postmeta_view' => false );
|
411 |
self::$query_parameters['detached'] = isset( $clean_request['detached'] );
|
412 |
self::$query_parameters['orderby'] = $clean_request['orderby'];
|
413 |
self::$query_parameters['order'] = $clean_request['order'];
|
425 |
self::$query_parameters['exact'] = isset( $clean_request['exact'] );
|
426 |
|
427 |
if ( in_array( 'alt-text', self::$query_parameters['mla-search-fields'] ) )
|
428 |
+
self::$query_parameters['use_postmeta_view'] = true;
|
429 |
+
self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
|
430 |
} // !empty
|
431 |
|
432 |
unset( $clean_request['s'] );
|
443 |
if ( 'c_' == substr( self::$query_parameters['orderby'], 0, 2 ) ) {
|
444 |
$option_value = MLAOptions::mla_custom_field_option_value( self::$query_parameters['orderby'] );
|
445 |
if ( isset( $option_value['name'] ) ) {
|
446 |
+
self::$query_parameters['use_postmeta_view'] = true;
|
447 |
+
self::$query_parameters['postmeta_key'] = $option_value['name'];
|
448 |
+
if ( isset($clean_request['orderby']) )
|
449 |
+
unset($clean_request['orderby']);
|
450 |
+
if ( isset($clean_request['order']) )
|
451 |
+
unset($clean_request['order']);
|
452 |
}
|
453 |
} // custom field
|
454 |
else {
|
457 |
* '_wp_attachment_image_alt' is special; we'll handle it in the JOIN and ORDERBY filters
|
458 |
*/
|
459 |
case '_wp_attachment_image_alt':
|
460 |
+
self::$query_parameters['use_postmeta_view'] = true;
|
461 |
+
self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
|
462 |
if ( isset($clean_request['orderby']) )
|
463 |
unset($clean_request['orderby']);
|
464 |
if ( isset($clean_request['order']) )
|
519 |
unset( $clean_request['mla_filter_term'] );
|
520 |
} // isset mla_filter_term
|
521 |
|
522 |
+
if ( isset( $clean_request['mla-tax'] ) && isset( $clean_request['mla-term'] )) {
|
523 |
$clean_request['tax_query'] = array(
|
524 |
array(
|
525 |
'taxonomy' => $clean_request['mla-tax'],
|
533 |
unset( $clean_request['mla-term'] );
|
534 |
} // isset mla_tax
|
535 |
|
536 |
+
if ( isset( $clean_request['mla-metakey'] ) && isset( $clean_request['mla-metavalue'] ) ) {
|
537 |
+
$clean_request['meta_key'] = $clean_request['mla-metakey'];
|
538 |
+
$clean_request['meta_value'] = $clean_request['mla-metavalue'];
|
539 |
+
|
540 |
+
unset( $clean_request['mla-metakey'] );
|
541 |
+
unset( $clean_request['mla-metavalue'] );
|
542 |
+
} // isset mla_tax
|
543 |
+
|
544 |
return $clean_request;
|
545 |
}
|
546 |
|
557 |
global $wpdb, $table_prefix;
|
558 |
|
559 |
/*
|
560 |
+
* Custom fields are special; we have to use an SQL VIEW to build
|
561 |
* an intermediate table and modify the JOIN to include posts
|
562 |
+
* with no value for the metadata field.
|
563 |
*/
|
564 |
+
if ( self::$query_parameters['use_postmeta_view'] ) {
|
565 |
$view_name = self::$mla_alt_text_view;
|
566 |
+
$key_name = self::$query_parameters['postmeta_key'];
|
567 |
$table_name = $table_prefix . 'postmeta';
|
568 |
|
569 |
$result = $wpdb->query(
|
571 |
CREATE OR REPLACE VIEW {$view_name} AS
|
572 |
SELECT post_id, meta_value
|
573 |
FROM {$table_name}
|
574 |
+
WHERE {$table_name}.meta_key = '{$key_name}'
|
575 |
"
|
576 |
);
|
577 |
}
|
588 |
remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
|
589 |
remove_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter' );
|
590 |
|
591 |
+
if ( self::$query_parameters['use_postmeta_view'] ) {
|
592 |
$result = $wpdb->query( "DROP VIEW {$view_name}" );
|
593 |
}
|
594 |
|
694 |
* build an intermediate table and modify the JOIN to include posts with
|
695 |
* no value for this metadata field.
|
696 |
*/
|
697 |
+
if ( self::$query_parameters['use_postmeta_view'] ) {
|
698 |
$view_name = self::$mla_alt_text_view;
|
699 |
$join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
|
700 |
}
|
740 |
|
741 |
if ( isset( self::$query_parameters['orderby'] ) ) {
|
742 |
if ( 'c_' == substr( self::$query_parameters['orderby'], 0, 2 ) ) {
|
743 |
+
$orderby = self::$mla_alt_text_view . '.meta_value';
|
744 |
} // custom field sort
|
745 |
else {
|
746 |
switch ( self::$query_parameters['orderby'] ) {
|
1366 |
return $gallery_refs;
|
1367 |
}
|
1368 |
|
1369 |
+
/**
|
1370 |
+
* Parse one EXIF metadata field
|
1371 |
+
*
|
1372 |
+
* Returns a string value, converting array data to a string as necessary.
|
1373 |
+
* Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.
|
1374 |
+
*
|
1375 |
+
* @since 1.13
|
1376 |
+
*
|
1377 |
+
* @param string field name
|
1378 |
+
* @param string metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays
|
1379 |
+
*
|
1380 |
+
* @return string string representation of metadata value or an empty string
|
1381 |
+
*/
|
1382 |
+
public static function mla_exif_metadata_value( $key, $image_metadata ) {
|
1383 |
+
$text = '';
|
1384 |
+
if ( array_key_exists( $key, $image_metadata['mla_exif_metadata'] ) ) {
|
1385 |
+
$record = $image_metadata['mla_exif_metadata'][ $key ];
|
1386 |
+
if ( is_array( $record ) ) {
|
1387 |
+
$text = var_export( $record, true);
|
1388 |
+
} // is_array
|
1389 |
+
else
|
1390 |
+
$text = $record;
|
1391 |
+
} elseif ( 'ALL_EXIF' == $key ) {
|
1392 |
+
$text = var_export( $image_metadata['mla_exif_metadata'], true);
|
1393 |
+
} elseif ( 'ALL_IPTC' == $key ) {
|
1394 |
+
$text = var_export( $image_metadata['mla_iptc_metadata'], true);
|
1395 |
+
}
|
1396 |
+
|
1397 |
+
return $text;
|
1398 |
+
}
|
1399 |
+
|
1400 |
/**
|
1401 |
* Fetch and filter IPTC and EXIF meta data for an image attachment
|
1402 |
*
|
1415 |
'mla_exif_metadata' => array()
|
1416 |
);
|
1417 |
|
|
|
|
|
1418 |
if ( 0 != $post_id )
|
1419 |
$path = get_attached_file($post_id);
|
1420 |
|
1448 |
}
|
1449 |
}
|
1450 |
|
1451 |
+
/*
|
1452 |
+
* Expand EXIF array values
|
1453 |
+
*/
|
1454 |
+
foreach ( $results['mla_exif_metadata'] as $exif_key => $exif_value ) {
|
1455 |
+
if ( is_array( $exif_value ) ) {
|
1456 |
+
foreach ( $exif_value as $key => $value ) {
|
1457 |
+
$results['mla_exif_metadata'][ $exif_key . '.' . $key ] = $value;
|
1458 |
+
}
|
1459 |
+
} // is_array
|
1460 |
+
}
|
1461 |
+
|
1462 |
return $results;
|
1463 |
}
|
1464 |
|
includes/class-mla-list-table.php
CHANGED
@@ -423,26 +423,39 @@ class MLA_List_Table extends WP_List_Table {
|
|
423 |
if ( !is_wp_error( $terms ) ) {
|
424 |
if ( empty( $terms ) )
|
425 |
return 'none';
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
} // !empty $terms
|
439 |
} // if !is_wp_error
|
440 |
else {
|
441 |
return 'not supported';
|
442 |
}
|
443 |
} // 't_'
|
444 |
elseif ( 'c_' == substr( $column_name, 0, 2 ) ) {
|
445 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
446 |
} // 'c_'
|
447 |
else {
|
448 |
//Show the whole array for troubleshooting purposes
|
@@ -586,6 +599,13 @@ class MLA_List_Table extends WP_List_Table {
|
|
586 |
$inline_data .= ' <div class="menu_order">' . $item->menu_order . "</div>\r\n";
|
587 |
$inline_data .= ' <div class="post_author">' . $item->post_author . "</div>\r\n";
|
588 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
$taxonomies = get_object_taxonomies( 'attachment', 'objects' );
|
590 |
|
591 |
foreach ( $taxonomies as $tax_name => $tax_object ) {
|
@@ -868,7 +888,12 @@ class MLA_List_Table extends WP_List_Table {
|
|
868 |
*/
|
869 |
function column_alt_text( $item ) {
|
870 |
if ( isset( $item->mla_wp_attachment_image_alt ) )
|
871 |
-
return
|
|
|
|
|
|
|
|
|
|
|
872 |
else
|
873 |
return '';
|
874 |
}
|
423 |
if ( !is_wp_error( $terms ) ) {
|
424 |
if ( empty( $terms ) )
|
425 |
return 'none';
|
426 |
+
|
427 |
+
$list = array();
|
428 |
+
foreach ( $terms as $term ) {
|
429 |
+
$list[ ] = sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
|
430 |
+
'page' => 'mla-menu',
|
431 |
+
'mla-tax' => $taxonomy,
|
432 |
+
'mla-term' => $term->slug,
|
433 |
+
'heading_suffix' => urlencode( $tax_object->label . ': ' . $term->name )
|
434 |
+
), 'upload.php' ) ), esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, 'category', 'display' ) ) );
|
435 |
+
} // foreach $term
|
436 |
+
|
437 |
+
return join( ', ', $list );
|
|
|
438 |
} // if !is_wp_error
|
439 |
else {
|
440 |
return 'not supported';
|
441 |
}
|
442 |
} // 't_'
|
443 |
elseif ( 'c_' == substr( $column_name, 0, 2 ) ) {
|
444 |
+
$values = get_post_meta( $item->ID, MLA_List_Table::$default_columns[ $column_name ], false );
|
445 |
+
if ( empty( $values ) )
|
446 |
+
return '';
|
447 |
+
|
448 |
+
$list = array();
|
449 |
+
foreach( $values as $index => $value ) {
|
450 |
+
$list[ ] = sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
|
451 |
+
'page' => 'mla-menu',
|
452 |
+
'mla-metakey' => urlencode( MLA_List_Table::$default_columns[ $column_name ] ),
|
453 |
+
'mla-metavalue' => urlencode( $value ),
|
454 |
+
'heading_suffix' => urlencode( MLA_List_Table::$default_columns[ $column_name ] . ': ' . $value )
|
455 |
+
), 'upload.php' ) ), esc_html( $value ) );
|
456 |
+
}
|
457 |
+
|
458 |
+
return join( ', ', $list );
|
459 |
} // 'c_'
|
460 |
else {
|
461 |
//Show the whole array for troubleshooting purposes
|
599 |
$inline_data .= ' <div class="menu_order">' . $item->menu_order . "</div>\r\n";
|
600 |
$inline_data .= ' <div class="post_author">' . $item->post_author . "</div>\r\n";
|
601 |
|
602 |
+
$custom_fields = MLAOptions::mla_custom_field_support( 'quick_edit' );
|
603 |
+
$custom_fields = array_merge( $custom_fields, MLAOptions::mla_custom_field_support( 'bulk_edit' ) );
|
604 |
+
foreach ($custom_fields as $slug => $label ) {
|
605 |
+
$value = get_metadata( 'post', $item->ID, $label, true );
|
606 |
+
$inline_data .= ' <div class="' . $slug . '">' . $value . "</div>\r\n";
|
607 |
+
}
|
608 |
+
|
609 |
$taxonomies = get_object_taxonomies( 'attachment', 'objects' );
|
610 |
|
611 |
foreach ( $taxonomies as $tax_name => $tax_object ) {
|
888 |
*/
|
889 |
function column_alt_text( $item ) {
|
890 |
if ( isset( $item->mla_wp_attachment_image_alt ) )
|
891 |
+
return sprintf( '<a href="%s">%s</a>', esc_url( add_query_arg( array(
|
892 |
+
'page' => 'mla-menu',
|
893 |
+
'mla-metakey' => '_wp_attachment_image_alt',
|
894 |
+
'mla-metavalue' => urlencode( $item->mla_wp_attachment_image_alt ),
|
895 |
+
'heading_suffix' => urlencode( 'ALT Text: ' . $item->mla_wp_attachment_image_alt )
|
896 |
+
), 'upload.php' ) ), esc_html( $item->mla_wp_attachment_image_alt ) );
|
897 |
else
|
898 |
return '';
|
899 |
}
|
includes/class-mla-main.php
CHANGED
@@ -38,7 +38,7 @@ class MLA {
|
|
38 |
*
|
39 |
* @var string
|
40 |
*/
|
41 |
-
const CURRENT_MLA_VERSION = '1.
|
42 |
|
43 |
/**
|
44 |
* Minimum version of PHP required for this plugin
|
@@ -103,6 +103,24 @@ class MLA {
|
|
103 |
*/
|
104 |
const JAVASCRIPT_INLINE_EDIT_OBJECT = 'mla_inline_edit_vars';
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
/**
|
107 |
* Slug for adding plugin submenu
|
108 |
*
|
@@ -266,14 +284,28 @@ class MLA {
|
|
266 |
* @return void
|
267 |
*/
|
268 |
public static function mla_admin_enqueue_scripts_action( $page_hook ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
if ( ( 'media_page_mla-menu' != $page_hook ) && ( 'settings_page_mla-settings-menu' != $page_hook ) )
|
270 |
return;
|
271 |
|
272 |
wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
|
273 |
wp_enqueue_style( self::STYLESHEET_SLUG );
|
274 |
|
275 |
-
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
276 |
-
|
277 |
if ( isset( $_REQUEST['mla_admin_action'] ) && ( $_REQUEST['mla_admin_action'] == self::MLA_ADMIN_SINGLE_EDIT_DISPLAY ) ) {
|
278 |
wp_enqueue_script( self::JAVASCRIPT_SINGLE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-single-edit-scripts{$suffix}.js",
|
279 |
array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
|
@@ -286,7 +318,16 @@ class MLA {
|
|
286 |
else {
|
287 |
wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
|
288 |
array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
$script_variables = array(
|
|
|
290 |
'error' => 'Error while saving the changes.',
|
291 |
'ntdeltitle' => 'Remove From Bulk Edit',
|
292 |
'notitle' => '(no title)',
|
@@ -634,6 +675,20 @@ class MLA {
|
|
634 |
if ( isset( $_REQUEST['post_author'] ) && ( -1 != $_REQUEST['post_author'] ) )
|
635 |
$new_data['post_author'] = $_REQUEST['post_author'];
|
636 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
637 |
$item_content = MLAData::mla_update_single_item( $post_id, $new_data, $_REQUEST['tax_input'], $_REQUEST['tax_action'] );
|
638 |
break;
|
639 |
case 'restore':
|
@@ -725,7 +780,7 @@ class MLA {
|
|
725 |
), $_SERVER['REQUEST_URI'] );
|
726 |
|
727 |
if ( !empty( $_REQUEST['heading_suffix'] ) ) {
|
728 |
-
echo ' - ' . $_REQUEST['heading_suffix'] . "</h2>\r\n";
|
729 |
} elseif ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla-search-fields'] ) ) {
|
730 |
echo ' - search results for "' . stripslashes( trim( $_REQUEST['s'] ) ) . "\"</h2>\r\n";
|
731 |
} else
|
@@ -854,6 +909,21 @@ class MLA {
|
|
854 |
if ( ! current_user_can( 'edit_post', $post_id ) )
|
855 |
wp_die( __( 'You are not allowed to edit this Attachment.' ) );
|
856 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
/*
|
858 |
* The category taxonomy is a special case because post_categories_meta_box() changes the input name
|
859 |
*/
|
@@ -947,6 +1017,15 @@ class MLA {
|
|
947 |
else
|
948 |
$authors_dropdown = '';
|
949 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
950 |
/*
|
951 |
* The middle column contains the hierarchical taxonomies, e.g., Attachment Category
|
952 |
*/
|
@@ -1032,14 +1111,25 @@ class MLA {
|
|
1032 |
else
|
1033 |
$bulk_authors_dropdown = '';
|
1034 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1035 |
$page_values = array(
|
1036 |
'colspan' => count( $MLAListTable->get_columns() ),
|
1037 |
'authors' => $authors_dropdown,
|
|
|
1038 |
'quick_middle_column' => $quick_middle_column,
|
1039 |
'quick_right_column' => $quick_right_column,
|
1040 |
'bulk_middle_column' => $bulk_middle_column,
|
1041 |
'bulk_right_column' => $bulk_right_column,
|
1042 |
-
'bulk_authors' => $bulk_authors_dropdown
|
|
|
1043 |
);
|
1044 |
$page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
|
1045 |
return $page_template;
|
38 |
*
|
39 |
* @var string
|
40 |
*/
|
41 |
+
const CURRENT_MLA_VERSION = '1.13';
|
42 |
|
43 |
/**
|
44 |
* Minimum version of PHP required for this plugin
|
103 |
*/
|
104 |
const JAVASCRIPT_INLINE_EDIT_OBJECT = 'mla_inline_edit_vars';
|
105 |
|
106 |
+
/**
|
107 |
+
* Slug for localizing and enqueueing JavaScript - Add Media and related dialogs
|
108 |
+
*
|
109 |
+
* @since 1.13
|
110 |
+
*
|
111 |
+
* @var string
|
112 |
+
*/
|
113 |
+
const JAVASCRIPT_MEDIA_POPUP_SLUG = 'mla-media-popup-scripts';
|
114 |
+
|
115 |
+
/**
|
116 |
+
* Object name for localizing JavaScript - Add Media and related dialogs
|
117 |
+
*
|
118 |
+
* @since 1.13
|
119 |
+
*
|
120 |
+
* @var string
|
121 |
+
*/
|
122 |
+
const JAVASCRIPT_MEDIA_POPUP_OBJECT = 'mla_media_popup_vars';
|
123 |
+
|
124 |
/**
|
125 |
* Slug for adding plugin submenu
|
126 |
*
|
284 |
* @return void
|
285 |
*/
|
286 |
public static function mla_admin_enqueue_scripts_action( $page_hook ) {
|
287 |
+
// error_log('mla_admin_enqueue_scripts_action $page_hook = ' . var_export( $page_hook, true ), 0 );
|
288 |
+
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
289 |
+
|
290 |
+
/* if( 'post.php' == $page_hook ) {
|
291 |
+
wp_enqueue_script( self::JAVASCRIPT_MEDIA_POPUP_SLUG, MLA_PLUGIN_URL . "js/mla-media-popup-scripts{$suffix}.js",
|
292 |
+
array( 'media-views' ), self::CURRENT_MLA_VERSION, false );
|
293 |
+
$script_variables = array(
|
294 |
+
'menu_title' => 'MLA Custom Menu',
|
295 |
+
'button_title' => 'MLA Custom Button',
|
296 |
+
'comma' => _x( ',', 'tag delimiter' ),
|
297 |
+
'ajax_action' => self::JAVASCRIPT_MEDIA_POPUP_SLUG,
|
298 |
+
'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
|
299 |
+
);
|
300 |
+
wp_localize_script( self::JAVASCRIPT_MEDIA_POPUP_SLUG, self::JAVASCRIPT_MEDIA_POPUP_OBJECT, $script_variables );
|
301 |
+
} */
|
302 |
+
|
303 |
if ( ( 'media_page_mla-menu' != $page_hook ) && ( 'settings_page_mla-settings-menu' != $page_hook ) )
|
304 |
return;
|
305 |
|
306 |
wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
|
307 |
wp_enqueue_style( self::STYLESHEET_SLUG );
|
308 |
|
|
|
|
|
309 |
if ( isset( $_REQUEST['mla_admin_action'] ) && ( $_REQUEST['mla_admin_action'] == self::MLA_ADMIN_SINGLE_EDIT_DISPLAY ) ) {
|
310 |
wp_enqueue_script( self::JAVASCRIPT_SINGLE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-single-edit-scripts{$suffix}.js",
|
311 |
array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
|
318 |
else {
|
319 |
wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
|
320 |
array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
|
321 |
+
|
322 |
+
$fields = array( 'post_title', 'post_name', 'post_excerpt', 'image_alt', 'post_parent', 'menu_order', 'post_author' );
|
323 |
+
$custom_fields = MLAOptions::mla_custom_field_support( 'quick_edit' );
|
324 |
+
$custom_fields = array_merge( $custom_fields, MLAOptions::mla_custom_field_support( 'bulk_edit' ) );
|
325 |
+
foreach ($custom_fields as $slug => $label ) {
|
326 |
+
$fields[] = $slug;
|
327 |
+
}
|
328 |
+
|
329 |
$script_variables = array(
|
330 |
+
'fields' => $fields,
|
331 |
'error' => 'Error while saving the changes.',
|
332 |
'ntdeltitle' => 'Remove From Bulk Edit',
|
333 |
'notitle' => '(no title)',
|
675 |
if ( isset( $_REQUEST['post_author'] ) && ( -1 != $_REQUEST['post_author'] ) )
|
676 |
$new_data['post_author'] = $_REQUEST['post_author'];
|
677 |
|
678 |
+
/*
|
679 |
+
* Custom field support
|
680 |
+
*/
|
681 |
+
$custom_fields = array();
|
682 |
+
foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label ) {
|
683 |
+
$field_name = $slug;
|
684 |
+
if ( isset( $_REQUEST[ $field_name ] ) && ( ! empty( $_REQUEST[ $field_name ] ) ) ) {
|
685 |
+
$custom_fields[ $label ] = $_REQUEST[ $field_name ];
|
686 |
+
}
|
687 |
+
}
|
688 |
+
|
689 |
+
if ( ! empty( $custom_fields ) )
|
690 |
+
$new_data[ 'custom_updates' ] = $custom_fields;
|
691 |
+
|
692 |
$item_content = MLAData::mla_update_single_item( $post_id, $new_data, $_REQUEST['tax_input'], $_REQUEST['tax_action'] );
|
693 |
break;
|
694 |
case 'restore':
|
780 |
), $_SERVER['REQUEST_URI'] );
|
781 |
|
782 |
if ( !empty( $_REQUEST['heading_suffix'] ) ) {
|
783 |
+
echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\r\n";
|
784 |
} elseif ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla-search-fields'] ) ) {
|
785 |
echo ' - search results for "' . stripslashes( trim( $_REQUEST['s'] ) ) . "\"</h2>\r\n";
|
786 |
} else
|
909 |
if ( ! current_user_can( 'edit_post', $post_id ) )
|
910 |
wp_die( __( 'You are not allowed to edit this Attachment.' ) );
|
911 |
|
912 |
+
/*
|
913 |
+
* Custom field support
|
914 |
+
*/
|
915 |
+
$custom_fields = array();
|
916 |
+
foreach (MLAOptions::mla_custom_field_support( 'quick_edit' ) as $slug => $label ) {
|
917 |
+
$field_name = $slug;
|
918 |
+
if ( isset( $_REQUEST[ $field_name ] ) ) {
|
919 |
+
$custom_fields[ $label ] = $_REQUEST[ $field_name ];
|
920 |
+
unset ( $_REQUEST[ $field_name ] );
|
921 |
+
}
|
922 |
+
}
|
923 |
+
|
924 |
+
if ( ! empty( $custom_fields ) )
|
925 |
+
$_REQUEST[ 'custom_updates' ] = $custom_fields;
|
926 |
+
|
927 |
/*
|
928 |
* The category taxonomy is a special case because post_categories_meta_box() changes the input name
|
929 |
*/
|
1017 |
else
|
1018 |
$authors_dropdown = '';
|
1019 |
|
1020 |
+
$custom_fields = '';
|
1021 |
+
foreach (MLAOptions::mla_custom_field_support( 'quick_edit' ) as $slug => $label ) {
|
1022 |
+
$page_values = array(
|
1023 |
+
'slug' => $slug,
|
1024 |
+
'label' => esc_attr( $label ),
|
1025 |
+
);
|
1026 |
+
$custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
|
1027 |
+
}
|
1028 |
+
|
1029 |
/*
|
1030 |
* The middle column contains the hierarchical taxonomies, e.g., Attachment Category
|
1031 |
*/
|
1111 |
else
|
1112 |
$bulk_authors_dropdown = '';
|
1113 |
|
1114 |
+
$bulk_custom_fields = '';
|
1115 |
+
foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label ) {
|
1116 |
+
$page_values = array(
|
1117 |
+
'slug' => $slug,
|
1118 |
+
'label' => esc_attr( $label ),
|
1119 |
+
);
|
1120 |
+
$bulk_custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
|
1121 |
+
}
|
1122 |
+
|
1123 |
$page_values = array(
|
1124 |
'colspan' => count( $MLAListTable->get_columns() ),
|
1125 |
'authors' => $authors_dropdown,
|
1126 |
+
'custom_fields' => $custom_fields,
|
1127 |
'quick_middle_column' => $quick_middle_column,
|
1128 |
'quick_right_column' => $quick_right_column,
|
1129 |
'bulk_middle_column' => $bulk_middle_column,
|
1130 |
'bulk_right_column' => $bulk_right_column,
|
1131 |
+
'bulk_authors' => $bulk_authors_dropdown,
|
1132 |
+
'bulk_custom_fields' => $bulk_custom_fields
|
1133 |
);
|
1134 |
$page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
|
1135 |
return $page_template;
|
includes/class-mla-options.php
CHANGED
@@ -935,29 +935,39 @@ class MLAOptions {
|
|
935 |
*
|
936 |
* @since 1.10
|
937 |
*
|
938 |
-
* @param string array format; 'default_columns' (default), 'default_hidden_columns' or '
|
939 |
*
|
940 |
-
* @return array default, hidden or
|
941 |
*/
|
942 |
public static function mla_custom_field_support( $support_type = 'default_columns' ) {
|
943 |
$option_values = self::mla_get_option( 'custom_field_mapping' );
|
944 |
$results = array();
|
945 |
|
946 |
foreach( $option_values as $key => $value ) {
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
|
|
951 |
$results[ $slug ] = $value['name'];
|
952 |
-
|
953 |
-
|
|
|
954 |
$results[ ] = $slug;
|
955 |
-
|
956 |
-
|
|
|
957 |
$results[ $slug ] = array( $slug, false );
|
958 |
-
|
959 |
-
|
960 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
961 |
} // foreach option_value
|
962 |
|
963 |
return $results;
|
@@ -1053,6 +1063,9 @@ class MLAOptions {
|
|
1053 |
static $upload_dir, $intermediate_sizes = NULL, $wp_attached_files = NULL, $wp_attachment_metadata = NULL;
|
1054 |
static $current_id = 0, $file_info = NULL;
|
1055 |
|
|
|
|
|
|
|
1056 |
/*
|
1057 |
* Do this once per page load; cache attachment metadata if mapping all attachments
|
1058 |
*/
|
@@ -1082,13 +1095,16 @@ class MLAOptions {
|
|
1082 |
$meta_value = get_metadata( 'post', $post_id, '_wp_attached_file' );
|
1083 |
$wp_attached_files = array( $post_id => (object) array( 'post_id' => $post_id, 'meta_value' => $meta_value[0] ) );
|
1084 |
|
1085 |
-
if ( NULL == $attachment_metadata )
|
1086 |
-
$
|
|
|
|
|
|
|
1087 |
|
1088 |
if ( empty( $attachment_metadata ) )
|
1089 |
$attachment_metadata = array();
|
1090 |
|
1091 |
-
$wp_attachment_metadata = array( $post_id => (object) array( 'post_id' => $post_id, 'meta_value' => serialize( $attachment_metadata
|
1092 |
}
|
1093 |
|
1094 |
$file_info = self::_evaluate_file_information( $upload_dir, $wp_attached_files, $wp_attachment_metadata, $post_id );
|
@@ -1487,7 +1503,9 @@ class MLAOptions {
|
|
1487 |
'data_source' => 'none',
|
1488 |
'keep_existing' => true,
|
1489 |
'format' => 'native',
|
1490 |
-
'mla_column' => false
|
|
|
|
|
1491 |
);
|
1492 |
}
|
1493 |
|
@@ -1540,6 +1558,34 @@ class MLAOptions {
|
|
1540 |
$old_values['mla_column'] = $boolean_value;
|
1541 |
}
|
1542 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1543 |
if ( $any_setting_changed ) {
|
1544 |
$settings_changed = true;
|
1545 |
$current_values[ $new_key ] = $old_values;
|
@@ -1573,7 +1619,7 @@ class MLAOptions {
|
|
1573 |
switch ( $action ) {
|
1574 |
case 'render':
|
1575 |
if (empty( $current_values ) ) {
|
1576 |
-
$table_rows = MLAData::mla_parse_template( self::$mla_option_templates['custom-field-empty-row'], array( 'column_count' =>
|
1577 |
}
|
1578 |
else {
|
1579 |
$row_template = self::$mla_option_templates['custom-field-rule-row'];
|
@@ -1590,7 +1636,9 @@ class MLAOptions {
|
|
1590 |
'native_format' => '',
|
1591 |
'commas_format' => '',
|
1592 |
'mla_column_checked' => '',
|
1593 |
-
'
|
|
|
|
|
1594 |
);
|
1595 |
|
1596 |
if ( $current_value['keep_existing'] )
|
@@ -1612,6 +1660,12 @@ class MLAOptions {
|
|
1612 |
if ( $current_value['mla_column'] )
|
1613 |
$row_values['mla_column_checked'] = 'checked="checked"';
|
1614 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1615 |
$table_rows .= MLAData::mla_parse_template( $row_template, $row_values );
|
1616 |
} // foreach current_value
|
1617 |
|
@@ -1628,7 +1682,9 @@ class MLAOptions {
|
|
1628 |
'native_format' => 'selected="selected"',
|
1629 |
'commas_format' => '',
|
1630 |
'mla_column_checked' => '',
|
1631 |
-
'
|
|
|
|
|
1632 |
);
|
1633 |
$table_rows .= MLAData::mla_parse_template( $row_template, $row_values );
|
1634 |
|
@@ -1645,7 +1701,9 @@ class MLAOptions {
|
|
1645 |
'native_format' => 'selected="selected"',
|
1646 |
'commas_format' => '',
|
1647 |
'mla_column_checked' => '',
|
1648 |
-
'
|
|
|
|
|
1649 |
);
|
1650 |
$table_rows .= MLAData::mla_parse_template( $row_template, $row_values );
|
1651 |
|
@@ -1702,7 +1760,6 @@ class MLAOptions {
|
|
1702 |
public static function mla_evaluate_iptc_exif_mapping( $post, $category, $settings = NULL ) {
|
1703 |
$metadata = MLAData::mla_fetch_attachment_image_metadata( $post->ID );
|
1704 |
$iptc_metadata = $metadata['mla_iptc_metadata'];
|
1705 |
-
$exif_metadata = $metadata['mla_exif_metadata'];
|
1706 |
$updates = array();
|
1707 |
$update_all = ( 'iptc_exif_mapping' == $category );
|
1708 |
if ( NULL == $settings )
|
@@ -1711,7 +1768,7 @@ class MLAOptions {
|
|
1711 |
if ( $update_all || ( 'iptc_exif_standard_mapping' == $category ) ) {}{
|
1712 |
foreach( $settings['standard'] as $new_key => $new_value ) {
|
1713 |
$iptc_value = ( isset( $iptc_metadata[ $new_value['iptc_value'] ] ) ) ? $iptc_metadata[ $new_value['iptc_value'] ] : '';
|
1714 |
-
$exif_value = (
|
1715 |
$keep_existing = (boolean) $new_value['keep_existing'];
|
1716 |
|
1717 |
if ( $new_value['iptc_first'] )
|
@@ -1761,7 +1818,7 @@ class MLAOptions {
|
|
1761 |
|
1762 |
foreach( $settings['taxonomy'] as $new_key => $new_value ) {
|
1763 |
$iptc_value = ( isset( $iptc_metadata[ $new_value['iptc_value'] ] ) ) ? $iptc_metadata[ $new_value['iptc_value'] ] : '';
|
1764 |
-
$exif_value = (
|
1765 |
|
1766 |
$tax_action = ( $new_value['keep_existing'] ) ? 'add' : 'replace';
|
1767 |
$tax_parent = ( isset( $new_value['parent'] ) && (0 != (integer) $new_value['parent'] ) ) ? (integer) $new_value['parent'] : 0;
|
@@ -1813,7 +1870,7 @@ class MLAOptions {
|
|
1813 |
|
1814 |
foreach( $settings['custom'] as $new_key => $new_value ) {
|
1815 |
$iptc_value = ( isset( $iptc_metadata[ $new_value['iptc_value'] ] ) ) ? $iptc_metadata[ $new_value['iptc_value'] ] : '';
|
1816 |
-
$exif_value = (
|
1817 |
|
1818 |
if ( $new_value['iptc_first'] )
|
1819 |
if ( ! empty( $iptc_value ) )
|
935 |
*
|
936 |
* @since 1.10
|
937 |
*
|
938 |
+
* @param string array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'
|
939 |
*
|
940 |
+
* @return array default, hidden, sortable quick_edit or bulk_edit colums in appropriate format
|
941 |
*/
|
942 |
public static function mla_custom_field_support( $support_type = 'default_columns' ) {
|
943 |
$option_values = self::mla_get_option( 'custom_field_mapping' );
|
944 |
$results = array();
|
945 |
|
946 |
foreach( $option_values as $key => $value ) {
|
947 |
+
$slug = 'c_' . sanitize_title( $key );
|
948 |
+
|
949 |
+
switch( $support_type ) {
|
950 |
+
case 'default_columns':
|
951 |
+
if ( $value['mla_column'] )
|
952 |
$results[ $slug ] = $value['name'];
|
953 |
+
break;
|
954 |
+
case 'default_hidden_columns':
|
955 |
+
if ( $value['mla_column'] )
|
956 |
$results[ ] = $slug;
|
957 |
+
break;
|
958 |
+
case 'default_sortable_columns':
|
959 |
+
if ( $value['mla_column'] )
|
960 |
$results[ $slug ] = array( $slug, false );
|
961 |
+
break;
|
962 |
+
case 'quick_edit':
|
963 |
+
if ( $value['quick_edit'] )
|
964 |
+
$results[ $slug ] = $value['name'];
|
965 |
+
break;
|
966 |
+
case 'bulk_edit':
|
967 |
+
if ( $value['bulk_edit'] )
|
968 |
+
$results[ $slug ] = $value['name'];
|
969 |
+
break;
|
970 |
+
} // switch support_type
|
971 |
} // foreach option_value
|
972 |
|
973 |
return $results;
|
1063 |
static $upload_dir, $intermediate_sizes = NULL, $wp_attached_files = NULL, $wp_attachment_metadata = NULL;
|
1064 |
static $current_id = 0, $file_info = NULL;
|
1065 |
|
1066 |
+
if ( 'none' == $data_source )
|
1067 |
+
return '';
|
1068 |
+
|
1069 |
/*
|
1070 |
* Do this once per page load; cache attachment metadata if mapping all attachments
|
1071 |
*/
|
1095 |
$meta_value = get_metadata( 'post', $post_id, '_wp_attached_file' );
|
1096 |
$wp_attached_files = array( $post_id => (object) array( 'post_id' => $post_id, 'meta_value' => $meta_value[0] ) );
|
1097 |
|
1098 |
+
if ( NULL == $attachment_metadata ) {
|
1099 |
+
$metadata = get_metadata( 'post', $post_id, '_wp_attachment_metadata' );
|
1100 |
+
if ( isset( $metadata[0] ) )
|
1101 |
+
$attachment_metadata = $metadata[0];
|
1102 |
+
}
|
1103 |
|
1104 |
if ( empty( $attachment_metadata ) )
|
1105 |
$attachment_metadata = array();
|
1106 |
|
1107 |
+
$wp_attachment_metadata = array( $post_id => (object) array( 'post_id' => $post_id, 'meta_value' => serialize( $attachment_metadata ) ) );
|
1108 |
}
|
1109 |
|
1110 |
$file_info = self::_evaluate_file_information( $upload_dir, $wp_attached_files, $wp_attachment_metadata, $post_id );
|
1503 |
'data_source' => 'none',
|
1504 |
'keep_existing' => true,
|
1505 |
'format' => 'native',
|
1506 |
+
'mla_column' => false,
|
1507 |
+
'quick_edit' => false,
|
1508 |
+
'bulk_edit' => false
|
1509 |
);
|
1510 |
}
|
1511 |
|
1558 |
$old_values['mla_column'] = $boolean_value;
|
1559 |
}
|
1560 |
|
1561 |
+
if ( isset( $new_value['quick_edit'] ) ) {
|
1562 |
+
$boolean_value = true;
|
1563 |
+
$boolean_text = 'unchecked to checked';
|
1564 |
+
}
|
1565 |
+
else {
|
1566 |
+
$boolean_value = false;
|
1567 |
+
$boolean_text = 'checked to unchecked';
|
1568 |
+
}
|
1569 |
+
if ( $old_values['quick_edit'] != $boolean_value ) {
|
1570 |
+
$any_setting_changed = true;
|
1571 |
+
$message_list .= "<br>{$old_values['name']} changing Quick Edit value from {$boolean_text}.\r\n";
|
1572 |
+
$old_values['quick_edit'] = $boolean_value;
|
1573 |
+
}
|
1574 |
+
|
1575 |
+
if ( isset( $new_value['bulk_edit'] ) ) {
|
1576 |
+
$boolean_value = true;
|
1577 |
+
$boolean_text = 'unchecked to checked';
|
1578 |
+
}
|
1579 |
+
else {
|
1580 |
+
$boolean_value = false;
|
1581 |
+
$boolean_text = 'checked to unchecked';
|
1582 |
+
}
|
1583 |
+
if ( $old_values['bulk_edit'] != $boolean_value ) {
|
1584 |
+
$any_setting_changed = true;
|
1585 |
+
$message_list .= "<br>{$old_values['name']} changing Bulk Edit value from {$boolean_text}.\r\n";
|
1586 |
+
$old_values['bulk_edit'] = $boolean_value;
|
1587 |
+
}
|
1588 |
+
|
1589 |
if ( $any_setting_changed ) {
|
1590 |
$settings_changed = true;
|
1591 |
$current_values[ $new_key ] = $old_values;
|
1619 |
switch ( $action ) {
|
1620 |
case 'render':
|
1621 |
if (empty( $current_values ) ) {
|
1622 |
+
$table_rows = MLAData::mla_parse_template( self::$mla_option_templates['custom-field-empty-row'], array( 'column_count' => 7 ) );
|
1623 |
}
|
1624 |
else {
|
1625 |
$row_template = self::$mla_option_templates['custom-field-rule-row'];
|
1636 |
'native_format' => '',
|
1637 |
'commas_format' => '',
|
1638 |
'mla_column_checked' => '',
|
1639 |
+
'quick_edit_checked' => '',
|
1640 |
+
'bulk_edit_checked' => '',
|
1641 |
+
'column_count' => 7
|
1642 |
);
|
1643 |
|
1644 |
if ( $current_value['keep_existing'] )
|
1660 |
if ( $current_value['mla_column'] )
|
1661 |
$row_values['mla_column_checked'] = 'checked="checked"';
|
1662 |
|
1663 |
+
if ( $current_value['quick_edit'] )
|
1664 |
+
$row_values['quick_edit_checked'] = 'checked="checked"';
|
1665 |
+
|
1666 |
+
if ( $current_value['bulk_edit'] )
|
1667 |
+
$row_values['bulk_edit_checked'] = 'checked="checked"';
|
1668 |
+
|
1669 |
$table_rows .= MLAData::mla_parse_template( $row_template, $row_values );
|
1670 |
} // foreach current_value
|
1671 |
|
1682 |
'native_format' => 'selected="selected"',
|
1683 |
'commas_format' => '',
|
1684 |
'mla_column_checked' => '',
|
1685 |
+
'quick_edit_checked' => '',
|
1686 |
+
'bulk_edit_checked' => '',
|
1687 |
+
'column_count' => 7
|
1688 |
);
|
1689 |
$table_rows .= MLAData::mla_parse_template( $row_template, $row_values );
|
1690 |
|
1701 |
'native_format' => 'selected="selected"',
|
1702 |
'commas_format' => '',
|
1703 |
'mla_column_checked' => '',
|
1704 |
+
'quick_edit_checked' => '',
|
1705 |
+
'bulk_edit_checked' => '',
|
1706 |
+
'column_count' => 7
|
1707 |
);
|
1708 |
$table_rows .= MLAData::mla_parse_template( $row_template, $row_values );
|
1709 |
|
1760 |
public static function mla_evaluate_iptc_exif_mapping( $post, $category, $settings = NULL ) {
|
1761 |
$metadata = MLAData::mla_fetch_attachment_image_metadata( $post->ID );
|
1762 |
$iptc_metadata = $metadata['mla_iptc_metadata'];
|
|
|
1763 |
$updates = array();
|
1764 |
$update_all = ( 'iptc_exif_mapping' == $category );
|
1765 |
if ( NULL == $settings )
|
1768 |
if ( $update_all || ( 'iptc_exif_standard_mapping' == $category ) ) {}{
|
1769 |
foreach( $settings['standard'] as $new_key => $new_value ) {
|
1770 |
$iptc_value = ( isset( $iptc_metadata[ $new_value['iptc_value'] ] ) ) ? $iptc_metadata[ $new_value['iptc_value'] ] : '';
|
1771 |
+
$exif_value = MLAData::mla_exif_metadata_value( $new_value['exif_value'], $metadata );
|
1772 |
$keep_existing = (boolean) $new_value['keep_existing'];
|
1773 |
|
1774 |
if ( $new_value['iptc_first'] )
|
1818 |
|
1819 |
foreach( $settings['taxonomy'] as $new_key => $new_value ) {
|
1820 |
$iptc_value = ( isset( $iptc_metadata[ $new_value['iptc_value'] ] ) ) ? $iptc_metadata[ $new_value['iptc_value'] ] : '';
|
1821 |
+
$exif_value = MLAData::mla_exif_metadata_value( $new_value['exif_value'], $metadata );
|
1822 |
|
1823 |
$tax_action = ( $new_value['keep_existing'] ) ? 'add' : 'replace';
|
1824 |
$tax_parent = ( isset( $new_value['parent'] ) && (0 != (integer) $new_value['parent'] ) ) ? (integer) $new_value['parent'] : 0;
|
1870 |
|
1871 |
foreach( $settings['custom'] as $new_key => $new_value ) {
|
1872 |
$iptc_value = ( isset( $iptc_metadata[ $new_value['iptc_value'] ] ) ) ? $iptc_metadata[ $new_value['iptc_value'] ] : '';
|
1873 |
+
$exif_value = MLAData::mla_exif_metadata_value( $new_value['exif_value'], $metadata );
|
1874 |
|
1875 |
if ( $new_value['iptc_first'] )
|
1876 |
if ( ! empty( $iptc_value ) )
|
includes/class-mla-settings.php
CHANGED
@@ -66,6 +66,21 @@ class MLASettings {
|
|
66 |
MLAOptions::mla_delete_option( 'attachment_tag' );
|
67 |
} // version is less than .30
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
MLAOptions::mla_update_option( MLAOptions::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
|
70 |
}
|
71 |
|
66 |
MLAOptions::mla_delete_option( 'attachment_tag' );
|
67 |
} // version is less than .30
|
68 |
|
69 |
+
if ( ((float)'1.13') > ((float)$current_version) ) {
|
70 |
+
/*
|
71 |
+
* Add quick_edit and bulk_edit values to custom field mapping rules
|
72 |
+
*/
|
73 |
+
$new_values = array();
|
74 |
+
|
75 |
+
foreach( MLAOptions::mla_get_option( 'custom_field_mapping' ) as $key => $value ) {
|
76 |
+
$value['quick_edit'] = ( isset( $value['quick_edit'] ) && $value['quick_edit'] ) ? true : false;
|
77 |
+
$value['bulk_edit'] = ( isset( $value['bulk_edit'] ) && $value['bulk_edit'] ) ? true : false;
|
78 |
+
$new_values[ $key ] = $value;
|
79 |
+
}
|
80 |
+
|
81 |
+
MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
|
82 |
+
} // version is less than 1.13
|
83 |
+
|
84 |
MLAOptions::mla_update_option( MLAOptions::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
|
85 |
}
|
86 |
|
includes/class-mla-shortcodes.php
CHANGED
@@ -142,6 +142,21 @@ class MLAShortcodes {
|
|
142 |
*/
|
143 |
private static $mla_debug = false;
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
/**
|
146 |
* The MLA Gallery shortcode.
|
147 |
*
|
@@ -178,6 +193,10 @@ class MLAShortcodes {
|
|
178 |
'mla_rollover_text' => '',
|
179 |
'mla_caption' => '',
|
180 |
'mla_debug' => false,
|
|
|
|
|
|
|
|
|
181 |
// Photonic-specific
|
182 |
'id' => NULL,
|
183 |
'style' => NULL,
|
@@ -201,6 +220,9 @@ class MLAShortcodes {
|
|
201 |
self::$mla_debug = !empty( $arguments['mla_debug'] ) && ( 'true' == strtolower( $arguments['mla_debug'] ) );
|
202 |
|
203 |
$attachments = self::mla_get_shortcode_attachments( $post->ID, $attr );
|
|
|
|
|
|
|
204 |
if ( empty($attachments) ) {
|
205 |
if ( self::$mla_debug ) {
|
206 |
$output = '<p><strong>mla_debug</strong> empty gallery, query = ' . var_export( $attr, true ) . '</p>';
|
@@ -232,7 +254,7 @@ class MLAShortcodes {
|
|
232 |
}
|
233 |
|
234 |
$size = $size_class = $arguments['size'];
|
235 |
-
if ( 'icon'
|
236 |
$size = array( 60, 60 );
|
237 |
$show_icon = true;
|
238 |
}
|
@@ -246,6 +268,16 @@ class MLAShortcodes {
|
|
246 |
return $output;
|
247 |
}
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
// $instance supports multiple galleries in one page/post
|
250 |
static $instance = 0;
|
251 |
$instance++;
|
@@ -286,7 +318,8 @@ class MLAShortcodes {
|
|
286 |
);
|
287 |
|
288 |
$style_template = $gallery_style = '';
|
289 |
-
|
|
|
290 |
$style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
|
291 |
if ( empty( $style_template ) ) {
|
292 |
$style_values['mla_style'] = 'default';
|
@@ -492,7 +525,7 @@ class MLAShortcodes {
|
|
492 |
$markup_values[ $key ] = $text;
|
493 |
} // $custom_placeholders
|
494 |
|
495 |
-
if ( !empty( $iptc_placeholders ) || !empty( $
|
496 |
$image_metadata = MLAData::mla_fetch_attachment_image_metadata( $attachment->ID );
|
497 |
}
|
498 |
|
@@ -522,17 +555,7 @@ class MLAShortcodes {
|
|
522 |
} // $iptc_placeholders
|
523 |
|
524 |
foreach ( $exif_placeholders as $key => $value ) {
|
525 |
-
$
|
526 |
-
if ( array_key_exists( $value['value'], $image_metadata['mla_exif_metadata'] ) ) {
|
527 |
-
$record = $image_metadata['mla_exif_metadata'][ $value['value'] ];
|
528 |
-
if ( is_array( $record ) ) {
|
529 |
-
$text = var_export( $record, true);
|
530 |
-
} // is_array
|
531 |
-
else
|
532 |
-
$text = $record;
|
533 |
-
}
|
534 |
-
|
535 |
-
$markup_values[ $key ] = $text;
|
536 |
} // $exif_placeholders
|
537 |
|
538 |
unset(
|
@@ -569,7 +592,6 @@ class MLAShortcodes {
|
|
569 |
|
570 |
$markup_values['pagelink'] = wp_get_attachment_link($attachment->ID, $size, true, $show_icon, $link_text);
|
571 |
$markup_values['filelink'] = wp_get_attachment_link($attachment->ID, $size, false, $show_icon, $link_text);
|
572 |
-
|
573 |
if ( ! empty( $arguments['mla_rollover_text'] ) ) {
|
574 |
$new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_rollover_text'] ) );
|
575 |
$new_text = MLAData::mla_parse_template( $new_text, $markup_values );
|
@@ -646,6 +668,26 @@ class MLAShortcodes {
|
|
646 |
$markup_values['thumbnail_url'] = '';
|
647 |
}
|
648 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
649 |
/*
|
650 |
* Start of row markup
|
651 |
*/
|
@@ -749,6 +791,7 @@ class MLAShortcodes {
|
|
749 |
$attr = shortcode_parse_atts( $attr );
|
750 |
|
751 |
$arguments = shortcode_atts( $default_arguments, $attr );
|
|
|
752 |
|
753 |
if ( 'RAND' == $arguments['order'] )
|
754 |
$arguments['orderby'] = 'none';
|
@@ -804,11 +847,24 @@ class MLAShortcodes {
|
|
804 |
$children_ok = true;
|
805 |
switch ( $key ) {
|
806 |
case 'post_parent':
|
807 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
808 |
$value = $post_parent;
|
809 |
-
|
|
|
|
|
810 |
$value = NULL;
|
811 |
$use_children = false;
|
|
|
812 |
}
|
813 |
// fallthru
|
814 |
case 'id':
|
@@ -990,7 +1046,6 @@ class MLAShortcodes {
|
|
990 |
}
|
991 |
|
992 |
return $attachments;
|
993 |
-
|
994 |
}
|
995 |
|
996 |
/**
|
@@ -998,6 +1053,7 @@ class MLAShortcodes {
|
|
998 |
*
|
999 |
* Captures debug information. Adds whitespace to the post_type = 'attachment'
|
1000 |
* phrase to circumvent subsequent Role Scoper modification of the clause.
|
|
|
1001 |
* Defined as public because it's a filter.
|
1002 |
*
|
1003 |
* @since 0.70
|
@@ -1010,16 +1066,28 @@ class MLAShortcodes {
|
|
1010 |
global $table_prefix;
|
1011 |
|
1012 |
if ( self::$mla_debug ) {
|
|
|
1013 |
self::$mla_debug_messages .= '<p><strong>mla_debug</strong> WHERE filter = ' . var_export( $where_clause, true ) . '</p>';
|
1014 |
}
|
1015 |
|
1016 |
if ( strpos( $where_clause, "post_type = 'attachment'" ) ) {
|
1017 |
$where_clause = str_replace( "post_type = 'attachment'", "post_type = 'attachment'", $where_clause );
|
1018 |
-
|
1019 |
-
if ( self::$mla_debug )
|
1020 |
-
self::$mla_debug_messages .= '<p><strong>mla_debug</strong> modified WHERE filter = ' . var_export( $where_clause, true ) . '</p>';
|
1021 |
}
|
1022 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1023 |
return $where_clause;
|
1024 |
}
|
1025 |
|
142 |
*/
|
143 |
private static $mla_debug = false;
|
144 |
|
145 |
+
/**
|
146 |
+
* WP_Query filter "parameters"
|
147 |
+
*
|
148 |
+
* This array defines parameters for the query's where filter, mla_shortcode_query_posts_where_filter.
|
149 |
+
* The parameters are set up in the mla_get_shortcode_attachments function, and
|
150 |
+
* any further logic required to translate those values is contained in the filter.
|
151 |
+
*
|
152 |
+
* Array index values are: post_parent
|
153 |
+
*
|
154 |
+
* @since 1.13
|
155 |
+
*
|
156 |
+
* @var array
|
157 |
+
*/
|
158 |
+
private static $query_parameters = array();
|
159 |
+
|
160 |
/**
|
161 |
* The MLA Gallery shortcode.
|
162 |
*
|
193 |
'mla_rollover_text' => '',
|
194 |
'mla_caption' => '',
|
195 |
'mla_debug' => false,
|
196 |
+
'mla_viewer' => false,
|
197 |
+
'mla_viewer_extensions' => 'doc,xls,ppt,pdf,txt',
|
198 |
+
'mla_viewer_page' => '1',
|
199 |
+
'mla_viewer_width' => '150',
|
200 |
// Photonic-specific
|
201 |
'id' => NULL,
|
202 |
'style' => NULL,
|
220 |
self::$mla_debug = !empty( $arguments['mla_debug'] ) && ( 'true' == strtolower( $arguments['mla_debug'] ) );
|
221 |
|
222 |
$attachments = self::mla_get_shortcode_attachments( $post->ID, $attr );
|
223 |
+
if ( is_string( $attachments ) )
|
224 |
+
return $attachments;
|
225 |
+
|
226 |
if ( empty($attachments) ) {
|
227 |
if ( self::$mla_debug ) {
|
228 |
$output = '<p><strong>mla_debug</strong> empty gallery, query = ' . var_export( $attr, true ) . '</p>';
|
254 |
}
|
255 |
|
256 |
$size = $size_class = $arguments['size'];
|
257 |
+
if ( 'icon' == strtolower( $size) ) {
|
258 |
$size = array( 60, 60 );
|
259 |
$show_icon = true;
|
260 |
}
|
268 |
return $output;
|
269 |
}
|
270 |
|
271 |
+
/*
|
272 |
+
* Check for Google File Viewer arguments
|
273 |
+
*/
|
274 |
+
$arguments['mla_viewer'] = !empty( $arguments['mla_viewer'] ) && ( 'true' == strtolower( $arguments['mla_viewer'] ) );
|
275 |
+
if ( $arguments['mla_viewer'] ) {
|
276 |
+
$arguments['mla_viewer_extensions'] = array_filter( array_map( 'trim', explode( ',', $arguments['mla_viewer_extensions'] ) ) );
|
277 |
+
$arguments['mla_viewer_page'] = absint( $arguments['mla_viewer_page'] );
|
278 |
+
$arguments['mla_viewer_width'] = absint( $arguments['mla_viewer_width'] );
|
279 |
+
}
|
280 |
+
|
281 |
// $instance supports multiple galleries in one page/post
|
282 |
static $instance = 0;
|
283 |
$instance++;
|
318 |
);
|
319 |
|
320 |
$style_template = $gallery_style = '';
|
321 |
+
$use_mla_gallery_style = ( 'none' != strtolower( $style_values['mla_style'] ) );
|
322 |
+
if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style ) ) {
|
323 |
$style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
|
324 |
if ( empty( $style_template ) ) {
|
325 |
$style_values['mla_style'] = 'default';
|
525 |
$markup_values[ $key ] = $text;
|
526 |
} // $custom_placeholders
|
527 |
|
528 |
+
if ( !empty( $iptc_placeholders ) || !empty( $exif_placeholders ) ) {
|
529 |
$image_metadata = MLAData::mla_fetch_attachment_image_metadata( $attachment->ID );
|
530 |
}
|
531 |
|
555 |
} // $iptc_placeholders
|
556 |
|
557 |
foreach ( $exif_placeholders as $key => $value ) {
|
558 |
+
$markup_values[ $key ] = MLAData::mla_exif_metadata_value( $value['value'], $image_metadata );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
559 |
} // $exif_placeholders
|
560 |
|
561 |
unset(
|
592 |
|
593 |
$markup_values['pagelink'] = wp_get_attachment_link($attachment->ID, $size, true, $show_icon, $link_text);
|
594 |
$markup_values['filelink'] = wp_get_attachment_link($attachment->ID, $size, false, $show_icon, $link_text);
|
|
|
595 |
if ( ! empty( $arguments['mla_rollover_text'] ) ) {
|
596 |
$new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_rollover_text'] ) );
|
597 |
$new_text = MLAData::mla_parse_template( $new_text, $markup_values );
|
668 |
$markup_values['thumbnail_url'] = '';
|
669 |
}
|
670 |
|
671 |
+
/*
|
672 |
+
* Check for Google file viewer substitution
|
673 |
+
*/
|
674 |
+
if ( $arguments['mla_viewer'] && empty( $markup_values['thumbnail_url'] ) ) {
|
675 |
+
$last_dot = strrpos( $markup_values['file'], '.' );
|
676 |
+
if ( !( false === $last_dot) ) {
|
677 |
+
$extension = substr( $markup_values['file'], $last_dot + 1 );
|
678 |
+
if ( in_array( $extension, $arguments['mla_viewer_extensions'] ) ) {
|
679 |
+
$markup_values['thumbnail_content'] = sprintf( '<img src="http://docs.google.com/viewer?url=%1$s&a=bi&pagenumber=%2$d&w=%3$d">', $markup_values['filelink_url'], $arguments['mla_viewer_page'], $arguments['mla_viewer_width'] );
|
680 |
+
$markup_values['pagelink'] = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $markup_values['pagelink_url'], $markup_values['title'], $markup_values['thumbnail_content'] );
|
681 |
+
$markup_values['filelink'] = sprintf( '<a href="%1$s" title="%2$s">%3$s</a>', $markup_values['filelink_url'], $markup_values['title'], $markup_values['thumbnail_content'] );
|
682 |
+
|
683 |
+
if ( 'permalink' == $arguments['link'] )
|
684 |
+
$markup_values['link'] = $markup_values['pagelink'];
|
685 |
+
else
|
686 |
+
$markup_values['link'] = $markup_values['filelink'];
|
687 |
+
} // viewer extension
|
688 |
+
} // has extension
|
689 |
+
} // mla_viewer
|
690 |
+
|
691 |
/*
|
692 |
* Start of row markup
|
693 |
*/
|
791 |
$attr = shortcode_parse_atts( $attr );
|
792 |
|
793 |
$arguments = shortcode_atts( $default_arguments, $attr );
|
794 |
+
self::$query_parameters = array();
|
795 |
|
796 |
if ( 'RAND' == $arguments['order'] )
|
797 |
$arguments['orderby'] = 'none';
|
847 |
$children_ok = true;
|
848 |
switch ( $key ) {
|
849 |
case 'post_parent':
|
850 |
+
switch ( strtolower( $value ) ) {
|
851 |
+
case 'all':
|
852 |
+
$value = NULL;
|
853 |
+
$use_children = false;
|
854 |
+
break;
|
855 |
+
case 'any':
|
856 |
+
self::$query_parameters['post_parent'] = 'any';
|
857 |
+
$value = NULL;
|
858 |
+
$use_children = false;
|
859 |
+
break;
|
860 |
+
case 'current':
|
861 |
$value = $post_parent;
|
862 |
+
break;
|
863 |
+
case 'none':
|
864 |
+
self::$query_parameters['post_parent'] = 'none';
|
865 |
$value = NULL;
|
866 |
$use_children = false;
|
867 |
+
break;
|
868 |
}
|
869 |
// fallthru
|
870 |
case 'id':
|
1046 |
}
|
1047 |
|
1048 |
return $attachments;
|
|
|
1049 |
}
|
1050 |
|
1051 |
/**
|
1053 |
*
|
1054 |
* Captures debug information. Adds whitespace to the post_type = 'attachment'
|
1055 |
* phrase to circumvent subsequent Role Scoper modification of the clause.
|
1056 |
+
* Handles post_parent "any" and "none" cases.
|
1057 |
* Defined as public because it's a filter.
|
1058 |
*
|
1059 |
* @since 0.70
|
1066 |
global $table_prefix;
|
1067 |
|
1068 |
if ( self::$mla_debug ) {
|
1069 |
+
$old_clause = $where_clause;
|
1070 |
self::$mla_debug_messages .= '<p><strong>mla_debug</strong> WHERE filter = ' . var_export( $where_clause, true ) . '</p>';
|
1071 |
}
|
1072 |
|
1073 |
if ( strpos( $where_clause, "post_type = 'attachment'" ) ) {
|
1074 |
$where_clause = str_replace( "post_type = 'attachment'", "post_type = 'attachment'", $where_clause );
|
|
|
|
|
|
|
1075 |
}
|
1076 |
|
1077 |
+
if ( isset( self::$query_parameters['post_parent'] ) ) {
|
1078 |
+
switch ( self::$query_parameters['post_parent'] ) {
|
1079 |
+
case 'any':
|
1080 |
+
$where_clause .= " AND {$table_prefix}posts.post_parent > 0";
|
1081 |
+
break;
|
1082 |
+
case 'none':
|
1083 |
+
$where_clause .= " AND {$table_prefix}posts.post_parent < 1";
|
1084 |
+
break;
|
1085 |
+
}
|
1086 |
+
}
|
1087 |
+
|
1088 |
+
if ( self::$mla_debug && ( $old_clause != $where_clause ) )
|
1089 |
+
self::$mla_debug_messages .= '<p><strong>mla_debug</strong> modified WHERE filter = ' . var_export( $where_clause, true ) . '</p>';
|
1090 |
+
|
1091 |
return $where_clause;
|
1092 |
}
|
1093 |
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* will the rest of the plugin be loaded and run.
|
7 |
*
|
8 |
* @package Media Library Assistant
|
9 |
-
* @version 1.
|
10 |
*/
|
11 |
|
12 |
/*
|
@@ -14,7 +14,7 @@ Plugin Name: Media Library Assistant
|
|
14 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
15 |
Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
|
16 |
Author: David Lingren
|
17 |
-
Version: 1.
|
18 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
19 |
*/
|
20 |
|
6 |
* will the rest of the plugin be loaded and run.
|
7 |
*
|
8 |
* @package Media Library Assistant
|
9 |
+
* @version 1.13
|
10 |
*/
|
11 |
|
12 |
/*
|
14 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
15 |
Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
|
16 |
Author: David Lingren
|
17 |
+
Version: 1.13
|
18 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
19 |
*/
|
20 |
|
js/mla-inline-edit-scripts.js
CHANGED
@@ -101,10 +101,6 @@ inlineEditAttachment = {
|
|
101 |
$('#ttle'+id).remove();
|
102 |
});
|
103 |
|
104 |
-
// support multi taxonomies?
|
105 |
-
// tax = 'post_tag';
|
106 |
-
// $('tr.inline-editor textarea[name="tax_input['+tax+']"]').suggest( ajaxurl + '?action=ajax-tag-search&tax=' + tax, { delay: 500, minchars: 2, multiple: true, multipleSep: mla_inline_edit_vars.comma + ' ' } );
|
107 |
-
|
108 |
//flat taxonomies
|
109 |
$('textarea.mla_tags').each(function(){
|
110 |
var taxname = $(this).attr('name').replace(']', '').replace('tax_input[', '');
|
@@ -122,8 +118,8 @@ inlineEditAttachment = {
|
|
122 |
if ( typeof(id) == 'object' )
|
123 |
id = t.getId(id);
|
124 |
|
125 |
-
fields =
|
126 |
-
|
127 |
// add the new blank row
|
128 |
editRow = $('#inline-edit').clone(true);
|
129 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
101 |
$('#ttle'+id).remove();
|
102 |
});
|
103 |
|
|
|
|
|
|
|
|
|
104 |
//flat taxonomies
|
105 |
$('textarea.mla_tags').each(function(){
|
106 |
var taxname = $(this).attr('name').replace(']', '').replace('tax_input[', '');
|
118 |
if ( typeof(id) == 'object' )
|
119 |
id = t.getId(id);
|
120 |
|
121 |
+
fields = mla_inline_edit_vars.fields;
|
122 |
+
|
123 |
// add the new blank row
|
124 |
editRow = $('#inline-edit').clone(true);
|
125 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
js/mla-inline-edit-scripts.min.js
CHANGED
@@ -1 +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("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()||mla_inline_edit_vars.notitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla_inline_edit_vars.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("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});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=
|
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("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()||mla_inline_edit_vars.notitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla_inline_edit_vars.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("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla_inline_edit_vars.comma+" "})});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=mla_inline_edit_vars.fields;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(mla_inline_edit_vars.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);
|
phpDocs/classes/MLA.html
CHANGED
@@ -84,6 +84,8 @@ change the meta data for a single attachment.</span><pre>_display_single_item()<
|
|
84 |
<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>
|
85 |
<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>
|
86 |
<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>
|
|
|
|
|
87 |
<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>
|
88 |
<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>
|
89 |
<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>
|
@@ -525,6 +527,30 @@ change the meta data for a single attachment.</h2>
|
|
525 |
</tr></table>
|
526 |
</div></div>
|
527 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
528 |
<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">
|
529 |
<h2>Object name for localizing JavaScript - edit single item page</h2>
|
530 |
<pre>JAVASCRIPT_SINGLE_EDIT_OBJECT : string</pre>
|
@@ -700,7 +726,7 @@ change the meta data for a single attachment.</h2>
|
|
700 |
<div class="row"><footer class="span12">
|
701 |
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>
|
702 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
703 |
-
generated on 2013-
|
704 |
</div>
|
705 |
</body>
|
706 |
</html>
|
84 |
<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>
|
85 |
<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>
|
86 |
<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>
|
87 |
+
<li class="constant "><a href="#JAVASCRIPT_MEDIA_POPUP_OBJECT" title="JAVASCRIPT_MEDIA_POPUP_OBJECT :: Object name for localizing JavaScript - Add Media and related dialogs"><span class="description">Object name for localizing JavaScript - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_POPUP_OBJECT</pre></a></li>
|
88 |
+
<li class="constant "><a href="#JAVASCRIPT_MEDIA_POPUP_SLUG" title="JAVASCRIPT_MEDIA_POPUP_SLUG :: Slug for localizing and enqueueing JavaScript - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing JavaScript - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_POPUP_SLUG</pre></a></li>
|
89 |
<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>
|
90 |
<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>
|
91 |
<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>
|
527 |
</tr></table>
|
528 |
</div></div>
|
529 |
</div>
|
530 |
+
<a name="JAVASCRIPT_MEDIA_POPUP_OBJECT" id="JAVASCRIPT_MEDIA_POPUP_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_MEDIA_POPUP_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_MEDIA_POPUP_OBJECT .collapse">
|
531 |
+
<h2>Object name for localizing JavaScript - Add Media and related dialogs</h2>
|
532 |
+
<pre>JAVASCRIPT_MEDIA_POPUP_OBJECT : string</pre>
|
533 |
+
<div class="labels"></div>
|
534 |
+
<div class="row collapse"><div class="detail-description">
|
535 |
+
<p class="long_description"></p>
|
536 |
+
<table class="table table-bordered"><tr>
|
537 |
+
<th>since</th>
|
538 |
+
<td>1.13</td>
|
539 |
+
</tr></table>
|
540 |
+
</div></div>
|
541 |
+
</div>
|
542 |
+
<a name="JAVASCRIPT_MEDIA_POPUP_SLUG" id="JAVASCRIPT_MEDIA_POPUP_SLUG"> </a><div class="element clickable constant JAVASCRIPT_MEDIA_POPUP_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_MEDIA_POPUP_SLUG .collapse">
|
543 |
+
<h2>Slug for localizing and enqueueing JavaScript - Add Media and related dialogs</h2>
|
544 |
+
<pre>JAVASCRIPT_MEDIA_POPUP_SLUG : string</pre>
|
545 |
+
<div class="labels"></div>
|
546 |
+
<div class="row collapse"><div class="detail-description">
|
547 |
+
<p class="long_description"></p>
|
548 |
+
<table class="table table-bordered"><tr>
|
549 |
+
<th>since</th>
|
550 |
+
<td>1.13</td>
|
551 |
+
</tr></table>
|
552 |
+
</div></div>
|
553 |
+
</div>
|
554 |
<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">
|
555 |
<h2>Object name for localizing JavaScript - edit single item page</h2>
|
556 |
<pre>JAVASCRIPT_SINGLE_EDIT_OBJECT : string</pre>
|
726 |
<div class="row"><footer class="span12">
|
727 |
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>
|
728 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
729 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
730 |
</div>
|
731 |
</body>
|
732 |
</html>
|
phpDocs/classes/MLAData.html
CHANGED
@@ -54,6 +54,7 @@
|
|
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_count_list_table_items" title="mla_count_list_table_items :: Get the total number of attachment posts"><span class="description">Get the total number of attachment posts</span><pre>mla_count_list_table_items()</pre></a></li>
|
|
|
57 |
<li class="method public "><a href="#mla_fetch_attachment_image_metadata" title="mla_fetch_attachment_image_metadata :: Fetch and filter IPTC and EXIF meta data for an image attachment"><span class="description">Fetch and filter IPTC and EXIF meta data for an image attachment</span><pre>mla_fetch_attachment_image_metadata()</pre></a></li>
|
58 |
<li class="method public "><a href="#mla_fetch_attachment_metadata" title="mla_fetch_attachment_metadata :: Fetch and filter meta data for an attachment"><span class="description">Fetch and filter meta data for an attachment</span><pre>mla_fetch_attachment_metadata()</pre></a></li>
|
59 |
<li class="method public "><a href="#mla_fetch_attachment_parent_data" title="mla_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>mla_fetch_attachment_parent_data()</pre></a></li>
|
@@ -150,6 +151,30 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
|
|
150 |
<code>integer</code>Number of attachment posts</div>
|
151 |
</div></div>
|
152 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
<a name="mla_fetch_attachment_image_metadata" id="mla_fetch_attachment_image_metadata"></a><div class="element clickable method public mla_fetch_attachment_image_metadata" data-toggle="collapse" data-target=".mla_fetch_attachment_image_metadata .collapse">
|
154 |
<h2>Fetch and filter IPTC and EXIF meta data for an image attachment</h2>
|
155 |
<pre>mla_fetch_attachment_image_metadata(int $post_id, string $path) : array</pre>
|
@@ -714,7 +739,9 @@ each page load and cached for subsequent calls.</p></p>
|
|
714 |
<div class="row collapse"><div class="detail-description">
|
715 |
<p class="long_description"><p>This array defines parameters for the query's join, where and orderby filters.
|
716 |
The parameters are set up in the _prepare_list_table_query function, and
|
717 |
-
any further logic required to translate those values is contained in the filters.</p
|
|
|
|
|
718 |
<table class="table table-bordered"><tr>
|
719 |
<th>since</th>
|
720 |
<td>0.30</td>
|
@@ -742,7 +769,7 @@ any further logic required to translate those values is contained in the filters
|
|
742 |
<div class="row"><footer class="span12">
|
743 |
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>
|
744 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
745 |
-
generated on 2013-
|
746 |
</div>
|
747 |
</body>
|
748 |
</html>
|
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_count_list_table_items" title="mla_count_list_table_items :: Get the total number of attachment posts"><span class="description">Get the total number of attachment posts</span><pre>mla_count_list_table_items()</pre></a></li>
|
57 |
+
<li class="method public "><a href="#mla_exif_metadata_value" title="mla_exif_metadata_value :: Parse one EXIF metadata field"><span class="description">Parse one EXIF metadata field</span><pre>mla_exif_metadata_value()</pre></a></li>
|
58 |
<li class="method public "><a href="#mla_fetch_attachment_image_metadata" title="mla_fetch_attachment_image_metadata :: Fetch and filter IPTC and EXIF meta data for an image attachment"><span class="description">Fetch and filter IPTC and EXIF meta data for an image attachment</span><pre>mla_fetch_attachment_image_metadata()</pre></a></li>
|
59 |
<li class="method public "><a href="#mla_fetch_attachment_metadata" title="mla_fetch_attachment_metadata :: Fetch and filter meta data for an attachment"><span class="description">Fetch and filter meta data for an attachment</span><pre>mla_fetch_attachment_metadata()</pre></a></li>
|
60 |
<li class="method public "><a href="#mla_fetch_attachment_parent_data" title="mla_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>mla_fetch_attachment_parent_data()</pre></a></li>
|
151 |
<code>integer</code>Number of attachment posts</div>
|
152 |
</div></div>
|
153 |
</div>
|
154 |
+
<a name="mla_exif_metadata_value" id="mla_exif_metadata_value"></a><div class="element clickable method public mla_exif_metadata_value" data-toggle="collapse" data-target=".mla_exif_metadata_value .collapse">
|
155 |
+
<h2>Parse one EXIF metadata field</h2>
|
156 |
+
<pre>mla_exif_metadata_value(string $key, string $image_metadata) : string</pre>
|
157 |
+
<div class="labels"></div>
|
158 |
+
<div class="row collapse"><div class="detail-description">
|
159 |
+
<p class="long_description"><p>Returns a string value, converting array data to a string as necessary.
|
160 |
+
Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p></p>
|
161 |
+
<table class="table table-bordered"><tr>
|
162 |
+
<th>since</th>
|
163 |
+
<td>1.13</td>
|
164 |
+
</tr></table>
|
165 |
+
<h3>Parameters</h3>
|
166 |
+
<div class="subelement argument">
|
167 |
+
<h4>$key</h4>
|
168 |
+
<code>string</code><p>field name</p></div>
|
169 |
+
<div class="subelement argument">
|
170 |
+
<h4>$image_metadata</h4>
|
171 |
+
<code>string</code><p>metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays</p>
|
172 |
+
</div>
|
173 |
+
<h3>Returns</h3>
|
174 |
+
<div class="subelement response">
|
175 |
+
<code>string</code>string representation of metadata value or an empty string</div>
|
176 |
+
</div></div>
|
177 |
+
</div>
|
178 |
<a name="mla_fetch_attachment_image_metadata" id="mla_fetch_attachment_image_metadata"></a><div class="element clickable method public mla_fetch_attachment_image_metadata" data-toggle="collapse" data-target=".mla_fetch_attachment_image_metadata .collapse">
|
179 |
<h2>Fetch and filter IPTC and EXIF meta data for an image attachment</h2>
|
180 |
<pre>mla_fetch_attachment_image_metadata(int $post_id, string $path) : array</pre>
|
739 |
<div class="row collapse"><div class="detail-description">
|
740 |
<p class="long_description"><p>This array defines parameters for the query's join, where and orderby filters.
|
741 |
The parameters are set up in the _prepare_list_table_query function, and
|
742 |
+
any further logic required to translate those values is contained in the filters.</p>
|
743 |
+
|
744 |
+
<p>Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla-search-connector, mla-search-fields, sentence, exact</p></p>
|
745 |
<table class="table table-bordered"><tr>
|
746 |
<th>since</th>
|
747 |
<td>0.30</td>
|
769 |
<div class="row"><footer class="span12">
|
770 |
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>
|
771 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
772 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
773 |
</div>
|
774 |
</body>
|
775 |
</html>
|
phpDocs/classes/MLAEdit.html
CHANGED
@@ -342,7 +342,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
|
|
342 |
<div class="row"><footer class="span12">
|
343 |
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>
|
344 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
345 |
-
generated on 2013-
|
346 |
</div>
|
347 |
</body>
|
348 |
</html>
|
342 |
<div class="row"><footer class="span12">
|
343 |
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>
|
344 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
345 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
346 |
</div>
|
347 |
</body>
|
348 |
</html>
|
phpDocs/classes/MLAObjects.html
CHANGED
@@ -167,7 +167,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
|
167 |
<div class="row"><footer class="span12">
|
168 |
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>
|
169 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
170 |
-
generated on 2013-
|
171 |
</div>
|
172 |
</body>
|
173 |
</html>
|
167 |
<div class="row"><footer class="span12">
|
168 |
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>
|
169 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
170 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
171 |
</div>
|
172 |
</body>
|
173 |
</html>
|
phpDocs/classes/MLAOptions.html
CHANGED
@@ -233,11 +233,11 @@ and provides functions to get and put them from/to WordPress option variables</p
|
|
233 |
<h3>Parameters</h3>
|
234 |
<div class="subelement argument">
|
235 |
<h4>$support_type</h4>
|
236 |
-
<code>string</code><p>array format; 'default_columns' (default), 'default_hidden_columns' or '
|
237 |
</div>
|
238 |
<h3>Returns</h3>
|
239 |
<div class="subelement response">
|
240 |
-
<code>array</code>default, hidden or
|
241 |
</div></div>
|
242 |
</div>
|
243 |
<a name="mla_delete_option" id="mla_delete_option"></a><div class="element clickable method public mla_delete_option" data-toggle="collapse" data-target=".mla_delete_option .collapse">
|
@@ -1007,7 +1007,7 @@ reset => reset function for 'custom' options; returns nothing. Usage:
|
|
1007 |
<div class="row"><footer class="span12">
|
1008 |
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>
|
1009 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1010 |
-
generated on 2013-
|
1011 |
</div>
|
1012 |
</body>
|
1013 |
</html>
|
233 |
<h3>Parameters</h3>
|
234 |
<div class="subelement argument">
|
235 |
<h4>$support_type</h4>
|
236 |
+
<code>string</code><p>array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'</p>
|
237 |
</div>
|
238 |
<h3>Returns</h3>
|
239 |
<div class="subelement response">
|
240 |
+
<code>array</code>default, hidden, sortable quick_edit or bulk_edit colums in appropriate format</div>
|
241 |
</div></div>
|
242 |
</div>
|
243 |
<a name="mla_delete_option" id="mla_delete_option"></a><div class="element clickable method public mla_delete_option" data-toggle="collapse" data-target=".mla_delete_option .collapse">
|
1007 |
<div class="row"><footer class="span12">
|
1008 |
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>
|
1009 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1010 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
1011 |
</div>
|
1012 |
</body>
|
1013 |
</html>
|
phpDocs/classes/MLASettings.html
CHANGED
@@ -674,7 +674,7 @@ each page load and cached for subsequent use.</p></p>
|
|
674 |
<div class="row"><footer class="span12">
|
675 |
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>
|
676 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
677 |
-
generated on 2013-
|
678 |
</div>
|
679 |
</body>
|
680 |
</html>
|
674 |
<div class="row"><footer class="span12">
|
675 |
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>
|
676 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
677 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
678 |
</div>
|
679 |
</body>
|
680 |
</html>
|
phpDocs/classes/MLAShortcodes.html
CHANGED
@@ -67,6 +67,7 @@
|
|
67 |
<li class="property private "><a href="#%24mla_iptc_formats" title="$mla_iptc_formats :: IPTC file format identifiers and descriptions"><span class="description">IPTC file format identifiers and descriptions</span><pre>$mla_iptc_formats</pre></a></li>
|
68 |
<li class="property private "><a href="#%24mla_iptc_image_types" title="$mla_iptc_image_types :: IPTC image type identifiers and descriptions"><span class="description">IPTC image type identifiers and descriptions</span><pre>$mla_iptc_image_types</pre></a></li>
|
69 |
<li class="property private "><a href="#%24mla_iptc_records" title="$mla_iptc_records :: IPTC Dataset identifiers and names"><span class="description">IPTC Dataset identifiers and names</span><pre>$mla_iptc_records</pre></a></li>
|
|
|
70 |
</ul>
|
71 |
</div>
|
72 |
<div class="span8">
|
@@ -169,6 +170,7 @@ Enhancements include many additional selection parameters and full taxonomy supp
|
|
169 |
<div class="row collapse"><div class="detail-description">
|
170 |
<p class="long_description"><p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
171 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
|
|
172 |
Defined as public because it's a filter.</p></p>
|
173 |
<table class="table table-bordered"><tr>
|
174 |
<th>since</th>
|
@@ -274,6 +276,22 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
|
|
274 |
</tr></table>
|
275 |
</div></div>
|
276 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
</div>
|
278 |
</div>
|
279 |
</div>
|
@@ -281,7 +299,7 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
|
|
281 |
<div class="row"><footer class="span12">
|
282 |
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>
|
283 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
284 |
-
generated on 2013-
|
285 |
</div>
|
286 |
</body>
|
287 |
</html>
|
67 |
<li class="property private "><a href="#%24mla_iptc_formats" title="$mla_iptc_formats :: IPTC file format identifiers and descriptions"><span class="description">IPTC file format identifiers and descriptions</span><pre>$mla_iptc_formats</pre></a></li>
|
68 |
<li class="property private "><a href="#%24mla_iptc_image_types" title="$mla_iptc_image_types :: IPTC image type identifiers and descriptions"><span class="description">IPTC image type identifiers and descriptions</span><pre>$mla_iptc_image_types</pre></a></li>
|
69 |
<li class="property private "><a href="#%24mla_iptc_records" title="$mla_iptc_records :: IPTC Dataset identifiers and names"><span class="description">IPTC Dataset identifiers and names</span><pre>$mla_iptc_records</pre></a></li>
|
70 |
+
<li class="property private "><a href="#%24query_parameters" title='$query_parameters :: WP_Query filter "parameters"'><span class="description">WP_Query filter "parameters"</span><pre>$query_parameters</pre></a></li>
|
71 |
</ul>
|
72 |
</div>
|
73 |
<div class="span8">
|
170 |
<div class="row collapse"><div class="detail-description">
|
171 |
<p class="long_description"><p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
172 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
173 |
+
Handles post_parent "any" and "none" cases.
|
174 |
Defined as public because it's a filter.</p></p>
|
175 |
<table class="table table-bordered"><tr>
|
176 |
<th>since</th>
|
276 |
</tr></table>
|
277 |
</div></div>
|
278 |
</div>
|
279 |
+
<a name="%24query_parameters" id="$query_parameters"> </a><div class="element clickable property private $query_parameters" data-toggle="collapse" data-target=".$query_parameters .collapse">
|
280 |
+
<h2>WP_Query filter "parameters"</h2>
|
281 |
+
<pre>$query_parameters : array</pre>
|
282 |
+
<div class="labels"></div>
|
283 |
+
<div class="row collapse"><div class="detail-description">
|
284 |
+
<p class="long_description"><p>This array defines parameters for the query's where filter, mla_shortcode_query_posts_where_filter.
|
285 |
+
The parameters are set up in the mla_get_shortcode_attachments function, and
|
286 |
+
any further logic required to translate those values is contained in the filter.</p>
|
287 |
+
|
288 |
+
<p>Array index values are: post_parent</p></p>
|
289 |
+
<table class="table table-bordered"><tr>
|
290 |
+
<th>since</th>
|
291 |
+
<td>1.13</td>
|
292 |
+
</tr></table>
|
293 |
+
</div></div>
|
294 |
+
</div>
|
295 |
</div>
|
296 |
</div>
|
297 |
</div>
|
299 |
<div class="row"><footer class="span12">
|
300 |
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>
|
301 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
302 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
303 |
</div>
|
304 |
</body>
|
305 |
</html>
|
phpDocs/classes/MLATest.html
CHANGED
@@ -160,7 +160,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
160 |
<div class="row"><footer class="span12">
|
161 |
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>
|
162 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
163 |
-
generated on 2013-
|
164 |
</div>
|
165 |
</body>
|
166 |
</html>
|
160 |
<div class="row"><footer class="span12">
|
161 |
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>
|
162 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
163 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
164 |
</div>
|
165 |
</body>
|
166 |
</html>
|
phpDocs/classes/MLA_List_Table.html
CHANGED
@@ -991,7 +991,7 @@ Custom field columns are added to this array by mla_admin_init_action.</p></p>
|
|
991 |
<div class="row"><footer class="span12">
|
992 |
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>
|
993 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
994 |
-
generated on 2013-
|
995 |
</div>
|
996 |
</body>
|
997 |
</html>
|
991 |
<div class="row"><footer class="span12">
|
992 |
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>
|
993 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
994 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
995 |
</div>
|
996 |
</body>
|
997 |
</html>
|
phpDocs/deprecated.html
CHANGED
@@ -62,7 +62,7 @@
|
|
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 2013-
|
66 |
</div>
|
67 |
</body>
|
68 |
</html>
|
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 2013-02-26T09:38:18-08:00.<br></footer></div>
|
66 |
</div>
|
67 |
</body>
|
68 |
</html>
|
phpDocs/errors.html
CHANGED
@@ -76,7 +76,7 @@
|
|
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 2013-
|
80 |
</div>
|
81 |
</body>
|
82 |
</html>
|
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 2013-02-26T09:38:18-08:00.<br></footer></div>
|
80 |
</div>
|
81 |
</body>
|
82 |
</html>
|
phpDocs/graph_class.html
CHANGED
@@ -59,7 +59,7 @@
|
|
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 2013-
|
63 |
</div>
|
64 |
</body>
|
65 |
</html>
|
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 2013-02-26T09:38:18-08:00.<br></footer></div>
|
63 |
</div>
|
64 |
</body>
|
65 |
</html>
|
phpDocs/index.html
CHANGED
@@ -79,7 +79,7 @@
|
|
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 2013-
|
83 |
</div>
|
84 |
</body>
|
85 |
</html>
|
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 2013-02-26T09:38:18-08:00.<br></footer></div>
|
83 |
</div>
|
84 |
</body>
|
85 |
</html>
|
phpDocs/markers.html
CHANGED
@@ -64,7 +64,7 @@
|
|
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 2013-
|
68 |
</div>
|
69 |
</body>
|
70 |
</html>
|
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 2013-02-26T09:38:18-08:00.<br></footer></div>
|
68 |
</div>
|
69 |
</body>
|
70 |
</html>
|
phpDocs/namespaces/global.html
CHANGED
@@ -173,7 +173,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
173 |
<div class="row"><footer class="span12">
|
174 |
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>
|
175 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
176 |
-
generated on 2013-
|
177 |
</div>
|
178 |
</body>
|
179 |
</html>
|
173 |
<div class="row"><footer class="span12">
|
174 |
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>
|
175 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
176 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
177 |
</div>
|
178 |
</body>
|
179 |
</html>
|
phpDocs/packages/Media Library Assistant.html
CHANGED
@@ -195,7 +195,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
195 |
<div class="row"><footer class="span12">
|
196 |
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>
|
197 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
198 |
-
generated on 2013-
|
199 |
</div>
|
200 |
</body>
|
201 |
</html>
|
195 |
<div class="row"><footer class="span12">
|
196 |
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>
|
197 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
198 |
+
generated on 2013-02-26T09:38:18-08:00.<br></footer></div>
|
199 |
</div>
|
200 |
</body>
|
201 |
</html>
|
phpDocs/structure.xml
CHANGED
@@ -1,6 +1,6 @@
|
|
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="
|
4 |
<docblock line="2">
|
5 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
6 |
<long-description><![CDATA[]]></long-description>
|
@@ -40,24 +40,26 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
|
|
40 |
</tag>
|
41 |
</docblock>
|
42 |
</property>
|
43 |
-
<property final="false" static="true" visibility="private" line="
|
44 |
<name>$query_parameters</name>
|
45 |
<default><![CDATA[array()]]></default>
|
46 |
<docblock line="275">
|
47 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
48 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
49 |
The parameters are set up in the _prepare_list_table_query function, and
|
50 |
-
any further logic required to translate those values is contained in the filters.</p>
|
|
|
|
|
51 |
<tag line="275" name="since" description="0.30"/>
|
52 |
<tag line="275" name="var" description="" type="array">
|
53 |
<type by_reference="false">array</type>
|
54 |
</tag>
|
55 |
</docblock>
|
56 |
</property>
|
57 |
-
<property final="false" static="true" visibility="private" line="
|
58 |
<name>$galleries</name>
|
59 |
<default><![CDATA[null]]></default>
|
60 |
-
<docblock line="
|
61 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
62 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
63 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
@@ -69,22 +71,22 @@ Each inner array has these elements:
|
|
69 |
['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
|
70 |
['query'] contains a string with the arguments of the [gallery],
|
71 |
['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
|
72 |
-
<tag line="
|
73 |
-
<tag line="
|
74 |
<type by_reference="false">array</type>
|
75 |
</tag>
|
76 |
</docblock>
|
77 |
</property>
|
78 |
-
<property final="false" static="true" visibility="private" line="
|
79 |
<name>$mla_galleries</name>
|
80 |
<default><![CDATA[null]]></default>
|
81 |
-
<docblock line="
|
82 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
83 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
84 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
85 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
86 |
-
<tag line="
|
87 |
-
<tag line="
|
88 |
<type by_reference="false">array</type>
|
89 |
</tag>
|
90 |
</docblock>
|
@@ -236,499 +238,528 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
|
|
236 |
<type/>
|
237 |
</argument>
|
238 |
</method>
|
239 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
240 |
<name>_prepare_list_table_query</name>
|
241 |
<full_name>_prepare_list_table_query</full_name>
|
242 |
-
<docblock line="
|
243 |
<description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
|
244 |
<long-description><![CDATA[<p>Prepare the arguments for WP_Query.
|
245 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
246 |
-
<tag line="
|
247 |
-
<tag line="
|
248 |
<type by_reference="false">array</type>
|
249 |
</tag>
|
250 |
-
<tag line="
|
251 |
<type by_reference="false">int</type>
|
252 |
</tag>
|
253 |
-
<tag line="
|
254 |
<type by_reference="false">int</type>
|
255 |
</tag>
|
256 |
-
<tag line="
|
257 |
<type by_reference="false">array</type>
|
258 |
</tag>
|
259 |
</docblock>
|
260 |
-
<argument line="
|
261 |
<name>$raw_request</name>
|
262 |
<default><![CDATA[]]></default>
|
263 |
<type/>
|
264 |
</argument>
|
265 |
-
<argument line="
|
266 |
<name>$offset</name>
|
267 |
<default><![CDATA[0]]></default>
|
268 |
<type/>
|
269 |
</argument>
|
270 |
-
<argument line="
|
271 |
<name>$count</name>
|
272 |
<default><![CDATA[0]]></default>
|
273 |
<type/>
|
274 |
</argument>
|
275 |
</method>
|
276 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
277 |
<name>_execute_list_table_query</name>
|
278 |
<full_name>_execute_list_table_query</full_name>
|
279 |
-
<docblock line="
|
280 |
<description><![CDATA[Add filters, run query, remove filters]]></description>
|
281 |
<long-description><![CDATA[]]></long-description>
|
282 |
-
<tag line="
|
283 |
-
<tag line="
|
284 |
<type by_reference="false">array</type>
|
285 |
</tag>
|
286 |
-
<tag line="
|
287 |
<type by_reference="false">object</type>
|
288 |
</tag>
|
289 |
</docblock>
|
290 |
-
<argument line="
|
291 |
<name>$request</name>
|
292 |
<default><![CDATA[]]></default>
|
293 |
<type/>
|
294 |
</argument>
|
295 |
</method>
|
296 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
297 |
<name>mla_query_posts_search_filter</name>
|
298 |
<full_name>mla_query_posts_search_filter</full_name>
|
299 |
-
<docblock line="
|
300 |
<description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
|
301 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
302 |
-
<tag line="
|
303 |
-
<tag line="
|
304 |
<type by_reference="false">string</type>
|
305 |
</tag>
|
306 |
-
<tag line="
|
307 |
<type by_reference="false">object</type>
|
308 |
</tag>
|
309 |
-
<tag line="
|
310 |
<type by_reference="false">string</type>
|
311 |
</tag>
|
312 |
</docblock>
|
313 |
-
<argument line="
|
314 |
<name>$search_string</name>
|
315 |
<default><![CDATA[]]></default>
|
316 |
<type/>
|
317 |
</argument>
|
318 |
-
<argument line="
|
319 |
<name>$query_object</name>
|
320 |
<default><![CDATA[]]></default>
|
321 |
<type/>
|
322 |
</argument>
|
323 |
</method>
|
324 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
325 |
<name>mla_query_posts_join_filter</name>
|
326 |
<full_name>mla_query_posts_join_filter</full_name>
|
327 |
-
<docblock line="
|
328 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on ALT Text]]></description>
|
329 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
330 |
-
<tag line="
|
331 |
-
<tag line="
|
332 |
<type by_reference="false">string</type>
|
333 |
</tag>
|
334 |
-
<tag line="
|
335 |
<type by_reference="false">string</type>
|
336 |
</tag>
|
337 |
</docblock>
|
338 |
-
<argument line="
|
339 |
<name>$join_clause</name>
|
340 |
<default><![CDATA[]]></default>
|
341 |
<type/>
|
342 |
</argument>
|
343 |
</method>
|
344 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
345 |
<name>mla_query_posts_where_filter</name>
|
346 |
<full_name>mla_query_posts_where_filter</full_name>
|
347 |
-
<docblock line="
|
348 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
349 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
350 |
Defined as public because it's a filter.</p>]]></long-description>
|
351 |
-
<tag line="
|
352 |
-
<tag line="
|
353 |
<type by_reference="false">string</type>
|
354 |
</tag>
|
355 |
-
<tag line="
|
356 |
<type by_reference="false">string</type>
|
357 |
</tag>
|
358 |
</docblock>
|
359 |
-
<argument line="
|
360 |
<name>$where_clause</name>
|
361 |
<default><![CDATA[]]></default>
|
362 |
<type/>
|
363 |
</argument>
|
364 |
</method>
|
365 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
366 |
<name>mla_query_posts_orderby_filter</name>
|
367 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
368 |
-
<docblock line="
|
369 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
370 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
371 |
Defined as public because it's a filter.</p>]]></long-description>
|
372 |
-
<tag line="
|
373 |
-
<tag line="
|
374 |
<type by_reference="false">string</type>
|
375 |
</tag>
|
376 |
-
<tag line="
|
377 |
<type by_reference="false">string</type>
|
378 |
</tag>
|
379 |
</docblock>
|
380 |
-
<argument line="
|
381 |
<name>$orderby_clause</name>
|
382 |
<default><![CDATA[]]></default>
|
383 |
<type/>
|
384 |
</argument>
|
385 |
</method>
|
386 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
387 |
<name>mla_get_attachment_by_id</name>
|
388 |
<full_name>mla_get_attachment_by_id</full_name>
|
389 |
-
<docblock line="
|
390 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
391 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
392 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
393 |
-
<tag line="
|
394 |
-
<tag line="
|
395 |
-
<tag line="
|
396 |
<type by_reference="false">int</type>
|
397 |
</tag>
|
398 |
-
<tag line="
|
399 |
<type by_reference="false">NULL</type>
|
400 |
<type by_reference="false">array</type>
|
401 |
</tag>
|
402 |
</docblock>
|
403 |
-
<argument line="
|
404 |
<name>$post_id</name>
|
405 |
<default><![CDATA[]]></default>
|
406 |
<type/>
|
407 |
</argument>
|
408 |
</method>
|
409 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
410 |
<name>mla_fetch_attachment_parent_data</name>
|
411 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
412 |
-
<docblock line="
|
413 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
414 |
<long-description><![CDATA[]]></long-description>
|
415 |
-
<tag line="
|
416 |
-
<tag line="
|
417 |
<type by_reference="false">int</type>
|
418 |
</tag>
|
419 |
-
<tag line="
|
420 |
<type by_reference="false">array</type>
|
421 |
</tag>
|
422 |
</docblock>
|
423 |
-
<argument line="
|
424 |
<name>$parent_id</name>
|
425 |
<default><![CDATA[]]></default>
|
426 |
<type/>
|
427 |
</argument>
|
428 |
</method>
|
429 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
430 |
<name>mla_fetch_attachment_metadata</name>
|
431 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
432 |
-
<docblock line="
|
433 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
434 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
435 |
are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
|
436 |
a string containing the first array element.</p>]]></long-description>
|
437 |
-
<tag line="
|
438 |
-
<tag line="
|
439 |
<type by_reference="false">int</type>
|
440 |
</tag>
|
441 |
-
<tag line="
|
442 |
<type by_reference="false">array</type>
|
443 |
</tag>
|
444 |
</docblock>
|
445 |
-
<argument line="
|
446 |
<name>$post_id</name>
|
447 |
<default><![CDATA[]]></default>
|
448 |
<type/>
|
449 |
</argument>
|
450 |
</method>
|
451 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
452 |
<name>mla_fetch_attachment_references</name>
|
453 |
<full_name>mla_fetch_attachment_references</full_name>
|
454 |
-
<docblock line="
|
455 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
456 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
457 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
458 |
-
<tag line="
|
459 |
-
<tag line="
|
460 |
<type by_reference="false">int</type>
|
461 |
</tag>
|
462 |
-
<tag line="
|
463 |
<type by_reference="false">int</type>
|
464 |
</tag>
|
465 |
-
<tag line="
|
466 |
<type by_reference="false">array</type>
|
467 |
</tag>
|
468 |
</docblock>
|
469 |
-
<argument line="
|
470 |
<name>$ID</name>
|
471 |
<default><![CDATA[]]></default>
|
472 |
<type/>
|
473 |
</argument>
|
474 |
-
<argument line="
|
475 |
<name>$parent</name>
|
476 |
<default><![CDATA[]]></default>
|
477 |
<type/>
|
478 |
</argument>
|
479 |
</method>
|
480 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
481 |
<name>mla_flush_mla_galleries</name>
|
482 |
<full_name>mla_flush_mla_galleries</full_name>
|
483 |
-
<docblock line="
|
484 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
485 |
<long-description><![CDATA[]]></long-description>
|
486 |
-
<tag line="
|
487 |
-
<tag line="
|
488 |
<type by_reference="false">string</type>
|
489 |
</tag>
|
490 |
-
<tag line="
|
491 |
<type by_reference="false">void</type>
|
492 |
</tag>
|
493 |
</docblock>
|
494 |
-
<argument line="
|
495 |
<name>$option_name</name>
|
496 |
<default><![CDATA[]]></default>
|
497 |
<type/>
|
498 |
</argument>
|
499 |
</method>
|
500 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
501 |
<name>mla_save_post_action</name>
|
502 |
<full_name>mla_save_post_action</full_name>
|
503 |
-
<docblock line="
|
504 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
505 |
<long-description><![CDATA[]]></long-description>
|
506 |
-
<tag line="
|
507 |
-
<tag line="
|
508 |
<type by_reference="false">integer</type>
|
509 |
</tag>
|
510 |
-
<tag line="
|
511 |
<type by_reference="false">void</type>
|
512 |
</tag>
|
513 |
</docblock>
|
514 |
-
<argument line="
|
515 |
<name>$post_id</name>
|
516 |
<default><![CDATA[]]></default>
|
517 |
<type/>
|
518 |
</argument>
|
519 |
</method>
|
520 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
521 |
<name>_build_mla_galleries</name>
|
522 |
<full_name>_build_mla_galleries</full_name>
|
523 |
-
<docblock line="
|
524 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
525 |
<long-description><![CDATA[]]></long-description>
|
526 |
-
<tag line="
|
527 |
-
<tag line="
|
528 |
<type by_reference="false">string</type>
|
529 |
</tag>
|
530 |
-
<tag line="
|
531 |
<type by_reference="false">array</type>
|
532 |
</tag>
|
533 |
-
<tag line="
|
534 |
<type by_reference="false">string</type>
|
535 |
</tag>
|
536 |
-
<tag line="
|
537 |
<type by_reference="false">boolean</type>
|
538 |
</tag>
|
539 |
-
<tag line="
|
540 |
<type by_reference="false">boolean</type>
|
541 |
</tag>
|
542 |
</docblock>
|
543 |
-
<argument line="
|
544 |
<name>$option_name</name>
|
545 |
<default><![CDATA[]]></default>
|
546 |
<type/>
|
547 |
</argument>
|
548 |
-
<argument line="
|
549 |
<name>$galleries_array</name>
|
550 |
<default><![CDATA[]]></default>
|
551 |
<type/>
|
552 |
</argument>
|
553 |
-
<argument line="
|
554 |
<name>$shortcode</name>
|
555 |
<default><![CDATA[]]></default>
|
556 |
<type/>
|
557 |
</argument>
|
558 |
-
<argument line="
|
559 |
<name>$exclude_revisions</name>
|
560 |
<default><![CDATA[]]></default>
|
561 |
<type/>
|
562 |
</argument>
|
563 |
</method>
|
564 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
565 |
<name>_search_mla_galleries</name>
|
566 |
<full_name>_search_mla_galleries</full_name>
|
567 |
-
<docblock line="
|
568 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
569 |
<long-description><![CDATA[]]></long-description>
|
570 |
-
<tag line="
|
571 |
-
<tag line="
|
572 |
<type by_reference="false">array</type>
|
573 |
</tag>
|
574 |
-
<tag line="
|
575 |
<type by_reference="false">int</type>
|
576 |
</tag>
|
577 |
-
<tag line="
|
578 |
<type by_reference="false">array</type>
|
579 |
</tag>
|
580 |
</docblock>
|
581 |
-
<argument line="
|
582 |
<name>$galleries_array</name>
|
583 |
<default><![CDATA[]]></default>
|
584 |
<type/>
|
585 |
</argument>
|
586 |
-
<argument line="
|
587 |
<name>$attachment_id</name>
|
588 |
<default><![CDATA[]]></default>
|
589 |
<type/>
|
590 |
</argument>
|
591 |
</method>
|
592 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
593 |
<name>mla_fetch_attachment_image_metadata</name>
|
594 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
595 |
-
<docblock line="
|
596 |
<description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
|
597 |
<long-description><![CDATA[<p>Returns</p>]]></long-description>
|
598 |
-
<tag line="
|
599 |
-
<tag line="
|
600 |
<type by_reference="false">int</type>
|
601 |
</tag>
|
602 |
-
<tag line="
|
603 |
<type by_reference="false">string</type>
|
604 |
</tag>
|
605 |
-
<tag line="
|
606 |
<type by_reference="false">array</type>
|
607 |
</tag>
|
608 |
</docblock>
|
609 |
-
<argument line="
|
610 |
<name>$post_id</name>
|
611 |
<default><![CDATA[]]></default>
|
612 |
<type/>
|
613 |
</argument>
|
614 |
-
<argument line="
|
615 |
<name>$path</name>
|
616 |
<default><![CDATA['']]></default>
|
617 |
<type/>
|
618 |
</argument>
|
619 |
</method>
|
620 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
621 |
<name>mla_update_single_item</name>
|
622 |
<full_name>mla_update_single_item</full_name>
|
623 |
-
<docblock line="
|
624 |
<description><![CDATA[Update a single item; change the meta data
|
625 |
for a single attachment.]]></description>
|
626 |
<long-description><![CDATA[]]></long-description>
|
627 |
-
<tag line="
|
628 |
-
<tag line="
|
629 |
<type by_reference="false">int</type>
|
630 |
</tag>
|
631 |
-
<tag line="
|
632 |
<type by_reference="false">array</type>
|
633 |
</tag>
|
634 |
-
<tag line="
|
635 |
<type by_reference="false">array</type>
|
636 |
</tag>
|
637 |
-
<tag line="
|
638 |
<type by_reference="false">array</type>
|
639 |
</tag>
|
640 |
-
<tag line="
|
641 |
<type by_reference="false">array</type>
|
642 |
</tag>
|
643 |
</docblock>
|
644 |
-
<argument line="
|
645 |
<name>$post_id</name>
|
646 |
<default><![CDATA[]]></default>
|
647 |
<type/>
|
648 |
</argument>
|
649 |
-
<argument line="
|
650 |
<name>$new_data</name>
|
651 |
<default><![CDATA[]]></default>
|
652 |
<type/>
|
653 |
</argument>
|
654 |
-
<argument line="
|
655 |
<name>$tax_input</name>
|
656 |
<default><![CDATA[NULL]]></default>
|
657 |
<type/>
|
658 |
</argument>
|
659 |
-
<argument line="
|
660 |
<name>$tax_actions</name>
|
661 |
<default><![CDATA[NULL]]></default>
|
662 |
<type/>
|
663 |
</argument>
|
664 |
</method>
|
665 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
666 |
<name>_remove_tags</name>
|
667 |
<full_name>_remove_tags</full_name>
|
668 |
-
<docblock line="
|
669 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
670 |
<long-description><![CDATA[]]></long-description>
|
671 |
-
<tag line="
|
672 |
-
<tag line="
|
673 |
<type by_reference="false">array</type>
|
674 |
</tag>
|
675 |
-
<tag line="
|
676 |
<type by_reference="false">array</type>
|
677 |
</tag>
|
678 |
-
<tag line="
|
679 |
<type by_reference="false">object</type>
|
680 |
</tag>
|
681 |
-
<tag line="
|
682 |
<type by_reference="false">array</type>
|
683 |
</tag>
|
684 |
</docblock>
|
685 |
-
<argument line="
|
686 |
<name>$terms_before</name>
|
687 |
<default><![CDATA[]]></default>
|
688 |
<type/>
|
689 |
</argument>
|
690 |
-
<argument line="
|
691 |
<name>$tags</name>
|
692 |
<default><![CDATA[]]></default>
|
693 |
<type/>
|
694 |
</argument>
|
695 |
-
<argument line="
|
696 |
<name>$taxonomy_obj</name>
|
697 |
<default><![CDATA[]]></default>
|
698 |
<type/>
|
699 |
</argument>
|
700 |
</method>
|
701 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
702 |
<name>_hex_dump</name>
|
703 |
<full_name>_hex_dump</full_name>
|
704 |
-
<docblock line="
|
705 |
<description><![CDATA[Format printable version of binary data]]></description>
|
706 |
<long-description><![CDATA[]]></long-description>
|
707 |
-
<tag line="
|
708 |
-
<tag line="
|
709 |
<type by_reference="false">string</type>
|
710 |
</tag>
|
711 |
-
<tag line="
|
712 |
<type by_reference="false">integer</type>
|
713 |
</tag>
|
714 |
-
<tag line="
|
715 |
<type by_reference="false">\intger</type>
|
716 |
</tag>
|
717 |
-
<tag line="
|
718 |
<type by_reference="false">string</type>
|
719 |
</tag>
|
720 |
</docblock>
|
721 |
-
<argument line="
|
722 |
<name>$data</name>
|
723 |
<default><![CDATA[]]></default>
|
724 |
<type/>
|
725 |
</argument>
|
726 |
-
<argument line="
|
727 |
<name>$limit</name>
|
728 |
<default><![CDATA[0]]></default>
|
729 |
<type/>
|
730 |
</argument>
|
731 |
-
<argument line="
|
732 |
<name>$bytes_per_row</name>
|
733 |
<default><![CDATA[16]]></default>
|
734 |
<type/>
|
@@ -1040,7 +1071,7 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
|
|
1040 |
</method>
|
1041 |
</class>
|
1042 |
</file>
|
1043 |
-
<file path="includes\class-mla-list-table.php" hash="
|
1044 |
<docblock line="2">
|
1045 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
1046 |
<long-description><![CDATA[]]></long-description>
|
@@ -1311,590 +1342,590 @@ have a specific method, so this function returns a troubleshooting message.</p>]
|
|
1311 |
<type/>
|
1312 |
</argument>
|
1313 |
</method>
|
1314 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1315 |
<name>column_cb</name>
|
1316 |
<full_name>column_cb</full_name>
|
1317 |
-
<docblock line="
|
1318 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
1319 |
<long-description><![CDATA[<p>The 'cb' column
|
1320 |
is given special treatment when columns are processed.</p>]]></long-description>
|
1321 |
-
<tag line="
|
1322 |
-
<tag line="
|
1323 |
<type by_reference="false">array</type>
|
1324 |
</tag>
|
1325 |
-
<tag line="
|
1326 |
<type by_reference="false">string</type>
|
1327 |
</tag>
|
1328 |
</docblock>
|
1329 |
-
<argument line="
|
1330 |
<name>$item</name>
|
1331 |
<default><![CDATA[]]></default>
|
1332 |
<type/>
|
1333 |
</argument>
|
1334 |
</method>
|
1335 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1336 |
<name>column_icon</name>
|
1337 |
<full_name>column_icon</full_name>
|
1338 |
-
<docblock line="
|
1339 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1340 |
<long-description><![CDATA[]]></long-description>
|
1341 |
-
<tag line="
|
1342 |
-
<tag line="
|
1343 |
<type by_reference="false">array</type>
|
1344 |
</tag>
|
1345 |
-
<tag line="
|
1346 |
<type by_reference="false">string</type>
|
1347 |
</tag>
|
1348 |
</docblock>
|
1349 |
-
<argument line="
|
1350 |
<name>$item</name>
|
1351 |
<default><![CDATA[]]></default>
|
1352 |
<type/>
|
1353 |
</argument>
|
1354 |
</method>
|
1355 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
1356 |
<name>_build_rollover_actions</name>
|
1357 |
<full_name>_build_rollover_actions</full_name>
|
1358 |
-
<docblock line="
|
1359 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
1360 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
1361 |
<long-description><![CDATA[]]></long-description>
|
1362 |
-
<tag line="
|
1363 |
-
<tag line="
|
1364 |
<type by_reference="false">object</type>
|
1365 |
</tag>
|
1366 |
-
<tag line="
|
1367 |
<type by_reference="false">string</type>
|
1368 |
</tag>
|
1369 |
-
<tag line="
|
1370 |
<type by_reference="false">array</type>
|
1371 |
</tag>
|
1372 |
</docblock>
|
1373 |
-
<argument line="
|
1374 |
<name>$item</name>
|
1375 |
<default><![CDATA[]]></default>
|
1376 |
<type/>
|
1377 |
</argument>
|
1378 |
-
<argument line="
|
1379 |
<name>$column</name>
|
1380 |
<default><![CDATA[]]></default>
|
1381 |
<type/>
|
1382 |
</argument>
|
1383 |
</method>
|
1384 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
1385 |
<name>_build_inline_data</name>
|
1386 |
<full_name>_build_inline_data</full_name>
|
1387 |
-
<docblock line="
|
1388 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
1389 |
<long-description><![CDATA[]]></long-description>
|
1390 |
-
<tag line="
|
1391 |
-
<tag line="
|
1392 |
<type by_reference="false">object</type>
|
1393 |
</tag>
|
1394 |
-
<tag line="
|
1395 |
<type by_reference="false">string</type>
|
1396 |
</tag>
|
1397 |
</docblock>
|
1398 |
-
<argument line="
|
1399 |
<name>$item</name>
|
1400 |
<default><![CDATA[]]></default>
|
1401 |
<type/>
|
1402 |
</argument>
|
1403 |
</method>
|
1404 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1405 |
<name>column_ID_parent</name>
|
1406 |
<full_name>column_ID_parent</full_name>
|
1407 |
-
<docblock line="
|
1408 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1409 |
<long-description><![CDATA[]]></long-description>
|
1410 |
-
<tag line="
|
1411 |
-
<tag line="
|
1412 |
<type by_reference="false">array</type>
|
1413 |
</tag>
|
1414 |
-
<tag line="
|
1415 |
<type by_reference="false">string</type>
|
1416 |
</tag>
|
1417 |
</docblock>
|
1418 |
-
<argument line="
|
1419 |
<name>$item</name>
|
1420 |
<default><![CDATA[]]></default>
|
1421 |
<type/>
|
1422 |
</argument>
|
1423 |
</method>
|
1424 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1425 |
<name>column_title_name</name>
|
1426 |
<full_name>column_title_name</full_name>
|
1427 |
-
<docblock line="
|
1428 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1429 |
<long-description><![CDATA[]]></long-description>
|
1430 |
-
<tag line="
|
1431 |
-
<tag line="
|
1432 |
<type by_reference="false">array</type>
|
1433 |
</tag>
|
1434 |
-
<tag line="
|
1435 |
<type by_reference="false">string</type>
|
1436 |
</tag>
|
1437 |
</docblock>
|
1438 |
-
<argument line="
|
1439 |
<name>$item</name>
|
1440 |
<default><![CDATA[]]></default>
|
1441 |
<type/>
|
1442 |
</argument>
|
1443 |
</method>
|
1444 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1445 |
<name>column_post_title</name>
|
1446 |
<full_name>column_post_title</full_name>
|
1447 |
-
<docblock line="
|
1448 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1449 |
<long-description><![CDATA[]]></long-description>
|
1450 |
-
<tag line="
|
1451 |
-
<tag line="
|
1452 |
<type by_reference="false">array</type>
|
1453 |
</tag>
|
1454 |
-
<tag line="
|
1455 |
<type by_reference="false">string</type>
|
1456 |
</tag>
|
1457 |
</docblock>
|
1458 |
-
<argument line="
|
1459 |
<name>$item</name>
|
1460 |
<default><![CDATA[]]></default>
|
1461 |
<type/>
|
1462 |
</argument>
|
1463 |
</method>
|
1464 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1465 |
<name>column_post_name</name>
|
1466 |
<full_name>column_post_name</full_name>
|
1467 |
-
<docblock line="
|
1468 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1469 |
<long-description><![CDATA[]]></long-description>
|
1470 |
-
<tag line="
|
1471 |
-
<tag line="
|
1472 |
<type by_reference="false">array</type>
|
1473 |
</tag>
|
1474 |
-
<tag line="
|
1475 |
<type by_reference="false">string</type>
|
1476 |
</tag>
|
1477 |
</docblock>
|
1478 |
-
<argument line="
|
1479 |
<name>$item</name>
|
1480 |
<default><![CDATA[]]></default>
|
1481 |
<type/>
|
1482 |
</argument>
|
1483 |
</method>
|
1484 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1485 |
<name>column_parent</name>
|
1486 |
<full_name>column_parent</full_name>
|
1487 |
-
<docblock line="
|
1488 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1489 |
<long-description><![CDATA[]]></long-description>
|
1490 |
-
<tag line="
|
1491 |
-
<tag line="
|
1492 |
<type by_reference="false">array</type>
|
1493 |
</tag>
|
1494 |
-
<tag line="
|
1495 |
<type by_reference="false">string</type>
|
1496 |
</tag>
|
1497 |
</docblock>
|
1498 |
-
<argument line="
|
1499 |
<name>$item</name>
|
1500 |
<default><![CDATA[]]></default>
|
1501 |
<type/>
|
1502 |
</argument>
|
1503 |
</method>
|
1504 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1505 |
<name>column_menu_order</name>
|
1506 |
<full_name>column_menu_order</full_name>
|
1507 |
-
<docblock line="
|
1508 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1509 |
<long-description><![CDATA[]]></long-description>
|
1510 |
-
<tag line="
|
1511 |
-
<tag line="
|
1512 |
<type by_reference="false">array</type>
|
1513 |
</tag>
|
1514 |
-
<tag line="
|
1515 |
<type by_reference="false">string</type>
|
1516 |
</tag>
|
1517 |
</docblock>
|
1518 |
-
<argument line="
|
1519 |
<name>$item</name>
|
1520 |
<default><![CDATA[]]></default>
|
1521 |
<type/>
|
1522 |
</argument>
|
1523 |
</method>
|
1524 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1525 |
<name>column_featured</name>
|
1526 |
<full_name>column_featured</full_name>
|
1527 |
-
<docblock line="
|
1528 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1529 |
<long-description><![CDATA[]]></long-description>
|
1530 |
-
<tag line="
|
1531 |
-
<tag line="
|
1532 |
<type by_reference="false">array</type>
|
1533 |
</tag>
|
1534 |
-
<tag line="
|
1535 |
<type by_reference="false">string</type>
|
1536 |
</tag>
|
1537 |
</docblock>
|
1538 |
-
<argument line="
|
1539 |
<name>$item</name>
|
1540 |
<default><![CDATA[]]></default>
|
1541 |
<type/>
|
1542 |
</argument>
|
1543 |
</method>
|
1544 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1545 |
<name>column_inserted</name>
|
1546 |
<full_name>column_inserted</full_name>
|
1547 |
-
<docblock line="
|
1548 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1549 |
<long-description><![CDATA[]]></long-description>
|
1550 |
-
<tag line="
|
1551 |
-
<tag line="
|
1552 |
<type by_reference="false">array</type>
|
1553 |
</tag>
|
1554 |
-
<tag line="
|
1555 |
<type by_reference="false">string</type>
|
1556 |
</tag>
|
1557 |
</docblock>
|
1558 |
-
<argument line="
|
1559 |
<name>$item</name>
|
1560 |
<default><![CDATA[]]></default>
|
1561 |
<type/>
|
1562 |
</argument>
|
1563 |
</method>
|
1564 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1565 |
<name>column_galleries</name>
|
1566 |
<full_name>column_galleries</full_name>
|
1567 |
-
<docblock line="
|
1568 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1569 |
<long-description><![CDATA[]]></long-description>
|
1570 |
-
<tag line="
|
1571 |
-
<tag line="
|
1572 |
<type by_reference="false">array</type>
|
1573 |
</tag>
|
1574 |
-
<tag line="
|
1575 |
<type by_reference="false">string</type>
|
1576 |
</tag>
|
1577 |
</docblock>
|
1578 |
-
<argument line="
|
1579 |
<name>$item</name>
|
1580 |
<default><![CDATA[]]></default>
|
1581 |
<type/>
|
1582 |
</argument>
|
1583 |
</method>
|
1584 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1585 |
<name>column_mla_galleries</name>
|
1586 |
<full_name>column_mla_galleries</full_name>
|
1587 |
-
<docblock line="
|
1588 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1589 |
<long-description><![CDATA[]]></long-description>
|
1590 |
-
<tag line="
|
1591 |
-
<tag line="
|
1592 |
<type by_reference="false">array</type>
|
1593 |
</tag>
|
1594 |
-
<tag line="
|
1595 |
<type by_reference="false">string</type>
|
1596 |
</tag>
|
1597 |
</docblock>
|
1598 |
-
<argument line="
|
1599 |
<name>$item</name>
|
1600 |
<default><![CDATA[]]></default>
|
1601 |
<type/>
|
1602 |
</argument>
|
1603 |
</method>
|
1604 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1605 |
<name>column_alt_text</name>
|
1606 |
<full_name>column_alt_text</full_name>
|
1607 |
-
<docblock line="
|
1608 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1609 |
<long-description><![CDATA[]]></long-description>
|
1610 |
-
<tag line="
|
1611 |
-
<tag line="
|
1612 |
<type by_reference="false">array</type>
|
1613 |
</tag>
|
1614 |
-
<tag line="
|
1615 |
<type by_reference="false">string</type>
|
1616 |
</tag>
|
1617 |
</docblock>
|
1618 |
-
<argument line="
|
1619 |
<name>$item</name>
|
1620 |
<default><![CDATA[]]></default>
|
1621 |
<type/>
|
1622 |
</argument>
|
1623 |
</method>
|
1624 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1625 |
<name>column_caption</name>
|
1626 |
<full_name>column_caption</full_name>
|
1627 |
-
<docblock line="
|
1628 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1629 |
<long-description><![CDATA[]]></long-description>
|
1630 |
-
<tag line="
|
1631 |
-
<tag line="
|
1632 |
<type by_reference="false">array</type>
|
1633 |
</tag>
|
1634 |
-
<tag line="
|
1635 |
<type by_reference="false">string</type>
|
1636 |
</tag>
|
1637 |
</docblock>
|
1638 |
-
<argument line="
|
1639 |
<name>$item</name>
|
1640 |
<default><![CDATA[]]></default>
|
1641 |
<type/>
|
1642 |
</argument>
|
1643 |
</method>
|
1644 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1645 |
<name>column_description</name>
|
1646 |
<full_name>column_description</full_name>
|
1647 |
-
<docblock line="
|
1648 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1649 |
<long-description><![CDATA[]]></long-description>
|
1650 |
-
<tag line="
|
1651 |
-
<tag line="
|
1652 |
<type by_reference="false">array</type>
|
1653 |
</tag>
|
1654 |
-
<tag line="
|
1655 |
<type by_reference="false">string</type>
|
1656 |
</tag>
|
1657 |
</docblock>
|
1658 |
-
<argument line="
|
1659 |
<name>$item</name>
|
1660 |
<default><![CDATA[]]></default>
|
1661 |
<type/>
|
1662 |
</argument>
|
1663 |
</method>
|
1664 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1665 |
<name>column_post_mime_type</name>
|
1666 |
<full_name>column_post_mime_type</full_name>
|
1667 |
-
<docblock line="
|
1668 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1669 |
<long-description><![CDATA[]]></long-description>
|
1670 |
-
<tag line="
|
1671 |
-
<tag line="
|
1672 |
<type by_reference="false">array</type>
|
1673 |
</tag>
|
1674 |
-
<tag line="
|
1675 |
<type by_reference="false">string</type>
|
1676 |
</tag>
|
1677 |
</docblock>
|
1678 |
-
<argument line="
|
1679 |
<name>$item</name>
|
1680 |
<default><![CDATA[]]></default>
|
1681 |
<type/>
|
1682 |
</argument>
|
1683 |
</method>
|
1684 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1685 |
<name>column_base_file</name>
|
1686 |
<full_name>column_base_file</full_name>
|
1687 |
-
<docblock line="
|
1688 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1689 |
<long-description><![CDATA[]]></long-description>
|
1690 |
-
<tag line="
|
1691 |
-
<tag line="
|
1692 |
<type by_reference="false">array</type>
|
1693 |
</tag>
|
1694 |
-
<tag line="
|
1695 |
<type by_reference="false">string</type>
|
1696 |
</tag>
|
1697 |
</docblock>
|
1698 |
-
<argument line="
|
1699 |
<name>$item</name>
|
1700 |
<default><![CDATA[]]></default>
|
1701 |
<type/>
|
1702 |
</argument>
|
1703 |
</method>
|
1704 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1705 |
<name>column_date</name>
|
1706 |
<full_name>column_date</full_name>
|
1707 |
-
<docblock line="
|
1708 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1709 |
<long-description><![CDATA[]]></long-description>
|
1710 |
-
<tag line="
|
1711 |
-
<tag line="
|
1712 |
<type by_reference="false">array</type>
|
1713 |
</tag>
|
1714 |
-
<tag line="
|
1715 |
<type by_reference="false">string</type>
|
1716 |
</tag>
|
1717 |
</docblock>
|
1718 |
-
<argument line="
|
1719 |
<name>$item</name>
|
1720 |
<default><![CDATA[]]></default>
|
1721 |
<type/>
|
1722 |
</argument>
|
1723 |
</method>
|
1724 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1725 |
<name>column_modified</name>
|
1726 |
<full_name>column_modified</full_name>
|
1727 |
-
<docblock line="
|
1728 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1729 |
<long-description><![CDATA[]]></long-description>
|
1730 |
-
<tag line="
|
1731 |
-
<tag line="
|
1732 |
<type by_reference="false">array</type>
|
1733 |
</tag>
|
1734 |
-
<tag line="
|
1735 |
<type by_reference="false">string</type>
|
1736 |
</tag>
|
1737 |
</docblock>
|
1738 |
-
<argument line="
|
1739 |
<name>$item</name>
|
1740 |
<default><![CDATA[]]></default>
|
1741 |
<type/>
|
1742 |
</argument>
|
1743 |
</method>
|
1744 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1745 |
<name>column_author</name>
|
1746 |
<full_name>column_author</full_name>
|
1747 |
-
<docblock line="
|
1748 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1749 |
<long-description><![CDATA[]]></long-description>
|
1750 |
-
<tag line="
|
1751 |
-
<tag line="
|
1752 |
<type by_reference="false">array</type>
|
1753 |
</tag>
|
1754 |
-
<tag line="
|
1755 |
<type by_reference="false">string</type>
|
1756 |
</tag>
|
1757 |
</docblock>
|
1758 |
-
<argument line="
|
1759 |
<name>$item</name>
|
1760 |
<default><![CDATA[]]></default>
|
1761 |
<type/>
|
1762 |
</argument>
|
1763 |
</method>
|
1764 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1765 |
<name>column_attached_to</name>
|
1766 |
<full_name>column_attached_to</full_name>
|
1767 |
-
<docblock line="
|
1768 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1769 |
<long-description><![CDATA[]]></long-description>
|
1770 |
-
<tag line="
|
1771 |
-
<tag line="
|
1772 |
<type by_reference="false">array</type>
|
1773 |
</tag>
|
1774 |
-
<tag line="
|
1775 |
<type by_reference="false">string</type>
|
1776 |
</tag>
|
1777 |
</docblock>
|
1778 |
-
<argument line="
|
1779 |
<name>$item</name>
|
1780 |
<default><![CDATA[]]></default>
|
1781 |
<type/>
|
1782 |
</argument>
|
1783 |
</method>
|
1784 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1785 |
<name>get_columns</name>
|
1786 |
<full_name>get_columns</full_name>
|
1787 |
-
<docblock line="
|
1788 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
1789 |
<long-description><![CDATA[]]></long-description>
|
1790 |
-
<tag line="
|
1791 |
-
<tag line="
|
1792 |
<type by_reference="false">array</type>
|
1793 |
</tag>
|
1794 |
</docblock>
|
1795 |
</method>
|
1796 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1797 |
<name>get_hidden_columns</name>
|
1798 |
<full_name>get_hidden_columns</full_name>
|
1799 |
-
<docblock line="
|
1800 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
1801 |
from default values if the option is not set]]></description>
|
1802 |
<long-description><![CDATA[]]></long-description>
|
1803 |
-
<tag line="
|
1804 |
-
<tag line="
|
1805 |
<type by_reference="false">array</type>
|
1806 |
</tag>
|
1807 |
</docblock>
|
1808 |
</method>
|
1809 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1810 |
<name>get_sortable_columns</name>
|
1811 |
<full_name>get_sortable_columns</full_name>
|
1812 |
-
<docblock line="
|
1813 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
1814 |
and the value is db column to sort by.]]></description>
|
1815 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
1816 |
if set.</p>]]></long-description>
|
1817 |
-
<tag line="
|
1818 |
-
<tag line="
|
1819 |
<type by_reference="false">array</type>
|
1820 |
</tag>
|
1821 |
</docblock>
|
1822 |
</method>
|
1823 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1824 |
<name>get_views</name>
|
1825 |
<full_name>get_views</full_name>
|
1826 |
-
<docblock line="
|
1827 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
1828 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
1829 |
-
<tag line="
|
1830 |
-
<tag line="
|
1831 |
<type by_reference="false">array</type>
|
1832 |
</tag>
|
1833 |
</docblock>
|
1834 |
</method>
|
1835 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1836 |
<name>get_bulk_actions</name>
|
1837 |
<full_name>get_bulk_actions</full_name>
|
1838 |
-
<docblock line="
|
1839 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
1840 |
of bulk actions available on this table.]]></description>
|
1841 |
<long-description><![CDATA[]]></long-description>
|
1842 |
-
<tag line="
|
1843 |
-
<tag line="
|
1844 |
<type by_reference="false">array</type>
|
1845 |
</tag>
|
1846 |
</docblock>
|
1847 |
</method>
|
1848 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1849 |
<name>extra_tablenav</name>
|
1850 |
<full_name>extra_tablenav</full_name>
|
1851 |
-
<docblock line="
|
1852 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
1853 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
1854 |
-
<tag line="
|
1855 |
-
<tag line="
|
1856 |
<type by_reference="false">string</type>
|
1857 |
</tag>
|
1858 |
-
<tag line="
|
1859 |
<type by_reference="false">array</type>
|
1860 |
</tag>
|
1861 |
</docblock>
|
1862 |
-
<argument line="
|
1863 |
<name>$which</name>
|
1864 |
<default><![CDATA[]]></default>
|
1865 |
<type/>
|
1866 |
</argument>
|
1867 |
</method>
|
1868 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1869 |
<name>prepare_items</name>
|
1870 |
<full_name>prepare_items</full_name>
|
1871 |
-
<docblock line="
|
1872 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
1873 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
1874 |
be used to query the database, sort and filter the data, and generally
|
1875 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
1876 |
$this->set_pagination_args().</p>]]></long-description>
|
1877 |
-
<tag line="
|
1878 |
-
<tag line="
|
1879 |
<type by_reference="false">void</type>
|
1880 |
</tag>
|
1881 |
</docblock>
|
1882 |
</method>
|
1883 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
1884 |
<name>single_row</name>
|
1885 |
<full_name>single_row</full_name>
|
1886 |
-
<docblock line="
|
1887 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
1888 |
<long-description><![CDATA[]]></long-description>
|
1889 |
-
<tag line="
|
1890 |
-
<tag line="
|
1891 |
<type by_reference="false">object</type>
|
1892 |
</tag>
|
1893 |
-
<tag line="
|
1894 |
<type by_reference="false">void</type>
|
1895 |
</tag>
|
1896 |
</docblock>
|
1897 |
-
<argument line="
|
1898 |
<name>$item</name>
|
1899 |
<default><![CDATA[]]></default>
|
1900 |
<type/>
|
@@ -1902,7 +1933,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
1902 |
</method>
|
1903 |
</class>
|
1904 |
</file>
|
1905 |
-
<file path="includes\class-mla-main.php" hash="
|
1906 |
<docblock line="2">
|
1907 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
1908 |
<long-description><![CDATA[]]></long-description>
|
@@ -1939,7 +1970,7 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
1939 |
<constant namespace="global" line="41" package="Media Library Assistant">
|
1940 |
<name>CURRENT_MLA_VERSION</name>
|
1941 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
1942 |
-
<value><![CDATA['1.
|
1943 |
<docblock line="34">
|
1944 |
<description><![CDATA[Current version number]]></description>
|
1945 |
<long-description><![CDATA[]]></long-description>
|
@@ -2041,184 +2072,210 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
2041 |
</docblock>
|
2042 |
</constant>
|
2043 |
<constant namespace="global" line="113" package="Media Library Assistant">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2044 |
<name>ADMIN_PAGE_SLUG</name>
|
2045 |
<full_name>ADMIN_PAGE_SLUG</full_name>
|
2046 |
<value><![CDATA['mla-menu']]></value>
|
2047 |
-
<docblock line="
|
2048 |
<description><![CDATA[Slug for adding plugin submenu]]></description>
|
2049 |
<long-description><![CDATA[]]></long-description>
|
2050 |
-
<tag line="
|
2051 |
-
<tag line="
|
2052 |
<type by_reference="false">string</type>
|
2053 |
</tag>
|
2054 |
</docblock>
|
2055 |
</constant>
|
2056 |
-
<constant namespace="global" line="
|
2057 |
<name>MLA_ADMIN_NONCE</name>
|
2058 |
<full_name>MLA_ADMIN_NONCE</full_name>
|
2059 |
<value><![CDATA['mla_admin']]></value>
|
2060 |
-
<docblock line="
|
2061 |
<description><![CDATA[Action name; uniquely identifies the nonce]]></description>
|
2062 |
<long-description><![CDATA[]]></long-description>
|
2063 |
-
<tag line="
|
2064 |
-
<tag line="
|
2065 |
<type by_reference="false">string</type>
|
2066 |
</tag>
|
2067 |
</docblock>
|
2068 |
</constant>
|
2069 |
-
<constant namespace="global" line="
|
2070 |
<name>MLA_ADMIN_SINGLE_DELETE</name>
|
2071 |
<full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
|
2072 |
<value><![CDATA['single_item_delete']]></value>
|
2073 |
-
<docblock line="
|
2074 |
<description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
|
2075 |
<long-description><![CDATA[]]></long-description>
|
2076 |
-
<tag line="
|
2077 |
-
<tag line="
|
2078 |
<type by_reference="false">string</type>
|
2079 |
</tag>
|
2080 |
</docblock>
|
2081 |
</constant>
|
2082 |
-
<constant namespace="global" line="
|
2083 |
<name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
|
2084 |
<full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
|
2085 |
<value><![CDATA['single_item_edit_display']]></value>
|
2086 |
-
<docblock line="
|
2087 |
<description><![CDATA[mla_admin_action value for displaying a single item]]></description>
|
2088 |
<long-description><![CDATA[]]></long-description>
|
2089 |
-
<tag line="
|
2090 |
-
<tag line="
|
2091 |
<type by_reference="false">string</type>
|
2092 |
</tag>
|
2093 |
</docblock>
|
2094 |
</constant>
|
2095 |
-
<constant namespace="global" line="
|
2096 |
<name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
|
2097 |
<full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
|
2098 |
<value><![CDATA['single_item_edit_update']]></value>
|
2099 |
-
<docblock line="
|
2100 |
<description><![CDATA[mla_admin_action value for updating a single item]]></description>
|
2101 |
<long-description><![CDATA[]]></long-description>
|
2102 |
-
<tag line="
|
2103 |
-
<tag line="
|
2104 |
<type by_reference="false">string</type>
|
2105 |
</tag>
|
2106 |
</docblock>
|
2107 |
</constant>
|
2108 |
-
<constant namespace="global" line="
|
2109 |
<name>MLA_ADMIN_SINGLE_RESTORE</name>
|
2110 |
<full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
|
2111 |
<value><![CDATA['single_item_restore']]></value>
|
2112 |
-
<docblock line="
|
2113 |
<description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
|
2114 |
<long-description><![CDATA[]]></long-description>
|
2115 |
-
<tag line="
|
2116 |
-
<tag line="
|
2117 |
<type by_reference="false">string</type>
|
2118 |
</tag>
|
2119 |
</docblock>
|
2120 |
</constant>
|
2121 |
-
<constant namespace="global" line="
|
2122 |
<name>MLA_ADMIN_SINGLE_TRASH</name>
|
2123 |
<full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
|
2124 |
<value><![CDATA['single_item_trash']]></value>
|
2125 |
-
<docblock line="
|
2126 |
<description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
|
2127 |
<long-description><![CDATA[]]></long-description>
|
2128 |
-
<tag line="
|
2129 |
-
<tag line="
|
2130 |
<type by_reference="false">string</type>
|
2131 |
</tag>
|
2132 |
</docblock>
|
2133 |
</constant>
|
2134 |
-
<constant namespace="global" line="
|
2135 |
<name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</name>
|
2136 |
<full_name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</full_name>
|
2137 |
<value><![CDATA['single_item_custom_field_map']]></value>
|
2138 |
-
<docblock line="
|
2139 |
<description><![CDATA[mla_admin_action value for mapping Custom Field metadata]]></description>
|
2140 |
<long-description><![CDATA[]]></long-description>
|
2141 |
-
<tag line="
|
2142 |
-
<tag line="
|
2143 |
<type by_reference="false">string</type>
|
2144 |
</tag>
|
2145 |
</docblock>
|
2146 |
</constant>
|
2147 |
-
<constant namespace="global" line="
|
2148 |
<name>MLA_ADMIN_SINGLE_MAP</name>
|
2149 |
<full_name>MLA_ADMIN_SINGLE_MAP</full_name>
|
2150 |
<value><![CDATA['single_item_map']]></value>
|
2151 |
-
<docblock line="
|
2152 |
<description><![CDATA[mla_admin_action value for mapping IPTC/EXIF metadata]]></description>
|
2153 |
<long-description><![CDATA[]]></long-description>
|
2154 |
-
<tag line="
|
2155 |
-
<tag line="
|
2156 |
<type by_reference="false">string</type>
|
2157 |
</tag>
|
2158 |
</docblock>
|
2159 |
</constant>
|
2160 |
-
<property final="false" static="true" visibility="private" line="
|
2161 |
<name>$page_hooks</name>
|
2162 |
<default><![CDATA[array()]]></default>
|
2163 |
-
<docblock line="
|
2164 |
<description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
|
2165 |
<long-description><![CDATA[]]></long-description>
|
2166 |
-
<tag line="
|
2167 |
-
<tag line="
|
2168 |
<type by_reference="false">array</type>
|
2169 |
</tag>
|
2170 |
</docblock>
|
2171 |
</property>
|
2172 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2173 |
<name>initialize</name>
|
2174 |
<full_name>initialize</full_name>
|
2175 |
-
<docblock line="
|
2176 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
2177 |
<long-description><![CDATA[<p>This function contains add_action and add_filter calls
|
2178 |
to set up the Ajax handlers, enqueue JavaScript and CSS files, and
|
2179 |
set up the Assistant submenu.</p>]]></long-description>
|
2180 |
-
<tag line="
|
2181 |
-
<tag line="
|
2182 |
<type by_reference="false">void</type>
|
2183 |
</tag>
|
2184 |
</docblock>
|
2185 |
</method>
|
2186 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2187 |
<name>mla_admin_init_action</name>
|
2188 |
<full_name>mla_admin_init_action</full_name>
|
2189 |
-
<docblock line="
|
2190 |
<description><![CDATA[Load the plugin's Ajax handler or process Edit Media update actions]]></description>
|
2191 |
<long-description><![CDATA[]]></long-description>
|
2192 |
-
<tag line="
|
2193 |
-
<tag line="
|
2194 |
<type by_reference="false">void</type>
|
2195 |
</tag>
|
2196 |
</docblock>
|
2197 |
</method>
|
2198 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2199 |
<name>mla_admin_enqueue_scripts_action</name>
|
2200 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
2201 |
-
<docblock line="
|
2202 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
2203 |
<long-description><![CDATA[]]></long-description>
|
2204 |
-
<tag line="
|
2205 |
-
<tag line="
|
2206 |
<type by_reference="false">string</type>
|
2207 |
</tag>
|
2208 |
-
<tag line="
|
2209 |
<type by_reference="false">void</type>
|
2210 |
</tag>
|
2211 |
</docblock>
|
2212 |
-
<argument line="
|
2213 |
<name>$page_hook</name>
|
2214 |
<default><![CDATA[]]></default>
|
2215 |
<type/>
|
2216 |
</argument>
|
2217 |
</method>
|
2218 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2219 |
<name>mla_admin_menu_action</name>
|
2220 |
<full_name>mla_admin_menu_action</full_name>
|
2221 |
-
<docblock line="
|
2222 |
<description><![CDATA[Add the submenu pages]]></description>
|
2223 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
2224 |
add settings page in the "Settings" section.
|
@@ -2227,119 +2284,119 @@ add settings link in the Plugins section entry for MLA.</p>
|
|
2227 |
<p>For WordPress versions before 3.5,
|
2228 |
add submenu page(s) for attachment taxonomies,
|
2229 |
add filter to clean up taxonomy submenu labels.</p>]]></long-description>
|
2230 |
-
<tag line="
|
2231 |
-
<tag line="
|
2232 |
<type by_reference="false">void</type>
|
2233 |
</tag>
|
2234 |
</docblock>
|
2235 |
</method>
|
2236 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2237 |
<name>mla_add_menu_options</name>
|
2238 |
<full_name>mla_add_menu_options</full_name>
|
2239 |
-
<docblock line="
|
2240 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
2241 |
<long-description><![CDATA[]]></long-description>
|
2242 |
-
<tag line="
|
2243 |
-
<tag line="
|
2244 |
<type by_reference="false">void</type>
|
2245 |
</tag>
|
2246 |
</docblock>
|
2247 |
</method>
|
2248 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2249 |
<name>mla_add_help_tab</name>
|
2250 |
<full_name>mla_add_help_tab</full_name>
|
2251 |
-
<docblock line="
|
2252 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
2253 |
<long-description><![CDATA[]]></long-description>
|
2254 |
-
<tag line="
|
2255 |
-
<tag line="
|
2256 |
<type by_reference="false">void</type>
|
2257 |
</tag>
|
2258 |
</docblock>
|
2259 |
</method>
|
2260 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2261 |
<name>mla_screen_options_show_screen_filter</name>
|
2262 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
2263 |
-
<docblock line="
|
2264 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
2265 |
<long-description><![CDATA[]]></long-description>
|
2266 |
-
<tag line="
|
2267 |
-
<tag line="
|
2268 |
<type by_reference="false">boolean</type>
|
2269 |
</tag>
|
2270 |
-
<tag line="
|
2271 |
<type by_reference="false">string</type>
|
2272 |
</tag>
|
2273 |
-
<tag line="
|
2274 |
<type by_reference="false">boolean</type>
|
2275 |
</tag>
|
2276 |
</docblock>
|
2277 |
-
<argument line="
|
2278 |
<name>$show_screen</name>
|
2279 |
<default><![CDATA[]]></default>
|
2280 |
<type/>
|
2281 |
</argument>
|
2282 |
-
<argument line="
|
2283 |
<name>$this_screen</name>
|
2284 |
<default><![CDATA[]]></default>
|
2285 |
<type/>
|
2286 |
</argument>
|
2287 |
</method>
|
2288 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2289 |
<name>mla_set_screen_option_filter</name>
|
2290 |
<full_name>mla_set_screen_option_filter</full_name>
|
2291 |
-
<docblock line="
|
2292 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
2293 |
<long-description><![CDATA[]]></long-description>
|
2294 |
-
<tag line="
|
2295 |
-
<tag line="
|
2296 |
<type by_reference="false">boolean</type>
|
2297 |
</tag>
|
2298 |
-
<tag line="
|
2299 |
<type by_reference="false">string</type>
|
2300 |
</tag>
|
2301 |
-
<tag line="
|
2302 |
<type by_reference="false">string</type>
|
2303 |
</tag>
|
2304 |
-
<tag line="
|
2305 |
<type by_reference="false">string</type>
|
2306 |
<type by_reference="false">void</type>
|
2307 |
</tag>
|
2308 |
</docblock>
|
2309 |
-
<argument line="
|
2310 |
<name>$status</name>
|
2311 |
<default><![CDATA[]]></default>
|
2312 |
<type/>
|
2313 |
</argument>
|
2314 |
-
<argument line="
|
2315 |
<name>$option</name>
|
2316 |
<default><![CDATA[]]></default>
|
2317 |
<type/>
|
2318 |
</argument>
|
2319 |
-
<argument line="
|
2320 |
<name>$value</name>
|
2321 |
<default><![CDATA[]]></default>
|
2322 |
<type/>
|
2323 |
</argument>
|
2324 |
</method>
|
2325 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2326 |
<name>mla_edit_tax_redirect</name>
|
2327 |
<full_name>mla_edit_tax_redirect</full_name>
|
2328 |
-
<docblock line="
|
2329 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
2330 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
2331 |
This filter is the only way to redirect them to the correct WordPress page.
|
2332 |
The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
|
2333 |
-
<tag line="
|
2334 |
-
<tag line="
|
2335 |
<type by_reference="false">void</type>
|
2336 |
</tag>
|
2337 |
</docblock>
|
2338 |
</method>
|
2339 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2340 |
<name>mla_parent_file_filter</name>
|
2341 |
<full_name>mla_parent_file_filter</full_name>
|
2342 |
-
<docblock line="
|
2343 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
2344 |
<long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
|
2345 |
under the "Media" menu are not set up correctly by WordPress, so this
|
@@ -2347,190 +2404,190 @@ function cleans them up, redirecting the request to the right WordPress
|
|
2347 |
page for editing/adding taxonomy terms.
|
2348 |
For WordPress 3.5 and later, the function fixes the submenu bolding when
|
2349 |
going to the Edit Media screen.</p>]]></long-description>
|
2350 |
-
<tag line="
|
2351 |
-
<tag line="
|
2352 |
<type by_reference="false">array</type>
|
2353 |
</tag>
|
2354 |
-
<tag line="
|
2355 |
<type by_reference="false">string</type>
|
2356 |
</tag>
|
2357 |
</docblock>
|
2358 |
-
<argument line="
|
2359 |
<name>$parent_file</name>
|
2360 |
<default><![CDATA[]]></default>
|
2361 |
<type/>
|
2362 |
</argument>
|
2363 |
</method>
|
2364 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2365 |
<name>mla_render_admin_page</name>
|
2366 |
<full_name>mla_render_admin_page</full_name>
|
2367 |
-
<docblock line="
|
2368 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
2369 |
<long-description><![CDATA[]]></long-description>
|
2370 |
-
<tag line="
|
2371 |
-
<tag line="
|
2372 |
<type by_reference="false">void</type>
|
2373 |
</tag>
|
2374 |
</docblock>
|
2375 |
</method>
|
2376 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2377 |
<name>mla_inline_edit_action</name>
|
2378 |
<full_name>mla_inline_edit_action</full_name>
|
2379 |
-
<docblock line="
|
2380 |
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
2381 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
2382 |
-
<tag line="
|
2383 |
-
<tag line="
|
2384 |
<type by_reference="false">void</type>
|
2385 |
</tag>
|
2386 |
</docblock>
|
2387 |
</method>
|
2388 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2389 |
<name>_build_inline_edit_form</name>
|
2390 |
<full_name>_build_inline_edit_form</full_name>
|
2391 |
-
<docblock line="
|
2392 |
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
|
2393 |
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
2394 |
-
<tag line="
|
2395 |
-
<tag line="
|
2396 |
<type by_reference="false">object</type>
|
2397 |
</tag>
|
2398 |
-
<tag line="
|
2399 |
<type by_reference="false">string</type>
|
2400 |
</tag>
|
2401 |
</docblock>
|
2402 |
-
<argument line="
|
2403 |
<name>$MLAListTable</name>
|
2404 |
<default><![CDATA[]]></default>
|
2405 |
<type/>
|
2406 |
</argument>
|
2407 |
</method>
|
2408 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2409 |
<name>_authors_dropdown</name>
|
2410 |
<full_name>_authors_dropdown</full_name>
|
2411 |
-
<docblock line="
|
2412 |
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
2413 |
<long-description><![CDATA[]]></long-description>
|
2414 |
-
<tag line="
|
2415 |
-
<tag line="
|
2416 |
<type by_reference="false">integer</type>
|
2417 |
</tag>
|
2418 |
-
<tag line="
|
2419 |
<type by_reference="false">string</type>
|
2420 |
</tag>
|
2421 |
-
<tag line="
|
2422 |
<type by_reference="false">string</type>
|
2423 |
</tag>
|
2424 |
-
<tag line="
|
2425 |
<type by_reference="false">string</type>
|
2426 |
<type by_reference="false">false</type>
|
2427 |
</tag>
|
2428 |
</docblock>
|
2429 |
-
<argument line="
|
2430 |
<name>$author</name>
|
2431 |
<default><![CDATA[0]]></default>
|
2432 |
<type/>
|
2433 |
</argument>
|
2434 |
-
<argument line="
|
2435 |
<name>$name</name>
|
2436 |
<default><![CDATA['post_author']]></default>
|
2437 |
<type/>
|
2438 |
</argument>
|
2439 |
-
<argument line="
|
2440 |
<name>$class</name>
|
2441 |
<default><![CDATA['authors']]></default>
|
2442 |
<type/>
|
2443 |
</argument>
|
2444 |
</method>
|
2445 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2446 |
<name>_current_bulk_action</name>
|
2447 |
<full_name>_current_bulk_action</full_name>
|
2448 |
-
<docblock line="
|
2449 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
2450 |
<long-description><![CDATA[]]></long-description>
|
2451 |
-
<tag line="
|
2452 |
-
<tag line="
|
2453 |
<type by_reference="false">string</type>
|
2454 |
<type by_reference="false">false</type>
|
2455 |
</tag>
|
2456 |
</docblock>
|
2457 |
</method>
|
2458 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2459 |
<name>_delete_single_item</name>
|
2460 |
<full_name>_delete_single_item</full_name>
|
2461 |
-
<docblock line="
|
2462 |
<description><![CDATA[Delete a single item permanently]]></description>
|
2463 |
<long-description><![CDATA[]]></long-description>
|
2464 |
-
<tag line="
|
2465 |
-
<tag line="
|
2466 |
<type by_reference="false">array</type>
|
2467 |
</tag>
|
2468 |
-
<tag line="
|
2469 |
<type by_reference="false">array</type>
|
2470 |
</tag>
|
2471 |
</docblock>
|
2472 |
-
<argument line="
|
2473 |
<name>$post_id</name>
|
2474 |
<default><![CDATA[]]></default>
|
2475 |
<type/>
|
2476 |
</argument>
|
2477 |
</method>
|
2478 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2479 |
<name>_display_single_item</name>
|
2480 |
<full_name>_display_single_item</full_name>
|
2481 |
-
<docblock line="
|
2482 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
2483 |
change the meta data for a single attachment.]]></description>
|
2484 |
<long-description><![CDATA[]]></long-description>
|
2485 |
-
<tag line="
|
2486 |
-
<tag line="
|
2487 |
<type by_reference="false">int</type>
|
2488 |
</tag>
|
2489 |
-
<tag line="
|
2490 |
<type by_reference="false">array</type>
|
2491 |
</tag>
|
2492 |
</docblock>
|
2493 |
-
<argument line="
|
2494 |
<name>$post_id</name>
|
2495 |
<default><![CDATA[]]></default>
|
2496 |
<type/>
|
2497 |
</argument>
|
2498 |
</method>
|
2499 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2500 |
<name>_restore_single_item</name>
|
2501 |
<full_name>_restore_single_item</full_name>
|
2502 |
-
<docblock line="
|
2503 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
2504 |
<long-description><![CDATA[]]></long-description>
|
2505 |
-
<tag line="
|
2506 |
-
<tag line="
|
2507 |
<type by_reference="false">array</type>
|
2508 |
</tag>
|
2509 |
-
<tag line="
|
2510 |
<type by_reference="false">array</type>
|
2511 |
</tag>
|
2512 |
</docblock>
|
2513 |
-
<argument line="
|
2514 |
<name>$post_id</name>
|
2515 |
<default><![CDATA[]]></default>
|
2516 |
<type/>
|
2517 |
</argument>
|
2518 |
</method>
|
2519 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2520 |
<name>_trash_single_item</name>
|
2521 |
<full_name>_trash_single_item</full_name>
|
2522 |
-
<docblock line="
|
2523 |
<description><![CDATA[Move a single item to Trash]]></description>
|
2524 |
<long-description><![CDATA[]]></long-description>
|
2525 |
-
<tag line="
|
2526 |
-
<tag line="
|
2527 |
<type by_reference="false">array</type>
|
2528 |
</tag>
|
2529 |
-
<tag line="
|
2530 |
<type by_reference="false">array</type>
|
2531 |
</tag>
|
2532 |
</docblock>
|
2533 |
-
<argument line="
|
2534 |
<name>$post_id</name>
|
2535 |
<default><![CDATA[]]></default>
|
2536 |
<type/>
|
@@ -2538,7 +2595,7 @@ change the meta data for a single attachment.]]></description>
|
|
2538 |
</method>
|
2539 |
</class>
|
2540 |
</file>
|
2541 |
-
<file path="includes\class-mla-objects.php" hash="
|
2542 |
<docblock line="2">
|
2543 |
<description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
|
2544 |
<long-description><![CDATA[]]></long-description>
|
@@ -2600,38 +2657,38 @@ which replaces the "Posts" column with an equivalent "Attachments" column.]]></d
|
|
2600 |
<type/>
|
2601 |
</argument>
|
2602 |
</method>
|
2603 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2604 |
<name>mla_taxonomy_column_filter</name>
|
2605 |
<full_name>mla_taxonomy_column_filter</full_name>
|
2606 |
-
<docblock line="
|
2607 |
<description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
|
2608 |
which returns a count of the attachments assigned a given term]]></description>
|
2609 |
<long-description><![CDATA[]]></long-description>
|
2610 |
-
<tag line="
|
2611 |
-
<tag line="
|
2612 |
<type by_reference="false">string</type>
|
2613 |
</tag>
|
2614 |
-
<tag line="
|
2615 |
<type by_reference="false">array</type>
|
2616 |
</tag>
|
2617 |
-
<tag line="
|
2618 |
<type by_reference="false">array</type>
|
2619 |
</tag>
|
2620 |
-
<tag line="
|
2621 |
<type by_reference="false">array</type>
|
2622 |
</tag>
|
2623 |
</docblock>
|
2624 |
-
<argument line="
|
2625 |
<name>$place_holder</name>
|
2626 |
<default><![CDATA[]]></default>
|
2627 |
<type/>
|
2628 |
</argument>
|
2629 |
-
<argument line="
|
2630 |
<name>$column_name</name>
|
2631 |
<default><![CDATA[]]></default>
|
2632 |
<type/>
|
2633 |
</argument>
|
2634 |
-
<argument line="
|
2635 |
<name>$term_id</name>
|
2636 |
<default><![CDATA[]]></default>
|
2637 |
<type/>
|
@@ -2639,7 +2696,7 @@ which returns a count of the attachments assigned a given term]]></description>
|
|
2639 |
</method>
|
2640 |
</class>
|
2641 |
</file>
|
2642 |
-
<file path="includes\class-mla-options.php" hash="
|
2643 |
<docblock line="2">
|
2644 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
2645 |
<long-description><![CDATA[]]></long-description>
|
@@ -2809,14 +2866,14 @@ reset => reset function for 'custom' options; returns nothing. Usage:
|
|
2809 |
</tag>
|
2810 |
</docblock>
|
2811 |
</property>
|
2812 |
-
<property final="false" static="true" visibility="private" line="
|
2813 |
<name>$custom_field_data_sources</name>
|
2814 |
<default><![CDATA[array('path', 'file_name', 'extension', 'file_size', 'dimensions', 'pixels', 'width', 'height', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
|
2815 |
-
<docblock line="
|
2816 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
2817 |
<long-description><![CDATA[]]></long-description>
|
2818 |
-
<tag line="
|
2819 |
-
<tag line="
|
2820 |
<type by_reference="false">array</type>
|
2821 |
</tag>
|
2822 |
</docblock>
|
@@ -3159,10 +3216,10 @@ settings are being updated or reset.]]></description>
|
|
3159 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
3160 |
<long-description><![CDATA[]]></long-description>
|
3161 |
<tag line="933" name="since" description="1.10"/>
|
3162 |
-
<tag line="933" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns' or '
|
3163 |
<type by_reference="false">string</type>
|
3164 |
</tag>
|
3165 |
-
<tag line="933" name="return" description="default, hidden or
|
3166 |
<type by_reference="false">array</type>
|
3167 |
</tag>
|
3168 |
</docblock>
|
@@ -3172,483 +3229,483 @@ settings are being updated or reset.]]></description>
|
|
3172 |
<type/>
|
3173 |
</argument>
|
3174 |
</method>
|
3175 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3176 |
<name>_evaluate_file_information</name>
|
3177 |
<full_name>_evaluate_file_information</full_name>
|
3178 |
-
<docblock line="
|
3179 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
3180 |
<long-description><![CDATA[]]></long-description>
|
3181 |
-
<tag line="
|
3182 |
-
<tag line="
|
3183 |
<type by_reference="false">string</type>
|
3184 |
</tag>
|
3185 |
-
<tag line="
|
3186 |
<type by_reference="false">array</type>
|
3187 |
</tag>
|
3188 |
-
<tag line="
|
3189 |
<type by_reference="false">array</type>
|
3190 |
</tag>
|
3191 |
-
<tag line="
|
3192 |
<type by_reference="false">integer</type>
|
3193 |
</tag>
|
3194 |
-
<tag line="
|
3195 |
<type by_reference="false">array</type>
|
3196 |
</tag>
|
3197 |
</docblock>
|
3198 |
-
<argument line="
|
3199 |
<name>$upload_dir</name>
|
3200 |
<default><![CDATA[]]></default>
|
3201 |
<type/>
|
3202 |
</argument>
|
3203 |
-
<argument line="
|
3204 |
<name>$wp_attached_files</name>
|
3205 |
<default><![CDATA[]]></default>
|
3206 |
<type/>
|
3207 |
</argument>
|
3208 |
-
<argument line="
|
3209 |
<name>$wp_attachment_metadata</name>
|
3210 |
<default><![CDATA[]]></default>
|
3211 |
<type/>
|
3212 |
</argument>
|
3213 |
-
<argument line="
|
3214 |
<name>$post_id</name>
|
3215 |
<default><![CDATA[]]></default>
|
3216 |
<type/>
|
3217 |
</argument>
|
3218 |
</method>
|
3219 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3220 |
<name>_evaluate_data_source</name>
|
3221 |
<full_name>_evaluate_data_source</full_name>
|
3222 |
-
<docblock line="
|
3223 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
3224 |
<long-description><![CDATA[]]></long-description>
|
3225 |
-
<tag line="
|
3226 |
-
<tag line="
|
3227 |
<type by_reference="false">integer</type>
|
3228 |
</tag>
|
3229 |
-
<tag line="
|
3230 |
<type by_reference="false">string</type>
|
3231 |
</tag>
|
3232 |
-
<tag line="
|
3233 |
<type by_reference="false">string</type>
|
3234 |
</tag>
|
3235 |
-
<tag line="
|
3236 |
<type by_reference="false">string</type>
|
3237 |
</tag>
|
3238 |
-
<tag line="
|
3239 |
<type by_reference="false">array</type>
|
3240 |
</tag>
|
3241 |
-
<tag line="
|
3242 |
<type by_reference="false">string</type>
|
3243 |
</tag>
|
3244 |
</docblock>
|
3245 |
-
<argument line="
|
3246 |
<name>$post_id</name>
|
3247 |
<default><![CDATA[]]></default>
|
3248 |
<type/>
|
3249 |
</argument>
|
3250 |
-
<argument line="
|
3251 |
<name>$category</name>
|
3252 |
<default><![CDATA[]]></default>
|
3253 |
<type/>
|
3254 |
</argument>
|
3255 |
-
<argument line="
|
3256 |
<name>$data_source</name>
|
3257 |
<default><![CDATA[]]></default>
|
3258 |
<type/>
|
3259 |
</argument>
|
3260 |
-
<argument line="
|
3261 |
<name>$format</name>
|
3262 |
<default><![CDATA['native']]></default>
|
3263 |
<type/>
|
3264 |
</argument>
|
3265 |
-
<argument line="
|
3266 |
<name>$attachment_metadata</name>
|
3267 |
<default><![CDATA[NULL]]></default>
|
3268 |
<type/>
|
3269 |
</argument>
|
3270 |
</method>
|
3271 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3272 |
<name>mla_evaluate_custom_field_mapping</name>
|
3273 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
3274 |
-
<docblock line="
|
3275 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
3276 |
<long-description><![CDATA[]]></long-description>
|
3277 |
-
<tag line="
|
3278 |
-
<tag line="
|
3279 |
<type by_reference="false">integer</type>
|
3280 |
</tag>
|
3281 |
-
<tag line="
|
3282 |
<type by_reference="false">string</type>
|
3283 |
</tag>
|
3284 |
-
<tag line="
|
3285 |
<type by_reference="false">array</type>
|
3286 |
</tag>
|
3287 |
-
<tag line="
|
3288 |
<type by_reference="false">array</type>
|
3289 |
</tag>
|
3290 |
-
<tag line="
|
3291 |
<type by_reference="false">array</type>
|
3292 |
</tag>
|
3293 |
</docblock>
|
3294 |
-
<argument line="
|
3295 |
<name>$post_id</name>
|
3296 |
<default><![CDATA[]]></default>
|
3297 |
<type/>
|
3298 |
</argument>
|
3299 |
-
<argument line="
|
3300 |
<name>$category</name>
|
3301 |
<default><![CDATA[]]></default>
|
3302 |
<type/>
|
3303 |
</argument>
|
3304 |
-
<argument line="
|
3305 |
<name>$settings</name>
|
3306 |
<default><![CDATA[NULL]]></default>
|
3307 |
<type/>
|
3308 |
</argument>
|
3309 |
-
<argument line="
|
3310 |
<name>$attachment_metadata</name>
|
3311 |
<default><![CDATA[NULL]]></default>
|
3312 |
<type/>
|
3313 |
</argument>
|
3314 |
</method>
|
3315 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3316 |
<name>_compose_custom_field_option_list</name>
|
3317 |
<full_name>_compose_custom_field_option_list</full_name>
|
3318 |
-
<docblock line="
|
3319 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
3320 |
<long-description><![CDATA[]]></long-description>
|
3321 |
-
<tag line="
|
3322 |
-
<tag line="
|
3323 |
-
<tag line="
|
3324 |
<type by_reference="false">string</type>
|
3325 |
</tag>
|
3326 |
-
<tag line="
|
3327 |
<type by_reference="false">string</type>
|
3328 |
</tag>
|
3329 |
</docblock>
|
3330 |
-
<argument line="
|
3331 |
<name>$selection</name>
|
3332 |
<default><![CDATA['none']]></default>
|
3333 |
<type/>
|
3334 |
</argument>
|
3335 |
</method>
|
3336 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3337 |
<name>_compose_data_source_option_list</name>
|
3338 |
<full_name>_compose_data_source_option_list</full_name>
|
3339 |
-
<docblock line="
|
3340 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
3341 |
<long-description><![CDATA[]]></long-description>
|
3342 |
-
<tag line="
|
3343 |
-
<tag line="
|
3344 |
-
<tag line="
|
3345 |
<type by_reference="false">string</type>
|
3346 |
</tag>
|
3347 |
-
<tag line="
|
3348 |
<type by_reference="false">string</type>
|
3349 |
</tag>
|
3350 |
</docblock>
|
3351 |
-
<argument line="
|
3352 |
<name>$selection</name>
|
3353 |
<default><![CDATA['none']]></default>
|
3354 |
<type/>
|
3355 |
</argument>
|
3356 |
</method>
|
3357 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3358 |
<name>_update_custom_field_mapping</name>
|
3359 |
<full_name>_update_custom_field_mapping</full_name>
|
3360 |
-
<docblock line="
|
3361 |
<description><![CDATA[Update custom field mappings]]></description>
|
3362 |
<long-description><![CDATA[]]></long-description>
|
3363 |
-
<tag line="
|
3364 |
-
<tag line="
|
3365 |
<type by_reference="false">array</type>
|
3366 |
</tag>
|
3367 |
-
<tag line="
|
3368 |
<type by_reference="false">array</type>
|
3369 |
</tag>
|
3370 |
-
<tag line="
|
3371 |
<type by_reference="false">array</type>
|
3372 |
</tag>
|
3373 |
</docblock>
|
3374 |
-
<argument line="
|
3375 |
<name>$current_values</name>
|
3376 |
<default><![CDATA[]]></default>
|
3377 |
<type/>
|
3378 |
</argument>
|
3379 |
-
<argument line="
|
3380 |
<name>$new_values</name>
|
3381 |
<default><![CDATA[]]></default>
|
3382 |
<type/>
|
3383 |
</argument>
|
3384 |
</method>
|
3385 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3386 |
<name>mla_custom_field_option_handler</name>
|
3387 |
<full_name>mla_custom_field_option_handler</full_name>
|
3388 |
-
<docblock line="
|
3389 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
3390 |
<long-description><![CDATA[]]></long-description>
|
3391 |
-
<tag line="
|
3392 |
-
<tag line="
|
3393 |
-
<tag line="
|
3394 |
<type by_reference="false">string</type>
|
3395 |
</tag>
|
3396 |
-
<tag line="
|
3397 |
<type by_reference="false">string</type>
|
3398 |
</tag>
|
3399 |
-
<tag line="
|
3400 |
<type by_reference="false">array</type>
|
3401 |
</tag>
|
3402 |
-
<tag line="
|
3403 |
<type by_reference="false">array</type>
|
3404 |
</tag>
|
3405 |
-
<tag line="
|
3406 |
<type by_reference="false">string</type>
|
3407 |
</tag>
|
3408 |
</docblock>
|
3409 |
-
<argument line="
|
3410 |
<name>$action</name>
|
3411 |
<default><![CDATA[]]></default>
|
3412 |
<type/>
|
3413 |
</argument>
|
3414 |
-
<argument line="
|
3415 |
<name>$key</name>
|
3416 |
<default><![CDATA[]]></default>
|
3417 |
<type/>
|
3418 |
</argument>
|
3419 |
-
<argument line="
|
3420 |
<name>$value</name>
|
3421 |
<default><![CDATA[]]></default>
|
3422 |
<type/>
|
3423 |
</argument>
|
3424 |
-
<argument line="
|
3425 |
<name>$args</name>
|
3426 |
<default><![CDATA[null]]></default>
|
3427 |
<type/>
|
3428 |
</argument>
|
3429 |
</method>
|
3430 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3431 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
3432 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
3433 |
-
<docblock line="
|
3434 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
3435 |
<long-description><![CDATA[]]></long-description>
|
3436 |
-
<tag line="
|
3437 |
-
<tag line="
|
3438 |
<type by_reference="false">object</type>
|
3439 |
</tag>
|
3440 |
-
<tag line="
|
3441 |
<type by_reference="false">string</type>
|
3442 |
</tag>
|
3443 |
-
<tag line="
|
3444 |
<type by_reference="false">array</type>
|
3445 |
</tag>
|
3446 |
-
<tag line="
|
3447 |
<type by_reference="false">array</type>
|
3448 |
</tag>
|
3449 |
</docblock>
|
3450 |
-
<argument line="
|
3451 |
<name>$post</name>
|
3452 |
<default><![CDATA[]]></default>
|
3453 |
<type/>
|
3454 |
</argument>
|
3455 |
-
<argument line="
|
3456 |
<name>$category</name>
|
3457 |
<default><![CDATA[]]></default>
|
3458 |
<type/>
|
3459 |
</argument>
|
3460 |
-
<argument line="
|
3461 |
<name>$settings</name>
|
3462 |
<default><![CDATA[NULL]]></default>
|
3463 |
<type/>
|
3464 |
</argument>
|
3465 |
</method>
|
3466 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3467 |
<name>_compose_iptc_option_list</name>
|
3468 |
<full_name>_compose_iptc_option_list</full_name>
|
3469 |
-
<docblock line="
|
3470 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
3471 |
<long-description><![CDATA[]]></long-description>
|
3472 |
-
<tag line="
|
3473 |
-
<tag line="
|
3474 |
-
<tag line="
|
3475 |
<type by_reference="false">string</type>
|
3476 |
</tag>
|
3477 |
-
<tag line="
|
3478 |
<type by_reference="false">string</type>
|
3479 |
</tag>
|
3480 |
</docblock>
|
3481 |
-
<argument line="
|
3482 |
<name>$selection</name>
|
3483 |
<default><![CDATA['none']]></default>
|
3484 |
<type/>
|
3485 |
</argument>
|
3486 |
</method>
|
3487 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3488 |
<name>_compose_parent_option_list</name>
|
3489 |
<full_name>_compose_parent_option_list</full_name>
|
3490 |
-
<docblock line="
|
3491 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
3492 |
<long-description><![CDATA[]]></long-description>
|
3493 |
-
<tag line="
|
3494 |
-
<tag line="
|
3495 |
-
<tag line="
|
3496 |
<type by_reference="false">string</type>
|
3497 |
</tag>
|
3498 |
-
<tag line="
|
3499 |
<type by_reference="false">integer</type>
|
3500 |
</tag>
|
3501 |
-
<tag line="
|
3502 |
<type by_reference="false">string</type>
|
3503 |
</tag>
|
3504 |
</docblock>
|
3505 |
-
<argument line="
|
3506 |
<name>$taxonomy</name>
|
3507 |
<default><![CDATA[]]></default>
|
3508 |
<type/>
|
3509 |
</argument>
|
3510 |
-
<argument line="
|
3511 |
<name>$selection</name>
|
3512 |
<default><![CDATA[0]]></default>
|
3513 |
<type/>
|
3514 |
</argument>
|
3515 |
</method>
|
3516 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3517 |
<name>_update_iptc_exif_standard_mapping</name>
|
3518 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
3519 |
-
<docblock line="
|
3520 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
3521 |
<long-description><![CDATA[]]></long-description>
|
3522 |
-
<tag line="
|
3523 |
-
<tag line="
|
3524 |
<type by_reference="false">array</type>
|
3525 |
</tag>
|
3526 |
-
<tag line="
|
3527 |
<type by_reference="false">array</type>
|
3528 |
</tag>
|
3529 |
-
<tag line="
|
3530 |
<type by_reference="false">array</type>
|
3531 |
</tag>
|
3532 |
</docblock>
|
3533 |
-
<argument line="
|
3534 |
<name>$current_values</name>
|
3535 |
<default><![CDATA[]]></default>
|
3536 |
<type/>
|
3537 |
</argument>
|
3538 |
-
<argument line="
|
3539 |
<name>$new_values</name>
|
3540 |
<default><![CDATA[]]></default>
|
3541 |
<type/>
|
3542 |
</argument>
|
3543 |
</method>
|
3544 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3545 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
3546 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
3547 |
-
<docblock line="
|
3548 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
3549 |
<long-description><![CDATA[]]></long-description>
|
3550 |
-
<tag line="
|
3551 |
-
<tag line="
|
3552 |
<type by_reference="false">array</type>
|
3553 |
</tag>
|
3554 |
-
<tag line="
|
3555 |
<type by_reference="false">array</type>
|
3556 |
</tag>
|
3557 |
-
<tag line="
|
3558 |
<type by_reference="false">array</type>
|
3559 |
</tag>
|
3560 |
</docblock>
|
3561 |
-
<argument line="
|
3562 |
<name>$current_values</name>
|
3563 |
<default><![CDATA[]]></default>
|
3564 |
<type/>
|
3565 |
</argument>
|
3566 |
-
<argument line="
|
3567 |
<name>$new_values</name>
|
3568 |
<default><![CDATA[]]></default>
|
3569 |
<type/>
|
3570 |
</argument>
|
3571 |
</method>
|
3572 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3573 |
<name>_update_iptc_exif_custom_mapping</name>
|
3574 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
3575 |
-
<docblock line="
|
3576 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
3577 |
<long-description><![CDATA[]]></long-description>
|
3578 |
-
<tag line="
|
3579 |
-
<tag line="
|
3580 |
<type by_reference="false">array</type>
|
3581 |
</tag>
|
3582 |
-
<tag line="
|
3583 |
<type by_reference="false">array</type>
|
3584 |
</tag>
|
3585 |
-
<tag line="
|
3586 |
<type by_reference="false">array</type>
|
3587 |
</tag>
|
3588 |
</docblock>
|
3589 |
-
<argument line="
|
3590 |
<name>$current_values</name>
|
3591 |
<default><![CDATA[]]></default>
|
3592 |
<type/>
|
3593 |
</argument>
|
3594 |
-
<argument line="
|
3595 |
<name>$new_values</name>
|
3596 |
<default><![CDATA[]]></default>
|
3597 |
<type/>
|
3598 |
</argument>
|
3599 |
</method>
|
3600 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3601 |
<name>_get_custom_field_names</name>
|
3602 |
<full_name>_get_custom_field_names</full_name>
|
3603 |
-
<docblock line="
|
3604 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
3605 |
<long-description><![CDATA[]]></long-description>
|
3606 |
-
<tag line="
|
3607 |
-
<tag line="
|
3608 |
<type by_reference="false">array</type>
|
3609 |
</tag>
|
3610 |
</docblock>
|
3611 |
</method>
|
3612 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3613 |
<name>mla_iptc_exif_option_handler</name>
|
3614 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
3615 |
-
<docblock line="
|
3616 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
3617 |
<long-description><![CDATA[]]></long-description>
|
3618 |
-
<tag line="
|
3619 |
-
<tag line="
|
3620 |
-
<tag line="
|
3621 |
<type by_reference="false">string</type>
|
3622 |
</tag>
|
3623 |
-
<tag line="
|
3624 |
<type by_reference="false">string</type>
|
3625 |
</tag>
|
3626 |
-
<tag line="
|
3627 |
<type by_reference="false">array</type>
|
3628 |
</tag>
|
3629 |
-
<tag line="
|
3630 |
<type by_reference="false">array</type>
|
3631 |
</tag>
|
3632 |
-
<tag line="
|
3633 |
<type by_reference="false">string</type>
|
3634 |
</tag>
|
3635 |
</docblock>
|
3636 |
-
<argument line="
|
3637 |
<name>$action</name>
|
3638 |
<default><![CDATA[]]></default>
|
3639 |
<type/>
|
3640 |
</argument>
|
3641 |
-
<argument line="
|
3642 |
<name>$key</name>
|
3643 |
<default><![CDATA[]]></default>
|
3644 |
<type/>
|
3645 |
</argument>
|
3646 |
-
<argument line="
|
3647 |
<name>$value</name>
|
3648 |
<default><![CDATA[]]></default>
|
3649 |
<type/>
|
3650 |
</argument>
|
3651 |
-
<argument line="
|
3652 |
<name>$args</name>
|
3653 |
<default><![CDATA[null]]></default>
|
3654 |
<type/>
|
@@ -3656,7 +3713,7 @@ settings are being updated or reset.]]></description>
|
|
3656 |
</method>
|
3657 |
</class>
|
3658 |
</file>
|
3659 |
-
<file path="includes\class-mla-settings.php" hash="
|
3660 |
<docblock line="2">
|
3661 |
<description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
|
3662 |
<long-description><![CDATA[]]></long-description>
|
@@ -3682,23 +3739,23 @@ settings are being updated or reset.]]></description>
|
|
3682 |
<long-description><![CDATA[]]></long-description>
|
3683 |
</docblock>
|
3684 |
</constant>
|
3685 |
-
<property final="false" static="true" visibility="private" line="
|
3686 |
<name>$page_template_array</name>
|
3687 |
<default><![CDATA[null]]></default>
|
3688 |
-
<docblock line="
|
3689 |
<description><![CDATA[Template file for the Settings page(s) and parts]]></description>
|
3690 |
<long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
|
3691 |
each page load and cached for subsequent use.</p>]]></long-description>
|
3692 |
-
<tag line="
|
3693 |
-
<tag line="
|
3694 |
<type by_reference="false">array</type>
|
3695 |
</tag>
|
3696 |
</docblock>
|
3697 |
</property>
|
3698 |
-
<property final="false" static="true" visibility="private" line="
|
3699 |
<name>$mla_tablist</name>
|
3700 |
<default><![CDATA[array('general' => array('title' => 'General', 'render' => '_compose_general_tab'), 'mla-gallery' => array('title' => 'MLA Gallery', 'render' => '_compose_mla_gallery_tab'), 'custom-field' => array('title' => 'Custom Fields', 'render' => '_compose_custom_field_tab'), 'iptc-exif' => array('title' => 'IPTC/EXIF', 'render' => '_compose_iptc_exif_tab'), 'documentation' => array('title' => 'Documentation', 'render' => '_compose_documentation_tab'))]]></default>
|
3701 |
-
<docblock line="
|
3702 |
<description><![CDATA[Definitions for Settings page tab ids, titles and handlers
|
3703 |
Each tab is defined by an array with the following elements:]]></description>
|
3704 |
<long-description><![CDATA[<p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
|
@@ -3706,8 +3763,8 @@ Each tab is defined by an array with the following elements:]]></description>
|
|
3706 |
<p>title => tab label / heading text
|
3707 |
render => rendering function for tab messages and content. Usage:
|
3708 |
$tab_content = <a href="">'render'</a>;</p>]]></long-description>
|
3709 |
-
<tag line="
|
3710 |
-
<tag line="
|
3711 |
<type by_reference="false">array</type>
|
3712 |
</tag>
|
3713 |
</docblock>
|
@@ -3736,386 +3793,386 @@ render => rendering function for tab messages and content. Usage:
|
|
3736 |
</tag>
|
3737 |
</docblock>
|
3738 |
</method>
|
3739 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3740 |
<name>mla_activation_hook</name>
|
3741 |
<full_name>mla_activation_hook</full_name>
|
3742 |
-
<docblock line="
|
3743 |
<description><![CDATA[Perform one-time actions on plugin activation]]></description>
|
3744 |
<long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
|
3745 |
-
<tag line="
|
3746 |
-
<tag line="
|
3747 |
<type by_reference="false">void</type>
|
3748 |
</tag>
|
3749 |
</docblock>
|
3750 |
</method>
|
3751 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3752 |
<name>mla_deactivation_hook</name>
|
3753 |
<full_name>mla_deactivation_hook</full_name>
|
3754 |
-
<docblock line="
|
3755 |
<description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
|
3756 |
<long-description><![CDATA[<p>Removes (if present) a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
|
3757 |
-
<tag line="
|
3758 |
-
<tag line="
|
3759 |
<type by_reference="false">void</type>
|
3760 |
</tag>
|
3761 |
</docblock>
|
3762 |
</method>
|
3763 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3764 |
<name>mla_admin_menu_action</name>
|
3765 |
<full_name>mla_admin_menu_action</full_name>
|
3766 |
-
<docblock line="
|
3767 |
<description><![CDATA[Add settings page in the "Settings" section,
|
3768 |
add settings link in the Plugins section entry for MLA.]]></description>
|
3769 |
<long-description><![CDATA[]]></long-description>
|
3770 |
-
<tag line="
|
3771 |
-
<tag line="
|
3772 |
<type by_reference="false">void</type>
|
3773 |
</tag>
|
3774 |
</docblock>
|
3775 |
</method>
|
3776 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3777 |
<name>mla_add_plugin_settings_link</name>
|
3778 |
<full_name>mla_add_plugin_settings_link</full_name>
|
3779 |
-
<docblock line="
|
3780 |
<description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
|
3781 |
<long-description><![CDATA[]]></long-description>
|
3782 |
-
<tag line="
|
3783 |
-
<tag line="
|
3784 |
<type by_reference="false">array</type>
|
3785 |
</tag>
|
3786 |
-
<tag line="
|
3787 |
<type by_reference="false">string</type>
|
3788 |
</tag>
|
3789 |
-
<tag line="
|
3790 |
<type by_reference="false">array</type>
|
3791 |
</tag>
|
3792 |
</docblock>
|
3793 |
-
<argument line="
|
3794 |
<name>$links</name>
|
3795 |
<default><![CDATA[]]></default>
|
3796 |
<type/>
|
3797 |
</argument>
|
3798 |
-
<argument line="
|
3799 |
<name>$file</name>
|
3800 |
<default><![CDATA[]]></default>
|
3801 |
<type/>
|
3802 |
</argument>
|
3803 |
</method>
|
3804 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3805 |
<name>_update_option_row</name>
|
3806 |
<full_name>_update_option_row</full_name>
|
3807 |
-
<docblock line="
|
3808 |
<description><![CDATA[Update or delete a single MLA option value]]></description>
|
3809 |
<long-description><![CDATA[]]></long-description>
|
3810 |
-
<tag line="
|
3811 |
-
<tag line="
|
3812 |
-
<tag line="
|
3813 |
<type by_reference="false">string</type>
|
3814 |
</tag>
|
3815 |
-
<tag line="
|
3816 |
<type by_reference="false">array</type>
|
3817 |
</tag>
|
3818 |
-
<tag line="
|
3819 |
<type by_reference="false">string</type>
|
3820 |
</tag>
|
3821 |
</docblock>
|
3822 |
-
<argument line="
|
3823 |
<name>$key</name>
|
3824 |
<default><![CDATA[]]></default>
|
3825 |
<type/>
|
3826 |
</argument>
|
3827 |
-
<argument line="
|
3828 |
<name>$value</name>
|
3829 |
<default><![CDATA[]]></default>
|
3830 |
<type/>
|
3831 |
</argument>
|
3832 |
</method>
|
3833 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3834 |
<name>_compose_option_row</name>
|
3835 |
<full_name>_compose_option_row</full_name>
|
3836 |
-
<docblock line="
|
3837 |
<description><![CDATA[Compose the table row for a single MLA option]]></description>
|
3838 |
<long-description><![CDATA[]]></long-description>
|
3839 |
-
<tag line="
|
3840 |
-
<tag line="
|
3841 |
-
<tag line="
|
3842 |
<type by_reference="false">string</type>
|
3843 |
</tag>
|
3844 |
-
<tag line="
|
3845 |
<type by_reference="false">array</type>
|
3846 |
</tag>
|
3847 |
-
<tag line="
|
3848 |
<type by_reference="false">string</type>
|
3849 |
</tag>
|
3850 |
</docblock>
|
3851 |
-
<argument line="
|
3852 |
<name>$key</name>
|
3853 |
<default><![CDATA[]]></default>
|
3854 |
<type/>
|
3855 |
</argument>
|
3856 |
-
<argument line="
|
3857 |
<name>$value</name>
|
3858 |
<default><![CDATA[]]></default>
|
3859 |
<type/>
|
3860 |
</argument>
|
3861 |
</method>
|
3862 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3863 |
<name>_compose_settings_tabs</name>
|
3864 |
<full_name>_compose_settings_tabs</full_name>
|
3865 |
-
<docblock line="
|
3866 |
<description><![CDATA[Compose the navigation tabs for the Settings subpage]]></description>
|
3867 |
<long-description><![CDATA[]]></long-description>
|
3868 |
-
<tag line="
|
3869 |
-
<tag line="
|
3870 |
-
<tag line="
|
3871 |
<type by_reference="false">string</type>
|
3872 |
</tag>
|
3873 |
-
<tag line="
|
3874 |
<type by_reference="false">string</type>
|
3875 |
</tag>
|
3876 |
</docblock>
|
3877 |
-
<argument line="
|
3878 |
<name>$active_tab</name>
|
3879 |
<default><![CDATA['general']]></default>
|
3880 |
<type/>
|
3881 |
</argument>
|
3882 |
</method>
|
3883 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3884 |
<name>_compose_general_tab</name>
|
3885 |
<full_name>_compose_general_tab</full_name>
|
3886 |
-
<docblock line="
|
3887 |
<description><![CDATA[Compose the General tab content for the Settings subpage]]></description>
|
3888 |
<long-description><![CDATA[]]></long-description>
|
3889 |
-
<tag line="
|
3890 |
-
<tag line="
|
3891 |
-
<tag line="
|
3892 |
<type by_reference="false">array</type>
|
3893 |
</tag>
|
3894 |
</docblock>
|
3895 |
</method>
|
3896 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3897 |
<name>_compose_mla_gallery_tab</name>
|
3898 |
<full_name>_compose_mla_gallery_tab</full_name>
|
3899 |
-
<docblock line="
|
3900 |
<description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
|
3901 |
<long-description><![CDATA[]]></long-description>
|
3902 |
-
<tag line="
|
3903 |
-
<tag line="
|
3904 |
-
<tag line="
|
3905 |
<type by_reference="false">array</type>
|
3906 |
</tag>
|
3907 |
</docblock>
|
3908 |
</method>
|
3909 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3910 |
<name>_compose_custom_field_tab</name>
|
3911 |
<full_name>_compose_custom_field_tab</full_name>
|
3912 |
-
<docblock line="
|
3913 |
<description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
|
3914 |
<long-description><![CDATA[]]></long-description>
|
3915 |
-
<tag line="
|
3916 |
-
<tag line="
|
3917 |
-
<tag line="
|
3918 |
<type by_reference="false">array</type>
|
3919 |
</tag>
|
3920 |
</docblock>
|
3921 |
</method>
|
3922 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3923 |
<name>_compose_iptc_exif_tab</name>
|
3924 |
<full_name>_compose_iptc_exif_tab</full_name>
|
3925 |
-
<docblock line="
|
3926 |
<description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
|
3927 |
<long-description><![CDATA[]]></long-description>
|
3928 |
-
<tag line="
|
3929 |
-
<tag line="
|
3930 |
-
<tag line="
|
3931 |
<type by_reference="false">array</type>
|
3932 |
</tag>
|
3933 |
</docblock>
|
3934 |
</method>
|
3935 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3936 |
<name>_compose_documentation_tab</name>
|
3937 |
<full_name>_compose_documentation_tab</full_name>
|
3938 |
-
<docblock line="
|
3939 |
<description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
|
3940 |
<long-description><![CDATA[]]></long-description>
|
3941 |
-
<tag line="
|
3942 |
-
<tag line="
|
3943 |
-
<tag line="
|
3944 |
<type by_reference="false">array</type>
|
3945 |
</tag>
|
3946 |
</docblock>
|
3947 |
</method>
|
3948 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3949 |
<name>mla_render_settings_page</name>
|
3950 |
<full_name>mla_render_settings_page</full_name>
|
3951 |
-
<docblock line="
|
3952 |
<description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
|
3953 |
<long-description><![CDATA[]]></long-description>
|
3954 |
-
<tag line="
|
3955 |
-
<tag line="
|
3956 |
<type by_reference="false">void</type>
|
3957 |
</tag>
|
3958 |
</docblock>
|
3959 |
</method>
|
3960 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3961 |
<name>_save_gallery_settings</name>
|
3962 |
<full_name>_save_gallery_settings</full_name>
|
3963 |
-
<docblock line="
|
3964 |
<description><![CDATA[Save MLA Gallery settings to the options table]]></description>
|
3965 |
<long-description><![CDATA[]]></long-description>
|
3966 |
-
<tag line="
|
3967 |
-
<tag line="
|
3968 |
-
<tag line="
|
3969 |
<type by_reference="false">array</type>
|
3970 |
</tag>
|
3971 |
</docblock>
|
3972 |
</method>
|
3973 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3974 |
<name>_process_custom_field_mapping</name>
|
3975 |
<full_name>_process_custom_field_mapping</full_name>
|
3976 |
-
<docblock line="
|
3977 |
<description><![CDATA[Process custom field settings against all image attachments
|
3978 |
without saving the settings to the mla_option]]></description>
|
3979 |
<long-description><![CDATA[]]></long-description>
|
3980 |
-
<tag line="
|
3981 |
-
<tag line="
|
3982 |
-
<tag line="
|
3983 |
<type by_reference="false">array</type>
|
3984 |
</tag>
|
3985 |
-
<tag line="
|
3986 |
<type by_reference="false">array</type>
|
3987 |
</tag>
|
3988 |
</docblock>
|
3989 |
-
<argument line="
|
3990 |
<name>$settings</name>
|
3991 |
<default><![CDATA[NULL]]></default>
|
3992 |
<type/>
|
3993 |
</argument>
|
3994 |
</method>
|
3995 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
3996 |
<name>_delete_custom_field</name>
|
3997 |
<full_name>_delete_custom_field</full_name>
|
3998 |
-
<docblock line="
|
3999 |
<description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
|
4000 |
<long-description><![CDATA[]]></long-description>
|
4001 |
-
<tag line="
|
4002 |
-
<tag line="
|
4003 |
<type by_reference="false">array</type>
|
4004 |
</tag>
|
4005 |
-
<tag line="
|
4006 |
<type by_reference="false">array</type>
|
4007 |
</tag>
|
4008 |
</docblock>
|
4009 |
-
<argument line="
|
4010 |
<name>$value</name>
|
4011 |
<default><![CDATA[]]></default>
|
4012 |
<type/>
|
4013 |
</argument>
|
4014 |
</method>
|
4015 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4016 |
<name>_save_custom_field_settings</name>
|
4017 |
<full_name>_save_custom_field_settings</full_name>
|
4018 |
-
<docblock line="
|
4019 |
<description><![CDATA[Save custom field settings to the options table]]></description>
|
4020 |
<long-description><![CDATA[]]></long-description>
|
4021 |
-
<tag line="
|
4022 |
-
<tag line="
|
4023 |
-
<tag line="
|
4024 |
<type by_reference="false">array</type>
|
4025 |
</tag>
|
4026 |
-
<tag line="
|
4027 |
<type by_reference="false">array</type>
|
4028 |
</tag>
|
4029 |
</docblock>
|
4030 |
-
<argument line="
|
4031 |
<name>$new_values</name>
|
4032 |
<default><![CDATA[NULL]]></default>
|
4033 |
<type/>
|
4034 |
</argument>
|
4035 |
</method>
|
4036 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4037 |
<name>_process_iptc_exif_standard</name>
|
4038 |
<full_name>_process_iptc_exif_standard</full_name>
|
4039 |
-
<docblock line="
|
4040 |
<description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
|
4041 |
without saving the settings to the mla_option]]></description>
|
4042 |
<long-description><![CDATA[]]></long-description>
|
4043 |
-
<tag line="
|
4044 |
-
<tag line="
|
4045 |
-
<tag line="
|
4046 |
<type by_reference="false">array</type>
|
4047 |
</tag>
|
4048 |
</docblock>
|
4049 |
</method>
|
4050 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4051 |
<name>_process_iptc_exif_taxonomy</name>
|
4052 |
<full_name>_process_iptc_exif_taxonomy</full_name>
|
4053 |
-
<docblock line="
|
4054 |
<description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
|
4055 |
without saving the settings to the mla_option]]></description>
|
4056 |
<long-description><![CDATA[]]></long-description>
|
4057 |
-
<tag line="
|
4058 |
-
<tag line="
|
4059 |
-
<tag line="
|
4060 |
<type by_reference="false">array</type>
|
4061 |
</tag>
|
4062 |
</docblock>
|
4063 |
</method>
|
4064 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4065 |
<name>_process_iptc_exif_custom</name>
|
4066 |
<full_name>_process_iptc_exif_custom</full_name>
|
4067 |
-
<docblock line="
|
4068 |
<description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
|
4069 |
without saving the settings to the mla_option]]></description>
|
4070 |
<long-description><![CDATA[]]></long-description>
|
4071 |
-
<tag line="
|
4072 |
-
<tag line="
|
4073 |
-
<tag line="
|
4074 |
<type by_reference="false">array</type>
|
4075 |
</tag>
|
4076 |
</docblock>
|
4077 |
</method>
|
4078 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4079 |
<name>_save_iptc_exif_settings</name>
|
4080 |
<full_name>_save_iptc_exif_settings</full_name>
|
4081 |
-
<docblock line="
|
4082 |
<description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
|
4083 |
<long-description><![CDATA[]]></long-description>
|
4084 |
-
<tag line="
|
4085 |
-
<tag line="
|
4086 |
-
<tag line="
|
4087 |
<type by_reference="false">array</type>
|
4088 |
</tag>
|
4089 |
</docblock>
|
4090 |
</method>
|
4091 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4092 |
<name>_save_general_settings</name>
|
4093 |
<full_name>_save_general_settings</full_name>
|
4094 |
-
<docblock line="
|
4095 |
<description><![CDATA[Save General settings to the options table]]></description>
|
4096 |
<long-description><![CDATA[]]></long-description>
|
4097 |
-
<tag line="
|
4098 |
-
<tag line="
|
4099 |
-
<tag line="
|
4100 |
<type by_reference="false">array</type>
|
4101 |
</tag>
|
4102 |
</docblock>
|
4103 |
</method>
|
4104 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4105 |
<name>_reset_general_settings</name>
|
4106 |
<full_name>_reset_general_settings</full_name>
|
4107 |
-
<docblock line="
|
4108 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
4109 |
<long-description><![CDATA[]]></long-description>
|
4110 |
-
<tag line="
|
4111 |
-
<tag line="
|
4112 |
<type by_reference="false">array</type>
|
4113 |
</tag>
|
4114 |
</docblock>
|
4115 |
</method>
|
4116 |
</class>
|
4117 |
</file>
|
4118 |
-
<file path="includes\class-mla-shortcodes.php" hash="
|
4119 |
<docblock line="2">
|
4120 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
4121 |
<long-description><![CDATA[]]></long-description>
|
@@ -4156,67 +4213,83 @@ without saving the settings to the mla_option]]></description>
|
|
4156 |
</tag>
|
4157 |
</docblock>
|
4158 |
</property>
|
4159 |
-
<property final="false" static="true" visibility="private" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4160 |
<name>$mla_iptc_records</name>
|
4161 |
<default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
|
4162 |
-
<docblock line="
|
4163 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
4164 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
4165 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
4166 |
-
<tag line="
|
4167 |
-
<tag line="
|
4168 |
<type by_reference="false">array</type>
|
4169 |
</tag>
|
4170 |
</docblock>
|
4171 |
</property>
|
4172 |
-
<property final="false" static="true" visibility="public" line="
|
4173 |
<name>$mla_iptc_keys</name>
|
4174 |
<default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
|
4175 |
-
<docblock line="
|
4176 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
4177 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
4178 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
4179 |
-
<tag line="
|
4180 |
-
<tag line="
|
4181 |
<type by_reference="false">array</type>
|
4182 |
</tag>
|
4183 |
</docblock>
|
4184 |
</property>
|
4185 |
-
<property final="false" static="true" visibility="private" line="
|
4186 |
<name>$mla_iptc_descriptions</name>
|
4187 |
<default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
|
4188 |
-
<docblock line="
|
4189 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
4190 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
4191 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
4192 |
-
<tag line="
|
4193 |
-
<tag line="
|
4194 |
<type by_reference="false">array</type>
|
4195 |
</tag>
|
4196 |
</docblock>
|
4197 |
</property>
|
4198 |
-
<property final="false" static="true" visibility="private" line="
|
4199 |
<name>$mla_iptc_formats</name>
|
4200 |
<default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
|
4201 |
-
<docblock line="
|
4202 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
4203 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
4204 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
4205 |
-
<tag line="
|
4206 |
-
<tag line="
|
4207 |
<type by_reference="false">array</type>
|
4208 |
</tag>
|
4209 |
</docblock>
|
4210 |
</property>
|
4211 |
-
<property final="false" static="true" visibility="private" line="
|
4212 |
<name>$mla_iptc_image_types</name>
|
4213 |
<default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
|
4214 |
-
<docblock line="
|
4215 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
4216 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
4217 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
4218 |
-
<tag line="
|
4219 |
-
<tag line="
|
4220 |
<type by_reference="false">array</type>
|
4221 |
</tag>
|
4222 |
</docblock>
|
@@ -4245,73 +4318,74 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130,
|
|
4245 |
</tag>
|
4246 |
</docblock>
|
4247 |
</method>
|
4248 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4249 |
<name>mla_gallery_shortcode</name>
|
4250 |
<full_name>mla_gallery_shortcode</full_name>
|
4251 |
-
<docblock line="
|
4252 |
<description><![CDATA[The MLA Gallery shortcode.]]></description>
|
4253 |
<long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
|
4254 |
page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
|
4255 |
Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
|
4256 |
-
<tag line="
|
4257 |
-
<tag line="
|
4258 |
<type by_reference="false">array</type>
|
4259 |
</tag>
|
4260 |
-
<tag line="
|
4261 |
<type by_reference="false">string</type>
|
4262 |
</tag>
|
4263 |
</docblock>
|
4264 |
-
<argument line="
|
4265 |
<name>$attr</name>
|
4266 |
<default><![CDATA[]]></default>
|
4267 |
<type/>
|
4268 |
</argument>
|
4269 |
</method>
|
4270 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4271 |
<name>mla_get_shortcode_attachments</name>
|
4272 |
<full_name>mla_get_shortcode_attachments</full_name>
|
4273 |
-
<docblock line="
|
4274 |
<description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
|
4275 |
<long-description><![CDATA[]]></long-description>
|
4276 |
-
<tag line="
|
4277 |
-
<tag line="
|
4278 |
<type by_reference="false">int</type>
|
4279 |
</tag>
|
4280 |
-
<tag line="
|
4281 |
<type by_reference="false">array</type>
|
4282 |
</tag>
|
4283 |
-
<tag line="
|
4284 |
<type by_reference="false">array</type>
|
4285 |
</tag>
|
4286 |
</docblock>
|
4287 |
-
<argument line="
|
4288 |
<name>$post_parent</name>
|
4289 |
<default><![CDATA[]]></default>
|
4290 |
<type/>
|
4291 |
</argument>
|
4292 |
-
<argument line="
|
4293 |
<name>$attr</name>
|
4294 |
<default><![CDATA[]]></default>
|
4295 |
<type/>
|
4296 |
</argument>
|
4297 |
</method>
|
4298 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4299 |
<name>mla_shortcode_query_posts_where_filter</name>
|
4300 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
4301 |
-
<docblock line="
|
4302 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
4303 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
4304 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
|
|
4305 |
Defined as public because it's a filter.</p>]]></long-description>
|
4306 |
-
<tag line="
|
4307 |
-
<tag line="
|
4308 |
<type by_reference="false">string</type>
|
4309 |
</tag>
|
4310 |
-
<tag line="
|
4311 |
<type by_reference="false">string</type>
|
4312 |
</tag>
|
4313 |
</docblock>
|
4314 |
-
<argument line="
|
4315 |
<name>$where_clause</name>
|
4316 |
<default><![CDATA[]]></default>
|
4317 |
<type/>
|
@@ -4364,13 +4438,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
|
|
4364 |
</docblock>
|
4365 |
</constant>
|
4366 |
</file>
|
4367 |
-
<file path="index.php" hash="
|
4368 |
<docblock line="2">
|
4369 |
<description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
|
4370 |
<long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
4371 |
will the rest of the plugin be loaded and run.</p>]]></long-description>
|
4372 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
4373 |
-
<tag line="2" name="version" description="1.
|
4374 |
</docblock>
|
4375 |
<include line="103" type="Require Once" package="Media Library Assistant">
|
4376 |
<name>includes/mla-plugin-loader.php</name>
|
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="6c63ee375dcecc7156dd32f621501a07" 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>
|
40 |
</tag>
|
41 |
</docblock>
|
42 |
</property>
|
43 |
+
<property final="false" static="true" visibility="private" line="288" namespace="global" package="Media Library Assistant">
|
44 |
<name>$query_parameters</name>
|
45 |
<default><![CDATA[array()]]></default>
|
46 |
<docblock line="275">
|
47 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
48 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
49 |
The parameters are set up in the _prepare_list_table_query function, and
|
50 |
+
any further logic required to translate those values is contained in the filters.</p>
|
51 |
+
|
52 |
+
<p>Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla-search-connector, mla-search-fields, sentence, exact</p>]]></long-description>
|
53 |
<tag line="275" name="since" description="0.30"/>
|
54 |
<tag line="275" name="var" description="" type="array">
|
55 |
<type by_reference="false">array</type>
|
56 |
</tag>
|
57 |
</docblock>
|
58 |
</property>
|
59 |
+
<property final="false" static="true" visibility="private" line="1186" namespace="global" package="Media Library Assistant">
|
60 |
<name>$galleries</name>
|
61 |
<default><![CDATA[null]]></default>
|
62 |
+
<docblock line="1168">
|
63 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
64 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
65 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
71 |
['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
|
72 |
['query'] contains a string with the arguments of the [gallery],
|
73 |
['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
|
74 |
+
<tag line="1168" name="since" description="0.70"/>
|
75 |
+
<tag line="1168" name="var" description="" type="array">
|
76 |
<type by_reference="false">array</type>
|
77 |
</tag>
|
78 |
</docblock>
|
79 |
</property>
|
80 |
+
<property final="false" static="true" visibility="private" line="1199" namespace="global" package="Media Library Assistant">
|
81 |
<name>$mla_galleries</name>
|
82 |
<default><![CDATA[null]]></default>
|
83 |
+
<docblock line="1188">
|
84 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
85 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
86 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
87 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
88 |
+
<tag line="1188" name="since" description="0.70"/>
|
89 |
+
<tag line="1188" name="var" description="" type="array">
|
90 |
<type by_reference="false">array</type>
|
91 |
</tag>
|
92 |
</docblock>
|
238 |
<type/>
|
239 |
</argument>
|
240 |
</method>
|
241 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="304" package="Media Library Assistant">
|
242 |
<name>_prepare_list_table_query</name>
|
243 |
<full_name>_prepare_list_table_query</full_name>
|
244 |
+
<docblock line="290">
|
245 |
<description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
|
246 |
<long-description><![CDATA[<p>Prepare the arguments for WP_Query.
|
247 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
248 |
+
<tag line="290" name="since" description="0.1"/>
|
249 |
+
<tag line="290" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
|
250 |
<type by_reference="false">array</type>
|
251 |
</tag>
|
252 |
+
<tag line="290" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
|
253 |
<type by_reference="false">int</type>
|
254 |
</tag>
|
255 |
+
<tag line="290" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
|
256 |
<type by_reference="false">int</type>
|
257 |
</tag>
|
258 |
+
<tag line="290" name="return" description="revised arguments suitable for WP_Query" type="array">
|
259 |
<type by_reference="false">array</type>
|
260 |
</tag>
|
261 |
</docblock>
|
262 |
+
<argument line="304">
|
263 |
<name>$raw_request</name>
|
264 |
<default><![CDATA[]]></default>
|
265 |
<type/>
|
266 |
</argument>
|
267 |
+
<argument line="304">
|
268 |
<name>$offset</name>
|
269 |
<default><![CDATA[0]]></default>
|
270 |
<type/>
|
271 |
</argument>
|
272 |
+
<argument line="304">
|
273 |
<name>$count</name>
|
274 |
<default><![CDATA[0]]></default>
|
275 |
<type/>
|
276 |
</argument>
|
277 |
</method>
|
278 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="556" package="Media Library Assistant">
|
279 |
<name>_execute_list_table_query</name>
|
280 |
<full_name>_execute_list_table_query</full_name>
|
281 |
+
<docblock line="547">
|
282 |
<description><![CDATA[Add filters, run query, remove filters]]></description>
|
283 |
<long-description><![CDATA[]]></long-description>
|
284 |
+
<tag line="547" name="since" description="0.30"/>
|
285 |
+
<tag line="547" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
286 |
<type by_reference="false">array</type>
|
287 |
</tag>
|
288 |
+
<tag line="547" name="return" description="WP_Query object with query results" type="object">
|
289 |
<type by_reference="false">object</type>
|
290 |
</tag>
|
291 |
</docblock>
|
292 |
+
<argument line="556">
|
293 |
<name>$request</name>
|
294 |
<default><![CDATA[]]></default>
|
295 |
<type/>
|
296 |
</argument>
|
297 |
</method>
|
298 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="610" package="Media Library Assistant">
|
299 |
<name>mla_query_posts_search_filter</name>
|
300 |
<full_name>mla_query_posts_search_filter</full_name>
|
301 |
+
<docblock line="598">
|
302 |
<description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
|
303 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
304 |
+
<tag line="598" name="since" description="0.60"/>
|
305 |
+
<tag line="598" name="param" description="query clause before modification" type="string" variable="$search_string">
|
306 |
<type by_reference="false">string</type>
|
307 |
</tag>
|
308 |
+
<tag line="598" name="param" description="WP_Query object" type="object" variable="$query_object">
|
309 |
<type by_reference="false">object</type>
|
310 |
</tag>
|
311 |
+
<tag line="598" name="return" description="query clause after keyword search addition" type="string">
|
312 |
<type by_reference="false">string</type>
|
313 |
</tag>
|
314 |
</docblock>
|
315 |
+
<argument line="610">
|
316 |
<name>$search_string</name>
|
317 |
<default><![CDATA[]]></default>
|
318 |
<type/>
|
319 |
</argument>
|
320 |
+
<argument line="610">
|
321 |
<name>$query_object</name>
|
322 |
<default><![CDATA[]]></default>
|
323 |
<type/>
|
324 |
</argument>
|
325 |
</method>
|
326 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="690" package="Media Library Assistant">
|
327 |
<name>mla_query_posts_join_filter</name>
|
328 |
<full_name>mla_query_posts_join_filter</full_name>
|
329 |
+
<docblock line="679">
|
330 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on ALT Text]]></description>
|
331 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
332 |
+
<tag line="679" name="since" description="0.30"/>
|
333 |
+
<tag line="679" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
334 |
<type by_reference="false">string</type>
|
335 |
</tag>
|
336 |
+
<tag line="679" name="return" description="query clause after "LEFT JOIN view ON post_id" item modification" type="string">
|
337 |
<type by_reference="false">string</type>
|
338 |
</tag>
|
339 |
</docblock>
|
340 |
+
<argument line="690">
|
341 |
<name>$join_clause</name>
|
342 |
<default><![CDATA[]]></default>
|
343 |
<type/>
|
344 |
</argument>
|
345 |
</method>
|
346 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="717" package="Media Library Assistant">
|
347 |
<name>mla_query_posts_where_filter</name>
|
348 |
<full_name>mla_query_posts_where_filter</full_name>
|
349 |
+
<docblock line="705">
|
350 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
351 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
352 |
Defined as public because it's a filter.</p>]]></long-description>
|
353 |
+
<tag line="705" name="since" description="0.1"/>
|
354 |
+
<tag line="705" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
355 |
<type by_reference="false">string</type>
|
356 |
</tag>
|
357 |
+
<tag line="705" name="return" description="query clause after "detached" item modification" type="string">
|
358 |
<type by_reference="false">string</type>
|
359 |
</tag>
|
360 |
</docblock>
|
361 |
+
<argument line="717">
|
362 |
<name>$where_clause</name>
|
363 |
<default><![CDATA[]]></default>
|
364 |
<type/>
|
365 |
</argument>
|
366 |
</method>
|
367 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="738" package="Media Library Assistant">
|
368 |
<name>mla_query_posts_orderby_filter</name>
|
369 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
370 |
+
<docblock line="726">
|
371 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
372 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
373 |
Defined as public because it's a filter.</p>]]></long-description>
|
374 |
+
<tag line="726" name="since" description="0.30"/>
|
375 |
+
<tag line="726" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
376 |
<type by_reference="false">string</type>
|
377 |
</tag>
|
378 |
+
<tag line="726" name="return" description="updated query clause" type="string">
|
379 |
<type by_reference="false">string</type>
|
380 |
</tag>
|
381 |
</docblock>
|
382 |
+
<argument line="738">
|
383 |
<name>$orderby_clause</name>
|
384 |
<default><![CDATA[]]></default>
|
385 |
<type/>
|
386 |
</argument>
|
387 |
</method>
|
388 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="796" package="Media Library Assistant">
|
389 |
<name>mla_get_attachment_by_id</name>
|
390 |
<full_name>mla_get_attachment_by_id</full_name>
|
391 |
+
<docblock line="784">
|
392 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
393 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
394 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
395 |
+
<tag line="784" name="since" description="0.1"/>
|
396 |
+
<tag line="784" name="uses" description="\global\$post" refers="\global\$post"/>
|
397 |
+
<tag line="784" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
|
398 |
<type by_reference="false">int</type>
|
399 |
</tag>
|
400 |
+
<tag line="784" name="return" description="NULL on failure else associative array" type="NULL|array">
|
401 |
<type by_reference="false">NULL</type>
|
402 |
<type by_reference="false">array</type>
|
403 |
</tag>
|
404 |
</docblock>
|
405 |
+
<argument line="796">
|
406 |
<name>$post_id</name>
|
407 |
<default><![CDATA[]]></default>
|
408 |
<type/>
|
409 |
</argument>
|
410 |
</method>
|
411 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="841" package="Media Library Assistant">
|
412 |
<name>mla_fetch_attachment_parent_data</name>
|
413 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
414 |
+
<docblock line="832">
|
415 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
416 |
<long-description><![CDATA[]]></long-description>
|
417 |
+
<tag line="832" name="since" description="0.1"/>
|
418 |
+
<tag line="832" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
|
419 |
<type by_reference="false">int</type>
|
420 |
</tag>
|
421 |
+
<tag line="832" name="return" description="Parent information; post_date, post_title and post_type" type="array">
|
422 |
<type by_reference="false">array</type>
|
423 |
</tag>
|
424 |
</docblock>
|
425 |
+
<argument line="841">
|
426 |
<name>$parent_id</name>
|
427 |
<default><![CDATA[]]></default>
|
428 |
<type/>
|
429 |
</argument>
|
430 |
</method>
|
431 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="869" package="Media Library Assistant">
|
432 |
<name>mla_fetch_attachment_metadata</name>
|
433 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
434 |
+
<docblock line="856">
|
435 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
436 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
437 |
are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
|
438 |
a string containing the first array element.</p>]]></long-description>
|
439 |
+
<tag line="856" name="since" description="0.1"/>
|
440 |
+
<tag line="856" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
441 |
<type by_reference="false">int</type>
|
442 |
</tag>
|
443 |
+
<tag line="856" name="return" description="Meta data variables" type="array">
|
444 |
<type by_reference="false">array</type>
|
445 |
</tag>
|
446 |
</docblock>
|
447 |
+
<argument line="869">
|
448 |
<name>$post_id</name>
|
449 |
<default><![CDATA[]]></default>
|
450 |
<type/>
|
451 |
</argument>
|
452 |
</method>
|
453 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="935" package="Media Library Assistant">
|
454 |
<name>mla_fetch_attachment_references</name>
|
455 |
<full_name>mla_fetch_attachment_references</full_name>
|
456 |
+
<docblock line="922">
|
457 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
458 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
459 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
460 |
+
<tag line="922" name="since" description="0.1"/>
|
461 |
+
<tag line="922" name="param" description="post ID of attachment" type="int" variable="$ID">
|
462 |
<type by_reference="false">int</type>
|
463 |
</tag>
|
464 |
+
<tag line="922" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
|
465 |
<type by_reference="false">int</type>
|
466 |
</tag>
|
467 |
+
<tag line="922" name="return" description="Reference information; see $references array comments" type="array">
|
468 |
<type by_reference="false">array</type>
|
469 |
</tag>
|
470 |
</docblock>
|
471 |
+
<argument line="935">
|
472 |
<name>$ID</name>
|
473 |
<default><![CDATA[]]></default>
|
474 |
<type/>
|
475 |
</argument>
|
476 |
+
<argument line="935">
|
477 |
<name>$parent</name>
|
478 |
<default><![CDATA[]]></default>
|
479 |
<type/>
|
480 |
</argument>
|
481 |
</method>
|
482 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1210" package="Media Library Assistant">
|
483 |
<name>mla_flush_mla_galleries</name>
|
484 |
<full_name>mla_flush_mla_galleries</full_name>
|
485 |
+
<docblock line="1201">
|
486 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
487 |
<long-description><![CDATA[]]></long-description>
|
488 |
+
<tag line="1201" name="since" description="1.00"/>
|
489 |
+
<tag line="1201" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
490 |
<type by_reference="false">string</type>
|
491 |
</tag>
|
492 |
+
<tag line="1201" name="return" description="" type="void">
|
493 |
<type by_reference="false">void</type>
|
494 |
</tag>
|
495 |
</docblock>
|
496 |
+
<argument line="1210">
|
497 |
<name>$option_name</name>
|
498 |
<default><![CDATA[]]></default>
|
499 |
<type/>
|
500 |
</argument>
|
501 |
</method>
|
502 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1234" package="Media Library Assistant">
|
503 |
<name>mla_save_post_action</name>
|
504 |
<full_name>mla_save_post_action</full_name>
|
505 |
+
<docblock line="1225">
|
506 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
507 |
<long-description><![CDATA[]]></long-description>
|
508 |
+
<tag line="1225" name="since" description="1.00"/>
|
509 |
+
<tag line="1225" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
|
510 |
<type by_reference="false">integer</type>
|
511 |
</tag>
|
512 |
+
<tag line="1225" name="return" description="" type="void">
|
513 |
<type by_reference="false">void</type>
|
514 |
</tag>
|
515 |
</docblock>
|
516 |
+
<argument line="1234">
|
517 |
<name>$post_id</name>
|
518 |
<default><![CDATA[]]></default>
|
519 |
<type/>
|
520 |
</argument>
|
521 |
</method>
|
522 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1251" package="Media Library Assistant">
|
523 |
<name>_build_mla_galleries</name>
|
524 |
<full_name>_build_mla_galleries</full_name>
|
525 |
+
<docblock line="1239">
|
526 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
527 |
<long-description><![CDATA[]]></long-description>
|
528 |
+
<tag line="1239" name="since" description="0.70"/>
|
529 |
+
<tag line="1239" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
530 |
<type by_reference="false">string</type>
|
531 |
</tag>
|
532 |
+
<tag line="1239" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
533 |
<type by_reference="false">array</type>
|
534 |
</tag>
|
535 |
+
<tag line="1239" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
|
536 |
<type by_reference="false">string</type>
|
537 |
</tag>
|
538 |
+
<tag line="1239" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
|
539 |
<type by_reference="false">boolean</type>
|
540 |
</tag>
|
541 |
+
<tag line="1239" name="return" description="true if the galleries array is not empty" type="boolean">
|
542 |
<type by_reference="false">boolean</type>
|
543 |
</tag>
|
544 |
</docblock>
|
545 |
+
<argument line="1251">
|
546 |
<name>$option_name</name>
|
547 |
<default><![CDATA[]]></default>
|
548 |
<type/>
|
549 |
</argument>
|
550 |
+
<argument line="1251">
|
551 |
<name>$galleries_array</name>
|
552 |
<default><![CDATA[]]></default>
|
553 |
<type/>
|
554 |
</argument>
|
555 |
+
<argument line="1251">
|
556 |
<name>$shortcode</name>
|
557 |
<default><![CDATA[]]></default>
|
558 |
<type/>
|
559 |
</argument>
|
560 |
+
<argument line="1251">
|
561 |
<name>$exclude_revisions</name>
|
562 |
<default><![CDATA[]]></default>
|
563 |
<type/>
|
564 |
</argument>
|
565 |
</method>
|
566 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1356" package="Media Library Assistant">
|
567 |
<name>_search_mla_galleries</name>
|
568 |
<full_name>_search_mla_galleries</full_name>
|
569 |
+
<docblock line="1345">
|
570 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
571 |
<long-description><![CDATA[]]></long-description>
|
572 |
+
<tag line="1345" name="since" description="0.70"/>
|
573 |
+
<tag line="1345" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
574 |
<type by_reference="false">array</type>
|
575 |
</tag>
|
576 |
+
<tag line="1345" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
|
577 |
<type by_reference="false">int</type>
|
578 |
</tag>
|
579 |
+
<tag line="1345" name="return" description="All posts/pages with one or more galleries that include the attachment. The array key is the parent_post ID; each entry contains post_title and post_type." type="array">
|
580 |
<type by_reference="false">array</type>
|
581 |
</tag>
|
582 |
</docblock>
|
583 |
+
<argument line="1356">
|
584 |
<name>$galleries_array</name>
|
585 |
<default><![CDATA[]]></default>
|
586 |
<type/>
|
587 |
</argument>
|
588 |
+
<argument line="1356">
|
589 |
<name>$attachment_id</name>
|
590 |
<default><![CDATA[]]></default>
|
591 |
<type/>
|
592 |
</argument>
|
593 |
</method>
|
594 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1382" package="Media Library Assistant">
|
595 |
+
<name>mla_exif_metadata_value</name>
|
596 |
+
<full_name>mla_exif_metadata_value</full_name>
|
597 |
+
<docblock line="1369">
|
598 |
+
<description><![CDATA[Parse one EXIF metadata field]]></description>
|
599 |
+
<long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.
|
600 |
+
Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
|
601 |
+
<tag line="1369" name="since" description="1.13"/>
|
602 |
+
<tag line="1369" name="param" description="field name" type="string" variable="$key">
|
603 |
+
<type by_reference="false">string</type>
|
604 |
+
</tag>
|
605 |
+
<tag line="1369" name="param" description="metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays" type="string" variable="$image_metadata">
|
606 |
+
<type by_reference="false">string</type>
|
607 |
+
</tag>
|
608 |
+
<tag line="1369" name="return" description="string representation of metadata value or an empty string" type="string">
|
609 |
+
<type by_reference="false">string</type>
|
610 |
+
</tag>
|
611 |
+
</docblock>
|
612 |
+
<argument line="1382">
|
613 |
+
<name>$key</name>
|
614 |
+
<default><![CDATA[]]></default>
|
615 |
+
<type/>
|
616 |
+
</argument>
|
617 |
+
<argument line="1382">
|
618 |
+
<name>$image_metadata</name>
|
619 |
+
<default><![CDATA[]]></default>
|
620 |
+
<type/>
|
621 |
+
</argument>
|
622 |
+
</method>
|
623 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1412" package="Media Library Assistant">
|
624 |
<name>mla_fetch_attachment_image_metadata</name>
|
625 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
626 |
+
<docblock line="1400">
|
627 |
<description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
|
628 |
<long-description><![CDATA[<p>Returns</p>]]></long-description>
|
629 |
+
<tag line="1400" name="since" description="0.90"/>
|
630 |
+
<tag line="1400" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
631 |
<type by_reference="false">int</type>
|
632 |
</tag>
|
633 |
+
<tag line="1400" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
|
634 |
<type by_reference="false">string</type>
|
635 |
</tag>
|
636 |
+
<tag line="1400" name="return" description="Meta data variables" type="array">
|
637 |
<type by_reference="false">array</type>
|
638 |
</tag>
|
639 |
</docblock>
|
640 |
+
<argument line="1412">
|
641 |
<name>$post_id</name>
|
642 |
<default><![CDATA[]]></default>
|
643 |
<type/>
|
644 |
</argument>
|
645 |
+
<argument line="1412">
|
646 |
<name>$path</name>
|
647 |
<default><![CDATA['']]></default>
|
648 |
<type/>
|
649 |
</argument>
|
650 |
</method>
|
651 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1478" package="Media Library Assistant">
|
652 |
<name>mla_update_single_item</name>
|
653 |
<full_name>mla_update_single_item</full_name>
|
654 |
+
<docblock line="1465">
|
655 |
<description><![CDATA[Update a single item; change the meta data
|
656 |
for a single attachment.]]></description>
|
657 |
<long-description><![CDATA[]]></long-description>
|
658 |
+
<tag line="1465" name="since" description="0.1"/>
|
659 |
+
<tag line="1465" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
660 |
<type by_reference="false">int</type>
|
661 |
</tag>
|
662 |
+
<tag line="1465" name="param" description="Field name => value pairs" type="array" variable="$new_data">
|
663 |
<type by_reference="false">array</type>
|
664 |
</tag>
|
665 |
+
<tag line="1465" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
|
666 |
<type by_reference="false">array</type>
|
667 |
</tag>
|
668 |
+
<tag line="1465" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
|
669 |
<type by_reference="false">array</type>
|
670 |
</tag>
|
671 |
+
<tag line="1465" name="return" description="success/failure message and NULL content" type="array">
|
672 |
<type by_reference="false">array</type>
|
673 |
</tag>
|
674 |
</docblock>
|
675 |
+
<argument line="1478">
|
676 |
<name>$post_id</name>
|
677 |
<default><![CDATA[]]></default>
|
678 |
<type/>
|
679 |
</argument>
|
680 |
+
<argument line="1478">
|
681 |
<name>$new_data</name>
|
682 |
<default><![CDATA[]]></default>
|
683 |
<type/>
|
684 |
</argument>
|
685 |
+
<argument line="1478">
|
686 |
<name>$tax_input</name>
|
687 |
<default><![CDATA[NULL]]></default>
|
688 |
<type/>
|
689 |
</argument>
|
690 |
+
<argument line="1478">
|
691 |
<name>$tax_actions</name>
|
692 |
<default><![CDATA[NULL]]></default>
|
693 |
<type/>
|
694 |
</argument>
|
695 |
</method>
|
696 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1700" package="Media Library Assistant">
|
697 |
<name>_remove_tags</name>
|
698 |
<full_name>_remove_tags</full_name>
|
699 |
+
<docblock line="1689">
|
700 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
701 |
<long-description><![CDATA[]]></long-description>
|
702 |
+
<tag line="1689" name="since" description="0.40"/>
|
703 |
+
<tag line="1689" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
|
704 |
<type by_reference="false">array</type>
|
705 |
</tag>
|
706 |
+
<tag line="1689" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
|
707 |
<type by_reference="false">array</type>
|
708 |
</tag>
|
709 |
+
<tag line="1689" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
|
710 |
<type by_reference="false">object</type>
|
711 |
</tag>
|
712 |
+
<tag line="1689" name="return" description="Term ids of the surviving tags" type="array">
|
713 |
<type by_reference="false">array</type>
|
714 |
</tag>
|
715 |
</docblock>
|
716 |
+
<argument line="1700">
|
717 |
<name>$terms_before</name>
|
718 |
<default><![CDATA[]]></default>
|
719 |
<type/>
|
720 |
</argument>
|
721 |
+
<argument line="1700">
|
722 |
<name>$tags</name>
|
723 |
<default><![CDATA[]]></default>
|
724 |
<type/>
|
725 |
</argument>
|
726 |
+
<argument line="1700">
|
727 |
<name>$taxonomy_obj</name>
|
728 |
<default><![CDATA[]]></default>
|
729 |
<type/>
|
730 |
</argument>
|
731 |
</method>
|
732 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1744" package="Media Library Assistant">
|
733 |
<name>_hex_dump</name>
|
734 |
<full_name>_hex_dump</full_name>
|
735 |
+
<docblock line="1733">
|
736 |
<description><![CDATA[Format printable version of binary data]]></description>
|
737 |
<long-description><![CDATA[]]></long-description>
|
738 |
+
<tag line="1733" name="since" description="0.90"/>
|
739 |
+
<tag line="1733" name="param" description="Binary data" type="string" variable="$data">
|
740 |
<type by_reference="false">string</type>
|
741 |
</tag>
|
742 |
+
<tag line="1733" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
|
743 |
<type by_reference="false">integer</type>
|
744 |
</tag>
|
745 |
+
<tag line="1733" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
|
746 |
<type by_reference="false">\intger</type>
|
747 |
</tag>
|
748 |
+
<tag line="1733" name="return" description="Printable representation of $data" type="string">
|
749 |
<type by_reference="false">string</type>
|
750 |
</tag>
|
751 |
</docblock>
|
752 |
+
<argument line="1744">
|
753 |
<name>$data</name>
|
754 |
<default><![CDATA[]]></default>
|
755 |
<type/>
|
756 |
</argument>
|
757 |
+
<argument line="1744">
|
758 |
<name>$limit</name>
|
759 |
<default><![CDATA[0]]></default>
|
760 |
<type/>
|
761 |
</argument>
|
762 |
+
<argument line="1744">
|
763 |
<name>$bytes_per_row</name>
|
764 |
<default><![CDATA[16]]></default>
|
765 |
<type/>
|
1071 |
</method>
|
1072 |
</class>
|
1073 |
</file>
|
1074 |
+
<file path="includes\class-mla-list-table.php" hash="055d7201b17048c3b920efe5455b681b" package="Media Library Assistant">
|
1075 |
<docblock line="2">
|
1076 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
1077 |
<long-description><![CDATA[]]></long-description>
|
1342 |
<type/>
|
1343 |
</argument>
|
1344 |
</method>
|
1345 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="475" package="Media Library Assistant">
|
1346 |
<name>column_cb</name>
|
1347 |
<full_name>column_cb</full_name>
|
1348 |
+
<docblock line="466">
|
1349 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
1350 |
<long-description><![CDATA[<p>The 'cb' column
|
1351 |
is given special treatment when columns are processed.</p>]]></long-description>
|
1352 |
+
<tag line="466" name="since" description="0.1"/>
|
1353 |
+
<tag line="466" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1354 |
<type by_reference="false">array</type>
|
1355 |
</tag>
|
1356 |
+
<tag line="466" name="return" description="HTML markup to be placed inside the column" type="string">
|
1357 |
<type by_reference="false">string</type>
|
1358 |
</tag>
|
1359 |
</docblock>
|
1360 |
+
<argument line="475">
|
1361 |
<name>$item</name>
|
1362 |
<default><![CDATA[]]></default>
|
1363 |
<type/>
|
1364 |
</argument>
|
1365 |
</method>
|
1366 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="491" package="Media Library Assistant">
|
1367 |
<name>column_icon</name>
|
1368 |
<full_name>column_icon</full_name>
|
1369 |
+
<docblock line="483">
|
1370 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1371 |
<long-description><![CDATA[]]></long-description>
|
1372 |
+
<tag line="483" name="since" description="0.1"/>
|
1373 |
+
<tag line="483" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1374 |
<type by_reference="false">array</type>
|
1375 |
</tag>
|
1376 |
+
<tag line="483" name="return" description="HTML markup to be placed inside the column" type="string">
|
1377 |
<type by_reference="false">string</type>
|
1378 |
</tag>
|
1379 |
</docblock>
|
1380 |
+
<argument line="491">
|
1381 |
<name>$item</name>
|
1382 |
<default><![CDATA[]]></default>
|
1383 |
<type/>
|
1384 |
</argument>
|
1385 |
</method>
|
1386 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="507" package="Media Library Assistant">
|
1387 |
<name>_build_rollover_actions</name>
|
1388 |
<full_name>_build_rollover_actions</full_name>
|
1389 |
+
<docblock line="496">
|
1390 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
1391 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
1392 |
<long-description><![CDATA[]]></long-description>
|
1393 |
+
<tag line="496" name="since" description="0.1"/>
|
1394 |
+
<tag line="496" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
1395 |
<type by_reference="false">object</type>
|
1396 |
</tag>
|
1397 |
+
<tag line="496" name="param" description="Current column name" type="string" variable="$column">
|
1398 |
<type by_reference="false">string</type>
|
1399 |
</tag>
|
1400 |
+
<tag line="496" name="return" description="Names and URLs of row-level actions" type="array">
|
1401 |
<type by_reference="false">array</type>
|
1402 |
</tag>
|
1403 |
</docblock>
|
1404 |
+
<argument line="507">
|
1405 |
<name>$item</name>
|
1406 |
<default><![CDATA[]]></default>
|
1407 |
<type/>
|
1408 |
</argument>
|
1409 |
+
<argument line="507">
|
1410 |
<name>$column</name>
|
1411 |
<default><![CDATA[]]></default>
|
1412 |
<type/>
|
1413 |
</argument>
|
1414 |
</method>
|
1415 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="585" package="Media Library Assistant">
|
1416 |
<name>_build_inline_data</name>
|
1417 |
<full_name>_build_inline_data</full_name>
|
1418 |
+
<docblock line="576">
|
1419 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
1420 |
<long-description><![CDATA[]]></long-description>
|
1421 |
+
<tag line="576" name="since" description="0.20"/>
|
1422 |
+
<tag line="576" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
1423 |
<type by_reference="false">object</type>
|
1424 |
</tag>
|
1425 |
+
<tag line="576" name="return" description="HTML <div> with row data" type="string">
|
1426 |
<type by_reference="false">string</type>
|
1427 |
</tag>
|
1428 |
</docblock>
|
1429 |
+
<argument line="585">
|
1430 |
<name>$item</name>
|
1431 |
<default><![CDATA[]]></default>
|
1432 |
<type/>
|
1433 |
</argument>
|
1434 |
</method>
|
1435 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="633" package="Media Library Assistant">
|
1436 |
<name>column_ID_parent</name>
|
1437 |
<full_name>column_ID_parent</full_name>
|
1438 |
+
<docblock line="625">
|
1439 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1440 |
<long-description><![CDATA[]]></long-description>
|
1441 |
+
<tag line="625" name="since" description="0.1"/>
|
1442 |
+
<tag line="625" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1443 |
<type by_reference="false">array</type>
|
1444 |
</tag>
|
1445 |
+
<tag line="625" name="return" description="HTML markup to be placed inside the column" type="string">
|
1446 |
<type by_reference="false">string</type>
|
1447 |
</tag>
|
1448 |
</docblock>
|
1449 |
+
<argument line="633">
|
1450 |
<name>$item</name>
|
1451 |
<default><![CDATA[]]></default>
|
1452 |
<type/>
|
1453 |
</argument>
|
1454 |
</method>
|
1455 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="665" package="Media Library Assistant">
|
1456 |
<name>column_title_name</name>
|
1457 |
<full_name>column_title_name</full_name>
|
1458 |
+
<docblock line="657">
|
1459 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1460 |
<long-description><![CDATA[]]></long-description>
|
1461 |
+
<tag line="657" name="since" description="0.1"/>
|
1462 |
+
<tag line="657" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1463 |
<type by_reference="false">array</type>
|
1464 |
</tag>
|
1465 |
+
<tag line="657" name="return" description="HTML markup to be placed inside the column" type="string">
|
1466 |
<type by_reference="false">string</type>
|
1467 |
</tag>
|
1468 |
</docblock>
|
1469 |
+
<argument line="665">
|
1470 |
<name>$item</name>
|
1471 |
<default><![CDATA[]]></default>
|
1472 |
<type/>
|
1473 |
</argument>
|
1474 |
</method>
|
1475 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="688" package="Media Library Assistant">
|
1476 |
<name>column_post_title</name>
|
1477 |
<full_name>column_post_title</full_name>
|
1478 |
+
<docblock line="680">
|
1479 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1480 |
<long-description><![CDATA[]]></long-description>
|
1481 |
+
<tag line="680" name="since" description="0.1"/>
|
1482 |
+
<tag line="680" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1483 |
<type by_reference="false">array</type>
|
1484 |
</tag>
|
1485 |
+
<tag line="680" name="return" description="HTML markup to be placed inside the column" type="string">
|
1486 |
<type by_reference="false">string</type>
|
1487 |
</tag>
|
1488 |
</docblock>
|
1489 |
+
<argument line="688">
|
1490 |
<name>$item</name>
|
1491 |
<default><![CDATA[]]></default>
|
1492 |
<type/>
|
1493 |
</argument>
|
1494 |
</method>
|
1495 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="706" package="Media Library Assistant">
|
1496 |
<name>column_post_name</name>
|
1497 |
<full_name>column_post_name</full_name>
|
1498 |
+
<docblock line="698">
|
1499 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1500 |
<long-description><![CDATA[]]></long-description>
|
1501 |
+
<tag line="698" name="since" description="0.1"/>
|
1502 |
+
<tag line="698" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1503 |
<type by_reference="false">array</type>
|
1504 |
</tag>
|
1505 |
+
<tag line="698" name="return" description="HTML markup to be placed inside the column" type="string">
|
1506 |
<type by_reference="false">string</type>
|
1507 |
</tag>
|
1508 |
</docblock>
|
1509 |
+
<argument line="706">
|
1510 |
<name>$item</name>
|
1511 |
<default><![CDATA[]]></default>
|
1512 |
<type/>
|
1513 |
</argument>
|
1514 |
</method>
|
1515 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="724" package="Media Library Assistant">
|
1516 |
<name>column_parent</name>
|
1517 |
<full_name>column_parent</full_name>
|
1518 |
+
<docblock line="716">
|
1519 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1520 |
<long-description><![CDATA[]]></long-description>
|
1521 |
+
<tag line="716" name="since" description="0.1"/>
|
1522 |
+
<tag line="716" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1523 |
<type by_reference="false">array</type>
|
1524 |
</tag>
|
1525 |
+
<tag line="716" name="return" description="HTML markup to be placed inside the column" type="string">
|
1526 |
<type by_reference="false">string</type>
|
1527 |
</tag>
|
1528 |
</docblock>
|
1529 |
+
<argument line="724">
|
1530 |
<name>$item</name>
|
1531 |
<default><![CDATA[]]></default>
|
1532 |
<type/>
|
1533 |
</argument>
|
1534 |
</method>
|
1535 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="749" package="Media Library Assistant">
|
1536 |
<name>column_menu_order</name>
|
1537 |
<full_name>column_menu_order</full_name>
|
1538 |
+
<docblock line="741">
|
1539 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1540 |
<long-description><![CDATA[]]></long-description>
|
1541 |
+
<tag line="741" name="since" description="0.60"/>
|
1542 |
+
<tag line="741" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1543 |
<type by_reference="false">array</type>
|
1544 |
</tag>
|
1545 |
+
<tag line="741" name="return" description="HTML markup to be placed inside the column" type="string">
|
1546 |
<type by_reference="false">string</type>
|
1547 |
</tag>
|
1548 |
</docblock>
|
1549 |
+
<argument line="749">
|
1550 |
<name>$item</name>
|
1551 |
<default><![CDATA[]]></default>
|
1552 |
<type/>
|
1553 |
</argument>
|
1554 |
</method>
|
1555 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="761" package="Media Library Assistant">
|
1556 |
<name>column_featured</name>
|
1557 |
<full_name>column_featured</full_name>
|
1558 |
+
<docblock line="753">
|
1559 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1560 |
<long-description><![CDATA[]]></long-description>
|
1561 |
+
<tag line="753" name="since" description="0.1"/>
|
1562 |
+
<tag line="753" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1563 |
<type by_reference="false">array</type>
|
1564 |
</tag>
|
1565 |
+
<tag line="753" name="return" description="HTML markup to be placed inside the column" type="string">
|
1566 |
<type by_reference="false">string</type>
|
1567 |
</tag>
|
1568 |
</docblock>
|
1569 |
+
<argument line="761">
|
1570 |
<name>$item</name>
|
1571 |
<default><![CDATA[]]></default>
|
1572 |
<type/>
|
1573 |
</argument>
|
1574 |
</method>
|
1575 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="792" package="Media Library Assistant">
|
1576 |
<name>column_inserted</name>
|
1577 |
<full_name>column_inserted</full_name>
|
1578 |
+
<docblock line="784">
|
1579 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1580 |
<long-description><![CDATA[]]></long-description>
|
1581 |
+
<tag line="784" name="since" description="0.1"/>
|
1582 |
+
<tag line="784" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1583 |
<type by_reference="false">array</type>
|
1584 |
</tag>
|
1585 |
+
<tag line="784" name="return" description="HTML markup to be placed inside the column" type="string">
|
1586 |
<type by_reference="false">string</type>
|
1587 |
</tag>
|
1588 |
</docblock>
|
1589 |
+
<argument line="792">
|
1590 |
<name>$item</name>
|
1591 |
<default><![CDATA[]]></default>
|
1592 |
<type/>
|
1593 |
</argument>
|
1594 |
</method>
|
1595 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="827" package="Media Library Assistant">
|
1596 |
<name>column_galleries</name>
|
1597 |
<full_name>column_galleries</full_name>
|
1598 |
+
<docblock line="819">
|
1599 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1600 |
<long-description><![CDATA[]]></long-description>
|
1601 |
+
<tag line="819" name="since" description="0.70"/>
|
1602 |
+
<tag line="819" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1603 |
<type by_reference="false">array</type>
|
1604 |
</tag>
|
1605 |
+
<tag line="819" name="return" description="HTML markup to be placed inside the column" type="string">
|
1606 |
<type by_reference="false">string</type>
|
1607 |
</tag>
|
1608 |
</docblock>
|
1609 |
+
<argument line="827">
|
1610 |
<name>$item</name>
|
1611 |
<default><![CDATA[]]></default>
|
1612 |
<type/>
|
1613 |
</argument>
|
1614 |
</method>
|
1615 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="858" package="Media Library Assistant">
|
1616 |
<name>column_mla_galleries</name>
|
1617 |
<full_name>column_mla_galleries</full_name>
|
1618 |
+
<docblock line="850">
|
1619 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1620 |
<long-description><![CDATA[]]></long-description>
|
1621 |
+
<tag line="850" name="since" description="0.70"/>
|
1622 |
+
<tag line="850" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1623 |
<type by_reference="false">array</type>
|
1624 |
</tag>
|
1625 |
+
<tag line="850" name="return" description="HTML markup to be placed inside the column" type="string">
|
1626 |
<type by_reference="false">string</type>
|
1627 |
</tag>
|
1628 |
</docblock>
|
1629 |
+
<argument line="858">
|
1630 |
<name>$item</name>
|
1631 |
<default><![CDATA[]]></default>
|
1632 |
<type/>
|
1633 |
</argument>
|
1634 |
</method>
|
1635 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="889" package="Media Library Assistant">
|
1636 |
<name>column_alt_text</name>
|
1637 |
<full_name>column_alt_text</full_name>
|
1638 |
+
<docblock line="881">
|
1639 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1640 |
<long-description><![CDATA[]]></long-description>
|
1641 |
+
<tag line="881" name="since" description="0.1"/>
|
1642 |
+
<tag line="881" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1643 |
<type by_reference="false">array</type>
|
1644 |
</tag>
|
1645 |
+
<tag line="881" name="return" description="HTML markup to be placed inside the column" type="string">
|
1646 |
<type by_reference="false">string</type>
|
1647 |
</tag>
|
1648 |
</docblock>
|
1649 |
+
<argument line="889">
|
1650 |
<name>$item</name>
|
1651 |
<default><![CDATA[]]></default>
|
1652 |
<type/>
|
1653 |
</argument>
|
1654 |
</method>
|
1655 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="909" package="Media Library Assistant">
|
1656 |
<name>column_caption</name>
|
1657 |
<full_name>column_caption</full_name>
|
1658 |
+
<docblock line="901">
|
1659 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1660 |
<long-description><![CDATA[]]></long-description>
|
1661 |
+
<tag line="901" name="since" description="0.1"/>
|
1662 |
+
<tag line="901" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1663 |
<type by_reference="false">array</type>
|
1664 |
</tag>
|
1665 |
+
<tag line="901" name="return" description="HTML markup to be placed inside the column" type="string">
|
1666 |
<type by_reference="false">string</type>
|
1667 |
</tag>
|
1668 |
</docblock>
|
1669 |
+
<argument line="909">
|
1670 |
<name>$item</name>
|
1671 |
<default><![CDATA[]]></default>
|
1672 |
<type/>
|
1673 |
</argument>
|
1674 |
</method>
|
1675 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="921" package="Media Library Assistant">
|
1676 |
<name>column_description</name>
|
1677 |
<full_name>column_description</full_name>
|
1678 |
+
<docblock line="913">
|
1679 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1680 |
<long-description><![CDATA[]]></long-description>
|
1681 |
+
<tag line="913" name="since" description="0.1"/>
|
1682 |
+
<tag line="913" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1683 |
<type by_reference="false">array</type>
|
1684 |
</tag>
|
1685 |
+
<tag line="913" name="return" description="HTML markup to be placed inside the column" type="string">
|
1686 |
<type by_reference="false">string</type>
|
1687 |
</tag>
|
1688 |
</docblock>
|
1689 |
+
<argument line="921">
|
1690 |
<name>$item</name>
|
1691 |
<default><![CDATA[]]></default>
|
1692 |
<type/>
|
1693 |
</argument>
|
1694 |
</method>
|
1695 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="933" package="Media Library Assistant">
|
1696 |
<name>column_post_mime_type</name>
|
1697 |
<full_name>column_post_mime_type</full_name>
|
1698 |
+
<docblock line="925">
|
1699 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1700 |
<long-description><![CDATA[]]></long-description>
|
1701 |
+
<tag line="925" name="since" description="0.30"/>
|
1702 |
+
<tag line="925" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1703 |
<type by_reference="false">array</type>
|
1704 |
</tag>
|
1705 |
+
<tag line="925" name="return" description="HTML markup to be placed inside the column" type="string">
|
1706 |
<type by_reference="false">string</type>
|
1707 |
</tag>
|
1708 |
</docblock>
|
1709 |
+
<argument line="933">
|
1710 |
<name>$item</name>
|
1711 |
<default><![CDATA[]]></default>
|
1712 |
<type/>
|
1713 |
</argument>
|
1714 |
</method>
|
1715 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="945" package="Media Library Assistant">
|
1716 |
<name>column_base_file</name>
|
1717 |
<full_name>column_base_file</full_name>
|
1718 |
+
<docblock line="937">
|
1719 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1720 |
<long-description><![CDATA[]]></long-description>
|
1721 |
+
<tag line="937" name="since" description="0.1"/>
|
1722 |
+
<tag line="937" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1723 |
<type by_reference="false">array</type>
|
1724 |
</tag>
|
1725 |
+
<tag line="937" name="return" description="HTML markup to be placed inside the column" type="string">
|
1726 |
<type by_reference="false">string</type>
|
1727 |
</tag>
|
1728 |
</docblock>
|
1729 |
+
<argument line="945">
|
1730 |
<name>$item</name>
|
1731 |
<default><![CDATA[]]></default>
|
1732 |
<type/>
|
1733 |
</argument>
|
1734 |
</method>
|
1735 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="957" package="Media Library Assistant">
|
1736 |
<name>column_date</name>
|
1737 |
<full_name>column_date</full_name>
|
1738 |
+
<docblock line="949">
|
1739 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1740 |
<long-description><![CDATA[]]></long-description>
|
1741 |
+
<tag line="949" name="since" description="0.1"/>
|
1742 |
+
<tag line="949" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1743 |
<type by_reference="false">array</type>
|
1744 |
</tag>
|
1745 |
+
<tag line="949" name="return" description="HTML markup to be placed inside the column" type="string">
|
1746 |
<type by_reference="false">string</type>
|
1747 |
</tag>
|
1748 |
</docblock>
|
1749 |
+
<argument line="957">
|
1750 |
<name>$item</name>
|
1751 |
<default><![CDATA[]]></default>
|
1752 |
<type/>
|
1753 |
</argument>
|
1754 |
</method>
|
1755 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="986" package="Media Library Assistant">
|
1756 |
<name>column_modified</name>
|
1757 |
<full_name>column_modified</full_name>
|
1758 |
+
<docblock line="978">
|
1759 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1760 |
<long-description><![CDATA[]]></long-description>
|
1761 |
+
<tag line="978" name="since" description="0.30"/>
|
1762 |
+
<tag line="978" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1763 |
<type by_reference="false">array</type>
|
1764 |
</tag>
|
1765 |
+
<tag line="978" name="return" description="HTML markup to be placed inside the column" type="string">
|
1766 |
<type by_reference="false">string</type>
|
1767 |
</tag>
|
1768 |
</docblock>
|
1769 |
+
<argument line="986">
|
1770 |
<name>$item</name>
|
1771 |
<default><![CDATA[]]></default>
|
1772 |
<type/>
|
1773 |
</argument>
|
1774 |
</method>
|
1775 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1015" package="Media Library Assistant">
|
1776 |
<name>column_author</name>
|
1777 |
<full_name>column_author</full_name>
|
1778 |
+
<docblock line="1007">
|
1779 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1780 |
<long-description><![CDATA[]]></long-description>
|
1781 |
+
<tag line="1007" name="since" description="0.30"/>
|
1782 |
+
<tag line="1007" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1783 |
<type by_reference="false">array</type>
|
1784 |
</tag>
|
1785 |
+
<tag line="1007" name="return" description="HTML markup to be placed inside the column" type="string">
|
1786 |
<type by_reference="false">string</type>
|
1787 |
</tag>
|
1788 |
</docblock>
|
1789 |
+
<argument line="1015">
|
1790 |
<name>$item</name>
|
1791 |
<default><![CDATA[]]></default>
|
1792 |
<type/>
|
1793 |
</argument>
|
1794 |
</method>
|
1795 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1036" package="Media Library Assistant">
|
1796 |
<name>column_attached_to</name>
|
1797 |
<full_name>column_attached_to</full_name>
|
1798 |
+
<docblock line="1028">
|
1799 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
1800 |
<long-description><![CDATA[]]></long-description>
|
1801 |
+
<tag line="1028" name="since" description="0.1"/>
|
1802 |
+
<tag line="1028" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
1803 |
<type by_reference="false">array</type>
|
1804 |
</tag>
|
1805 |
+
<tag line="1028" name="return" description="HTML markup to be placed inside the column" type="string">
|
1806 |
<type by_reference="false">string</type>
|
1807 |
</tag>
|
1808 |
</docblock>
|
1809 |
+
<argument line="1036">
|
1810 |
<name>$item</name>
|
1811 |
<default><![CDATA[]]></default>
|
1812 |
<type/>
|
1813 |
</argument>
|
1814 |
</method>
|
1815 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1065" package="Media Library Assistant">
|
1816 |
<name>get_columns</name>
|
1817 |
<full_name>get_columns</full_name>
|
1818 |
+
<docblock line="1058">
|
1819 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
1820 |
<long-description><![CDATA[]]></long-description>
|
1821 |
+
<tag line="1058" name="since" description="0.1"/>
|
1822 |
+
<tag line="1058" name="return" description="Column information: 'slugs'=>'Visible Titles'" type="array">
|
1823 |
<type by_reference="false">array</type>
|
1824 |
</tag>
|
1825 |
</docblock>
|
1826 |
</method>
|
1827 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1077" package="Media Library Assistant">
|
1828 |
<name>get_hidden_columns</name>
|
1829 |
<full_name>get_hidden_columns</full_name>
|
1830 |
+
<docblock line="1069">
|
1831 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
1832 |
from default values if the option is not set]]></description>
|
1833 |
<long-description><![CDATA[]]></long-description>
|
1834 |
+
<tag line="1069" name="since" description="0.1"/>
|
1835 |
+
<tag line="1069" name="return" description="Column information,e.g., array(0 => 'ID_parent, 1 => 'title_name')" type="array">
|
1836 |
<type by_reference="false">array</type>
|
1837 |
</tag>
|
1838 |
</docblock>
|
1839 |
</method>
|
1840 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1097" package="Media Library Assistant">
|
1841 |
<name>get_sortable_columns</name>
|
1842 |
<full_name>get_sortable_columns</full_name>
|
1843 |
+
<docblock line="1087">
|
1844 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
1845 |
and the value is db column to sort by.]]></description>
|
1846 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
1847 |
if set.</p>]]></long-description>
|
1848 |
+
<tag line="1087" name="since" description="0.1"/>
|
1849 |
+
<tag line="1087" name="return" description="Sortable column information,e.g., 'slugs'=>array('data_values',boolean)" type="array">
|
1850 |
<type by_reference="false">array</type>
|
1851 |
</tag>
|
1852 |
</docblock>
|
1853 |
</method>
|
1854 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
|
1855 |
<name>get_views</name>
|
1856 |
<full_name>get_views</full_name>
|
1857 |
+
<docblock line="1116">
|
1858 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
1859 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
1860 |
+
<tag line="1116" name="since" description="0.1"/>
|
1861 |
+
<tag line="1116" name="return" description="View information,e.g., array ( id => link )" type="array">
|
1862 |
<type by_reference="false">array</type>
|
1863 |
</tag>
|
1864 |
</docblock>
|
1865 |
</method>
|
1866 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1199" package="Media Library Assistant">
|
1867 |
<name>get_bulk_actions</name>
|
1868 |
<full_name>get_bulk_actions</full_name>
|
1869 |
+
<docblock line="1191">
|
1870 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
1871 |
of bulk actions available on this table.]]></description>
|
1872 |
<long-description><![CDATA[]]></long-description>
|
1873 |
+
<tag line="1191" name="since" description="0.1"/>
|
1874 |
+
<tag line="1191" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
1875 |
<type by_reference="false">array</type>
|
1876 |
</tag>
|
1877 |
</docblock>
|
1878 |
</method>
|
1879 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1230" package="Media Library Assistant">
|
1880 |
<name>extra_tablenav</name>
|
1881 |
<full_name>extra_tablenav</full_name>
|
1882 |
+
<docblock line="1219">
|
1883 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
1884 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
1885 |
+
<tag line="1219" name="since" description="0.1"/>
|
1886 |
+
<tag line="1219" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
|
1887 |
<type by_reference="false">string</type>
|
1888 |
</tag>
|
1889 |
+
<tag line="1219" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
1890 |
<type by_reference="false">array</type>
|
1891 |
</tag>
|
1892 |
</docblock>
|
1893 |
+
<argument line="1230">
|
1894 |
<name>$which</name>
|
1895 |
<default><![CDATA[]]></default>
|
1896 |
<type/>
|
1897 |
</argument>
|
1898 |
</method>
|
1899 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1290" package="Media Library Assistant">
|
1900 |
<name>prepare_items</name>
|
1901 |
<full_name>prepare_items</full_name>
|
1902 |
+
<docblock line="1278">
|
1903 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
1904 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
1905 |
be used to query the database, sort and filter the data, and generally
|
1906 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
1907 |
$this->set_pagination_args().</p>]]></long-description>
|
1908 |
+
<tag line="1278" name="since" description="0.1"/>
|
1909 |
+
<tag line="1278" name="return" description="" type="void">
|
1910 |
<type by_reference="false">void</type>
|
1911 |
</tag>
|
1912 |
</docblock>
|
1913 |
</method>
|
1914 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1336" package="Media Library Assistant">
|
1915 |
<name>single_row</name>
|
1916 |
<full_name>single_row</full_name>
|
1917 |
+
<docblock line="1327">
|
1918 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
1919 |
<long-description><![CDATA[]]></long-description>
|
1920 |
+
<tag line="1327" name="since" description=".20"/>
|
1921 |
+
<tag line="1327" name="param" description="the current item" type="object" variable="$item">
|
1922 |
<type by_reference="false">object</type>
|
1923 |
</tag>
|
1924 |
+
<tag line="1327" name="return" description="Echoes the row HTML" type="void">
|
1925 |
<type by_reference="false">void</type>
|
1926 |
</tag>
|
1927 |
</docblock>
|
1928 |
+
<argument line="1336">
|
1929 |
<name>$item</name>
|
1930 |
<default><![CDATA[]]></default>
|
1931 |
<type/>
|
1933 |
</method>
|
1934 |
</class>
|
1935 |
</file>
|
1936 |
+
<file path="includes\class-mla-main.php" hash="669a4a4c8ed6a8f4e8288aa596b57739" package="Media Library Assistant">
|
1937 |
<docblock line="2">
|
1938 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
1939 |
<long-description><![CDATA[]]></long-description>
|
1970 |
<constant namespace="global" line="41" package="Media Library Assistant">
|
1971 |
<name>CURRENT_MLA_VERSION</name>
|
1972 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
1973 |
+
<value><![CDATA['1.13']]></value>
|
1974 |
<docblock line="34">
|
1975 |
<description><![CDATA[Current version number]]></description>
|
1976 |
<long-description><![CDATA[]]></long-description>
|
2072 |
</docblock>
|
2073 |
</constant>
|
2074 |
<constant namespace="global" line="113" package="Media Library Assistant">
|
2075 |
+
<name>JAVASCRIPT_MEDIA_POPUP_SLUG</name>
|
2076 |
+
<full_name>JAVASCRIPT_MEDIA_POPUP_SLUG</full_name>
|
2077 |
+
<value><![CDATA['mla-media-popup-scripts']]></value>
|
2078 |
+
<docblock line="106">
|
2079 |
+
<description><![CDATA[Slug for localizing and enqueueing JavaScript - Add Media and related dialogs]]></description>
|
2080 |
+
<long-description><![CDATA[]]></long-description>
|
2081 |
+
<tag line="106" name="since" description="1.13"/>
|
2082 |
+
<tag line="106" name="var" description="" type="string">
|
2083 |
+
<type by_reference="false">string</type>
|
2084 |
+
</tag>
|
2085 |
+
</docblock>
|
2086 |
+
</constant>
|
2087 |
+
<constant namespace="global" line="122" package="Media Library Assistant">
|
2088 |
+
<name>JAVASCRIPT_MEDIA_POPUP_OBJECT</name>
|
2089 |
+
<full_name>JAVASCRIPT_MEDIA_POPUP_OBJECT</full_name>
|
2090 |
+
<value><![CDATA['mla_media_popup_vars']]></value>
|
2091 |
+
<docblock line="115">
|
2092 |
+
<description><![CDATA[Object name for localizing JavaScript - Add Media and related dialogs]]></description>
|
2093 |
+
<long-description><![CDATA[]]></long-description>
|
2094 |
+
<tag line="115" name="since" description="1.13"/>
|
2095 |
+
<tag line="115" name="var" description="" type="string">
|
2096 |
+
<type by_reference="false">string</type>
|
2097 |
+
</tag>
|
2098 |
+
</docblock>
|
2099 |
+
</constant>
|
2100 |
+
<constant namespace="global" line="131" package="Media Library Assistant">
|
2101 |
<name>ADMIN_PAGE_SLUG</name>
|
2102 |
<full_name>ADMIN_PAGE_SLUG</full_name>
|
2103 |
<value><![CDATA['mla-menu']]></value>
|
2104 |
+
<docblock line="124">
|
2105 |
<description><![CDATA[Slug for adding plugin submenu]]></description>
|
2106 |
<long-description><![CDATA[]]></long-description>
|
2107 |
+
<tag line="124" name="since" description="0.1"/>
|
2108 |
+
<tag line="124" name="var" description="" type="string">
|
2109 |
<type by_reference="false">string</type>
|
2110 |
</tag>
|
2111 |
</docblock>
|
2112 |
</constant>
|
2113 |
+
<constant namespace="global" line="140" package="Media Library Assistant">
|
2114 |
<name>MLA_ADMIN_NONCE</name>
|
2115 |
<full_name>MLA_ADMIN_NONCE</full_name>
|
2116 |
<value><![CDATA['mla_admin']]></value>
|
2117 |
+
<docblock line="133">
|
2118 |
<description><![CDATA[Action name; uniquely identifies the nonce]]></description>
|
2119 |
<long-description><![CDATA[]]></long-description>
|
2120 |
+
<tag line="133" name="since" description="0.1"/>
|
2121 |
+
<tag line="133" name="var" description="" type="string">
|
2122 |
<type by_reference="false">string</type>
|
2123 |
</tag>
|
2124 |
</docblock>
|
2125 |
</constant>
|
2126 |
+
<constant namespace="global" line="149" package="Media Library Assistant">
|
2127 |
<name>MLA_ADMIN_SINGLE_DELETE</name>
|
2128 |
<full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
|
2129 |
<value><![CDATA['single_item_delete']]></value>
|
2130 |
+
<docblock line="142">
|
2131 |
<description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
|
2132 |
<long-description><![CDATA[]]></long-description>
|
2133 |
+
<tag line="142" name="since" description="0.1"/>
|
2134 |
+
<tag line="142" name="var" description="" type="string">
|
2135 |
<type by_reference="false">string</type>
|
2136 |
</tag>
|
2137 |
</docblock>
|
2138 |
</constant>
|
2139 |
+
<constant namespace="global" line="158" package="Media Library Assistant">
|
2140 |
<name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
|
2141 |
<full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
|
2142 |
<value><![CDATA['single_item_edit_display']]></value>
|
2143 |
+
<docblock line="151">
|
2144 |
<description><![CDATA[mla_admin_action value for displaying a single item]]></description>
|
2145 |
<long-description><![CDATA[]]></long-description>
|
2146 |
+
<tag line="151" name="since" description="0.1"/>
|
2147 |
+
<tag line="151" name="var" description="" type="string">
|
2148 |
<type by_reference="false">string</type>
|
2149 |
</tag>
|
2150 |
</docblock>
|
2151 |
</constant>
|
2152 |
+
<constant namespace="global" line="167" package="Media Library Assistant">
|
2153 |
<name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
|
2154 |
<full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
|
2155 |
<value><![CDATA['single_item_edit_update']]></value>
|
2156 |
+
<docblock line="160">
|
2157 |
<description><![CDATA[mla_admin_action value for updating a single item]]></description>
|
2158 |
<long-description><![CDATA[]]></long-description>
|
2159 |
+
<tag line="160" name="since" description="0.1"/>
|
2160 |
+
<tag line="160" name="var" description="" type="string">
|
2161 |
<type by_reference="false">string</type>
|
2162 |
</tag>
|
2163 |
</docblock>
|
2164 |
</constant>
|
2165 |
+
<constant namespace="global" line="176" package="Media Library Assistant">
|
2166 |
<name>MLA_ADMIN_SINGLE_RESTORE</name>
|
2167 |
<full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
|
2168 |
<value><![CDATA['single_item_restore']]></value>
|
2169 |
+
<docblock line="169">
|
2170 |
<description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
|
2171 |
<long-description><![CDATA[]]></long-description>
|
2172 |
+
<tag line="169" name="since" description="0.1"/>
|
2173 |
+
<tag line="169" name="var" description="" type="string">
|
2174 |
<type by_reference="false">string</type>
|
2175 |
</tag>
|
2176 |
</docblock>
|
2177 |
</constant>
|
2178 |
+
<constant namespace="global" line="185" package="Media Library Assistant">
|
2179 |
<name>MLA_ADMIN_SINGLE_TRASH</name>
|
2180 |
<full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
|
2181 |
<value><![CDATA['single_item_trash']]></value>
|
2182 |
+
<docblock line="178">
|
2183 |
<description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
|
2184 |
<long-description><![CDATA[]]></long-description>
|
2185 |
+
<tag line="178" name="since" description="0.1"/>
|
2186 |
+
<tag line="178" name="var" description="" type="string">
|
2187 |
<type by_reference="false">string</type>
|
2188 |
</tag>
|
2189 |
</docblock>
|
2190 |
</constant>
|
2191 |
+
<constant namespace="global" line="194" package="Media Library Assistant">
|
2192 |
<name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</name>
|
2193 |
<full_name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</full_name>
|
2194 |
<value><![CDATA['single_item_custom_field_map']]></value>
|
2195 |
+
<docblock line="187">
|
2196 |
<description><![CDATA[mla_admin_action value for mapping Custom Field metadata]]></description>
|
2197 |
<long-description><![CDATA[]]></long-description>
|
2198 |
+
<tag line="187" name="since" description="1.10"/>
|
2199 |
+
<tag line="187" name="var" description="" type="string">
|
2200 |
<type by_reference="false">string</type>
|
2201 |
</tag>
|
2202 |
</docblock>
|
2203 |
</constant>
|
2204 |
+
<constant namespace="global" line="203" package="Media Library Assistant">
|
2205 |
<name>MLA_ADMIN_SINGLE_MAP</name>
|
2206 |
<full_name>MLA_ADMIN_SINGLE_MAP</full_name>
|
2207 |
<value><![CDATA['single_item_map']]></value>
|
2208 |
+
<docblock line="196">
|
2209 |
<description><![CDATA[mla_admin_action value for mapping IPTC/EXIF metadata]]></description>
|
2210 |
<long-description><![CDATA[]]></long-description>
|
2211 |
+
<tag line="196" name="since" description="1.00"/>
|
2212 |
+
<tag line="196" name="var" description="" type="string">
|
2213 |
<type by_reference="false">string</type>
|
2214 |
</tag>
|
2215 |
</docblock>
|
2216 |
</constant>
|
2217 |
+
<property final="false" static="true" visibility="private" line="212" namespace="global" package="Media Library Assistant">
|
2218 |
<name>$page_hooks</name>
|
2219 |
<default><![CDATA[array()]]></default>
|
2220 |
+
<docblock line="205">
|
2221 |
<description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
|
2222 |
<long-description><![CDATA[]]></long-description>
|
2223 |
+
<tag line="205" name="since" description="0.1"/>
|
2224 |
+
<tag line="205" name="var" description="" type="array">
|
2225 |
<type by_reference="false">array</type>
|
2226 |
</tag>
|
2227 |
</docblock>
|
2228 |
</property>
|
2229 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="225" package="Media Library Assistant">
|
2230 |
<name>initialize</name>
|
2231 |
<full_name>initialize</full_name>
|
2232 |
+
<docblock line="214">
|
2233 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
2234 |
<long-description><![CDATA[<p>This function contains add_action and add_filter calls
|
2235 |
to set up the Ajax handlers, enqueue JavaScript and CSS files, and
|
2236 |
set up the Assistant submenu.</p>]]></long-description>
|
2237 |
+
<tag line="214" name="since" description="0.1"/>
|
2238 |
+
<tag line="214" name="return" description="" type="void">
|
2239 |
<type by_reference="false">void</type>
|
2240 |
</tag>
|
2241 |
</docblock>
|
2242 |
</method>
|
2243 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="244" package="Media Library Assistant">
|
2244 |
<name>mla_admin_init_action</name>
|
2245 |
<full_name>mla_admin_init_action</full_name>
|
2246 |
+
<docblock line="237">
|
2247 |
<description><![CDATA[Load the plugin's Ajax handler or process Edit Media update actions]]></description>
|
2248 |
<long-description><![CDATA[]]></long-description>
|
2249 |
+
<tag line="237" name="since" description="0.20"/>
|
2250 |
+
<tag line="237" name="return" description="" type="void">
|
2251 |
<type by_reference="false">void</type>
|
2252 |
</tag>
|
2253 |
</docblock>
|
2254 |
</method>
|
2255 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="286" package="Media Library Assistant">
|
2256 |
<name>mla_admin_enqueue_scripts_action</name>
|
2257 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
2258 |
+
<docblock line="277">
|
2259 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
2260 |
<long-description><![CDATA[]]></long-description>
|
2261 |
+
<tag line="277" name="since" description="0.1"/>
|
2262 |
+
<tag line="277" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
|
2263 |
<type by_reference="false">string</type>
|
2264 |
</tag>
|
2265 |
+
<tag line="277" name="return" description="" type="void">
|
2266 |
<type by_reference="false">void</type>
|
2267 |
</tag>
|
2268 |
</docblock>
|
2269 |
+
<argument line="286">
|
2270 |
<name>$page_hook</name>
|
2271 |
<default><![CDATA[]]></default>
|
2272 |
<type/>
|
2273 |
</argument>
|
2274 |
</method>
|
2275 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="357" package="Media Library Assistant">
|
2276 |
<name>mla_admin_menu_action</name>
|
2277 |
<full_name>mla_admin_menu_action</full_name>
|
2278 |
+
<docblock line="342">
|
2279 |
<description><![CDATA[Add the submenu pages]]></description>
|
2280 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
2281 |
add settings page in the "Settings" section.
|
2284 |
<p>For WordPress versions before 3.5,
|
2285 |
add submenu page(s) for attachment taxonomies,
|
2286 |
add filter to clean up taxonomy submenu labels.</p>]]></long-description>
|
2287 |
+
<tag line="342" name="since" description="0.1"/>
|
2288 |
+
<tag line="342" name="return" description="" type="void">
|
2289 |
<type by_reference="false">void</type>
|
2290 |
</tag>
|
2291 |
</docblock>
|
2292 |
</method>
|
2293 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="394" package="Media Library Assistant">
|
2294 |
<name>mla_add_menu_options</name>
|
2295 |
<full_name>mla_add_menu_options</full_name>
|
2296 |
+
<docblock line="387">
|
2297 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
2298 |
<long-description><![CDATA[]]></long-description>
|
2299 |
+
<tag line="387" name="since" description="0.1"/>
|
2300 |
+
<tag line="387" name="return" description="" type="void">
|
2301 |
<type by_reference="false">void</type>
|
2302 |
</tag>
|
2303 |
</docblock>
|
2304 |
</method>
|
2305 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="413" package="Media Library Assistant">
|
2306 |
<name>mla_add_help_tab</name>
|
2307 |
<full_name>mla_add_help_tab</full_name>
|
2308 |
+
<docblock line="406">
|
2309 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
2310 |
<long-description><![CDATA[]]></long-description>
|
2311 |
+
<tag line="406" name="since" description="0.1"/>
|
2312 |
+
<tag line="406" name="return" description="" type="void">
|
2313 |
<type by_reference="false">void</type>
|
2314 |
</tag>
|
2315 |
</docblock>
|
2316 |
</method>
|
2317 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="502" package="Media Library Assistant">
|
2318 |
<name>mla_screen_options_show_screen_filter</name>
|
2319 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
2320 |
+
<docblock line="492">
|
2321 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
2322 |
<long-description><![CDATA[]]></long-description>
|
2323 |
+
<tag line="492" name="since" description="0.1"/>
|
2324 |
+
<tag line="492" name="param" description="True to display "Screen Options", false to suppress them" type="boolean" variable="$show_screen">
|
2325 |
<type by_reference="false">boolean</type>
|
2326 |
</tag>
|
2327 |
+
<tag line="492" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
|
2328 |
<type by_reference="false">string</type>
|
2329 |
</tag>
|
2330 |
+
<tag line="492" name="return" description="True to display "Screen Options", false to suppress them" type="boolean">
|
2331 |
<type by_reference="false">boolean</type>
|
2332 |
</tag>
|
2333 |
</docblock>
|
2334 |
+
<argument line="502">
|
2335 |
<name>$show_screen</name>
|
2336 |
<default><![CDATA[]]></default>
|
2337 |
<type/>
|
2338 |
</argument>
|
2339 |
+
<argument line="502">
|
2340 |
<name>$this_screen</name>
|
2341 |
<default><![CDATA[]]></default>
|
2342 |
<type/>
|
2343 |
</argument>
|
2344 |
</method>
|
2345 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="520" package="Media Library Assistant">
|
2346 |
<name>mla_set_screen_option_filter</name>
|
2347 |
<full_name>mla_set_screen_option_filter</full_name>
|
2348 |
+
<docblock line="509">
|
2349 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
2350 |
<long-description><![CDATA[]]></long-description>
|
2351 |
+
<tag line="509" name="since" description="0.1"/>
|
2352 |
+
<tag line="509" name="param" description="Unknown - always false?" type="boolean" variable="$status">
|
2353 |
<type by_reference="false">boolean</type>
|
2354 |
</tag>
|
2355 |
+
<tag line="509" name="param" description="Name of the option being changed" type="string" variable="$option">
|
2356 |
<type by_reference="false">string</type>
|
2357 |
</tag>
|
2358 |
+
<tag line="509" name="param" description="New value of the option" type="string" variable="$value">
|
2359 |
<type by_reference="false">string</type>
|
2360 |
</tag>
|
2361 |
+
<tag line="509" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
|
2362 |
<type by_reference="false">string</type>
|
2363 |
<type by_reference="false">void</type>
|
2364 |
</tag>
|
2365 |
</docblock>
|
2366 |
+
<argument line="520">
|
2367 |
<name>$status</name>
|
2368 |
<default><![CDATA[]]></default>
|
2369 |
<type/>
|
2370 |
</argument>
|
2371 |
+
<argument line="520">
|
2372 |
<name>$option</name>
|
2373 |
<default><![CDATA[]]></default>
|
2374 |
<type/>
|
2375 |
</argument>
|
2376 |
+
<argument line="520">
|
2377 |
<name>$value</name>
|
2378 |
<default><![CDATA[]]></default>
|
2379 |
<type/>
|
2380 |
</argument>
|
2381 |
</method>
|
2382 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="537" package="Media Library Assistant">
|
2383 |
<name>mla_edit_tax_redirect</name>
|
2384 |
<full_name>mla_edit_tax_redirect</full_name>
|
2385 |
+
<docblock line="526">
|
2386 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
2387 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
2388 |
This filter is the only way to redirect them to the correct WordPress page.
|
2389 |
The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
|
2390 |
+
<tag line="526" name="since" description="0.1"/>
|
2391 |
+
<tag line="526" name="return" description="" type="void">
|
2392 |
<type by_reference="false">void</type>
|
2393 |
</tag>
|
2394 |
</docblock>
|
2395 |
</method>
|
2396 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="570" package="Media Library Assistant">
|
2397 |
<name>mla_parent_file_filter</name>
|
2398 |
<full_name>mla_parent_file_filter</full_name>
|
2399 |
+
<docblock line="554">
|
2400 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
2401 |
<long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
|
2402 |
under the "Media" menu are not set up correctly by WordPress, so this
|
2404 |
page for editing/adding taxonomy terms.
|
2405 |
For WordPress 3.5 and later, the function fixes the submenu bolding when
|
2406 |
going to the Edit Media screen.</p>]]></long-description>
|
2407 |
+
<tag line="554" name="since" description="0.1"/>
|
2408 |
+
<tag line="554" name="param" description="The top-level menu page" type="array" variable="$parent_file">
|
2409 |
<type by_reference="false">array</type>
|
2410 |
</tag>
|
2411 |
+
<tag line="554" name="return" description="The updated top-level menu page" type="string">
|
2412 |
<type by_reference="false">string</type>
|
2413 |
</tag>
|
2414 |
</docblock>
|
2415 |
+
<argument line="570">
|
2416 |
<name>$parent_file</name>
|
2417 |
<default><![CDATA[]]></default>
|
2418 |
<type/>
|
2419 |
</argument>
|
2420 |
</method>
|
2421 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="613" package="Media Library Assistant">
|
2422 |
<name>mla_render_admin_page</name>
|
2423 |
<full_name>mla_render_admin_page</full_name>
|
2424 |
+
<docblock line="606">
|
2425 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
2426 |
<long-description><![CDATA[]]></long-description>
|
2427 |
+
<tag line="606" name="since" description="0.1"/>
|
2428 |
+
<tag line="606" name="return" description="" type="void">
|
2429 |
<type by_reference="false">void</type>
|
2430 |
</tag>
|
2431 |
</docblock>
|
2432 |
</method>
|
2433 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="897" package="Media Library Assistant">
|
2434 |
<name>mla_inline_edit_action</name>
|
2435 |
<full_name>mla_inline_edit_action</full_name>
|
2436 |
+
<docblock line="888">
|
2437 |
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
2438 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
2439 |
+
<tag line="888" name="since" description="0.20"/>
|
2440 |
+
<tag line="888" name="return" description="echo HTML <tr> markup for updated row or error message, then die()" type="void">
|
2441 |
<type by_reference="false">void</type>
|
2442 |
</tag>
|
2443 |
</docblock>
|
2444 |
</method>
|
2445 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="992" package="Media Library Assistant">
|
2446 |
<name>_build_inline_edit_form</name>
|
2447 |
<full_name>_build_inline_edit_form</full_name>
|
2448 |
+
<docblock line="981">
|
2449 |
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
|
2450 |
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
2451 |
+
<tag line="981" name="since" description="0.20"/>
|
2452 |
+
<tag line="981" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
|
2453 |
<type by_reference="false">object</type>
|
2454 |
</tag>
|
2455 |
+
<tag line="981" name="return" description="HTML <form> markup for hidden rows" type="string">
|
2456 |
<type by_reference="false">string</type>
|
2457 |
</tag>
|
2458 |
</docblock>
|
2459 |
+
<argument line="992">
|
2460 |
<name>$MLAListTable</name>
|
2461 |
<default><![CDATA[]]></default>
|
2462 |
<type/>
|
2463 |
</argument>
|
2464 |
</method>
|
2465 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1149" package="Media Library Assistant">
|
2466 |
<name>_authors_dropdown</name>
|
2467 |
<full_name>_authors_dropdown</full_name>
|
2468 |
+
<docblock line="1138">
|
2469 |
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
2470 |
<long-description><![CDATA[]]></long-description>
|
2471 |
+
<tag line="1138" name="since" description="0.20"/>
|
2472 |
+
<tag line="1138" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
|
2473 |
<type by_reference="false">integer</type>
|
2474 |
</tag>
|
2475 |
+
<tag line="1138" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
|
2476 |
<type by_reference="false">string</type>
|
2477 |
</tag>
|
2478 |
+
<tag line="1138" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
|
2479 |
<type by_reference="false">string</type>
|
2480 |
</tag>
|
2481 |
+
<tag line="1138" name="return" description="HTML markup for the dropdown field or False" type="string|false">
|
2482 |
<type by_reference="false">string</type>
|
2483 |
<type by_reference="false">false</type>
|
2484 |
</tag>
|
2485 |
</docblock>
|
2486 |
+
<argument line="1149">
|
2487 |
<name>$author</name>
|
2488 |
<default><![CDATA[0]]></default>
|
2489 |
<type/>
|
2490 |
</argument>
|
2491 |
+
<argument line="1149">
|
2492 |
<name>$name</name>
|
2493 |
<default><![CDATA['post_author']]></default>
|
2494 |
<type/>
|
2495 |
</argument>
|
2496 |
+
<argument line="1149">
|
2497 |
<name>$class</name>
|
2498 |
<default><![CDATA['authors']]></default>
|
2499 |
<type/>
|
2500 |
</argument>
|
2501 |
</method>
|
2502 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1183" package="Media Library Assistant">
|
2503 |
<name>_current_bulk_action</name>
|
2504 |
<full_name>_current_bulk_action</full_name>
|
2505 |
+
<docblock line="1176">
|
2506 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
2507 |
<long-description><![CDATA[]]></long-description>
|
2508 |
+
<tag line="1176" name="since" description="0.1"/>
|
2509 |
+
<tag line="1176" name="return" description="The action name or False if no action was selected" type="string|false">
|
2510 |
<type by_reference="false">string</type>
|
2511 |
<type by_reference="false">false</type>
|
2512 |
</tag>
|
2513 |
</docblock>
|
2514 |
</method>
|
2515 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1212" package="Media Library Assistant">
|
2516 |
<name>_delete_single_item</name>
|
2517 |
<full_name>_delete_single_item</full_name>
|
2518 |
+
<docblock line="1203">
|
2519 |
<description><![CDATA[Delete a single item permanently]]></description>
|
2520 |
<long-description><![CDATA[]]></long-description>
|
2521 |
+
<tag line="1203" name="since" description="0.1"/>
|
2522 |
+
<tag line="1203" name="param" description="The form POST data" type="array" variable="$post_id">
|
2523 |
<type by_reference="false">array</type>
|
2524 |
</tag>
|
2525 |
+
<tag line="1203" name="return" description="success/failure message and NULL content" type="array">
|
2526 |
<type by_reference="false">array</type>
|
2527 |
</tag>
|
2528 |
</docblock>
|
2529 |
+
<argument line="1212">
|
2530 |
<name>$post_id</name>
|
2531 |
<default><![CDATA[]]></default>
|
2532 |
<type/>
|
2533 |
</argument>
|
2534 |
</method>
|
2535 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1241" package="Media Library Assistant">
|
2536 |
<name>_display_single_item</name>
|
2537 |
<full_name>_display_single_item</full_name>
|
2538 |
+
<docblock line="1231">
|
2539 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
2540 |
change the meta data for a single attachment.]]></description>
|
2541 |
<long-description><![CDATA[]]></long-description>
|
2542 |
+
<tag line="1231" name="since" description="0.1"/>
|
2543 |
+
<tag line="1231" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
|
2544 |
<type by_reference="false">int</type>
|
2545 |
</tag>
|
2546 |
+
<tag line="1231" name="return" description="message and/or HTML content" type="array">
|
2547 |
<type by_reference="false">array</type>
|
2548 |
</tag>
|
2549 |
</docblock>
|
2550 |
+
<argument line="1241">
|
2551 |
<name>$post_id</name>
|
2552 |
<default><![CDATA[]]></default>
|
2553 |
<type/>
|
2554 |
</argument>
|
2555 |
</method>
|
2556 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1481" package="Media Library Assistant">
|
2557 |
<name>_restore_single_item</name>
|
2558 |
<full_name>_restore_single_item</full_name>
|
2559 |
+
<docblock line="1472">
|
2560 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
2561 |
<long-description><![CDATA[]]></long-description>
|
2562 |
+
<tag line="1472" name="since" description="0.1"/>
|
2563 |
+
<tag line="1472" name="param" description="The form POST data" type="array" variable="$post_id">
|
2564 |
<type by_reference="false">array</type>
|
2565 |
</tag>
|
2566 |
+
<tag line="1472" name="return" description="success/failure message and NULL content" type="array">
|
2567 |
<type by_reference="false">array</type>
|
2568 |
</tag>
|
2569 |
</docblock>
|
2570 |
+
<argument line="1481">
|
2571 |
<name>$post_id</name>
|
2572 |
<default><![CDATA[]]></default>
|
2573 |
<type/>
|
2574 |
</argument>
|
2575 |
</method>
|
2576 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1517" package="Media Library Assistant">
|
2577 |
<name>_trash_single_item</name>
|
2578 |
<full_name>_trash_single_item</full_name>
|
2579 |
+
<docblock line="1508">
|
2580 |
<description><![CDATA[Move a single item to Trash]]></description>
|
2581 |
<long-description><![CDATA[]]></long-description>
|
2582 |
+
<tag line="1508" name="since" description="0.1"/>
|
2583 |
+
<tag line="1508" name="param" description="The form POST data" type="array" variable="$post_id">
|
2584 |
<type by_reference="false">array</type>
|
2585 |
</tag>
|
2586 |
+
<tag line="1508" name="return" description="success/failure message and NULL content" type="array">
|
2587 |
<type by_reference="false">array</type>
|
2588 |
</tag>
|
2589 |
</docblock>
|
2590 |
+
<argument line="1517">
|
2591 |
<name>$post_id</name>
|
2592 |
<default><![CDATA[]]></default>
|
2593 |
<type/>
|
2595 |
</method>
|
2596 |
</class>
|
2597 |
</file>
|
2598 |
+
<file path="includes\class-mla-objects.php" hash="df30be6284bbef6a8eab604901b74c41" package="Media Library Assistant">
|
2599 |
<docblock line="2">
|
2600 |
<description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
|
2601 |
<long-description><![CDATA[]]></long-description>
|
2657 |
<type/>
|
2658 |
</argument>
|
2659 |
</method>
|
2660 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
|
2661 |
<name>mla_taxonomy_column_filter</name>
|
2662 |
<full_name>mla_taxonomy_column_filter</full_name>
|
2663 |
+
<docblock line="134">
|
2664 |
<description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
|
2665 |
which returns a count of the attachments assigned a given term]]></description>
|
2666 |
<long-description><![CDATA[]]></long-description>
|
2667 |
+
<tag line="134" name="since" description="0.30"/>
|
2668 |
+
<tag line="134" name="param" description="current column value; always ''" type="string" variable="$place_holder">
|
2669 |
<type by_reference="false">string</type>
|
2670 |
</tag>
|
2671 |
+
<tag line="134" name="param" description="name of the column" type="array" variable="$column_name">
|
2672 |
<type by_reference="false">array</type>
|
2673 |
</tag>
|
2674 |
+
<tag line="134" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
|
2675 |
<type by_reference="false">array</type>
|
2676 |
</tag>
|
2677 |
+
<tag line="134" 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">
|
2678 |
<type by_reference="false">array</type>
|
2679 |
</tag>
|
2680 |
</docblock>
|
2681 |
+
<argument line="147">
|
2682 |
<name>$place_holder</name>
|
2683 |
<default><![CDATA[]]></default>
|
2684 |
<type/>
|
2685 |
</argument>
|
2686 |
+
<argument line="147">
|
2687 |
<name>$column_name</name>
|
2688 |
<default><![CDATA[]]></default>
|
2689 |
<type/>
|
2690 |
</argument>
|
2691 |
+
<argument line="147">
|
2692 |
<name>$term_id</name>
|
2693 |
<default><![CDATA[]]></default>
|
2694 |
<type/>
|
2696 |
</method>
|
2697 |
</class>
|
2698 |
</file>
|
2699 |
+
<file path="includes\class-mla-options.php" hash="c7c4c8d7b8e656f56a8dfcf8aa43f1e0" package="Media Library Assistant">
|
2700 |
<docblock line="2">
|
2701 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
2702 |
<long-description><![CDATA[]]></long-description>
|
2866 |
</tag>
|
2867 |
</docblock>
|
2868 |
</property>
|
2869 |
+
<property final="false" static="true" visibility="private" line="1364" namespace="global" package="Media Library Assistant">
|
2870 |
<name>$custom_field_data_sources</name>
|
2871 |
<default><![CDATA[array('path', 'file_name', 'extension', 'file_size', 'dimensions', 'pixels', 'width', 'height', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
|
2872 |
+
<docblock line="1357">
|
2873 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
2874 |
<long-description><![CDATA[]]></long-description>
|
2875 |
+
<tag line="1357" name="since" description="1.10"/>
|
2876 |
+
<tag line="1357" name="var" description="" type="array">
|
2877 |
<type by_reference="false">array</type>
|
2878 |
</tag>
|
2879 |
</docblock>
|
3216 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
3217 |
<long-description><![CDATA[]]></long-description>
|
3218 |
<tag line="933" name="since" description="1.10"/>
|
3219 |
+
<tag line="933" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
|
3220 |
<type by_reference="false">string</type>
|
3221 |
</tag>
|
3222 |
+
<tag line="933" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
|
3223 |
<type by_reference="false">array</type>
|
3224 |
</tag>
|
3225 |
</docblock>
|
3229 |
<type/>
|
3230 |
</argument>
|
3231 |
</method>
|
3232 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="988" package="Media Library Assistant">
|
3233 |
<name>_evaluate_file_information</name>
|
3234 |
<full_name>_evaluate_file_information</full_name>
|
3235 |
+
<docblock line="976">
|
3236 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
3237 |
<long-description><![CDATA[]]></long-description>
|
3238 |
+
<tag line="976" name="since" description="1.10"/>
|
3239 |
+
<tag line="976" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
|
3240 |
<type by_reference="false">string</type>
|
3241 |
</tag>
|
3242 |
+
<tag line="976" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
|
3243 |
<type by_reference="false">array</type>
|
3244 |
</tag>
|
3245 |
+
<tag line="976" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
|
3246 |
<type by_reference="false">array</type>
|
3247 |
</tag>
|
3248 |
+
<tag line="976" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
3249 |
<type by_reference="false">integer</type>
|
3250 |
</tag>
|
3251 |
+
<tag line="976" name="return" description="absolute_path, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
|
3252 |
<type by_reference="false">array</type>
|
3253 |
</tag>
|
3254 |
</docblock>
|
3255 |
+
<argument line="988">
|
3256 |
<name>$upload_dir</name>
|
3257 |
<default><![CDATA[]]></default>
|
3258 |
<type/>
|
3259 |
</argument>
|
3260 |
+
<argument line="988">
|
3261 |
<name>$wp_attached_files</name>
|
3262 |
<default><![CDATA[]]></default>
|
3263 |
<type/>
|
3264 |
</argument>
|
3265 |
+
<argument line="988">
|
3266 |
<name>$wp_attachment_metadata</name>
|
3267 |
<default><![CDATA[]]></default>
|
3268 |
<type/>
|
3269 |
</argument>
|
3270 |
+
<argument line="988">
|
3271 |
<name>$post_id</name>
|
3272 |
<default><![CDATA[]]></default>
|
3273 |
<type/>
|
3274 |
</argument>
|
3275 |
</method>
|
3276 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1061" package="Media Library Assistant">
|
3277 |
<name>_evaluate_data_source</name>
|
3278 |
<full_name>_evaluate_data_source</full_name>
|
3279 |
+
<docblock line="1048">
|
3280 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
3281 |
<long-description><![CDATA[]]></long-description>
|
3282 |
+
<tag line="1048" name="since" description="1.10"/>
|
3283 |
+
<tag line="1048" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
3284 |
<type by_reference="false">integer</type>
|
3285 |
</tag>
|
3286 |
+
<tag line="1048" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
3287 |
<type by_reference="false">string</type>
|
3288 |
</tag>
|
3289 |
+
<tag line="1048" name="param" description="data source name" type="string" variable="$data_source">
|
3290 |
<type by_reference="false">string</type>
|
3291 |
</tag>
|
3292 |
+
<tag line="1048" name="param" description="desired results format, default 'native'" type="string" variable="$format">
|
3293 |
<type by_reference="false">string</type>
|
3294 |
</tag>
|
3295 |
+
<tag line="1048" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
3296 |
<type by_reference="false">array</type>
|
3297 |
</tag>
|
3298 |
+
<tag line="1048" name="return" description="data source value" type="string">
|
3299 |
<type by_reference="false">string</type>
|
3300 |
</tag>
|
3301 |
</docblock>
|
3302 |
+
<argument line="1061">
|
3303 |
<name>$post_id</name>
|
3304 |
<default><![CDATA[]]></default>
|
3305 |
<type/>
|
3306 |
</argument>
|
3307 |
+
<argument line="1061">
|
3308 |
<name>$category</name>
|
3309 |
<default><![CDATA[]]></default>
|
3310 |
<type/>
|
3311 |
</argument>
|
3312 |
+
<argument line="1061">
|
3313 |
<name>$data_source</name>
|
3314 |
<default><![CDATA[]]></default>
|
3315 |
<type/>
|
3316 |
</argument>
|
3317 |
+
<argument line="1061">
|
3318 |
<name>$format</name>
|
3319 |
<default><![CDATA['native']]></default>
|
3320 |
<type/>
|
3321 |
</argument>
|
3322 |
+
<argument line="1061">
|
3323 |
<name>$attachment_metadata</name>
|
3324 |
<default><![CDATA[NULL]]></default>
|
3325 |
<type/>
|
3326 |
</argument>
|
3327 |
</method>
|
3328 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1301" package="Media Library Assistant">
|
3329 |
<name>mla_evaluate_custom_field_mapping</name>
|
3330 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
3331 |
+
<docblock line="1289">
|
3332 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
3333 |
<long-description><![CDATA[]]></long-description>
|
3334 |
+
<tag line="1289" name="since" description="1.10"/>
|
3335 |
+
<tag line="1289" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
|
3336 |
<type by_reference="false">integer</type>
|
3337 |
</tag>
|
3338 |
+
<tag line="1289" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
3339 |
<type by_reference="false">string</type>
|
3340 |
</tag>
|
3341 |
+
<tag line="1289" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
|
3342 |
<type by_reference="false">array</type>
|
3343 |
</tag>
|
3344 |
+
<tag line="1289" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
3345 |
<type by_reference="false">array</type>
|
3346 |
</tag>
|
3347 |
+
<tag line="1289" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
3348 |
<type by_reference="false">array</type>
|
3349 |
</tag>
|
3350 |
</docblock>
|
3351 |
+
<argument line="1301">
|
3352 |
<name>$post_id</name>
|
3353 |
<default><![CDATA[]]></default>
|
3354 |
<type/>
|
3355 |
</argument>
|
3356 |
+
<argument line="1301">
|
3357 |
<name>$category</name>
|
3358 |
<default><![CDATA[]]></default>
|
3359 |
<type/>
|
3360 |
</argument>
|
3361 |
+
<argument line="1301">
|
3362 |
<name>$settings</name>
|
3363 |
<default><![CDATA[NULL]]></default>
|
3364 |
<type/>
|
3365 |
</argument>
|
3366 |
+
<argument line="1301">
|
3367 |
<name>$attachment_metadata</name>
|
3368 |
<default><![CDATA[NULL]]></default>
|
3369 |
<type/>
|
3370 |
</argument>
|
3371 |
</method>
|
3372 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1334" package="Media Library Assistant">
|
3373 |
<name>_compose_custom_field_option_list</name>
|
3374 |
<full_name>_compose_custom_field_option_list</full_name>
|
3375 |
+
<docblock line="1324">
|
3376 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
3377 |
<long-description><![CDATA[]]></long-description>
|
3378 |
+
<tag line="1324" name="since" description="1.10"/>
|
3379 |
+
<tag line="1324" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
3380 |
+
<tag line="1324" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
3381 |
<type by_reference="false">string</type>
|
3382 |
</tag>
|
3383 |
+
<tag line="1324" name="return" description="HTML markup with select field options" type="string">
|
3384 |
<type by_reference="false">string</type>
|
3385 |
</tag>
|
3386 |
</docblock>
|
3387 |
+
<argument line="1334">
|
3388 |
<name>$selection</name>
|
3389 |
<default><![CDATA['none']]></default>
|
3390 |
<type/>
|
3391 |
</argument>
|
3392 |
</method>
|
3393 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1409" package="Media Library Assistant">
|
3394 |
<name>_compose_data_source_option_list</name>
|
3395 |
<full_name>_compose_data_source_option_list</full_name>
|
3396 |
+
<docblock line="1399">
|
3397 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
3398 |
<long-description><![CDATA[]]></long-description>
|
3399 |
+
<tag line="1399" name="since" description="1.10"/>
|
3400 |
+
<tag line="1399" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
3401 |
+
<tag line="1399" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
3402 |
<type by_reference="false">string</type>
|
3403 |
</tag>
|
3404 |
+
<tag line="1399" name="return" description="HTML markup with select field options" type="string">
|
3405 |
<type by_reference="false">string</type>
|
3406 |
</tag>
|
3407 |
</docblock>
|
3408 |
+
<argument line="1409">
|
3409 |
<name>$selection</name>
|
3410 |
<default><![CDATA['none']]></default>
|
3411 |
<type/>
|
3412 |
</argument>
|
3413 |
</method>
|
3414 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1460" package="Media Library Assistant">
|
3415 |
<name>_update_custom_field_mapping</name>
|
3416 |
<full_name>_update_custom_field_mapping</full_name>
|
3417 |
+
<docblock line="1450">
|
3418 |
<description><![CDATA[Update custom field mappings]]></description>
|
3419 |
<long-description><![CDATA[]]></long-description>
|
3420 |
+
<tag line="1450" name="since" description="1.10"/>
|
3421 |
+
<tag line="1450" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
|
3422 |
<type by_reference="false">array</type>
|
3423 |
</tag>
|
3424 |
+
<tag line="1450" name="param" description="new values" type="array" variable="$new_values">
|
3425 |
<type by_reference="false">array</type>
|
3426 |
</tag>
|
3427 |
+
<tag line="1450" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
3428 |
<type by_reference="false">array</type>
|
3429 |
</tag>
|
3430 |
</docblock>
|
3431 |
+
<argument line="1460">
|
3432 |
<name>$current_values</name>
|
3433 |
<default><![CDATA[]]></default>
|
3434 |
<type/>
|
3435 |
</argument>
|
3436 |
+
<argument line="1460">
|
3437 |
<name>$new_values</name>
|
3438 |
<default><![CDATA[]]></default>
|
3439 |
<type/>
|
3440 |
</argument>
|
3441 |
</method>
|
3442 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1616" package="Media Library Assistant">
|
3443 |
<name>mla_custom_field_option_handler</name>
|
3444 |
<full_name>mla_custom_field_option_handler</full_name>
|
3445 |
+
<docblock line="1603">
|
3446 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
3447 |
<long-description><![CDATA[]]></long-description>
|
3448 |
+
<tag line="1603" name="since" description="1.10"/>
|
3449 |
+
<tag line="1603" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
3450 |
+
<tag line="1603" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
3451 |
<type by_reference="false">string</type>
|
3452 |
</tag>
|
3453 |
+
<tag line="1603" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
|
3454 |
<type by_reference="false">string</type>
|
3455 |
</tag>
|
3456 |
+
<tag line="1603" name="param" description="option parameters" type="array" variable="$value">
|
3457 |
<type by_reference="false">array</type>
|
3458 |
</tag>
|
3459 |
+
<tag line="1603" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
3460 |
<type by_reference="false">array</type>
|
3461 |
</tag>
|
3462 |
+
<tag line="1603" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
3463 |
<type by_reference="false">string</type>
|
3464 |
</tag>
|
3465 |
</docblock>
|
3466 |
+
<argument line="1616">
|
3467 |
<name>$action</name>
|
3468 |
<default><![CDATA[]]></default>
|
3469 |
<type/>
|
3470 |
</argument>
|
3471 |
+
<argument line="1616">
|
3472 |
<name>$key</name>
|
3473 |
<default><![CDATA[]]></default>
|
3474 |
<type/>
|
3475 |
</argument>
|
3476 |
+
<argument line="1616">
|
3477 |
<name>$value</name>
|
3478 |
<default><![CDATA[]]></default>
|
3479 |
<type/>
|
3480 |
</argument>
|
3481 |
+
<argument line="1616">
|
3482 |
<name>$args</name>
|
3483 |
<default><![CDATA[null]]></default>
|
3484 |
<type/>
|
3485 |
</argument>
|
3486 |
</method>
|
3487 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1760" package="Media Library Assistant">
|
3488 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
3489 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
3490 |
+
<docblock line="1749">
|
3491 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
3492 |
<long-description><![CDATA[]]></long-description>
|
3493 |
+
<tag line="1749" name="since" description="1.00"/>
|
3494 |
+
<tag line="1749" name="param" description="post object with current values" type="object" variable="$post">
|
3495 |
<type by_reference="false">object</type>
|
3496 |
</tag>
|
3497 |
+
<tag line="1749" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
|
3498 |
<type by_reference="false">string</type>
|
3499 |
</tag>
|
3500 |
+
<tag line="1749" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
|
3501 |
<type by_reference="false">array</type>
|
3502 |
</tag>
|
3503 |
+
<tag line="1749" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
3504 |
<type by_reference="false">array</type>
|
3505 |
</tag>
|
3506 |
</docblock>
|
3507 |
+
<argument line="1760">
|
3508 |
<name>$post</name>
|
3509 |
<default><![CDATA[]]></default>
|
3510 |
<type/>
|
3511 |
</argument>
|
3512 |
+
<argument line="1760">
|
3513 |
<name>$category</name>
|
3514 |
<default><![CDATA[]]></default>
|
3515 |
<type/>
|
3516 |
</argument>
|
3517 |
+
<argument line="1760">
|
3518 |
<name>$settings</name>
|
3519 |
<default><![CDATA[NULL]]></default>
|
3520 |
<type/>
|
3521 |
</argument>
|
3522 |
</method>
|
3523 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1913" package="Media Library Assistant">
|
3524 |
<name>_compose_iptc_option_list</name>
|
3525 |
<full_name>_compose_iptc_option_list</full_name>
|
3526 |
+
<docblock line="1903">
|
3527 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
3528 |
<long-description><![CDATA[]]></long-description>
|
3529 |
+
<tag line="1903" name="since" description="1.00"/>
|
3530 |
+
<tag line="1903" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
3531 |
+
<tag line="1903" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
3532 |
<type by_reference="false">string</type>
|
3533 |
</tag>
|
3534 |
+
<tag line="1903" name="return" description="HTML markup with select field options" type="string">
|
3535 |
<type by_reference="false">string</type>
|
3536 |
</tag>
|
3537 |
</docblock>
|
3538 |
+
<argument line="1913">
|
3539 |
<name>$selection</name>
|
3540 |
<default><![CDATA['none']]></default>
|
3541 |
<type/>
|
3542 |
</argument>
|
3543 |
</method>
|
3544 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1946" package="Media Library Assistant">
|
3545 |
<name>_compose_parent_option_list</name>
|
3546 |
<full_name>_compose_parent_option_list</full_name>
|
3547 |
+
<docblock line="1935">
|
3548 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
3549 |
<long-description><![CDATA[]]></long-description>
|
3550 |
+
<tag line="1935" name="since" description="1.00"/>
|
3551 |
+
<tag line="1935" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
3552 |
+
<tag line="1935" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
|
3553 |
<type by_reference="false">string</type>
|
3554 |
</tag>
|
3555 |
+
<tag line="1935" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
|
3556 |
<type by_reference="false">integer</type>
|
3557 |
</tag>
|
3558 |
+
<tag line="1935" name="return" description="HTML markup with select field options" type="string">
|
3559 |
<type by_reference="false">string</type>
|
3560 |
</tag>
|
3561 |
</docblock>
|
3562 |
+
<argument line="1946">
|
3563 |
<name>$taxonomy</name>
|
3564 |
<default><![CDATA[]]></default>
|
3565 |
<type/>
|
3566 |
</argument>
|
3567 |
+
<argument line="1946">
|
3568 |
<name>$selection</name>
|
3569 |
<default><![CDATA[0]]></default>
|
3570 |
<type/>
|
3571 |
</argument>
|
3572 |
</method>
|
3573 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1980" package="Media Library Assistant">
|
3574 |
<name>_update_iptc_exif_standard_mapping</name>
|
3575 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
3576 |
+
<docblock line="1970">
|
3577 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
3578 |
<long-description><![CDATA[]]></long-description>
|
3579 |
+
<tag line="1970" name="since" description="1.00"/>
|
3580 |
+
<tag line="1970" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
3581 |
<type by_reference="false">array</type>
|
3582 |
</tag>
|
3583 |
+
<tag line="1970" name="param" description="new values" type="array" variable="$new_values">
|
3584 |
<type by_reference="false">array</type>
|
3585 |
</tag>
|
3586 |
+
<tag line="1970" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
3587 |
<type by_reference="false">array</type>
|
3588 |
</tag>
|
3589 |
</docblock>
|
3590 |
+
<argument line="1980">
|
3591 |
<name>$current_values</name>
|
3592 |
<default><![CDATA[]]></default>
|
3593 |
<type/>
|
3594 |
</argument>
|
3595 |
+
<argument line="1980">
|
3596 |
<name>$new_values</name>
|
3597 |
<default><![CDATA[]]></default>
|
3598 |
<type/>
|
3599 |
</argument>
|
3600 |
</method>
|
3601 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2059" package="Media Library Assistant">
|
3602 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
3603 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
3604 |
+
<docblock line="2049">
|
3605 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
3606 |
<long-description><![CDATA[]]></long-description>
|
3607 |
+
<tag line="2049" name="since" description="1.00"/>
|
3608 |
+
<tag line="2049" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
3609 |
<type by_reference="false">array</type>
|
3610 |
</tag>
|
3611 |
+
<tag line="2049" name="param" description="new values" type="array" variable="$new_values">
|
3612 |
<type by_reference="false">array</type>
|
3613 |
</tag>
|
3614 |
+
<tag line="2049" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
3615 |
<type by_reference="false">array</type>
|
3616 |
</tag>
|
3617 |
</docblock>
|
3618 |
+
<argument line="2059">
|
3619 |
<name>$current_values</name>
|
3620 |
<default><![CDATA[]]></default>
|
3621 |
<type/>
|
3622 |
</argument>
|
3623 |
+
<argument line="2059">
|
3624 |
<name>$new_values</name>
|
3625 |
<default><![CDATA[]]></default>
|
3626 |
<type/>
|
3627 |
</argument>
|
3628 |
</method>
|
3629 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2151" package="Media Library Assistant">
|
3630 |
<name>_update_iptc_exif_custom_mapping</name>
|
3631 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
3632 |
+
<docblock line="2141">
|
3633 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
3634 |
<long-description><![CDATA[]]></long-description>
|
3635 |
+
<tag line="2141" name="since" description="1.00"/>
|
3636 |
+
<tag line="2141" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
3637 |
<type by_reference="false">array</type>
|
3638 |
</tag>
|
3639 |
+
<tag line="2141" name="param" description="new values" type="array" variable="$new_values">
|
3640 |
<type by_reference="false">array</type>
|
3641 |
</tag>
|
3642 |
+
<tag line="2141" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
3643 |
<type by_reference="false">array</type>
|
3644 |
</tag>
|
3645 |
</docblock>
|
3646 |
+
<argument line="2151">
|
3647 |
<name>$current_values</name>
|
3648 |
<default><![CDATA[]]></default>
|
3649 |
<type/>
|
3650 |
</argument>
|
3651 |
+
<argument line="2151">
|
3652 |
<name>$new_values</name>
|
3653 |
<default><![CDATA[]]></default>
|
3654 |
<type/>
|
3655 |
</argument>
|
3656 |
</method>
|
3657 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2247" package="Media Library Assistant">
|
3658 |
<name>_get_custom_field_names</name>
|
3659 |
<full_name>_get_custom_field_names</full_name>
|
3660 |
+
<docblock line="2240">
|
3661 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
3662 |
<long-description><![CDATA[]]></long-description>
|
3663 |
+
<tag line="2240" name="since" description="1.00"/>
|
3664 |
+
<tag line="2240" name="return" description="Custom field names from the postmeta table" type="array">
|
3665 |
<type by_reference="false">array</type>
|
3666 |
</tag>
|
3667 |
</docblock>
|
3668 |
</method>
|
3669 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2276" package="Media Library Assistant">
|
3670 |
<name>mla_iptc_exif_option_handler</name>
|
3671 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
3672 |
+
<docblock line="2263">
|
3673 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
3674 |
<long-description><![CDATA[]]></long-description>
|
3675 |
+
<tag line="2263" name="since" description="1.00"/>
|
3676 |
+
<tag line="2263" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
3677 |
+
<tag line="2263" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
3678 |
<type by_reference="false">string</type>
|
3679 |
</tag>
|
3680 |
+
<tag line="2263" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
|
3681 |
<type by_reference="false">string</type>
|
3682 |
</tag>
|
3683 |
+
<tag line="2263" name="param" description="option parameters" type="array" variable="$value">
|
3684 |
<type by_reference="false">array</type>
|
3685 |
</tag>
|
3686 |
+
<tag line="2263" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
3687 |
<type by_reference="false">array</type>
|
3688 |
</tag>
|
3689 |
+
<tag line="2263" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
3690 |
<type by_reference="false">string</type>
|
3691 |
</tag>
|
3692 |
</docblock>
|
3693 |
+
<argument line="2276">
|
3694 |
<name>$action</name>
|
3695 |
<default><![CDATA[]]></default>
|
3696 |
<type/>
|
3697 |
</argument>
|
3698 |
+
<argument line="2276">
|
3699 |
<name>$key</name>
|
3700 |
<default><![CDATA[]]></default>
|
3701 |
<type/>
|
3702 |
</argument>
|
3703 |
+
<argument line="2276">
|
3704 |
<name>$value</name>
|
3705 |
<default><![CDATA[]]></default>
|
3706 |
<type/>
|
3707 |
</argument>
|
3708 |
+
<argument line="2276">
|
3709 |
<name>$args</name>
|
3710 |
<default><![CDATA[null]]></default>
|
3711 |
<type/>
|
3713 |
</method>
|
3714 |
</class>
|
3715 |
</file>
|
3716 |
+
<file path="includes\class-mla-settings.php" hash="a1f0ae5d080708749de7f482aee39fb5" package="Media Library Assistant">
|
3717 |
<docblock line="2">
|
3718 |
<description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
|
3719 |
<long-description><![CDATA[]]></long-description>
|
3739 |
<long-description><![CDATA[]]></long-description>
|
3740 |
</docblock>
|
3741 |
</constant>
|
3742 |
+
<property final="false" static="true" visibility="private" line="372" namespace="global" package="Media Library Assistant">
|
3743 |
<name>$page_template_array</name>
|
3744 |
<default><![CDATA[null]]></default>
|
3745 |
+
<docblock line="362">
|
3746 |
<description><![CDATA[Template file for the Settings page(s) and parts]]></description>
|
3747 |
<long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
|
3748 |
each page load and cached for subsequent use.</p>]]></long-description>
|
3749 |
+
<tag line="362" name="since" description="0.80"/>
|
3750 |
+
<tag line="362" name="var" description="" type="array">
|
3751 |
<type by_reference="false">array</type>
|
3752 |
</tag>
|
3753 |
</docblock>
|
3754 |
</property>
|
3755 |
+
<property final="false" static="true" visibility="private" line="388" namespace="global" package="Media Library Assistant">
|
3756 |
<name>$mla_tablist</name>
|
3757 |
<default><![CDATA[array('general' => array('title' => 'General', 'render' => '_compose_general_tab'), 'mla-gallery' => array('title' => 'MLA Gallery', 'render' => '_compose_mla_gallery_tab'), 'custom-field' => array('title' => 'Custom Fields', 'render' => '_compose_custom_field_tab'), 'iptc-exif' => array('title' => 'IPTC/EXIF', 'render' => '_compose_iptc_exif_tab'), 'documentation' => array('title' => 'Documentation', 'render' => '_compose_documentation_tab'))]]></default>
|
3758 |
+
<docblock line="374">
|
3759 |
<description><![CDATA[Definitions for Settings page tab ids, titles and handlers
|
3760 |
Each tab is defined by an array with the following elements:]]></description>
|
3761 |
<long-description><![CDATA[<p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
|
3763 |
<p>title => tab label / heading text
|
3764 |
render => rendering function for tab messages and content. Usage:
|
3765 |
$tab_content = <a href="">'render'</a>;</p>]]></long-description>
|
3766 |
+
<tag line="374" name="since" description="0.80"/>
|
3767 |
+
<tag line="374" name="var" description="" type="array">
|
3768 |
<type by_reference="false">array</type>
|
3769 |
</tag>
|
3770 |
</docblock>
|
3793 |
</tag>
|
3794 |
</docblock>
|
3795 |
</method>
|
3796 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="96" package="Media Library Assistant">
|
3797 |
<name>mla_activation_hook</name>
|
3798 |
<full_name>mla_activation_hook</full_name>
|
3799 |
+
<docblock line="87">
|
3800 |
<description><![CDATA[Perform one-time actions on plugin activation]]></description>
|
3801 |
<long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
|
3802 |
+
<tag line="87" name="since" description="0.40"/>
|
3803 |
+
<tag line="87" name="return" description="" type="void">
|
3804 |
<type by_reference="false">void</type>
|
3805 |
</tag>
|
3806 |
</docblock>
|
3807 |
</method>
|
3808 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="109" package="Media Library Assistant">
|
3809 |
<name>mla_deactivation_hook</name>
|
3810 |
<full_name>mla_deactivation_hook</full_name>
|
3811 |
+
<docblock line="100">
|
3812 |
<description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
|
3813 |
<long-description><![CDATA[<p>Removes (if present) a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
|
3814 |
+
<tag line="100" name="since" description="0.40"/>
|
3815 |
+
<tag line="100" name="return" description="" type="void">
|
3816 |
<type by_reference="false">void</type>
|
3817 |
</tag>
|
3818 |
</docblock>
|
3819 |
</method>
|
3820 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="128" package="Media Library Assistant">
|
3821 |
<name>mla_admin_menu_action</name>
|
3822 |
<full_name>mla_admin_menu_action</full_name>
|
3823 |
+
<docblock line="120">
|
3824 |
<description><![CDATA[Add settings page in the "Settings" section,
|
3825 |
add settings link in the Plugins section entry for MLA.]]></description>
|
3826 |
<long-description><![CDATA[]]></long-description>
|
3827 |
+
<tag line="120" name="since" description="0.1"/>
|
3828 |
+
<tag line="120" name="return" description="" type="void">
|
3829 |
<type by_reference="false">void</type>
|
3830 |
</tag>
|
3831 |
</docblock>
|
3832 |
</method>
|
3833 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="146" package="Media Library Assistant">
|
3834 |
<name>mla_add_plugin_settings_link</name>
|
3835 |
<full_name>mla_add_plugin_settings_link</full_name>
|
3836 |
+
<docblock line="136">
|
3837 |
<description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
|
3838 |
<long-description><![CDATA[]]></long-description>
|
3839 |
+
<tag line="136" name="since" description="0.1"/>
|
3840 |
+
<tag line="136" name="param" description="array of links for the Plugin, e.g., "Activate"" type="array" variable="$links">
|
3841 |
<type by_reference="false">array</type>
|
3842 |
</tag>
|
3843 |
+
<tag line="136" name="param" description="Directory and name of the plugin Index file" type="string" variable="$file">
|
3844 |
<type by_reference="false">string</type>
|
3845 |
</tag>
|
3846 |
+
<tag line="136" name="return" description="Updated array of links for the Plugin" type="array">
|
3847 |
<type by_reference="false">array</type>
|
3848 |
</tag>
|
3849 |
</docblock>
|
3850 |
+
<argument line="146">
|
3851 |
<name>$links</name>
|
3852 |
<default><![CDATA[]]></default>
|
3853 |
<type/>
|
3854 |
</argument>
|
3855 |
+
<argument line="146">
|
3856 |
<name>$file</name>
|
3857 |
<default><![CDATA[]]></default>
|
3858 |
<type/>
|
3859 |
</argument>
|
3860 |
</method>
|
3861 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="166" package="Media Library Assistant">
|
3862 |
<name>_update_option_row</name>
|
3863 |
<full_name>_update_option_row</full_name>
|
3864 |
+
<docblock line="155">
|
3865 |
<description><![CDATA[Update or delete a single MLA option value]]></description>
|
3866 |
<long-description><![CDATA[]]></long-description>
|
3867 |
+
<tag line="155" name="since" description="0.80"/>
|
3868 |
+
<tag line="155" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
3869 |
+
<tag line="155" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
|
3870 |
<type by_reference="false">string</type>
|
3871 |
</tag>
|
3872 |
+
<tag line="155" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
|
3873 |
<type by_reference="false">array</type>
|
3874 |
</tag>
|
3875 |
+
<tag line="155" name="return" description="HTML markup for the option's table row" type="string">
|
3876 |
<type by_reference="false">string</type>
|
3877 |
</tag>
|
3878 |
</docblock>
|
3879 |
+
<argument line="166">
|
3880 |
<name>$key</name>
|
3881 |
<default><![CDATA[]]></default>
|
3882 |
<type/>
|
3883 |
</argument>
|
3884 |
+
<argument line="166">
|
3885 |
<name>$value</name>
|
3886 |
<default><![CDATA[]]></default>
|
3887 |
<type/>
|
3888 |
</argument>
|
3889 |
</method>
|
3890 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="244" package="Media Library Assistant">
|
3891 |
<name>_compose_option_row</name>
|
3892 |
<full_name>_compose_option_row</full_name>
|
3893 |
+
<docblock line="233">
|
3894 |
<description><![CDATA[Compose the table row for a single MLA option]]></description>
|
3895 |
<long-description><![CDATA[]]></long-description>
|
3896 |
+
<tag line="233" name="since" description="0.80"/>
|
3897 |
+
<tag line="233" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
3898 |
+
<tag line="233" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
|
3899 |
<type by_reference="false">string</type>
|
3900 |
</tag>
|
3901 |
+
<tag line="233" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
|
3902 |
<type by_reference="false">array</type>
|
3903 |
</tag>
|
3904 |
+
<tag line="233" name="return" description="HTML markup for the option's table row" type="string">
|
3905 |
<type by_reference="false">string</type>
|
3906 |
</tag>
|
3907 |
</docblock>
|
3908 |
+
<argument line="244">
|
3909 |
<name>$key</name>
|
3910 |
<default><![CDATA[]]></default>
|
3911 |
<type/>
|
3912 |
</argument>
|
3913 |
+
<argument line="244">
|
3914 |
<name>$value</name>
|
3915 |
<default><![CDATA[]]></default>
|
3916 |
<type/>
|
3917 |
</argument>
|
3918 |
</method>
|
3919 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="406" package="Media Library Assistant">
|
3920 |
<name>_compose_settings_tabs</name>
|
3921 |
<full_name>_compose_settings_tabs</full_name>
|
3922 |
+
<docblock line="396">
|
3923 |
<description><![CDATA[Compose the navigation tabs for the Settings subpage]]></description>
|
3924 |
<long-description><![CDATA[]]></long-description>
|
3925 |
+
<tag line="396" name="since" description="0.80"/>
|
3926 |
+
<tag line="396" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
3927 |
+
<tag line="396" name="param" description="Optional data-tab-id value for the active tab, default 'general'" type="string" variable="$active_tab">
|
3928 |
<type by_reference="false">string</type>
|
3929 |
</tag>
|
3930 |
+
<tag line="396" name="return" description="HTML markup for the Settings subpage navigation tabs" type="string">
|
3931 |
<type by_reference="false">string</type>
|
3932 |
</tag>
|
3933 |
</docblock>
|
3934 |
+
<argument line="406">
|
3935 |
<name>$active_tab</name>
|
3936 |
<default><![CDATA['general']]></default>
|
3937 |
<type/>
|
3938 |
</argument>
|
3939 |
</method>
|
3940 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="432" package="Media Library Assistant">
|
3941 |
<name>_compose_general_tab</name>
|
3942 |
<full_name>_compose_general_tab</full_name>
|
3943 |
+
<docblock line="424">
|
3944 |
<description><![CDATA[Compose the General tab content for the Settings subpage]]></description>
|
3945 |
<long-description><![CDATA[]]></long-description>
|
3946 |
+
<tag line="424" name="since" description="0.80"/>
|
3947 |
+
<tag line="424" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
3948 |
+
<tag line="424" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
3949 |
<type by_reference="false">array</type>
|
3950 |
</tag>
|
3951 |
</docblock>
|
3952 |
</method>
|
3953 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="516" package="Media Library Assistant">
|
3954 |
<name>_compose_mla_gallery_tab</name>
|
3955 |
<full_name>_compose_mla_gallery_tab</full_name>
|
3956 |
+
<docblock line="508">
|
3957 |
<description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
|
3958 |
<long-description><![CDATA[]]></long-description>
|
3959 |
+
<tag line="508" name="since" description="0.80"/>
|
3960 |
+
<tag line="508" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
3961 |
+
<tag line="508" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
3962 |
<type by_reference="false">array</type>
|
3963 |
</tag>
|
3964 |
</docblock>
|
3965 |
</method>
|
3966 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="815" package="Media Library Assistant">
|
3967 |
<name>_compose_custom_field_tab</name>
|
3968 |
<full_name>_compose_custom_field_tab</full_name>
|
3969 |
+
<docblock line="807">
|
3970 |
<description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
|
3971 |
<long-description><![CDATA[]]></long-description>
|
3972 |
+
<tag line="807" name="since" description="1.10"/>
|
3973 |
+
<tag line="807" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
3974 |
+
<tag line="807" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
3975 |
<type by_reference="false">array</type>
|
3976 |
</tag>
|
3977 |
</docblock>
|
3978 |
</method>
|
3979 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="920" package="Media Library Assistant">
|
3980 |
<name>_compose_iptc_exif_tab</name>
|
3981 |
<full_name>_compose_iptc_exif_tab</full_name>
|
3982 |
+
<docblock line="912">
|
3983 |
<description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
|
3984 |
<long-description><![CDATA[]]></long-description>
|
3985 |
+
<tag line="912" name="since" description="1.00"/>
|
3986 |
+
<tag line="912" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
3987 |
+
<tag line="912" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
3988 |
<type by_reference="false">array</type>
|
3989 |
</tag>
|
3990 |
</docblock>
|
3991 |
</method>
|
3992 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="992" package="Media Library Assistant">
|
3993 |
<name>_compose_documentation_tab</name>
|
3994 |
<full_name>_compose_documentation_tab</full_name>
|
3995 |
+
<docblock line="984">
|
3996 |
<description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
|
3997 |
<long-description><![CDATA[]]></long-description>
|
3998 |
+
<tag line="984" name="since" description="0.80"/>
|
3999 |
+
<tag line="984" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
4000 |
+
<tag line="984" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
4001 |
<type by_reference="false">array</type>
|
4002 |
</tag>
|
4003 |
</docblock>
|
4004 |
</method>
|
4005 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1011" package="Media Library Assistant">
|
4006 |
<name>mla_render_settings_page</name>
|
4007 |
<full_name>mla_render_settings_page</full_name>
|
4008 |
+
<docblock line="1004">
|
4009 |
<description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
|
4010 |
<long-description><![CDATA[]]></long-description>
|
4011 |
+
<tag line="1004" name="since" description="0.1"/>
|
4012 |
+
<tag line="1004" name="return" description="Echoes HTML markup for the Settings subpage" type="void">
|
4013 |
<type by_reference="false">void</type>
|
4014 |
</tag>
|
4015 |
</docblock>
|
4016 |
</method>
|
4017 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1061" package="Media Library Assistant">
|
4018 |
<name>_save_gallery_settings</name>
|
4019 |
<full_name>_save_gallery_settings</full_name>
|
4020 |
+
<docblock line="1052">
|
4021 |
<description><![CDATA[Save MLA Gallery settings to the options table]]></description>
|
4022 |
<long-description><![CDATA[]]></long-description>
|
4023 |
+
<tag line="1052" name="since" description="0.80"/>
|
4024 |
+
<tag line="1052" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4025 |
+
<tag line="1052" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4026 |
<type by_reference="false">array</type>
|
4027 |
</tag>
|
4028 |
</docblock>
|
4029 |
</method>
|
4030 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1294" package="Media Library Assistant">
|
4031 |
<name>_process_custom_field_mapping</name>
|
4032 |
<full_name>_process_custom_field_mapping</full_name>
|
4033 |
+
<docblock line="1283">
|
4034 |
<description><![CDATA[Process custom field settings against all image attachments
|
4035 |
without saving the settings to the mla_option]]></description>
|
4036 |
<long-description><![CDATA[]]></long-description>
|
4037 |
+
<tag line="1283" name="since" description="1.10"/>
|
4038 |
+
<tag line="1283" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4039 |
+
<tag line="1283" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
|
4040 |
<type by_reference="false">array</type>
|
4041 |
</tag>
|
4042 |
+
<tag line="1283" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4043 |
<type by_reference="false">array</type>
|
4044 |
</tag>
|
4045 |
</docblock>
|
4046 |
+
<argument line="1294">
|
4047 |
<name>$settings</name>
|
4048 |
<default><![CDATA[NULL]]></default>
|
4049 |
<type/>
|
4050 |
</argument>
|
4051 |
</method>
|
4052 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1346" package="Media Library Assistant">
|
4053 |
<name>_delete_custom_field</name>
|
4054 |
<full_name>_delete_custom_field</full_name>
|
4055 |
+
<docblock line="1337">
|
4056 |
<description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
|
4057 |
<long-description><![CDATA[]]></long-description>
|
4058 |
+
<tag line="1337" name="since" description="1.10"/>
|
4059 |
+
<tag line="1337" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
|
4060 |
<type by_reference="false">array</type>
|
4061 |
</tag>
|
4062 |
+
<tag line="1337" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4063 |
<type by_reference="false">array</type>
|
4064 |
</tag>
|
4065 |
</docblock>
|
4066 |
+
<argument line="1346">
|
4067 |
<name>$value</name>
|
4068 |
<default><![CDATA[]]></default>
|
4069 |
<type/>
|
4070 |
</argument>
|
4071 |
</method>
|
4072 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1370" package="Media Library Assistant">
|
4073 |
<name>_save_custom_field_settings</name>
|
4074 |
<full_name>_save_custom_field_settings</full_name>
|
4075 |
+
<docblock line="1360">
|
4076 |
<description><![CDATA[Save custom field settings to the options table]]></description>
|
4077 |
<long-description><![CDATA[]]></long-description>
|
4078 |
+
<tag line="1360" name="since" description="1.10"/>
|
4079 |
+
<tag line="1360" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4080 |
+
<tag line="1360" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
|
4081 |
<type by_reference="false">array</type>
|
4082 |
</tag>
|
4083 |
+
<tag line="1360" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4084 |
<type by_reference="false">array</type>
|
4085 |
</tag>
|
4086 |
</docblock>
|
4087 |
+
<argument line="1370">
|
4088 |
<name>$new_values</name>
|
4089 |
<default><![CDATA[NULL]]></default>
|
4090 |
<type/>
|
4091 |
</argument>
|
4092 |
</method>
|
4093 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1410" package="Media Library Assistant">
|
4094 |
<name>_process_iptc_exif_standard</name>
|
4095 |
<full_name>_process_iptc_exif_standard</full_name>
|
4096 |
+
<docblock line="1400">
|
4097 |
<description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
|
4098 |
without saving the settings to the mla_option]]></description>
|
4099 |
<long-description><![CDATA[]]></long-description>
|
4100 |
+
<tag line="1400" name="since" description="1.00"/>
|
4101 |
+
<tag line="1400" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4102 |
+
<tag line="1400" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4103 |
<type by_reference="false">array</type>
|
4104 |
</tag>
|
4105 |
</docblock>
|
4106 |
</method>
|
4107 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1454" package="Media Library Assistant">
|
4108 |
<name>_process_iptc_exif_taxonomy</name>
|
4109 |
<full_name>_process_iptc_exif_taxonomy</full_name>
|
4110 |
+
<docblock line="1444">
|
4111 |
<description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
|
4112 |
without saving the settings to the mla_option]]></description>
|
4113 |
<long-description><![CDATA[]]></long-description>
|
4114 |
+
<tag line="1444" name="since" description="1.00"/>
|
4115 |
+
<tag line="1444" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4116 |
+
<tag line="1444" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4117 |
<type by_reference="false">array</type>
|
4118 |
</tag>
|
4119 |
</docblock>
|
4120 |
</method>
|
4121 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1499" package="Media Library Assistant">
|
4122 |
<name>_process_iptc_exif_custom</name>
|
4123 |
<full_name>_process_iptc_exif_custom</full_name>
|
4124 |
+
<docblock line="1489">
|
4125 |
<description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
|
4126 |
without saving the settings to the mla_option]]></description>
|
4127 |
<long-description><![CDATA[]]></long-description>
|
4128 |
+
<tag line="1489" name="since" description="1.00"/>
|
4129 |
+
<tag line="1489" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4130 |
+
<tag line="1489" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4131 |
<type by_reference="false">array</type>
|
4132 |
</tag>
|
4133 |
</docblock>
|
4134 |
</method>
|
4135 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1543" package="Media Library Assistant">
|
4136 |
<name>_save_iptc_exif_settings</name>
|
4137 |
<full_name>_save_iptc_exif_settings</full_name>
|
4138 |
+
<docblock line="1534">
|
4139 |
<description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
|
4140 |
<long-description><![CDATA[]]></long-description>
|
4141 |
+
<tag line="1534" name="since" description="1.00"/>
|
4142 |
+
<tag line="1534" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4143 |
+
<tag line="1534" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4144 |
<type by_reference="false">array</type>
|
4145 |
</tag>
|
4146 |
</docblock>
|
4147 |
</method>
|
4148 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1580" package="Media Library Assistant">
|
4149 |
<name>_save_general_settings</name>
|
4150 |
<full_name>_save_general_settings</full_name>
|
4151 |
+
<docblock line="1571">
|
4152 |
<description><![CDATA[Save General settings to the options table]]></description>
|
4153 |
<long-description><![CDATA[]]></long-description>
|
4154 |
+
<tag line="1571" name="since" description="0.1"/>
|
4155 |
+
<tag line="1571" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
4156 |
+
<tag line="1571" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4157 |
<type by_reference="false">array</type>
|
4158 |
</tag>
|
4159 |
</docblock>
|
4160 |
</method>
|
4161 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1638" package="Media Library Assistant">
|
4162 |
<name>_reset_general_settings</name>
|
4163 |
<full_name>_reset_general_settings</full_name>
|
4164 |
+
<docblock line="1631">
|
4165 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
4166 |
<long-description><![CDATA[]]></long-description>
|
4167 |
+
<tag line="1631" name="since" description="0.1"/>
|
4168 |
+
<tag line="1631" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
4169 |
<type by_reference="false">array</type>
|
4170 |
</tag>
|
4171 |
</docblock>
|
4172 |
</method>
|
4173 |
</class>
|
4174 |
</file>
|
4175 |
+
<file path="includes\class-mla-shortcodes.php" hash="54c165fd7c3cad9a6caafaf1112cb0d7" package="Media Library Assistant">
|
4176 |
<docblock line="2">
|
4177 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
4178 |
<long-description><![CDATA[]]></long-description>
|
4213 |
</tag>
|
4214 |
</docblock>
|
4215 |
</property>
|
4216 |
+
<property final="false" static="true" visibility="private" line="158" namespace="global" package="Media Library Assistant">
|
4217 |
+
<name>$query_parameters</name>
|
4218 |
+
<default><![CDATA[array()]]></default>
|
4219 |
+
<docblock line="145">
|
4220 |
+
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
4221 |
+
<long-description><![CDATA[<p>This array defines parameters for the query's where filter, mla_shortcode_query_posts_where_filter.
|
4222 |
+
The parameters are set up in the mla_get_shortcode_attachments function, and
|
4223 |
+
any further logic required to translate those values is contained in the filter.</p>
|
4224 |
+
|
4225 |
+
<p>Array index values are: post_parent</p>]]></long-description>
|
4226 |
+
<tag line="145" name="since" description="1.13"/>
|
4227 |
+
<tag line="145" name="var" description="" type="array">
|
4228 |
+
<type by_reference="false">array</type>
|
4229 |
+
</tag>
|
4230 |
+
</docblock>
|
4231 |
+
</property>
|
4232 |
+
<property final="false" static="true" visibility="private" line="1104" namespace="global" package="Media Library Assistant">
|
4233 |
<name>$mla_iptc_records</name>
|
4234 |
<default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
|
4235 |
+
<docblock line="1094">
|
4236 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
4237 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
4238 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
4239 |
+
<tag line="1094" name="since" description="0.90"/>
|
4240 |
+
<tag line="1094" name="var" description="" type="array">
|
4241 |
<type by_reference="false">array</type>
|
4242 |
</tag>
|
4243 |
</docblock>
|
4244 |
</property>
|
4245 |
+
<property final="false" static="true" visibility="public" line="1203" namespace="global" package="Media Library Assistant">
|
4246 |
<name>$mla_iptc_keys</name>
|
4247 |
<default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
|
4248 |
+
<docblock line="1193">
|
4249 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
4250 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
4251 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
4252 |
+
<tag line="1193" name="since" description="0.90"/>
|
4253 |
+
<tag line="1193" name="var" description="" type="array">
|
4254 |
<type by_reference="false">array</type>
|
4255 |
</tag>
|
4256 |
</docblock>
|
4257 |
</property>
|
4258 |
+
<property final="false" static="true" visibility="private" line="1302" namespace="global" package="Media Library Assistant">
|
4259 |
<name>$mla_iptc_descriptions</name>
|
4260 |
<default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
|
4261 |
+
<docblock line="1292">
|
4262 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
4263 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
4264 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
4265 |
+
<tag line="1292" name="since" description="0.90"/>
|
4266 |
+
<tag line="1292" name="var" description="" type="array">
|
4267 |
<type by_reference="false">array</type>
|
4268 |
</tag>
|
4269 |
</docblock>
|
4270 |
</property>
|
4271 |
+
<property final="false" static="true" visibility="private" line="1401" namespace="global" package="Media Library Assistant">
|
4272 |
<name>$mla_iptc_formats</name>
|
4273 |
<default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
|
4274 |
+
<docblock line="1391">
|
4275 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
4276 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
4277 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
4278 |
+
<tag line="1391" name="since" description="0.90"/>
|
4279 |
+
<tag line="1391" name="var" description="" type="array">
|
4280 |
<type by_reference="false">array</type>
|
4281 |
</tag>
|
4282 |
</docblock>
|
4283 |
</property>
|
4284 |
+
<property final="false" static="true" visibility="private" line="1444" namespace="global" package="Media Library Assistant">
|
4285 |
<name>$mla_iptc_image_types</name>
|
4286 |
<default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
|
4287 |
+
<docblock line="1434">
|
4288 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
4289 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
4290 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
4291 |
+
<tag line="1434" name="since" description="0.90"/>
|
4292 |
+
<tag line="1434" name="var" description="" type="array">
|
4293 |
<type by_reference="false">array</type>
|
4294 |
</tag>
|
4295 |
</docblock>
|
4318 |
</tag>
|
4319 |
</docblock>
|
4320 |
</method>
|
4321 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="173" package="Media Library Assistant">
|
4322 |
<name>mla_gallery_shortcode</name>
|
4323 |
<full_name>mla_gallery_shortcode</full_name>
|
4324 |
+
<docblock line="160">
|
4325 |
<description><![CDATA[The MLA Gallery shortcode.]]></description>
|
4326 |
<long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
|
4327 |
page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
|
4328 |
Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
|
4329 |
+
<tag line="160" name="since" description=".50"/>
|
4330 |
+
<tag line="160" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
|
4331 |
<type by_reference="false">array</type>
|
4332 |
</tag>
|
4333 |
+
<tag line="160" name="return" description="HTML content to display gallery." type="string">
|
4334 |
<type by_reference="false">string</type>
|
4335 |
</tag>
|
4336 |
</docblock>
|
4337 |
+
<argument line="173">
|
4338 |
<name>$attr</name>
|
4339 |
<default><![CDATA[]]></default>
|
4340 |
<type/>
|
4341 |
</argument>
|
4342 |
</method>
|
4343 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="731" package="Media Library Assistant">
|
4344 |
<name>mla_get_shortcode_attachments</name>
|
4345 |
<full_name>mla_get_shortcode_attachments</full_name>
|
4346 |
+
<docblock line="721">
|
4347 |
<description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
|
4348 |
<long-description><![CDATA[]]></long-description>
|
4349 |
+
<tag line="721" name="since" description=".50"/>
|
4350 |
+
<tag line="721" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
|
4351 |
<type by_reference="false">int</type>
|
4352 |
</tag>
|
4353 |
+
<tag line="721" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
|
4354 |
<type by_reference="false">array</type>
|
4355 |
</tag>
|
4356 |
+
<tag line="721" name="return" description="List of attachments returned from WP_Query" type="array">
|
4357 |
<type by_reference="false">array</type>
|
4358 |
</tag>
|
4359 |
</docblock>
|
4360 |
+
<argument line="731">
|
4361 |
<name>$post_parent</name>
|
4362 |
<default><![CDATA[]]></default>
|
4363 |
<type/>
|
4364 |
</argument>
|
4365 |
+
<argument line="731">
|
4366 |
<name>$attr</name>
|
4367 |
<default><![CDATA[]]></default>
|
4368 |
<type/>
|
4369 |
</argument>
|
4370 |
</method>
|
4371 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1065" package="Media Library Assistant">
|
4372 |
<name>mla_shortcode_query_posts_where_filter</name>
|
4373 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
4374 |
+
<docblock line="1051">
|
4375 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
4376 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
4377 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
4378 |
+
Handles post_parent "any" and "none" cases.
|
4379 |
Defined as public because it's a filter.</p>]]></long-description>
|
4380 |
+
<tag line="1051" name="since" description="0.70"/>
|
4381 |
+
<tag line="1051" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
4382 |
<type by_reference="false">string</type>
|
4383 |
</tag>
|
4384 |
+
<tag line="1051" name="return" description="query clause after modification" type="string">
|
4385 |
<type by_reference="false">string</type>
|
4386 |
</tag>
|
4387 |
</docblock>
|
4388 |
+
<argument line="1065">
|
4389 |
<name>$where_clause</name>
|
4390 |
<default><![CDATA[]]></default>
|
4391 |
<type/>
|
4438 |
</docblock>
|
4439 |
</constant>
|
4440 |
</file>
|
4441 |
+
<file path="index.php" hash="5ebf22d614e269ca401feb17a88e7701" package="Media Library Assistant">
|
4442 |
<docblock line="2">
|
4443 |
<description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
|
4444 |
<long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
4445 |
will the rest of the plugin be loaded and run.</p>]]></long-description>
|
4446 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
4447 |
+
<tag line="2" name="version" description="1.13"/>
|
4448 |
</docblock>
|
4449 |
<include line="103" type="Require Once" package="Media Library Assistant">
|
4450 |
<name>includes/mla-plugin-loader.php</name>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dglingren
|
|
3 |
Donate link: http://fairtradejudaica.org/make-a-difference/donate/
|
4 |
Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 3.5
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -16,25 +16,24 @@ The Media Library Assistant provides several enhancements for managing the Media
|
|
16 |
|
17 |
* The **`[mla_gallery]` shortcode**, used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). [MLA Gallery](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") is a superset of the WordPress `[gallery]` shortcode; it is compatible with `[gallery]` and provides many enhancements. These include: 1) full query and display support for WordPress categories, tags, custom taxonomies and custom fields, 2) support for all post_mime_type values, not just images 3) media Library items need not be "attached" to the post, and 4) control over the styles, markup and content of each gallery using Style and Markup Templates.
|
18 |
|
19 |
-
* **
|
20 |
-
|
21 |
-
* **Attachment metadata** such as file size, image dimensions and where-used issues can be assigned to WordPress custom fields. You can then use the custom fields in your `[mla_gallery]` display and you can add custom fields as sortable columns in the Media/Assistant submenu table.
|
22 |
|
23 |
* **IPTC** and **EXIF** metadata can be assigned to standard WordPress fields, taxonomy terms and custom fields. You can update all existing attachments from the Settings page IPTC/EXIF tab, groups of existing attachments with a Bulk Action or one existing attachment from the Edit Media/Edit Single Item screen. Display **IPTC** and **EXIF** metadata with `[mla_gallery]` custom templates.
|
24 |
|
|
|
|
|
25 |
* **Enhanced Search Media box**. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or". Search by attachment ID is supported.
|
26 |
|
27 |
* **Where-used reporting** shows which posts use a media item as the "featured image", an inserted image or link, an entry in a `[gallery]` and/or an entry in an `[mla_gallery]`.
|
28 |
-
|
29 |
* **Complete support for ALL taxonomies**, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. You can add taxonomy columns to the Assistant listing, filter on any taxonomy, assign terms and list the attachments for a term.
|
30 |
-
* An inline "Bulk Edit" area; update author
|
31 |
-
* An inline "Quick Edit" action for many common fields
|
32 |
* Displays more attachment information such as parent information, file URL and image metadata. Uses and enhances the new Edit Media screen for WordPress 3.5 and above.
|
33 |
* Allows you to edit the post_parent, the menu_order and to "unattach" items
|
34 |
* Provides additional view filters for mime types and taxonomies
|
35 |
* Provides many more listing columns (more than 20) to choose from
|
36 |
|
37 |
-
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.
|
38 |
|
39 |
This plugin was inspired by my work on the WordPress web site for our nonprofit, Fair Trade Judaica. If you find the Media Library Assistant plugin useful and would like to support a great cause, consider a [<strong>tax-deductible</strong> donation](http://fairtradejudaica.org/make-a-difference/donate/ "Support Our Work") to our work. Thank you!
|
40 |
|
@@ -113,10 +112,22 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
113 |
5. The Settings page General tab, where you can customize support of Att. Categories, Att. Tags and other taxonomies, where-used reporting and the default sort order.
|
114 |
6. The Settings page MLA Gallery tab, where you can add custom style and markup templates for `[mla_gallery]` shortcode output.
|
115 |
7. The Settings page IPTC & EXIF Processing Options screen, where you can map image metadata to standard fields (e.g. caption), taxonomy terms and custom fields.
|
116 |
-
8. The Settings page Custom Field Processing Options screen, where you can map attachment metadata to custom fields for display in [mla_gallery] shortcodes and as sortable columns in the Media/Assistant submenu.
|
117 |
|
118 |
== Changelog ==
|
119 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
= 1.11 =
|
121 |
* New: If the search box contains (only) a numeric value it is interpreted as a search by attachment ID. You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.
|
122 |
* Fix: The edit taxonomy screen "Attachments" column is now computed correctly when adding new terms, avoiding fatal errors and other odd results.
|
@@ -238,53 +249,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
238 |
|
239 |
== Upgrade Notice ==
|
240 |
|
241 |
-
= 1.
|
242 |
-
|
243 |
-
|
244 |
-
= 1.10 =
|
245 |
-
Map attachment metadata to custom fields; add them to [mla_gallery] display and as sortable columns on the Media/Assistant submenu table. Get Photonic Gallery (plugin) integration and six other fixes.
|
246 |
-
|
247 |
-
= 1.00 =
|
248 |
-
Map IPTC and EXIF metadata to standard fields, taxonomy terms and custom fields. Get improved performance for where-used reporting. Specify default `[mla_gallery]` style and markup templates. Five other fixes.
|
249 |
-
|
250 |
-
= 0.90 =
|
251 |
-
Get `[mla_gallery]` support for custom fields, taxonomy terms and IPTC/EXIF metadata. Updated for WordPress 3.5!
|
252 |
-
|
253 |
-
= 0.81 =
|
254 |
-
Get improved default Style template, `[mla_gallery]` parameters "mla_itemwidth" and "mla_margin" for control of gallery item spacing. Quick edit support of WordPress standard Categories taxonomy has been fixed.
|
255 |
-
|
256 |
-
= 0.80 =
|
257 |
-
Get the MLA Gallery Style and Markup Templates for control over CSS styles, HTML markup and data content of `[mla_gallery]` shortcode output. Eight other enhancements and four fixes.
|
258 |
-
|
259 |
-
= 0.71 =
|
260 |
-
Get the new "Gallery in" and "MLA Gallery in" where-used reporting to see where items are returned by the `[gallery]` and `[mla_gallery]` shortcodes. Two other enhancements and two fixes.
|
261 |
-
|
262 |
-
= 0.70 =
|
263 |
-
Get the new "Gallery in" and "MLA Gallery in" where-used reporting to see where items are returned by the `[gallery]` and `[mla_gallery]` shortcodes. Two other enhancements and two fixes.
|
264 |
-
|
265 |
-
= 0.60 =
|
266 |
-
Get the enhanced Search Media box. Extend search to the name/slug, ALT text and caption fields. Connect search terms with "and" or "or". Five other enhancements and two fixes.
|
267 |
-
|
268 |
-
= 0.50 =
|
269 |
-
Upgrade for the new `[mla_gallery]` shortcode, a superset of the `[gallery]` shortcode that provides many enhancements. These include taxonomy support and all post_mime_type values (not just images).
|
270 |
-
|
271 |
-
= 0.41 =
|
272 |
-
Upgrade for the new Bulk Edit area; add, remove or replace taxonomy terms for several attachments at once. Sort your media listing on ALT Text, exclude revisions from where-used reporting.
|
273 |
-
|
274 |
-
= 0.40 =
|
275 |
-
Upgrade for the new Bulk Edit area; add, remove or replace taxonomy terms for several attachments at once. Sort your media listing on ALT Text, exclude revisions from where-used reporting.
|
276 |
-
|
277 |
-
= 0.30 =
|
278 |
-
Upgrade to support ALL taxonomies, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. Add taxonomy columns to the Assistant admin screen, filter on any taxonomy, assign terms and list the attachments for a term.
|
279 |
-
|
280 |
-
= 0.20 =
|
281 |
-
Upgrade to this version to get "Quick Edit" functionality.
|
282 |
-
|
283 |
-
= 0.11 =
|
284 |
-
You should upgrade to this version if you are getting "404 Not Found" errors when updating single items.
|
285 |
-
|
286 |
-
= 0.1 =
|
287 |
-
Initial release.
|
288 |
|
289 |
== Other Notes ==
|
290 |
|
@@ -296,7 +262,6 @@ In this section, scroll down to see:
|
|
296 |
* MLA Gallery Style and Markup Template Documentation
|
297 |
* Custom Field Processing Options
|
298 |
* IPTC & EXIF Processing Options
|
299 |
-
* Online Help Summary (Media/Assistant submenu, Edit Media screen, Taxonomy edit screens)
|
300 |
|
301 |
== Acknowledgements ==
|
302 |
|
@@ -348,6 +313,20 @@ Three `[mla_gallery]` parameters provide an easy way to control the contents of
|
|
348 |
|
349 |
All three of these parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code `mla_rollover_text="{+date+} : {+description+}"`, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
|
350 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
<h4>Order, Orderby</h4>
|
352 |
|
353 |
To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
|
@@ -386,11 +365,11 @@ You can query by author's id or the "user_nicename" value (not the "display_name
|
|
386 |
|
387 |
<h4>Category Parameters</h4>
|
388 |
|
389 |
-
Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
390 |
|
391 |
<h4>Tag Parameters</h4>
|
392 |
|
393 |
-
Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
394 |
|
395 |
Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are not allowed. You can use the "tag__in" parameter to query for multiple values.
|
396 |
|
@@ -402,8 +381,12 @@ For simple queries, enter the taxonomy name and the term(s) that must be matched
|
|
402 |
|
403 |
* `[mla_gallery attachment_category='separate-category,another-category']`
|
404 |
|
405 |
-
Note that you must use the name/slug strings for taxonomy and terms, not the "title" strings.
|
406 |
|
|
|
|
|
|
|
|
|
407 |
More complex queries can be specified by using "tax_query", e.g.:
|
408 |
|
409 |
* `[mla_gallery tax_query="array(array('taxonomy' => 'attachment_tag','field' => 'slug','terms' => 'artisan'))"]`
|
@@ -490,7 +473,11 @@ There are four prefix values for field-level data. Prefix values must be coded a
|
|
490 |
|
491 |
* `exif`: The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file.
|
492 |
Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. It is also supported by many image editing programs such as Adobe PhotoShop.
|
493 |
-
For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">Exchangeable image file format</a> article on Wikipedia.
|
|
|
|
|
|
|
|
|
494 |
|
495 |
<h3>A Table-based Template Example</h3>
|
496 |
<p>
|
@@ -597,7 +584,11 @@ The three mapping tables on the IPTC/EXIF tab have the following columns:
|
|
597 |
|
598 |
* `IPTC Value`: The IPTC (International Press Telecommunications Council) metadata, if any, embedded in the image file. For this category, you can select any of the IPTC DataSet tag and field identifiers, e.g., "2#025" for the Keywords field. The dropdown list has the identifier and the "friendly name" MLA defines for most of the IPTC fields; see the table of identifiers and friendly names in the table below. You can find more information in the <a href="http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">IPTC-NAA Information Interchange Model Version No. 4.1 specification</a>.
|
599 |
|
600 |
-
* `EXIF Value`: The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file. Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">Exchangeable image file format</a> article on Wikipedia
|
|
|
|
|
|
|
|
|
601 |
|
602 |
* `Priority`: If both the IPTC Value and the EXIF Value are non-blank for a particular image, you can select which of the values will be used for the mapping.
|
603 |
|
@@ -618,114 +609,4 @@ There are two other ways you can perform metadata mapping to one or more existin
|
|
618 |
|
619 |
* `Single Item Edit/Edit Media screen`: For WordPress 3.5 and later, you can click the "Map IPTC/EXIF metadata" link in the "Image Metadata" postbox to apply the standing mapping rules to a single attachment. For WordPress 3.4.x and earlier, you can click the "Map IPTC/EXIF metadata" button on the Single Item Edit screen to apply the standing mapping rules.
|
620 |
|
621 |
-
* `Bulk Action edit area`: To perform mapping for a group of attachments you can use the Bulk Action facility on the main Assistant screen. Check the attachments you want to map, select "edit" from the Bulk Actions dropdown list and click "Apply". The bulk edit area will open with a list of the checked attachments in the left-hand column. You can click the "Map IPTC/EXIF metadata" button in the lower left corner of the area to apply the standing mapping rules to the attachments in the list.
|
622 |
-
|
623 |
-
<h4>WordPress default title, slug and description mapping</h4>
|
624 |
-
|
625 |
-
When WordPress uploads a new image file that contains IPTC and EXIF metadata it automatically maps metadata values to the title (post_title), name/slug (post_name) and description (post_content) fields. This happens before the MLA mapping rules are applied, so if you want to override the default mapping you must select "Replace" in the "Existing Text" column.
|
626 |
-
|
627 |
-
The WordPress rules are somewhat complex; consult the source code if you need exact details. Roughly speaking, the priority order for mapping the post_title and post_name values from non-blank IPTC/EXIF metadata is:
|
628 |
-
|
629 |
-
1. EXIF "Title"
|
630 |
-
1. EXIF "ImageDescription" (if less than 80 characters)
|
631 |
-
1. IPTC 2#105 "headline"
|
632 |
-
1. IPTC 2#005 "object-name"
|
633 |
-
1. IPTC 2#120 "caption-or-abstract" (if less than 80 characters)
|
634 |
-
|
635 |
-
The priority order for mapping the post_content value from non-blank IPTC/EXIF metadata is:
|
636 |
-
|
637 |
-
1. EXIF "ImageDescription" (if different from post_title)
|
638 |
-
1. IPTC 2#120 "caption-or-abstract" (if different from post_title)
|
639 |
-
|
640 |
-
== Online Help Summary ==
|
641 |
-
|
642 |
-
<p><strong><em>Media/Assistant Submenu Table</em></strong></p>
|
643 |
-
<h4>Overview</h4>
|
644 |
-
<p>All the files you’ve uploaded are listed in the Media/Assistant submenu table, ordered by the Title field. You can change the sort order by clicking on one of the blue column names. You can change the default sort order on the Settings screen.</p>
|
645 |
-
<p>You can use the Screen Options tab to customize the display of this screen. You can choose any combination of the sixteen (16) columns available for display. You can also choose how many items appear on each page of the display.</p>
|
646 |
-
<p>You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by month using the dropdown menu above the media table.</p>
|
647 |
-
<p>If you have selected “Attachment Categories” support, you can filter the list by selecting “All Categories”, “No Categories” or a specific category from the drop down list. If you select a category that has child categories beneath it, attachments in any of the child categories will also appear in the filtered list.</p>
|
648 |
-
<p><strong>NOTE:</strong> Month and category filters are “sticky”, i.e., they will persist as you resort the display or change the file type/status view.</p>
|
649 |
-
<h4>Featured/Inserted</h4>
|
650 |
-
<p>The “Featured in” and “Inserted in” columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a “Featured Image” or as an embedded image or link.</p>
|
651 |
-
<p>You can also use the information in the “Title/Name” column to identify “Orphan” items that are not used in any post or page and items with a “Bad Parent” (a parent that does contain any reference to the item) or an “Invalid Parent” (a parent that does not exist).</p>
|
652 |
-
<p>If performance is a concern, you can go to the Settings page and disable either or both of these columns.</p>
|
653 |
-
<h4>Gallery/MLA Gallery</h4>
|
654 |
-
<p>The “Gallery in” and “MLA Gallery in” columns are a powerful tool for managing your attachments. They show you where each attachment is returned by a `[gallery]` or `[mla_gallery]` shortcode in a post or page. These columns do <strong>not</strong> use the post_parent (attached to) status of the item; they actually execute each shortcode and tabulate the attachments they return.</p>
|
655 |
-
<p>You can also use the information in the “Title/Name” column to identify “Orphan” items that are not used in any post or page and items with a “Bad Parent” (a parent that does contain any reference to the item) or an “Invalid Parent” (a parent that does not exist).</p>
|
656 |
-
<p>If performance is a concern, you can go to the Settings page and disable either or both of these columns. You can also adjust the settings to cache the results for fifteen minutes between updates. Results are automatically updated after a post, page or attachment is added or updated.</p>
|
657 |
-
<h4>Taxonomy Support</h4>
|
658 |
-
<p>The “taxonomy” columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
|
659 |
-
<p>The Media Library Assistant provides two pre-defined taxonomies, “Att. Categories” and “Att. Tags” which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
|
660 |
-
<p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
|
661 |
-
<p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an “Attachments” column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
|
662 |
-
<h4>Custom Fields</h4>
|
663 |
-
<p>You can add sortable columns to the Media/Assistant submenu table by visiting the Custom Fields tab on the Settings page. There you define rules that map attachment metadata such as file size to WordPress custom fields. The “MLA Column” checkbox for each rule lets you select which rules will appear on this screen.</p>
|
664 |
-
<h4>Search Media</h4>
|
665 |
-
<p>The “Search Media” box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
|
666 |
-
<p>Once you’ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
|
667 |
-
<p>If you enter a numeric value (only) in the search box, it is interpreted as a search by attachment ID. You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.</p>
|
668 |
-
<h4>Bulk Actions</h4>
|
669 |
-
<p>The “Bulk Actions” dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
|
670 |
-
<p>Once you’ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
|
671 |
-
<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>
|
672 |
-
<p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
|
673 |
-
<p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you’d like to perform.</p>
|
674 |
-
<p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
|
675 |
-
<h4>Available Actions</h4>
|
676 |
-
<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 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). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
|
677 |
-
<p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
|
678 |
-
<h4>Attaching Files</h4>
|
679 |
-
<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>
|
680 |
-
<p><strong><em>Single Item Edit Screen (3.4.x) / Edit Media Screen (3.5+)</em></strong></p>
|
681 |
-
<h4>MLA Enhancements, 3.5+</h4>
|
682 |
-
WordPress 3.5 introduced a much-improved Edit Media screen. Media Library Assistant incorporates and adds several enhancements to the new screen:
|
683 |
-
|
684 |
-
* Displays Last Modified date and time
|
685 |
-
* Supports mapping of Custom Field and ITPC/EXIF metadata for this attachment
|
686 |
-
* Supports custom fields, which `[mla_gallery]` can use for query and display
|
687 |
-
* Supports Parent Info and Menu Order
|
688 |
-
* Displays Image Metadata
|
689 |
-
* Displays where-used information; Featured in, Inserted in, Gallery in and MLA Gallery in
|
690 |
-
|
691 |
-
<p>Remember to click the “Update” button to save your work.</p>
|
692 |
-
<h4>Overview, 3.4.x</h4>
|
693 |
-
<p>This screen allows you to view many of the fields associated with an attachment and to edit several of them. Fields that are read-only have a light gray background; fields that may be changes have a white background. Hints and helpful information appear below some fields.</p>
|
694 |
-
<p>Remember to click the “Update” button to save your work. You may instead click the “Cancel” button to discard any changes.</p>
|
695 |
-
<h4>Taxonomies</h4>
|
696 |
-
<p>If there are custom taxonomies, such as “Attachment Categories” or “Attachment Tags”, registered for attachments they will apppear in the right-hand column on this screen. You can add or remove terms from any of the taxonomies displayed. Changes will not be saved until you click the “Update” button for the attachment.</p>
|
697 |
-
<h4>Parent Info</h4>
|
698 |
-
<p>The “Parent Info” field displays the Post ID, type and title of the post or page to which the item is attached. It will display “0 (unattached)” if there is no parent post or page.</p>
|
699 |
-
<p>You can change the post or page to which the item is attached by changing the Post ID value and clicking the “Update” button. Changing the Post ID value to zero (0) will “unattach” the item.</p>
|
700 |
-
<h4>Metadata Mapping</h4>
|
701 |
-
<p>The “Map Custom Field Metadata” and “Map IPTC/EXIF Metadata” links let you create or update attachment values by applying the rules you define on the Media Library Assistant Settings page. The links are located in the “Save” metabox in the upper-right part of the screen, just below the Last Modified date and time.</p>
|
702 |
-
<p>When you click on one of the two links, all of the mapping rules for that type of metadata will be applied to the attachment you are editing. The updates are immediate; you do not need to click the “Update” button to make them permanent.</p>
|
703 |
-
<p><strong><em>Edit Hierarchical Taxonomies (Categories)</em></strong></p>
|
704 |
-
<h4>Overview</h4>
|
705 |
-
<p>You can use <strong>categories</strong> to define sections of your site and group related attachments. The default is “none”, i.e., the attachment is not associated with any category.</p>
|
706 |
-
<p>What’s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information about your attachment (names, subjects, etc) that may or may not apply to other attachments, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.</p>
|
707 |
-
<p>You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.</p>
|
708 |
-
<h4>Adding Categories</h4>
|
709 |
-
<p>When adding a new category on this screen, you’ll fill in the following fields:</p>
|
710 |
-
<ul>
|
711 |
-
<li><strong>Name</strong> - The name is how it appears on your site.</li>
|
712 |
-
<li><strong>Slug</strong> - The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.</li>
|
713 |
-
<li><strong>Parent</strong> - Categories, unlike tags, can have a hierarchy. You might have a Landscape category, and under that have children categories for Mountains and Seashore. Totally optional. To create a subcategory, just choose another category from the Parent dropdown.</li>
|
714 |
-
<li><strong>Description</strong> - The description is not prominent by default; however, some themes may display it.</li>
|
715 |
-
</ul>
|
716 |
-
<h4>Attachments Column</h4>
|
717 |
-
<p>The “Attachments” colunm at the right of the table gives you the number of attachments associated with each category. You can click on the number to get a list of all the attachments with that category. The heading on the list page(s) will display the category value you’ve selected.</p>
|
718 |
-
<p><strong><em>Edit Flat Taxonomies (Tags)</em></strong></p>
|
719 |
-
<h4>Overview</h4>
|
720 |
-
<p>You can assign keywords to your attachments using <strong>tags</strong>. Unlike categories, tags have no hierarchy, meaning there’s no relationship from one tag to another.</p>
|
721 |
-
<p>What’s the difference between categories and tags? Normally, tags are ad-hoc keywords that identify important information about your attachment (names, subjects, etc.) that may or may not apply to other attachments, while categories are pre-determined sections. If you think of your site like a book, the categories are like the Table of Contents and the tags are like the terms in the index.</p>
|
722 |
-
<p>You can change the display of this screen using the Screen Options tab to set how many items are displayed per screen and to display/hide columns in the table.</p>
|
723 |
-
<h4>Adding Tags</h4>
|
724 |
-
<p>When adding a new tag on this screen, you’ll fill in the following fields:</p>
|
725 |
-
<ul>
|
726 |
-
<li><strong>Name</strong> - The name is how it appears on your site.</li>
|
727 |
-
<li><strong>Slug</strong> - The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.</li>
|
728 |
-
<li><strong>Description</strong> - The description is not prominent by default; however, some themes may display it.</li>
|
729 |
-
</ul>
|
730 |
-
<h4>Attachments Column</h4>
|
731 |
-
<p>The “Attachments” colunm at the right of the table gives you the number of attachments associated with each tag. You can click on the number to get a list of all the attachments with that tag. The heading on the list page(s) will display the tag value you’ve selected.</p>
|
3 |
Donate link: http://fairtradejudaica.org/make-a-difference/donate/
|
4 |
Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
16 |
|
17 |
* The **`[mla_gallery]` shortcode**, used in a post, page or custom post type to add a gallery of images and/or other Media Library items (such as PDF documents). [MLA Gallery](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") is a superset of the WordPress `[gallery]` shortcode; it is compatible with `[gallery]` and provides many enhancements. These include: 1) full query and display support for WordPress categories, tags, custom taxonomies and custom fields, 2) support for all post_mime_type values, not just images 3) media Library items need not be "attached" to the post, and 4) control over the styles, markup and content of each gallery using Style and Markup Templates.
|
18 |
|
19 |
+
* **Attachment metadata** such as file size, image dimensions and where-used issues can be assigned to WordPress custom fields. You can then use the custom fields in your `[mla_gallery]` display and you can add custom fields as sortable, searchable columns in the Media/Assistant submenu table.
|
|
|
|
|
20 |
|
21 |
* **IPTC** and **EXIF** metadata can be assigned to standard WordPress fields, taxonomy terms and custom fields. You can update all existing attachments from the Settings page IPTC/EXIF tab, groups of existing attachments with a Bulk Action or one existing attachment from the Edit Media/Edit Single Item screen. Display **IPTC** and **EXIF** metadata with `[mla_gallery]` custom templates.
|
22 |
|
23 |
+
* **Integrates with Photonic Gallery** (plugin), so you can add slideshows, thumbnail strips and special effects to your `[mla_gallery]` galleries.
|
24 |
+
|
25 |
* **Enhanced Search Media box**. Search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or". Search by attachment ID is supported.
|
26 |
|
27 |
* **Where-used reporting** shows which posts use a media item as the "featured image", an inserted image or link, an entry in a `[gallery]` and/or an entry in an `[mla_gallery]`.
|
|
|
28 |
* **Complete support for ALL taxonomies**, including the standard Categories and Tags, your custom taxonomies and the Assistant's pre-defined Att. Categories and Att. Tags. You can add taxonomy columns to the Assistant listing, filter on any taxonomy, assign terms and list the attachments for a term.
|
29 |
+
* An inline **"Bulk Edit"** area; update author, parent and custom fields, add, remove or replace taxonomy terms for several attachments at once
|
30 |
+
* An inline **"Quick Edit"** action for many common fields and for custom fields
|
31 |
* Displays more attachment information such as parent information, file URL and image metadata. Uses and enhances the new Edit Media screen for WordPress 3.5 and above.
|
32 |
* Allows you to edit the post_parent, the menu_order and to "unattach" items
|
33 |
* Provides additional view filters for mime types and taxonomies
|
34 |
* Provides many more listing columns (more than 20) to choose from
|
35 |
|
36 |
+
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.
|
37 |
|
38 |
This plugin was inspired by my work on the WordPress web site for our nonprofit, Fair Trade Judaica. If you find the Media Library Assistant plugin useful and would like to support a great cause, consider a [<strong>tax-deductible</strong> donation](http://fairtradejudaica.org/make-a-difference/donate/ "Support Our Work") to our work. Thank you!
|
39 |
|
112 |
5. The Settings page General tab, where you can customize support of Att. Categories, Att. Tags and other taxonomies, where-used reporting and the default sort order.
|
113 |
6. The Settings page MLA Gallery tab, where you can add custom style and markup templates for `[mla_gallery]` shortcode output.
|
114 |
7. The Settings page IPTC & EXIF Processing Options screen, where you can map image metadata to standard fields (e.g. caption), taxonomy terms and custom fields.
|
115 |
+
8. The Settings page Custom Field Processing Options screen, where you can map attachment metadata to custom fields for display in [mla_gallery] shortcodes and as sortable, searchable columns in the Media/Assistant submenu.
|
116 |
|
117 |
== Changelog ==
|
118 |
|
119 |
+
= 1.13 =
|
120 |
+
* New: Any custom field can be added as a sortable, searchable (click on a value to filter the table display) column in the Media/Assistant submenu. Custom fields can also be added to the quick edit and bulk edit areas. Use the Settings/Media Library Assistant Custom Field tab to control all three uses.
|
121 |
+
* New: Access to EXIF data expanded to include the COMPUTED, THUMBNAIL and COMMENT arrays. Pseudo-values `ALL_EXIF` and `ALL_IPTC` added. Details in the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") and the Settings/Media Library Assistant Documentation tab.
|
122 |
+
* New: For the `[mla_gallery]` shortcode, `mla_viewer=true` and related parameters can be coded to supply thumbnail images for non-image file types pdf, txt, doc, xls and ppt using the Google File Viewer.
|
123 |
+
* New: For the `[mla_gallery]` shortcode, `post_parent=none` or `post_parent=any` can be coded to restrict gallery output to unattached or attached items respectively.
|
124 |
+
* New: For the `[mla_gallery]` shortcode, `mla_style=none` parameter can be coded to suppress the inline CSS styles added to gallery output.
|
125 |
+
* Fix: Corrected occasional error in field-level markup substitution using the `exif` prefix.
|
126 |
+
* Fix: Corrected error in Custom Field Mapping of `_wp_attachment_metadata` during Media/Add New processing.
|
127 |
+
|
128 |
+
= 1.12 =
|
129 |
+
* One-off version for a private client.
|
130 |
+
|
131 |
= 1.11 =
|
132 |
* New: If the search box contains (only) a numeric value it is interpreted as a search by attachment ID. You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.
|
133 |
* Fix: The edit taxonomy screen "Attachments" column is now computed correctly when adding new terms, avoiding fatal errors and other odd results.
|
249 |
|
250 |
== Upgrade Notice ==
|
251 |
|
252 |
+
= 1.13 =
|
253 |
+
Add custom fields to the quick and bulk edit areas; sort and search on them in the Media/Assistant submenu. Expanded EXIF data access, including COMPUTED values. Google File Viewer support, two other enhancements and two fixes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
|
255 |
== Other Notes ==
|
256 |
|
262 |
* MLA Gallery Style and Markup Template Documentation
|
263 |
* Custom Field Processing Options
|
264 |
* IPTC & EXIF Processing Options
|
|
|
265 |
|
266 |
== Acknowledgements ==
|
267 |
|
313 |
|
314 |
All three of these parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code `mla_rollover_text="{+date+} : {+description+}"`, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
|
315 |
|
316 |
+
<h4>Google File Viewer Support</h4>
|
317 |
+
|
318 |
+
Four `[mla_gallery]` parameters provide an easy way to generate thumbnail images for the non-image file types.
|
319 |
+
|
320 |
+
* `mla_viewer`: must be "true" to enable thumbnail generation
|
321 |
+
|
322 |
+
* `mla_viewer_extensions`: a comma-delimited list of the file extensions to be processed; the default is "pdf,txt,doc,xls,ppt" (do not include the dot (".") preceding the file extension). You may add or remove extensions, but these are known to generate reasonable thumbnail images. Sadly, the newer "docx,xlsx,pptx" extensions do not work well with the Google File Viewer.
|
323 |
+
|
324 |
+
* `mla_viewer_page`: the page number (default "1") to be used for the thumbnail image. If you specify a value greater than the number of pages in the file, no image is generated.
|
325 |
+
|
326 |
+
* `mla_viewer_width`: the width in pixels (default "150") of the generated thumbnail image. The height will be set automatically and cannot be specified.
|
327 |
+
|
328 |
+
When this feature is active, gallery items for which WordPress can generate a thumbnail image are not altered. If WordPress generation fails, the gallery thumbnail is replaced by an "img" html tag whose "src" attribute contains a url reference to the Google File Viewer. The Google File Viewer arguments include the url of the source file, the page number and the width. Note that the source file must be Internet accessible; files behind firewalls and on local servers will not generate a thumbnail image.
|
329 |
+
|
330 |
<h4>Order, Orderby</h4>
|
331 |
|
332 |
To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
|
365 |
|
366 |
<h4>Category Parameters</h4>
|
367 |
|
368 |
+
The Category parameters search in the WordPress core "Categories" taxonomy. Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
369 |
|
370 |
<h4>Tag Parameters</h4>
|
371 |
|
372 |
+
The Tag parameters search in the WordPress core "Tags" taxonomy. Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
373 |
|
374 |
Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are not allowed. You can use the "tag__in" parameter to query for multiple values.
|
375 |
|
381 |
|
382 |
* `[mla_gallery attachment_category='separate-category,another-category']`
|
383 |
|
384 |
+
Note that you must use the name/slug strings for taxonomy and terms, not the "title" strings. If you are using the "Att. Tag" taxonomy built in to MLA then your shortcode should be something like:
|
385 |
|
386 |
+
* `[mla_gallery attachment_tag=artisan post_parent=all]`
|
387 |
+
|
388 |
+
In this example, "attachment_tag" is the WordPress taxonomy name/slug for the taxonomy. If you're using "Att. Category", the slug would be "attachment_category".
|
389 |
+
|
390 |
More complex queries can be specified by using "tax_query", e.g.:
|
391 |
|
392 |
* `[mla_gallery tax_query="array(array('taxonomy' => 'attachment_tag','field' => 'slug','terms' => 'artisan'))"]`
|
473 |
|
474 |
* `exif`: The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file.
|
475 |
Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. It is also supported by many image editing programs such as Adobe PhotoShop.
|
476 |
+
For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">Exchangeable image file format</a> article on Wikipedia. You can find External Links to EXIF standards and tag listings at the end of the Wikipedia article.
|
477 |
+
<br /> <br />
|
478 |
+
MLA uses a standard PHP function, <a href="http://php.net/manual/en/function.exif-read-data.php" title="PHP Manual page for exif_read_data" target="_blank">exif_read_data</a>, to extract EXIF data from images. The function returns three arrays in addition to the raw EXIF data; COMPUTED, THUMBNAIL and COMMENT. You can access the array elements by prefacing the element you want with the array name. For example, the user comment text is available as "COMPUTED.UserComment" and "COMPUTED.UserCommentEncoding". You can also get "COMPUTED.Copyright" and its two parts (if present), "COMPUTED.Copyright.Photographer" and "COMPUTED.Copyright.Editor". The THUMBNAIL and COMMENT arrays work in a similar fashion.
|
479 |
+
<br /> <br />
|
480 |
+
Two special exif "pseudo-values" are available; <strong>ALL_IPTC</strong> and <strong>ALL_EXIF</strong>. These return a string representation of all IPTC or EXIF data respectively. You can use these pseudo-values to examine the metadata in an image, find field names and see what values are embedded in the image.
|
481 |
|
482 |
<h3>A Table-based Template Example</h3>
|
483 |
<p>
|
584 |
|
585 |
* `IPTC Value`: The IPTC (International Press Telecommunications Council) metadata, if any, embedded in the image file. For this category, you can select any of the IPTC DataSet tag and field identifiers, e.g., "2#025" for the Keywords field. The dropdown list has the identifier and the "friendly name" MLA defines for most of the IPTC fields; see the table of identifiers and friendly names in the table below. You can find more information in the <a href="http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">IPTC-NAA Information Interchange Model Version No. 4.1 specification</a>.
|
586 |
|
587 |
+
* `EXIF Value`: The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file. Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">Exchangeable image file format</a> article on Wikipedia. You can find External Links to EXIF standards and tag listings at the end of the Wikipedia article.
|
588 |
+
<br /> <br />
|
589 |
+
MLA uses a standard PHP function, <a href="http://php.net/manual/en/function.exif-read-data.php" title="PHP Manual page for exif_read_data" target="_blank">exif_read_data</a>, to extract EXIF data from images. The function returns three arrays in addition to the raw EXIF data; COMPUTED, THUMBNAIL and COMMENT. You can access the array elements by prefacing the element you want with the array name. For example, the user comment text is available as "COMPUTED.UserComment" and "COMPUTED.UserCommentEncoding". You can also get "COMPUTED.Copyright" and its two parts (if present), "COMPUTED.Copyright.Photographer" and "COMPUTED.Copyright.Editor". The THUMBNAIL and COMMENT arrays work in a similar fashion.
|
590 |
+
<br /> <br />
|
591 |
+
Two special exif "pseudo-values" are available; <strong>ALL_IPTC</strong> and <strong>ALL_EXIF</strong>. These return a string representation of all IPTC or EXIF data respectively. You can use these pseudo-values to examine the metadata in an image, find field names and see what values are embedded in the image.
|
592 |
|
593 |
* `Priority`: If both the IPTC Value and the EXIF Value are non-blank for a particular image, you can select which of the values will be used for the mapping.
|
594 |
|
609 |
|
610 |
* `Single Item Edit/Edit Media screen`: For WordPress 3.5 and later, you can click the "Map IPTC/EXIF metadata" link in the "Image Metadata" postbox to apply the standing mapping rules to a single attachment. For WordPress 3.4.x and earlier, you can click the "Map IPTC/EXIF metadata" button on the Single Item Edit screen to apply the standing mapping rules.
|
611 |
|
612 |
+
* `Bulk Action edit area`: To perform mapping for a group of attachments you can use the Bulk Action facility on the main Assistant screen. Check the attachments you want to map, select "edit" from the Bulk Actions dropdown list and click "Apply". The bulk edit area will open with a list of the checked attachments in the left-hand column. You can click the "Map IPTC/EXIF metadata" button in the lower left corner of the area to apply the standing mapping rules to the attachments in the list.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tpls/admin-display-settings-page.tpl
CHANGED
@@ -213,10 +213,13 @@ Custom field mapping can be applied automatically when an attachment is added to
|
|
213 |
If you click any of the "Map All Attachments" buttons, the rule currently displayed for that field will be immediately applied to <strong><em>ALL</em></strong> of the attachments in your site. Rule changes are <strong><em>NOT</em></strong> saved when you click any of these buttons, and <strong><em>THERE IS NO UNDO FOR THESE ACTIONS!</em></strong>
|
214 |
</p>
|
215 |
<p>
|
|
|
|
|
|
|
216 |
You can find more information about all of these topics on the <a href="http:/wp-admin/options-general.php?page=mla-settings-menu&mla_tab=documentation#mla_custom_field_mapping" title="Custom Field Processing Options documentation">Documentation tab</a>.
|
217 |
</p>
|
218 |
<p>
|
219 |
-
<strong>NOTE:</strong> Check the box in the "MLA Column" column to make the field a sortable column in the Media/Assistant submenu table. The "file_size", "pixels", "width" and "height" data sources will sort more sensibly if you use the "Commas" format.
|
220 |
</p>
|
221 |
<form method="post" class="mla-display-settings-page" id="mla-display-settings-custom-field-tab">
|
222 |
<br />
|
213 |
If you click any of the "Map All Attachments" buttons, the rule currently displayed for that field will be immediately applied to <strong><em>ALL</em></strong> of the attachments in your site. Rule changes are <strong><em>NOT</em></strong> saved when you click any of these buttons, and <strong><em>THERE IS NO UNDO FOR THESE ACTIONS!</em></strong>
|
214 |
</p>
|
215 |
<p>
|
216 |
+
If you just want to add a custom field to the Media/Assistant submenu, the quick edit area and/or the bulk edit area you can bypass the mapping logic by leaving the Data Source value as "-- None (select a value) --".
|
217 |
+
</p>
|
218 |
+
<p>
|
219 |
You can find more information about all of these topics on the <a href="http:/wp-admin/options-general.php?page=mla-settings-menu&mla_tab=documentation#mla_custom_field_mapping" title="Custom Field Processing Options documentation">Documentation tab</a>.
|
220 |
</p>
|
221 |
<p>
|
222 |
+
<strong>NOTE:</strong> Check the box in the "MLA Column" column to make the field a sortable, searchable column in the Media/Assistant submenu table. The "file_size", "pixels", "width" and "height" data sources will sort more sensibly if you use the "Commas" format. Check the "Quick Edit" or "Bulk Edit" box to add the field to the quick edit or bulk edit areas of the Media/Assistant submenu.
|
223 |
</p>
|
224 |
<form method="post" class="mla-display-settings-page" id="mla-display-settings-custom-field-tab">
|
225 |
<br />
|
tpls/admin-inline-edit-form.tpl
CHANGED
@@ -26,6 +26,10 @@
|
|
26 |
<input type="radio" name="tax_action[[+tax_attr+]]" id="tax_remove_[+tax_attr+]" value="remove" /> Remove
|
27 |
<input type="radio" name="tax_action[[+tax_attr+]]" id="tax_reset_[+tax_attr+]" value="replace" /> Replace
|
28 |
</div>
|
|
|
|
|
|
|
|
|
29 |
<!-- template="page" -->
|
30 |
<form method="get" action="">
|
31 |
<table width="99%" style="display: none">
|
@@ -54,6 +58,7 @@
|
|
54 |
<input type="text" name="menu_order" value="" />
|
55 |
</span> </label>
|
56 |
[+authors+]
|
|
|
57 |
</div>
|
58 |
</fieldset>
|
59 |
[+quick_middle_column+]
|
@@ -86,6 +91,7 @@
|
|
86 |
<input type="text" name="post_parent" value="" />
|
87 |
</span> </label>
|
88 |
[+bulk_authors+]
|
|
|
89 |
</div>
|
90 |
</fieldset>
|
91 |
<p class="submit inline-edit-save">
|
26 |
<input type="radio" name="tax_action[[+tax_attr+]]" id="tax_remove_[+tax_attr+]" value="remove" /> Remove
|
27 |
<input type="radio" name="tax_action[[+tax_attr+]]" id="tax_reset_[+tax_attr+]" value="replace" /> Replace
|
28 |
</div>
|
29 |
+
<!-- template="custom_field" -->
|
30 |
+
<label class="inline-edit-[+slug+]"> <span class="title">[+label+]</span> <span class="input-text-wrap">
|
31 |
+
<input type="text" name="[+slug+]" value="" />
|
32 |
+
</span> </label>
|
33 |
<!-- template="page" -->
|
34 |
<form method="get" action="">
|
35 |
<table width="99%" style="display: none">
|
58 |
<input type="text" name="menu_order" value="" />
|
59 |
</span> </label>
|
60 |
[+authors+]
|
61 |
+
[+custom_fields+]
|
62 |
</div>
|
63 |
</fieldset>
|
64 |
[+quick_middle_column+]
|
91 |
<input type="text" name="post_parent" value="" />
|
92 |
</span> </label>
|
93 |
[+bulk_authors+]
|
94 |
+
[+bulk_custom_fields+]
|
95 |
</div>
|
96 |
</fieldset>
|
97 |
<p class="submit inline-edit-save">
|
tpls/documentation-settings-tab.tpl
CHANGED
@@ -69,7 +69,7 @@ Two [mla_gallery] parameters provide a way to apply custom style and markup temp
|
|
69 |
<table>
|
70 |
<tr>
|
71 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_style</td>
|
72 |
-
<td>replaces the default style template for an [mla_gallery] shortcode
|
73 |
</tr>
|
74 |
<tr>
|
75 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_markup</td>
|
@@ -117,6 +117,30 @@ Three [mla_gallery] parameters provide an easy way to control the contents of ga
|
|
117 |
<p>
|
118 |
All three of these parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code `mla_rollover_text="{+date+} : {+description+}"`, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
|
119 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
<h4>Order, Orderby</h4>
|
121 |
<p>
|
122 |
To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
|
@@ -149,7 +173,10 @@ The "id" parameter lets you specify a post ID for your query. If the "id" parame
|
|
149 |
For WordPress 3.5 and later, the "ids" parameter lets you specify a list of Post IDs. The attachment(s) matching the "ids" values will be displayed in the order specified by the list.
|
150 |
</p>
|
151 |
<p>
|
152 |
-
You can use the "post_parent" to override the default behavior. If you set "post_parent" to a specific post ID, only the items attached to that post are displayed. If you set "post_parent" to "current"
|
|
|
|
|
|
|
153 |
</p>
|
154 |
<p>
|
155 |
For example, [mla_gallery tag="artisan"] will display all images having the specified tag value, regardless of which post (if any) they are attached to. If you use [mla_gallery tag="artisan" post_parent="current"] it will display images having the specified tag value only if they are attached to the current post.
|
@@ -160,11 +187,11 @@ You can query by author's id or the "user_nicename" value (not the "display_name
|
|
160 |
</p>
|
161 |
<h4>Category Parameters</h4>
|
162 |
<p>
|
163 |
-
Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
164 |
</p>
|
165 |
<h4>Tag Parameters</h4>
|
166 |
<p>
|
167 |
-
Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
168 |
</p>
|
169 |
<p>
|
170 |
Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are not allowed. You can use the "tag__in" parameter to query for multiple values.
|
@@ -180,7 +207,13 @@ For simple queries, enter the taxonomy name and the term(s) that must be matched
|
|
180 |
<li>[mla_gallery attachment_category='separate-category,another-category']</li>
|
181 |
</ul>
|
182 |
<p>
|
183 |
-
Note that you must use the name/slug strings for taxonomy and terms, not the "title" strings.
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
</p>
|
185 |
<p>
|
186 |
More complex queries can be specified by using "tax_query", e.g.:
|
@@ -578,7 +611,11 @@ There are four prefix values for field-level data. Prefix values must be coded a
|
|
578 |
Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. It is also supported by many image editing programs such as Adobe PhotoShop.
|
579 |
For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive.
|
580 |
<br /> <br />
|
581 |
-
You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">Exchangeable image file format</a> article on Wikipedia
|
|
|
|
|
|
|
|
|
582 |
</tr>
|
583 |
</table>
|
584 |
|
@@ -669,7 +706,7 @@ This is a powerful tool, but it comes at the price of additional database storag
|
|
669 |
</p>
|
670 |
<ul class="mla_settings">
|
671 |
<li>You can add the data to an [mla_gallery] with a field-level markup substitution parameter. For example, add the image dimensions or a list of all the intermediate sizes available for the image.</li>
|
672 |
-
<li>You can add the data as a sortable column to the Media/Assistant submenu table. For example, you can find all the "orphans" in your library by adding "reference_issues" and then sorting by that column.</li>
|
673 |
</ul>
|
674 |
<p>
|
675 |
Most of the data elements are static, i.e., they do not change after the attachment is added to the Media Library.
|
@@ -678,6 +715,9 @@ The parent/reference information (parent_type, parent_name, parent_issues, refer
|
|
678 |
<p>
|
679 |
Several of the data elements are sourced from the WordPress "image_meta" array. The credit, caption, copyright and title elements are taken from the IPTC/EXIF metadata (if any), but they go through a number of filtering rules that are not easy to replicate with the MLA IPTC/EXIF processing rules. You may find these "image_meta" elements more useful than the raw IPTC/EXIF metadata.
|
680 |
</p>
|
|
|
|
|
|
|
681 |
<a name="mla_custom_field_parameters"></a>
|
682 |
|
683 |
<p>
|
@@ -689,6 +729,10 @@ Several of the data elements are sourced from the WordPress "image_meta" array.
|
|
689 |
</p>
|
690 |
<table>
|
691 |
<tr>
|
|
|
|
|
|
|
|
|
692 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">path</td>
|
693 |
<td>path portion of the base_file value, e.g., 2012/11/</td>
|
694 |
</tr>
|
@@ -849,7 +893,11 @@ The three mapping tables on the IPTC/EXIF tab have the following columns:
|
|
849 |
</dd>
|
850 |
<dt>EXIF Value</dt>
|
851 |
<dd>The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file.
|
852 |
-
Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="Exchangeable image file format Wikipedia article" target="_blank">Exchangeable image file format</a> article on Wikipedia.
|
|
|
|
|
|
|
|
|
853 |
</dd>
|
854 |
<dt>Priority</dt>
|
855 |
<dd>If both the IPTC Value and the EXIF Value are non-blank for a particular image, you can select which of the values will be used for the mapping.
|
69 |
<table>
|
70 |
<tr>
|
71 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_style</td>
|
72 |
+
<td>replaces the default style template for an [mla_gallery] shortcode. You can code "none" to suppress the addition of CSS inline styles entirely.</td>
|
73 |
</tr>
|
74 |
<tr>
|
75 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_markup</td>
|
117 |
<p>
|
118 |
All three of these parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code `mla_rollover_text="{+date+} : {+description+}"`, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
|
119 |
</p>
|
120 |
+
<h4>Google File Viewer Support</h4>
|
121 |
+
<p>
|
122 |
+
Four [mla_gallery] parameters provide an easy way to generate thumbnail images for the non-image file types.
|
123 |
+
</p>
|
124 |
+
<table>
|
125 |
+
<tr>
|
126 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_viewer</td>
|
127 |
+
<td>must be "true" to enable thumbnail generation</td>
|
128 |
+
</tr>
|
129 |
+
<tr>
|
130 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_viewer_extensions</td>
|
131 |
+
<td>a comma-delimited list of the file extensions to be processed; the default is "pdf,txt,doc,xls,ppt" (do not include the dot (".") preceding the file extension). You may add or remove extensions, but these are known to generate reasonable thumbnail images. Sadly, the newer "docx,xlsx,pptx" extensions do not work well with the Google File Viewer.</td>
|
132 |
+
</tr>
|
133 |
+
<tr>
|
134 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_viewer_page</td>
|
135 |
+
<td>the page number (default "1") to be used for the thumbnail image. If you specify a value greater than the number of pages in the file, no image is generated.</td>
|
136 |
+
</tr>
|
137 |
+
<tr>
|
138 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_viewer_width</td>
|
139 |
+
<td>the width in pixels (default "150") of the generated thumbnail image. The height will be set automatically and cannot be specified.</td>
|
140 |
+
</tr>
|
141 |
+
</table>
|
142 |
+
<p>
|
143 |
+
When this feature is active, gallery items for which WordPress can generate a thumbnail image are not altered. If WordPress generation fails, the gallery thumbnail is replaced by an "img" html tag whose "src" attribute contains a url reference to the Google File Viewer. The Google File Viewer arguments include the url of the source file, the page number and the width. Note that the source file must be Internet accessible; files behind firewalls and on local servers will not generate a thumbnail image.</p>
|
144 |
<h4>Order, Orderby</h4>
|
145 |
<p>
|
146 |
To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
|
173 |
For WordPress 3.5 and later, the "ids" parameter lets you specify a list of Post IDs. The attachment(s) matching the "ids" values will be displayed in the order specified by the list.
|
174 |
</p>
|
175 |
<p>
|
176 |
+
You can use the "post_parent" to override the default behavior. If you set "post_parent" to a specific post ID, only the items attached to that post are displayed. If you set "post_parent" to <strong>"current"</strong>, only the items attached to the current post are displayed. If you set "post_parent" to <strong>"all"</strong>, the query will not have a post ID or post_parent parameter.
|
177 |
+
</p>
|
178 |
+
<p>
|
179 |
+
Two other "post_parent" values let you restrict the gallery to attached or unattached items. If you set "post_parent" to <strong>"any"</strong>, only the items attached to a post or page are displayed. If you set "post_parent" to <strong>"none"</strong>, only the unattached items are displayed.
|
180 |
</p>
|
181 |
<p>
|
182 |
For example, [mla_gallery tag="artisan"] will display all images having the specified tag value, regardless of which post (if any) they are attached to. If you use [mla_gallery tag="artisan" post_parent="current"] it will display images having the specified tag value only if they are attached to the current post.
|
187 |
</p>
|
188 |
<h4>Category Parameters</h4>
|
189 |
<p>
|
190 |
+
The Category parameters search in the WordPress core "Categories" taxonomy. Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
191 |
</p>
|
192 |
<h4>Tag Parameters</h4>
|
193 |
<p>
|
194 |
+
The Tag parameters search in the WordPress core "Tags" taxonomy. Remember to use "post_parent=current" if you want to restrict your query to items attached to the current post.
|
195 |
</p>
|
196 |
<p>
|
197 |
Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are not allowed. You can use the "tag__in" parameter to query for multiple values.
|
207 |
<li>[mla_gallery attachment_category='separate-category,another-category']</li>
|
208 |
</ul>
|
209 |
<p>
|
210 |
+
Note that you must use the name/slug strings for taxonomy and terms, not the "title" strings. If you are using the "Att. Tag" taxonomy built in to MLA then your shortcode should be something like:
|
211 |
+
</p>
|
212 |
+
<ul class="mla_settings">
|
213 |
+
<li>[mla_gallery attachment_tag=artisan post_parent=all]</li>
|
214 |
+
</ul>
|
215 |
+
<p>
|
216 |
+
In this example, "attachment_tag" is the WordPress taxonomy name/slug for the taxonomy. If you're using "Att. Category", the slug would be "attachment_category".
|
217 |
</p>
|
218 |
<p>
|
219 |
More complex queries can be specified by using "tax_query", e.g.:
|
611 |
Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. It is also supported by many image editing programs such as Adobe PhotoShop.
|
612 |
For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive.
|
613 |
<br /> <br />
|
614 |
+
You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="IPTC-NAA Information Interchange Model Version No. 4.1 specification" target="_blank">Exchangeable image file format</a> article on Wikipedia. You can find External Links to EXIF standards and tag listings at the end of the Wikipedia article.
|
615 |
+
<br /> <br />
|
616 |
+
MLA uses a standard PHP function, <a href="http://php.net/manual/en/function.exif-read-data.php" title="PHP Manual page for exif_read_data" target="_blank">exif_read_data</a>, to extract EXIF data from images. The function returns three arrays in addition to the raw EXIF data; COMPUTED, THUMBNAIL and COMMENT. You can access the array elements by prefacing the element you want with the array name. For example, the user comment text is available as "COMPUTED.UserComment" and "COMPUTED.UserCommentEncoding". You can also get "COMPUTED.Copyright" and its two parts (if present), "COMPUTED.Copyright.Photographer" and "COMPUTED.Copyright.Editor". The THUMBNAIL and COMMENT arrays work in a similar fashion.
|
617 |
+
<br /> <br />
|
618 |
+
Two special exif "pseudo-values" are available; <strong>ALL_IPTC</strong> and <strong>ALL_EXIF</strong>. These return a string representation of all IPTC or EXIF data respectively. You can use these pseudo-values to examine the metadata in an image, find field names and see what values are embedded in the image.</td>
|
619 |
</tr>
|
620 |
</table>
|
621 |
|
706 |
</p>
|
707 |
<ul class="mla_settings">
|
708 |
<li>You can add the data to an [mla_gallery] with a field-level markup substitution parameter. For example, add the image dimensions or a list of all the intermediate sizes available for the image.</li>
|
709 |
+
<li>You can add the data as a sortable, searchable column to the Media/Assistant submenu table. For example, you can find all the "orphans" in your library by adding "reference_issues" and then sorting by that column. You can also click on any value in the column to filter the display on a single custom field value.</li>
|
710 |
</ul>
|
711 |
<p>
|
712 |
Most of the data elements are static, i.e., they do not change after the attachment is added to the Media Library.
|
715 |
<p>
|
716 |
Several of the data elements are sourced from the WordPress "image_meta" array. The credit, caption, copyright and title elements are taken from the IPTC/EXIF metadata (if any), but they go through a number of filtering rules that are not easy to replicate with the MLA IPTC/EXIF processing rules. You may find these "image_meta" elements more useful than the raw IPTC/EXIF metadata.
|
717 |
</p>
|
718 |
+
<p>
|
719 |
+
If you just want to add a custom field to the Media/Assistant submenu, the quick edit area and/or the bulk edit area you can bypass the mapping logic by leaving the Data Source value as "-- None (select a value) --".
|
720 |
+
</p>
|
721 |
<a name="mla_custom_field_parameters"></a>
|
722 |
|
723 |
<p>
|
729 |
</p>
|
730 |
<table>
|
731 |
<tr>
|
732 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">-- None (select a value --</td>
|
733 |
+
<td>nothing, i.e., no change to existing value (if any). Use this source if you just want to add a custom field to the Media/Assistant submenu and/or the inline edit areas.</td>
|
734 |
+
</tr>
|
735 |
+
<tr>
|
736 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">path</td>
|
737 |
<td>path portion of the base_file value, e.g., 2012/11/</td>
|
738 |
</tr>
|
893 |
</dd>
|
894 |
<dt>EXIF Value</dt>
|
895 |
<dd>The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file.
|
896 |
+
Though the specification is not currently maintained by any industry or standards organization, almost all camera manufacturers use it. For this category, you can code any of the field names embedded in the image by the camera or editing software. The is no official list of standard field names, so you just have to know the names your camera and software use; field names are case-sensitive. You can find more information in the <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format" title="Exchangeable image file format Wikipedia article" target="_blank">Exchangeable image file format</a> article on Wikipedia. You can find External Links to EXIF standards and tag listings at the end of the Wikipedia article.
|
897 |
+
<br /> <br />
|
898 |
+
MLA uses a standard PHP function, <a href="http://php.net/manual/en/function.exif-read-data.php" title="PHP Manual page for exif_read_data" target="_blank">exif_read_data</a>, to extract EXIF data from images. The function returns three arrays in addition to the raw EXIF data; COMPUTED, THUMBNAIL and COMMENT. You can access the array elements by prefacing the element you want with the array name. For example, the user comment text is available as "COMPUTED.UserComment" and "COMPUTED.UserCommentEncoding". You can also get "COMPUTED.Copyright" and its two parts (if present), "COMPUTED.Copyright.Photographer" and "COMPUTED.Copyright.Editor". The THUMBNAIL and COMMENT arrays work in a similar fashion.
|
899 |
+
<br /> <br />
|
900 |
+
Two special exif "pseudo-values" are available; <strong>ALL_IPTC</strong> and <strong>ALL_EXIF</strong>. These return a string representation of all IPTC or EXIF data respectively. You can use these pseudo-values to examine the metadata in an image, find field names and see what values are embedded in the image.
|
901 |
</dd>
|
902 |
<dt>Priority</dt>
|
903 |
<dd>If both the IPTC Value and the EXIF Value are non-blank for a particular image, you can select which of the values will be used for the mapping.
|
tpls/mla-option-templates.tpl
CHANGED
@@ -44,7 +44,7 @@
|
|
44 |
<!-- template="custom-field-table" -->
|
45 |
<tr valign="top">
|
46 |
<td colspan="2" style="text-align:left;">
|
47 |
-
<table class="
|
48 |
<thead>
|
49 |
<tr style="text-align:center">
|
50 |
<th scope="col">
|
@@ -62,6 +62,12 @@
|
|
62 |
<th scope="col">
|
63 |
MLA Column
|
64 |
</th>
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
</tr>
|
66 |
</thead>
|
67 |
<tbody>
|
@@ -105,6 +111,12 @@
|
|
105 |
</td>
|
106 |
<td style="text-align:center;">
|
107 |
<input type="checkbox" name="custom_field_mapping[[+key+]][mla_column]" id="custom_field_mla_column_[+key+]" [+mla_column_checked+] value="checked" />
|
|
|
|
|
|
|
|
|
|
|
|
|
108 |
</td>
|
109 |
</tr>
|
110 |
<tr valign="top">
|
@@ -147,6 +159,12 @@
|
|
147 |
</td>
|
148 |
<td style="text-align:center;">
|
149 |
<input type="checkbox" name="custom_field_mapping[[+key+]][mla_column]" id="custom_field_mla_column_[+key+]" [+mla_column_checked+] value="checked" />
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
</td>
|
151 |
</tr>
|
152 |
<tr valign="top">
|
@@ -185,6 +203,12 @@
|
|
185 |
</td>
|
186 |
<td style="text-align:center;">
|
187 |
<input type="checkbox" name="custom_field_mapping[[+key+]][mla_column]" id="custom_field_mla_column_[+key+]" [+mla_column_checked+] value="checked" />
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
</td>
|
189 |
</tr>
|
190 |
<tr valign="top">
|
44 |
<!-- template="custom-field-table" -->
|
45 |
<tr valign="top">
|
46 |
<td colspan="2" style="text-align:left;">
|
47 |
+
<table class="custom-field-table">
|
48 |
<thead>
|
49 |
<tr style="text-align:center">
|
50 |
<th scope="col">
|
62 |
<th scope="col">
|
63 |
MLA Column
|
64 |
</th>
|
65 |
+
<th scope="col">
|
66 |
+
Quick Edit
|
67 |
+
</th>
|
68 |
+
<th scope="col">
|
69 |
+
Bulk Edit
|
70 |
+
</th>
|
71 |
</tr>
|
72 |
</thead>
|
73 |
<tbody>
|
111 |
</td>
|
112 |
<td style="text-align:center;">
|
113 |
<input type="checkbox" name="custom_field_mapping[[+key+]][mla_column]" id="custom_field_mla_column_[+key+]" [+mla_column_checked+] value="checked" />
|
114 |
+
</td>
|
115 |
+
<td style="text-align:center;">
|
116 |
+
<input type="checkbox" name="custom_field_mapping[[+key+]][quick_edit]" id="custom_field_quick_edit_[+key+]" [+quick_edit_checked+] value="checked" />
|
117 |
+
</td>
|
118 |
+
<td style="text-align:center;">
|
119 |
+
<input type="checkbox" name="custom_field_mapping[[+key+]][bulk_edit]" id="custom_field_bulk_edit_[+key+]" [+bulk_edit_checked+] value="checked" />
|
120 |
</td>
|
121 |
</tr>
|
122 |
<tr valign="top">
|
159 |
</td>
|
160 |
<td style="text-align:center;">
|
161 |
<input type="checkbox" name="custom_field_mapping[[+key+]][mla_column]" id="custom_field_mla_column_[+key+]" [+mla_column_checked+] value="checked" />
|
162 |
+
</td>
|
163 |
+
<td style="text-align:center;">
|
164 |
+
<input type="checkbox" name="custom_field_mapping[[+key+]][quick_edit]" id="custom_field_quick_edit_[+key+]" [+quick_edit_checked+] value="checked" />
|
165 |
+
</td>
|
166 |
+
<td style="text-align:center;">
|
167 |
+
<input type="checkbox" name="custom_field_mapping[[+key+]][bulk_edit]" id="custom_field_bulk_edit_[+key+]" [+bulk_edit_checked+] value="checked" />
|
168 |
</td>
|
169 |
</tr>
|
170 |
<tr valign="top">
|
203 |
</td>
|
204 |
<td style="text-align:center;">
|
205 |
<input type="checkbox" name="custom_field_mapping[[+key+]][mla_column]" id="custom_field_mla_column_[+key+]" [+mla_column_checked+] value="checked" />
|
206 |
+
</td>
|
207 |
+
<td style="text-align:center;">
|
208 |
+
<input type="checkbox" name="custom_field_mapping[[+key+]][quick_edit]" id="custom_field_quick_edit_[+key+]" [+quick_edit_checked+] value="checked" />
|
209 |
+
</td>
|
210 |
+
<td style="text-align:center;">
|
211 |
+
<input type="checkbox" name="custom_field_mapping[[+key+]][bulk_edit]" id="custom_field_bulk_edit_[+key+]" [+bulk_edit_checked+] value="checked" />
|
212 |
</td>
|
213 |
</tr>
|
214 |
<tr valign="top">
|