Media Library Assistant - Version 0.90

Version Description

  • New: Field-level IPTC and EXIF metadata support for [mla_gallery] display using custom markup templates.
  • New: Field-level Custom field and taxonomy term support for [mla_gallery] display using custom markup templates.
  • New: Contextual help tabs added to WordPress 3.5+ Edit Media Screen, explaining MLA enhancements.
  • Updated for WordPress version 3.5!
Download this release

Release Info

Developer dglingren
Plugin Icon 128x128 Media Library Assistant
Version 0.90
Comparing to
See all releases

Code changes from version 0.81 to 0.90

includes/class-mla-data.php CHANGED
@@ -5,7 +5,7 @@
5
  * @package Media Library Assistant
6
  * @since 0.1
7
  */
8
-
9
  /**
10
  * Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs
11
  *
@@ -147,6 +147,49 @@ class MLAData {
147
  return $tpl;
148
  }
149
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  /**
151
  * Get the total number of attachment posts
152
  *
@@ -498,7 +541,7 @@ class MLAData {
498
  $fields = self::$query_parameters['mla-search-fields'];
499
  $percent = self::$query_parameters['exact'] ? '' : '%';
500
  $connector = '';
501
- foreach( $search_terms as $term ) {
502
  $term = esc_sql( like_escape( $term ) );
503
  $inner_connector = '';
504
  $search_clause .= "{$connector}(";
@@ -1046,6 +1089,58 @@ class MLAData {
1046
  return $parent_data;
1047
  }
1048
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1049
  /**
1050
  * Fetch and filter meta data for an attachment
1051
  *
@@ -1334,5 +1429,53 @@ class MLAData {
1334
 
1335
  return $terms_after;
1336
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1337
  } // class MLAData
1338
  ?>
5
  * @package Media Library Assistant
6
  * @since 0.1
7
  */
8
+
9
  /**
10
  * Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs
11
  *
147
  return $tpl;
148
  }
149
 
150
+ /**
151
+ * Analyze a template, returning an array of the place holders it contains
152
+ *
153
+ * @since 0.90
154
+ *
155
+ * @param string A formatting string containing [+placeholders+]
156
+ *
157
+ * @return array Placeholder information: each entry is an array with
158
+ * ['prefix'] => string, ['value'] => string, ['single'] => boolean
159
+ */
160
+ public static function mla_get_template_placeholders( $tpl ) {
161
+ $results = array();
162
+ $match_count = preg_match_all( '/\[\+[^+]+\+\]/', $tpl, $matches );
163
+ if ( ( $match_count == false ) || ( $match_count == 0 ) )
164
+ return $results;
165
+
166
+ foreach ( $matches[0] as $match ) {
167
+ $key = substr( $match, 2, (strlen( $match ) - 4 ) );
168
+ $result = array( 'prefix' => '', 'value' => '', 'single' => false);
169
+ $match_count = preg_match( '/\[\+(.+):(.+)/', $match, $matches );
170
+ if ( 1 == $match_count ) {
171
+ $result['prefix'] = $matches[1];
172
+ $tail = $matches[2];
173
+ }
174
+ else {
175
+ $tail = substr( $match, 2);
176
+ }
177
+
178
+ $match_count = preg_match( '/([^,]+)(,single)\+\]/', $tail, $matches );
179
+ if ( 1 == $match_count ) {
180
+ $result['single'] = true;
181
+ $result['value'] = $matches[1];
182
+ }
183
+ else {
184
+ $result['value'] = substr( $tail, 0, (strlen( $tail ) - 2 ) );
185
+ }
186
+
187
+ $results[ $key ] = $result;
188
+ } // foreach
189
+
190
+ return $results;
191
+ }
192
+
193
  /**
194
  * Get the total number of attachment posts
195
  *
541
  $fields = self::$query_parameters['mla-search-fields'];
542
  $percent = self::$query_parameters['exact'] ? '' : '%';
543
  $connector = '';
544
+ foreach ( $search_terms as $term ) {
545
  $term = esc_sql( like_escape( $term ) );
546
  $inner_connector = '';
547
  $search_clause .= "{$connector}(";
1089
  return $parent_data;
1090
  }
1091
 
1092
+ /**
1093
+ * Fetch and filter IPTC and EXIF meta data for an image attachment
1094
+ *
1095
+ * Returns
1096
+ *
1097
+ * @since 0.90
1098
+ *
1099
+ * @param int post ID of attachment
1100
+ *
1101
+ * @return array Meta data variables
1102
+ */
1103
+ public static function mla_fetch_attachment_image_metadata( $post_id ) {
1104
+ $results = array(
1105
+ 'mla_iptc_metadata' => array (),
1106
+ 'mla_exif_metadata' => array ()
1107
+ );
1108
+
1109
+ $post_meta = get_metadata( 'post', $post_id, '_wp_attachment_metadata' );
1110
+ if ( is_array( $post_meta ) && isset( $post_meta[0]['file'] ) ) {
1111
+ $path = get_attached_file($post_id);
1112
+ $size = getimagesize( $path, $info );
1113
+ foreach ( $info as $key => $value ) {
1114
+ }
1115
+
1116
+ if ( is_callable( 'iptcparse' ) ) {
1117
+ if ( !empty( $info['APP13'] ) ) {
1118
+ $iptc_values = iptcparse( $info['APP13'] );
1119
+ if ( ! is_array( $iptc_values ) )
1120
+ $iptc_values = array();
1121
+
1122
+ foreach ( $iptc_values as $key => $value ) {
1123
+ if ( in_array( $key, array( '1#000', '1#020', '1#022', '1#120', '1#122', '2#000', '2#200', '2#201' ) ) ) {
1124
+ $value = unpack( 'nbinary', $value[0] );
1125
+ $results['mla_iptc_metadata'][ $key ] = (string) $value['binary'];
1126
+ }
1127
+ elseif ( 1 == count( $value ) )
1128
+ $results['mla_iptc_metadata'][ $key ] = $value[0];
1129
+ else
1130
+ $results['mla_iptc_metadata'][ $key ] = $value;
1131
+
1132
+ } // foreach $value
1133
+ } // !empty
1134
+ }
1135
+
1136
+ if ( is_callable( 'exif_read_data' ) && in_array( $size[2], array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ) ) {
1137
+ $results['mla_exif_metadata'] = exif_read_data( $path );
1138
+ }
1139
+ }
1140
+
1141
+ return $results;
1142
+ }
1143
+
1144
  /**
1145
  * Fetch and filter meta data for an attachment
1146
  *
1429
 
1430
  return $terms_after;
1431
  }
1432
+
1433
+ /**
1434
+ * Format printable version of binary data
1435
+ *
1436
+ * @since 0.90
1437
+ *
1438
+ * @param string Binary data
1439
+ * @param integer Bytes to format, default = 0 (all bytes)
1440
+ * @param intger Bytes to format on each line
1441
+ *
1442
+ * @return string Printable representation of $data
1443
+ */
1444
+ private static function _hex_dump( $data, $limit = 0, $bytes_per_row = 16 ) {
1445
+ if ( 0 == $limit )
1446
+ $limit = strlen( $data );
1447
+
1448
+ $position = 0;
1449
+ $output = "\r\n";
1450
+
1451
+ while ( $position < $limit ) {
1452
+ $row_length = strlen( substr( $data, $position ) );
1453
+
1454
+ if ( $row_length > ( $limit - $position ) )
1455
+ $row_length = $limit - $position;
1456
+
1457
+ if ( $row_length > $bytes_per_row )
1458
+ $row_length = $bytes_per_row;
1459
+
1460
+ $row_data = substr( $data, $position, $row_length );
1461
+
1462
+ $print_string = '';
1463
+ $hex_string = '';
1464
+ for ( $index = 0; $index < $row_length; $index++ ) {
1465
+ $char = ord( substr( $row_data, $index, 1 ) );
1466
+ if ( ( 31 < $char ) && ( 127 > $char ) )
1467
+ $print_string .= chr($char);
1468
+ else
1469
+ $print_string .= '.';
1470
+
1471
+ $hex_string .= ' ' . bin2hex( chr($char) );
1472
+ } // for
1473
+
1474
+ $output .= str_pad( $print_string, $bytes_per_row, ' ', STR_PAD_RIGHT ) . $hex_string . "\r\n";
1475
+ $position += $row_length;
1476
+ } // while
1477
+
1478
+ return $output;
1479
+ }
1480
  } // class MLAData
1481
  ?>
includes/class-mla-edit-media.php CHANGED
@@ -34,6 +34,9 @@ class MLAEdit {
34
 
35
  // do_action in wp-includes/post.php function wp_insert_post
36
  add_action( 'edit_attachment', 'MLAEdit::mla_edit_attachment_action', 10, 1 );
 
 
 
37
  } // $wordpress_3point5_plus
38
  }
39
 
@@ -83,6 +86,54 @@ class MLAEdit {
83
  } // 'attachment'
84
  } // mla_add_meta_boxes_action
85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  /**
87
  * Where-used values for the current item
88
  *
34
 
35
  // do_action in wp-includes/post.php function wp_insert_post
36
  add_action( 'edit_attachment', 'MLAEdit::mla_edit_attachment_action', 10, 1 );
37
+
38
+ // add_action( 'load-edit_attachment.php', 'MLAEdit::mla_edit_add_help_tab' );
39
+ add_filter( 'admin_title', 'MLAEdit::mla_edit_add_help_tab', 10, 2 );
40
  } // $wordpress_3point5_plus
41
  }
42
 
86
  } // 'attachment'
87
  } // mla_add_meta_boxes_action
88
 
89
+ /**
90
+ * Add contextual help tabs to the WordPress Edit Media page
91
+ *
92
+ * @since 0.90
93
+ *
94
+ * @param string title as shown on the screen
95
+ * @param string title as shown in the HTML header
96
+ *
97
+ * @return void
98
+ */
99
+ public static function mla_edit_add_help_tab( $admin_title, $title ) {
100
+ $screen = get_current_screen();
101
+
102
+ if ( ( 'attachment' != $screen->id ) || ( 'attachment' != $screen->post_type ) || ( 'post' != $screen->base ) )
103
+ return $admin_title;
104
+
105
+ $template_array = MLAData::mla_load_template( MLA_PLUGIN_PATH . 'tpls/help-for-edit_attachment.tpl' );
106
+ if ( empty( $template_array ) ) {
107
+ return $admin_title;
108
+ }
109
+
110
+ /*
111
+ * Provide explicit control over tab order
112
+ */
113
+ $tab_array = array( );
114
+
115
+ foreach ( $template_array as $id => $content ) {
116
+ $match_count = preg_match( '#\<!-- title="(.+)" order="(.+)" --\>#', $content, $matches, PREG_OFFSET_CAPTURE );
117
+
118
+ if ( $match_count > 0 ) {
119
+ $tab_array[ $matches[ 2 ][ 0 ] ] = array(
120
+ 'id' => $id,
121
+ 'title' => $matches[ 1 ][ 0 ],
122
+ 'content' => $content
123
+ );
124
+ } else {
125
+ error_log( 'ERROR: mla_edit_add_help_tab discarding '.var_export( $id, true ), 0 );
126
+ }
127
+ }
128
+
129
+ ksort( $tab_array, SORT_NUMERIC );
130
+ foreach ( $tab_array as $indx => $value ) {
131
+ $screen->add_help_tab( $value );
132
+ }
133
+
134
+ return $admin_title;
135
+ }
136
+
137
  /**
138
  * Where-used values for the current item
139
  *
includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '0.81';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '0.90';
42
 
43
  /**
44
  * Minimum version of PHP required for this plugin
includes/class-mla-settings.php CHANGED
@@ -446,7 +446,7 @@ class MLASettings {
446
  }
447
 
448
  $templates = array( );
449
- foreach( self::$mla_template_array as $key => $value ) {
450
  $tail = strrpos( $key, '-style' );
451
  if ( ! ( false === $tail ) ) {
452
  $name = substr( $key, 0, $tail );
@@ -488,7 +488,7 @@ class MLASettings {
488
  }
489
 
490
  $templates = array( );
491
- foreach( self::$mla_template_array as $key => $value ) {
492
  $tail = strrpos( $key, '-row-open-markup' );
493
  if ( ! ( false === $tail ) ) {
494
  $name = substr( $key, 0, $tail );
446
  }
447
 
448
  $templates = array( );
449
+ foreach ( self::$mla_template_array as $key => $value ) {
450
  $tail = strrpos( $key, '-style' );
451
  if ( ! ( false === $tail ) ) {
452
  $name = substr( $key, 0, $tail );
488
  }
489
 
490
  $templates = array( );
491
+ foreach ( self::$mla_template_array as $key => $value ) {
492
  $tail = strrpos( $key, '-row-open-markup' );
493
  if ( ! ( false === $tail ) ) {
494
  $name = substr( $key, 0, $tail );
includes/class-mla-shortcodes.php CHANGED
@@ -267,6 +267,14 @@ class MLAShortcodes {
267
  $markup_values['base_url'] = $upload_dir['baseurl'];
268
  $markup_values['base_dir'] = $upload_dir['basedir'];
269
 
 
 
 
 
 
 
 
 
270
  $markup_template = MLASettings::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
271
  if ( empty( $markup_template ) ) {
272
  $markup_values['mla_markup'] = 'default';
@@ -283,6 +291,31 @@ class MLAShortcodes {
283
  $item_template = MLASettings::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-item', 'markup' );
284
  if ( empty( $item_template ) )
285
  $item_template = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
286
 
287
  $row_close_template = MLASettings::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-row-close', 'markup' );
288
  if ( empty( $row_close_template ) )
@@ -301,7 +334,7 @@ class MLAShortcodes {
301
  $output = '';
302
 
303
  $output .= apply_filters( 'mla_gallery_style', $gallery_style . $gallery_div, $style_values, $markup_values, $style_template, $markup_template );
304
-
305
  $i = 0;
306
  foreach ( $attachments as $id => $attachment ) {
307
  /*
@@ -492,6 +525,91 @@ class MLAShortcodes {
492
  $markup_values['thumbnail_url'] = '';
493
  }
494
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  /*
496
  * Start of row markup
497
  */
@@ -506,7 +624,8 @@ class MLAShortcodes {
506
  /*
507
  * End of row markup
508
  */
509
- if ( $markup_values['columns'] > 0 && ++$i % $markup_values['columns'] == 0 )
 
510
  $output .= MLAData::mla_parse_template( $row_close_template, $markup_values );
511
  }
512
 
@@ -867,5 +986,371 @@ class MLAShortcodes {
867
 
868
  return $where_clause;
869
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
870
  } // Class MLAShortcodes
871
  ?>
267
  $markup_values['base_url'] = $upload_dir['baseurl'];
268
  $markup_values['base_dir'] = $upload_dir['basedir'];
269
 
270
+ /*
271
+ * Variable item-level placeholders
272
+ */
273
+ $terms_placeholders = array();
274
+ $custom_placeholders = array();
275
+ $iptc_placeholders = array();
276
+ $exif_placeholders = array();
277
+
278
  $markup_template = MLASettings::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
279
  if ( empty( $markup_template ) ) {
280
  $markup_values['mla_markup'] = 'default';
291
  $item_template = MLASettings::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-item', 'markup' );
292
  if ( empty( $item_template ) )
293
  $item_template = '';
294
+ else {
295
+ /*
296
+ * Look for variable item-level placeholders
297
+ */
298
+ $placeholders = MLAData::mla_get_template_placeholders( $item_template );
299
+
300
+ foreach ($placeholders as $key => $value ) {
301
+ switch ( $value['prefix'] ) {
302
+ case 'terms':
303
+ $terms_placeholders[ $key ] = $value;
304
+ break;
305
+ case 'custom':
306
+ $custom_placeholders[ $key ] = $value;
307
+ break;
308
+ case 'iptc':
309
+ $iptc_placeholders[ $key ] = $value;
310
+ break;
311
+ case 'exif':
312
+ $exif_placeholders[ $key ] = $value;
313
+ break;
314
+ default:
315
+ // ignore anything else
316
+ } // switch
317
+ } // $placeholders
318
+ } // $item_template
319
 
320
  $row_close_template = MLASettings::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-row-close', 'markup' );
321
  if ( empty( $row_close_template ) )
334
  $output = '';
335
 
336
  $output .= apply_filters( 'mla_gallery_style', $gallery_style . $gallery_div, $style_values, $markup_values, $style_template, $markup_template );
337
+
338
  $i = 0;
339
  foreach ( $attachments as $id => $attachment ) {
340
  /*
525
  $markup_values['thumbnail_url'] = '';
526
  }
527
 
528
+ /*
529
+ * Add variable placeholders
530
+ */
531
+ foreach ( $terms_placeholders as $key => $value ) {
532
+ $text = '';
533
+ $terms = wp_get_object_terms( $attachment->ID, $value['value'] );
534
+
535
+ if ( is_wp_error( $terms ) || empty( $terms ) )
536
+ $text = '';
537
+ else {
538
+ if ( $value['single'] )
539
+ $text = sanitize_term_field( 'name', $terms[0]->name, $terms[0]->term_id, $value, 'display' );
540
+ else
541
+ foreach ( $terms as $term ) {
542
+ $term_name = sanitize_term_field( 'name', $term->name, $term->term_id, $value, 'display' );
543
+ $text .= strlen( $text ) ? ', ' . $term_name : $term_name;
544
+ }
545
+ }
546
+
547
+ $markup_values[ $key ] = $text;
548
+ } // $terms_placeholders
549
+
550
+ foreach ( $custom_placeholders as $key => $value ) {
551
+ $record = get_metadata( 'post', $attachment->ID, $value['value'], $value['single'] );
552
+
553
+ if ( is_wp_error( $record ) || empty( $record ) )
554
+ $text = '';
555
+ elseif ( is_scalar( $record ) )
556
+ $text = (string) $record;
557
+ elseif ( is_array( $record ) ) {
558
+ $text = '';
559
+ foreach ( $record as $term ) {
560
+ $term_name = sanitize_text_field( $term );
561
+ $text .= strlen( $text ) ? ', ' . $term_name : $term_name;
562
+ }
563
+ } // is_array
564
+ else
565
+ $text = '';
566
+
567
+ $markup_values[ $key ] = $text;
568
+ } // $custom_placeholders
569
+
570
+ if ( !empty( $iptc_placeholders ) || !empty( $iptc_placeholders ) ) {
571
+ $image_metadata = MLAData::mla_fetch_attachment_image_metadata( $attachment->ID );
572
+ }
573
+
574
+ foreach ( $iptc_placeholders as $key => $value ) {
575
+ // convert friendly name/slug to identifier
576
+ if ( array_key_exists( $value['value'], self::$mla_iptc_keys ) ) {
577
+ $value['value'] = self::$mla_iptc_keys[ $value['value'] ];
578
+ }
579
+
580
+ $text = '';
581
+ if ( array_key_exists( $value['value'], $image_metadata['mla_iptc_metadata'] ) ) {
582
+ $record = $image_metadata['mla_iptc_metadata'][ $value['value'] ];
583
+ if ( is_array( $record ) ) {
584
+ if ( $value['single'] )
585
+ $text = $record[0];
586
+ else
587
+ foreach ( $record as $term ) {
588
+ $term_name = sanitize_text_field( $term );
589
+ $text .= strlen( $text ) ? ', ' . $term_name : $term_name;
590
+ }
591
+ } // is_array
592
+ else
593
+ $text = $record;
594
+ }
595
+
596
+ $markup_values[ $key ] = $text;
597
+ } // $iptc_placeholders
598
+
599
+ foreach ( $exif_placeholders as $key => $value ) {
600
+ $text = '';
601
+ if ( array_key_exists( $value['value'], $image_metadata['mla_exif_metadata'] ) ) {
602
+ $record = $image_metadata['mla_exif_metadata'][ $value['value'] ];
603
+ if ( is_array( $record ) ) {
604
+ $text = var_export( $record, true);
605
+ } // is_array
606
+ else
607
+ $text = $record;
608
+ }
609
+
610
+ $markup_values[ $key ] = $text;
611
+ } // $exif_placeholders
612
+
613
  /*
614
  * Start of row markup
615
  */
624
  /*
625
  * End of row markup
626
  */
627
+ $i++;
628
+ if ( $markup_values['columns'] > 0 && $i % $markup_values['columns'] == 0 )
629
  $output .= MLAData::mla_parse_template( $row_close_template, $markup_values );
630
  }
631
 
986
 
987
  return $where_clause;
988
  }
989
+
990
+ /**
991
+ * IPTC Dataset identifiers and names
992
+ *
993
+ * This array contains the identifiers and names of Datasets defined in
994
+ * the "IPTC-NAA Information Interchange Model Version No. 4.1".
995
+ *
996
+ * @since 0.90
997
+ *
998
+ * @var array
999
+ */
1000
+ private static $mla_iptc_records = array(
1001
+ // Envelope Record
1002
+ "1#000" => "Model Version",
1003
+ "1#005" => "Destination",
1004
+ "1#020" => "File Format",
1005
+ "1#022" => "File Format Version",
1006
+ "1#030" => "Service Identifier",
1007
+ "1#040" => "Envelope Number",
1008
+ "1#050" => "Product ID",
1009
+ "1#060" => "Envelope Priority",
1010
+ "1#070" => "Date Sent",
1011
+ "1#080" => "Time Sent",
1012
+ "1#090" => "Coded Character Set",
1013
+ "1#100" => "UNO",
1014
+ "1#120" => "ARM Identifier",
1015
+ "1#122" => "ARM Version",
1016
+
1017
+ // Application Record
1018
+ "2#000" => "Record Version",
1019
+ "2#003" => "Object Type Reference",
1020
+ "2#004" => "Object Attribute Reference",
1021
+ "2#005" => "Object Name",
1022
+ "2#007" => "Edit Status",
1023
+ "2#008" => "Editorial Update",
1024
+ "2#010" => "Urgency",
1025
+ "2#012" => "Subject Reference",
1026
+ "2#015" => "Category",
1027
+ "2#020" => "Supplemental Category",
1028
+ "2#022" => "Fixture Identifier",
1029
+ "2#025" => "Keywords",
1030
+ "2#026" => "Content Location Code",
1031
+ "2#027" => "Content Location Name",
1032
+ "2#030" => "Release Date",
1033
+ "2#035" => "Release Time",
1034
+ "2#037" => "Expiration Date",
1035
+ "2#038" => "Expiration Time",
1036
+ "2#040" => "Special Instructions",
1037
+ "2#042" => "Action Advised",
1038
+ "2#045" => "Reference Service",
1039
+ "2#047" => "Reference Date",
1040
+ "2#050" => "Reference Number",
1041
+ "2#055" => "Date Created",
1042
+ "2#060" => "Time Created",
1043
+ "2#062" => "Digital Creation Date",
1044
+ "2#063" => "Digital Creation Time",
1045
+ "2#065" => "Originating Program",
1046
+ "2#070" => "Program Version",
1047
+ "2#075" => "Object Cycle",
1048
+ "2#080" => "By-line",
1049
+ "2#085" => "By-line Title",
1050
+ "2#090" => "City",
1051
+ "2#092" => "Sub-location",
1052
+ "2#095" => "Province or State",
1053
+ "2#100" => "Country or Primary Location Code",
1054
+ "2#101" => "Country or Primary Location Name",
1055
+ "2#103" => "Original Transmission Reference",
1056
+ "2#105" => "Headline",
1057
+ "2#110" => "Credit",
1058
+ "2#115" => "Source",
1059
+ "2#116" => "Copyright Notice",
1060
+ "2#118" => "Contact",
1061
+ "2#120" => "Caption or Abstract",
1062
+ "2#122" => "Caption Writer or Editor",
1063
+ "2#125" => "Rasterized Caption",
1064
+ "2#130" => "Image Type",
1065
+ "2#131" => "Image Orientation",
1066
+ "2#135" => "Language Identifier",
1067
+ "2#150" => "Audio Type",
1068
+ "2#151" => "Audio Sampling Rate",
1069
+ "2#152" => "Audio Sampling Resolution",
1070
+ "2#153" => "Audio Duration",
1071
+ "2#154" => "Audio Outcue",
1072
+ "2#200" => "ObjectData Preview File Format",
1073
+ "2#201" => "ObjectData Preview File Format Version",
1074
+ "2#202" => "ObjectData Preview Data",
1075
+
1076
+ // Pre ObjectData Descriptor Record
1077
+ "7#010" => "Size Mode",
1078
+ "7#020" => "Max Subfile Size",
1079
+ "7#090" => "ObjectData Size Announced",
1080
+ "7#095" => "Maximum ObjectData Size",
1081
+
1082
+ // ObjectData Record
1083
+ "8#010" => "Subfile",
1084
+
1085
+ // Post ObjectData Descriptor Record
1086
+ "9#010" => "Confirmed ObjectData Size"
1087
+ );
1088
+
1089
+ /**
1090
+ * IPTC Dataset friendly name/slug and identifiers
1091
+ *
1092
+ * This array contains the sanitized names and identifiers of Datasets defined in
1093
+ * the "IPTC-NAA Information Interchange Model Version No. 4.1".
1094
+ *
1095
+ * @since 0.90
1096
+ *
1097
+ * @var array
1098
+ */
1099
+ private static $mla_iptc_keys = array(
1100
+ // Envelope Record
1101
+ 'model-version' => '1#000',
1102
+ 'destination' => '1#005',
1103
+ 'file-format' => '1#020',
1104
+ 'file-format-version' => '1#022',
1105
+ 'service-identifier' => '1#030',
1106
+ 'envelope-number' => '1#040',
1107
+ 'product-id' => '1#050',
1108
+ 'envelope-priority' => '1#060',
1109
+ 'date-sent' => '1#070',
1110
+ 'time-sent' => '1#080',
1111
+ 'coded-character-set' => '1#090',
1112
+ 'uno' => '1#100',
1113
+ 'arm-identifier' => '1#120',
1114
+ 'arm-version' => '1#122',
1115
+
1116
+ // Application Record
1117
+ 'record-version' => '2#000',
1118
+ 'object-type-reference' => '2#003',
1119
+ 'object-attribute-reference' => '2#004',
1120
+ 'object-name' => '2#005',
1121
+ 'edit-status' => '2#007',
1122
+ 'editorial-update' => '2#008',
1123
+ 'urgency' => '2#010',
1124
+ 'subject-reference' => '2#012',
1125
+ 'category' => '2#015',
1126
+ 'supplemental-category' => '2#020',
1127
+ 'fixture-identifier' => '2#022',
1128
+ 'keywords' => '2#025',
1129
+ 'content-location-code' => '2#026',
1130
+ 'content-location-name' => '2#027',
1131
+ 'release-date' => '2#030',
1132
+ 'release-time' => '2#035',
1133
+ 'expiration-date' => '2#037',
1134
+ 'expiration-time' => '2#038',
1135
+ 'special-instructions' => '2#040',
1136
+ 'action-advised' => '2#042',
1137
+ 'reference-service' => '2#045',
1138
+ 'reference-date' => '2#047',
1139
+ 'reference-number' => '2#050',
1140
+ 'date-created' => '2#055',
1141
+ 'time-created' => '2#060',
1142
+ 'digital-creation-date' => '2#062',
1143
+ 'digital-creation-time' => '2#063',
1144
+ 'originating-program' => '2#065',
1145
+ 'program-version' => '2#070',
1146
+ 'object-cycle' => '2#075',
1147
+ 'by-line' => '2#080',
1148
+ 'by-line-title' => '2#085',
1149
+ 'city' => '2#090',
1150
+ 'sub-location' => '2#092',
1151
+ 'province-or-state' => '2#095',
1152
+ 'country-or-primary-location-code' => '2#100',
1153
+ 'country-or-primary-location-name' => '2#101',
1154
+ 'original-transmission-reference' => '2#103',
1155
+ 'headline' => '2#105',
1156
+ 'credit' => '2#110',
1157
+ 'source' => '2#115',
1158
+ 'copyright-notice' => '2#116',
1159
+ 'contact' => '2#118',
1160
+ 'caption-or-abstract' => '2#120',
1161
+ 'caption-writer-or-editor' => '2#122',
1162
+ 'rasterized-caption' => '2#125',
1163
+ 'image-type' => '2#130',
1164
+ 'image-orientation' => '2#131',
1165
+ 'language-identifier' => '2#135',
1166
+ 'audio-type' => '2#150',
1167
+ 'audio-sampling-rate' => '2#151',
1168
+ 'audio-sampling-resolution' => '2#152',
1169
+ 'audio-duration' => '2#153',
1170
+ 'audio-outcue' => '2#154',
1171
+ 'objectdata-preview-file-format' => '2#200',
1172
+ 'objectdata-preview-file-format-version' => '2#201',
1173
+ 'objectdata-preview-data' => '2#202',
1174
+
1175
+ // Pre ObjectData Descriptor Record
1176
+ 'size-mode' => '7#010',
1177
+ 'max-subfile-size' => '7#020',
1178
+ 'objectdata-size-announced' => '7#090',
1179
+ 'maximum-objectdata-size' => '7#095',
1180
+
1181
+ // ObjectData Record
1182
+ 'subfile' => '8#010',
1183
+
1184
+ // Post ObjectData Descriptor Record
1185
+ 'confirmed-objectdata-size' => '9#010'
1186
+ );
1187
+
1188
+ /**
1189
+ * IPTC Dataset descriptions
1190
+ *
1191
+ * This array contains the descriptions of Datasets defined in
1192
+ * the "IPTC-NAA Information Interchange Model Version No. 4.1".
1193
+ *
1194
+ * @since 0.90
1195
+ *
1196
+ * @var array
1197
+ */
1198
+ private static $mla_iptc_descriptions = array(
1199
+ // Envelope Record
1200
+ "1#000" => "2 octet binary IIM version number",
1201
+ "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable",
1202
+ "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A",
1203
+ "1#022" => "2 octet binary file format version number",
1204
+ "1#030" => "Max 10 characters of Service Identifier and product",
1205
+ "1#040" => "8 Character Envelope Number",
1206
+ "1#050" => "Max 32 characters subset of provider's overall service; repeatable",
1207
+ "1#060" => "1 numeric character of envelope handling priority (not urgency)",
1208
+ "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD",
1209
+ "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM",
1210
+ "1#090" => "Max 32 characters of control functions, etc.",
1211
+ "1#100" => "14 to 80 characters of eternal, globally unique identification for objects",
1212
+ "1#120" => "2 octet binary Abstract Relationship Model Identifier",
1213
+ "1#122" => "2 octet binary Abstract Relationship Model Version",
1214
+
1215
+ // Application Record
1216
+ "2#000" => "2 octet binary Information Interchange Model, Part II version number",
1217
+ "2#003" => "3 to 67 Characters of Object Type Reference number and optional text",
1218
+ "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable",
1219
+ "2#005" => "Max 64 characters of the object name or shorthand reference",
1220
+ "2#007" => "Max 64 characters of the status of the objectdata",
1221
+ "2#008" => "2 numeric characters of the type of update this object provides",
1222
+ "2#010" => "1 numeric character of the editorial urgency of content",
1223
+ "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable",
1224
+ "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED",
1225
+ "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable",
1226
+ "2#022" => "Max 32 characters identifying recurring, predictable content",
1227
+ "2#025" => "Max 64 characters (each) of tags; repeatable",
1228
+ "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable",
1229
+ "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable",
1230
+ "2#030" => "8 numeric characters of Release Date - CCYYMMDD",
1231
+ "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM",
1232
+ "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD",
1233
+ "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM",
1234
+ "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings",
1235
+ "2#042" => "2 numeric characters of type of action this object provides to a previous object",
1236
+ "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable",
1237
+ "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable",
1238
+ "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable",
1239
+ "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD",
1240
+ "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM",
1241
+ "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD",
1242
+ "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM",
1243
+ "2#065" => "Max 32 characters of the program used to create the objectdata",
1244
+ "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata",
1245
+ "2#075" => "1 character where a=morning, p=evening, b=both",
1246
+ "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable",
1247
+ "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable",
1248
+ "2#090" => "Max 32 Characters of the city of objectdata origin",
1249
+ "2#092" => "Max 32 Characters of the location within the city of objectdata origin",
1250
+ "2#095" => "Max 32 Characters of the objectdata origin Province or State",
1251
+ "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin",
1252
+ "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin",
1253
+ "2#103" => "Max 32 characters of a code representing the location of original transmission",
1254
+ "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata",
1255
+ "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)",
1256
+ "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content",
1257
+ "2#116" => "Max 128 Characters that contains any necessary copyright notice",
1258
+ "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable",
1259
+ "2#120" => "Max 2000 Characters of a textual description of the objectdata",
1260
+ "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable",
1261
+ "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image",
1262
+ "2#130" => "2 characters of color composition type and information",
1263
+ "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square",
1264
+ "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes",
1265
+ "2#150" => "2 characters identifying monaural/stereo and exact type of audio content",
1266
+ "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)",
1267
+ "2#152" => "2 numeric characters representing the number of bits in each audio sample",
1268
+ "2#153" => "6 numeric characters of the Audio Duration - HHMMSS",
1269
+ "2#154" => "Max 64 characters of the content of the end of an audio objectdata",
1270
+ "2#200" => "2 octet binary file format of the ObjectData Preview",
1271
+ "2#201" => "2 octet binary particular version of the ObjectData Preview File Format",
1272
+ "2#202" => "Max 256000 binary octets containing the ObjectData Preview data",
1273
+
1274
+ // Pre ObjectData Descriptor Record
1275
+ "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer",
1276
+ "7#020" => "4 octet binary maximum subfile dataset(s) size",
1277
+ "7#090" => "4 octet binary objectdata size if known at beginning of transfer",
1278
+ "7#095" => "4 octet binary largest possible objectdata size",
1279
+
1280
+ // ObjectData Record
1281
+ "8#010" => "Subfile DataSet containing the objectdata itself; repeatable",
1282
+
1283
+ // Post ObjectData Descriptor Record
1284
+ "9#010" => "4 octet binary total objectdata size"
1285
+ );
1286
+
1287
+ /**
1288
+ * IPTC file format identifiers and descriptions
1289
+ *
1290
+ * This array contains the file format identifiers and descriptions defined in
1291
+ * the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.
1292
+ *
1293
+ * @since 0.90
1294
+ *
1295
+ * @var array
1296
+ */
1297
+ private static $mla_iptc_formats = array(
1298
+ 00 => "No ObjectData",
1299
+ 01 => "IPTC-NAA Digital Newsphoto Parameter Record",
1300
+ 02 => "IPTC7901 Recommended Message Format",
1301
+ 03 => "Tagged Image File Format (Adobe/Aldus Image data)",
1302
+ 04 => "Illustrator (Adobe Graphics data)",
1303
+ 05 => "AppleSingle (Apple Computer Inc)",
1304
+ 06 => "NAA 89-3 (ANPA 1312)",
1305
+ 07 => "MacBinary II",
1306
+ 08 => "IPTC Unstructured Character Oriented File Format (UCOFF)",
1307
+ 09 => "United Press International ANPA 1312 variant",
1308
+ 10 => "United Press International Down-Load Message",
1309
+ 11 => "JPEG File Interchange (JFIF)",
1310
+ 12 => "Photo-CD Image-Pac (Eastman Kodak)",
1311
+ 13 => "Microsoft Bit Mapped Graphics File [*.BMP]",
1312
+ 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)",
1313
+ 15 => "Audio plus Moving Video [*.AVI] (Microsoft)",
1314
+ 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]",
1315
+ 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)",
1316
+ 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)",
1317
+ 19 => "RIFF Wave (Microsoft Corporation)",
1318
+ 20 => "Freehand (Macromedia/Aldus)",
1319
+ 21 => "Hypertext Markup Language - HTML (The Internet Society)",
1320
+ 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC",
1321
+ 23 => "MPEG 2 Audio Layer 3, ISO/IEC",
1322
+ 24 => "Portable Document File (*.PDF) Adobe",
1323
+ 25 => "News Industry Text Format (NITF)",
1324
+ 26 => "Tape Archive (*.TAR)",
1325
+ 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)",
1326
+ 28 => "Ritzaus Bureau NITF version (RBNITF DTD)",
1327
+ 29 => "Corel Draw [*.CDR]"
1328
+ );
1329
+
1330
+ /**
1331
+ * IPTC image type identifiers and descriptions
1332
+ *
1333
+ * This array contains the image type identifiers and descriptions defined in
1334
+ * the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.
1335
+ *
1336
+ * @since 0.90
1337
+ *
1338
+ * @var array
1339
+ */
1340
+ private static $mla_iptc_image_types = array(
1341
+ "M" => "Monochrome",
1342
+ "Y" => "Yellow Component",
1343
+ "M" => "Magenta Component",
1344
+ "C" => "Cyan Component",
1345
+ "K" => "Black Component",
1346
+ "R" => "Red Component",
1347
+ "G" => "Green Component",
1348
+ "B" => "Blue Component",
1349
+ "T" => "Text Only",
1350
+ "F" => "Full colour composite, frame sequential",
1351
+ "L" => "Full colour composite, line sequential",
1352
+ "P" => "Full colour composite, pixel sequential",
1353
+ "S" => "Full colour composite, special interleaving"
1354
+ );
1355
  } // Class MLAShortcodes
1356
  ?>
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 0.81
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: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
16
  Author: David Lingren
17
- Version: 0.81
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 0.90
10
  */
11
 
12
  /*
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Provides several enhancements to the handling of images and files held in the WordPress Media Library.
16
  Author: David Lingren
17
+ Version: 0.90
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
phpDocs/classes/MLA.html CHANGED
@@ -700,7 +700,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 2012-11-25T17:41:22-08:00.<br></footer></div>
704
  </div>
705
  </body>
706
  </html>
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 2012-12-07T13:43:49-08:00.<br></footer></div>
704
  </div>
705
  </body>
706
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -54,10 +54,12 @@
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_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>
58
  <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>
59
  <li class="method public "><a href="#mla_fetch_attachment_references" title="mla_fetch_attachment_references :: Find Featured Image and inserted image/link references to an attachment"><span class="description">Find Featured Image and inserted image/link references to an attachment</span><pre>mla_fetch_attachment_references()</pre></a></li>
60
  <li class="method public "><a href="#mla_get_attachment_by_id" title="mla_get_attachment_by_id :: Retrieve an Attachment array given a $post_id"><span class="description">Retrieve an Attachment array given a $post_id</span><pre>mla_get_attachment_by_id()</pre></a></li>
 
61
  <li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
62
  <li class="method public "><a href="#mla_parse_template" title="mla_parse_template :: Expand a template, replacing place holders with their values"><span class="description">Expand a template, replacing place holders with their values</span><pre>mla_parse_template()</pre></a></li>
63
  <li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
@@ -71,6 +73,7 @@ for a single attachment.</span><pre>mla_update_single_item()</pre></a></li>
71
  <li class="nav-header private">» Private</li>
72
  <li class="method private "><a href="#_build_mla_galleries" title="_build_mla_galleries :: Builds the $mla_galleries or $galleries array"><span class="description">Builds the $mla_galleries or $galleries array</span><pre>_build_mla_galleries()</pre></a></li>
73
  <li class="method private "><a href="#_execute_list_table_query" title="_execute_list_table_query :: Add filters, run query, remove filters"><span class="description">Add filters, run query, remove filters</span><pre>_execute_list_table_query()</pre></a></li>
 
74
  <li class="method private "><a href="#_prepare_list_table_query" title="_prepare_list_table_query :: Sanitize and expand query arguments from request variables"><span class="description">Sanitize and expand query arguments from request variables</span><pre>_prepare_list_table_query()</pre></a></li>
75
  <li class="method private "><a href="#_remove_tags" title="_remove_tags :: Remove tags from a term ids list"><span class="description">Remove tags from a term ids list</span><pre>_remove_tags()</pre></a></li>
76
  <li class="method private "><a href="#_search_mla_galleries" title="_search_mla_galleries :: Search the $mla_galleries or $galleries array"><span class="description">Search the $mla_galleries or $galleries array</span><pre>_search_mla_galleries()</pre></a></li>
@@ -141,6 +144,25 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
141
  <code>integer</code>Number of attachment posts</div>
142
  </div></div>
143
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  <a name="mla_fetch_attachment_metadata" id="mla_fetch_attachment_metadata"></a><div class="element clickable method public mla_fetch_attachment_metadata" data-toggle="collapse" data-target=".mla_fetch_attachment_metadata .collapse">
145
  <h2>Fetch and filter meta data for an attachment</h2>
146
  <pre>mla_fetch_attachment_metadata(int $post_id) : array</pre>
@@ -226,6 +248,26 @@ the posts and postmeta tables, and all references to the attachment.</p></p>
226
  <code>NULL</code><code>array</code>NULL on failure else associative array</div>
227
  </div></div>
228
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  <a name="mla_load_template" id="mla_load_template"></a><div class="element clickable method public mla_load_template" data-toggle="collapse" data-target=".mla_load_template .collapse">
230
  <h2>Load an HTML template from a file</h2>
231
  <pre>mla_load_template(string $source, string $type) : string | array | false | NULL</pre>
@@ -459,6 +501,32 @@ for a single attachment.</h2>
459
  <code>object</code>WP_Query object with query results</div>
460
  </div></div>
461
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
462
  <a name="_prepare_list_table_query" id="_prepare_list_table_query"></a><div class="element clickable method private _prepare_list_table_query" data-toggle="collapse" data-target="._prepare_list_table_query .collapse">
463
  <h2>Sanitize and expand query arguments from request variables</h2>
464
  <pre>_prepare_list_table_query(array $raw_request, int $offset, int $count) : array</pre>
@@ -594,7 +662,7 @@ any further logic required to translate those values is contained in the filters
594
  <div class="row"><footer class="span12">
595
  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>
596
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
597
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
598
  </div>
599
  </body>
600
  </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_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>
60
  <li class="method public "><a href="#mla_fetch_attachment_references" title="mla_fetch_attachment_references :: Find Featured Image and inserted image/link references to an attachment"><span class="description">Find Featured Image and inserted image/link references to an attachment</span><pre>mla_fetch_attachment_references()</pre></a></li>
61
  <li class="method public "><a href="#mla_get_attachment_by_id" title="mla_get_attachment_by_id :: Retrieve an Attachment array given a $post_id"><span class="description">Retrieve an Attachment array given a $post_id</span><pre>mla_get_attachment_by_id()</pre></a></li>
62
+ <li class="method public "><a href="#mla_get_template_placeholders" title="mla_get_template_placeholders :: Analyze a template, returning an array of the place holders it contains"><span class="description">Analyze a template, returning an array of the place holders it contains</span><pre>mla_get_template_placeholders()</pre></a></li>
63
  <li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
64
  <li class="method public "><a href="#mla_parse_template" title="mla_parse_template :: Expand a template, replacing place holders with their values"><span class="description">Expand a template, replacing place holders with their values</span><pre>mla_parse_template()</pre></a></li>
65
  <li class="method public "><a href="#mla_query_list_table_items" title="mla_query_list_table_items :: Retrieve attachment objects for list table display"><span class="description">Retrieve attachment objects for list table display</span><pre>mla_query_list_table_items()</pre></a></li>
73
  <li class="nav-header private">» Private</li>
74
  <li class="method private "><a href="#_build_mla_galleries" title="_build_mla_galleries :: Builds the $mla_galleries or $galleries array"><span class="description">Builds the $mla_galleries or $galleries array</span><pre>_build_mla_galleries()</pre></a></li>
75
  <li class="method private "><a href="#_execute_list_table_query" title="_execute_list_table_query :: Add filters, run query, remove filters"><span class="description">Add filters, run query, remove filters</span><pre>_execute_list_table_query()</pre></a></li>
76
+ <li class="method private "><a href="#_hex_dump" title="_hex_dump :: Format printable version of binary data"><span class="description">Format printable version of binary data</span><pre>_hex_dump()</pre></a></li>
77
  <li class="method private "><a href="#_prepare_list_table_query" title="_prepare_list_table_query :: Sanitize and expand query arguments from request variables"><span class="description">Sanitize and expand query arguments from request variables</span><pre>_prepare_list_table_query()</pre></a></li>
78
  <li class="method private "><a href="#_remove_tags" title="_remove_tags :: Remove tags from a term ids list"><span class="description">Remove tags from a term ids list</span><pre>_remove_tags()</pre></a></li>
79
  <li class="method private "><a href="#_search_mla_galleries" title="_search_mla_galleries :: Search the $mla_galleries or $galleries array"><span class="description">Search the $mla_galleries or $galleries array</span><pre>_search_mla_galleries()</pre></a></li>
144
  <code>integer</code>Number of attachment posts</div>
145
  </div></div>
146
  </div>
147
+ <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">
148
+ <h2>Fetch and filter IPTC and EXIF meta data for an image attachment</h2>
149
+ <pre>mla_fetch_attachment_image_metadata(int $post_id) : array</pre>
150
+ <div class="labels"></div>
151
+ <div class="row collapse"><div class="detail-description">
152
+ <p class="long_description"><p>Returns</p></p>
153
+ <table class="table table-bordered"><tr>
154
+ <th>since</th>
155
+ <td>0.90</td>
156
+ </tr></table>
157
+ <h3>Parameters</h3>
158
+ <div class="subelement argument">
159
+ <h4>$post_id</h4>
160
+ <code>int</code><p>post ID of attachment</p></div>
161
+ <h3>Returns</h3>
162
+ <div class="subelement response">
163
+ <code>array</code>Meta data variables</div>
164
+ </div></div>
165
+ </div>
166
  <a name="mla_fetch_attachment_metadata" id="mla_fetch_attachment_metadata"></a><div class="element clickable method public mla_fetch_attachment_metadata" data-toggle="collapse" data-target=".mla_fetch_attachment_metadata .collapse">
167
  <h2>Fetch and filter meta data for an attachment</h2>
168
  <pre>mla_fetch_attachment_metadata(int $post_id) : array</pre>
248
  <code>NULL</code><code>array</code>NULL on failure else associative array</div>
249
  </div></div>
250
  </div>
251
+ <a name="mla_get_template_placeholders" id="mla_get_template_placeholders"></a><div class="element clickable method public mla_get_template_placeholders" data-toggle="collapse" data-target=".mla_get_template_placeholders .collapse">
252
+ <h2>Analyze a template, returning an array of the place holders it contains</h2>
253
+ <pre>mla_get_template_placeholders(string $tpl) : array</pre>
254
+ <div class="labels"></div>
255
+ <div class="row collapse"><div class="detail-description">
256
+ <p class="long_description"></p>
257
+ <table class="table table-bordered"><tr>
258
+ <th>since</th>
259
+ <td>0.90</td>
260
+ </tr></table>
261
+ <h3>Parameters</h3>
262
+ <div class="subelement argument">
263
+ <h4>$tpl</h4>
264
+ <code>string</code><p>A formatting string containing [+placeholders+]</p>
265
+ </div>
266
+ <h3>Returns</h3>
267
+ <div class="subelement response">
268
+ <code>array</code>Placeholder information: each entry is an array with ['prefix'] => string, ['value'] => string, ['single'] => boolean</div>
269
+ </div></div>
270
+ </div>
271
  <a name="mla_load_template" id="mla_load_template"></a><div class="element clickable method public mla_load_template" data-toggle="collapse" data-target=".mla_load_template .collapse">
272
  <h2>Load an HTML template from a file</h2>
273
  <pre>mla_load_template(string $source, string $type) : string | array | false | NULL</pre>
501
  <code>object</code>WP_Query object with query results</div>
502
  </div></div>
503
  </div>
504
+ <a name="_hex_dump" id="_hex_dump"></a><div class="element clickable method private _hex_dump" data-toggle="collapse" data-target="._hex_dump .collapse">
505
+ <h2>Format printable version of binary data</h2>
506
+ <pre>_hex_dump(string $data, integer $limit, \intger $bytes_per_row) : string</pre>
507
+ <div class="labels"></div>
508
+ <div class="row collapse"><div class="detail-description">
509
+ <p class="long_description"></p>
510
+ <table class="table table-bordered"><tr>
511
+ <th>since</th>
512
+ <td>0.90</td>
513
+ </tr></table>
514
+ <h3>Parameters</h3>
515
+ <div class="subelement argument">
516
+ <h4>$data</h4>
517
+ <code>string</code><p>Binary data</p></div>
518
+ <div class="subelement argument">
519
+ <h4>$limit</h4>
520
+ <code>integer</code><p>Bytes to format, default = 0 (all bytes)</p>
521
+ </div>
522
+ <div class="subelement argument">
523
+ <h4>$bytes_per_row</h4>
524
+ <code>\intger</code><p>Bytes to format on each line</p></div>
525
+ <h3>Returns</h3>
526
+ <div class="subelement response">
527
+ <code>string</code>Printable representation of $data</div>
528
+ </div></div>
529
+ </div>
530
  <a name="_prepare_list_table_query" id="_prepare_list_table_query"></a><div class="element clickable method private _prepare_list_table_query" data-toggle="collapse" data-target="._prepare_list_table_query .collapse">
531
  <h2>Sanitize and expand query arguments from request variables</h2>
532
  <pre>_prepare_list_table_query(array $raw_request, int $offset, int $count) : array</pre>
662
  <div class="row"><footer class="span12">
663
  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>
664
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
665
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
666
  </div>
667
  </body>
668
  </html>
phpDocs/classes/MLAEdit.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_add_meta_boxes_action" title="mla_add_meta_boxes_action :: Registers meta boxes for the Edit Media screen."><span class="description">Registers meta boxes for the Edit Media screen.</span><pre>mla_add_meta_boxes_action()</pre></a></li>
 
57
  <li class="method public "><a href="#mla_edit_attachment_action" title="mla_edit_attachment_action :: Saves updates from the Edit Media screen."><span class="description">Saves updates from the Edit Media screen.</span><pre>mla_edit_attachment_action()</pre></a></li>
58
  <li class="method public "><a href="#mla_featured_in_handler" title="mla_featured_in_handler :: Renders the Featured in meta box on the Edit Media page."><span class="description">Renders the Featured in meta box on the Edit Media page.</span><pre>mla_featured_in_handler()</pre></a></li>
59
  <li class="method public "><a href="#mla_gallery_in_handler" title="mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_gallery_in_handler()</pre></a></li>
@@ -127,6 +128,25 @@
127
  <code>object</code><p>current post</p></div>
128
  </div></div>
129
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  <a name="mla_edit_attachment_action" id="mla_edit_attachment_action"></a><div class="element clickable method public mla_edit_attachment_action" data-toggle="collapse" data-target=".mla_edit_attachment_action .collapse">
131
  <h2>Saves updates from the Edit Media screen.</h2>
132
  <pre>mla_edit_attachment_action(integer $post_ID) : void</pre>
@@ -289,7 +309,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
289
  <div class="row"><footer class="span12">
290
  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>
291
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
292
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
293
  </div>
294
  </body>
295
  </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_add_meta_boxes_action" title="mla_add_meta_boxes_action :: Registers meta boxes for the Edit Media screen."><span class="description">Registers meta boxes for the Edit Media screen.</span><pre>mla_add_meta_boxes_action()</pre></a></li>
57
+ <li class="method public "><a href="#mla_edit_add_help_tab" title="mla_edit_add_help_tab :: Add contextual help tabs to the WordPress Edit Media page"><span class="description">Add contextual help tabs to the WordPress Edit Media page</span><pre>mla_edit_add_help_tab()</pre></a></li>
58
  <li class="method public "><a href="#mla_edit_attachment_action" title="mla_edit_attachment_action :: Saves updates from the Edit Media screen."><span class="description">Saves updates from the Edit Media screen.</span><pre>mla_edit_attachment_action()</pre></a></li>
59
  <li class="method public "><a href="#mla_featured_in_handler" title="mla_featured_in_handler :: Renders the Featured in meta box on the Edit Media page."><span class="description">Renders the Featured in meta box on the Edit Media page.</span><pre>mla_featured_in_handler()</pre></a></li>
60
  <li class="method public "><a href="#mla_gallery_in_handler" title="mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_gallery_in_handler()</pre></a></li>
128
  <code>object</code><p>current post</p></div>
129
  </div></div>
130
  </div>
131
+ <a name="mla_edit_add_help_tab" id="mla_edit_add_help_tab"></a><div class="element clickable method public mla_edit_add_help_tab" data-toggle="collapse" data-target=".mla_edit_add_help_tab .collapse">
132
+ <h2>Add contextual help tabs to the WordPress Edit Media page</h2>
133
+ <pre>mla_edit_add_help_tab(string $admin_title, string $title) : void</pre>
134
+ <div class="labels"></div>
135
+ <div class="row collapse"><div class="detail-description">
136
+ <p class="long_description"></p>
137
+ <table class="table table-bordered"><tr>
138
+ <th>since</th>
139
+ <td>0.90</td>
140
+ </tr></table>
141
+ <h3>Parameters</h3>
142
+ <div class="subelement argument">
143
+ <h4>$admin_title</h4>
144
+ <code>string</code><p>title as shown on the screen</p></div>
145
+ <div class="subelement argument">
146
+ <h4>$title</h4>
147
+ <code>string</code><p>title as shown in the HTML header</p></div>
148
+ </div></div>
149
+ </div>
150
  <a name="mla_edit_attachment_action" id="mla_edit_attachment_action"></a><div class="element clickable method public mla_edit_attachment_action" data-toggle="collapse" data-target=".mla_edit_attachment_action .collapse">
151
  <h2>Saves updates from the Edit Media screen.</h2>
152
  <pre>mla_edit_attachment_action(integer $post_ID) : void</pre>
309
  <div class="row"><footer class="span12">
310
  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>
311
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
312
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
313
  </div>
314
  </body>
315
  </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 2012-11-25T17:41:22-08:00.<br></footer></div>
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 2012-12-07T13:43:49-08:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -780,7 +780,7 @@ each page load and cached for subsequent use.</p></p>
780
  <div class="row"><footer class="span12">
781
  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>
782
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
783
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
784
  </div>
785
  </body>
786
  </html>
780
  <div class="row"><footer class="span12">
781
  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>
782
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
783
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
784
  </div>
785
  </body>
786
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -62,6 +62,11 @@
62
  <li class="nav-header private">» Private</li>
63
  <li class="property private "><a href="#%24mla_debug" title="$mla_debug :: Turn debug collection and display on or off"><span class="description">Turn debug collection and display on or off</span><pre>$mla_debug</pre></a></li>
64
  <li class="property private "><a href="#%24mla_debug_messages" title="$mla_debug_messages :: Accumulates debug messages"><span class="description">Accumulates debug messages</span><pre>$mla_debug_messages</pre></a></li>
 
 
 
 
 
65
  </ul>
66
  </div>
67
  <div class="span8">
@@ -204,6 +209,71 @@ Defined as public because it's a filter.</p></p>
204
  </tr></table>
205
  </div></div>
206
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  </div>
208
  </div>
209
  </div>
@@ -211,7 +281,7 @@ Defined as public because it's a filter.</p></p>
211
  <div class="row"><footer class="span12">
212
  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>
213
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
214
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
215
  </div>
216
  </body>
217
  </html>
62
  <li class="nav-header private">» Private</li>
63
  <li class="property private "><a href="#%24mla_debug" title="$mla_debug :: Turn debug collection and display on or off"><span class="description">Turn debug collection and display on or off</span><pre>$mla_debug</pre></a></li>
64
  <li class="property private "><a href="#%24mla_debug_messages" title="$mla_debug_messages :: Accumulates debug messages"><span class="description">Accumulates debug messages</span><pre>$mla_debug_messages</pre></a></li>
65
+ <li class="property private "><a href="#%24mla_iptc_descriptions" title="$mla_iptc_descriptions :: IPTC Dataset descriptions"><span class="description">IPTC Dataset descriptions</span><pre>$mla_iptc_descriptions</pre></a></li>
66
+ <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>
67
+ <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>
68
+ <li class="property private "><a href="#%24mla_iptc_keys" title="$mla_iptc_keys :: IPTC Dataset friendly name/slug and identifiers"><span class="description">IPTC Dataset friendly name/slug and identifiers</span><pre>$mla_iptc_keys</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">
209
  </tr></table>
210
  </div></div>
211
  </div>
212
+ <a name="%24mla_iptc_descriptions" id="$mla_iptc_descriptions"> </a><div class="element clickable property private $mla_iptc_descriptions" data-toggle="collapse" data-target=".$mla_iptc_descriptions .collapse">
213
+ <h2>IPTC Dataset descriptions</h2>
214
+ <pre>$mla_iptc_descriptions : array</pre>
215
+ <div class="labels"></div>
216
+ <div class="row collapse"><div class="detail-description">
217
+ <p class="long_description"><p>This array contains the descriptions of Datasets defined in
218
+ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
219
+ <table class="table table-bordered"><tr>
220
+ <th>since</th>
221
+ <td>0.90</td>
222
+ </tr></table>
223
+ </div></div>
224
+ </div>
225
+ <a name="%24mla_iptc_formats" id="$mla_iptc_formats"> </a><div class="element clickable property private $mla_iptc_formats" data-toggle="collapse" data-target=".$mla_iptc_formats .collapse">
226
+ <h2>IPTC file format identifiers and descriptions</h2>
227
+ <pre>$mla_iptc_formats : array</pre>
228
+ <div class="labels"></div>
229
+ <div class="row collapse"><div class="detail-description">
230
+ <p class="long_description"><p>This array contains the file format identifiers and descriptions defined in
231
+ the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p></p>
232
+ <table class="table table-bordered"><tr>
233
+ <th>since</th>
234
+ <td>0.90</td>
235
+ </tr></table>
236
+ </div></div>
237
+ </div>
238
+ <a name="%24mla_iptc_image_types" id="$mla_iptc_image_types"> </a><div class="element clickable property private $mla_iptc_image_types" data-toggle="collapse" data-target=".$mla_iptc_image_types .collapse">
239
+ <h2>IPTC image type identifiers and descriptions</h2>
240
+ <pre>$mla_iptc_image_types : array</pre>
241
+ <div class="labels"></div>
242
+ <div class="row collapse"><div class="detail-description">
243
+ <p class="long_description"><p>This array contains the image type identifiers and descriptions defined in
244
+ the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p></p>
245
+ <table class="table table-bordered"><tr>
246
+ <th>since</th>
247
+ <td>0.90</td>
248
+ </tr></table>
249
+ </div></div>
250
+ </div>
251
+ <a name="%24mla_iptc_keys" id="$mla_iptc_keys"> </a><div class="element clickable property private $mla_iptc_keys" data-toggle="collapse" data-target=".$mla_iptc_keys .collapse">
252
+ <h2>IPTC Dataset friendly name/slug and identifiers</h2>
253
+ <pre>$mla_iptc_keys : array</pre>
254
+ <div class="labels"></div>
255
+ <div class="row collapse"><div class="detail-description">
256
+ <p class="long_description"><p>This array contains the sanitized names and identifiers of Datasets defined in
257
+ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
258
+ <table class="table table-bordered"><tr>
259
+ <th>since</th>
260
+ <td>0.90</td>
261
+ </tr></table>
262
+ </div></div>
263
+ </div>
264
+ <a name="%24mla_iptc_records" id="$mla_iptc_records"> </a><div class="element clickable property private $mla_iptc_records" data-toggle="collapse" data-target=".$mla_iptc_records .collapse">
265
+ <h2>IPTC Dataset identifiers and names</h2>
266
+ <pre>$mla_iptc_records : array</pre>
267
+ <div class="labels"></div>
268
+ <div class="row collapse"><div class="detail-description">
269
+ <p class="long_description"><p>This array contains the identifiers and names of Datasets defined in
270
+ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
271
+ <table class="table table-bordered"><tr>
272
+ <th>since</th>
273
+ <td>0.90</td>
274
+ </tr></table>
275
+ </div></div>
276
+ </div>
277
  </div>
278
  </div>
279
  </div>
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 2012-12-07T13:43:49-08:00.<br></footer></div>
285
  </div>
286
  </body>
287
  </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 2012-11-25T17:41:22-08:00.<br></footer></div>
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 2012-12-07T13:43:49-08:00.<br></footer></div>
164
  </div>
165
  </body>
166
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -986,7 +986,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
986
  <div class="row"><footer class="span12">
987
  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>
988
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
989
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
990
  </div>
991
  </body>
992
  </html>
986
  <div class="row"><footer class="span12">
987
  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>
988
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
989
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
990
  </div>
991
  </body>
992
  </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 2012-11-25T17:41:22-08:00.<br></footer></div>
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 2012-12-07T13:43:49-08:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
phpDocs/errors.html CHANGED
@@ -75,7 +75,7 @@
75
  <div class="row"><footer class="span12">
76
  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>
77
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
78
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
79
  </div>
80
  </body>
81
  </html>
75
  <div class="row"><footer class="span12">
76
  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>
77
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
78
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
79
  </div>
80
  </body>
81
  </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 2012-11-25T17:41:22-08:00.<br></footer></div>
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 2012-12-07T13:43:49-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 2012-11-25T17:41:22-08:00.<br></footer></div>
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 2012-12-07T13:43:49-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 2012-11-25T17:41:22-08:00.<br></footer></div>
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 2012-12-07T13:43:49-08:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -166,7 +166,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
166
  <div class="row"><footer class="span12">
167
  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>
168
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
169
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
170
  </div>
171
  </body>
172
  </html>
166
  <div class="row"><footer class="span12">
167
  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>
168
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
169
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
170
  </div>
171
  </body>
172
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -187,7 +187,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
187
  <div class="row"><footer class="span12">
188
  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>
189
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
190
- generated on 2012-11-25T17:41:22-08:00.<br></footer></div>
191
  </div>
192
  </body>
193
  </html>
187
  <div class="row"><footer class="span12">
188
  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>
189
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
190
+ generated on 2012-12-07T13:43:49-08:00.<br></footer></div>
191
  </div>
192
  </body>
193
  </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="7076aa53c1fa1a90b0d4e5a1e0b9a395" 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>
@@ -18,24 +18,24 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
18
  <tag line="9" name="package" description="Media Library Assistant"/>
19
  <tag line="9" name="since" description="0.1"/>
20
  </docblock>
21
- <property final="false" static="true" visibility="private" line="222" namespace="global" package="Media Library Assistant">
22
  <name>$query_parameters</name>
23
  <default><![CDATA[array()]]></default>
24
- <docblock line="211">
25
  <description><![CDATA[WP_Query filter "parameters"]]></description>
26
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
27
  The parameters are set up in the _prepare_list_table_query function, and
28
  any further logic required to translate those values is contained in the filters.</p>]]></long-description>
29
- <tag line="211" name="since" description="0.30"/>
30
- <tag line="211" name="var" description="" type="array">
31
  <type by_reference="false">array</type>
32
  </tag>
33
  </docblock>
34
  </property>
35
- <property final="false" static="true" visibility="private" line="904" namespace="global" package="Media Library Assistant">
36
  <name>$galleries</name>
37
  <default><![CDATA[null]]></default>
38
- <docblock line="886">
39
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
40
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
41
  and array(s) of which attachments each [gallery] contains. The arrays are built once
@@ -47,22 +47,22 @@ Each inner array has these elements:
47
  ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
48
  ['query'] contains a string with the arguments of the [gallery],
49
  ['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
50
- <tag line="886" name="since" description="0.70"/>
51
- <tag line="886" name="var" description="" type="array">
52
  <type by_reference="false">array</type>
53
  </tag>
54
  </docblock>
55
  </property>
56
- <property final="false" static="true" visibility="private" line="917" namespace="global" package="Media Library Assistant">
57
  <name>$mla_galleries</name>
58
  <default><![CDATA[null]]></default>
59
- <docblock line="906">
60
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
61
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
62
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
63
  each page load and cached for subsequent calls.</p>]]></long-description>
64
- <tag line="906" name="since" description="0.70"/>
65
- <tag line="906" name="var" description="" type="array">
66
  <type by_reference="false">array</type>
67
  </tag>
68
  </docblock>
@@ -137,451 +137,527 @@ where "key" becomes the key part of the array.</p>]]></long-description>
137
  <type/>
138
  </argument>
139
  </method>
140
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="159" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  <name>mla_count_list_table_items</name>
142
  <full_name>mla_count_list_table_items</full_name>
143
- <docblock line="150">
144
  <description><![CDATA[Get the total number of attachment posts]]></description>
145
  <long-description><![CDATA[]]></long-description>
146
- <tag line="150" name="since" description="0.30"/>
147
- <tag line="150" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
148
  <type by_reference="false">array</type>
149
  </tag>
150
- <tag line="150" name="return" description="Number of attachment posts" type="integer">
151
  <type by_reference="false">integer</type>
152
  </tag>
153
  </docblock>
154
- <argument line="159">
155
  <name>$request</name>
156
  <default><![CDATA[]]></default>
157
  <type/>
158
  </argument>
159
  </method>
160
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="180" package="Media Library Assistant">
161
  <name>mla_query_list_table_items</name>
162
  <full_name>mla_query_list_table_items</full_name>
163
- <docblock line="166">
164
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
165
  <long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
166
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
167
- <tag line="166" name="since" description="0.1"/>
168
- <tag line="166" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
169
  <type by_reference="false">array</type>
170
  </tag>
171
- <tag line="166" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
172
  <type by_reference="false">int</type>
173
  </tag>
174
- <tag line="166" name="param" description="number of rows on each page" type="int" variable="$count">
175
  <type by_reference="false">int</type>
176
  </tag>
177
- <tag line="166" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
178
  <type by_reference="false">array</type>
179
  </tag>
180
  </docblock>
181
- <argument line="180">
182
  <name>$request</name>
183
  <default><![CDATA[]]></default>
184
  <type/>
185
  </argument>
186
- <argument line="180">
187
  <name>$offset</name>
188
  <default><![CDATA[]]></default>
189
  <type/>
190
  </argument>
191
- <argument line="180">
192
  <name>$count</name>
193
  <default><![CDATA[]]></default>
194
  <type/>
195
  </argument>
196
  </method>
197
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="238" package="Media Library Assistant">
198
  <name>_prepare_list_table_query</name>
199
  <full_name>_prepare_list_table_query</full_name>
200
- <docblock line="224">
201
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
202
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
203
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
204
- <tag line="224" name="since" description="0.1"/>
205
- <tag line="224" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
206
  <type by_reference="false">array</type>
207
  </tag>
208
- <tag line="224" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
209
  <type by_reference="false">int</type>
210
  </tag>
211
- <tag line="224" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
212
  <type by_reference="false">int</type>
213
  </tag>
214
- <tag line="224" name="return" description="revised arguments suitable for WP_Query" type="array">
215
  <type by_reference="false">array</type>
216
  </tag>
217
  </docblock>
218
- <argument line="238">
219
  <name>$raw_request</name>
220
  <default><![CDATA[]]></default>
221
  <type/>
222
  </argument>
223
- <argument line="238">
224
  <name>$offset</name>
225
  <default><![CDATA[0]]></default>
226
  <type/>
227
  </argument>
228
- <argument line="238">
229
  <name>$count</name>
230
  <default><![CDATA[0]]></default>
231
  <type/>
232
  </argument>
233
  </method>
234
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="455" package="Media Library Assistant">
235
  <name>_execute_list_table_query</name>
236
  <full_name>_execute_list_table_query</full_name>
237
- <docblock line="446">
238
  <description><![CDATA[Add filters, run query, remove filters]]></description>
239
  <long-description><![CDATA[]]></long-description>
240
- <tag line="446" name="since" description="0.30"/>
241
- <tag line="446" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
242
  <type by_reference="false">array</type>
243
  </tag>
244
- <tag line="446" name="return" description="WP_Query object with query results" type="object">
245
  <type by_reference="false">object</type>
246
  </tag>
247
  </docblock>
248
- <argument line="455">
249
  <name>$request</name>
250
  <default><![CDATA[]]></default>
251
  <type/>
252
  </argument>
253
  </method>
254
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="483" package="Media Library Assistant">
255
  <name>mla_query_posts_search_filter</name>
256
  <full_name>mla_query_posts_search_filter</full_name>
257
- <docblock line="471">
258
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
259
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
260
- <tag line="471" name="since" description="0.60"/>
261
- <tag line="471" name="param" description="query clause before modification" type="string" variable="$search_string">
262
  <type by_reference="false">string</type>
263
  </tag>
264
- <tag line="471" name="param" description="WP_Query object" type="object" variable="$query_object">
265
  <type by_reference="false">object</type>
266
  </tag>
267
- <tag line="471" name="return" description="query clause after keyword search addition" type="string">
268
  <type by_reference="false">string</type>
269
  </tag>
270
  </docblock>
271
- <argument line="483">
272
  <name>$search_string</name>
273
  <default><![CDATA[]]></default>
274
  <type/>
275
  </argument>
276
- <argument line="483">
277
  <name>$query_object</name>
278
  <default><![CDATA[]]></default>
279
  <type/>
280
  </argument>
281
  </method>
282
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="556" package="Media Library Assistant">
283
  <name>mla_query_posts_join_filter</name>
284
  <full_name>mla_query_posts_join_filter</full_name>
285
- <docblock line="545">
286
  <description><![CDATA[Adds a JOIN clause, if required]]></description>
287
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
288
- <tag line="545" name="since" description="0.30"/>
289
- <tag line="545" name="param" description="query clause before modification" type="string" variable="$join_clause">
290
  <type by_reference="false">string</type>
291
  </tag>
292
- <tag line="545" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
293
  <type by_reference="false">string</type>
294
  </tag>
295
  </docblock>
296
- <argument line="556">
297
  <name>$join_clause</name>
298
  <default><![CDATA[]]></default>
299
  <type/>
300
  </argument>
301
  </method>
302
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="585" package="Media Library Assistant">
303
  <name>mla_query_posts_where_filter</name>
304
  <full_name>mla_query_posts_where_filter</full_name>
305
- <docblock line="573">
306
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
307
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
308
  Defined as public because it's a filter.</p>]]></long-description>
309
- <tag line="573" name="since" description="0.1"/>
310
- <tag line="573" name="param" description="query clause before modification" type="string" variable="$where_clause">
311
  <type by_reference="false">string</type>
312
  </tag>
313
- <tag line="573" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
314
  <type by_reference="false">string</type>
315
  </tag>
316
  </docblock>
317
- <argument line="585">
318
  <name>$where_clause</name>
319
  <default><![CDATA[]]></default>
320
  <type/>
321
  </argument>
322
  </method>
323
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="606" package="Media Library Assistant">
324
  <name>mla_query_posts_orderby_filter</name>
325
  <full_name>mla_query_posts_orderby_filter</full_name>
326
- <docblock line="594">
327
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
328
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
329
  Defined as public because it's a filter.</p>]]></long-description>
330
- <tag line="594" name="since" description="0.30"/>
331
- <tag line="594" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
332
  <type by_reference="false">string</type>
333
  </tag>
334
- <tag line="594" name="return" description="updated query clause" type="string">
335
  <type by_reference="false">string</type>
336
  </tag>
337
  </docblock>
338
- <argument line="606">
339
  <name>$orderby_clause</name>
340
  <default><![CDATA[]]></default>
341
  <type/>
342
  </argument>
343
  </method>
344
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="655" package="Media Library Assistant">
345
  <name>mla_get_attachment_by_id</name>
346
  <full_name>mla_get_attachment_by_id</full_name>
347
- <docblock line="644">
348
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
349
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
350
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
351
- <tag line="644" name="since" description="0.1"/>
352
- <tag line="644" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
353
  <type by_reference="false">int</type>
354
  </tag>
355
- <tag line="644" name="return" description="NULL on failure else associative array" type="NULL|array">
356
  <type by_reference="false">NULL</type>
357
  <type by_reference="false">array</type>
358
  </tag>
359
  </docblock>
360
- <argument line="655">
361
  <name>$post_id</name>
362
  <default><![CDATA[]]></default>
363
  <type/>
364
  </argument>
365
  </method>
366
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="704" package="Media Library Assistant">
367
  <name>mla_fetch_attachment_references</name>
368
  <full_name>mla_fetch_attachment_references</full_name>
369
- <docblock line="691">
370
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
371
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
372
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
373
- <tag line="691" name="since" description="0.1"/>
374
- <tag line="691" name="param" description="post ID of attachment" type="int" variable="$ID">
375
  <type by_reference="false">int</type>
376
  </tag>
377
- <tag line="691" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
378
  <type by_reference="false">int</type>
379
  </tag>
380
- <tag line="691" name="return" description="Reference information; see $references array comments" type="array">
381
  <type by_reference="false">array</type>
382
  </tag>
383
  </docblock>
384
- <argument line="704">
385
  <name>$ID</name>
386
  <default><![CDATA[]]></default>
387
  <type/>
388
  </argument>
389
- <argument line="704">
390
  <name>$parent</name>
391
  <default><![CDATA[]]></default>
392
  <type/>
393
  </argument>
394
  </method>
395
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="930" package="Media Library Assistant">
396
  <name>_build_mla_galleries</name>
397
  <full_name>_build_mla_galleries</full_name>
398
- <docblock line="919">
399
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
400
  <long-description><![CDATA[]]></long-description>
401
- <tag line="919" name="since" description="0.70"/>
402
- <tag line="919" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
403
  <type by_reference="false">array</type>
404
  </tag>
405
- <tag line="919" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
406
  <type by_reference="false">string</type>
407
  </tag>
408
- <tag line="919" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
409
  <type by_reference="false">boolean</type>
410
  </tag>
411
- <tag line="919" name="return" description="true if the galleries array is not empty" type="boolean">
412
  <type by_reference="false">boolean</type>
413
  </tag>
414
  </docblock>
415
- <argument line="930">
416
  <name>$galleries_array</name>
417
  <default><![CDATA[]]></default>
418
  <type/>
419
  </argument>
420
- <argument line="930">
421
  <name>$shortcode</name>
422
  <default><![CDATA[]]></default>
423
  <type/>
424
  </argument>
425
- <argument line="930">
426
  <name>$exclude_revisions</name>
427
  <default><![CDATA[]]></default>
428
  <type/>
429
  </argument>
430
  </method>
431
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1012" package="Media Library Assistant">
432
  <name>_search_mla_galleries</name>
433
  <full_name>_search_mla_galleries</full_name>
434
- <docblock line="1001">
435
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
436
  <long-description><![CDATA[]]></long-description>
437
- <tag line="1001" name="since" description="0.70"/>
438
- <tag line="1001" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
439
  <type by_reference="false">array</type>
440
  </tag>
441
- <tag line="1001" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
442
  <type by_reference="false">int</type>
443
  </tag>
444
- <tag line="1001" 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">
445
  <type by_reference="false">array</type>
446
  </tag>
447
  </docblock>
448
- <argument line="1012">
449
  <name>$galleries_array</name>
450
  <default><![CDATA[]]></default>
451
  <type/>
452
  </argument>
453
- <argument line="1012">
454
  <name>$attachment_id</name>
455
  <default><![CDATA[]]></default>
456
  <type/>
457
  </argument>
458
  </method>
459
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1034" package="Media Library Assistant">
460
  <name>mla_fetch_attachment_parent_data</name>
461
  <full_name>mla_fetch_attachment_parent_data</full_name>
462
- <docblock line="1025">
463
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
464
  <long-description><![CDATA[]]></long-description>
465
- <tag line="1025" name="since" description="0.1"/>
466
- <tag line="1025" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
467
  <type by_reference="false">int</type>
468
  </tag>
469
- <tag line="1025" name="return" description="Parent information; post_date, post_title and post_type" type="array">
470
  <type by_reference="false">array</type>
471
  </tag>
472
  </docblock>
473
- <argument line="1034">
474
  <name>$parent_id</name>
475
  <default><![CDATA[]]></default>
476
  <type/>
477
  </argument>
478
  </method>
479
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1062" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
480
  <name>mla_fetch_attachment_metadata</name>
481
  <full_name>mla_fetch_attachment_metadata</full_name>
482
- <docblock line="1049">
483
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
484
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
485
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
486
  a string containing the first array element.</p>]]></long-description>
487
- <tag line="1049" name="since" description="0.1"/>
488
- <tag line="1049" name="param" description="post ID of attachment" type="int" variable="$post_id">
489
  <type by_reference="false">int</type>
490
  </tag>
491
- <tag line="1049" name="return" description="Meta data variables" type="array">
492
  <type by_reference="false">array</type>
493
  </tag>
494
  </docblock>
495
- <argument line="1062">
496
  <name>$post_id</name>
497
  <default><![CDATA[]]></default>
498
  <type/>
499
  </argument>
500
  </method>
501
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1113" package="Media Library Assistant">
502
  <name>mla_update_single_item</name>
503
  <full_name>mla_update_single_item</full_name>
504
- <docblock line="1100">
505
  <description><![CDATA[Update a single item; change the meta data
506
  for a single attachment.]]></description>
507
  <long-description><![CDATA[]]></long-description>
508
- <tag line="1100" name="since" description="0.1"/>
509
- <tag line="1100" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
510
  <type by_reference="false">int</type>
511
  </tag>
512
- <tag line="1100" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
513
  <type by_reference="false">array</type>
514
  </tag>
515
- <tag line="1100" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
516
  <type by_reference="false">array</type>
517
  </tag>
518
- <tag line="1100" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
519
  <type by_reference="false">array</type>
520
  </tag>
521
- <tag line="1100" name="return" description="success/failure message and NULL content" type="array">
522
  <type by_reference="false">array</type>
523
  </tag>
524
  </docblock>
525
- <argument line="1113">
526
  <name>$post_id</name>
527
  <default><![CDATA[]]></default>
528
  <type/>
529
  </argument>
530
- <argument line="1113">
531
  <name>$new_data</name>
532
  <default><![CDATA[]]></default>
533
  <type/>
534
  </argument>
535
- <argument line="1113">
536
  <name>$tax_input</name>
537
  <default><![CDATA[NULL]]></default>
538
  <type/>
539
  </argument>
540
- <argument line="1113">
541
  <name>$tax_actions</name>
542
  <default><![CDATA[NULL]]></default>
543
  <type/>
544
  </argument>
545
  </method>
546
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1305" package="Media Library Assistant">
547
  <name>_remove_tags</name>
548
  <full_name>_remove_tags</full_name>
549
- <docblock line="1294">
550
  <description><![CDATA[Remove tags from a term ids list]]></description>
551
  <long-description><![CDATA[]]></long-description>
552
- <tag line="1294" name="since" description="0.40"/>
553
- <tag line="1294" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
554
  <type by_reference="false">array</type>
555
  </tag>
556
- <tag line="1294" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
557
  <type by_reference="false">array</type>
558
  </tag>
559
- <tag line="1294" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
560
  <type by_reference="false">object</type>
561
  </tag>
562
- <tag line="1294" name="return" description="Term ids of the surviving tags" type="array">
563
  <type by_reference="false">array</type>
564
  </tag>
565
  </docblock>
566
- <argument line="1305">
567
  <name>$terms_before</name>
568
  <default><![CDATA[]]></default>
569
  <type/>
570
  </argument>
571
- <argument line="1305">
572
  <name>$tags</name>
573
  <default><![CDATA[]]></default>
574
  <type/>
575
  </argument>
576
- <argument line="1305">
577
  <name>$taxonomy_obj</name>
578
  <default><![CDATA[]]></default>
579
  <type/>
580
  </argument>
581
  </method>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
582
  </class>
583
  </file>
584
- <file path="includes\class-mla-edit-media.php" hash="b54afde032b42b5d2fbfdc62e3e592c1" package="Media Library Assistant">
585
  <docblock line="2">
586
  <description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
587
  <long-description><![CDATA[]]></long-description>
@@ -598,15 +674,15 @@ for a single attachment.]]></description>
598
  <tag line="9" name="package" description="Media Library Assistant"/>
599
  <tag line="9" name="since" description="0.80"/>
600
  </docblock>
601
- <property final="false" static="true" visibility="private" line="96" namespace="global" package="Media Library Assistant">
602
  <name>$mla_references</name>
603
  <default><![CDATA[null]]></default>
604
- <docblock line="86">
605
  <description><![CDATA[Where-used values for the current item]]></description>
606
  <long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
607
  The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
608
- <tag line="86" name="since" description="0.80"/>
609
- <tag line="86" name="var" description="" type="array">
610
  <type by_reference="false">array</type>
611
  </tag>
612
  </docblock>
@@ -623,201 +699,229 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
623
  </tag>
624
  </docblock>
625
  </method>
626
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="48" package="Media Library Assistant">
627
  <name>mla_last_modified_action</name>
628
  <full_name>mla_last_modified_action</full_name>
629
- <docblock line="40">
630
  <description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
631
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
632
- <tag line="40" name="since" description="0.80"/>
633
- <tag line="40" name="return" description="echoes the HTML markup for the label and value" type="void">
634
  <type by_reference="false">void</type>
635
  </tag>
636
  </docblock>
637
  </method>
638
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="70" package="Media Library Assistant">
639
  <name>mla_add_meta_boxes_action</name>
640
  <full_name>mla_add_meta_boxes_action</full_name>
641
- <docblock line="59">
642
  <description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
643
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
644
- <tag line="59" name="since" description="0.80"/>
645
- <tag line="59" name="param" description="type of the current post, e.g., 'attachment'" type="string" variable="$post_type">
646
  <type by_reference="false">string</type>
647
  </tag>
648
- <tag line="59" name="param" description="current post" type="object" variable="$post">
649
  <type by_reference="false">object</type>
650
  </tag>
651
- <tag line="59" name="return" description="" type="void">
652
  <type by_reference="false">void</type>
653
  </tag>
654
  </docblock>
655
- <argument line="70">
656
  <name>$post_type</name>
657
  <default><![CDATA[]]></default>
658
  <type/>
659
  </argument>
660
- <argument line="70">
661
  <name>$post</name>
662
  <default><![CDATA[]]></default>
663
  <type/>
664
  </argument>
665
  </method>
666
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="108" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
  <name>mla_parent_info_handler</name>
668
  <full_name>mla_parent_info_handler</full_name>
669
- <docblock line="98">
670
  <description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
671
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
672
- <tag line="98" name="since" description="0.80"/>
673
- <tag line="98" name="param" description="current post" type="object" variable="$post">
674
  <type by_reference="false">object</type>
675
  </tag>
676
- <tag line="98" name="return" description="echoes the HTML markup for the meta box content" type="void">
677
  <type by_reference="false">void</type>
678
  </tag>
679
  </docblock>
680
- <argument line="108">
681
  <name>$post</name>
682
  <default><![CDATA[]]></default>
683
  <type/>
684
  </argument>
685
  </method>
686
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
687
  <name>mla_menu_order_handler</name>
688
  <full_name>mla_menu_order_handler</full_name>
689
- <docblock line="137">
690
  <description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
691
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
692
- <tag line="137" name="since" description="0.80"/>
693
- <tag line="137" name="param" description="current post" type="object" variable="$post">
694
  <type by_reference="false">object</type>
695
  </tag>
696
- <tag line="137" name="return" description="echoes the HTML markup for the meta box content" type="void">
697
  <type by_reference="false">void</type>
698
  </tag>
699
  </docblock>
700
- <argument line="147">
701
  <name>$post</name>
702
  <default><![CDATA[]]></default>
703
  <type/>
704
  </argument>
705
  </method>
706
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="162" package="Media Library Assistant">
707
  <name>mla_image_metadata_handler</name>
708
  <full_name>mla_image_metadata_handler</full_name>
709
- <docblock line="152">
710
  <description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
711
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
712
- <tag line="152" name="since" description="0.80"/>
713
- <tag line="152" name="param" description="current post" type="object" variable="$post">
714
  <type by_reference="false">object</type>
715
  </tag>
716
- <tag line="152" name="return" description="echoes the HTML markup for the meta box content" type="void">
717
  <type by_reference="false">void</type>
718
  </tag>
719
  </docblock>
720
- <argument line="162">
721
  <name>$post</name>
722
  <default><![CDATA[]]></default>
723
  <type/>
724
  </argument>
725
  </method>
726
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="183" package="Media Library Assistant">
727
  <name>mla_featured_in_handler</name>
728
  <full_name>mla_featured_in_handler</full_name>
729
- <docblock line="173">
730
  <description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
731
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
732
- <tag line="173" name="since" description="0.80"/>
733
- <tag line="173" name="param" description="current post" type="object" variable="$post">
734
  <type by_reference="false">object</type>
735
  </tag>
736
- <tag line="173" name="return" description="echoes the HTML markup for the meta box content" type="void">
737
  <type by_reference="false">void</type>
738
  </tag>
739
  </docblock>
740
- <argument line="183">
741
  <name>$post</name>
742
  <default><![CDATA[]]></default>
743
  <type/>
744
  </argument>
745
  </method>
746
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="213" package="Media Library Assistant">
747
  <name>mla_inserted_in_handler</name>
748
  <full_name>mla_inserted_in_handler</full_name>
749
- <docblock line="203">
750
  <description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
751
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
752
- <tag line="203" name="since" description="0.80"/>
753
- <tag line="203" name="param" description="current post" type="object" variable="$post">
754
  <type by_reference="false">object</type>
755
  </tag>
756
- <tag line="203" name="return" description="echoes the HTML markup for the meta box content" type="void">
757
  <type by_reference="false">void</type>
758
  </tag>
759
  </docblock>
760
- <argument line="213">
761
  <name>$post</name>
762
  <default><![CDATA[]]></default>
763
  <type/>
764
  </argument>
765
  </method>
766
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="247" package="Media Library Assistant">
767
  <name>mla_gallery_in_handler</name>
768
  <full_name>mla_gallery_in_handler</full_name>
769
- <docblock line="237">
770
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
771
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
772
- <tag line="237" name="since" description="0.80"/>
773
- <tag line="237" name="param" description="current post" type="object" variable="$post">
774
  <type by_reference="false">object</type>
775
  </tag>
776
- <tag line="237" name="return" description="echoes the HTML markup for the meta box content" type="void">
777
  <type by_reference="false">void</type>
778
  </tag>
779
  </docblock>
780
- <argument line="247">
781
  <name>$post</name>
782
  <default><![CDATA[]]></default>
783
  <type/>
784
  </argument>
785
  </method>
786
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="277" package="Media Library Assistant">
787
  <name>mla_mla_gallery_in_handler</name>
788
  <full_name>mla_mla_gallery_in_handler</full_name>
789
- <docblock line="267">
790
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
791
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
792
- <tag line="267" name="since" description="0.80"/>
793
- <tag line="267" name="param" description="current post" type="object" variable="$post">
794
  <type by_reference="false">object</type>
795
  </tag>
796
- <tag line="267" name="return" description="echoes the HTML markup for the meta box content" type="void">
797
  <type by_reference="false">void</type>
798
  </tag>
799
  </docblock>
800
- <argument line="277">
801
  <name>$post</name>
802
  <default><![CDATA[]]></default>
803
  <type/>
804
  </argument>
805
  </method>
806
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="307" package="Media Library Assistant">
807
  <name>mla_edit_attachment_action</name>
808
  <full_name>mla_edit_attachment_action</full_name>
809
- <docblock line="297">
810
  <description><![CDATA[Saves updates from the Edit Media screen.]]></description>
811
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
812
- <tag line="297" name="since" description="0.80"/>
813
- <tag line="297" name="param" description="ID of the current post" type="integer" variable="$post_ID">
814
  <type by_reference="false">integer</type>
815
  </tag>
816
- <tag line="297" name="return" description="" type="void">
817
  <type by_reference="false">void</type>
818
  </tag>
819
  </docblock>
820
- <argument line="307">
821
  <name>$post_ID</name>
822
  <default><![CDATA[]]></default>
823
  <type/>
@@ -1682,7 +1786,7 @@ $this->set_pagination_args().</p>]]></long-description>
1682
  </method>
1683
  </class>
1684
  </file>
1685
- <file path="includes\class-mla-main.php" hash="85b8d34f91624ab3cf6ec0f5bb717de5" package="Media Library Assistant">
1686
  <docblock line="2">
1687
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1688
  <long-description><![CDATA[]]></long-description>
@@ -1719,7 +1823,7 @@ of images and files held in the WordPress Media Library.]]></description>
1719
  <constant namespace="global" line="41" package="Media Library Assistant">
1720
  <name>CURRENT_MLA_VERSION</name>
1721
  <full_name>CURRENT_MLA_VERSION</full_name>
1722
- <value><![CDATA['0.81']]></value>
1723
  <docblock line="34">
1724
  <description><![CDATA[Current version number]]></description>
1725
  <long-description><![CDATA[]]></long-description>
@@ -2417,7 +2521,7 @@ which returns a count of the attachments assigned a given term]]></description>
2417
  </method>
2418
  </class>
2419
  </file>
2420
- <file path="includes\class-mla-settings.php" hash="8a10e64bb55bb4db8049d532fe9b8d39" package="Media Library Assistant">
2421
  <docblock line="2">
2422
  <description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
2423
  <long-description><![CDATA[]]></long-description>
@@ -3068,7 +3172,7 @@ settings are being updated or reset.]]></description>
3068
  </method>
3069
  </class>
3070
  </file>
3071
- <file path="includes\class-mla-shortcodes.php" hash="945204e528911ac54ffe89daaec6bdc9" package="Media Library Assistant">
3072
  <docblock line="2">
3073
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
3074
  <long-description><![CDATA[]]></long-description>
@@ -3109,6 +3213,71 @@ settings are being updated or reset.]]></description>
3109
  </tag>
3110
  </docblock>
3111
  </property>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3112
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="23" package="Media Library Assistant">
3113
  <name>initialize</name>
3114
  <full_name>initialize</full_name>
@@ -3155,51 +3324,51 @@ Enhancements include many additional selection parameters and full taxonomy supp
3155
  <type/>
3156
  </argument>
3157
  </method>
3158
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="534" package="Media Library Assistant">
3159
  <name>mla_get_shortcode_attachments</name>
3160
  <full_name>mla_get_shortcode_attachments</full_name>
3161
- <docblock line="524">
3162
  <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
3163
  <long-description><![CDATA[]]></long-description>
3164
- <tag line="524" name="since" description=".50"/>
3165
- <tag line="524" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
3166
  <type by_reference="false">int</type>
3167
  </tag>
3168
- <tag line="524" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
3169
  <type by_reference="false">array</type>
3170
  </tag>
3171
- <tag line="524" name="return" description="List of attachments returned from WP_Query" type="array">
3172
  <type by_reference="false">array</type>
3173
  </tag>
3174
  </docblock>
3175
- <argument line="534">
3176
  <name>$post_parent</name>
3177
  <default><![CDATA[]]></default>
3178
  <type/>
3179
  </argument>
3180
- <argument line="534">
3181
  <name>$attr</name>
3182
  <default><![CDATA[]]></default>
3183
  <type/>
3184
  </argument>
3185
  </method>
3186
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="854" package="Media Library Assistant">
3187
  <name>mla_shortcode_query_posts_where_filter</name>
3188
  <full_name>mla_shortcode_query_posts_where_filter</full_name>
3189
- <docblock line="841">
3190
  <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
3191
  <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
3192
  phrase to circumvent subsequent Role Scoper modification of the clause.
3193
  Defined as public because it's a filter.</p>]]></long-description>
3194
- <tag line="841" name="since" description="0.70"/>
3195
- <tag line="841" name="param" description="query clause before modification" type="string" variable="$where_clause">
3196
  <type by_reference="false">string</type>
3197
  </tag>
3198
- <tag line="841" name="return" description="query clause after modification" type="string">
3199
  <type by_reference="false">string</type>
3200
  </tag>
3201
  </docblock>
3202
- <argument line="854">
3203
  <name>$where_clause</name>
3204
  <default><![CDATA[]]></default>
3205
  <type/>
@@ -3249,13 +3418,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
3249
  </docblock>
3250
  </constant>
3251
  </file>
3252
- <file path="index.php" hash="bbe1528cf6dd4f3c6982265e91bfc59a" package="Media Library Assistant">
3253
  <docblock line="2">
3254
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
3255
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
3256
  will the rest of the plugin be loaded and run.</p>]]></long-description>
3257
  <tag line="2" name="package" description="Media Library Assistant"/>
3258
- <tag line="2" name="version" description="0.81"/>
3259
  </docblock>
3260
  <include line="103" type="Require Once" package="Media Library Assistant">
3261
  <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="12ba1e89efa410587b2809a559342485" 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>
18
  <tag line="9" name="package" description="Media Library Assistant"/>
19
  <tag line="9" name="since" description="0.1"/>
20
  </docblock>
21
+ <property final="false" static="true" visibility="private" line="265" namespace="global" package="Media Library Assistant">
22
  <name>$query_parameters</name>
23
  <default><![CDATA[array()]]></default>
24
+ <docblock line="254">
25
  <description><![CDATA[WP_Query filter "parameters"]]></description>
26
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
27
  The parameters are set up in the _prepare_list_table_query function, and
28
  any further logic required to translate those values is contained in the filters.</p>]]></long-description>
29
+ <tag line="254" name="since" description="0.30"/>
30
+ <tag line="254" name="var" description="" type="array">
31
  <type by_reference="false">array</type>
32
  </tag>
33
  </docblock>
34
  </property>
35
+ <property final="false" static="true" visibility="private" line="947" namespace="global" package="Media Library Assistant">
36
  <name>$galleries</name>
37
  <default><![CDATA[null]]></default>
38
+ <docblock line="929">
39
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
40
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
41
  and array(s) of which attachments each [gallery] contains. The arrays are built once
47
  ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
48
  ['query'] contains a string with the arguments of the [gallery],
49
  ['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
50
+ <tag line="929" name="since" description="0.70"/>
51
+ <tag line="929" name="var" description="" type="array">
52
  <type by_reference="false">array</type>
53
  </tag>
54
  </docblock>
55
  </property>
56
+ <property final="false" static="true" visibility="private" line="960" namespace="global" package="Media Library Assistant">
57
  <name>$mla_galleries</name>
58
  <default><![CDATA[null]]></default>
59
+ <docblock line="949">
60
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
61
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
62
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
63
  each page load and cached for subsequent calls.</p>]]></long-description>
64
+ <tag line="949" name="since" description="0.70"/>
65
+ <tag line="949" name="var" description="" type="array">
66
  <type by_reference="false">array</type>
67
  </tag>
68
  </docblock>
137
  <type/>
138
  </argument>
139
  </method>
140
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="160" package="Media Library Assistant">
141
+ <name>mla_get_template_placeholders</name>
142
+ <full_name>mla_get_template_placeholders</full_name>
143
+ <docblock line="150">
144
+ <description><![CDATA[Analyze a template, returning an array of the place holders it contains]]></description>
145
+ <long-description><![CDATA[]]></long-description>
146
+ <tag line="150" name="since" description="0.90"/>
147
+ <tag line="150" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
148
+ <type by_reference="false">string</type>
149
+ </tag>
150
+ <tag line="150" name="return" description="Placeholder information: each entry is an array with ['prefix'] =&gt; string, ['value'] =&gt; string, ['single'] =&gt; boolean" type="array">
151
+ <type by_reference="false">array</type>
152
+ </tag>
153
+ </docblock>
154
+ <argument line="160">
155
+ <name>$tpl</name>
156
+ <default><![CDATA[]]></default>
157
+ <type/>
158
+ </argument>
159
+ </method>
160
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="202" package="Media Library Assistant">
161
  <name>mla_count_list_table_items</name>
162
  <full_name>mla_count_list_table_items</full_name>
163
+ <docblock line="193">
164
  <description><![CDATA[Get the total number of attachment posts]]></description>
165
  <long-description><![CDATA[]]></long-description>
166
+ <tag line="193" name="since" description="0.30"/>
167
+ <tag line="193" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
168
  <type by_reference="false">array</type>
169
  </tag>
170
+ <tag line="193" name="return" description="Number of attachment posts" type="integer">
171
  <type by_reference="false">integer</type>
172
  </tag>
173
  </docblock>
174
+ <argument line="202">
175
  <name>$request</name>
176
  <default><![CDATA[]]></default>
177
  <type/>
178
  </argument>
179
  </method>
180
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="223" package="Media Library Assistant">
181
  <name>mla_query_list_table_items</name>
182
  <full_name>mla_query_list_table_items</full_name>
183
+ <docblock line="209">
184
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
185
  <long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
186
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
187
+ <tag line="209" name="since" description="0.1"/>
188
+ <tag line="209" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
189
  <type by_reference="false">array</type>
190
  </tag>
191
+ <tag line="209" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
192
  <type by_reference="false">int</type>
193
  </tag>
194
+ <tag line="209" name="param" description="number of rows on each page" type="int" variable="$count">
195
  <type by_reference="false">int</type>
196
  </tag>
197
+ <tag line="209" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
198
  <type by_reference="false">array</type>
199
  </tag>
200
  </docblock>
201
+ <argument line="223">
202
  <name>$request</name>
203
  <default><![CDATA[]]></default>
204
  <type/>
205
  </argument>
206
+ <argument line="223">
207
  <name>$offset</name>
208
  <default><![CDATA[]]></default>
209
  <type/>
210
  </argument>
211
+ <argument line="223">
212
  <name>$count</name>
213
  <default><![CDATA[]]></default>
214
  <type/>
215
  </argument>
216
  </method>
217
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="281" package="Media Library Assistant">
218
  <name>_prepare_list_table_query</name>
219
  <full_name>_prepare_list_table_query</full_name>
220
+ <docblock line="267">
221
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
222
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
223
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
224
+ <tag line="267" name="since" description="0.1"/>
225
+ <tag line="267" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
226
  <type by_reference="false">array</type>
227
  </tag>
228
+ <tag line="267" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
229
  <type by_reference="false">int</type>
230
  </tag>
231
+ <tag line="267" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
232
  <type by_reference="false">int</type>
233
  </tag>
234
+ <tag line="267" name="return" description="revised arguments suitable for WP_Query" type="array">
235
  <type by_reference="false">array</type>
236
  </tag>
237
  </docblock>
238
+ <argument line="281">
239
  <name>$raw_request</name>
240
  <default><![CDATA[]]></default>
241
  <type/>
242
  </argument>
243
+ <argument line="281">
244
  <name>$offset</name>
245
  <default><![CDATA[0]]></default>
246
  <type/>
247
  </argument>
248
+ <argument line="281">
249
  <name>$count</name>
250
  <default><![CDATA[0]]></default>
251
  <type/>
252
  </argument>
253
  </method>
254
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="498" package="Media Library Assistant">
255
  <name>_execute_list_table_query</name>
256
  <full_name>_execute_list_table_query</full_name>
257
+ <docblock line="489">
258
  <description><![CDATA[Add filters, run query, remove filters]]></description>
259
  <long-description><![CDATA[]]></long-description>
260
+ <tag line="489" name="since" description="0.30"/>
261
+ <tag line="489" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
262
  <type by_reference="false">array</type>
263
  </tag>
264
+ <tag line="489" name="return" description="WP_Query object with query results" type="object">
265
  <type by_reference="false">object</type>
266
  </tag>
267
  </docblock>
268
+ <argument line="498">
269
  <name>$request</name>
270
  <default><![CDATA[]]></default>
271
  <type/>
272
  </argument>
273
  </method>
274
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="526" package="Media Library Assistant">
275
  <name>mla_query_posts_search_filter</name>
276
  <full_name>mla_query_posts_search_filter</full_name>
277
+ <docblock line="514">
278
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
279
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
280
+ <tag line="514" name="since" description="0.60"/>
281
+ <tag line="514" name="param" description="query clause before modification" type="string" variable="$search_string">
282
  <type by_reference="false">string</type>
283
  </tag>
284
+ <tag line="514" name="param" description="WP_Query object" type="object" variable="$query_object">
285
  <type by_reference="false">object</type>
286
  </tag>
287
+ <tag line="514" name="return" description="query clause after keyword search addition" type="string">
288
  <type by_reference="false">string</type>
289
  </tag>
290
  </docblock>
291
+ <argument line="526">
292
  <name>$search_string</name>
293
  <default><![CDATA[]]></default>
294
  <type/>
295
  </argument>
296
+ <argument line="526">
297
  <name>$query_object</name>
298
  <default><![CDATA[]]></default>
299
  <type/>
300
  </argument>
301
  </method>
302
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="599" package="Media Library Assistant">
303
  <name>mla_query_posts_join_filter</name>
304
  <full_name>mla_query_posts_join_filter</full_name>
305
+ <docblock line="588">
306
  <description><![CDATA[Adds a JOIN clause, if required]]></description>
307
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
308
+ <tag line="588" name="since" description="0.30"/>
309
+ <tag line="588" name="param" description="query clause before modification" type="string" variable="$join_clause">
310
  <type by_reference="false">string</type>
311
  </tag>
312
+ <tag line="588" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
313
  <type by_reference="false">string</type>
314
  </tag>
315
  </docblock>
316
+ <argument line="599">
317
  <name>$join_clause</name>
318
  <default><![CDATA[]]></default>
319
  <type/>
320
  </argument>
321
  </method>
322
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="628" package="Media Library Assistant">
323
  <name>mla_query_posts_where_filter</name>
324
  <full_name>mla_query_posts_where_filter</full_name>
325
+ <docblock line="616">
326
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
327
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
328
  Defined as public because it's a filter.</p>]]></long-description>
329
+ <tag line="616" name="since" description="0.1"/>
330
+ <tag line="616" name="param" description="query clause before modification" type="string" variable="$where_clause">
331
  <type by_reference="false">string</type>
332
  </tag>
333
+ <tag line="616" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
334
  <type by_reference="false">string</type>
335
  </tag>
336
  </docblock>
337
+ <argument line="628">
338
  <name>$where_clause</name>
339
  <default><![CDATA[]]></default>
340
  <type/>
341
  </argument>
342
  </method>
343
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="649" package="Media Library Assistant">
344
  <name>mla_query_posts_orderby_filter</name>
345
  <full_name>mla_query_posts_orderby_filter</full_name>
346
+ <docblock line="637">
347
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
348
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
349
  Defined as public because it's a filter.</p>]]></long-description>
350
+ <tag line="637" name="since" description="0.30"/>
351
+ <tag line="637" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
352
  <type by_reference="false">string</type>
353
  </tag>
354
+ <tag line="637" name="return" description="updated query clause" type="string">
355
  <type by_reference="false">string</type>
356
  </tag>
357
  </docblock>
358
+ <argument line="649">
359
  <name>$orderby_clause</name>
360
  <default><![CDATA[]]></default>
361
  <type/>
362
  </argument>
363
  </method>
364
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="698" package="Media Library Assistant">
365
  <name>mla_get_attachment_by_id</name>
366
  <full_name>mla_get_attachment_by_id</full_name>
367
+ <docblock line="687">
368
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
369
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
370
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
371
+ <tag line="687" name="since" description="0.1"/>
372
+ <tag line="687" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
373
  <type by_reference="false">int</type>
374
  </tag>
375
+ <tag line="687" name="return" description="NULL on failure else associative array" type="NULL|array">
376
  <type by_reference="false">NULL</type>
377
  <type by_reference="false">array</type>
378
  </tag>
379
  </docblock>
380
+ <argument line="698">
381
  <name>$post_id</name>
382
  <default><![CDATA[]]></default>
383
  <type/>
384
  </argument>
385
  </method>
386
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="747" package="Media Library Assistant">
387
  <name>mla_fetch_attachment_references</name>
388
  <full_name>mla_fetch_attachment_references</full_name>
389
+ <docblock line="734">
390
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
391
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
392
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
393
+ <tag line="734" name="since" description="0.1"/>
394
+ <tag line="734" name="param" description="post ID of attachment" type="int" variable="$ID">
395
  <type by_reference="false">int</type>
396
  </tag>
397
+ <tag line="734" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
398
  <type by_reference="false">int</type>
399
  </tag>
400
+ <tag line="734" name="return" description="Reference information; see $references array comments" type="array">
401
  <type by_reference="false">array</type>
402
  </tag>
403
  </docblock>
404
+ <argument line="747">
405
  <name>$ID</name>
406
  <default><![CDATA[]]></default>
407
  <type/>
408
  </argument>
409
+ <argument line="747">
410
  <name>$parent</name>
411
  <default><![CDATA[]]></default>
412
  <type/>
413
  </argument>
414
  </method>
415
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="973" package="Media Library Assistant">
416
  <name>_build_mla_galleries</name>
417
  <full_name>_build_mla_galleries</full_name>
418
+ <docblock line="962">
419
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
420
  <long-description><![CDATA[]]></long-description>
421
+ <tag line="962" name="since" description="0.70"/>
422
+ <tag line="962" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
423
  <type by_reference="false">array</type>
424
  </tag>
425
+ <tag line="962" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
426
  <type by_reference="false">string</type>
427
  </tag>
428
+ <tag line="962" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
429
  <type by_reference="false">boolean</type>
430
  </tag>
431
+ <tag line="962" name="return" description="true if the galleries array is not empty" type="boolean">
432
  <type by_reference="false">boolean</type>
433
  </tag>
434
  </docblock>
435
+ <argument line="973">
436
  <name>$galleries_array</name>
437
  <default><![CDATA[]]></default>
438
  <type/>
439
  </argument>
440
+ <argument line="973">
441
  <name>$shortcode</name>
442
  <default><![CDATA[]]></default>
443
  <type/>
444
  </argument>
445
+ <argument line="973">
446
  <name>$exclude_revisions</name>
447
  <default><![CDATA[]]></default>
448
  <type/>
449
  </argument>
450
  </method>
451
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1055" package="Media Library Assistant">
452
  <name>_search_mla_galleries</name>
453
  <full_name>_search_mla_galleries</full_name>
454
+ <docblock line="1044">
455
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
456
  <long-description><![CDATA[]]></long-description>
457
+ <tag line="1044" name="since" description="0.70"/>
458
+ <tag line="1044" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
459
  <type by_reference="false">array</type>
460
  </tag>
461
+ <tag line="1044" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
462
  <type by_reference="false">int</type>
463
  </tag>
464
+ <tag line="1044" 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">
465
  <type by_reference="false">array</type>
466
  </tag>
467
  </docblock>
468
+ <argument line="1055">
469
  <name>$galleries_array</name>
470
  <default><![CDATA[]]></default>
471
  <type/>
472
  </argument>
473
+ <argument line="1055">
474
  <name>$attachment_id</name>
475
  <default><![CDATA[]]></default>
476
  <type/>
477
  </argument>
478
  </method>
479
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1077" package="Media Library Assistant">
480
  <name>mla_fetch_attachment_parent_data</name>
481
  <full_name>mla_fetch_attachment_parent_data</full_name>
482
+ <docblock line="1068">
483
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
484
  <long-description><![CDATA[]]></long-description>
485
+ <tag line="1068" name="since" description="0.1"/>
486
+ <tag line="1068" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
487
  <type by_reference="false">int</type>
488
  </tag>
489
+ <tag line="1068" name="return" description="Parent information; post_date, post_title and post_type" type="array">
490
  <type by_reference="false">array</type>
491
  </tag>
492
  </docblock>
493
+ <argument line="1077">
494
  <name>$parent_id</name>
495
  <default><![CDATA[]]></default>
496
  <type/>
497
  </argument>
498
  </method>
499
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1103" package="Media Library Assistant">
500
+ <name>mla_fetch_attachment_image_metadata</name>
501
+ <full_name>mla_fetch_attachment_image_metadata</full_name>
502
+ <docblock line="1092">
503
+ <description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
504
+ <long-description><![CDATA[<p>Returns</p>]]></long-description>
505
+ <tag line="1092" name="since" description="0.90"/>
506
+ <tag line="1092" name="param" description="post ID of attachment" type="int" variable="$post_id">
507
+ <type by_reference="false">int</type>
508
+ </tag>
509
+ <tag line="1092" name="return" description="Meta data variables" type="array">
510
+ <type by_reference="false">array</type>
511
+ </tag>
512
+ </docblock>
513
+ <argument line="1103">
514
+ <name>$post_id</name>
515
+ <default><![CDATA[]]></default>
516
+ <type/>
517
+ </argument>
518
+ </method>
519
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1157" package="Media Library Assistant">
520
  <name>mla_fetch_attachment_metadata</name>
521
  <full_name>mla_fetch_attachment_metadata</full_name>
522
+ <docblock line="1144">
523
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
524
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
525
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
526
  a string containing the first array element.</p>]]></long-description>
527
+ <tag line="1144" name="since" description="0.1"/>
528
+ <tag line="1144" name="param" description="post ID of attachment" type="int" variable="$post_id">
529
  <type by_reference="false">int</type>
530
  </tag>
531
+ <tag line="1144" name="return" description="Meta data variables" type="array">
532
  <type by_reference="false">array</type>
533
  </tag>
534
  </docblock>
535
+ <argument line="1157">
536
  <name>$post_id</name>
537
  <default><![CDATA[]]></default>
538
  <type/>
539
  </argument>
540
  </method>
541
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1208" package="Media Library Assistant">
542
  <name>mla_update_single_item</name>
543
  <full_name>mla_update_single_item</full_name>
544
+ <docblock line="1195">
545
  <description><![CDATA[Update a single item; change the meta data
546
  for a single attachment.]]></description>
547
  <long-description><![CDATA[]]></long-description>
548
+ <tag line="1195" name="since" description="0.1"/>
549
+ <tag line="1195" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
550
  <type by_reference="false">int</type>
551
  </tag>
552
+ <tag line="1195" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
553
  <type by_reference="false">array</type>
554
  </tag>
555
+ <tag line="1195" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
556
  <type by_reference="false">array</type>
557
  </tag>
558
+ <tag line="1195" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
559
  <type by_reference="false">array</type>
560
  </tag>
561
+ <tag line="1195" name="return" description="success/failure message and NULL content" type="array">
562
  <type by_reference="false">array</type>
563
  </tag>
564
  </docblock>
565
+ <argument line="1208">
566
  <name>$post_id</name>
567
  <default><![CDATA[]]></default>
568
  <type/>
569
  </argument>
570
+ <argument line="1208">
571
  <name>$new_data</name>
572
  <default><![CDATA[]]></default>
573
  <type/>
574
  </argument>
575
+ <argument line="1208">
576
  <name>$tax_input</name>
577
  <default><![CDATA[NULL]]></default>
578
  <type/>
579
  </argument>
580
+ <argument line="1208">
581
  <name>$tax_actions</name>
582
  <default><![CDATA[NULL]]></default>
583
  <type/>
584
  </argument>
585
  </method>
586
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1400" package="Media Library Assistant">
587
  <name>_remove_tags</name>
588
  <full_name>_remove_tags</full_name>
589
+ <docblock line="1389">
590
  <description><![CDATA[Remove tags from a term ids list]]></description>
591
  <long-description><![CDATA[]]></long-description>
592
+ <tag line="1389" name="since" description="0.40"/>
593
+ <tag line="1389" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
594
  <type by_reference="false">array</type>
595
  </tag>
596
+ <tag line="1389" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
597
  <type by_reference="false">array</type>
598
  </tag>
599
+ <tag line="1389" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
600
  <type by_reference="false">object</type>
601
  </tag>
602
+ <tag line="1389" name="return" description="Term ids of the surviving tags" type="array">
603
  <type by_reference="false">array</type>
604
  </tag>
605
  </docblock>
606
+ <argument line="1400">
607
  <name>$terms_before</name>
608
  <default><![CDATA[]]></default>
609
  <type/>
610
  </argument>
611
+ <argument line="1400">
612
  <name>$tags</name>
613
  <default><![CDATA[]]></default>
614
  <type/>
615
  </argument>
616
+ <argument line="1400">
617
  <name>$taxonomy_obj</name>
618
  <default><![CDATA[]]></default>
619
  <type/>
620
  </argument>
621
  </method>
622
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1444" package="Media Library Assistant">
623
+ <name>_hex_dump</name>
624
+ <full_name>_hex_dump</full_name>
625
+ <docblock line="1433">
626
+ <description><![CDATA[Format printable version of binary data]]></description>
627
+ <long-description><![CDATA[]]></long-description>
628
+ <tag line="1433" name="since" description="0.90"/>
629
+ <tag line="1433" name="param" description="Binary data" type="string" variable="$data">
630
+ <type by_reference="false">string</type>
631
+ </tag>
632
+ <tag line="1433" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
633
+ <type by_reference="false">integer</type>
634
+ </tag>
635
+ <tag line="1433" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
636
+ <type by_reference="false">\intger</type>
637
+ </tag>
638
+ <tag line="1433" name="return" description="Printable representation of $data" type="string">
639
+ <type by_reference="false">string</type>
640
+ </tag>
641
+ </docblock>
642
+ <argument line="1444">
643
+ <name>$data</name>
644
+ <default><![CDATA[]]></default>
645
+ <type/>
646
+ </argument>
647
+ <argument line="1444">
648
+ <name>$limit</name>
649
+ <default><![CDATA[0]]></default>
650
+ <type/>
651
+ </argument>
652
+ <argument line="1444">
653
+ <name>$bytes_per_row</name>
654
+ <default><![CDATA[16]]></default>
655
+ <type/>
656
+ </argument>
657
+ </method>
658
  </class>
659
  </file>
660
+ <file path="includes\class-mla-edit-media.php" hash="6bc2af3fa956827d4e2193926c99cd7e" package="Media Library Assistant">
661
  <docblock line="2">
662
  <description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
663
  <long-description><![CDATA[]]></long-description>
674
  <tag line="9" name="package" description="Media Library Assistant"/>
675
  <tag line="9" name="since" description="0.80"/>
676
  </docblock>
677
+ <property final="false" static="true" visibility="private" line="147" namespace="global" package="Media Library Assistant">
678
  <name>$mla_references</name>
679
  <default><![CDATA[null]]></default>
680
+ <docblock line="137">
681
  <description><![CDATA[Where-used values for the current item]]></description>
682
  <long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
683
  The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
684
+ <tag line="137" name="since" description="0.80"/>
685
+ <tag line="137" name="var" description="" type="array">
686
  <type by_reference="false">array</type>
687
  </tag>
688
  </docblock>
699
  </tag>
700
  </docblock>
701
  </method>
702
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="51" package="Media Library Assistant">
703
  <name>mla_last_modified_action</name>
704
  <full_name>mla_last_modified_action</full_name>
705
+ <docblock line="43">
706
  <description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
707
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
708
+ <tag line="43" name="since" description="0.80"/>
709
+ <tag line="43" name="return" description="echoes the HTML markup for the label and value" type="void">
710
  <type by_reference="false">void</type>
711
  </tag>
712
  </docblock>
713
  </method>
714
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="73" package="Media Library Assistant">
715
  <name>mla_add_meta_boxes_action</name>
716
  <full_name>mla_add_meta_boxes_action</full_name>
717
+ <docblock line="62">
718
  <description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
719
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
720
+ <tag line="62" name="since" description="0.80"/>
721
+ <tag line="62" name="param" description="type of the current post, e.g., 'attachment'" type="string" variable="$post_type">
722
  <type by_reference="false">string</type>
723
  </tag>
724
+ <tag line="62" name="param" description="current post" type="object" variable="$post">
725
  <type by_reference="false">object</type>
726
  </tag>
727
+ <tag line="62" name="return" description="" type="void">
728
  <type by_reference="false">void</type>
729
  </tag>
730
  </docblock>
731
+ <argument line="73">
732
  <name>$post_type</name>
733
  <default><![CDATA[]]></default>
734
  <type/>
735
  </argument>
736
+ <argument line="73">
737
  <name>$post</name>
738
  <default><![CDATA[]]></default>
739
  <type/>
740
  </argument>
741
  </method>
742
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="99" package="Media Library Assistant">
743
+ <name>mla_edit_add_help_tab</name>
744
+ <full_name>mla_edit_add_help_tab</full_name>
745
+ <docblock line="89">
746
+ <description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
747
+ <long-description><![CDATA[]]></long-description>
748
+ <tag line="89" name="since" description="0.90"/>
749
+ <tag line="89" name="param" description="title as shown on the screen" type="string" variable="$admin_title">
750
+ <type by_reference="false">string</type>
751
+ </tag>
752
+ <tag line="89" name="param" description="title as shown in the HTML header" type="string" variable="$title">
753
+ <type by_reference="false">string</type>
754
+ </tag>
755
+ <tag line="89" name="return" description="" type="void">
756
+ <type by_reference="false">void</type>
757
+ </tag>
758
+ </docblock>
759
+ <argument line="99">
760
+ <name>$admin_title</name>
761
+ <default><![CDATA[]]></default>
762
+ <type/>
763
+ </argument>
764
+ <argument line="99">
765
+ <name>$title</name>
766
+ <default><![CDATA[]]></default>
767
+ <type/>
768
+ </argument>
769
+ </method>
770
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="159" package="Media Library Assistant">
771
  <name>mla_parent_info_handler</name>
772
  <full_name>mla_parent_info_handler</full_name>
773
+ <docblock line="149">
774
  <description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
775
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
776
+ <tag line="149" name="since" description="0.80"/>
777
+ <tag line="149" name="param" description="current post" type="object" variable="$post">
778
  <type by_reference="false">object</type>
779
  </tag>
780
+ <tag line="149" name="return" description="echoes the HTML markup for the meta box content" type="void">
781
  <type by_reference="false">void</type>
782
  </tag>
783
  </docblock>
784
+ <argument line="159">
785
  <name>$post</name>
786
  <default><![CDATA[]]></default>
787
  <type/>
788
  </argument>
789
  </method>
790
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="198" package="Media Library Assistant">
791
  <name>mla_menu_order_handler</name>
792
  <full_name>mla_menu_order_handler</full_name>
793
+ <docblock line="188">
794
  <description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
795
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
796
+ <tag line="188" name="since" description="0.80"/>
797
+ <tag line="188" name="param" description="current post" type="object" variable="$post">
798
  <type by_reference="false">object</type>
799
  </tag>
800
+ <tag line="188" name="return" description="echoes the HTML markup for the meta box content" type="void">
801
  <type by_reference="false">void</type>
802
  </tag>
803
  </docblock>
804
+ <argument line="198">
805
  <name>$post</name>
806
  <default><![CDATA[]]></default>
807
  <type/>
808
  </argument>
809
  </method>
810
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="213" package="Media Library Assistant">
811
  <name>mla_image_metadata_handler</name>
812
  <full_name>mla_image_metadata_handler</full_name>
813
+ <docblock line="203">
814
  <description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
815
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
816
+ <tag line="203" name="since" description="0.80"/>
817
+ <tag line="203" name="param" description="current post" type="object" variable="$post">
818
  <type by_reference="false">object</type>
819
  </tag>
820
+ <tag line="203" name="return" description="echoes the HTML markup for the meta box content" type="void">
821
  <type by_reference="false">void</type>
822
  </tag>
823
  </docblock>
824
+ <argument line="213">
825
  <name>$post</name>
826
  <default><![CDATA[]]></default>
827
  <type/>
828
  </argument>
829
  </method>
830
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="234" package="Media Library Assistant">
831
  <name>mla_featured_in_handler</name>
832
  <full_name>mla_featured_in_handler</full_name>
833
+ <docblock line="224">
834
  <description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
835
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
836
+ <tag line="224" name="since" description="0.80"/>
837
+ <tag line="224" name="param" description="current post" type="object" variable="$post">
838
  <type by_reference="false">object</type>
839
  </tag>
840
+ <tag line="224" name="return" description="echoes the HTML markup for the meta box content" type="void">
841
  <type by_reference="false">void</type>
842
  </tag>
843
  </docblock>
844
+ <argument line="234">
845
  <name>$post</name>
846
  <default><![CDATA[]]></default>
847
  <type/>
848
  </argument>
849
  </method>
850
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="264" package="Media Library Assistant">
851
  <name>mla_inserted_in_handler</name>
852
  <full_name>mla_inserted_in_handler</full_name>
853
+ <docblock line="254">
854
  <description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
855
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
856
+ <tag line="254" name="since" description="0.80"/>
857
+ <tag line="254" name="param" description="current post" type="object" variable="$post">
858
  <type by_reference="false">object</type>
859
  </tag>
860
+ <tag line="254" name="return" description="echoes the HTML markup for the meta box content" type="void">
861
  <type by_reference="false">void</type>
862
  </tag>
863
  </docblock>
864
+ <argument line="264">
865
  <name>$post</name>
866
  <default><![CDATA[]]></default>
867
  <type/>
868
  </argument>
869
  </method>
870
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="298" package="Media Library Assistant">
871
  <name>mla_gallery_in_handler</name>
872
  <full_name>mla_gallery_in_handler</full_name>
873
+ <docblock line="288">
874
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
875
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
876
+ <tag line="288" name="since" description="0.80"/>
877
+ <tag line="288" name="param" description="current post" type="object" variable="$post">
878
  <type by_reference="false">object</type>
879
  </tag>
880
+ <tag line="288" name="return" description="echoes the HTML markup for the meta box content" type="void">
881
  <type by_reference="false">void</type>
882
  </tag>
883
  </docblock>
884
+ <argument line="298">
885
  <name>$post</name>
886
  <default><![CDATA[]]></default>
887
  <type/>
888
  </argument>
889
  </method>
890
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="328" package="Media Library Assistant">
891
  <name>mla_mla_gallery_in_handler</name>
892
  <full_name>mla_mla_gallery_in_handler</full_name>
893
+ <docblock line="318">
894
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
895
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
896
+ <tag line="318" name="since" description="0.80"/>
897
+ <tag line="318" name="param" description="current post" type="object" variable="$post">
898
  <type by_reference="false">object</type>
899
  </tag>
900
+ <tag line="318" name="return" description="echoes the HTML markup for the meta box content" type="void">
901
  <type by_reference="false">void</type>
902
  </tag>
903
  </docblock>
904
+ <argument line="328">
905
  <name>$post</name>
906
  <default><![CDATA[]]></default>
907
  <type/>
908
  </argument>
909
  </method>
910
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="358" package="Media Library Assistant">
911
  <name>mla_edit_attachment_action</name>
912
  <full_name>mla_edit_attachment_action</full_name>
913
+ <docblock line="348">
914
  <description><![CDATA[Saves updates from the Edit Media screen.]]></description>
915
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
916
+ <tag line="348" name="since" description="0.80"/>
917
+ <tag line="348" name="param" description="ID of the current post" type="integer" variable="$post_ID">
918
  <type by_reference="false">integer</type>
919
  </tag>
920
+ <tag line="348" name="return" description="" type="void">
921
  <type by_reference="false">void</type>
922
  </tag>
923
  </docblock>
924
+ <argument line="358">
925
  <name>$post_ID</name>
926
  <default><![CDATA[]]></default>
927
  <type/>
1786
  </method>
1787
  </class>
1788
  </file>
1789
+ <file path="includes\class-mla-main.php" hash="e0b79876a9176958821f15b90537916c" package="Media Library Assistant">
1790
  <docblock line="2">
1791
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1792
  <long-description><![CDATA[]]></long-description>
1823
  <constant namespace="global" line="41" package="Media Library Assistant">
1824
  <name>CURRENT_MLA_VERSION</name>
1825
  <full_name>CURRENT_MLA_VERSION</full_name>
1826
+ <value><![CDATA['0.90']]></value>
1827
  <docblock line="34">
1828
  <description><![CDATA[Current version number]]></description>
1829
  <long-description><![CDATA[]]></long-description>
2521
  </method>
2522
  </class>
2523
  </file>
2524
+ <file path="includes\class-mla-settings.php" hash="dcd9151801ffc1eddd01219ad6fb8c97" package="Media Library Assistant">
2525
  <docblock line="2">
2526
  <description><![CDATA[Manages the plugin option settings and provides the settings page to edit them]]></description>
2527
  <long-description><![CDATA[]]></long-description>
3172
  </method>
3173
  </class>
3174
  </file>
3175
+ <file path="includes\class-mla-shortcodes.php" hash="8196ffec14a3e816b5db561984873795" package="Media Library Assistant">
3176
  <docblock line="2">
3177
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
3178
  <long-description><![CDATA[]]></long-description>
3213
  </tag>
3214
  </docblock>
3215
  </property>
3216
+ <property final="false" static="true" visibility="private" line="1000" namespace="global" package="Media Library Assistant">
3217
+ <name>$mla_iptc_records</name>
3218
+ <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>
3219
+ <docblock line="990">
3220
+ <description><![CDATA[IPTC Dataset identifiers and names]]></description>
3221
+ <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
3222
+ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
3223
+ <tag line="990" name="since" description="0.90"/>
3224
+ <tag line="990" name="var" description="" type="array">
3225
+ <type by_reference="false">array</type>
3226
+ </tag>
3227
+ </docblock>
3228
+ </property>
3229
+ <property final="false" static="true" visibility="private" line="1099" namespace="global" package="Media Library Assistant">
3230
+ <name>$mla_iptc_keys</name>
3231
+ <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>
3232
+ <docblock line="1089">
3233
+ <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
3234
+ <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
3235
+ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
3236
+ <tag line="1089" name="since" description="0.90"/>
3237
+ <tag line="1089" name="var" description="" type="array">
3238
+ <type by_reference="false">array</type>
3239
+ </tag>
3240
+ </docblock>
3241
+ </property>
3242
+ <property final="false" static="true" visibility="private" line="1198" namespace="global" package="Media Library Assistant">
3243
+ <name>$mla_iptc_descriptions</name>
3244
+ <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>
3245
+ <docblock line="1188">
3246
+ <description><![CDATA[IPTC Dataset descriptions]]></description>
3247
+ <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
3248
+ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
3249
+ <tag line="1188" name="since" description="0.90"/>
3250
+ <tag line="1188" name="var" description="" type="array">
3251
+ <type by_reference="false">array</type>
3252
+ </tag>
3253
+ </docblock>
3254
+ </property>
3255
+ <property final="false" static="true" visibility="private" line="1297" namespace="global" package="Media Library Assistant">
3256
+ <name>$mla_iptc_formats</name>
3257
+ <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>
3258
+ <docblock line="1287">
3259
+ <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
3260
+ <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
3261
+ the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
3262
+ <tag line="1287" name="since" description="0.90"/>
3263
+ <tag line="1287" name="var" description="" type="array">
3264
+ <type by_reference="false">array</type>
3265
+ </tag>
3266
+ </docblock>
3267
+ </property>
3268
+ <property final="false" static="true" visibility="private" line="1340" namespace="global" package="Media Library Assistant">
3269
+ <name>$mla_iptc_image_types</name>
3270
+ <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>
3271
+ <docblock line="1330">
3272
+ <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
3273
+ <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
3274
+ the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
3275
+ <tag line="1330" name="since" description="0.90"/>
3276
+ <tag line="1330" name="var" description="" type="array">
3277
+ <type by_reference="false">array</type>
3278
+ </tag>
3279
+ </docblock>
3280
+ </property>
3281
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="23" package="Media Library Assistant">
3282
  <name>initialize</name>
3283
  <full_name>initialize</full_name>
3324
  <type/>
3325
  </argument>
3326
  </method>
3327
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="653" package="Media Library Assistant">
3328
  <name>mla_get_shortcode_attachments</name>
3329
  <full_name>mla_get_shortcode_attachments</full_name>
3330
+ <docblock line="643">
3331
  <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
3332
  <long-description><![CDATA[]]></long-description>
3333
+ <tag line="643" name="since" description=".50"/>
3334
+ <tag line="643" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
3335
  <type by_reference="false">int</type>
3336
  </tag>
3337
+ <tag line="643" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
3338
  <type by_reference="false">array</type>
3339
  </tag>
3340
+ <tag line="643" name="return" description="List of attachments returned from WP_Query" type="array">
3341
  <type by_reference="false">array</type>
3342
  </tag>
3343
  </docblock>
3344
+ <argument line="653">
3345
  <name>$post_parent</name>
3346
  <default><![CDATA[]]></default>
3347
  <type/>
3348
  </argument>
3349
+ <argument line="653">
3350
  <name>$attr</name>
3351
  <default><![CDATA[]]></default>
3352
  <type/>
3353
  </argument>
3354
  </method>
3355
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="973" package="Media Library Assistant">
3356
  <name>mla_shortcode_query_posts_where_filter</name>
3357
  <full_name>mla_shortcode_query_posts_where_filter</full_name>
3358
+ <docblock line="960">
3359
  <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
3360
  <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
3361
  phrase to circumvent subsequent Role Scoper modification of the clause.
3362
  Defined as public because it's a filter.</p>]]></long-description>
3363
+ <tag line="960" name="since" description="0.70"/>
3364
+ <tag line="960" name="param" description="query clause before modification" type="string" variable="$where_clause">
3365
  <type by_reference="false">string</type>
3366
  </tag>
3367
+ <tag line="960" name="return" description="query clause after modification" type="string">
3368
  <type by_reference="false">string</type>
3369
  </tag>
3370
  </docblock>
3371
+ <argument line="973">
3372
  <name>$where_clause</name>
3373
  <default><![CDATA[]]></default>
3374
  <type/>
3418
  </docblock>
3419
  </constant>
3420
  </file>
3421
+ <file path="index.php" hash="5457f60930c542ea4dfb3e1a86885d05" package="Media Library Assistant">
3422
  <docblock line="2">
3423
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
3424
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
3425
  will the rest of the plugin be loaded and run.</p>]]></long-description>
3426
  <tag line="2" name="package" description="Media Library Assistant"/>
3427
+ <tag line="2" name="version" description="0.90"/>
3428
  </docblock>
3429
  <include line="103" type="Require Once" package="Media Library Assistant">
3430
  <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: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
5
  Requires at least: 3.3
6
- Tested up to: 3.4.2
7
- Stable tag: 0.81
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -14,21 +14,23 @@ Provides enhancements to the Media Library; powerful[mla_gallery], full taxonomy
14
 
15
  The Media Library Assistant provides several enhancements for managing the Media Library, including:
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 [gallery] shortcode in the WordPress core; it is compatible with [gallery] and provides many enhancements. These include: 1) full support for WordPress categories, tags and custom taxonomies, 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
  * **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".
20
 
21
- * **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].
22
 
23
  * **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.
24
  * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once
25
  * An inline "Quick Edit" action for many common fields
26
- * Displays more attachment information such as parent information, file URL and image metadata
27
  * Allows you to edit the post_parent, the menu_order and to "unattach" items
28
  * Provides additional view filters for mime types and taxonomies
29
  * Provides many more listing columns (more than 20) to choose from
30
 
31
- 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. The [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down for Help Summary") contains a summary of the help text following the [mla_gallery] documentation.
32
 
33
  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!
34
 
@@ -40,21 +42,21 @@ This plugin was inspired by my work on the WordPress web site for our nonprofit,
40
  1. Visit the "Assistant" submenu in the Media admin section
41
  1. Click the Screen Options link to customize the display
42
  1. Use the enhanced Edit, Quick Edit and Bulk Edit pages to assign categories and tags
43
- 1. Use the [mla_gallery] shortcode to add galleries of images, documents and more to your posts and pages
44
 
45
  == Frequently Asked Questions ==
46
 
47
  = How can I use Categories, Tags and custom taxonomies to select images for display in my posts and pages? =
48
 
49
- The powerful [mla_gallery] shortcode supports almost all of the query flexibility provided by the WP_Query class. You can find [complete documentation](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") in the Other Notes section.
50
 
51
- = Can I use [mla_gallery] for attachments other than images? =
52
 
53
- Yes! The [mla_gallery] shortcode supports all MIME types when you add the post_mime_type parameter to your query. You can build a gallery of your PDF documents, plain text files and other attachments. You can mix images and other MIME types in the same gallery, too; check out [the documentation](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation").
54
 
55
  = Can I attach an image to more than one post or page? =
56
 
57
- No; that's a structural limitation of the WordPress database. However, you can use Categories, Tags and custom taxonomies to organize your images and associate them with posts and pages in any way you like. The [mla_gallery] shortcode makes it easy.
58
 
59
  = Can the Assistant use the standard WordPress post Categories and Tags? =
60
 
@@ -104,6 +106,12 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
104
 
105
  == Changelog ==
106
 
 
 
 
 
 
 
107
  = 0.81 =
108
  * New: Improved default Style template, `[mla_gallery]` parameters "mla_itemwidth" and "mla_margin" added to allow control of gallery item spacing.
109
  * Fix: Quick edit support of WordPress standard Categories taxonomy fixed.
@@ -127,10 +135,10 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
127
  * Fix: Removed (!) Warning displays for empty Gallery in and MLA Gallery in column entries.
128
 
129
  = 0.70 =
130
- * New: "Gallery in" and "MLA Gallery in" columns show where the item appears in [gallery] and [mla_gallery] shortcode output.
131
  * New: Post titles in the where-used columns contain a link to the Edit Post/Page screen.
132
  * New: Title/Name column distinguishes between "BAD PARENT" (no where-used references to the item) and "INVALID PARENT" (does not exist).
133
- * Fix: [mla_gallery] queries are modified to avoid a conflict with the Role Scoper plugin.
134
  * Fix: Undefined taxonomies are now bypassed when defining table columns, avoiding (!) Notice displays after changing taxonomy support settings.
135
 
136
  = 0.60 =
@@ -140,12 +148,12 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
140
  * New: The Author column now contains a link to an author-specific search of the Media Library.
141
  * New: The Attached to column now contains a link to the Edit Post/Page screen for the parent.
142
  * New: For WordPress version 3.5, the WordPress standard Edit Media screen replaces the MLA Edit Single Item screen.
143
- * Fix: HTML markup is no longer escaped in [mla_gallery] captions; caption processing now matches the WordPress [gallery] shortcode.
144
  * Fix: For WordPress version 3.5, duplicate "edit taxonomy" submenu entries will not appear.
145
 
146
  = 0.50 =
147
- * 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). Media Library items need not be "attached" to the post.
148
- * New: [mla_gallery] shortcode documentation added to Settings page
149
  * New: Donate button and link added to Settings page
150
 
151
  = 0.41 =
@@ -192,23 +200,26 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
192
 
193
  == Upgrade Notice ==
194
 
 
 
 
195
  = 0.81 =
196
- * 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.
197
 
198
  = 0.80 =
199
  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.
200
 
201
  = 0.71 =
202
- 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.
203
 
204
  = 0.70 =
205
- 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.
206
 
207
  = 0.60 =
208
  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.
209
 
210
  = 0.50 =
211
- 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).
212
 
213
  = 0.41 =
214
  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.
@@ -283,13 +294,13 @@ These parameters are only important if the gallery thumbnails are too large to f
283
 
284
  To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
285
 
286
- The Orderby parameter specifies which database field is used to sort the gallery. You can order the gallery by any of the values documented for the WP_Query class reference in the Codex; you are NOT restricted to the values documented for the [gallery] shortcode.
287
 
288
  <h4>Size</h4>
289
 
290
  The Size parameter specifies the image size to use for the thumbnail display. Valid values include "thumbnail", "medium", "large", "full" and any additional image size that was registered with add_image_size(). The default value is "thumbnail". You can use "none" or "" to suppress thumbnail display and substitute the item title string for the image/icon.
291
 
292
- The [mla_gallery] shortcode supports an additional Size value, "icon", which shows a 60x60 pixel thumbnail for image items and an appropriate icon for non-image items such as PDF or text files.
293
 
294
  <h4>Link</h4>
295
 
@@ -303,7 +314,7 @@ You can use "post_parent=all" to include or exclude attachments regardless of wh
303
 
304
  <h4>Post ID, "ids", Post Parent</h4>
305
 
306
- The "id" parameter lets you specify a post ID for your query. If the "id" parameter is not specified, the [mla_gallery] behavior differs from the [gallery] behavior. If your query uses taxonomy or custom field parameters, "author", "author_name" or "s" (search term), then the query will NOT be restricted to items attached to the current post. This lets you build a gallery with any combination of Media Library items that match the parameters.
307
 
308
  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.
309
 
@@ -327,7 +338,7 @@ Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are n
327
 
328
  <h4>Taxonomy Parameters</h4>
329
 
330
- The [mla_gallery] shortcode supports the simple "{tax} (string)" values (deprecated as of WordPress version 3.1) as well as the more powerful "tax_query" value.
331
 
332
  For simple queries, enter the taxonomy name and the term(s) that must be matched, e.g.:
333
 
@@ -348,11 +359,11 @@ Remember to use "post_parent=current" if you want to restrict your query to item
348
 
349
  <h4>Post Type, Post Status and Post MIME Type</h4>
350
 
351
- For compatibility with the WordPress [gallery] shortcode, these parameters default to "post_type=attachment", "post_status=inherit" and "post_mime_type=image". You can override the defaults to, for example, display items in the trash ("post_status=trash") or PDF documents ("post_mime_type=application/pdf") or all MIME types ("post_mime_type=all"). I'm not sure why you'd want to override "post_type", but you are welcome to experiment and let me know what you find.
352
 
353
  <h4>Pagination Parameters</h4>
354
 
355
- The [mla_gallery] shortcode supplies "nopaging=true" as a default parameter. If you are working with a template that supports pagination you can replace this with specific values for "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" . You can also pass "paged=current" to suppress the "nopaging" default; "current" will be replaced by the appropriate value (get_query_var('paged')).
356
 
357
  <h4>Time Parameters</h4>
358
 
@@ -360,7 +371,7 @@ Support for time parameters is not included in the current version. I may add it
360
 
361
  <h4>Custom Field Parameters</h4>
362
 
363
- The [mla_gallery] shortcode supports the simple custom field parameters as well as the more powerful "meta_query" parameters made available as of WordPress 3.1.
364
 
365
  When embedding the shortcode in the body of a post, be very careful when coding the meta_query; it must be a valid PHP array specification. In particular, code the query on one line; splitting it across lines can insert HTML <br> tags and corrupt your query.
366
 
@@ -376,16 +387,14 @@ The "mla_debug" parameter controls the display of information about the query pa
376
 
377
  == MLA Gallery Style and Markup Templates ==
378
 
379
- <p>
380
  The Style and Markup templates give you great flexibility for the content and format of each <code>[mla_gallery]</code>. You can define as many templates as you need.
381
- </p>
382
  Style templates provide gallery-specific CSS inline styles. Markup templates provide the HTML markup for 1) the beginning of the gallery, 2) the beginning of each row, 3) each gallery item, 4) the end of each row and 5) the end of the gallery. The attachment-specific markup parameters let you choose among most of the attachment fields, not just the caption.
383
- <p>
384
  The MLA Gallery tab on the Settings page lets you add, change and delete custom templates. The default tempates are also displayed on this tab for easy reference.
385
- </p>
386
- <p>
387
  In a template, substitution parameters are surrounded by opening ('[+') and closing ('+]') tags to separate them from the template text; see the default templates for many examples.
388
- </p>
389
  <h4>Substitution parameters for style templates</h4>
390
  * `mla_style`: shortcode parameter, default = 'default'
391
  * `mla_markup`: shortcode parameter, default = 'default'
@@ -453,9 +462,31 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
453
  * `thumbnail_width`: for image/icon items, width of the gallery image/icon
454
  * `thumbnail_height`: for image/icon items, height of the gallery image/icon
455
  * `thumbnail_url`: for image/icon items, URL of the gallery image/icon
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
  <h3>A Table-based Template Example</h3>
457
  <p>
458
- Here's a small example that shows a gallery using table markup.
 
459
  </p>
460
  <h4>Style Template</h4>
461
 
@@ -501,7 +532,12 @@ Here's a small example that shows a gallery using table markup.
501
  <td class='wp-caption-text gallery-caption'>
502
  <strong>[+title+]</strong><br />
503
  [+description+]<br />
504
- [+date+]
 
 
 
 
 
505
  </td>
506
 
507
  <h5>Row Close</h5>
@@ -547,8 +583,18 @@ Here's a small example that shows a gallery using table markup.
547
  <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>
548
  <h4>Attaching Files</h4>
549
  <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>
550
- <p><strong><em>Single Item Edit Screen</em></strong></p>
551
- <h4>Overview</h4>
 
 
 
 
 
 
 
 
 
 
552
  <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>
553
  <p>Remember to click the &#8220;Update&#8221; button to save your work. You may instead click the &#8220;Cancel&#8221; button to discard any changes.</p>
554
  <h4>Taxonomies</h4>
3
  Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories
5
  Requires at least: 3.3
6
+ Tested up to: 3.5
7
+ Stable tag: 0.90
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
14
 
15
  The Media Library Assistant provides several enhancements for managing the Media Library, including:
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 `[gallery]` shortcode in the WordPress core; 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
+ * Display **IPTC** and **EXIF** metadata with `[mla_gallery]` custom templates.
20
 
21
  * **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".
22
 
23
+ * **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]`.
24
 
25
  * **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.
26
  * An inline "Bulk Edit" area; update author or parent, add, remove or replace taxonomy terms for several attachments at once
27
  * An inline "Quick Edit" action for many common fields
28
+ * 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.
29
  * Allows you to edit the post_parent, the menu_order and to "unattach" items
30
  * Provides additional view filters for mime types and taxonomies
31
  * Provides many more listing columns (more than 20) to choose from
32
 
33
+ 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. The [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down for Help Summary") contains a summary of the help text following the `[mla_gallery]` documentation.
34
 
35
  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!
36
 
42
  1. Visit the "Assistant" submenu in the Media admin section
43
  1. Click the Screen Options link to customize the display
44
  1. Use the enhanced Edit, Quick Edit and Bulk Edit pages to assign categories and tags
45
+ 1. Use the `[mla_gallery]` shortcode to add galleries of images, documents and more to your posts and pages
46
 
47
  == Frequently Asked Questions ==
48
 
49
  = How can I use Categories, Tags and custom taxonomies to select images for display in my posts and pages? =
50
 
51
+ The powerful `[mla_gallery]` shortcode supports almost all of the query flexibility provided by the WP_Query class. You can find [complete documentation](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation") in the Other Notes section.
52
 
53
+ = Can I use `[mla_gallery]` for attachments other than images? =
54
 
55
+ Yes! The `[mla_gallery]` shortcode supports all MIME types when you add the post_mime_type parameter to your query. You can build a gallery of your PDF documents, plain text files and other attachments. You can mix images and other MIME types in the same gallery, too; check out [the documentation](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Complete Documentation").
56
 
57
  = Can I attach an image to more than one post or page? =
58
 
59
+ No; that's a structural limitation of the WordPress database. However, you can use Categories, Tags and custom taxonomies to organize your images and associate them with posts and pages in any way you like. The `[mla_gallery]` shortcode makes it easy.
60
 
61
  = Can the Assistant use the standard WordPress post Categories and Tags? =
62
 
106
 
107
  == Changelog ==
108
 
109
+ = 0.90 =
110
+ * New: Field-level IPTC and EXIF metadata support for `[mla_gallery]` display using custom markup templates.
111
+ * New: Field-level Custom field and taxonomy term support for `[mla_gallery]` display using custom markup templates.
112
+ * New: Contextual help tabs added to WordPress 3.5+ Edit Media Screen, explaining MLA enhancements.
113
+ * Updated for WordPress version 3.5!
114
+
115
  = 0.81 =
116
  * New: Improved default Style template, `[mla_gallery]` parameters "mla_itemwidth" and "mla_margin" added to allow control of gallery item spacing.
117
  * Fix: Quick edit support of WordPress standard Categories taxonomy fixed.
135
  * Fix: Removed (!) Warning displays for empty Gallery in and MLA Gallery in column entries.
136
 
137
  = 0.70 =
138
+ * New: "Gallery in" and "MLA Gallery in" columns show where the item appears in `[gallery]` and `[mla_gallery]` shortcode output.
139
  * New: Post titles in the where-used columns contain a link to the Edit Post/Page screen.
140
  * New: Title/Name column distinguishes between "BAD PARENT" (no where-used references to the item) and "INVALID PARENT" (does not exist).
141
+ * Fix: `[mla_gallery]` queries are modified to avoid a conflict with the Role Scoper plugin.
142
  * Fix: Undefined taxonomies are now bypassed when defining table columns, avoiding (!) Notice displays after changing taxonomy support settings.
143
 
144
  = 0.60 =
148
  * New: The Author column now contains a link to an author-specific search of the Media Library.
149
  * New: The Attached to column now contains a link to the Edit Post/Page screen for the parent.
150
  * New: For WordPress version 3.5, the WordPress standard Edit Media screen replaces the MLA Edit Single Item screen.
151
+ * Fix: HTML markup is no longer escaped in `[mla_gallery]` captions; caption processing now matches the WordPress `[gallery]` shortcode.
152
  * Fix: For WordPress version 3.5, duplicate "edit taxonomy" submenu entries will not appear.
153
 
154
  = 0.50 =
155
+ * 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). Media Library items need not be "attached" to the post.
156
+ * New: `[mla_gallery]` shortcode documentation added to Settings page
157
  * New: Donate button and link added to Settings page
158
 
159
  = 0.41 =
200
 
201
  == Upgrade Notice ==
202
 
203
+ = 0.90 =
204
+ Get `[mla_gallery]` support for custom fields, taxonomy terms and IPTC/EXIF metadata. Updated for WordPress 3.5!
205
+
206
  = 0.81 =
207
+ 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.
208
 
209
  = 0.80 =
210
  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.
211
 
212
  = 0.71 =
213
+ 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.
214
 
215
  = 0.70 =
216
+ 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.
217
 
218
  = 0.60 =
219
  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.
220
 
221
  = 0.50 =
222
+ 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).
223
 
224
  = 0.41 =
225
  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.
294
 
295
  To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
296
 
297
+ The Orderby parameter specifies which database field is used to sort the gallery. You can order the gallery by any of the values documented for the WP_Query class reference in the Codex; you are NOT restricted to the values documented for the `[gallery]` shortcode.
298
 
299
  <h4>Size</h4>
300
 
301
  The Size parameter specifies the image size to use for the thumbnail display. Valid values include "thumbnail", "medium", "large", "full" and any additional image size that was registered with add_image_size(). The default value is "thumbnail". You can use "none" or "" to suppress thumbnail display and substitute the item title string for the image/icon.
302
 
303
+ The `[mla_gallery]` shortcode supports an additional Size value, "icon", which shows a 60x60 pixel thumbnail for image items and an appropriate icon for non-image items such as PDF or text files.
304
 
305
  <h4>Link</h4>
306
 
314
 
315
  <h4>Post ID, "ids", Post Parent</h4>
316
 
317
+ The "id" parameter lets you specify a post ID for your query. If the "id" parameter is not specified, the `[mla_gallery]` behavior differs from the `[gallery]` behavior. If your query uses taxonomy or custom field parameters, "author", "author_name" or "s" (search term), then the query will NOT be restricted to items attached to the current post. This lets you build a gallery with any combination of Media Library items that match the parameters.
318
 
319
  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.
320
 
338
 
339
  <h4>Taxonomy Parameters</h4>
340
 
341
+ The `[mla_gallery]` shortcode supports the simple "{tax} (string)" values (deprecated as of WordPress version 3.1) as well as the more powerful "tax_query" value.
342
 
343
  For simple queries, enter the taxonomy name and the term(s) that must be matched, e.g.:
344
 
359
 
360
  <h4>Post Type, Post Status and Post MIME Type</h4>
361
 
362
+ For compatibility with the WordPress `[gallery]` shortcode, these parameters default to "post_type=attachment", "post_status=inherit" and "post_mime_type=image". You can override the defaults to, for example, display items in the trash ("post_status=trash") or PDF documents ("post_mime_type=application/pdf") or all MIME types ("post_mime_type=all"). I'm not sure why you'd want to override "post_type", but you are welcome to experiment and let me know what you find.
363
 
364
  <h4>Pagination Parameters</h4>
365
 
366
+ The `[mla_gallery]` shortcode supplies "nopaging=true" as a default parameter. If you are working with a template that supports pagination you can replace this with specific values for "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" . You can also pass "paged=current" to suppress the "nopaging" default; "current" will be replaced by the appropriate value (get_query_var('paged')).
367
 
368
  <h4>Time Parameters</h4>
369
 
371
 
372
  <h4>Custom Field Parameters</h4>
373
 
374
+ The `[mla_gallery]` shortcode supports the simple custom field parameters as well as the more powerful "meta_query" parameters made available as of WordPress 3.1.
375
 
376
  When embedding the shortcode in the body of a post, be very careful when coding the meta_query; it must be a valid PHP array specification. In particular, code the query on one line; splitting it across lines can insert HTML <br> tags and corrupt your query.
377
 
387
 
388
  == MLA Gallery Style and Markup Templates ==
389
 
 
390
  The Style and Markup templates give you great flexibility for the content and format of each <code>[mla_gallery]</code>. You can define as many templates as you need.
391
+
392
  Style templates provide gallery-specific CSS inline styles. Markup templates provide the HTML markup for 1) the beginning of the gallery, 2) the beginning of each row, 3) each gallery item, 4) the end of each row and 5) the end of the gallery. The attachment-specific markup parameters let you choose among most of the attachment fields, not just the caption.
393
+
394
  The MLA Gallery tab on the Settings page lets you add, change and delete custom templates. The default tempates are also displayed on this tab for easy reference.
395
+
 
396
  In a template, substitution parameters are surrounded by opening ('[+') and closing ('+]') tags to separate them from the template text; see the default templates for many examples.
397
+
398
  <h4>Substitution parameters for style templates</h4>
399
  * `mla_style`: shortcode parameter, default = 'default'
400
  * `mla_markup`: shortcode parameter, default = 'default'
462
  * `thumbnail_width`: for image/icon items, width of the gallery image/icon
463
  * `thumbnail_height`: for image/icon items, height of the gallery image/icon
464
  * `thumbnail_url`: for image/icon items, URL of the gallery image/icon
465
+ <h3>Field-level Markup Substitution Parameters</h3>
466
+
467
+ Field-level substitution parameters let you access custom fields, taxonomy terms, IPTC metadata and EXIF metadata for display in an MLA gallery. For these parameters, the value you code within the surrounding the ('[+') and ('+]') delimiters has three parts; the prefix, the field name and the optional ",single" indicator.
468
+
469
+ The <strong>prefix</strong> defines which type of field-level data you are accessing. It must immediately follow the opening ('[+') delimiter and end with a colon (':'). There can be no spaces in this part of the parameter.
470
+
471
+ The <strong>field name</strong> defines which field-level data element you are accessing. It must immediately follow the colon (':'). There can be no spaces between the colon and the field name. Spaces are allowed within the field name to accomodate custom field names that contain them.
472
+
473
+ The optional <strong>",single" indicator</strong> defines how to handle fields with multiple values. It must immediately follow the field name and end with the closing delimiter ('+]'). There can be no spaces in this part of the parameter. If this part of the parameter is present, only the first value of the field will be returned. Use this indicator to limit the data returned for a custom field, taxonomy or metadata field that can have many values.
474
+
475
+ There are four prefix values for field-level data. Prefix values must be coded as shown; all lowercase letters.
476
+
477
+ * `custom`: WordPress Custom Fields, which you can define and populate on the Edit Media screen. The field name, or key, can contain spaces and some punctuation characters. You <strong>cannot use the plus sign ('+')</strong> in a field name you want to use with `[mla_gallery]`. Custom field names are case-sensitive; "client" and "Client" are not the same.
478
+ * `terms`: WordPress Category, tag or custom taxonomy terms. For this category, you code the name of the taxonomy as the field name. The term(s) associated with the attachment will be displayed in the `[mla_gallery]`. Note that you must use the name/slug string for taxonomy, not the "title" string. For example, use "attachment-category" or "attachment-tag", not "Att. Category" or "Attachment Category".
479
+
480
+ * `iptc`: The IPTC (International Press Telecommunications Council) metadata, if any, embedded in the image file. For this category, you can code any of the IPTC DataSet tag and field identifiers, e.g., "2#025" for the Keywords field. You can also use the "friendly name" MLA defines for most of the IPTC fields; see the table of identifiers and friendly names in the MLA documentation. 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>.
481
+
482
+ * `exif`: The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file.
483
+ 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.
484
+ 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.
485
+
486
  <h3>A Table-based Template Example</h3>
487
  <p>
488
+ Here's a small example that shows a gallery using table markup. The Item markup section shows how to use the "terms", "custom", "iptc" and "exif" substitution parameters.
489
+
490
  </p>
491
  <h4>Style Template</h4>
492
 
532
  <td class='wp-caption-text gallery-caption'>
533
  <strong>[+title+]</strong><br />
534
  [+description+]<br />
535
+ [+date+]<br />
536
+ [+custom:client,single+]<br />
537
+ [+terms:category+]<br />
538
+ [+iptc:caption-or-abstract+]<br />
539
+ [+iptc:2#025,single+]<br />
540
+ [+exif:Artist+]
541
  </td>
542
 
543
  <h5>Row Close</h5>
583
  <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>
584
  <h4>Attaching Files</h4>
585
  <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>
586
+ <p><strong><em>Single Item Edit Screen (3.4.x) / Edit Media Screen (3.5+)</em></strong></p>
587
+ <h4>MLA Enhancements, 3.5+</h4>
588
+ WordPress 3.5 introduced a much-improved Edit Media screen. Media Library Assistant incorporates and adds several enhancements to the new screen:
589
+
590
+ * Displays Last Modified date and time
591
+ * Supports Custom fields, which `[mla_gallery]` can use for query and display
592
+ * Supports Parent Info and Menu Order
593
+ * Displays Image Metadata
594
+ * Displays where-used information; Featured in, Inserted in, Gallery in and MLA Gallery in
595
+
596
+ <p>Remember to click the &#8220;Update&#8221; button to save your work.</p>
597
+ <h4>Overview, 3.4.x</h4>
598
  <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>
599
  <p>Remember to click the &#8220;Update&#8221; button to save your work. You may instead click the &#8220;Cancel&#8221; button to discard any changes.</p>
600
  <h4>Taxonomies</h4>
tpls/admin-display-settings-page.tpl CHANGED
@@ -1,5 +1,7 @@
1
  <!-- template="page" -->
2
- <a name="backtotop"></a><div class="wrap">
 
 
3
  <div id="icon-options-general" class="icon32"><br/></div>
4
  <h2>Media Library Assistant [+version+] Settings</h2>
5
  [+messages+]
@@ -235,9 +237,30 @@
235
  </form>
236
  <!-- template="documentation-tab" -->
237
  <div class="mla-display-settings-page" id="mla-display-settings-documentation-tab">
238
- <p>
239
- <a href="#mla_gallery_templates">Go to <strong>Style and Markup Templates</strong></a>
240
- </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
241
  <h3>Plugin Code Documentation</h3>
242
  <p>
243
  If you are a developer interested in how this plugin is put together, you should
@@ -420,12 +443,19 @@ The "mla_debug" parameter controls the display of information about the query pa
420
  <p>
421
  The Style and Markup templates give you great flexibility for the content and format of each <code>[mla_gallery]</code>. You can define as many templates as you need.
422
  </p>
 
423
  Style templates provide gallery-specific CSS inline styles. Markup templates provide the HTML markup for 1) the beginning of the gallery, 2) the beginning of each row, 3) each gallery item, 4) the end of each row and 5) the end of the gallery. The attachment-specific markup parameters let you choose among most of the attachment fields, not just the caption.
 
424
  <p>
425
  The MLA Gallery tab on the Settings page lets you add, change and delete custom templates. The default tempates are also displayed on this tab for easy reference.
426
  </p>
427
  <p>
428
- In a template, substitution parameters are surrounded by opening ('[+') and closing ('+]') tags to separate them from the template text; see the default templates for many examples.
 
 
 
 
 
429
  </p>
430
  <h4>Substitution parameters for style templates</h4>
431
  <table>
@@ -482,6 +512,11 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
482
  <td>shortcode 'size' parameter, default = 'thumbnail'</td>
483
  </tr>
484
  </table>
 
 
 
 
 
485
  <h4>Substitution parameters for markup templates</h4>
486
  <table>
487
  <tr>
@@ -545,6 +580,11 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
545
  <td>full path to the upload directory, without trailing slash</td>
546
  </tr>
547
  </table>
 
 
 
 
 
548
  <h4>Attachment-specific substitution parameters for markup templates</h4>
549
  <table>
550
  <tr>
@@ -688,9 +728,63 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
688
  <td>for image/icon items, URL of the gallery image/icon</td>
689
  </tr>
690
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
691
  <h3>A Table-based Template Example</h3>
692
  <p>
693
  Here's a small example that shows a gallery using <code>&lt;table&gt;</code> markup.
 
694
  </p>
695
  <h4>Style Template</h4>
696
  <code>
@@ -738,6 +832,11 @@ Here's a small example that shows a gallery using <code>&lt;table&gt;</code> mar
738
  &nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;[+title+]&lt;/strong&gt;&lt;br /&gt;<br />
739
  &nbsp;&nbsp;&nbsp;&nbsp;[+description+]&lt;br /&gt;<br />
740
  &nbsp;&nbsp;&nbsp;&nbsp;[+date+]<br />
 
 
 
 
 
741
  &lt;/td&gt;</code>
742
  </td>
743
  </tr>
@@ -750,5 +849,97 @@ Here's a small example that shows a gallery using <code>&lt;table&gt;</code> mar
750
  <td><code>&lt;/table&gt;</code></td>
751
  </tr>
752
  </table>
753
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
754
  </div>
1
  <!-- template="page" -->
2
+ <a name="backtotop"></a>
3
+ &nbsp;
4
+ <div class="wrap">
5
  <div id="icon-options-general" class="icon32"><br/></div>
6
  <h2>Media Library Assistant [+version+] Settings</h2>
7
  [+messages+]
237
  </form>
238
  <!-- template="documentation-tab" -->
239
  <div class="mla-display-settings-page" id="mla-display-settings-documentation-tab">
240
+ <h3>In this section, jump to:</h3>
241
+ <ul style="list-style-position:inside; list-style:disc; line-height: 18px">
242
+ <li>
243
+ <a href="#mla_gallery_templates"><strong>Style and Markup Templates</strong></a>
244
+ </li>
245
+ <li>
246
+ <a href="#mla_style_parameters"><strong>Substitution parameters for style templates</strong></a>
247
+ </li>
248
+ <li>
249
+ <a href="#mla_markup_parameters"><strong>Substitution parameters for markup templates</strong></a>
250
+ </li>
251
+ <li>
252
+ <a href="#mla_attachment_parameters"><strong>Attachment-specific substitution parameters for markup templates</strong></a>
253
+ </li>
254
+ <li>
255
+ <a href="#mla_variable_parameters"><strong>Field-level markup substitution parameters</strong></a>
256
+ </li>
257
+ <li>
258
+ <a href="#mla_table_example"><strong>A table-based template example</strong></a>
259
+ </li>
260
+ <li>
261
+ <a href="#mla_iptc_identifiers"><strong>IPTC identifiers and friendly names</strong></a>
262
+ </li>
263
+ </ul>
264
  <h3>Plugin Code Documentation</h3>
265
  <p>
266
  If you are a developer interested in how this plugin is put together, you should
443
  <p>
444
  The Style and Markup templates give you great flexibility for the content and format of each <code>[mla_gallery]</code>. You can define as many templates as you need.
445
  </p>
446
+ <p>
447
  Style templates provide gallery-specific CSS inline styles. Markup templates provide the HTML markup for 1) the beginning of the gallery, 2) the beginning of each row, 3) each gallery item, 4) the end of each row and 5) the end of the gallery. The attachment-specific markup parameters let you choose among most of the attachment fields, not just the caption.
448
+ </p>
449
  <p>
450
  The MLA Gallery tab on the Settings page lets you add, change and delete custom templates. The default tempates are also displayed on this tab for easy reference.
451
  </p>
452
  <p>
453
+ In a template, substitution parameters are surrounded by opening ('[+') and closing ('+]') delimiters to separate them from the template text; see the default templates for many examples.
454
+ </p>
455
+ <a name="mla_style_parameters"></a>
456
+ &nbsp;
457
+ <p>
458
+ <a href="#backtotop">Go to Top</a>
459
  </p>
460
  <h4>Substitution parameters for style templates</h4>
461
  <table>
512
  <td>shortcode 'size' parameter, default = 'thumbnail'</td>
513
  </tr>
514
  </table>
515
+ <a name="mla_markup_parameters"></a>
516
+ &nbsp;
517
+ <p>
518
+ <a href="#backtotop">Go to Top</a>
519
+ </p>
520
  <h4>Substitution parameters for markup templates</h4>
521
  <table>
522
  <tr>
580
  <td>full path to the upload directory, without trailing slash</td>
581
  </tr>
582
  </table>
583
+ <a name="mla_attachment_parameters"></a>
584
+ &nbsp;
585
+ <p>
586
+ <a href="#backtotop">Go to Top</a>
587
+ </p>
588
  <h4>Attachment-specific substitution parameters for markup templates</h4>
589
  <table>
590
  <tr>
728
  <td>for image/icon items, URL of the gallery image/icon</td>
729
  </tr>
730
  </table>
731
+ <a name="mla_variable_parameters"></a>
732
+ &nbsp;
733
+ <p>
734
+ <a href="#backtotop">Go to Top</a>
735
+ </p>
736
+ <h3>Field-level Markup Substitution Parameters</h3>
737
+ <p>
738
+ Field-level substitution parameters let you access custom fields, taxonomy terms, IPTC metadata and EXIF metadata for display in an MLA gallery. For these parameters, the value you code within the surrounding the ('[+') and ('+]') delimiters has three parts; the prefix, the field name and the optional ",single" indicator.
739
+ </p>
740
+ <p>
741
+ The <strong>prefix</strong> defines which type of field-level data you are accessing. It must immediately follow the opening ('[+') delimiter and end with a colon (':'). There can be no spaces in this part of the parameter.
742
+ </p>
743
+ <p>
744
+ The <strong>field name</strong> defines which field-level data element you are accessing. It must immediately follow the colon (':'). There can be no spaces between the colon and the field name. Spaces are allowed within the field name to accomodate custom field names that contain them.
745
+ </p>
746
+ <p>
747
+ The optional <strong>",single" indicator</strong> defines how to handle fields with multiple values. It must immediately follow the field name and end with the closing delimiter ('+]'). There can be no spaces in this part of the parameter. If this part of the parameter is present, only the first value of the field will be returned. Use this indicator to limit the data returned for a custom field, taxonomy or metadata field that can have many values.
748
+ </p>
749
+ <p>
750
+ There are four prefix values for field-level data. Prefix values must be coded as shown; all lowercase letters.
751
+ </p>
752
+ <table>
753
+ <tr>
754
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">custom</td>
755
+ <td>WordPress Custom Fields, which you can define and populate on the Edit Media screen. The field name, or key, can contain spaces and some punctuation characters. You <strong>cannot use the plus sign ('+')</strong> in a field name you want to use with <code>[mla_gallery]</code>. Custom field names are case-sensitive; "client" and "Client" are not the same.</td>
756
+ </tr>
757
+ <tr>
758
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">terms</td>
759
+ <td>WordPress Category, tag or custom taxonomy terms. For this category, you code the name of the taxonomy as the field name. The term(s) associated with the attachment will be displayed in the <code>[mla_gallery]</code>. Note that you must use the name/slug string for taxonomy, not the "title" string. For example, use "attachment-category" or "attachment-tag", not "Att. Category" or "Attachment Category".</td>
760
+ </tr>
761
+ <tr>
762
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">iptc</td>
763
+ <td>
764
+ The IPTC (International Press Telecommunications Council) metadata, if any, embedded in the image file. For this category, you can code any of the IPTC DataSet tag and field identifiers, e.g., "2#025" for the Keywords field. You can also use the "friendly name" MLA defines for most of the IPTC fields; see the <a href="#mla_iptc_identifiers">table of identifiers and friendly names</a> below. <br />
765
+ &nbsp;<br />
766
+ 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>.</td>
767
+ </tr>
768
+ <tr>
769
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">exif</td>
770
+ <td>
771
+ The EXIF (EXchangeable Image File) metadata, if any, embedded in a JPEG DCT or TIFF Rev 6.0 image file.
772
+ 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.
773
+ 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.
774
+ <br />&nbsp;<br />
775
+ 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.</td>
776
+ </tr>
777
+ </table>
778
+
779
+ <a name="mla_table_example"></a>
780
+ &nbsp;
781
+ <p>
782
+ <a href="#backtotop">Go to Top</a>
783
+ </p>
784
  <h3>A Table-based Template Example</h3>
785
  <p>
786
  Here's a small example that shows a gallery using <code>&lt;table&gt;</code> markup.
787
+ The Item markup section shows how to use the "terms", "custom", "iptc" and "exif" substitution parameters.
788
  </p>
789
  <h4>Style Template</h4>
790
  <code>
832
  &nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;[+title+]&lt;/strong&gt;&lt;br /&gt;<br />
833
  &nbsp;&nbsp;&nbsp;&nbsp;[+description+]&lt;br /&gt;<br />
834
  &nbsp;&nbsp;&nbsp;&nbsp;[+date+]<br />
835
+ &nbsp;&nbsp;&nbsp;&nbsp;[+custom:client,single+]<br />
836
+ &nbsp;&nbsp;&nbsp;&nbsp;[+terms:category+]<br />
837
+ &nbsp;&nbsp;&nbsp;&nbsp;[+iptc:caption-or-abstract+]<br />
838
+ &nbsp;&nbsp;&nbsp;&nbsp;[+iptc:2#025,single+]<br />
839
+ &nbsp;&nbsp;&nbsp;&nbsp;[+exif:Artist+]
840
  &lt;/td&gt;</code>
841
  </td>
842
  </tr>
849
  <td><code>&lt;/table&gt;</code></td>
850
  </tr>
851
  </table>
852
+ <a name="mla_iptc_identifiers"></a>
853
+ &nbsp;
854
+ <p>
855
+ <a href="#backtotop">Go to Top</a>
856
+ </p>
857
+ <h3>IPTC Identifiers and Friendly Names</h3>
858
+ <table>
859
+ <tr><td colspan="3" style="font-weight:bold">Envelope Record</td></tr>
860
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">model-version</td><td style="padding-right: 10px; vertical-align: top">1#000</td><td style="padding-right: 10px; vertical-align: top">2 octet binary IIM version number</td></tr>
861
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">destination</td><td style="padding-right: 10px; vertical-align: top">1#005</td><td style="padding-right: 10px; vertical-align: top">Max 1024 characters of Destination (ISO routing information); repeatable</td></tr>
862
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">file-format</td><td style="padding-right: 10px; vertical-align: top">1#020</td><td style="padding-right: 10px; vertical-align: top">2 octet binary file format number, see IPTC-NAA V4 Appendix A</td></tr>
863
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">file-format-version</td><td style="padding-right: 10px; vertical-align: top">1#022</td><td style="padding-right: 10px; vertical-align: top">2 octet binary file format version number</td></tr>
864
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">service-identifier</td><td style="padding-right: 10px; vertical-align: top">1#030</td><td style="padding-right: 10px; vertical-align: top">Max 10 characters of Service Identifier and product</td></tr>
865
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">envelope-number</td><td style="padding-right: 10px; vertical-align: top">1#040</td><td style="padding-right: 10px; vertical-align: top">8 Character Envelope Number</td></tr>
866
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">product-id</td><td style="padding-right: 10px; vertical-align: top">1#050</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters subset of provider's overall service; repeatable</td></tr>
867
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">envelope-priority</td><td style="padding-right: 10px; vertical-align: top">1#060</td><td style="padding-right: 10px; vertical-align: top">1 numeric character of envelope handling priority (not urgency)</td></tr>
868
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">date-sent</td><td style="padding-right: 10px; vertical-align: top">1#070</td><td style="padding-right: 10px; vertical-align: top">8 numeric characters of Date Sent by service - CCYYMMDD</td></tr>
869
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">time-sent</td><td style="padding-right: 10px; vertical-align: top">1#080</td><td style="padding-right: 10px; vertical-align: top">11 characters of Time Sent by service - HHMMSS±HHMM</td></tr>
870
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">coded-character-set</td><td style="padding-right: 10px; vertical-align: top">1#090</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters of control functions, etc.</td></tr>
871
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">uno</td><td style="padding-right: 10px; vertical-align: top">1#100</td><td style="padding-right: 10px; vertical-align: top">14 to 80 characters of eternal, globally unique identification for objects</td></tr>
872
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">arm-identifier</td><td style="padding-right: 10px; vertical-align: top">1#120</td><td style="padding-right: 10px; vertical-align: top">2 octet binary Abstract Relationship Model Identifier</td></tr>
873
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">arm-version</td><td style="padding-right: 10px; vertical-align: top">1#122</td><td style="padding-right: 10px; vertical-align: top">2 octet binary Abstract Relationship Model Version</td></tr>
874
+ <tr><td colspan="3" style="font-weight:bold">&nbsp;<br />Application Record</td></tr>
875
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">record-version</td><td style="padding-right: 10px; vertical-align: top">2#000</td><td style="padding-right: 10px; vertical-align: top">2 octet binary Information Interchange Model, Part II version number</td></tr>
876
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">object-type-reference</td><td style="padding-right: 10px; vertical-align: top">2#003</td><td style="padding-right: 10px; vertical-align: top">3 to 67 Characters of Object Type Reference number and optional text</td></tr>
877
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">object-attribute-reference</td><td style="padding-right: 10px; vertical-align: top">2#004</td><td style="padding-right: 10px; vertical-align: top">3 to 67 Characters of Object Attribute Reference number and optional text; repeatable</td></tr>
878
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">object-name</td><td style="padding-right: 10px; vertical-align: top">2#005</td><td style="padding-right: 10px; vertical-align: top">Max 64 characters of the object name or shorthand reference</td></tr>
879
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">edit-status</td><td style="padding-right: 10px; vertical-align: top">2#007</td><td style="padding-right: 10px; vertical-align: top">Max 64 characters of the status of the objectdata</td></tr>
880
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">editorial-update</td><td style="padding-right: 10px; vertical-align: top">2#008</td><td style="padding-right: 10px; vertical-align: top">2 numeric characters of the type of update this object provides</td></tr>
881
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">urgency</td><td style="padding-right: 10px; vertical-align: top">2#010</td><td style="padding-right: 10px; vertical-align: top">1 numeric character of the editorial urgency of content</td></tr>
882
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">subject-reference</td><td style="padding-right: 10px; vertical-align: top">2#012</td><td style="padding-right: 10px; vertical-align: top">13 to 236 characters of a structured definition of the subject matter; repeatable</td></tr>
883
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">category</td><td style="padding-right: 10px; vertical-align: top">2#015</td><td style="padding-right: 10px; vertical-align: top">Max 3 characters of the subject of the objectdata, DEPRECATED</td></tr>
884
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">supplemental-category</td><td style="padding-right: 10px; vertical-align: top">2#020</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable</td></tr>
885
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">fixture-identifier</td><td style="padding-right: 10px; vertical-align: top">2#022</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters identifying recurring, predictable content</td></tr>
886
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">keywords</td><td style="padding-right: 10px; vertical-align: top">2#025</td><td style="padding-right: 10px; vertical-align: top">Max 64 characters (each) of tags; repeatable</td></tr>
887
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">content-location-code</td><td style="padding-right: 10px; vertical-align: top">2#026</td><td style="padding-right: 10px; vertical-align: top">3 characters of ISO3166 country code or IPTC-assigned code; repeatable</td></tr>
888
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">content-location-name</td><td style="padding-right: 10px; vertical-align: top">2#027</td><td style="padding-right: 10px; vertical-align: top">Max 64 characters of publishable country/geographical location name; repeatable</td></tr>
889
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">release-date</td><td style="padding-right: 10px; vertical-align: top">2#030</td><td style="padding-right: 10px; vertical-align: top">8 numeric characters of Release Date (earliest use) - CCYYMMDD</td></tr>
890
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">release-time</td><td style="padding-right: 10px; vertical-align: top">2#035</td><td style="padding-right: 10px; vertical-align: top">11 characters of Release Time (earliest use) - HHMMSS±HHMM</td></tr>
891
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">expiration-date</td><td style="padding-right: 10px; vertical-align: top">2#037</td><td style="padding-right: 10px; vertical-align: top">8 numeric characters of Expiration Date (latest use) - CCYYMDD</td></tr>
892
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">expiration-time</td><td style="padding-right: 10px; vertical-align: top">2#038</td><td style="padding-right: 10px; vertical-align: top">11 characters of Expiration Time (latest use) - HHMMSS±HHMM</td></tr>
893
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">special-instructions</td><td style="padding-right: 10px; vertical-align: top">2#040</td><td style="padding-right: 10px; vertical-align: top">Max 256 Characters of editorial instructions, e.g., embargoes and warnings</td></tr>
894
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">action-advised</td><td style="padding-right: 10px; vertical-align: top">2#042</td><td style="padding-right: 10px; vertical-align: top">2 numeric characters of type of action this object provides to a previous object</td></tr>
895
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">reference-service</td><td style="padding-right: 10px; vertical-align: top">2#045</td><td style="padding-right: 10px; vertical-align: top">Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable</td></tr>
896
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">reference-date</td><td style="padding-right: 10px; vertical-align: top">2#047</td><td style="padding-right: 10px; vertical-align: top">8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable</td></tr>
897
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">reference-number</td><td style="padding-right: 10px; vertical-align: top">2#050</td><td style="padding-right: 10px; vertical-align: top">8 characters of prior envelope Reference Number (1#040); repeatable</td></tr>
898
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">date-created</td><td style="padding-right: 10px; vertical-align: top">2#055</td><td style="padding-right: 10px; vertical-align: top">8 numeric characters of intellectual content Date Created - CCYYMMDD</td></tr>
899
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">time-created</td><td style="padding-right: 10px; vertical-align: top">2#060</td><td style="padding-right: 10px; vertical-align: top">11 characters of intellectual content Time Created - HHMMSS±HHMM</td></tr>
900
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">digital-creation-date</td><td style="padding-right: 10px; vertical-align: top">2#062</td><td style="padding-right: 10px; vertical-align: top">8 numeric characters of digital representation creation date - CCYYMMDD</td></tr>
901
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">digital-creation-time</td><td style="padding-right: 10px; vertical-align: top">2#063</td><td style="padding-right: 10px; vertical-align: top">11 characters of digital representation creation time - HHMMSS±HHMM</td></tr>
902
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">originating-program</td><td style="padding-right: 10px; vertical-align: top">2#065</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters of the program used to create the objectdata</td></tr>
903
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">program-version</td><td style="padding-right: 10px; vertical-align: top">2#070</td><td style="padding-right: 10px; vertical-align: top">Program Version - Max 10 characters of the version of the program used to create the objectdata</td></tr>
904
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">object-cycle</td><td style="padding-right: 10px; vertical-align: top">2#075</td><td style="padding-right: 10px; vertical-align: top">1 character where a=morning, p=evening, b=both</td></tr>
905
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">by-line</td><td style="padding-right: 10px; vertical-align: top">2#080</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable</td></tr>
906
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">by-line-title</td><td style="padding-right: 10px; vertical-align: top">2#085</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters of the title of the objectdata creator; repeatable</td></tr>
907
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">city</td><td style="padding-right: 10px; vertical-align: top">2#090</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters of the city of objectdata origin</td></tr>
908
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">sub-location</td><td style="padding-right: 10px; vertical-align: top">2#092</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters of the location within the city of objectdata origin</td></tr>
909
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">province-or-state</td><td style="padding-right: 10px; vertical-align: top">2#095</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters of the objectdata origin Province or State</td></tr>
910
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">country-or-primary-location-code</td><td style="padding-right: 10px; vertical-align: top">2#100</td><td style="padding-right: 10px; vertical-align: top">3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin</td></tr>
911
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">country-or-primary-location-name</td><td style="padding-right: 10px; vertical-align: top">2#101</td><td style="padding-right: 10px; vertical-align: top">Max 64 characters of publishable country/geographical location name; repeatable</td></tr>
912
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">original-transmission-reference</td><td style="padding-right: 10px; vertical-align: top">2#103</td><td style="padding-right: 10px; vertical-align: top">Max 32 characters of a code representing the location of original transmission</td></tr>
913
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">headline</td><td style="padding-right: 10px; vertical-align: top">2#105</td><td style="padding-right: 10px; vertical-align: top">Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata</td></tr>
914
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">credit</td><td style="padding-right: 10px; vertical-align: top">2#110</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)</td></tr>
915
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">source</td><td style="padding-right: 10px; vertical-align: top">2#115</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters that identifies the original owner of the intellectual content</td></tr>
916
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">copyright-notice</td><td style="padding-right: 10px; vertical-align: top">2#116</td><td style="padding-right: 10px; vertical-align: top">Max 128 Characters that contains any necessary copyright notice</td></tr>
917
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">contact</td><td style="padding-right: 10px; vertical-align: top">2#118</td><td style="padding-right: 10px; vertical-align: top">Max 128 characters that identifies the person or organisation which can provide further background information; repeatable</td></tr>
918
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">caption-or-abstract</td><td style="padding-right: 10px; vertical-align: top">2#120</td><td style="padding-right: 10px; vertical-align: top">Max 2000 Characters of a textual description of the objectdata</td></tr>
919
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">caption-writer-or-editor</td><td style="padding-right: 10px; vertical-align: top">2#122</td><td style="padding-right: 10px; vertical-align: top">Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable</td></tr>
920
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">rasterized-caption</td><td style="padding-right: 10px; vertical-align: top">2#125</td><td style="padding-right: 10px; vertical-align: top">7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image</td></tr>
921
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">image-type</td><td style="padding-right: 10px; vertical-align: top">2#130</td><td style="padding-right: 10px; vertical-align: top">2 characters of color composition type and information</td></tr>
922
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">image-orientation</td><td style="padding-right: 10px; vertical-align: top">2#131</td><td style="padding-right: 10px; vertical-align: top">1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square</td></tr>
923
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">language-identifier</td><td style="padding-right: 10px; vertical-align: top">2#135</td><td style="padding-right: 10px; vertical-align: top">2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes</td></tr>
924
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">audio-type</td><td style="padding-right: 10px; vertical-align: top">2#150</td><td style="padding-right: 10px; vertical-align: top">2 characters identifying monaural/stereo and exact type of audio content</td></tr>
925
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">audio-sampling-rate</td><td style="padding-right: 10px; vertical-align: top">2#151</td><td style="padding-right: 10px; vertical-align: top">6 numeric characters representing the audio sampling rate in hertz (Hz)</td></tr>
926
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">audio-sampling-resolution</td><td style="padding-right: 10px; vertical-align: top">2#152</td><td style="padding-right: 10px; vertical-align: top">2 numeric characters representing the number of bits in each audio sample</td></tr>
927
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">audio-duration</td><td style="padding-right: 10px; vertical-align: top">2#153</td><td style="padding-right: 10px; vertical-align: top">6 numeric characters of the Audio Duration - HHMMSS</td></tr>
928
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">audio-outcue</td><td style="padding-right: 10px; vertical-align: top">2#154</td><td style="padding-right: 10px; vertical-align: top">Max 64 characters of the content of the end of an audio objectdata</td></tr>
929
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">objectdata-preview-file-format</td><td style="padding-right: 10px; vertical-align: top">2#200</td><td style="padding-right: 10px; vertical-align: top">2 octet binary file format of the ObjectData Preview</td></tr>
930
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">objectdata-preview-file-format-version</td><td style="padding-right: 10px; vertical-align: top">2#201</td><td style="padding-right: 10px; vertical-align: top">2 octet binary particular version of the ObjectData Preview File Format</td></tr>
931
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">objectdata-preview-data</td><td style="padding-right: 10px; vertical-align: top">2#202</td><td style="padding-right: 10px; vertical-align: top">Max 256000 binary octets containing the ObjectData Preview data</td></tr>
932
+ <tr><td colspan="3" style="font-weight:bold">&nbsp;<br />Pre ObjectData Descriptor Record</td></tr>
933
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">size-mode</td><td style="padding-right: 10px; vertical-align: top">7#010</td><td style="padding-right: 10px; vertical-align: top">1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer</td></tr>
934
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">max-subfile-size</td><td style="padding-right: 10px; vertical-align: top">7#020</td><td style="padding-right: 10px; vertical-align: top">4 octet binary maximum subfile dataset(s) size</td></tr>
935
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">objectdata-size-announced</td><td style="padding-right: 10px; vertical-align: top">7#090</td><td style="padding-right: 10px; vertical-align: top">4 octet binary objectdata size if known at beginning of transfer</td></tr>
936
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">maximum-objectdata-size</td><td style="padding-right: 10px; vertical-align: top">7#095</td><td style="padding-right: 10px; vertical-align: top">4 octet binary largest possible objectdata size</td></tr>
937
+ <tr><td colspan="3" style="font-weight:bold">&nbsp;<br />ObjectData</td></tr>
938
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">subfile</td><td style="padding-right: 10px; vertical-align: top">8#010</td><td style="padding-right: 10px; vertical-align: top">Subfile DataSet containing the objectdata itself; repeatable</td></tr>
939
+ <tr><td colspan="3" style="font-weight:bold">&nbsp;<br />Post ObjectData Descriptor Record</td></tr>
940
+ <tr><td style="padding-right: 10px; vertical-align: top; font-weight:bold">confirmed-objectdata-size</td><td style="padding-right: 10px; vertical-align: top">9#010</td><td style="padding-right: 10px; vertical-align: top">4 octet binary total objectdata size</td></tr>
941
+ </table>
942
+ <p>
943
+ <a href="#backtotop">Go to Top</a>
944
+ </p>
945
  </div>
tpls/help-for-edit_attachment.tpl ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- template="mla-overview" -->
2
+ <!-- title="MLA Enhancements" order="1" -->
3
+ <p>Media Library Assistant adds several enhancements to the Edit Media screen:</p>
4
+ <ul>
5
+ <li>
6
+ Displays Last Modified date and time
7
+ </li>
8
+ <li>
9
+ Supports Custom fields, which <code>[mla_gallery]</code> can use for query and display
10
+ </li>
11
+ <li>
12
+ Supports Parent Info and Menu Order
13
+ </li>
14
+ <li>
15
+ Displays Image Metadata
16
+ </li>
17
+ <li>
18
+ Displays where-used information; Featured in, Inserted in, Gallery in and MLA Gallery in
19
+ </li>
20
+ </ul>
21
+ <p>Remember to click the &#8220;Update&#8221; button to save your work.</p>
22
+ <!-- template="mla-taxonomies" -->
23
+ <!-- title="Taxonomies" order="2" -->
24
+ <p>If there are custom taxonomies, such as &#8220;Attachment Categories&#8221; or &#8220;Attachment Tags&#8221;, 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 &#8220;Update&#8221; button for the attachment.</p>
25
+ <!-- template="mla-parent-info" -->
26
+ <!-- title="Parent Info" order="3" -->
27
+ <p>The &#8220;Parent Info&#8221; field displays the Post ID, type and title of the post or page to which the item is attached. It will display &#8220;0 (unattached)&#8221; if there is no parent post or page.</p>
28
+ <p>You can change the post or page to which the item is attached by changing the Post ID value and clicking the &#8220;Update&#8221; button. Changing the Post ID value to zero (0) will &#8220;unattach&#8221; the item.</p>