Media Library Assistant - Version 1.20

Version Description

  • New: The long-awaited enhancements to the WordPress (3.5+) Media Manager (Add Media, etc.). Filter your attachments by additional MIME types, month and year uploaded and/or taxonomy terms. Keyword search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or". Search by attachment ID or parent ID is supported. Enable/disable any or all enhancements on the Settings page.
  • New: In the [mla_gallery] shortcode, enhanced parameters for sorting the gallery results. For example, orderby=caption and orderby=description are now available to sort gallery results by the Caption (post_excerpt) and Description (post_content) fields. You can also sort on multiple fields, e.g., orderby="author, date DESC", with field-level ASC/DESC control. The "Other Notes" section here or the Documentation tab on the Settings/Media Library Assistant page of the plugin have details.
  • New: For [mla_gallery], field-level substitution parameters now include query arguments. You can pass any values you need to the Gallery Display Content parameters and to your custom style and markup templates.
  • New: Gallery Display Content parameters now include mla_link_href, so you can change the destination and arguments of the URL your gallery items link to.
  • New: Markup Substitution Parameters now include site_url.
  • New: If the search box contains (only) a numeric value it is interpreted as a search by attachment ID or parent ID (post_parent). You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.
  • Fix: For [mla_gallery], numberposts is now accepted as a synonym for posts_per_page. If both are present, posts_per_page wins.
  • Fix: For [mla_gallery], handling of id=0 and post_parent=0 now match the WordPress [gallery] implementation, restricting the query to children of post '0', i.e., unattached media items.
  • Fix: Corrected handling of Photonic Gallery pause parameter to match Photonic 1.43 implementation. Pause will be true if any non-empty value other than 'false' or '0' is present.
  • Fix: A Donate button has been added to the top-right corner of the Settings/Media Library Assistant screen.
Download this release

Release Info

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

Code changes from version 1.14 to 1.20

css/mla-media-modal-style.css ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ /**
3
+ * CSS Document
4
+ *
5
+ * This file contains styling attributes for the taxonomy "edit-tags.php" page,
6
+ * adapted from wp-admin.css and given unique names to avoid conflicts.
7
+ */
8
+
9
+ /**
10
+ * Toolbar
11
+ */
12
+ .media-frame .media-frame-content .media-toolbar-secondary {
13
+ width: 150px;
14
+ }
15
+
16
+ .media-frame .media-frame-content .attachments-browser .media-toolbar {
17
+ height: 100px;
18
+ }
19
+
20
+ .media-frame .media-frame-content .attachments-browser .attachments,
21
+ .media-frame .media-frame-content .attachments-browser .uploader-inline {
22
+ top: 100px;
23
+ }
24
+
25
+ /**
26
+ * Search
27
+ */
28
+ .media-frame .media-frame-content p.search-box {
29
+ margin-top: 7px;
30
+ padding: 4px;
31
+ line-height: 18px;
32
+ color: #464646;
33
+ font-family: sans-serif;
34
+ -webkit-appearance: none;
35
+ }
images/DonateButton.jpg ADDED
Binary file
includes/class-mla-data.php CHANGED
@@ -272,6 +272,24 @@ class MLAData {
272
  return $attachments;
273
  }
274
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  /**
276
  * WP_Query filter "parameters"
277
  *
@@ -279,7 +297,7 @@ class MLAData {
279
  * The parameters are set up in the _prepare_list_table_query function, and
280
  * any further logic required to translate those values is contained in the filters.
281
  *
282
- * Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla-search-connector, mla-search-fields, sentence, exact
283
  *
284
  * @since 0.30
285
  *
@@ -317,8 +335,8 @@ class MLAData {
317
  'order' => MLAOptions::mla_get_option( 'default_order' ),
318
  'post_type' => 'attachment',
319
  'post_status' => 'inherit',
320
- 'mla-search-connector' => 'AND',
321
- 'mla-search-fields' => array()
322
  );
323
 
324
  foreach ( $raw_request as $key => $value ) {
@@ -351,6 +369,7 @@ class MLAData {
351
  $clean_request[ $key ] = $value;
352
  break;
353
  case 'parent':
 
354
  $clean_request[ 'post_parent' ] = absint( $value );
355
  break;
356
  /*
@@ -386,13 +405,13 @@ class MLAData {
386
  break;
387
  /*
388
  * ['s'] - Search Media by one or more keywords
389
- * ['mla-search-connector'], ['mla-search-fields'] - Search Media options
390
  */
391
  case 's':
392
  $clean_request[ $key ] = stripslashes( trim( $value ) );
393
  break;
394
- case 'mla-search-connector':
395
- case 'mla-search-fields':
396
  $clean_request[ $key ] = $value;
397
  break;
398
  case 'mla-metakey':
@@ -417,21 +436,21 @@ class MLAData {
417
  * There must be at least one search field to do a search.
418
  */
419
  if ( isset( $clean_request['s'] ) ) {
420
- if ( ! empty( $clean_request['mla-search-fields'] ) ) {
421
  self::$query_parameters['s'] = $clean_request['s'];
422
- self::$query_parameters['mla-search-connector'] = $clean_request['mla-search-connector'];
423
- self::$query_parameters['mla-search-fields'] = $clean_request['mla-search-fields'];
424
  self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
425
  self::$query_parameters['exact'] = isset( $clean_request['exact'] );
426
 
427
- if ( in_array( 'alt-text', self::$query_parameters['mla-search-fields'] ) )
428
  self::$query_parameters['use_postmeta_view'] = true;
429
  self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
430
  } // !empty
431
 
432
  unset( $clean_request['s'] );
433
- unset( $clean_request['mla-search-connector'] );
434
- unset( $clean_request['mla-search-fields'] );
435
  unset( $clean_request['sentence'] );
436
  unset( $clean_request['exact'] );
437
  }
@@ -616,10 +635,11 @@ class MLAData {
616
  $search_clause = '';
617
  if ( isset( self::$query_parameters['s'] ) ) {
618
  /*
619
- * Interpret a numeric value as the ID of a specific attactment
620
  */
621
  if(is_numeric( self::$query_parameters['s'] )) {
622
- return ' AND ( ' . $wpdb->posts . '.ID = ' . absint( self::$query_parameters['s'] ) . ' ) ';
 
623
  }
624
 
625
  if ( self::$query_parameters['sentence'] ) {
@@ -629,7 +649,7 @@ class MLAData {
629
  $search_terms = array_map('_search_terms_tidy', $matches[0]);
630
  }
631
 
632
- $fields = self::$query_parameters['mla-search-fields'];
633
  $percent = self::$query_parameters['exact'] ? '' : '%';
634
  $connector = '';
635
  foreach ( $search_terms as $term ) {
@@ -663,7 +683,7 @@ class MLAData {
663
  }
664
 
665
  $search_clause .= ")";
666
- $connector = ' ' . self::$query_parameters['mla-search-connector'] . ' ';
667
  } // foreach
668
 
669
  if ( !empty($search_clause) ) {
272
  return $attachments;
273
  }
274
 
275
+ /**
276
+ * Retrieve attachment objects for the WordPress Media Manager
277
+ *
278
+ * Supports month-year and taxonomy-term filters as well as the enhanced search box
279
+ *
280
+ * @since 1.20
281
+ *
282
+ * @param array query parameters from Media Manager
283
+ * @param int number of rows to skip over to reach desired page
284
+ * @param int number of rows on each page
285
+ *
286
+ * @return array attachment objects (posts)
287
+ */
288
+ public static function mla_query_media_modal_items( $request, $offset, $count ) {
289
+ $request = self::_prepare_list_table_query( $request, $offset, $count );
290
+ return self::_execute_list_table_query( $request );
291
+ }
292
+
293
  /**
294
  * WP_Query filter "parameters"
295
  *
297
  * The parameters are set up in the _prepare_list_table_query function, and
298
  * any further logic required to translate those values is contained in the filters.
299
  *
300
+ * Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla_search_connector, mla_search_fields, sentence, exact
301
  *
302
  * @since 0.30
303
  *
335
  'order' => MLAOptions::mla_get_option( 'default_order' ),
336
  'post_type' => 'attachment',
337
  'post_status' => 'inherit',
338
+ 'mla_search_connector' => 'AND',
339
+ 'mla_search_fields' => array()
340
  );
341
 
342
  foreach ( $raw_request as $key => $value ) {
369
  $clean_request[ $key ] = $value;
370
  break;
371
  case 'parent':
372
+ case 'post_parent':
373
  $clean_request[ 'post_parent' ] = absint( $value );
374
  break;
375
  /*
405
  break;
406
  /*
407
  * ['s'] - Search Media by one or more keywords
408
+ * ['mla_search_connector'], ['mla_search_fields'] - Search Media options
409
  */
410
  case 's':
411
  $clean_request[ $key ] = stripslashes( trim( $value ) );
412
  break;
413
+ case 'mla_search_connector':
414
+ case 'mla_search_fields':
415
  $clean_request[ $key ] = $value;
416
  break;
417
  case 'mla-metakey':
436
  * There must be at least one search field to do a search.
437
  */
438
  if ( isset( $clean_request['s'] ) ) {
439
+ if ( ! empty( $clean_request['mla_search_fields'] ) ) {
440
  self::$query_parameters['s'] = $clean_request['s'];
441
+ self::$query_parameters['mla_search_connector'] = $clean_request['mla_search_connector'];
442
+ self::$query_parameters['mla_search_fields'] = $clean_request['mla_search_fields'];
443
  self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
444
  self::$query_parameters['exact'] = isset( $clean_request['exact'] );
445
 
446
+ if ( in_array( 'alt-text', self::$query_parameters['mla_search_fields'] ) )
447
  self::$query_parameters['use_postmeta_view'] = true;
448
  self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
449
  } // !empty
450
 
451
  unset( $clean_request['s'] );
452
+ unset( $clean_request['mla_search_connector'] );
453
+ unset( $clean_request['mla_search_fields'] );
454
  unset( $clean_request['sentence'] );
455
  unset( $clean_request['exact'] );
456
  }
635
  $search_clause = '';
636
  if ( isset( self::$query_parameters['s'] ) ) {
637
  /*
638
+ * Interpret a numeric value as the ID of a specific attachment or the ID of a parent post/page
639
  */
640
  if(is_numeric( self::$query_parameters['s'] )) {
641
+ $id = absint( self::$query_parameters['s'] );
642
+ return ' AND ( ( ' . $wpdb->posts . '.ID = ' . $id . ' ) OR ( ' . $wpdb->posts . '.post_parent = ' . $id . ' ) ) ';
643
  }
644
 
645
  if ( self::$query_parameters['sentence'] ) {
649
  $search_terms = array_map('_search_terms_tidy', $matches[0]);
650
  }
651
 
652
+ $fields = self::$query_parameters['mla_search_fields'];
653
  $percent = self::$query_parameters['exact'] ? '' : '%';
654
  $connector = '';
655
  foreach ( $search_terms as $term ) {
683
  }
684
 
685
  $search_clause .= ")";
686
+ $connector = ' ' . self::$query_parameters['mla_search_connector'] . ' ';
687
  } // foreach
688
 
689
  if ( !empty($search_clause) ) {
includes/class-mla-list-table.php CHANGED
@@ -184,8 +184,7 @@ class MLA_List_Table extends WP_List_Table {
184
  *
185
  * @return array default list of hidden columns
186
  */
187
- private static function _default_hidden_columns( )
188
- {
189
  return MLA_List_Table::$default_hidden_columns;
190
  }
191
 
@@ -222,8 +221,7 @@ class MLA_List_Table extends WP_List_Table {
222
  *
223
  * @return array Mime type names and HTML markup for views
224
  */
225
- public static function mla_get_attachment_mime_types( )
226
- {
227
  return array(
228
  'image' => array(
229
  0 => 'Images',
@@ -288,6 +286,53 @@ class MLA_List_Table extends WP_List_Table {
288
  );
289
  }
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  /**
292
  * Return the names and display values of the sortable columns
293
  *
@@ -1234,34 +1279,7 @@ class MLA_List_Table extends WP_List_Table {
1234
  if ( 'top' == $which ) {
1235
  $this->months_dropdown( 'attachment' );
1236
 
1237
- $tax_filter = MLAOptions::mla_taxonomy_support('', 'filter');
1238
- if ( ( '' != $tax_filter ) && ( is_object_in_taxonomy( 'attachment', $tax_filter ) ) ) {
1239
- $tax_object = get_taxonomy( $tax_filter );
1240
- $dropdown_options = array(
1241
- 'show_option_all' => 'All ' . $tax_object->labels->name,
1242
- 'show_option_none' => 'No ' . $tax_object->labels->name,
1243
- 'orderby' => 'ID',
1244
- 'order' => 'ASC',
1245
- 'show_count' => false,
1246
- 'hide_empty' => false,
1247
- 'child_of' => 0,
1248
- 'exclude' => '',
1249
- // 'exclude_tree => '',
1250
- 'echo' => true,
1251
- 'depth' => 3,
1252
- 'tab_index' => 0,
1253
- 'name' => 'mla_filter_term',
1254
- 'id' => 'name',
1255
- 'class' => 'postform',
1256
- 'selected' => isset( $_REQUEST['mla_filter_term'] ) ? $_REQUEST['mla_filter_term'] : 0,
1257
- 'hierarchical' => true,
1258
- 'pad_counts' => false,
1259
- 'taxonomy' => $tax_filter,
1260
- 'hide_if_empty' => false
1261
- );
1262
-
1263
- wp_dropdown_categories( $dropdown_options );
1264
- }
1265
 
1266
  submit_button( __( 'Filter' ), 'secondary', 'mla_filter', false, array(
1267
  'id' => 'post-query-submit'
184
  *
185
  * @return array default list of hidden columns
186
  */
187
+ private static function _default_hidden_columns( ) {
 
188
  return MLA_List_Table::$default_hidden_columns;
189
  }
190
 
221
  *
222
  * @return array Mime type names and HTML markup for views
223
  */
224
+ public static function mla_get_attachment_mime_types( ) {
 
225
  return array(
226
  'image' => array(
227
  0 => 'Images',
286
  );
287
  }
288
 
289
+ /**
290
+ * Get dropdown box of terms to filter by, if available
291
+ *
292
+ * @since 1.20
293
+ *
294
+ * @param integer currently selected term_id || zero (default)
295
+ *
296
+ * @return string HTML markup for dropdown box
297
+ */
298
+ public static function mla_get_taxonomy_filter_dropdown( $selected = 0 ) {
299
+ $dropdown = '';
300
+ $tax_filter = MLAOptions::mla_taxonomy_support('', 'filter');
301
+
302
+ if ( ( '' != $tax_filter ) && ( is_object_in_taxonomy( 'attachment', $tax_filter ) ) ) {
303
+ $tax_object = get_taxonomy( $tax_filter );
304
+ $dropdown_options = array(
305
+ 'show_option_all' => 'All ' . $tax_object->labels->name,
306
+ 'show_option_none' => 'No ' . $tax_object->labels->name,
307
+ 'orderby' => 'ID',
308
+ 'order' => 'ASC',
309
+ 'show_count' => false,
310
+ 'hide_empty' => false,
311
+ 'child_of' => 0,
312
+ 'exclude' => '',
313
+ // 'exclude_tree => '',
314
+ 'echo' => true,
315
+ 'depth' => 3,
316
+ 'tab_index' => 0,
317
+ 'name' => 'mla_filter_term',
318
+ 'id' => 'name',
319
+ 'class' => 'postform',
320
+ 'selected' => $selected,
321
+ 'hierarchical' => true,
322
+ 'pad_counts' => false,
323
+ 'taxonomy' => $tax_filter,
324
+ 'hide_if_empty' => false
325
+ );
326
+
327
+ ob_start();
328
+ wp_dropdown_categories( $dropdown_options );
329
+ $dropdown = ob_get_contents();
330
+ ob_end_clean();
331
+ }
332
+
333
+ return $dropdown;
334
+ }
335
+
336
  /**
337
  * Return the names and display values of the sortable columns
338
  *
1279
  if ( 'top' == $which ) {
1280
  $this->months_dropdown( 'attachment' );
1281
 
1282
+ echo self::mla_get_taxonomy_filter_dropdown( isset( $_REQUEST['mla_filter_term'] ) ? $_REQUEST['mla_filter_term'] : 0 );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1283
 
1284
  submit_button( __( 'Filter' ), 'secondary', 'mla_filter', false, array(
1285
  'id' => 'post-query-submit'
includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '1.14';
42
 
43
  /**
44
  * Slug for registering and enqueueing plugin style sheet
@@ -734,7 +734,7 @@ class MLA {
734
 
735
  if ( !empty( $_REQUEST['heading_suffix'] ) ) {
736
  echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\r\n";
737
- } elseif ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla-search-fields'] ) ) {
738
  echo ' - search results for "' . stripslashes( trim( $_REQUEST['s'] ) ) . "\"</h2>\r\n";
739
  } else
740
  echo "</h2>\r\n";
@@ -757,10 +757,10 @@ class MLA {
757
  /*
758
  * Compose the Search Media box
759
  */
760
- if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla-search-fields'] ) ) {
761
  $search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
762
- $search_fields = $_REQUEST['mla-search-fields'];
763
- $search_connector = $_REQUEST['mla-search-connector'];
764
  } else {
765
  $search_value = '';
766
  $search_fields = array ( 'title', 'content' );
@@ -772,37 +772,37 @@ class MLA {
772
  echo '<input type="text" size="45" id="media-search-input" name="s" value="' . $search_value . '" />' . "\r\n";
773
  echo '<input type="submit" name="mla-search-submit" id="search-submit" class="button" value="Search Media" /><br>' . "\r\n";
774
  if ( 'OR' == $search_connector ) {
775
- echo '<input type="radio" name="mla-search-connector" value="AND" />&nbsp;and&nbsp;' . "\r\n";
776
- echo '<input type="radio" name="mla-search-connector" checked="checked" value="OR" />&nbsp;or&nbsp;' . "\r\n";
777
  } else {
778
- echo '<input type="radio" name="mla-search-connector" checked="checked" value="AND" />&nbsp;and&nbsp;' . "\r\n";
779
- echo '<input type="radio" name="mla-search-connector" value="OR" />&nbsp;or&nbsp;' . "\r\n";
780
  }
781
 
782
  if ( in_array( 'title', $search_fields ) )
783
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-title" checked="checked" value="title" />&nbsp;title&nbsp;' . "\r\n";
784
  else
785
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-title" value="title" />&nbsp;title&nbsp;' . "\r\n";
786
 
787
  if ( in_array( 'name', $search_fields ) )
788
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-name" checked="checked" value="name" />&nbsp;name&nbsp;' . "\r\n";
789
  else
790
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-name" value="name" />&nbsp;name&nbsp;' . "\r\n";
791
 
792
  if ( in_array( 'alt-text', $search_fields ) )
793
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
794
  else
795
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-alt-text" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
796
 
797
  if ( in_array( 'excerpt', $search_fields ) )
798
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
799
  else
800
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-excerpt" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
801
 
802
  if ( in_array( 'content', $search_fields ) )
803
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-content" checked="checked" value="content" />&nbsp;description&nbsp;' . "\r\n";
804
  else
805
- echo '<input type="checkbox" name="mla-search-fields[]" id="search-content" value="content" />&nbsp;description&nbsp;' . "\r\n";
806
 
807
  echo '</p>' . "\r\n";
808
 
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '1.20';
42
 
43
  /**
44
  * Slug for registering and enqueueing plugin style sheet
734
 
735
  if ( !empty( $_REQUEST['heading_suffix'] ) ) {
736
  echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\r\n";
737
+ } elseif ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla_search_fields'] ) ) {
738
  echo ' - search results for "' . stripslashes( trim( $_REQUEST['s'] ) ) . "\"</h2>\r\n";
739
  } else
740
  echo "</h2>\r\n";
757
  /*
758
  * Compose the Search Media box
759
  */
760
+ if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla_search_fields'] ) ) {
761
  $search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
762
+ $search_fields = $_REQUEST['mla_search_fields'];
763
+ $search_connector = $_REQUEST['mla_search_connector'];
764
  } else {
765
  $search_value = '';
766
  $search_fields = array ( 'title', 'content' );
772
  echo '<input type="text" size="45" id="media-search-input" name="s" value="' . $search_value . '" />' . "\r\n";
773
  echo '<input type="submit" name="mla-search-submit" id="search-submit" class="button" value="Search Media" /><br>' . "\r\n";
774
  if ( 'OR' == $search_connector ) {
775
+ echo '<input type="radio" name="mla_search_connector" value="AND" />&nbsp;and&nbsp;' . "\r\n";
776
+ echo '<input type="radio" name="mla_search_connector" checked="checked" value="OR" />&nbsp;or&nbsp;' . "\r\n";
777
  } else {
778
+ echo '<input type="radio" name="mla_search_connector" checked="checked" value="AND" />&nbsp;and&nbsp;' . "\r\n";
779
+ echo '<input type="radio" name="mla_search_connector" value="OR" />&nbsp;or&nbsp;' . "\r\n";
780
  }
781
 
782
  if ( in_array( 'title', $search_fields ) )
783
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" checked="checked" value="title" />&nbsp;title&nbsp;' . "\r\n";
784
  else
785
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" value="title" />&nbsp;title&nbsp;' . "\r\n";
786
 
787
  if ( in_array( 'name', $search_fields ) )
788
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" checked="checked" value="name" />&nbsp;name&nbsp;' . "\r\n";
789
  else
790
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" value="name" />&nbsp;name&nbsp;' . "\r\n";
791
 
792
  if ( in_array( 'alt-text', $search_fields ) )
793
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
794
  else
795
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
796
 
797
  if ( in_array( 'excerpt', $search_fields ) )
798
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
799
  else
800
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
801
 
802
  if ( in_array( 'content', $search_fields ) )
803
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" checked="checked" value="content" />&nbsp;description&nbsp;' . "\r\n";
804
  else
805
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" value="content" />&nbsp;description&nbsp;' . "\r\n";
806
 
807
  echo '</p>' . "\r\n";
808
 
includes/class-mla-media-modal.php ADDED
@@ -0,0 +1,414 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Media Library Assistant Media Manager enhancements
4
+ *
5
+ * @package Media Library Assistant
6
+ * @since 1.20
7
+ */
8
+
9
+ /**
10
+ * Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager
11
+ *
12
+ * @package Media Library Assistant
13
+ * @since 1.20
14
+ */
15
+ class MLAModal {
16
+ /**
17
+ * Slug for localizing and enqueueing CSS - Add Media and related dialogs
18
+ *
19
+ * @since 1.20
20
+ *
21
+ * @var string
22
+ */
23
+ const JAVASCRIPT_MEDIA_MODAL_STYLES = 'mla-media-modal-style';
24
+
25
+ /**
26
+ * Slug for localizing and enqueueing JavaScript - Add Media and related dialogs
27
+ *
28
+ * @since 1.20
29
+ *
30
+ * @var string
31
+ */
32
+ const JAVASCRIPT_MEDIA_MODAL_SLUG = 'mla-media-modal-scripts';
33
+
34
+ /**
35
+ * Object name for localizing JavaScript - Add Media and related dialogs
36
+ *
37
+ * @since 1.20
38
+ *
39
+ * @var string
40
+ */
41
+ const JAVASCRIPT_MEDIA_MODAL_OBJECT = 'mla_media_modal_vars';
42
+
43
+ /**
44
+ * Initialization function, similar to __construct()
45
+ *
46
+ * @since 1.20
47
+ *
48
+ * @return void
49
+ */
50
+ public static function initialize() {
51
+ /*
52
+ * WordPress 3.5's new Media Manager is supported on the server by
53
+ * /wp-includes/media.php function wp_enqueue_media(), which contains:
54
+ *
55
+ * $settings = apply_filters( 'media_view_settings', $settings, $post );
56
+ * $strings = apply_filters( 'media_view_strings', $strings, $post );
57
+ *
58
+ * wp_enqueue_media() then contains a require_once for
59
+ * /wp-includes/media-template.php, which contains:
60
+ * do_action( 'print_media_templates' );
61
+ *
62
+ * Finally wp_enqueue_media() contains:
63
+ * do_action( 'wp_enqueue_media' );
64
+ */
65
+ if ( MLATest::$wordpress_3point5_plus && ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TOOLBAR ) )
66
+ ) {
67
+ add_filter( 'media_view_settings', 'MLAModal::mla_media_view_settings_filter', 10, 2 );
68
+ add_filter( 'media_view_strings', 'MLAModal::mla_media_view_strings_filter', 10, 2 );
69
+ add_action( 'wp_enqueue_media', 'MLAModal::mla_wp_enqueue_media_action', 10, 0 );
70
+ add_action( 'print_media_templates', 'MLAModal::mla_print_media_templates_action', 10, 0 );
71
+ add_action( 'admin_init', 'MLAModal::mla_admin_init_ajax_action' );
72
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_MEDIA_MODAL_SLUG, 'MLAModal::mla_query_attachments_action' );
73
+ } // $wordpress_3point5_plus
74
+ }
75
+
76
+ /**
77
+ * Display a monthly dropdown for filtering items
78
+ *
79
+ * Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()
80
+ *
81
+ * @since 1.20
82
+ *
83
+ * @param string post_type, e.g., 'attachment'
84
+ *
85
+ * @return array ( value => label ) pairs
86
+ */
87
+ private function _months_dropdown( $post_type ) {
88
+ global $wpdb, $wp_locale;
89
+
90
+ $months = $wpdb->get_results( $wpdb->prepare( "
91
+ SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
92
+ FROM $wpdb->posts
93
+ WHERE post_type = %s
94
+ ORDER BY post_date DESC
95
+ ", $post_type ) );
96
+
97
+ $month_count = count( $months );
98
+ $month_array = array( '0' => 'Show all dates' );
99
+
100
+ if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) )
101
+ return $month_array;
102
+
103
+ foreach ( $months as $arc_row ) {
104
+ if ( 0 == $arc_row->year )
105
+ continue;
106
+
107
+ $month = zeroise( $arc_row->month, 2 );
108
+ $year = $arc_row->year;
109
+ $month_array[ esc_attr( $arc_row->year . $month ) ] =
110
+ /* translators: 1: month name, 2: 4-digit year */
111
+ sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year );
112
+ }
113
+
114
+ return $month_array;
115
+ }
116
+
117
+ /**
118
+ * Extract value and text elements from Dropdown HTML option tags
119
+ *
120
+ * @since 1.20
121
+ *
122
+ * @param string HTML markup for taxonomy terms dropdown <select> tag
123
+ *
124
+ * @return array ( value => label ) pairs
125
+ */
126
+ private function _terms_options( $markup ) {
127
+ $match_count = preg_match_all( "#\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*#", $markup, $matches );
128
+ if ( ( $match_count == false ) || ( $match_count == 0 ) )
129
+ return array( 'class' => array( '' ), 'value' => array( '0' ), 'text' => array( 'Show all terms' ) );
130
+
131
+ $class_array = array();
132
+ $value_array = array();
133
+ $text_array = array();
134
+
135
+ foreach ( $matches[11] as $index => $text ) {
136
+ $class_array[ $index ] = $matches[3][ $index ];
137
+ $value_array[ $index ] = ( ! '' == $matches[6][ $index ] )? $matches[7][ $index ] : $matches[9][ $index ];
138
+ $text_array[ $index ] = $text;
139
+ } // foreach
140
+
141
+ return array( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array );
142
+ }
143
+
144
+ /**
145
+ * Share the settings values between mla_media_view_settings_filter
146
+ * and mla_print_media_templates_action
147
+ *
148
+ * @since 1.20
149
+ *
150
+ * @var array
151
+ */
152
+ private static $mla_media_modal_settings = array(
153
+ 'ajaxAction' => self::JAVASCRIPT_MEDIA_MODAL_SLUG,
154
+ 'ajaxNonce' => '',
155
+ 'enableMimeTypes' => false,
156
+ 'enableMonthsDropdown' => false,
157
+ 'enableTermsDropdown' => false,
158
+ 'enableSearchBox' => false,
159
+ 'mimeTypes' => '',
160
+ 'months' => '',
161
+ 'termsClass' => array(),
162
+ 'termsValue' => array(),
163
+ 'termsText' => array(),
164
+ 'searchValue' => '',
165
+ 'searchFields' => array( 'title', 'content' ),
166
+ 'searchConnector' => 'AND'
167
+ );
168
+
169
+ /**
170
+ * Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.
171
+ * Declared public because it is a filter.
172
+ *
173
+ * @since 1.20
174
+ *
175
+ * @param array associative array with setting => value pairs
176
+ * @param object || NULL current post object, if available
177
+ *
178
+ * @return array updated $settings array
179
+ */
180
+ public static function mla_media_view_settings_filter( $settings, $post ) {
181
+ self::$mla_media_modal_settings['ajaxNonce'] = wp_create_nonce( MLA::MLA_ADMIN_NONCE );
182
+ self::$mla_media_modal_settings['mimeTypes'] = wp_list_pluck( MLA_List_Table::mla_get_attachment_mime_types( ), 0 );
183
+ self::$mla_media_modal_settings['mimeTypes']['detached'] = 'Unattached';
184
+ self::$mla_media_modal_settings['months'] = self::_months_dropdown('attachment');
185
+
186
+ $terms_options = self::_terms_options( MLA_List_Table::mla_get_taxonomy_filter_dropdown() );
187
+ self::$mla_media_modal_settings['termsClass'] = $terms_options['class'];
188
+ self::$mla_media_modal_settings['termsValue'] = $terms_options['value'];
189
+ self::$mla_media_modal_settings['termsText'] = $terms_options['text'];
190
+
191
+ self::$mla_media_modal_settings['enableMimeTypes'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MIMETYPES ) );
192
+ self::$mla_media_modal_settings['enableMonthsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MONTHS ) );
193
+ self::$mla_media_modal_settings['enableTermsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS ) );
194
+ self::$mla_media_modal_settings['enableSearchBox'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX ) );
195
+
196
+ $settings = array_merge( $settings, array( 'mla_settings' => self::$mla_media_modal_settings ) );
197
+ return $settings;
198
+ } // mla_mla_media_view_settings_filter
199
+
200
+ /**
201
+ * Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.
202
+ * Declared public because it is a filter.
203
+ *
204
+ * @since 1.20
205
+ *
206
+ * @param array associative array with string => value pairs
207
+ * @param object || NULL current post object, if available
208
+ *
209
+ * @return array updated $strings array
210
+ */
211
+ public static function mla_media_view_strings_filter( $strings, $post ) {
212
+ $mla_strings = array(
213
+ 'searchBoxPlaceholder' => 'Search Box',
214
+ );
215
+
216
+ $strings = array_merge( $strings, array( 'mla_strings' => $mla_strings ) );
217
+ return $strings;
218
+ } // mla_mla_media_view_strings_filter
219
+
220
+ /**
221
+ * Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.
222
+ * Declared public because it is an action.
223
+ *
224
+ * @since 1.20
225
+ *
226
+ * @return void
227
+ */
228
+ public static function mla_wp_enqueue_media_action( ) {
229
+ $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
230
+
231
+ // replaced by inline styles for now
232
+ // wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
233
+ // wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
234
+
235
+ wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views' ), MLA::CURRENT_MLA_VERSION, false );
236
+ } // mla_wp_enqueue_media_action
237
+
238
+ /**
239
+ * Prints the templates used in the MLA Media Manager enhancements.
240
+ * Declared public because it is an action.
241
+ *
242
+ * @since 1.20
243
+ *
244
+ * @return void echoes HTML script tags for the templates
245
+ */
246
+ public static function mla_print_media_templates_action( ) {
247
+ /*
248
+ * Adjust the toolbar styles based on which controls are present
249
+ */
250
+ if ( self::$mla_media_modal_settings['enableSearchBox'] ) {
251
+ if ( self::$mla_media_modal_settings['enableMonthsDropdown'] && self::$mla_media_modal_settings['enableTermsDropdown'] )
252
+ $height = '100px';
253
+ else
254
+ $height = '70px';
255
+ } else
256
+ $height = '50px';
257
+
258
+ echo '<style type="text/css">' . "\r\n";
259
+
260
+ if ( self::$mla_media_modal_settings['enableSearchBox'] ) {
261
+ echo "\t\t.media-frame .media-frame-content .media-toolbar-secondary {\r\n";
262
+ echo "\t\t\twidth: 150px; }\r\n";
263
+ }
264
+
265
+ echo "\t\t.media-frame .media-frame-content .attachments-browser .media-toolbar {\r\n";
266
+ echo "\t\t\theight: {$height}; }\r\n";
267
+ echo "\t\t.media-frame .media-frame-content .attachments-browser .attachments,\r\n";
268
+ echo "\t\t.media-frame .media-frame-content .attachments-browser .uploader-inline {\r\n";
269
+ echo "\t\t\ttop: {$height}; }\r\n";
270
+ echo "\t\t.media-frame .media-frame-content p.search-box {\r\n";
271
+ echo "\t\t\tmargin-top: 7px;\r\n";
272
+ echo "\t\t\tpadding: 4px;\r\n";
273
+ echo "\t\t\tline-height: 18px;\r\n";
274
+ echo "\t\t\tcolor: #464646;\r\n";
275
+ echo "\t\t\tfont-family: sans-serif;\r\n";
276
+ echo "\t\t\t-webkit-appearance: none; }\r\n";
277
+ echo "\t" . '</style>' . "\r\n";
278
+
279
+ /*
280
+ * Compose the Search Media box
281
+ */
282
+ if ( isset( $_REQUEST['query']['mla_search_value'] ) )
283
+ $search_value = esc_attr( stripslashes( trim( $_REQUEST['query']['mla_search_value'] ) ) );
284
+ else
285
+ $search_value = '';
286
+
287
+ if ( isset( $_REQUEST['query']['mla_search_fields'] ) )
288
+ $search_fields = $_REQUEST['query']['mla_search_fields'];
289
+ else
290
+ $search_fields = array ( 'title', 'content' );
291
+
292
+ if ( isset( $_REQUEST['query']['mla_search_connector'] ) )
293
+ $search_connector = $_REQUEST['query']['mla_search_connector'];
294
+ else
295
+ $search_connector = 'AND';
296
+
297
+ echo "\t" . '<script type="text/html" id="tmpl-mla-search-box">' . "\r\n";
298
+ echo "\t\t" . '<p class="search-box">' . "\r\n";
299
+ echo "\t\t" . '<label class="screen-reader-text" for="media-search-input">Search Media:</label>' . "\r\n";
300
+ echo "\t\t" . '<input type="text" name="mla_search_value" id="media-search-input" size="43" value="' . $search_value . '" />' . "\r\n";
301
+ echo "\t\t" . '<input type="submit" name="mla_search_submit" id="search-submit" class="button" value="Search Media" /><br>' . "\r\n";
302
+ if ( 'OR' == $search_connector ) {
303
+ echo "\t\t" . '<input type="radio" name="mla_search_connector" value="AND" />&nbsp;and&nbsp;' . "\r\n";
304
+ echo "\t\t" . '<input type="radio" name="mla_search_connector" checked="checked" value="OR" />&nbsp;or&nbsp;' . "\r\n";
305
+ } else {
306
+ echo "\t\t" . '<input type="radio" name="mla_search_connector" checked="checked" value="AND" />&nbsp;and&nbsp;' . "\r\n";
307
+ echo "\t\t" . '<input type="radio" name="mla_search_connector" value="OR" />&nbsp;or&nbsp;' . "\r\n";
308
+ }
309
+
310
+ if ( in_array( 'title', $search_fields ) )
311
+ echo "\t\t" . '<input type="checkbox" name="mla_search_title" id="search-title" checked="checked" value="title" />&nbsp;title&nbsp;' . "\r\n";
312
+ else
313
+ echo "\t\t" . '<input type="checkbox" name="mla_search_title" id="search-title" value="title" />&nbsp;title&nbsp;' . "\r\n";
314
+
315
+ if ( in_array( 'name', $search_fields ) )
316
+ echo "\t\t" . '<input type="checkbox" name="mla_search_name" id="search-name" checked="checked" value="name" />&nbsp;name&nbsp;' . "\r\n";
317
+ else
318
+ echo "\t\t" . '<input type="checkbox" name="mla_search_name" id="search-name" value="name" />&nbsp;name&nbsp;' . "\r\n";
319
+
320
+ if ( in_array( 'alt-text', $search_fields ) )
321
+ echo "\t\t" . '<input type="checkbox" name="mla_search_alt_text" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
322
+ else
323
+ echo "\t\t" . '<input type="checkbox" name="mla_search_alt_text" id="search-alt-text" value="alt-text" />&nbsp;ALT text&nbsp;' . "\r\n";
324
+
325
+ if ( in_array( 'excerpt', $search_fields ) )
326
+ echo "\t\t" . '<input type="checkbox" name="mla_search_excerpt" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
327
+ else
328
+ echo "\t\t" . '<input type="checkbox" name="mla_search_excerpt" id="search-excerpt" value="excerpt" />&nbsp;caption&nbsp;' . "\r\n";
329
+
330
+ if ( in_array( 'content', $search_fields ) )
331
+ echo "\t\t" . '<input type="checkbox" name="mla_search_content" id="search-content" checked="checked" value="content" />&nbsp;description&nbsp;' . "\r\n";
332
+ else
333
+ echo "\t\t" . '<input type="checkbox" name="mla_search_content" id="search-content" value="content" />&nbsp;description&nbsp;' . "\r\n";
334
+
335
+ echo "\t\t" . '</p>' . "\r\n";
336
+ echo "\t" . '</script>' . "\r\n";
337
+ } // mla_print_media_templates_action
338
+
339
+ /**
340
+ * Adjust ajax handler for Media Manager queries
341
+ *
342
+ * Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab
343
+ *
344
+ * @since 1.20
345
+ *
346
+ * @return void
347
+ */
348
+ public static function mla_admin_init_ajax_action() {
349
+ if ( ( defined('WP_ADMIN') && WP_ADMIN ) && ( defined('DOING_AJAX') && DOING_AJAX ) ) {
350
+ if ( isset( $_POST['action'] ) && ( $_POST['action'] == 'query-attachments' ) && isset( $_POST['query']['mla_source'] ) ){
351
+ $_POST['action'] = self::JAVASCRIPT_MEDIA_MODAL_SLUG;
352
+ $_REQUEST['action'] = self::JAVASCRIPT_MEDIA_MODAL_SLUG;
353
+ }
354
+ }
355
+ } // mla_print_media_templates_action
356
+
357
+ /**
358
+ * Ajax handler for Media Manager queries
359
+ *
360
+ * Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php
361
+ *
362
+ * @since 1.20
363
+ *
364
+ * @return void echo HTML <tr> markup for updated row or error message, then die()
365
+ */
366
+ public static function mla_query_attachments_action() {
367
+ if ( ! current_user_can( 'upload_files' ) )
368
+ wp_send_json_error();
369
+
370
+ /*
371
+ * Pick out and clean up the query terms we can process
372
+ */
373
+ $query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
374
+ $query = array_intersect_key( $query, array_flip( array(
375
+ 'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type',
376
+ 'post_parent', 'post__in', 'post__not_in', 'm', 'mla_filter_term',
377
+ 'mla_search_value', 'mla_search_fields', 'mla_search_connector'
378
+ ) ) );
379
+
380
+ if ( isset( $query['post_mime_type'] ) && ( 'detached' == $query['post_mime_type'] ) ) {
381
+ $query['detached'] = '1';
382
+ unset( $query['post_mime_type'] );
383
+ }
384
+
385
+ if ( isset( $query['mla_search_value'] ) ) {
386
+ if ( ! empty( $query['mla_search_value'] ) )
387
+ $query['s'] = $query['mla_search_value'];
388
+
389
+ unset( $query['mla_search_value'] );
390
+ }
391
+
392
+ if ( isset( $query['posts_per_page'] ) ) {
393
+ $count = $query['posts_per_page'];
394
+ $offset = $count * (isset( $query['paged'] ) ? $query['paged'] - 1 : 0);
395
+ }
396
+ else {
397
+ $count = 0;
398
+ $offset = 0;
399
+ }
400
+
401
+ $query['post_type'] = 'attachment';
402
+ $query['post_status'] = 'inherit';
403
+ if ( current_user_can( get_post_type_object( 'attachment' )->cap->read_private_posts ) )
404
+ $query['post_status'] .= ',private';
405
+
406
+ $query = MLAData::mla_query_media_modal_items( $query, $offset, $count );
407
+
408
+ $posts = array_map( 'wp_prepare_attachment_for_js', $query->posts );
409
+ $posts = array_filter( $posts );
410
+
411
+ wp_send_json_success( $posts );
412
+ }
413
+ } //Class MLAModal
414
+ ?>
includes/class-mla-objects.php CHANGED
@@ -186,7 +186,7 @@ class MLAObjects {
186
  error_log( "ERROR: mla_taxonomy_column_filter( {$taxonomy} ) - WP_Query " . $results->error, 0 );
187
  return 0;
188
  }
189
-
190
  $tax_object = get_taxonomy($taxonomy);
191
 
192
  return sprintf( '<a href="%1$s">%2$s</a>', esc_url( add_query_arg(
186
  error_log( "ERROR: mla_taxonomy_column_filter( {$taxonomy} ) - WP_Query " . $results->error, 0 );
187
  return 0;
188
  }
189
+
190
  $tax_object = get_taxonomy($taxonomy);
191
 
192
  return sprintf( '<a href="%1$s">%2$s</a>', esc_url( add_query_arg(
includes/class-mla-options.php CHANGED
@@ -51,6 +51,31 @@ class MLAOptions {
51
  */
52
  const MLA_NEW_CUSTOM_FIELD = '__NEW FIELD__';
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  /**
55
  * Option setting for "Featured in" reporting
56
  *
@@ -248,6 +273,46 @@ class MLAOptions {
248
  'texts' => array('Ascending', 'Descending'),
249
  'help' => 'Choose the sort order.'),
250
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  'template_heading' =>
252
  array('tab' => 'mla-gallery',
253
  'name' => 'Default [mla_gallery] Templates',
51
  */
52
  const MLA_NEW_CUSTOM_FIELD = '__NEW FIELD__';
53
 
54
+ /**
55
+ * Provides a unique name for the Media Manager toolbar option
56
+ */
57
+ const MLA_MEDIA_MODAL_TOOLBAR = 'media_modal_toolbar';
58
+
59
+ /**
60
+ * Provides a unique name for the Media Manager toolbar MIME Types option
61
+ */
62
+ const MLA_MEDIA_MODAL_MIMETYPES = 'media_modal_mimetypes';
63
+
64
+ /**
65
+ * Provides a unique name for the Media Manager toolbar Month and Year option
66
+ */
67
+ const MLA_MEDIA_MODAL_MONTHS = 'media_modal_months';
68
+
69
+ /**
70
+ * Provides a unique name for the Media Manager toolbar Taxonomy Terms option
71
+ */
72
+ const MLA_MEDIA_MODAL_TERMS = 'media_modal_terms';
73
+
74
+ /**
75
+ * Provides a unique name for the Media Manager toolbar Search Box option
76
+ */
77
+ const MLA_MEDIA_MODAL_SEARCHBOX = 'media_modal_searchbox';
78
+
79
  /**
80
  * Option setting for "Featured in" reporting
81
  *
273
  'texts' => array('Ascending', 'Descending'),
274
  'help' => 'Choose the sort order.'),
275
 
276
+ 'media_modal_heading' =>
277
+ array('tab' => 'general',
278
+ 'name' => 'Media Manager Enhancements',
279
+ 'type' => 'header'),
280
+
281
+ self::MLA_MEDIA_MODAL_TOOLBAR =>
282
+ array('tab' => 'general',
283
+ 'name' => 'Enable Media Manager Enhancements',
284
+ 'type' => 'checkbox',
285
+ 'std' => 'checked',
286
+ 'help' => 'Check/uncheck this option to enable/disable Media Manager Enhancements.'),
287
+
288
+ self::MLA_MEDIA_MODAL_MIMETYPES =>
289
+ array('tab' => 'general',
290
+ 'name' => 'Media Manager Enhanced MIME Type filter',
291
+ 'type' => 'checkbox',
292
+ 'std' => 'checked',
293
+ 'help' => 'Check this option to filter by more MIME Types, e.g., text, applications.'),
294
+
295
+ self::MLA_MEDIA_MODAL_MONTHS =>
296
+ array('tab' => 'general',
297
+ 'name' => 'Media Manager Month and Year filter',
298
+ 'type' => 'checkbox',
299
+ 'std' => 'checked',
300
+ 'help' => 'Check this option to filter by month and year uploaded.'),
301
+
302
+ self::MLA_MEDIA_MODAL_TERMS =>
303
+ array('tab' => 'general',
304
+ 'name' => 'Media Manager Category/Tag filter',
305
+ 'type' => 'checkbox',
306
+ 'std' => 'checked',
307
+ 'help' => 'Check this option to filter by taxonomy terms.'),
308
+
309
+ self::MLA_MEDIA_MODAL_SEARCHBOX =>
310
+ array('tab' => 'general',
311
+ 'name' => 'Media Manager Enhanced Search Media box',
312
+ 'type' => 'checkbox',
313
+ 'std' => 'checked',
314
+ 'help' => 'Check this option to enable search box enhancements.'),
315
+
316
  'template_heading' =>
317
  array('tab' => 'mla-gallery',
318
  'name' => 'Default [mla_gallery] Templates',
includes/class-mla-settings.php CHANGED
@@ -454,6 +454,7 @@ class MLASettings {
454
  $page_values = array(
455
  'shortcode_list' => '',
456
  'options_list' => '',
 
457
  '_wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
458
  '_wp_http_referer' => wp_referer_field( false )
459
  );
@@ -1021,6 +1022,7 @@ class MLASettings {
1021
  $current_tab = isset( $_REQUEST['mla_tab'] ) ? $_REQUEST['mla_tab']: 'general';
1022
  $page_values = array(
1023
  'version' => 'v' . MLA::CURRENT_MLA_VERSION,
 
1024
  'messages' => '',
1025
  'tablist' => self::_compose_settings_tabs( $current_tab ),
1026
  'tab_content' => ''
454
  $page_values = array(
455
  'shortcode_list' => '',
456
  'options_list' => '',
457
+ 'donateURL' => MLA_PLUGIN_URL . 'images/DonateButton.jpg',
458
  '_wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
459
  '_wp_http_referer' => wp_referer_field( false )
460
  );
1022
  $current_tab = isset( $_REQUEST['mla_tab'] ) ? $_REQUEST['mla_tab']: 'general';
1023
  $page_values = array(
1024
  'version' => 'v' . MLA::CURRENT_MLA_VERSION,
1025
+ 'donateURL' => MLA_PLUGIN_URL . 'images/DonateButton.jpg',
1026
  'messages' => '',
1027
  'tablist' => self::_compose_settings_tabs( $current_tab ),
1028
  'tab_content' => ''
includes/class-mla-shortcodes.php CHANGED
@@ -142,21 +142,6 @@ class MLAShortcodes {
142
  */
143
  private static $mla_debug = false;
144
 
145
- /**
146
- * WP_Query filter "parameters"
147
- *
148
- * This array defines parameters for the query's where filter, mla_shortcode_query_posts_where_filter.
149
- * The parameters are set up in the mla_get_shortcode_attachments function, and
150
- * any further logic required to translate those values is contained in the filter.
151
- *
152
- * Array index values are: post_parent
153
- *
154
- * @since 1.13
155
- *
156
- * @var array
157
- */
158
- private static $query_parameters = array();
159
-
160
  /**
161
  * The MLA Gallery shortcode.
162
  *
@@ -195,6 +180,7 @@ class MLAShortcodes {
195
  'mla_float' => is_rtl() ? 'right' : 'left',
196
  'mla_itemwidth' => NULL,
197
  'mla_margin' => '1.5',
 
198
  'mla_link_text' => '',
199
  'mla_rollover_text' => '',
200
  'mla_caption' => '',
@@ -216,7 +202,7 @@ class MLAShortcodes {
216
  'fx' => 'fade',
217
  'timeout' => 4000,
218
  'speed' => 1000,
219
- 'pause' => true
220
  );
221
 
222
  /*
@@ -256,6 +242,9 @@ class MLAShortcodes {
256
  foreach ($attachments as $key => $val) {
257
  $images[$val->ID] = $attachments[$key];
258
  }
 
 
 
259
 
260
  $output = $photonic->build_gallery( $images, $arguments['style'], $arguments );
261
  return $output;
@@ -341,12 +330,14 @@ class MLAShortcodes {
341
 
342
  $upload_dir = wp_upload_dir();
343
  $markup_values = $style_values;
 
344
  $markup_values['base_url'] = $upload_dir['baseurl'];
345
  $markup_values['base_dir'] = $upload_dir['basedir'];
346
 
347
  /*
348
  * Variable item-level placeholders
349
  */
 
350
  $terms_placeholders = array();
351
  $custom_placeholders = array();
352
  $iptc_placeholders = array();
@@ -372,10 +363,13 @@ class MLAShortcodes {
372
  /*
373
  * Look for variable item-level placeholders
374
  */
375
- $new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_link_text'] . $arguments['mla_rollover_text'] . $arguments['mla_caption'] ) );
376
  $placeholders = MLAData::mla_get_template_placeholders( $item_template . $new_text );
377
  foreach ($placeholders as $key => $value ) {
378
  switch ( $value['prefix'] ) {
 
 
 
379
  case 'terms':
380
  $terms_placeholders[ $key ] = $value;
381
  break;
@@ -494,6 +488,13 @@ class MLAShortcodes {
494
  /*
495
  * Add variable placeholders
496
  */
 
 
 
 
 
 
 
497
  foreach ( $terms_placeholders as $key => $value ) {
498
  $text = '';
499
  $terms = wp_get_object_terms( $attachment->ID, $value['value'] );
@@ -663,6 +664,20 @@ class MLAShortcodes {
663
  else
664
  $markup_values['link_url'] = '';
665
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
666
  $match_count = preg_match_all( '#\<a [^\>]+\>(.*)\</a\>#', $markup_values['link'], $matches, PREG_OFFSET_CAPTURE );
667
  if ( ! ( ( $match_count == false ) || ( $match_count == 0 ) ) ) {
668
  $markup_values['thumbnail_content'] = $matches[1][0][0];
@@ -732,6 +747,22 @@ class MLAShortcodes {
732
  return $output;
733
  }
734
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
735
  /**
736
  * Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications
737
  *
@@ -747,6 +778,91 @@ class MLAShortcodes {
747
  return $specification;
748
  }
749
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
750
  /**
751
  * Parses shortcode parameters and returns the gallery objects
752
  *
@@ -763,7 +879,7 @@ class MLAShortcodes {
763
  */
764
  $default_arguments = array(
765
  'order' => 'ASC', // or 'DESC' or 'RAND'
766
- 'orderby' => 'menu_order ID',
767
  'id' => NULL,
768
  'ids' => array(),
769
  'include' => array(),
@@ -798,6 +914,7 @@ class MLAShortcodes {
798
  'post_mime_type' => 'image',
799
  // Pagination - no default for most of these
800
  'nopaging' => true,
 
801
  'posts_per_page' => 0,
802
  'posts_per_archive_page' => 0,
803
  'paged' => NULL, // page number or 'current'
@@ -813,6 +930,11 @@ class MLAShortcodes {
813
  's' => ''
814
  );
815
 
 
 
 
 
 
816
  /*
817
  * Merge input arguments with defaults, then extract the query arguments.
818
  */
@@ -821,8 +943,7 @@ class MLAShortcodes {
821
  $attr = shortcode_parse_atts( $attr );
822
 
823
  $arguments = shortcode_atts( $default_arguments, $attr );
824
- self::$query_parameters = array();
825
-
826
  /*
827
  * 'RAND' is not documented in the codex, but is present in the code.
828
  */
@@ -867,18 +988,11 @@ class MLAShortcodes {
867
  $query_arguments['tax_query'] = array( array( 'taxonomy' => $key, 'field' => 'slug', 'terms' => explode( ',', $query_arguments[ $key ] ), 'operator' => strtoupper( $arguments['tax_operator'] ) ) );
868
  unset( $query_arguments[ $key ] );
869
  }
870
-
871
  } // array_key_exists
872
  } //foreach $attr
873
  } // ! empty
 
874
 
875
- // We're trusting author input, but let's at least make sure it looks like a valid orderby statement
876
- if ( isset( $arguments['orderby'] ) ) {
877
- $arguments['orderby'] = sanitize_sql_orderby( $arguments['orderby'] );
878
- if ( ! $arguments['orderby'] )
879
- unset( $arguments['orderby'] );
880
- }
881
-
882
  /*
883
  * $query_arguments has been initialized in the taxonomy code above.
884
  */
@@ -912,14 +1026,20 @@ class MLAShortcodes {
912
  }
913
  // fallthru
914
  case 'id':
 
 
 
 
 
 
 
 
915
  case 'posts_per_page':
916
  case 'posts_per_archive_page':
917
  if ( is_numeric( $value ) ) {
918
  $value = intval( $value );
919
  if ( ! empty( $value ) ) {
920
  $query_arguments[ $key ] = $value;
921
- if ( ! $children_ok )
922
- $use_children = false;
923
  }
924
  }
925
  unset( $arguments[ $key ] );
@@ -1052,8 +1172,8 @@ class MLAShortcodes {
1052
  /*
1053
  * Decide whether to use a "get_children" style query
1054
  */
1055
- if ( $use_children && empty( $query_arguments['post_parent'] ) ) {
1056
- if ( empty( $query_arguments['id'] ) )
1057
  $query_arguments['post_parent'] = $post_parent;
1058
  else
1059
  $query_arguments['post_parent'] = $query_arguments['id'];
@@ -1061,16 +1181,18 @@ class MLAShortcodes {
1061
  unset( $query_arguments['id'] );
1062
  }
1063
 
 
 
 
 
 
1064
  if ( isset( $query_arguments['posts_per_page'] ) || isset( $query_arguments['posts_per_archive_page'] ) ||
1065
  isset( $query_arguments['paged'] ) || isset( $query_arguments['offset'] ) ) {
1066
- unset ( $query_arguments['nopaging'] );
1067
  }
1068
 
1069
- if ( isset( $query_arguments['orderby'] ) && ('rand' == $query_arguments['orderby'] ) )
1070
- unset ( $query_arguments['order'] );
1071
-
1072
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
1073
- unset ( $query_arguments['post_mime_type'] );
1074
 
1075
  if ( ! empty($query_arguments['include']) ) {
1076
  $incposts = wp_parse_id_list( $query_arguments['include'] );
@@ -1082,15 +1204,28 @@ class MLAShortcodes {
1082
  $query_arguments['ignore_sticky_posts'] = true;
1083
  $query_arguments['no_found_rows'] = true;
1084
 
 
 
 
 
 
 
 
 
 
 
 
1085
  add_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter' );
1086
  $get_posts = new WP_Query;
1087
  $attachments = $get_posts->query($query_arguments);
1088
  remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter' );
 
1089
 
1090
  if ( self::$mla_debug ) {
1091
  self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query = ' . var_export( $query_arguments, true ) . '</p>';
1092
  self::$mla_debug_messages .= '<p><strong>mla_debug</strong> request = ' . var_export( $get_posts->request, true ) . '</p>';
1093
  self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query_vars = ' . var_export( $get_posts->query_vars, true ) . '</p>';
 
1094
  }
1095
 
1096
  return $attachments;
@@ -1139,6 +1274,27 @@ class MLAShortcodes {
1139
  return $where_clause;
1140
  }
1141
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1142
  /**
1143
  * IPTC Dataset identifiers and names
1144
  *
142
  */
143
  private static $mla_debug = false;
144
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  /**
146
  * The MLA Gallery shortcode.
147
  *
180
  'mla_float' => is_rtl() ? 'right' : 'left',
181
  'mla_itemwidth' => NULL,
182
  'mla_margin' => '1.5',
183
+ 'mla_link_href' => '',
184
  'mla_link_text' => '',
185
  'mla_rollover_text' => '',
186
  'mla_caption' => '',
202
  'fx' => 'fade',
203
  'timeout' => 4000,
204
  'speed' => 1000,
205
+ 'pause' => NULL
206
  );
207
 
208
  /*
242
  foreach ($attachments as $key => $val) {
243
  $images[$val->ID] = $attachments[$key];
244
  }
245
+
246
+ if ( isset( $arguments['pause'] ) && ( 'false' == $arguments['pause'] ) )
247
+ $arguments['pause'] = NULL;
248
 
249
  $output = $photonic->build_gallery( $images, $arguments['style'], $arguments );
250
  return $output;
330
 
331
  $upload_dir = wp_upload_dir();
332
  $markup_values = $style_values;
333
+ $markup_values['site_url'] = site_url();
334
  $markup_values['base_url'] = $upload_dir['baseurl'];
335
  $markup_values['base_dir'] = $upload_dir['basedir'];
336
 
337
  /*
338
  * Variable item-level placeholders
339
  */
340
+ $query_placeholders = array();
341
  $terms_placeholders = array();
342
  $custom_placeholders = array();
343
  $iptc_placeholders = array();
363
  /*
364
  * Look for variable item-level placeholders
365
  */
366
+ $new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_link_href'] . $arguments['mla_link_text'] . $arguments['mla_rollover_text'] . $arguments['mla_caption'] ) );
367
  $placeholders = MLAData::mla_get_template_placeholders( $item_template . $new_text );
368
  foreach ($placeholders as $key => $value ) {
369
  switch ( $value['prefix'] ) {
370
+ case 'query':
371
+ $query_placeholders[ $key ] = $value;
372
+ break;
373
  case 'terms':
374
  $terms_placeholders[ $key ] = $value;
375
  break;
488
  /*
489
  * Add variable placeholders
490
  */
491
+ foreach ( $query_placeholders as $key => $value ) {
492
+ if ( isset( $attr[ $value['value'] ] ) )
493
+ $markup_values[ $key ] = $attr[ $value['value'] ];
494
+ else
495
+ $markup_values[ $key ] = '';
496
+ } // $query_placeholders
497
+
498
  foreach ( $terms_placeholders as $key => $value ) {
499
  $text = '';
500
  $terms = wp_get_object_terms( $attachment->ID, $value['value'] );
664
  else
665
  $markup_values['link_url'] = '';
666
 
667
+ /*
668
+ * Override the link value; leave filelink and pagelink unchanged
669
+ */
670
+ if ( ! empty( $arguments['mla_link_href'] ) ) {
671
+ $new_text = str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_link_href'] ) );
672
+ $new_text = MLAData::mla_parse_template( $new_text, $markup_values );
673
+
674
+ /*
675
+ * Replace single- and double-quote delimited values
676
+ */
677
+ $markup_values['link'] = preg_replace('# href=\'([^\']*)\'#', " href='{$new_text}'", $markup_values['link'] );
678
+ $markup_values['link'] = preg_replace('# href=\"([^\"]*)\"#', " href=\"{$new_text}\"", $markup_values['link'] );
679
+ }
680
+
681
  $match_count = preg_match_all( '#\<a [^\>]+\>(.*)\</a\>#', $markup_values['link'], $matches, PREG_OFFSET_CAPTURE );
682
  if ( ! ( ( $match_count == false ) || ( $match_count == 0 ) ) ) {
683
  $markup_values['thumbnail_content'] = $matches[1][0][0];
747
  return $output;
748
  }
749
 
750
+ /**
751
+ * WP_Query filter "parameters"
752
+ *
753
+ * This array defines parameters for the query's where and orderby filters,
754
+ * mla_shortcode_query_posts_where_filter and mla_shortcode_query_posts_orderby_filter.
755
+ * The parameters are set up in the mla_get_shortcode_attachments function, and
756
+ * any further logic required to translate those values is contained in the filter.
757
+ *
758
+ * Array index values are: orderby, post_parent
759
+ *
760
+ * @since 1.13
761
+ *
762
+ * @var array
763
+ */
764
+ private static $query_parameters = array();
765
+
766
  /**
767
  * Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications
768
  *
778
  return $specification;
779
  }
780
 
781
+ /**
782
+ * Translates query parameters to a valid SQL order by clause.
783
+ *
784
+ * Accepts one or more valid columns, with or without ASC/DESC.
785
+ * Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().
786
+ *
787
+ * @since 1.20
788
+ *
789
+ * @param array Validated query parameters
790
+ * @return string|bool Returns the orderby clause if present, false otherwise.
791
+ */
792
+ private static function _validate_sql_orderby( $query_parameters ){
793
+ global $wpdb;
794
+
795
+ $results = array ();
796
+ $order = isset( $query_parameters['order'] ) ? ' ' . $query_parameters['order'] : '';
797
+ $orderby = isset( $query_parameters['orderby'] ) ? $query_parameters['orderby'] : '';
798
+ $meta_key = isset( $query_parameters['meta_key'] ) ? $query_parameters['meta_key'] : '';
799
+ $post__in = isset( $query_parameters['post__in'] ) ? implode(',', array_map( 'absint', $query_parameters['post__in'] )) : '';
800
+
801
+ if ( empty( $orderby ) ) {
802
+ $orderby = "$wpdb->posts.post_date " . $order;
803
+ } elseif ( 'none' == $orderby ) {
804
+ return '';
805
+ } elseif ( $orderby == 'post__in' && ! empty( $post__in ) ) {
806
+ $orderby = "FIELD( {$wpdb->posts}.ID, {$post__in} )";
807
+ } else {
808
+ $allowed_keys = array('ID', 'author', 'date', 'description', 'content', 'title', 'caption', 'excerpt', 'slug', 'name', 'modified', 'parent', 'menu_order', 'mime_type', 'comment_count', 'rand');
809
+ if ( ! empty( $meta_key ) ) {
810
+ $allowed_keys[] = $meta_key;
811
+ $allowed_keys[] = 'meta_value';
812
+ $allowed_keys[] = 'meta_value_num';
813
+ }
814
+
815
+ $obmatches = preg_split('/\s*,\s*/', trim($query_parameters['orderby']));
816
+ foreach( $obmatches as $index => $value ) {
817
+ $count = preg_match('/([a-z0-9_]+)(\s+(ASC|DESC))?/i', $value, $matches);
818
+
819
+ if ( $count && ( $value == $matches[0] ) && in_array( $matches[1], $allowed_keys ) ) {
820
+ if ( 'rand' == $matches[1] )
821
+ $results[] = 'RAND()';
822
+ else {
823
+ switch ( $matches[1] ) {
824
+ case 'ID':
825
+ $matches[1] = "$wpdb->posts.ID";
826
+ break;
827
+ case 'description':
828
+ $matches[1] = "$wpdb->posts.post_content";
829
+ break;
830
+ case 'caption':
831
+ $matches[1] = "$wpdb->posts.post_excerpt";
832
+ break;
833
+ case 'slug':
834
+ $matches[1] = "$wpdb->posts.post_name";
835
+ break;
836
+ case 'menu_order':
837
+ $matches[1] = "$wpdb->posts.menu_order";
838
+ break;
839
+ case 'comment_count':
840
+ $matches[1] = "$wpdb->posts.comment_count";
841
+ break;
842
+ case $meta_key:
843
+ case 'meta_value':
844
+ $matches[1] = "$wpdb->postmeta.meta_value";
845
+ break;
846
+ case 'meta_value_num':
847
+ $matches[1] = "$wpdb->postmeta.meta_value+0";
848
+ break;
849
+ default:
850
+ $matches[1] = "$wpdb->posts.post_" . $matches[1];
851
+ } // switch $matches[1]
852
+
853
+ $results[] = isset( $matches[2] ) ? $matches[1] . $matches[2] : $matches[1] . $order;
854
+ } // not 'rand'
855
+ } // valid column specification
856
+ } // foreach $obmatches
857
+
858
+ $orderby = implode( ', ', $results );
859
+ if ( empty( $orderby ) )
860
+ return false;
861
+ } // else filter by allowed keys, etc.
862
+
863
+ return $orderby;
864
+ }
865
+
866
  /**
867
  * Parses shortcode parameters and returns the gallery objects
868
  *
879
  */
880
  $default_arguments = array(
881
  'order' => 'ASC', // or 'DESC' or 'RAND'
882
+ 'orderby' => 'menu_order,ID',
883
  'id' => NULL,
884
  'ids' => array(),
885
  'include' => array(),
914
  'post_mime_type' => 'image',
915
  // Pagination - no default for most of these
916
  'nopaging' => true,
917
+ 'numberposts' => 0,
918
  'posts_per_page' => 0,
919
  'posts_per_archive_page' => 0,
920
  'paged' => NULL, // page number or 'current'
930
  's' => ''
931
  );
932
 
933
+ /*
934
+ * Parameters passed to the where and orderby filter functions
935
+ */
936
+ self::$query_parameters = array();
937
+
938
  /*
939
  * Merge input arguments with defaults, then extract the query arguments.
940
  */
943
  $attr = shortcode_parse_atts( $attr );
944
 
945
  $arguments = shortcode_atts( $default_arguments, $attr );
946
+
 
947
  /*
948
  * 'RAND' is not documented in the codex, but is present in the code.
949
  */
988
  $query_arguments['tax_query'] = array( array( 'taxonomy' => $key, 'field' => 'slug', 'terms' => explode( ',', $query_arguments[ $key ] ), 'operator' => strtoupper( $arguments['tax_operator'] ) ) );
989
  unset( $query_arguments[ $key ] );
990
  }
 
991
  } // array_key_exists
992
  } //foreach $attr
993
  } // ! empty
994
+ unset( $arguments['tax_operator'] );
995
 
 
 
 
 
 
 
 
996
  /*
997
  * $query_arguments has been initialized in the taxonomy code above.
998
  */
1026
  }
1027
  // fallthru
1028
  case 'id':
1029
+ if ( is_numeric( $value ) ) {
1030
+ $query_arguments[ $key ] = intval( $value );
1031
+ if ( ! $children_ok )
1032
+ $use_children = false;
1033
+ }
1034
+ unset( $arguments[ $key ] );
1035
+ break;
1036
+ case 'numberposts':
1037
  case 'posts_per_page':
1038
  case 'posts_per_archive_page':
1039
  if ( is_numeric( $value ) ) {
1040
  $value = intval( $value );
1041
  if ( ! empty( $value ) ) {
1042
  $query_arguments[ $key ] = $value;
 
 
1043
  }
1044
  }
1045
  unset( $arguments[ $key ] );
1172
  /*
1173
  * Decide whether to use a "get_children" style query
1174
  */
1175
+ if ( $use_children && ! isset( $query_arguments['post_parent'] ) ) {
1176
+ if ( ! isset( $query_arguments['id'] ) )
1177
  $query_arguments['post_parent'] = $post_parent;
1178
  else
1179
  $query_arguments['post_parent'] = $query_arguments['id'];
1181
  unset( $query_arguments['id'] );
1182
  }
1183
 
1184
+ if ( isset( $query_arguments['numberposts'] ) && ! isset( $query_arguments['posts_per_page'] )) {
1185
+ $query_arguments['posts_per_page'] = $query_arguments['numberposts'];
1186
+ }
1187
+ unset( $query_arguments['numberposts'] );
1188
+
1189
  if ( isset( $query_arguments['posts_per_page'] ) || isset( $query_arguments['posts_per_archive_page'] ) ||
1190
  isset( $query_arguments['paged'] ) || isset( $query_arguments['offset'] ) ) {
1191
+ unset( $query_arguments['nopaging'] );
1192
  }
1193
 
 
 
 
1194
  if ( isset( $query_arguments['post_mime_type'] ) && ('all' == strtolower( $query_arguments['post_mime_type'] ) ) )
1195
+ unset( $query_arguments['post_mime_type'] );
1196
 
1197
  if ( ! empty($query_arguments['include']) ) {
1198
  $incposts = wp_parse_id_list( $query_arguments['include'] );
1204
  $query_arguments['ignore_sticky_posts'] = true;
1205
  $query_arguments['no_found_rows'] = true;
1206
 
1207
+ /*
1208
+ * We will always handle "orderby" in our filter
1209
+ */
1210
+ self::$query_parameters['orderby'] = self::_validate_sql_orderby( $query_arguments );
1211
+ if ( false === self::$query_parameters['orderby'] )
1212
+ unset( self::$query_parameters['orderby'] );
1213
+
1214
+ unset( $query_arguments['orderby'] );
1215
+ unset( $query_arguments['order'] );
1216
+
1217
+ add_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter' );
1218
  add_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter' );
1219
  $get_posts = new WP_Query;
1220
  $attachments = $get_posts->query($query_arguments);
1221
  remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter' );
1222
+ remove_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter' );
1223
 
1224
  if ( self::$mla_debug ) {
1225
  self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query = ' . var_export( $query_arguments, true ) . '</p>';
1226
  self::$mla_debug_messages .= '<p><strong>mla_debug</strong> request = ' . var_export( $get_posts->request, true ) . '</p>';
1227
  self::$mla_debug_messages .= '<p><strong>mla_debug</strong> query_vars = ' . var_export( $get_posts->query_vars, true ) . '</p>';
1228
+ self::$mla_debug_messages .= '<p><strong>mla_debug</strong> post_count = ' . var_export( $get_posts->post_count, true ) . '</p>';
1229
  }
1230
 
1231
  return $attachments;
1274
  return $where_clause;
1275
  }
1276
 
1277
+ /**
1278
+ * Filters the ORDERBY clause for shortcode queries
1279
+ *
1280
+ * This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
1281
+ * Defined as public because it's a filter.
1282
+ *
1283
+ * @since 1.20
1284
+ *
1285
+ * @param string query clause before modification
1286
+ *
1287
+ * @return string query clause after modification
1288
+ */
1289
+ public static function mla_shortcode_query_posts_orderby_filter( $orderby_clause ) {
1290
+ global $wpdb;
1291
+
1292
+ if ( isset( self::$query_parameters['orderby'] ) )
1293
+ return self::$query_parameters['orderby'];
1294
+ else
1295
+ return $orderby_clause;
1296
+ }
1297
+
1298
  /**
1299
  * IPTC Dataset identifiers and names
1300
  *
includes/mla-plugin-loader.php CHANGED
@@ -78,10 +78,10 @@ else {
78
  /*
79
  * WordPress 3.5 and later Media Manager (Modal window) additions
80
  */
81
- /* if ( version_compare( get_bloginfo( 'version' ), '3.5', '>=' ) ) {
82
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal.php');
83
  add_action('init', 'MLAModal::initialize');
84
- } // */
85
 
86
  /*
87
  * Plugin settings management
78
  /*
79
  * WordPress 3.5 and later Media Manager (Modal window) additions
80
  */
81
+ if ( version_compare( get_bloginfo( 'version' ), '3.5', '>=' ) ) {
82
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal.php');
83
  add_action('init', 'MLAModal::initialize');
84
+ }
85
 
86
  /*
87
  * Plugin settings management
index.php CHANGED
@@ -6,7 +6,7 @@
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
- * @version 1.14
10
  */
11
 
12
  /*
@@ -14,7 +14,7 @@ Plugin Name: Media Library Assistant
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
16
  Author: David Lingren
17
- Version: 1.14
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 1.20
10
  */
11
 
12
  /*
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
16
  Author: David Lingren
17
+ Version: 1.20
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
  */
20
 
js/mla-media-modal-scripts.js ADDED
@@ -0,0 +1,312 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($){
2
+ var media = wp.media, mlaStrings = {}, mlaSettings = {};
3
+
4
+ /* // for debug : trace every event triggered in the Region controller
5
+ var originalTrigger = wp.media.view.MediaFrame.prototype.trigger;
6
+ wp.media.view.MediaFrame.prototype.trigger = function(){
7
+ console.log('MediaFrame Event: ', arguments[0]);
8
+ originalTrigger.apply(this, Array.prototype.slice.call(arguments));
9
+ } // */
10
+
11
+ /* // for Network debug
12
+ var originalAjax = media.ajax;
13
+ media.ajax = function( action ) {
14
+ console.log( 'media.ajax: action = ' + JSON.stringify( action ) );
15
+ return originalAjax.apply(this, Array.prototype.slice.call(arguments));
16
+ }; // */
17
+
18
+ /**
19
+ * Localized settings and strings
20
+ */
21
+ mlaStrings = typeof media.view.l10n.mla_strings === 'undefined' ? {} : media.view.l10n.mla_strings;
22
+ delete media.view.l10n.mla_strings;
23
+
24
+ mlaSettings = typeof wp.media.view.settings.mla_settings === 'undefined' ? {} : wp.media.view.settings.mla_settings;
25
+ delete wp.media.view.settings.mla_settings;
26
+
27
+ /**
28
+ * Extended Filters dropdown with more mimeTypes
29
+ */
30
+ media.view.AttachmentFilters.Mla = media.view.AttachmentFilters.extend({
31
+ createFilters: function() {
32
+ var filters = {};
33
+
34
+ _.each( mlaSettings.mimeTypes || {}, function( text, key ) {
35
+ filters[ key ] = {
36
+ text: text,
37
+ props: {
38
+ type: key,
39
+ uploadedTo: null,
40
+ orderby: 'date',
41
+ order: 'DESC'
42
+ }
43
+ };
44
+ });
45
+
46
+ filters.all = {
47
+ text: media.view.l10n.allMediaItems,
48
+ props: {
49
+ type: null,
50
+ uploadedTo: null,
51
+ orderby: 'date',
52
+ order: 'DESC'
53
+ },
54
+ priority: 10
55
+ };
56
+
57
+ filters.uploaded = {
58
+ text: media.view.l10n.uploadedToThisPost,
59
+ props: {
60
+ type: null,
61
+ uploadedTo: media.view.settings.post.id,
62
+ orderby: 'menuOrder',
63
+ order: 'ASC'
64
+ },
65
+ priority: 20
66
+ };
67
+
68
+ this.filters = filters;
69
+ }
70
+ });
71
+
72
+ /**
73
+ * Extended Filters dropdown with month and year selection values
74
+ */
75
+ media.view.AttachmentFilters.MlaMonths = media.view.AttachmentFilters.extend({
76
+ className: 'attachment-months',
77
+
78
+ createFilters: function() {
79
+ var filters = {};
80
+
81
+ _.each( mlaSettings.months || {}, function( text, key ) {
82
+ filters[ key ] = {
83
+ text: text,
84
+ props: {
85
+ m: key,
86
+ }
87
+ };
88
+ });
89
+
90
+ this.filters = filters;
91
+ },
92
+
93
+ select: function() {
94
+ var model = this.model,
95
+ value = '0', // Show all dates
96
+ props = model.toJSON();
97
+
98
+ _.find( this.filters, function( filter, id ) {
99
+ var equal = _.all( filter.props, function( prop, key ) {
100
+ return prop === ( _.isUndefined( props[ key ] ) ? null : props[ key ] );
101
+ });
102
+
103
+ if ( equal )
104
+ return value = id;
105
+ });
106
+
107
+ this.$el.val( value );
108
+ } });
109
+
110
+ /**
111
+ * Extended Filters dropdown with taxonomy term selection values
112
+ */
113
+ media.view.AttachmentFilters.MlaTerms = media.view.AttachmentFilters.extend({
114
+ className: 'attachment-terms',
115
+
116
+ createFilters: function() {
117
+ var filters = {};
118
+
119
+ _.each( mlaSettings.termsText || {}, function( text, key ) {
120
+ filters[ key ] = {
121
+ text: text,
122
+ props: {
123
+ mla_filter_term: parseInt( mlaSettings.termsValue[ key ] ),
124
+ }
125
+ };
126
+ });
127
+
128
+ this.filters = filters;
129
+ },
130
+
131
+ select: function() {
132
+ var model = this.model,
133
+ value = '0', // All terms
134
+ props = model.toJSON();
135
+
136
+ _.find( this.filters, function( filter, id ) {
137
+ var equal = _.all( filter.props, function( prop, key ) {
138
+ return prop === ( _.isUndefined( props[ key ] ) ? null : props[ key ] );
139
+ });
140
+
141
+ if ( equal )
142
+ return value = id;
143
+ });
144
+
145
+ this.$el.val( value );
146
+ } });
147
+
148
+ /**
149
+ * Extended wp.media.view.Search
150
+ */
151
+ media.view.MlaSearch = media.View.extend({
152
+ tagName: 'div',
153
+ className: 'mla-search-box',
154
+ template: media.template('mla-search-box'),
155
+
156
+ attributes: {
157
+ type: 'mla-search-box',
158
+ placeholder: mlaStrings.searchBoxPlaceholder
159
+ },
160
+
161
+ events: {
162
+ // 'input': 'search',
163
+ // 'keyup': 'search',
164
+ 'change': 'search',
165
+ 'click': 'search',
166
+ 'search': 'search',
167
+ 'MlaSearch': 'search'
168
+ },
169
+
170
+ render: function() {
171
+ this.$el.html( this.template( ) );
172
+ return this;
173
+ },
174
+
175
+ search: function( event ) {
176
+ // console.log( 'media.view.MlaSearch search: ' + event.type + ', ' + event.target.name + ', ' + event.target.value );
177
+ if ( ( 'click' == event.type ) && ( 'mla_search_submit' != event.target.name ) ) {
178
+ return;
179
+ }
180
+
181
+ switch ( event.target.name ) {
182
+ case 'mla_search_value':
183
+ mlaSettings.searchValue = event.target.value;
184
+ case 'mla_search_submit':
185
+ this.model.set({
186
+ 'mla_search_value': mlaSettings.searchValue,
187
+ 'mla_search_fields': mlaSettings.searchFields,
188
+ 'mla_search_connector': mlaSettings.searchConnector });
189
+ break;
190
+ case 'mla_search_connector':
191
+ mlaSettings.searchConnector = event.target.value;
192
+ break;
193
+ case 'mla_search_title':
194
+ index = mlaSettings.searchFields.indexOf( 'title' );
195
+ if ( -1 == index )
196
+ mlaSettings.searchFields.push( 'title' )
197
+ else
198
+ mlaSettings.searchFields.splice( index, 1 );
199
+ break;
200
+ case 'mla_search_name':
201
+ index = mlaSettings.searchFields.indexOf( 'name' );
202
+ if ( -1 == index )
203
+ mlaSettings.searchFields.push( 'name' )
204
+ else
205
+ mlaSettings.searchFields.splice( index, 1 );
206
+ break;
207
+ case 'mla_search_alt_text':
208
+ index = mlaSettings.searchFields.indexOf( 'alt-text' );
209
+ if ( -1 == index )
210
+ mlaSettings.searchFields.push( 'alt-text' )
211
+ else
212
+ mlaSettings.searchFields.splice( index, 1 );
213
+ break;
214
+ case 'mla_search_excerpt':
215
+ index = mlaSettings.searchFields.indexOf( 'excerpt' );
216
+ if ( -1 == index )
217
+ mlaSettings.searchFields.push( 'excerpt' )
218
+ else
219
+ mlaSettings.searchFields.splice( index, 1 );
220
+ break;
221
+ case 'mla_search_content':
222
+ index = mlaSettings.searchFields.indexOf( 'content' );
223
+ if ( -1 == index )
224
+ mlaSettings.searchFields.push( 'content' )
225
+ else
226
+ mlaSettings.searchFields.splice( index, 1 );
227
+ break;
228
+ }
229
+ }
230
+ });
231
+
232
+ /**
233
+ * Replace the media-toolbar with our own
234
+ */
235
+ media.view.AttachmentsBrowser = media.view.AttachmentsBrowser.extend({
236
+ createToolbar: function() {
237
+ var filters, FiltersConstructor;
238
+
239
+ // Add a query arg identifying this as an MLA extended query, so the backend can reroute the request
240
+ media.model.Query.defaultArgs.mla_source = 'MLA';
241
+
242
+ if ( mlaSettings.enableSearchBox ) {
243
+ media.model.Query.defaultArgs.mla_search_value = mlaSettings.searchValue;
244
+ media.model.Query.defaultArgs.mla_search_fields = mlaSettings.searchFields;
245
+ media.model.Query.defaultArgs.mla_search_connector = mlaSettings.searchConnector;
246
+ }
247
+
248
+ this.toolbar = new media.view.Toolbar({
249
+ controller: this.controller
250
+ });
251
+
252
+ this.views.add( this.toolbar );
253
+
254
+ filters = this.options.filters;
255
+ if ( 'uploaded' === filters )
256
+ FiltersConstructor = media.view.AttachmentFilters.Uploaded;
257
+ else if ( 'all' === filters ) {
258
+ if ( mlaSettings.enableMimeTypes )
259
+ FiltersConstructor = media.view.AttachmentFilters.Mla;
260
+ else
261
+ FiltersConstructor = media.view.AttachmentFilters.All;
262
+ }
263
+
264
+ if ( FiltersConstructor ) {
265
+ this.toolbar.set( 'filters', new FiltersConstructor({
266
+ controller: this.controller,
267
+ model: this.collection.props,
268
+ priority: -80
269
+ }).render() );
270
+ }
271
+
272
+ if ( filters && mlaSettings.enableMonthsDropdown ) {
273
+ this.toolbar.set( 'months', new media.view.AttachmentFilters.MlaMonths({
274
+ controller: this.controller,
275
+ model: this.collection.props,
276
+ priority: -80
277
+ }).render() );
278
+ }
279
+
280
+ if ( filters && mlaSettings.enableTermsDropdown ) {
281
+ this.toolbar.set( 'terms', new media.view.AttachmentFilters.MlaTerms({
282
+ controller: this.controller,
283
+ model: this.collection.props,
284
+ priority: -80
285
+ }).render() );
286
+ }
287
+
288
+ if ( this.options.search ) {
289
+ if ( mlaSettings.enableSearchBox ) {
290
+ this.toolbar.set( 'MlaSearch', new media.view.MlaSearch({
291
+ controller: this.controller,
292
+ model: this.collection.props,
293
+ priority: 60
294
+ }).render() );
295
+ } else {
296
+ this.toolbar.set( 'search', new media.view.Search({
297
+ controller: this.controller,
298
+ model: this.collection.props,
299
+ priority: 60
300
+ }).render() );
301
+ }
302
+ }
303
+
304
+ if ( this.options.dragInfo ) {
305
+ this.toolbar.set( 'dragInfo', new media.View({
306
+ el: $( '<div class="instructions">' + media.view.l10n.dragInfo + '</div>' )[0],
307
+ priority: -40
308
+ }) );
309
+ }
310
+ }
311
+ });
312
+ }(jQuery));
js/mla-media-modal-scripts.min.js ADDED
@@ -0,0 +1 @@
 
1
+ (function(b){var d=wp.media,c={},a={};c=typeof d.view.l10n.mla_strings==="undefined"?{}:d.view.l10n.mla_strings;delete d.view.l10n.mla_strings;a=typeof wp.media.view.settings.mla_settings==="undefined"?{}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;d.view.AttachmentFilters.Mla=d.view.AttachmentFilters.extend({createFilters:function(){var e={};_.each(a.mimeTypes||{},function(g,f){e[f]={text:g,props:{type:f,uploadedTo:null,orderby:"date",order:"DESC"}}});e.all={text:d.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};e.uploaded={text:d.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:d.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=e}});d.view.AttachmentFilters.MlaMonths=d.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var e={};_.each(a.months||{},function(g,f){e[f]={text:g,props:{m:f,}}});this.filters=e},select:function(){var e=this.model,g="0",f=e.toJSON();_.find(this.filters,function(i,j){var h=_.all(i.props,function(l,k){return l===(_.isUndefined(f[k])?null:f[k])});if(h){return g=j}});this.$el.val(g)}});d.view.AttachmentFilters.MlaTerms=d.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var e={};_.each(a.termsText||{},function(g,f){e[f]={text:g,props:{mla_filter_term:parseInt(a.termsValue[f]),}}});this.filters=e},select:function(){var e=this.model,g="0",f=e.toJSON();_.find(this.filters,function(i,j){var h=_.all(i.props,function(l,k){return l===(_.isUndefined(f[k])?null:f[k])});if(h){return g=j}});this.$el.val(g)}});d.view.MlaSearch=d.View.extend({tagName:"div",className:"mla-search-box",template:d.template("mla-search-box"),attributes:{type:"mla-search-box",placeholder:c.searchBoxPlaceholder},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template());return this},search:function(e){if(("click"==e.type)&&("mla_search_submit"!=e.target.name)){return}switch(e.target.name){case"mla_search_value":a.searchValue=e.target.value;case"mla_search_submit":this.model.set({mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector});break;case"mla_search_connector":a.searchConnector=e.target.value;break;case"mla_search_title":index=a.searchFields.indexOf("title");if(-1==index){a.searchFields.push("title")}else{a.searchFields.splice(index,1)}break;case"mla_search_name":index=a.searchFields.indexOf("name");if(-1==index){a.searchFields.push("name")}else{a.searchFields.splice(index,1)}break;case"mla_search_alt_text":index=a.searchFields.indexOf("alt-text");if(-1==index){a.searchFields.push("alt-text")}else{a.searchFields.splice(index,1)}break;case"mla_search_excerpt":index=a.searchFields.indexOf("excerpt");if(-1==index){a.searchFields.push("excerpt")}else{a.searchFields.splice(index,1)}break;case"mla_search_content":index=a.searchFields.indexOf("content");if(-1==index){a.searchFields.push("content")}else{a.searchFields.splice(index,1)}break}}});d.view.AttachmentsBrowser=d.view.AttachmentsBrowser.extend({createToolbar:function(){var f,e;d.model.Query.defaultArgs.mla_source="MLA";if(a.enableSearchBox){d.model.Query.defaultArgs.mla_search_value=a.searchValue;d.model.Query.defaultArgs.mla_search_fields=a.searchFields;d.model.Query.defaultArgs.mla_search_connector=a.searchConnector}this.toolbar=new d.view.Toolbar({controller:this.controller});this.views.add(this.toolbar);f=this.options.filters;if("uploaded"===f){e=d.view.AttachmentFilters.Uploaded}else{if("all"===f){if(a.enableMimeTypes){e=d.view.AttachmentFilters.Mla}else{e=d.view.AttachmentFilters.All}}}if(e){this.toolbar.set("filters",new e({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(f&&a.enableMonthsDropdown){this.toolbar.set("months",new d.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(f&&a.enableTermsDropdown){this.toolbar.set("terms",new d.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){if(a.enableSearchBox){this.toolbar.set("MlaSearch",new d.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}else{this.toolbar.set("search",new d.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())}}if(this.options.dragInfo){this.toolbar.set("dragInfo",new d.View({el:b('<div class="instructions">'+d.view.l10n.dragInfo+"</div>")[0],priority:-40}))}}})}(jQuery));
phpDocs/classes.svg CHANGED
@@ -4,90 +4,97 @@
4
  <!-- Generated by graphviz version 2.28.0 (20110507.0327)
5
  -->
6
  <!-- Title: G Pages: 1 -->
7
- <svg width="352pt" height="528pt"
8
- viewBox="0.00 0.00 352.00 528.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
- <g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 524)">
10
  <title>G</title>
11
- <polygon fill="white" stroke="white" points="-4,5 -4,-524 349,-524 349,5 -4,5"/>
12
  <g id="graph2" class="cluster"><title>cluster_global</title>
13
  <polyline fill="none" stroke="gray" points="220,-8 324,-8 "/>
14
  <path fill="none" stroke="gray" d="M324,-8C330,-8 336,-14 336,-20"/>
15
- <polyline fill="none" stroke="gray" points="336,-20 336,-500 "/>
16
- <path fill="none" stroke="gray" d="M336,-500C336,-506 330,-512 324,-512"/>
17
- <polyline fill="none" stroke="gray" points="324,-512 220,-512 "/>
18
- <path fill="none" stroke="gray" d="M220,-512C214,-512 208,-506 208,-500"/>
19
- <polyline fill="none" stroke="gray" points="208,-500 208,-20 "/>
20
  <path fill="none" stroke="gray" d="M208,-20C208,-14 214,-8 220,-8"/>
21
- <text text-anchor="middle" x="272" y="-499.2" font-family="Times New Roman,serif" font-size="11.00" fill="gray">global</text>
22
  </g>
23
  <!-- \\MLAData -->
24
  <g id="node2" class="node"><title>\\MLAData</title>
25
  <a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
26
- <polygon fill="none" stroke="black" points="304,-484 240,-484 240,-448 304,-448 304,-484"/>
27
- <text text-anchor="middle" x="272" y="-463.2" font-family="Courier,monospace" font-size="11.00">MLAData</text>
28
  </a>
29
  </g>
30
  <!-- \\MLAEdit -->
31
  <g id="node3" class="node"><title>\\MLAEdit</title>
32
  <a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLAEdit" target="_parent">
33
- <polygon fill="none" stroke="black" points="304,-430 240,-430 240,-394 304,-394 304,-430"/>
34
- <text text-anchor="middle" x="272" y="-409.2" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
35
  </a>
36
  </g>
37
  <!-- \\MLA_List_Table -->
38
  <g id="node4" class="node"><title>\\MLA_List_Table</title>
39
  <a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
40
- <polygon fill="none" stroke="black" points="327.5,-376 216.5,-376 216.5,-340 327.5,-340 327.5,-376"/>
41
- <text text-anchor="middle" x="272" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
42
  </a>
43
  </g>
44
  <!-- \\WP_List_Table -->
45
- <g id="node12" class="node"><title>\\WP_List_Table</title>
46
- <ellipse fill="none" stroke="black" cx="72" cy="-358" rx="71.4873" ry="18"/>
47
- <text text-anchor="middle" x="72" y="-354.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
48
  </g>
49
  <!-- \\MLA_List_Table&#45;&gt;\\WP_List_Table -->
50
  <g id="edge3" class="edge"><title>\\MLA_List_Table&#45;&gt;\\WP_List_Table</title>
51
- <path fill="none" stroke="black" d="M216.371,-358C197.091,-358 174.98,-358 153.987,-358"/>
52
- <polygon fill="none" stroke="black" points="153.788,-354.5 143.788,-358 153.788,-361.5 153.788,-354.5"/>
53
  </g>
54
  <!-- \\MLA -->
55
  <g id="node5" class="node"><title>\\MLA</title>
56
  <a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
57
- <polygon fill="none" stroke="black" points="299,-322 245,-322 245,-286 299,-286 299,-322"/>
58
- <text text-anchor="middle" x="272" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLA</text>
 
 
 
 
 
 
 
59
  </a>
60
  </g>
61
  <!-- \\MLAObjects -->
62
- <g id="node6" class="node"><title>\\MLAObjects</title>
63
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
64
  <polygon fill="none" stroke="black" points="314,-268 230,-268 230,-232 314,-232 314,-268"/>
65
  <text text-anchor="middle" x="272" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
66
  </a>
67
  </g>
68
  <!-- \\MLAOptions -->
69
- <g id="node7" class="node"><title>\\MLAOptions</title>
70
  <a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
71
  <polygon fill="none" stroke="black" points="314,-214 230,-214 230,-178 314,-178 314,-214"/>
72
  <text text-anchor="middle" x="272" y="-193.2" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
73
  </a>
74
  </g>
75
  <!-- \\MLASettings -->
76
- <g id="node8" class="node"><title>\\MLASettings</title>
77
  <a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
78
  <polygon fill="none" stroke="black" points="317.5,-160 226.5,-160 226.5,-124 317.5,-124 317.5,-160"/>
79
  <text text-anchor="middle" x="272" y="-139.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
80
  </a>
81
  </g>
82
  <!-- \\MLAShortcodes -->
83
- <g id="node9" class="node"><title>\\MLAShortcodes</title>
84
  <a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
85
  <polygon fill="none" stroke="black" points="324,-106 220,-106 220,-70 324,-70 324,-106"/>
86
  <text text-anchor="middle" x="272" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
87
  </a>
88
  </g>
89
  <!-- \\MLATest -->
90
- <g id="node10" class="node"><title>\\MLATest</title>
91
  <a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
92
  <polygon fill="none" stroke="black" points="304,-52 240,-52 240,-16 304,-16 304,-52"/>
93
  <text text-anchor="middle" x="272" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
4
  <!-- Generated by graphviz version 2.28.0 (20110507.0327)
5
  -->
6
  <!-- Title: G Pages: 1 -->
7
+ <svg width="352pt" height="582pt"
8
+ viewBox="0.00 0.00 352.00 582.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 578)">
10
  <title>G</title>
11
+ <polygon fill="white" stroke="white" points="-4,5 -4,-578 349,-578 349,5 -4,5"/>
12
  <g id="graph2" class="cluster"><title>cluster_global</title>
13
  <polyline fill="none" stroke="gray" points="220,-8 324,-8 "/>
14
  <path fill="none" stroke="gray" d="M324,-8C330,-8 336,-14 336,-20"/>
15
+ <polyline fill="none" stroke="gray" points="336,-20 336,-554 "/>
16
+ <path fill="none" stroke="gray" d="M336,-554C336,-560 330,-566 324,-566"/>
17
+ <polyline fill="none" stroke="gray" points="324,-566 220,-566 "/>
18
+ <path fill="none" stroke="gray" d="M220,-566C214,-566 208,-560 208,-554"/>
19
+ <polyline fill="none" stroke="gray" points="208,-554 208,-20 "/>
20
  <path fill="none" stroke="gray" d="M208,-20C208,-14 214,-8 220,-8"/>
21
+ <text text-anchor="middle" x="272" y="-553.2" font-family="Times New Roman,serif" font-size="11.00" fill="gray">global</text>
22
  </g>
23
  <!-- \\MLAData -->
24
  <g id="node2" class="node"><title>\\MLAData</title>
25
  <a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
26
+ <polygon fill="none" stroke="black" points="304,-538 240,-538 240,-502 304,-502 304,-538"/>
27
+ <text text-anchor="middle" x="272" y="-517.2" font-family="Courier,monospace" font-size="11.00">MLAData</text>
28
  </a>
29
  </g>
30
  <!-- \\MLAEdit -->
31
  <g id="node3" class="node"><title>\\MLAEdit</title>
32
  <a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLAEdit" target="_parent">
33
+ <polygon fill="none" stroke="black" points="304,-484 240,-484 240,-448 304,-448 304,-484"/>
34
+ <text text-anchor="middle" x="272" y="-463.2" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
35
  </a>
36
  </g>
37
  <!-- \\MLA_List_Table -->
38
  <g id="node4" class="node"><title>\\MLA_List_Table</title>
39
  <a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
40
+ <polygon fill="none" stroke="black" points="327.5,-430 216.5,-430 216.5,-394 327.5,-394 327.5,-430"/>
41
+ <text text-anchor="middle" x="272" y="-409.2" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
42
  </a>
43
  </g>
44
  <!-- \\WP_List_Table -->
45
+ <g id="node13" class="node"><title>\\WP_List_Table</title>
46
+ <ellipse fill="none" stroke="black" cx="72" cy="-412" rx="71.4873" ry="18"/>
47
+ <text text-anchor="middle" x="72" y="-408.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
48
  </g>
49
  <!-- \\MLA_List_Table&#45;&gt;\\WP_List_Table -->
50
  <g id="edge3" class="edge"><title>\\MLA_List_Table&#45;&gt;\\WP_List_Table</title>
51
+ <path fill="none" stroke="black" d="M216.371,-412C197.091,-412 174.98,-412 153.987,-412"/>
52
+ <polygon fill="none" stroke="black" points="153.788,-408.5 143.788,-412 153.788,-415.5 153.788,-408.5"/>
53
  </g>
54
  <!-- \\MLA -->
55
  <g id="node5" class="node"><title>\\MLA</title>
56
  <a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
57
+ <polygon fill="none" stroke="black" points="299,-376 245,-376 245,-340 299,-340 299,-376"/>
58
+ <text text-anchor="middle" x="272" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLA</text>
59
+ </a>
60
+ </g>
61
+ <!-- \\MLAModal -->
62
+ <g id="node6" class="node"><title>\\MLAModal</title>
63
+ <a xlink:href="includes.class-mla-media-modal.html" xlink:title="MLAModal" target="_parent">
64
+ <polygon fill="none" stroke="black" points="307.5,-322 236.5,-322 236.5,-286 307.5,-286 307.5,-322"/>
65
+ <text text-anchor="middle" x="272" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
66
  </a>
67
  </g>
68
  <!-- \\MLAObjects -->
69
+ <g id="node7" class="node"><title>\\MLAObjects</title>
70
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
71
  <polygon fill="none" stroke="black" points="314,-268 230,-268 230,-232 314,-232 314,-268"/>
72
  <text text-anchor="middle" x="272" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
73
  </a>
74
  </g>
75
  <!-- \\MLAOptions -->
76
+ <g id="node8" class="node"><title>\\MLAOptions</title>
77
  <a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
78
  <polygon fill="none" stroke="black" points="314,-214 230,-214 230,-178 314,-178 314,-214"/>
79
  <text text-anchor="middle" x="272" y="-193.2" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
80
  </a>
81
  </g>
82
  <!-- \\MLASettings -->
83
+ <g id="node9" class="node"><title>\\MLASettings</title>
84
  <a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
85
  <polygon fill="none" stroke="black" points="317.5,-160 226.5,-160 226.5,-124 317.5,-124 317.5,-160"/>
86
  <text text-anchor="middle" x="272" y="-139.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
87
  </a>
88
  </g>
89
  <!-- \\MLAShortcodes -->
90
+ <g id="node10" class="node"><title>\\MLAShortcodes</title>
91
  <a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
92
  <polygon fill="none" stroke="black" points="324,-106 220,-106 220,-70 324,-70 324,-106"/>
93
  <text text-anchor="middle" x="272" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
94
  </a>
95
  </g>
96
  <!-- \\MLATest -->
97
+ <g id="node11" class="node"><title>\\MLATest</title>
98
  <a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
99
  <polygon fill="none" stroke="black" points="304,-52 240,-52 240,-16 304,-16 304,-52"/>
100
  <text text-anchor="middle" x="272" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
phpDocs/classes/MLA.html CHANGED
@@ -674,7 +674,7 @@ change the meta data for a single attachment.</h2>
674
  <div class="row"><footer class="span12">
675
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
676
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
677
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
678
  </div>
679
  </body>
680
  </html>
674
  <div class="row"><footer class="span12">
675
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
676
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
677
+ generated on 2013-03-29T17:10:59-07:00.<br></footer></div>
678
  </div>
679
  </body>
680
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -65,6 +65,7 @@
65
  <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>
66
  <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>
67
  <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>
 
68
  <li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required, to handle sorting/searching on ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
69
  <li class="method public "><a href="#mla_query_posts_orderby_filter" title="mla_query_posts_orderby_filter :: Adds a ORDERBY clause, if required"><span class="description">Adds a ORDERBY clause, if required</span><pre>mla_query_posts_orderby_filter()</pre></a></li>
70
  <li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
@@ -402,6 +403,31 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p></p>
402
  <code>array</code>attachment objects (posts) including parent data, meta data and references</div>
403
  </div></div>
404
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
  <a name="mla_query_posts_join_filter" id="mla_query_posts_join_filter"></a><div class="element clickable method public mla_query_posts_join_filter" data-toggle="collapse" data-target=".mla_query_posts_join_filter .collapse">
406
  <h2>Adds a JOIN clause, if required, to handle sorting/searching on ALT Text</h2>
407
  <pre>mla_query_posts_join_filter(string $join_clause) : string</pre>
@@ -741,7 +767,7 @@ each page load and cached for subsequent calls.</p></p>
741
  The parameters are set up in the _prepare_list_table_query function, and
742
  any further logic required to translate those values is contained in the filters.</p>
743
 
744
- <p>Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla-search-connector, mla-search-fields, sentence, exact</p></p>
745
  <table class="table table-bordered"><tr>
746
  <th>since</th>
747
  <td>0.30</td>
@@ -769,7 +795,7 @@ any further logic required to translate those values is contained in the filters
769
  <div class="row"><footer class="span12">
770
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
771
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
772
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
773
  </div>
774
  </body>
775
  </html>
65
  <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>
66
  <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>
67
  <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>
68
+ <li class="method public "><a href="#mla_query_media_modal_items" title="mla_query_media_modal_items :: Retrieve attachment objects for the WordPress Media Manager"><span class="description">Retrieve attachment objects for the WordPress Media Manager</span><pre>mla_query_media_modal_items()</pre></a></li>
69
  <li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required, to handle sorting/searching on ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
70
  <li class="method public "><a href="#mla_query_posts_orderby_filter" title="mla_query_posts_orderby_filter :: Adds a ORDERBY clause, if required"><span class="description">Adds a ORDERBY clause, if required</span><pre>mla_query_posts_orderby_filter()</pre></a></li>
71
  <li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
403
  <code>array</code>attachment objects (posts) including parent data, meta data and references</div>
404
  </div></div>
405
  </div>
406
+ <a name="mla_query_media_modal_items" id="mla_query_media_modal_items"></a><div class="element clickable method public mla_query_media_modal_items" data-toggle="collapse" data-target=".mla_query_media_modal_items .collapse">
407
+ <h2>Retrieve attachment objects for the WordPress Media Manager</h2>
408
+ <pre>mla_query_media_modal_items(array $request, int $offset, int $count) : array</pre>
409
+ <div class="labels"></div>
410
+ <div class="row collapse"><div class="detail-description">
411
+ <p class="long_description"><p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p></p>
412
+ <table class="table table-bordered"><tr>
413
+ <th>since</th>
414
+ <td>1.20</td>
415
+ </tr></table>
416
+ <h3>Parameters</h3>
417
+ <div class="subelement argument">
418
+ <h4>$request</h4>
419
+ <code>array</code><p>query parameters from Media Manager</p></div>
420
+ <div class="subelement argument">
421
+ <h4>$offset</h4>
422
+ <code>int</code><p>number of rows to skip over to reach desired page</p></div>
423
+ <div class="subelement argument">
424
+ <h4>$count</h4>
425
+ <code>int</code><p>number of rows on each page</p></div>
426
+ <h3>Returns</h3>
427
+ <div class="subelement response">
428
+ <code>array</code>attachment objects (posts)</div>
429
+ </div></div>
430
+ </div>
431
  <a name="mla_query_posts_join_filter" id="mla_query_posts_join_filter"></a><div class="element clickable method public mla_query_posts_join_filter" data-toggle="collapse" data-target=".mla_query_posts_join_filter .collapse">
432
  <h2>Adds a JOIN clause, if required, to handle sorting/searching on ALT Text</h2>
433
  <pre>mla_query_posts_join_filter(string $join_clause) : string</pre>
767
  The parameters are set up in the _prepare_list_table_query function, and
768
  any further logic required to translate those values is contained in the filters.</p>
769
 
770
+ <p>Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla_search_connector, mla_search_fields, sentence, exact</p></p>
771
  <table class="table table-bordered"><tr>
772
  <th>since</th>
773
  <td>0.30</td>
795
  <div class="row"><footer class="span12">
796
  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>
797
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
798
+ generated on 2013-03-29T17:10:59-07:00.<br></footer></div>
799
  </div>
800
  </body>
801
  </html>
phpDocs/classes/MLAEdit.html CHANGED
@@ -342,7 +342,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
342
  <div class="row"><footer class="span12">
343
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
344
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
345
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
346
  </div>
347
  </body>
348
  </html>
342
  <div class="row"><footer class="span12">
343
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
344
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
345
+ generated on 2013-03-29T17:10:59-07:00.<br></footer></div>
346
  </div>
347
  </body>
348
  </html>
phpDocs/classes/MLAModal.html ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
2
+ <head>
3
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
5
+ <meta charset="utf-8">
6
+ <title>Media Library Assistant » \MLAModal</title>
7
+ <meta name="author" content="Mike van Riel">
8
+ <meta name="description" content="">
9
+ <link href="../css/template.css" rel="stylesheet" media="all">
10
+ <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
11
+ <link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
12
+ <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
13
+ <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
14
+ </head>
15
+ <body>
16
+ <div class="navbar navbar-fixed-top">
17
+ <div class="navbar-inner"><div class="container">
18
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
19
+ <li class="dropdown">
20
+ <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
21
+ API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
22
+ </li>
23
+ <li class="dropdown" id="charts-menu">
24
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
25
+ Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
26
+ </li>
27
+ <li class="dropdown" id="reports-menu">
28
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
29
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
30
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
31
+ <span class="label label-info">0</span></a></li>
32
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
33
+ <ul></ul></a></li>
34
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
35
+ <span class="label label-info">0</span></a></li>
36
+ </ul>
37
+ </li>
38
+ </ul></div>
39
+ </div></div>
40
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
41
+ </div>
42
+ <div id="___" class="container">
43
+ <noscript><div class="alert alert-warning">
44
+ Javascript is disabled; several features are only available
45
+ if Javascript is enabled.
46
+ </div></noscript>
47
+ <div class="row">
48
+ <div class="span4">
49
+ <span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
50
+ <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
51
+ </div>
52
+ <ul class="side-nav nav nav-list">
53
+ <li class="nav-header">
54
+ <i class="icon-custom icon-method"></i> Methods</li>
55
+ <li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
56
+ <li class="method public "><a href="#mla_admin_init_ajax_action" title="mla_admin_init_ajax_action :: Adjust ajax handler for Media Manager queries"><span class="description">Adjust ajax handler for Media Manager queries</span><pre>mla_admin_init_ajax_action()</pre></a></li>
57
+ <li class="method public "><a href="#mla_media_view_settings_filter" title="mla_media_view_settings_filter :: Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js."><span class="description">Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</span><pre>mla_media_view_settings_filter()</pre></a></li>
58
+ <li class="method public "><a href="#mla_media_view_strings_filter" title="mla_media_view_strings_filter :: Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js."><span class="description">Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</span><pre>mla_media_view_strings_filter()</pre></a></li>
59
+ <li class="method public "><a href="#mla_print_media_templates_action" title="mla_print_media_templates_action :: Prints the templates used in the MLA Media Manager enhancements."><span class="description">Prints the templates used in the MLA Media Manager enhancements.</span><pre>mla_print_media_templates_action()</pre></a></li>
60
+ <li class="method public "><a href="#mla_query_attachments_action" title="mla_query_attachments_action :: Ajax handler for Media Manager queries"><span class="description">Ajax handler for Media Manager queries</span><pre>mla_query_attachments_action()</pre></a></li>
61
+ <li class="method public "><a href="#mla_wp_enqueue_media_action" title="mla_wp_enqueue_media_action :: Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts."><span class="description">Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.</span><pre>mla_wp_enqueue_media_action()</pre></a></li>
62
+ <li class="nav-header private">» Private</li>
63
+ <li class="method private "><a href="#_months_dropdown" title="_months_dropdown :: Display a monthly dropdown for filtering items"><span class="description">Display a monthly dropdown for filtering items</span><pre>_months_dropdown()</pre></a></li>
64
+ <li class="method private "><a href="#_terms_options" title="_terms_options :: Extract value and text elements from Dropdown HTML option tags"><span class="description">Extract value and text elements from Dropdown HTML option tags</span><pre>_terms_options()</pre></a></li>
65
+ <li class="nav-header">
66
+ <i class="icon-custom icon-property"></i> Properties</li>
67
+ <li class="nav-header private">» Private</li>
68
+ <li class="property private "><a href="#%24mla_media_modal_settings" title="$mla_media_modal_settings :: Share the settings values between mla_media_view_settings_filter
69
+ and mla_print_media_templates_action"><span class="description">Share the settings values between mla_media_view_settings_filter
70
+ and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre></a></li>
71
+ <li class="nav-header">
72
+ <i class="icon-custom icon-constant"></i> Constants</li>
73
+ <li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_OBJECT" title="JAVASCRIPT_MEDIA_MODAL_OBJECT :: Object name for localizing JavaScript - Add Media and related dialogs"><span class="description">Object name for localizing JavaScript - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_OBJECT</pre></a></li>
74
+ <li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_SLUG" title="JAVASCRIPT_MEDIA_MODAL_SLUG :: Slug for localizing and enqueueing JavaScript - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing JavaScript - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_SLUG</pre></a></li>
75
+ <li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_STYLES" title="JAVASCRIPT_MEDIA_MODAL_STYLES :: Slug for localizing and enqueueing CSS - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing CSS - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_STYLES</pre></a></li>
76
+ </ul>
77
+ </div>
78
+ <div class="span8">
79
+ <a name="%5CMLAModal" id="\MLAModal"></a><ul class="breadcrumb">
80
+ <li>
81
+ <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
82
+ </li>
83
+ <li><a href="../namespaces/global.html">global</a></li>
84
+ <li class="active">
85
+ <span class="divider">\</span><a href="../classes/MLAModal.html">MLAModal</a>
86
+ </li>
87
+ </ul>
88
+ <div href="../classes/MLAModal.html" class="element class">
89
+ <p class="short_description">Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager</p>
90
+ <div class="details">
91
+ <p class="long_description"></p>
92
+ <table class="table table-bordered">
93
+ <tr>
94
+ <th>package</th>
95
+ <td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
96
+ </tr>
97
+ <tr>
98
+ <th>since</th>
99
+ <td>1.20</td>
100
+ </tr>
101
+ </table>
102
+ <h3>
103
+ <i class="icon-custom icon-method"></i> Methods</h3>
104
+ <a name="initialize" id="initialize"></a><div class="element clickable method public initialize" data-toggle="collapse" data-target=".initialize .collapse">
105
+ <h2>Initialization function, similar to __construct()</h2>
106
+ <pre>initialize() : void</pre>
107
+ <div class="labels"></div>
108
+ <div class="row collapse"><div class="detail-description">
109
+ <p class="long_description"></p>
110
+ <table class="table table-bordered"><tr>
111
+ <th>since</th>
112
+ <td>1.20</td>
113
+ </tr></table>
114
+ </div></div>
115
+ </div>
116
+ <a name="mla_admin_init_ajax_action" id="mla_admin_init_ajax_action"></a><div class="element clickable method public mla_admin_init_ajax_action" data-toggle="collapse" data-target=".mla_admin_init_ajax_action .collapse">
117
+ <h2>Adjust ajax handler for Media Manager queries</h2>
118
+ <pre>mla_admin_init_ajax_action() : void</pre>
119
+ <div class="labels"></div>
120
+ <div class="row collapse"><div class="detail-description">
121
+ <p class="long_description"><p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab</p></p>
122
+ <table class="table table-bordered"><tr>
123
+ <th>since</th>
124
+ <td>1.20</td>
125
+ </tr></table>
126
+ </div></div>
127
+ </div>
128
+ <a name="mla_media_view_settings_filter" id="mla_media_view_settings_filter"></a><div class="element clickable method public mla_media_view_settings_filter" data-toggle="collapse" data-target=".mla_media_view_settings_filter .collapse">
129
+ <h2>Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</h2>
130
+ <pre>mla_media_view_settings_filter(array $settings, object $post) : array</pre>
131
+ <div class="labels"></div>
132
+ <div class="row collapse"><div class="detail-description">
133
+ <p class="long_description"><p>Declared public because it is a filter.</p></p>
134
+ <table class="table table-bordered"><tr>
135
+ <th>since</th>
136
+ <td>1.20</td>
137
+ </tr></table>
138
+ <h3>Parameters</h3>
139
+ <div class="subelement argument">
140
+ <h4>$settings</h4>
141
+ <code>array</code><p>associative array with setting => value pairs</p>
142
+ </div>
143
+ <div class="subelement argument">
144
+ <h4>$post</h4>
145
+ <code>object</code><p>|| NULL current post object, if available</p></div>
146
+ <h3>Returns</h3>
147
+ <div class="subelement response">
148
+ <code>array</code>updated $settings array</div>
149
+ </div></div>
150
+ </div>
151
+ <a name="mla_media_view_strings_filter" id="mla_media_view_strings_filter"></a><div class="element clickable method public mla_media_view_strings_filter" data-toggle="collapse" data-target=".mla_media_view_strings_filter .collapse">
152
+ <h2>Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</h2>
153
+ <pre>mla_media_view_strings_filter(array $strings, object $post) : array</pre>
154
+ <div class="labels"></div>
155
+ <div class="row collapse"><div class="detail-description">
156
+ <p class="long_description"><p>Declared public because it is a filter.</p></p>
157
+ <table class="table table-bordered"><tr>
158
+ <th>since</th>
159
+ <td>1.20</td>
160
+ </tr></table>
161
+ <h3>Parameters</h3>
162
+ <div class="subelement argument">
163
+ <h4>$strings</h4>
164
+ <code>array</code><p>associative array with string => value pairs</p>
165
+ </div>
166
+ <div class="subelement argument">
167
+ <h4>$post</h4>
168
+ <code>object</code><p>|| NULL current post object, if available</p></div>
169
+ <h3>Returns</h3>
170
+ <div class="subelement response">
171
+ <code>array</code>updated $strings array</div>
172
+ </div></div>
173
+ </div>
174
+ <a name="mla_print_media_templates_action" id="mla_print_media_templates_action"></a><div class="element clickable method public mla_print_media_templates_action" data-toggle="collapse" data-target=".mla_print_media_templates_action .collapse">
175
+ <h2>Prints the templates used in the MLA Media Manager enhancements.</h2>
176
+ <pre>mla_print_media_templates_action() : void</pre>
177
+ <div class="labels"></div>
178
+ <div class="row collapse"><div class="detail-description">
179
+ <p class="long_description"><p>Declared public because it is an action.</p></p>
180
+ <table class="table table-bordered"><tr>
181
+ <th>since</th>
182
+ <td>1.20</td>
183
+ </tr></table>
184
+ </div></div>
185
+ </div>
186
+ <a name="mla_query_attachments_action" id="mla_query_attachments_action"></a><div class="element clickable method public mla_query_attachments_action" data-toggle="collapse" data-target=".mla_query_attachments_action .collapse">
187
+ <h2>Ajax handler for Media Manager queries</h2>
188
+ <pre>mla_query_attachments_action() : void</pre>
189
+ <div class="labels"></div>
190
+ <div class="row collapse"><div class="detail-description">
191
+ <p class="long_description"><p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p></p>
192
+ <table class="table table-bordered"><tr>
193
+ <th>since</th>
194
+ <td>1.20</td>
195
+ </tr></table>
196
+ </div></div>
197
+ </div>
198
+ <a name="mla_wp_enqueue_media_action" id="mla_wp_enqueue_media_action"></a><div class="element clickable method public mla_wp_enqueue_media_action" data-toggle="collapse" data-target=".mla_wp_enqueue_media_action .collapse">
199
+ <h2>Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.</h2>
200
+ <pre>mla_wp_enqueue_media_action() : void</pre>
201
+ <div class="labels"></div>
202
+ <div class="row collapse"><div class="detail-description">
203
+ <p class="long_description"><p>Declared public because it is an action.</p></p>
204
+ <table class="table table-bordered"><tr>
205
+ <th>since</th>
206
+ <td>1.20</td>
207
+ </tr></table>
208
+ </div></div>
209
+ </div>
210
+ <a name="_months_dropdown" id="_months_dropdown"></a><div class="element clickable method private _months_dropdown" data-toggle="collapse" data-target="._months_dropdown .collapse">
211
+ <h2>Display a monthly dropdown for filtering items</h2>
212
+ <pre>_months_dropdown(string $post_type) : array</pre>
213
+ <div class="labels"></div>
214
+ <div class="row collapse"><div class="detail-description">
215
+ <p class="long_description"><p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p></p>
216
+ <table class="table table-bordered"><tr>
217
+ <th>since</th>
218
+ <td>1.20</td>
219
+ </tr></table>
220
+ <h3>Parameters</h3>
221
+ <div class="subelement argument">
222
+ <h4>$post_type</h4>
223
+ <code>string</code><p>post_type, e.g., 'attachment'</p>
224
+ </div>
225
+ <h3>Returns</h3>
226
+ <div class="subelement response">
227
+ <code>array</code>( value => label ) pairs</div>
228
+ </div></div>
229
+ </div>
230
+ <a name="_terms_options" id="_terms_options"></a><div class="element clickable method private _terms_options" data-toggle="collapse" data-target="._terms_options .collapse">
231
+ <h2>Extract value and text elements from Dropdown HTML option tags</h2>
232
+ <pre>_terms_options(string $markup) : array</pre>
233
+ <div class="labels"></div>
234
+ <div class="row collapse"><div class="detail-description">
235
+ <p class="long_description"></p>
236
+ <table class="table table-bordered"><tr>
237
+ <th>since</th>
238
+ <td>1.20</td>
239
+ </tr></table>
240
+ <h3>Parameters</h3>
241
+ <div class="subelement argument">
242
+ <h4>$markup</h4>
243
+ <code>string</code><p>HTML markup for taxonomy terms dropdown <select> tag</p>
244
+ </div>
245
+ <h3>Returns</h3>
246
+ <div class="subelement response">
247
+ <code>array</code>( value => label ) pairs</div>
248
+ </div></div>
249
+ </div>
250
+ <h3>
251
+ <i class="icon-custom icon-property"></i> Properties</h3>
252
+ <a name="%24mla_media_modal_settings" id="$mla_media_modal_settings"> </a><div class="element clickable property private $mla_media_modal_settings" data-toggle="collapse" data-target=".$mla_media_modal_settings .collapse">
253
+ <h2>Share the settings values between mla_media_view_settings_filter
254
+ and mla_print_media_templates_action</h2>
255
+ <pre>$mla_media_modal_settings : array</pre>
256
+ <div class="labels"></div>
257
+ <div class="row collapse"><div class="detail-description">
258
+ <p class="long_description"></p>
259
+ <table class="table table-bordered"><tr>
260
+ <th>since</th>
261
+ <td>1.20</td>
262
+ </tr></table>
263
+ </div></div>
264
+ </div>
265
+ <h3>
266
+ <i class="icon-custom icon-constant"></i> Constants</h3>
267
+ <a name="JAVASCRIPT_MEDIA_MODAL_OBJECT" id="JAVASCRIPT_MEDIA_MODAL_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_MEDIA_MODAL_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_MEDIA_MODAL_OBJECT .collapse">
268
+ <h2>Object name for localizing JavaScript - Add Media and related dialogs</h2>
269
+ <pre>JAVASCRIPT_MEDIA_MODAL_OBJECT : string</pre>
270
+ <div class="labels"></div>
271
+ <div class="row collapse"><div class="detail-description">
272
+ <p class="long_description"></p>
273
+ <table class="table table-bordered"><tr>
274
+ <th>since</th>
275
+ <td>1.20</td>
276
+ </tr></table>
277
+ </div></div>
278
+ </div>
279
+ <a name="JAVASCRIPT_MEDIA_MODAL_SLUG" id="JAVASCRIPT_MEDIA_MODAL_SLUG"> </a><div class="element clickable constant JAVASCRIPT_MEDIA_MODAL_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_MEDIA_MODAL_SLUG .collapse">
280
+ <h2>Slug for localizing and enqueueing JavaScript - Add Media and related dialogs</h2>
281
+ <pre>JAVASCRIPT_MEDIA_MODAL_SLUG : string</pre>
282
+ <div class="labels"></div>
283
+ <div class="row collapse"><div class="detail-description">
284
+ <p class="long_description"></p>
285
+ <table class="table table-bordered"><tr>
286
+ <th>since</th>
287
+ <td>1.20</td>
288
+ </tr></table>
289
+ </div></div>
290
+ </div>
291
+ <a name="JAVASCRIPT_MEDIA_MODAL_STYLES" id="JAVASCRIPT_MEDIA_MODAL_STYLES"> </a><div class="element clickable constant JAVASCRIPT_MEDIA_MODAL_STYLES" data-toggle="collapse" data-target=".JAVASCRIPT_MEDIA_MODAL_STYLES .collapse">
292
+ <h2>Slug for localizing and enqueueing CSS - Add Media and related dialogs</h2>
293
+ <pre>JAVASCRIPT_MEDIA_MODAL_STYLES : string</pre>
294
+ <div class="labels"></div>
295
+ <div class="row collapse"><div class="detail-description">
296
+ <p class="long_description"></p>
297
+ <table class="table table-bordered"><tr>
298
+ <th>since</th>
299
+ <td>1.20</td>
300
+ </tr></table>
301
+ </div></div>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ </div>
306
+ </div>
307
+ <div class="row"><footer class="span12">
308
+ 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>
309
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
310
+ generated on 2013-03-29T17:11:00-07:00.<br></footer></div>
311
+ </div>
312
+ </body>
313
+ </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -167,7 +167,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
167
  <div class="row"><footer class="span12">
168
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
169
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
170
- generated on 2013-03-10T17:53:00-07: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 2013-03-29T17:11:00-07:00.<br></footer></div>
171
  </div>
172
  </body>
173
  </html>
phpDocs/classes/MLAOptions.html CHANGED
@@ -101,6 +101,11 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
101
  <li class="constant "><a href="#MLA_FEATURED_IN_TUNING" title="MLA_FEATURED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_FEATURED_IN_TUNING</pre></a></li>
102
  <li class="constant "><a href="#MLA_GALLERY_IN_TUNING" title="MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_GALLERY_IN_TUNING</pre></a></li>
103
  <li class="constant "><a href="#MLA_INSERTED_IN_TUNING" title="MLA_INSERTED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_INSERTED_IN_TUNING</pre></a></li>
 
 
 
 
 
104
  <li class="constant "><a href="#MLA_MLA_GALLERY_IN_TUNING" title="MLA_MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_MLA_GALLERY_IN_TUNING</pre></a></li>
105
  <li class="constant "><a href="#MLA_NEW_CUSTOM_FIELD" title='MLA_NEW_CUSTOM_FIELD :: Provides a unique name for the Custom Field "new field" key'><span class="description">Provides a unique name for the Custom Field "new field" key</span><pre>MLA_NEW_CUSTOM_FIELD</pre></a></li>
106
  <li class="constant "><a href="#MLA_NEW_CUSTOM_RULE" title='MLA_NEW_CUSTOM_RULE :: Provides a unique name for the Custom Field "new rule" key'><span class="description">Provides a unique name for the Custom Field "new rule" key</span><pre>MLA_NEW_CUSTOM_RULE</pre></a></li>
@@ -976,6 +981,36 @@ reset => reset function for 'custom' options; returns nothing. Usage:
976
  <div class="labels"></div>
977
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
978
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
979
  <a name="MLA_MLA_GALLERY_IN_TUNING" id="MLA_MLA_GALLERY_IN_TUNING"> </a><div class="element clickable constant MLA_MLA_GALLERY_IN_TUNING" data-toggle="collapse" data-target=".MLA_MLA_GALLERY_IN_TUNING .collapse">
980
  <h2>Provides a unique name for a database tuning option</h2>
981
  <pre>MLA_MLA_GALLERY_IN_TUNING </pre>
@@ -1007,7 +1042,7 @@ reset => reset function for 'custom' options; returns nothing. Usage:
1007
  <div class="row"><footer class="span12">
1008
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1009
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1010
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
1011
  </div>
1012
  </body>
1013
  </html>
101
  <li class="constant "><a href="#MLA_FEATURED_IN_TUNING" title="MLA_FEATURED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_FEATURED_IN_TUNING</pre></a></li>
102
  <li class="constant "><a href="#MLA_GALLERY_IN_TUNING" title="MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_GALLERY_IN_TUNING</pre></a></li>
103
  <li class="constant "><a href="#MLA_INSERTED_IN_TUNING" title="MLA_INSERTED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_INSERTED_IN_TUNING</pre></a></li>
104
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_MIMETYPES" title="MLA_MEDIA_MODAL_MIMETYPES :: Provides a unique name for the Media Manager toolbar MIME Types option"><span class="description">Provides a unique name for the Media Manager toolbar MIME Types option</span><pre>MLA_MEDIA_MODAL_MIMETYPES</pre></a></li>
105
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_MONTHS" title="MLA_MEDIA_MODAL_MONTHS :: Provides a unique name for the Media Manager toolbar Month and Year option"><span class="description">Provides a unique name for the Media Manager toolbar Month and Year option</span><pre>MLA_MEDIA_MODAL_MONTHS</pre></a></li>
106
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_SEARCHBOX" title="MLA_MEDIA_MODAL_SEARCHBOX :: Provides a unique name for the Media Manager toolbar Search Box option"><span class="description">Provides a unique name for the Media Manager toolbar Search Box option</span><pre>MLA_MEDIA_MODAL_SEARCHBOX</pre></a></li>
107
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_TERMS" title="MLA_MEDIA_MODAL_TERMS :: Provides a unique name for the Media Manager toolbar Taxonomy Terms option"><span class="description">Provides a unique name for the Media Manager toolbar Taxonomy Terms option</span><pre>MLA_MEDIA_MODAL_TERMS</pre></a></li>
108
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_TOOLBAR" title="MLA_MEDIA_MODAL_TOOLBAR :: Provides a unique name for the Media Manager toolbar option"><span class="description">Provides a unique name for the Media Manager toolbar option</span><pre>MLA_MEDIA_MODAL_TOOLBAR</pre></a></li>
109
  <li class="constant "><a href="#MLA_MLA_GALLERY_IN_TUNING" title="MLA_MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_MLA_GALLERY_IN_TUNING</pre></a></li>
110
  <li class="constant "><a href="#MLA_NEW_CUSTOM_FIELD" title='MLA_NEW_CUSTOM_FIELD :: Provides a unique name for the Custom Field "new field" key'><span class="description">Provides a unique name for the Custom Field "new field" key</span><pre>MLA_NEW_CUSTOM_FIELD</pre></a></li>
111
  <li class="constant "><a href="#MLA_NEW_CUSTOM_RULE" title='MLA_NEW_CUSTOM_RULE :: Provides a unique name for the Custom Field "new rule" key'><span class="description">Provides a unique name for the Custom Field "new rule" key</span><pre>MLA_NEW_CUSTOM_RULE</pre></a></li>
981
  <div class="labels"></div>
982
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
983
  </div>
984
+ <a name="MLA_MEDIA_MODAL_MIMETYPES" id="MLA_MEDIA_MODAL_MIMETYPES"> </a><div class="element clickable constant MLA_MEDIA_MODAL_MIMETYPES" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_MIMETYPES .collapse">
985
+ <h2>Provides a unique name for the Media Manager toolbar MIME Types option</h2>
986
+ <pre>MLA_MEDIA_MODAL_MIMETYPES </pre>
987
+ <div class="labels"></div>
988
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
989
+ </div>
990
+ <a name="MLA_MEDIA_MODAL_MONTHS" id="MLA_MEDIA_MODAL_MONTHS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_MONTHS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_MONTHS .collapse">
991
+ <h2>Provides a unique name for the Media Manager toolbar Month and Year option</h2>
992
+ <pre>MLA_MEDIA_MODAL_MONTHS </pre>
993
+ <div class="labels"></div>
994
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
995
+ </div>
996
+ <a name="MLA_MEDIA_MODAL_SEARCHBOX" id="MLA_MEDIA_MODAL_SEARCHBOX"> </a><div class="element clickable constant MLA_MEDIA_MODAL_SEARCHBOX" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_SEARCHBOX .collapse">
997
+ <h2>Provides a unique name for the Media Manager toolbar Search Box option</h2>
998
+ <pre>MLA_MEDIA_MODAL_SEARCHBOX </pre>
999
+ <div class="labels"></div>
1000
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1001
+ </div>
1002
+ <a name="MLA_MEDIA_MODAL_TERMS" id="MLA_MEDIA_MODAL_TERMS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TERMS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TERMS .collapse">
1003
+ <h2>Provides a unique name for the Media Manager toolbar Taxonomy Terms option</h2>
1004
+ <pre>MLA_MEDIA_MODAL_TERMS </pre>
1005
+ <div class="labels"></div>
1006
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1007
+ </div>
1008
+ <a name="MLA_MEDIA_MODAL_TOOLBAR" id="MLA_MEDIA_MODAL_TOOLBAR"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TOOLBAR" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TOOLBAR .collapse">
1009
+ <h2>Provides a unique name for the Media Manager toolbar option</h2>
1010
+ <pre>MLA_MEDIA_MODAL_TOOLBAR </pre>
1011
+ <div class="labels"></div>
1012
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1013
+ </div>
1014
  <a name="MLA_MLA_GALLERY_IN_TUNING" id="MLA_MLA_GALLERY_IN_TUNING"> </a><div class="element clickable constant MLA_MLA_GALLERY_IN_TUNING" data-toggle="collapse" data-target=".MLA_MLA_GALLERY_IN_TUNING .collapse">
1015
  <h2>Provides a unique name for a database tuning option</h2>
1016
  <pre>MLA_MLA_GALLERY_IN_TUNING </pre>
1042
  <div class="row"><footer class="span12">
1043
  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>
1044
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1045
+ generated on 2013-03-29T17:11:00-07:00.<br></footer></div>
1046
  </div>
1047
  </body>
1048
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -674,7 +674,7 @@ each page load and cached for subsequent use.</p></p>
674
  <div class="row"><footer class="span12">
675
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
676
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
677
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
678
  </div>
679
  </body>
680
  </html>
674
  <div class="row"><footer class="span12">
675
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
676
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
677
+ generated on 2013-03-29T17:11:00-07:00.<br></footer></div>
678
  </div>
679
  </body>
680
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -56,9 +56,11 @@
56
  <li class="method public "><a href="#mla_attachment_list_shortcode" title="mla_attachment_list_shortcode :: WordPress Shortcode; renders a complete list of all attachments and references to them"><span class="description">WordPress Shortcode; renders a complete list of all attachments and references to them</span><pre>mla_attachment_list_shortcode()</pre></a></li>
57
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
58
  <li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
 
59
  <li class="method public "><a href="#mla_shortcode_query_posts_where_filter" title="mla_shortcode_query_posts_where_filter :: Filters the WHERE clause for shortcode queries"><span class="description">Filters the WHERE clause for shortcode queries</span><pre>mla_shortcode_query_posts_where_filter()</pre></a></li>
60
  <li class="nav-header private">» Private</li>
61
  <li class="method private "><a href="#_sanitize_query_specification" title="_sanitize_query_specification :: Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications"><span class="description">Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications</span><pre>_sanitize_query_specification()</pre></a></li>
 
62
  <li class="nav-header">
63
  <i class="icon-custom icon-property"></i> Properties</li>
64
  <li class="property public "><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>
@@ -165,6 +167,26 @@ Enhancements include many additional selection parameters and full taxonomy supp
165
  <code>array</code>List of attachments returned from WP_Query</div>
166
  </div></div>
167
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  <a name="mla_shortcode_query_posts_where_filter" id="mla_shortcode_query_posts_where_filter"></a><div class="element clickable method public mla_shortcode_query_posts_where_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_where_filter .collapse">
169
  <h2>Filters the WHERE clause for shortcode queries</h2>
170
  <pre>mla_shortcode_query_posts_where_filter(string $where_clause) : string</pre>
@@ -206,6 +228,26 @@ Defined as public because it's a filter.</p></p>
206
  <code>string</code>query specification with HTML escape sequences and line breaks removed</div>
207
  </div></div>
208
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  <h3>
210
  <i class="icon-custom icon-property"></i> Properties</h3>
211
  <a name="%24mla_debug_messages" id="$mla_debug_messages"> </a><div class="element clickable property public $mla_debug_messages" data-toggle="collapse" data-target=".$mla_debug_messages .collapse">
@@ -302,11 +344,12 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
302
  <pre>$query_parameters : array</pre>
303
  <div class="labels"></div>
304
  <div class="row collapse"><div class="detail-description">
305
- <p class="long_description"><p>This array defines parameters for the query's where filter, mla_shortcode_query_posts_where_filter.
 
306
  The parameters are set up in the mla_get_shortcode_attachments function, and
307
  any further logic required to translate those values is contained in the filter.</p>
308
 
309
- <p>Array index values are: post_parent</p></p>
310
  <table class="table table-bordered"><tr>
311
  <th>since</th>
312
  <td>1.13</td>
@@ -320,7 +363,7 @@ any further logic required to translate those values is contained in the filter.
320
  <div class="row"><footer class="span12">
321
  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>
322
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
323
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
324
  </div>
325
  </body>
326
  </html>
56
  <li class="method public "><a href="#mla_attachment_list_shortcode" title="mla_attachment_list_shortcode :: WordPress Shortcode; renders a complete list of all attachments and references to them"><span class="description">WordPress Shortcode; renders a complete list of all attachments and references to them</span><pre>mla_attachment_list_shortcode()</pre></a></li>
57
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
58
  <li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
59
+ <li class="method public "><a href="#mla_shortcode_query_posts_orderby_filter" title="mla_shortcode_query_posts_orderby_filter :: Filters the ORDERBY clause for shortcode queries"><span class="description">Filters the ORDERBY clause for shortcode queries</span><pre>mla_shortcode_query_posts_orderby_filter()</pre></a></li>
60
  <li class="method public "><a href="#mla_shortcode_query_posts_where_filter" title="mla_shortcode_query_posts_where_filter :: Filters the WHERE clause for shortcode queries"><span class="description">Filters the WHERE clause for shortcode queries</span><pre>mla_shortcode_query_posts_where_filter()</pre></a></li>
61
  <li class="nav-header private">» Private</li>
62
  <li class="method private "><a href="#_sanitize_query_specification" title="_sanitize_query_specification :: Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications"><span class="description">Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications</span><pre>_sanitize_query_specification()</pre></a></li>
63
+ <li class="method private "><a href="#_validate_sql_orderby" title="_validate_sql_orderby :: Translates query parameters to a valid SQL order by clause."><span class="description">Translates query parameters to a valid SQL order by clause.</span><pre>_validate_sql_orderby()</pre></a></li>
64
  <li class="nav-header">
65
  <i class="icon-custom icon-property"></i> Properties</li>
66
  <li class="property public "><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>
167
  <code>array</code>List of attachments returned from WP_Query</div>
168
  </div></div>
169
  </div>
170
+ <a name="mla_shortcode_query_posts_orderby_filter" id="mla_shortcode_query_posts_orderby_filter"></a><div class="element clickable method public mla_shortcode_query_posts_orderby_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_orderby_filter .collapse">
171
+ <h2>Filters the ORDERBY clause for shortcode queries</h2>
172
+ <pre>mla_shortcode_query_posts_orderby_filter(string $orderby_clause) : string</pre>
173
+ <div class="labels"></div>
174
+ <div class="row collapse"><div class="detail-description">
175
+ <p class="long_description"><p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
176
+ Defined as public because it's a filter.</p></p>
177
+ <table class="table table-bordered"><tr>
178
+ <th>since</th>
179
+ <td>1.20</td>
180
+ </tr></table>
181
+ <h3>Parameters</h3>
182
+ <div class="subelement argument">
183
+ <h4>$orderby_clause</h4>
184
+ <code>string</code><p>query clause before modification</p></div>
185
+ <h3>Returns</h3>
186
+ <div class="subelement response">
187
+ <code>string</code>query clause after modification</div>
188
+ </div></div>
189
+ </div>
190
  <a name="mla_shortcode_query_posts_where_filter" id="mla_shortcode_query_posts_where_filter"></a><div class="element clickable method public mla_shortcode_query_posts_where_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_where_filter .collapse">
191
  <h2>Filters the WHERE clause for shortcode queries</h2>
192
  <pre>mla_shortcode_query_posts_where_filter(string $where_clause) : string</pre>
228
  <code>string</code>query specification with HTML escape sequences and line breaks removed</div>
229
  </div></div>
230
  </div>
231
+ <a name="_validate_sql_orderby" id="_validate_sql_orderby"></a><div class="element clickable method private _validate_sql_orderby" data-toggle="collapse" data-target="._validate_sql_orderby .collapse">
232
+ <h2>Translates query parameters to a valid SQL order by clause.</h2>
233
+ <pre>_validate_sql_orderby(array $query_parameters) : string | bool</pre>
234
+ <div class="labels"></div>
235
+ <div class="row collapse"><div class="detail-description">
236
+ <p class="long_description"><p>Accepts one or more valid columns, with or without ASC/DESC.
237
+ Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p></p>
238
+ <table class="table table-bordered"><tr>
239
+ <th>since</th>
240
+ <td>1.20</td>
241
+ </tr></table>
242
+ <h3>Parameters</h3>
243
+ <div class="subelement argument">
244
+ <h4>$query_parameters</h4>
245
+ <code>array</code><p>Validated query parameters</p></div>
246
+ <h3>Returns</h3>
247
+ <div class="subelement response">
248
+ <code>string</code><code>bool</code>Returns the orderby clause if present, false otherwise.</div>
249
+ </div></div>
250
+ </div>
251
  <h3>
252
  <i class="icon-custom icon-property"></i> Properties</h3>
253
  <a name="%24mla_debug_messages" id="$mla_debug_messages"> </a><div class="element clickable property public $mla_debug_messages" data-toggle="collapse" data-target=".$mla_debug_messages .collapse">
344
  <pre>$query_parameters : array</pre>
345
  <div class="labels"></div>
346
  <div class="row collapse"><div class="detail-description">
347
+ <p class="long_description"><p>This array defines parameters for the query's where and orderby filters,
348
+ mla_shortcode_query_posts_where_filter and mla_shortcode_query_posts_orderby_filter.
349
  The parameters are set up in the mla_get_shortcode_attachments function, and
350
  any further logic required to translate those values is contained in the filter.</p>
351
 
352
+ <p>Array index values are: orderby, post_parent</p></p>
353
  <table class="table table-bordered"><tr>
354
  <th>since</th>
355
  <td>1.13</td>
363
  <div class="row"><footer class="span12">
364
  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>
365
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
366
+ generated on 2013-03-29T17:11:00-07:00.<br></footer></div>
367
  </div>
368
  </body>
369
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -160,7 +160,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
160
  <div class="row"><footer class="span12">
161
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
162
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
163
- generated on 2013-03-10T17:53:00-07: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 2013-03-29T17:11:00-07:00.<br></footer></div>
164
  </div>
165
  </body>
166
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -92,6 +92,7 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
92
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds support for taxonomy columns"><span class="description">Adds support for taxonomy columns</span><pre>mla_admin_init_action()</pre></a></li>
93
  <li class="method public "><a href="#mla_get_attachment_mime_types" title="mla_get_attachment_mime_types :: Get possible mime types for view preparation"><span class="description">Get possible mime types for view preparation</span><pre>mla_get_attachment_mime_types()</pre></a></li>
94
  <li class="method public "><a href="#mla_get_sortable_columns" title="mla_get_sortable_columns :: Return the names and display values of the sortable columns"><span class="description">Return the names and display values of the sortable columns</span><pre>mla_get_sortable_columns()</pre></a></li>
 
95
  <li class="method public "><a href="#mla_manage_columns_filter" title="mla_manage_columns_filter :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns_filter()</pre></a></li>
96
  <li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
97
  <li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
@@ -742,6 +743,26 @@ with additional entries.</p></p>
742
  <code>array</code>name => array( orderby value, heading ) for sortable columns</div>
743
  </div></div>
744
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745
  <a name="mla_manage_columns_filter" id="mla_manage_columns_filter"></a><div class="element clickable method public mla_manage_columns_filter" data-toggle="collapse" data-target=".mla_manage_columns_filter .collapse">
746
  <h2>Handler for filter 'manage_media_page_mla-menu_columns'</h2>
747
  <pre>mla_manage_columns_filter() : array</pre>
@@ -991,7 +1012,7 @@ Custom field columns are added to this array by mla_admin_init_action.</p></p>
991
  <div class="row"><footer class="span12">
992
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
993
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
994
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
995
  </div>
996
  </body>
997
  </html>
92
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds support for taxonomy columns"><span class="description">Adds support for taxonomy columns</span><pre>mla_admin_init_action()</pre></a></li>
93
  <li class="method public "><a href="#mla_get_attachment_mime_types" title="mla_get_attachment_mime_types :: Get possible mime types for view preparation"><span class="description">Get possible mime types for view preparation</span><pre>mla_get_attachment_mime_types()</pre></a></li>
94
  <li class="method public "><a href="#mla_get_sortable_columns" title="mla_get_sortable_columns :: Return the names and display values of the sortable columns"><span class="description">Return the names and display values of the sortable columns</span><pre>mla_get_sortable_columns()</pre></a></li>
95
+ <li class="method public "><a href="#mla_get_taxonomy_filter_dropdown" title="mla_get_taxonomy_filter_dropdown :: Get dropdown box of terms to filter by, if available"><span class="description">Get dropdown box of terms to filter by, if available</span><pre>mla_get_taxonomy_filter_dropdown()</pre></a></li>
96
  <li class="method public "><a href="#mla_manage_columns_filter" title="mla_manage_columns_filter :: Handler for filter 'manage_media_page_mla-menu_columns'"><span class="description">Handler for filter 'manage_media_page_mla-menu_columns'</span><pre>mla_manage_columns_filter()</pre></a></li>
97
  <li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
98
  <li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
743
  <code>array</code>name => array( orderby value, heading ) for sortable columns</div>
744
  </div></div>
745
  </div>
746
+ <a name="mla_get_taxonomy_filter_dropdown" id="mla_get_taxonomy_filter_dropdown"></a><div class="element clickable method public mla_get_taxonomy_filter_dropdown" data-toggle="collapse" data-target=".mla_get_taxonomy_filter_dropdown .collapse">
747
+ <h2>Get dropdown box of terms to filter by, if available</h2>
748
+ <pre>mla_get_taxonomy_filter_dropdown(integer $selected) : string</pre>
749
+ <div class="labels"></div>
750
+ <div class="row collapse"><div class="detail-description">
751
+ <p class="long_description"></p>
752
+ <table class="table table-bordered"><tr>
753
+ <th>since</th>
754
+ <td>1.20</td>
755
+ </tr></table>
756
+ <h3>Parameters</h3>
757
+ <div class="subelement argument">
758
+ <h4>$selected</h4>
759
+ <code>integer</code><p>currently selected term_id || zero (default)</p>
760
+ </div>
761
+ <h3>Returns</h3>
762
+ <div class="subelement response">
763
+ <code>string</code>HTML markup for dropdown box</div>
764
+ </div></div>
765
+ </div>
766
  <a name="mla_manage_columns_filter" id="mla_manage_columns_filter"></a><div class="element clickable method public mla_manage_columns_filter" data-toggle="collapse" data-target=".mla_manage_columns_filter .collapse">
767
  <h2>Handler for filter 'manage_media_page_mla-menu_columns'</h2>
768
  <pre>mla_manage_columns_filter() : array</pre>
1012
  <div class="row"><footer class="span12">
1013
  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>
1014
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1015
+ generated on 2013-03-29T17:10:59-07:00.<br></footer></div>
1016
  </div>
1017
  </body>
1018
  </html>
phpDocs/deprecated.html CHANGED
@@ -62,7 +62,7 @@
62
  <div class="row"><footer class="span12">
63
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
64
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
65
- generated on 2013-03-10T17:53:00-07: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 2013-03-29T17:11:00-07:00.<br></footer></div>
66
  </div>
67
  </body>
68
  </html>
phpDocs/errors.html CHANGED
@@ -71,12 +71,13 @@
71
  <div class="package-contents"></div>
72
  <div class="package-contents"></div>
73
  <div class="package-contents"></div>
 
74
  </div>
75
  </div>
76
  <div class="row"><footer class="span12">
77
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
78
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
79
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
80
  </div>
81
  </body>
82
  </html>
71
  <div class="package-contents"></div>
72
  <div class="package-contents"></div>
73
  <div class="package-contents"></div>
74
+ <div class="package-contents"></div>
75
  </div>
76
  </div>
77
  <div class="row"><footer class="span12">
78
  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>
79
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
80
+ generated on 2013-03-29T17:11:00-07:00.<br></footer></div>
81
  </div>
82
  </body>
83
  </html>
phpDocs/graph_class.html CHANGED
@@ -59,7 +59,7 @@
59
  </script><div class="row"><footer class="span12">
60
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
61
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
62
- generated on 2013-03-10T17:53:00-07: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 2013-03-29T17:11:00-07:00.<br></footer></div>
63
  </div>
64
  </body>
65
  </html>
phpDocs/index.html CHANGED
@@ -79,7 +79,7 @@
79
  <div class="row"><footer class="span12">
80
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
81
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
82
- generated on 2013-03-10T17:53:00-07: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 2013-03-29T17:10:59-07:00.<br></footer></div>
83
  </div>
84
  </body>
85
  </html>
phpDocs/markers.html CHANGED
@@ -64,7 +64,7 @@
64
  <div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
- generated on 2013-03-10T17:53:00-07: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 2013-03-29T17:11:00-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -115,6 +115,13 @@ of images and files held in the WordPress Media Library.</p>
115
  <div class="details collapse"></div>
116
  <a href="../classes/MLAEdit.html" class="more">« More »</a>
117
  </div>
 
 
 
 
 
 
 
118
  <a name="MLAObjects" id="MLAObjects"></a><div class="element ajax clickable class" href="../classes/MLAObjects.html">
119
  <h1>MLAObjects<a href="../classes/MLAObjects.html">¶</a>
120
  </h1>
@@ -185,7 +192,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
185
  <div class="row"><footer class="span12">
186
  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>
187
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
188
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
189
  </div>
190
  </body>
191
  </html>
115
  <div class="details collapse"></div>
116
  <a href="../classes/MLAEdit.html" class="more">« More »</a>
117
  </div>
118
+ <a name="MLAModal" id="MLAModal"></a><div class="element ajax clickable class" href="../classes/MLAModal.html">
119
+ <h1>MLAModal<a href="../classes/MLAModal.html">¶</a>
120
+ </h1>
121
+ <p class="short_description">Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager</p>
122
+ <div class="details collapse"></div>
123
+ <a href="../classes/MLAModal.html" class="more">« More »</a>
124
+ </div>
125
  <a name="MLAObjects" id="MLAObjects"></a><div class="element ajax clickable class" href="../classes/MLAObjects.html">
126
  <h1>MLAObjects<a href="../classes/MLAObjects.html">¶</a>
127
  </h1>
192
  <div class="row"><footer class="span12">
193
  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>
194
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
195
+ generated on 2013-03-29T17:10:59-07:00.<br></footer></div>
196
  </div>
197
  </body>
198
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -66,6 +66,7 @@
66
  <li><a href="#MLA_List_Table" title='Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu'>MLA_List_Table</a></li>
67
  <li><a href="#MLA" title="Class MLA (Media Library Assistant) provides several enhancements to the handling
68
  of images and files held in the WordPress Media Library.">MLA</a></li>
 
69
  <li><a href="#MLAObjects" title="Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags">MLAObjects</a></li>
70
  <li><a href="#MLAOptions" title="Class MLA (Media Library Assistant) Options manages the plugin option settings
71
  and provides functions to get and put them from/to WordPress option variables">MLAOptions</a></li>
@@ -138,6 +139,13 @@ of images and files held in the WordPress Media Library.</p>
138
  <div class="details collapse"></div>
139
  <a href="../classes/MLAEdit.html" class="more">« More »</a>
140
  </div>
 
 
 
 
 
 
 
141
  <a name="MLAObjects" id="MLAObjects"></a><div class="element ajax clickable class" href="../classes/MLAObjects.html">
142
  <h1>MLAObjects<a href="../classes/MLAObjects.html">¶</a>
143
  </h1>
@@ -208,7 +216,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
208
  <div class="row"><footer class="span12">
209
  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>
210
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
211
- generated on 2013-03-10T17:53:00-07:00.<br></footer></div>
212
  </div>
213
  </body>
214
  </html>
66
  <li><a href="#MLA_List_Table" title='Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu'>MLA_List_Table</a></li>
67
  <li><a href="#MLA" title="Class MLA (Media Library Assistant) provides several enhancements to the handling
68
  of images and files held in the WordPress Media Library.">MLA</a></li>
69
+ <li><a href="#MLAModal" title="Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager">MLAModal</a></li>
70
  <li><a href="#MLAObjects" title="Class MLA (Media Library Assistant) Objects defines and manages custom taxonomies for Attachment Categories and Tags">MLAObjects</a></li>
71
  <li><a href="#MLAOptions" title="Class MLA (Media Library Assistant) Options manages the plugin option settings
72
  and provides functions to get and put them from/to WordPress option variables">MLAOptions</a></li>
139
  <div class="details collapse"></div>
140
  <a href="../classes/MLAEdit.html" class="more">« More »</a>
141
  </div>
142
+ <a name="MLAModal" id="MLAModal"></a><div class="element ajax clickable class" href="../classes/MLAModal.html">
143
+ <h1>MLAModal<a href="../classes/MLAModal.html">¶</a>
144
+ </h1>
145
+ <p class="short_description">Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager</p>
146
+ <div class="details collapse"></div>
147
+ <a href="../classes/MLAModal.html" class="more">« More »</a>
148
+ </div>
149
  <a name="MLAObjects" id="MLAObjects"></a><div class="element ajax clickable class" href="../classes/MLAObjects.html">
150
  <h1>MLAObjects<a href="../classes/MLAObjects.html">¶</a>
151
  </h1>
216
  <div class="row"><footer class="span12">
217
  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>
218
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
219
+ generated on 2013-03-29T17:10:59-07:00.<br></footer></div>
220
  </div>
221
  </body>
222
  </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="0fd1adea8279bf74be51630d9ce38d28" package="Media Library Assistant">
4
  <docblock line="2">
5
  <description><![CDATA[Database and template file access for MLA needs]]></description>
6
  <long-description><![CDATA[]]></long-description>
@@ -40,26 +40,26 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
40
  </tag>
41
  </docblock>
42
  </property>
43
- <property final="false" static="true" visibility="private" line="288" namespace="global" package="Media Library Assistant">
44
  <name>$query_parameters</name>
45
  <default><![CDATA[array()]]></default>
46
- <docblock line="275">
47
  <description><![CDATA[WP_Query filter "parameters"]]></description>
48
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
49
  The parameters are set up in the _prepare_list_table_query function, and
50
  any further logic required to translate those values is contained in the filters.</p>
51
 
52
- <p>Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla-search-connector, mla-search-fields, sentence, exact</p>]]></long-description>
53
- <tag line="275" name="since" description="0.30"/>
54
- <tag line="275" name="var" description="" type="array">
55
  <type by_reference="false">array</type>
56
  </tag>
57
  </docblock>
58
  </property>
59
- <property final="false" static="true" visibility="private" line="1186" namespace="global" package="Media Library Assistant">
60
  <name>$galleries</name>
61
  <default><![CDATA[null]]></default>
62
- <docblock line="1168">
63
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
64
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
65
  and array(s) of which attachments each [gallery] contains. The arrays are built once
@@ -71,22 +71,22 @@ Each inner array has these elements:
71
  ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
72
  ['query'] contains a string with the arguments of the [gallery],
73
  ['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
74
- <tag line="1168" name="since" description="0.70"/>
75
- <tag line="1168" name="var" description="" type="array">
76
  <type by_reference="false">array</type>
77
  </tag>
78
  </docblock>
79
  </property>
80
- <property final="false" static="true" visibility="private" line="1199" namespace="global" package="Media Library Assistant">
81
  <name>$mla_galleries</name>
82
  <default><![CDATA[null]]></default>
83
- <docblock line="1188">
84
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
85
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
86
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
87
  each page load and cached for subsequent calls.</p>]]></long-description>
88
- <tag line="1188" name="since" description="0.70"/>
89
- <tag line="1188" name="var" description="" type="array">
90
  <type by_reference="false">array</type>
91
  </tag>
92
  </docblock>
@@ -238,528 +238,564 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
238
  <type/>
239
  </argument>
240
  </method>
241
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="304" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  <name>_prepare_list_table_query</name>
243
  <full_name>_prepare_list_table_query</full_name>
244
- <docblock line="290">
245
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
246
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
247
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
248
- <tag line="290" name="since" description="0.1"/>
249
- <tag line="290" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
250
  <type by_reference="false">array</type>
251
  </tag>
252
- <tag line="290" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
253
  <type by_reference="false">int</type>
254
  </tag>
255
- <tag line="290" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
256
  <type by_reference="false">int</type>
257
  </tag>
258
- <tag line="290" name="return" description="revised arguments suitable for WP_Query" type="array">
259
  <type by_reference="false">array</type>
260
  </tag>
261
  </docblock>
262
- <argument line="304">
263
  <name>$raw_request</name>
264
  <default><![CDATA[]]></default>
265
  <type/>
266
  </argument>
267
- <argument line="304">
268
  <name>$offset</name>
269
  <default><![CDATA[0]]></default>
270
  <type/>
271
  </argument>
272
- <argument line="304">
273
  <name>$count</name>
274
  <default><![CDATA[0]]></default>
275
  <type/>
276
  </argument>
277
  </method>
278
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="556" package="Media Library Assistant">
279
  <name>_execute_list_table_query</name>
280
  <full_name>_execute_list_table_query</full_name>
281
- <docblock line="547">
282
  <description><![CDATA[Add filters, run query, remove filters]]></description>
283
  <long-description><![CDATA[]]></long-description>
284
- <tag line="547" name="since" description="0.30"/>
285
- <tag line="547" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
286
  <type by_reference="false">array</type>
287
  </tag>
288
- <tag line="547" name="return" description="WP_Query object with query results" type="object">
289
  <type by_reference="false">object</type>
290
  </tag>
291
  </docblock>
292
- <argument line="556">
293
  <name>$request</name>
294
  <default><![CDATA[]]></default>
295
  <type/>
296
  </argument>
297
  </method>
298
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="610" package="Media Library Assistant">
299
  <name>mla_query_posts_search_filter</name>
300
  <full_name>mla_query_posts_search_filter</full_name>
301
- <docblock line="598">
302
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
303
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
304
- <tag line="598" name="since" description="0.60"/>
305
- <tag line="598" name="param" description="query clause before modification" type="string" variable="$search_string">
306
  <type by_reference="false">string</type>
307
  </tag>
308
- <tag line="598" name="param" description="WP_Query object" type="object" variable="$query_object">
309
  <type by_reference="false">object</type>
310
  </tag>
311
- <tag line="598" name="return" description="query clause after keyword search addition" type="string">
312
  <type by_reference="false">string</type>
313
  </tag>
314
  </docblock>
315
- <argument line="610">
316
  <name>$search_string</name>
317
  <default><![CDATA[]]></default>
318
  <type/>
319
  </argument>
320
- <argument line="610">
321
  <name>$query_object</name>
322
  <default><![CDATA[]]></default>
323
  <type/>
324
  </argument>
325
  </method>
326
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="690" package="Media Library Assistant">
327
  <name>mla_query_posts_join_filter</name>
328
  <full_name>mla_query_posts_join_filter</full_name>
329
- <docblock line="679">
330
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on ALT Text]]></description>
331
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
332
- <tag line="679" name="since" description="0.30"/>
333
- <tag line="679" name="param" description="query clause before modification" type="string" variable="$join_clause">
334
  <type by_reference="false">string</type>
335
  </tag>
336
- <tag line="679" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
337
  <type by_reference="false">string</type>
338
  </tag>
339
  </docblock>
340
- <argument line="690">
341
  <name>$join_clause</name>
342
  <default><![CDATA[]]></default>
343
  <type/>
344
  </argument>
345
  </method>
346
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="717" package="Media Library Assistant">
347
  <name>mla_query_posts_where_filter</name>
348
  <full_name>mla_query_posts_where_filter</full_name>
349
- <docblock line="705">
350
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
351
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
352
  Defined as public because it's a filter.</p>]]></long-description>
353
- <tag line="705" name="since" description="0.1"/>
354
- <tag line="705" name="param" description="query clause before modification" type="string" variable="$where_clause">
355
  <type by_reference="false">string</type>
356
  </tag>
357
- <tag line="705" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
358
  <type by_reference="false">string</type>
359
  </tag>
360
  </docblock>
361
- <argument line="717">
362
  <name>$where_clause</name>
363
  <default><![CDATA[]]></default>
364
  <type/>
365
  </argument>
366
  </method>
367
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="738" package="Media Library Assistant">
368
  <name>mla_query_posts_orderby_filter</name>
369
  <full_name>mla_query_posts_orderby_filter</full_name>
370
- <docblock line="726">
371
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
372
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
373
  Defined as public because it's a filter.</p>]]></long-description>
374
- <tag line="726" name="since" description="0.30"/>
375
- <tag line="726" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
376
  <type by_reference="false">string</type>
377
  </tag>
378
- <tag line="726" name="return" description="updated query clause" type="string">
379
  <type by_reference="false">string</type>
380
  </tag>
381
  </docblock>
382
- <argument line="738">
383
  <name>$orderby_clause</name>
384
  <default><![CDATA[]]></default>
385
  <type/>
386
  </argument>
387
  </method>
388
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="796" package="Media Library Assistant">
389
  <name>mla_get_attachment_by_id</name>
390
  <full_name>mla_get_attachment_by_id</full_name>
391
- <docblock line="784">
392
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
393
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
394
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
395
- <tag line="784" name="since" description="0.1"/>
396
- <tag line="784" name="uses" description="\global\$post" refers="\global\$post"/>
397
- <tag line="784" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
398
  <type by_reference="false">int</type>
399
  </tag>
400
- <tag line="784" name="return" description="NULL on failure else associative array" type="NULL|array">
401
  <type by_reference="false">NULL</type>
402
  <type by_reference="false">array</type>
403
  </tag>
404
  </docblock>
405
- <argument line="796">
406
  <name>$post_id</name>
407
  <default><![CDATA[]]></default>
408
  <type/>
409
  </argument>
410
  </method>
411
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="841" package="Media Library Assistant">
412
  <name>mla_fetch_attachment_parent_data</name>
413
  <full_name>mla_fetch_attachment_parent_data</full_name>
414
- <docblock line="832">
415
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
416
  <long-description><![CDATA[]]></long-description>
417
- <tag line="832" name="since" description="0.1"/>
418
- <tag line="832" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
419
  <type by_reference="false">int</type>
420
  </tag>
421
- <tag line="832" name="return" description="Parent information; post_date, post_title and post_type" type="array">
422
  <type by_reference="false">array</type>
423
  </tag>
424
  </docblock>
425
- <argument line="841">
426
  <name>$parent_id</name>
427
  <default><![CDATA[]]></default>
428
  <type/>
429
  </argument>
430
  </method>
431
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="869" package="Media Library Assistant">
432
  <name>mla_fetch_attachment_metadata</name>
433
  <full_name>mla_fetch_attachment_metadata</full_name>
434
- <docblock line="856">
435
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
436
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
437
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
438
  a string containing the first array element.</p>]]></long-description>
439
- <tag line="856" name="since" description="0.1"/>
440
- <tag line="856" name="param" description="post ID of attachment" type="int" variable="$post_id">
441
  <type by_reference="false">int</type>
442
  </tag>
443
- <tag line="856" name="return" description="Meta data variables" type="array">
444
  <type by_reference="false">array</type>
445
  </tag>
446
  </docblock>
447
- <argument line="869">
448
  <name>$post_id</name>
449
  <default><![CDATA[]]></default>
450
  <type/>
451
  </argument>
452
  </method>
453
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="935" package="Media Library Assistant">
454
  <name>mla_fetch_attachment_references</name>
455
  <full_name>mla_fetch_attachment_references</full_name>
456
- <docblock line="922">
457
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
458
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
459
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
460
- <tag line="922" name="since" description="0.1"/>
461
- <tag line="922" name="param" description="post ID of attachment" type="int" variable="$ID">
462
  <type by_reference="false">int</type>
463
  </tag>
464
- <tag line="922" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
465
  <type by_reference="false">int</type>
466
  </tag>
467
- <tag line="922" name="return" description="Reference information; see $references array comments" type="array">
468
  <type by_reference="false">array</type>
469
  </tag>
470
  </docblock>
471
- <argument line="935">
472
  <name>$ID</name>
473
  <default><![CDATA[]]></default>
474
  <type/>
475
  </argument>
476
- <argument line="935">
477
  <name>$parent</name>
478
  <default><![CDATA[]]></default>
479
  <type/>
480
  </argument>
481
  </method>
482
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1210" package="Media Library Assistant">
483
  <name>mla_flush_mla_galleries</name>
484
  <full_name>mla_flush_mla_galleries</full_name>
485
- <docblock line="1201">
486
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
487
  <long-description><![CDATA[]]></long-description>
488
- <tag line="1201" name="since" description="1.00"/>
489
- <tag line="1201" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
490
  <type by_reference="false">string</type>
491
  </tag>
492
- <tag line="1201" name="return" description="" type="void">
493
  <type by_reference="false">void</type>
494
  </tag>
495
  </docblock>
496
- <argument line="1210">
497
  <name>$option_name</name>
498
  <default><![CDATA[]]></default>
499
  <type/>
500
  </argument>
501
  </method>
502
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1234" package="Media Library Assistant">
503
  <name>mla_save_post_action</name>
504
  <full_name>mla_save_post_action</full_name>
505
- <docblock line="1225">
506
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
507
  <long-description><![CDATA[]]></long-description>
508
- <tag line="1225" name="since" description="1.00"/>
509
- <tag line="1225" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
510
  <type by_reference="false">integer</type>
511
  </tag>
512
- <tag line="1225" name="return" description="" type="void">
513
  <type by_reference="false">void</type>
514
  </tag>
515
  </docblock>
516
- <argument line="1234">
517
  <name>$post_id</name>
518
  <default><![CDATA[]]></default>
519
  <type/>
520
  </argument>
521
  </method>
522
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1251" package="Media Library Assistant">
523
  <name>_build_mla_galleries</name>
524
  <full_name>_build_mla_galleries</full_name>
525
- <docblock line="1239">
526
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
527
  <long-description><![CDATA[]]></long-description>
528
- <tag line="1239" name="since" description="0.70"/>
529
- <tag line="1239" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
530
  <type by_reference="false">string</type>
531
  </tag>
532
- <tag line="1239" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
533
  <type by_reference="false">array</type>
534
  </tag>
535
- <tag line="1239" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
536
  <type by_reference="false">string</type>
537
  </tag>
538
- <tag line="1239" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
539
  <type by_reference="false">boolean</type>
540
  </tag>
541
- <tag line="1239" name="return" description="true if the galleries array is not empty" type="boolean">
542
  <type by_reference="false">boolean</type>
543
  </tag>
544
  </docblock>
545
- <argument line="1251">
546
  <name>$option_name</name>
547
  <default><![CDATA[]]></default>
548
  <type/>
549
  </argument>
550
- <argument line="1251">
551
  <name>$galleries_array</name>
552
  <default><![CDATA[]]></default>
553
  <type/>
554
  </argument>
555
- <argument line="1251">
556
  <name>$shortcode</name>
557
  <default><![CDATA[]]></default>
558
  <type/>
559
  </argument>
560
- <argument line="1251">
561
  <name>$exclude_revisions</name>
562
  <default><![CDATA[]]></default>
563
  <type/>
564
  </argument>
565
  </method>
566
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1356" package="Media Library Assistant">
567
  <name>_search_mla_galleries</name>
568
  <full_name>_search_mla_galleries</full_name>
569
- <docblock line="1345">
570
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
571
  <long-description><![CDATA[]]></long-description>
572
- <tag line="1345" name="since" description="0.70"/>
573
- <tag line="1345" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
574
  <type by_reference="false">array</type>
575
  </tag>
576
- <tag line="1345" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
577
  <type by_reference="false">int</type>
578
  </tag>
579
- <tag line="1345" name="return" description="All posts/pages with one or more galleries that include the attachment. The array key is the parent_post ID; each entry contains post_title and post_type." type="array">
580
  <type by_reference="false">array</type>
581
  </tag>
582
  </docblock>
583
- <argument line="1356">
584
  <name>$galleries_array</name>
585
  <default><![CDATA[]]></default>
586
  <type/>
587
  </argument>
588
- <argument line="1356">
589
  <name>$attachment_id</name>
590
  <default><![CDATA[]]></default>
591
  <type/>
592
  </argument>
593
  </method>
594
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1382" package="Media Library Assistant">
595
  <name>mla_exif_metadata_value</name>
596
  <full_name>mla_exif_metadata_value</full_name>
597
- <docblock line="1369">
598
  <description><![CDATA[Parse one EXIF metadata field]]></description>
599
  <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.
600
  Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
601
- <tag line="1369" name="since" description="1.13"/>
602
- <tag line="1369" name="param" description="field name" type="string" variable="$key">
603
  <type by_reference="false">string</type>
604
  </tag>
605
- <tag line="1369" name="param" description="metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays" type="string" variable="$image_metadata">
606
  <type by_reference="false">string</type>
607
  </tag>
608
- <tag line="1369" name="return" description="string representation of metadata value or an empty string" type="string">
609
  <type by_reference="false">string</type>
610
  </tag>
611
  </docblock>
612
- <argument line="1382">
613
  <name>$key</name>
614
  <default><![CDATA[]]></default>
615
  <type/>
616
  </argument>
617
- <argument line="1382">
618
  <name>$image_metadata</name>
619
  <default><![CDATA[]]></default>
620
  <type/>
621
  </argument>
622
  </method>
623
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1412" package="Media Library Assistant">
624
  <name>mla_fetch_attachment_image_metadata</name>
625
  <full_name>mla_fetch_attachment_image_metadata</full_name>
626
- <docblock line="1400">
627
  <description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
628
  <long-description><![CDATA[<p>Returns</p>]]></long-description>
629
- <tag line="1400" name="since" description="0.90"/>
630
- <tag line="1400" name="param" description="post ID of attachment" type="int" variable="$post_id">
631
  <type by_reference="false">int</type>
632
  </tag>
633
- <tag line="1400" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
634
  <type by_reference="false">string</type>
635
  </tag>
636
- <tag line="1400" name="return" description="Meta data variables" type="array">
637
  <type by_reference="false">array</type>
638
  </tag>
639
  </docblock>
640
- <argument line="1412">
641
  <name>$post_id</name>
642
  <default><![CDATA[]]></default>
643
  <type/>
644
  </argument>
645
- <argument line="1412">
646
  <name>$path</name>
647
  <default><![CDATA['']]></default>
648
  <type/>
649
  </argument>
650
  </method>
651
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1478" package="Media Library Assistant">
652
  <name>mla_update_single_item</name>
653
  <full_name>mla_update_single_item</full_name>
654
- <docblock line="1465">
655
  <description><![CDATA[Update a single item; change the meta data
656
  for a single attachment.]]></description>
657
  <long-description><![CDATA[]]></long-description>
658
- <tag line="1465" name="since" description="0.1"/>
659
- <tag line="1465" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
660
  <type by_reference="false">int</type>
661
  </tag>
662
- <tag line="1465" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
663
  <type by_reference="false">array</type>
664
  </tag>
665
- <tag line="1465" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
666
  <type by_reference="false">array</type>
667
  </tag>
668
- <tag line="1465" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
669
  <type by_reference="false">array</type>
670
  </tag>
671
- <tag line="1465" name="return" description="success/failure message and NULL content" type="array">
672
  <type by_reference="false">array</type>
673
  </tag>
674
  </docblock>
675
- <argument line="1478">
676
  <name>$post_id</name>
677
  <default><![CDATA[]]></default>
678
  <type/>
679
  </argument>
680
- <argument line="1478">
681
  <name>$new_data</name>
682
  <default><![CDATA[]]></default>
683
  <type/>
684
  </argument>
685
- <argument line="1478">
686
  <name>$tax_input</name>
687
  <default><![CDATA[NULL]]></default>
688
  <type/>
689
  </argument>
690
- <argument line="1478">
691
  <name>$tax_actions</name>
692
  <default><![CDATA[NULL]]></default>
693
  <type/>
694
  </argument>
695
  </method>
696
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1700" package="Media Library Assistant">
697
  <name>_remove_tags</name>
698
  <full_name>_remove_tags</full_name>
699
- <docblock line="1689">
700
  <description><![CDATA[Remove tags from a term ids list]]></description>
701
  <long-description><![CDATA[]]></long-description>
702
- <tag line="1689" name="since" description="0.40"/>
703
- <tag line="1689" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
704
  <type by_reference="false">array</type>
705
  </tag>
706
- <tag line="1689" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
707
  <type by_reference="false">array</type>
708
  </tag>
709
- <tag line="1689" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
710
  <type by_reference="false">object</type>
711
  </tag>
712
- <tag line="1689" name="return" description="Term ids of the surviving tags" type="array">
713
  <type by_reference="false">array</type>
714
  </tag>
715
  </docblock>
716
- <argument line="1700">
717
  <name>$terms_before</name>
718
  <default><![CDATA[]]></default>
719
  <type/>
720
  </argument>
721
- <argument line="1700">
722
  <name>$tags</name>
723
  <default><![CDATA[]]></default>
724
  <type/>
725
  </argument>
726
- <argument line="1700">
727
  <name>$taxonomy_obj</name>
728
  <default><![CDATA[]]></default>
729
  <type/>
730
  </argument>
731
  </method>
732
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1743" package="Media Library Assistant">
733
  <name>_hex_dump</name>
734
  <full_name>_hex_dump</full_name>
735
- <docblock line="1732">
736
  <description><![CDATA[Format printable version of binary data]]></description>
737
  <long-description><![CDATA[]]></long-description>
738
- <tag line="1732" name="since" description="0.90"/>
739
- <tag line="1732" name="param" description="Binary data" type="string" variable="$data">
740
  <type by_reference="false">string</type>
741
  </tag>
742
- <tag line="1732" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
743
  <type by_reference="false">integer</type>
744
  </tag>
745
- <tag line="1732" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
746
  <type by_reference="false">\intger</type>
747
  </tag>
748
- <tag line="1732" name="return" description="Printable representation of $data" type="string">
749
  <type by_reference="false">string</type>
750
  </tag>
751
  </docblock>
752
- <argument line="1743">
753
  <name>$data</name>
754
  <default><![CDATA[]]></default>
755
  <type/>
756
  </argument>
757
- <argument line="1743">
758
  <name>$limit</name>
759
  <default><![CDATA[0]]></default>
760
  <type/>
761
  </argument>
762
- <argument line="1743">
763
  <name>$bytes_per_row</name>
764
  <default><![CDATA[16]]></default>
765
  <type/>
@@ -1071,7 +1107,7 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
1071
  </method>
1072
  </class>
1073
  </file>
1074
- <file path="includes\class-mla-list-table.php" hash="055d7201b17048c3b920efe5455b681b" package="Media Library Assistant">
1075
  <docblock line="2">
1076
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
1077
  <long-description><![CDATA[]]></long-description>
@@ -1188,744 +1224,764 @@ Custom field columns are added to this array by mla_admin_init_action.</p>]]></l
1188
  </tag>
1189
  </docblock>
1190
  </method>
1191
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="204" package="Media Library Assistant">
1192
  <name>_avail_mime_types</name>
1193
  <full_name>_avail_mime_types</full_name>
1194
- <docblock line="192">
1195
  <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
1196
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
1197
  with additional entries.</p>]]></long-description>
1198
- <tag line="192" name="since" description="0.1"/>
1199
- <tag line="192" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
1200
  <type by_reference="false">array</type>
1201
  </tag>
1202
- <tag line="192" name="return" description="Mime type names" type="array">
1203
  <type by_reference="false">array</type>
1204
  </tag>
1205
  </docblock>
1206
- <argument line="204">
1207
  <name>$num_posts</name>
1208
  <default><![CDATA[]]></default>
1209
  <type/>
1210
  </argument>
1211
  </method>
1212
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="225" package="Media Library Assistant">
1213
  <name>mla_get_attachment_mime_types</name>
1214
  <full_name>mla_get_attachment_mime_types</full_name>
1215
- <docblock line="215">
1216
  <description><![CDATA[Get possible mime types for view preparation]]></description>
1217
  <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-includes/post.php,
1218
  with additional entries.</p>]]></long-description>
1219
- <tag line="215" name="since" description="0.1"/>
1220
- <tag line="215" name="return" description="Mime type names and HTML markup for views" type="array">
1221
  <type by_reference="false">array</type>
1222
  </tag>
1223
  </docblock>
1224
  </method>
1225
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="298" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1226
  <name>mla_get_sortable_columns</name>
1227
  <full_name>mla_get_sortable_columns</full_name>
1228
- <docblock line="291">
1229
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
1230
  <long-description><![CDATA[]]></long-description>
1231
- <tag line="291" name="since" description="0.30"/>
1232
- <tag line="291" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
1233
  <type by_reference="false">array</type>
1234
  </tag>
1235
  </docblock>
1236
  </method>
1237
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="325" package="Media Library Assistant">
1238
  <name>mla_manage_hidden_columns_filter</name>
1239
  <full_name>mla_manage_hidden_columns_filter</full_name>
1240
- <docblock line="310">
1241
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
1242
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
1243
  the get_user_option result. Set when the file is loaded because the object
1244
  is not created in time for the call from screen.php.</p>]]></long-description>
1245
- <tag line="310" name="since" description="0.1"/>
1246
- <tag line="310" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
1247
  <type by_reference="false">string</type>
1248
  </tag>
1249
- <tag line="310" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
1250
  <type by_reference="false">string</type>
1251
  </tag>
1252
- <tag line="310" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
1253
  <type by_reference="false">object</type>
1254
  </tag>
1255
- <tag line="310" name="return" description="updated list of hidden columns" type="array">
1256
  <type by_reference="false">array</type>
1257
  </tag>
1258
  </docblock>
1259
- <argument line="325">
1260
  <name>$result</name>
1261
  <default><![CDATA[]]></default>
1262
  <type/>
1263
  </argument>
1264
- <argument line="325">
1265
  <name>$option</name>
1266
  <default><![CDATA[]]></default>
1267
  <type/>
1268
  </argument>
1269
- <argument line="325">
1270
  <name>$user_data</name>
1271
  <default><![CDATA[]]></default>
1272
  <type/>
1273
  </argument>
1274
  </method>
1275
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="343" package="Media Library Assistant">
1276
  <name>mla_manage_columns_filter</name>
1277
  <full_name>mla_manage_columns_filter</full_name>
1278
- <docblock line="332">
1279
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
1280
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
1281
  file is loaded because the list_table object isn't created in time
1282
  to affect the "screen options" setup.</p>]]></long-description>
1283
- <tag line="332" name="since" description="0.1"/>
1284
- <tag line="332" name="return" description="list of table columns" type="array">
1285
  <type by_reference="false">array</type>
1286
  </tag>
1287
  </docblock>
1288
  </method>
1289
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="358" package="Media Library Assistant">
1290
  <name>mla_admin_init_action</name>
1291
  <full_name>mla_admin_init_action</full_name>
1292
- <docblock line="348">
1293
  <description><![CDATA[Adds support for taxonomy columns]]></description>
1294
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
1295
  created in time to affect the "screen options" setup.</p>]]></long-description>
1296
- <tag line="348" name="since" description="0.30"/>
1297
- <tag line="348" name="return" description="" type="void">
1298
  <type by_reference="false">void</type>
1299
  </tag>
1300
  </docblock>
1301
  </method>
1302
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="384" package="Media Library Assistant">
1303
  <name>__construct</name>
1304
  <full_name>__construct</full_name>
1305
- <docblock line="376">
1306
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
1307
  calls the parent constructor to set some default configs.]]></description>
1308
  <long-description><![CDATA[]]></long-description>
1309
- <tag line="376" name="since" description="0.1"/>
1310
- <tag line="376" name="return" description="" type="void">
1311
  <type by_reference="false">void</type>
1312
  </tag>
1313
  </docblock>
1314
  </method>
1315
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="417" package="Media Library Assistant">
1316
  <name>column_default</name>
1317
  <full_name>column_default</full_name>
1318
- <docblock line="404">
1319
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
1320
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
1321
  given column. The taxonomy columns are handled here. All other columns should
1322
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
1323
- <tag line="404" name="since" description="0.1"/>
1324
- <tag line="404" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
1325
  <type by_reference="false">array</type>
1326
  </tag>
1327
- <tag line="404" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
1328
  <type by_reference="false">array</type>
1329
  </tag>
1330
- <tag line="404" name="return" description="Text or HTML to be placed inside the column" type="string">
1331
  <type by_reference="false">string</type>
1332
  </tag>
1333
  </docblock>
1334
- <argument line="417">
1335
  <name>$item</name>
1336
  <default><![CDATA[]]></default>
1337
  <type/>
1338
  </argument>
1339
- <argument line="417">
1340
  <name>$column_name</name>
1341
  <default><![CDATA[]]></default>
1342
  <type/>
1343
  </argument>
1344
  </method>
1345
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="475" package="Media Library Assistant">
1346
  <name>column_cb</name>
1347
  <full_name>column_cb</full_name>
1348
- <docblock line="466">
1349
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
1350
  <long-description><![CDATA[<p>The 'cb' column
1351
  is given special treatment when columns are processed.</p>]]></long-description>
1352
- <tag line="466" name="since" description="0.1"/>
1353
- <tag line="466" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1354
  <type by_reference="false">array</type>
1355
  </tag>
1356
- <tag line="466" name="return" description="HTML markup to be placed inside the column" type="string">
1357
  <type by_reference="false">string</type>
1358
  </tag>
1359
  </docblock>
1360
- <argument line="475">
1361
  <name>$item</name>
1362
  <default><![CDATA[]]></default>
1363
  <type/>
1364
  </argument>
1365
  </method>
1366
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="491" package="Media Library Assistant">
1367
  <name>column_icon</name>
1368
  <full_name>column_icon</full_name>
1369
- <docblock line="483">
1370
  <description><![CDATA[Supply the content for a custom column]]></description>
1371
  <long-description><![CDATA[]]></long-description>
1372
- <tag line="483" name="since" description="0.1"/>
1373
- <tag line="483" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1374
  <type by_reference="false">array</type>
1375
  </tag>
1376
- <tag line="483" name="return" description="HTML markup to be placed inside the column" type="string">
1377
  <type by_reference="false">string</type>
1378
  </tag>
1379
  </docblock>
1380
- <argument line="491">
1381
  <name>$item</name>
1382
  <default><![CDATA[]]></default>
1383
  <type/>
1384
  </argument>
1385
  </method>
1386
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="507" package="Media Library Assistant">
1387
  <name>_build_rollover_actions</name>
1388
  <full_name>_build_rollover_actions</full_name>
1389
- <docblock line="496">
1390
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
1391
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
1392
  <long-description><![CDATA[]]></long-description>
1393
- <tag line="496" name="since" description="0.1"/>
1394
- <tag line="496" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1395
  <type by_reference="false">object</type>
1396
  </tag>
1397
- <tag line="496" name="param" description="Current column name" type="string" variable="$column">
1398
  <type by_reference="false">string</type>
1399
  </tag>
1400
- <tag line="496" name="return" description="Names and URLs of row-level actions" type="array">
1401
  <type by_reference="false">array</type>
1402
  </tag>
1403
  </docblock>
1404
- <argument line="507">
1405
  <name>$item</name>
1406
  <default><![CDATA[]]></default>
1407
  <type/>
1408
  </argument>
1409
- <argument line="507">
1410
  <name>$column</name>
1411
  <default><![CDATA[]]></default>
1412
  <type/>
1413
  </argument>
1414
  </method>
1415
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="585" package="Media Library Assistant">
1416
  <name>_build_inline_data</name>
1417
  <full_name>_build_inline_data</full_name>
1418
- <docblock line="576">
1419
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
1420
  <long-description><![CDATA[]]></long-description>
1421
- <tag line="576" name="since" description="0.20"/>
1422
- <tag line="576" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1423
  <type by_reference="false">object</type>
1424
  </tag>
1425
- <tag line="576" name="return" description="HTML &lt;div&gt; with row data" type="string">
1426
  <type by_reference="false">string</type>
1427
  </tag>
1428
  </docblock>
1429
- <argument line="585">
1430
  <name>$item</name>
1431
  <default><![CDATA[]]></default>
1432
  <type/>
1433
  </argument>
1434
  </method>
1435
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="633" package="Media Library Assistant">
1436
  <name>column_ID_parent</name>
1437
  <full_name>column_ID_parent</full_name>
1438
- <docblock line="625">
1439
  <description><![CDATA[Supply the content for a custom column]]></description>
1440
  <long-description><![CDATA[]]></long-description>
1441
- <tag line="625" name="since" description="0.1"/>
1442
- <tag line="625" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1443
  <type by_reference="false">array</type>
1444
  </tag>
1445
- <tag line="625" name="return" description="HTML markup to be placed inside the column" type="string">
1446
  <type by_reference="false">string</type>
1447
  </tag>
1448
  </docblock>
1449
- <argument line="633">
1450
  <name>$item</name>
1451
  <default><![CDATA[]]></default>
1452
  <type/>
1453
  </argument>
1454
  </method>
1455
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="665" package="Media Library Assistant">
1456
  <name>column_title_name</name>
1457
  <full_name>column_title_name</full_name>
1458
- <docblock line="657">
1459
  <description><![CDATA[Supply the content for a custom column]]></description>
1460
  <long-description><![CDATA[]]></long-description>
1461
- <tag line="657" name="since" description="0.1"/>
1462
- <tag line="657" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1463
  <type by_reference="false">array</type>
1464
  </tag>
1465
- <tag line="657" name="return" description="HTML markup to be placed inside the column" type="string">
1466
  <type by_reference="false">string</type>
1467
  </tag>
1468
  </docblock>
1469
- <argument line="665">
1470
  <name>$item</name>
1471
  <default><![CDATA[]]></default>
1472
  <type/>
1473
  </argument>
1474
  </method>
1475
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="688" package="Media Library Assistant">
1476
  <name>column_post_title</name>
1477
  <full_name>column_post_title</full_name>
1478
- <docblock line="680">
1479
  <description><![CDATA[Supply the content for a custom column]]></description>
1480
  <long-description><![CDATA[]]></long-description>
1481
- <tag line="680" name="since" description="0.1"/>
1482
- <tag line="680" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1483
  <type by_reference="false">array</type>
1484
  </tag>
1485
- <tag line="680" name="return" description="HTML markup to be placed inside the column" type="string">
1486
  <type by_reference="false">string</type>
1487
  </tag>
1488
  </docblock>
1489
- <argument line="688">
1490
  <name>$item</name>
1491
  <default><![CDATA[]]></default>
1492
  <type/>
1493
  </argument>
1494
  </method>
1495
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="706" package="Media Library Assistant">
1496
  <name>column_post_name</name>
1497
  <full_name>column_post_name</full_name>
1498
- <docblock line="698">
1499
  <description><![CDATA[Supply the content for a custom column]]></description>
1500
  <long-description><![CDATA[]]></long-description>
1501
- <tag line="698" name="since" description="0.1"/>
1502
- <tag line="698" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1503
  <type by_reference="false">array</type>
1504
  </tag>
1505
- <tag line="698" name="return" description="HTML markup to be placed inside the column" type="string">
1506
  <type by_reference="false">string</type>
1507
  </tag>
1508
  </docblock>
1509
- <argument line="706">
1510
  <name>$item</name>
1511
  <default><![CDATA[]]></default>
1512
  <type/>
1513
  </argument>
1514
  </method>
1515
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="724" package="Media Library Assistant">
1516
  <name>column_parent</name>
1517
  <full_name>column_parent</full_name>
1518
- <docblock line="716">
1519
  <description><![CDATA[Supply the content for a custom column]]></description>
1520
  <long-description><![CDATA[]]></long-description>
1521
- <tag line="716" name="since" description="0.1"/>
1522
- <tag line="716" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1523
  <type by_reference="false">array</type>
1524
  </tag>
1525
- <tag line="716" name="return" description="HTML markup to be placed inside the column" type="string">
1526
  <type by_reference="false">string</type>
1527
  </tag>
1528
  </docblock>
1529
- <argument line="724">
1530
  <name>$item</name>
1531
  <default><![CDATA[]]></default>
1532
  <type/>
1533
  </argument>
1534
  </method>
1535
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="749" package="Media Library Assistant">
1536
  <name>column_menu_order</name>
1537
  <full_name>column_menu_order</full_name>
1538
- <docblock line="741">
1539
  <description><![CDATA[Supply the content for a custom column]]></description>
1540
  <long-description><![CDATA[]]></long-description>
1541
- <tag line="741" name="since" description="0.60"/>
1542
- <tag line="741" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1543
  <type by_reference="false">array</type>
1544
  </tag>
1545
- <tag line="741" name="return" description="HTML markup to be placed inside the column" type="string">
1546
  <type by_reference="false">string</type>
1547
  </tag>
1548
  </docblock>
1549
- <argument line="749">
1550
  <name>$item</name>
1551
  <default><![CDATA[]]></default>
1552
  <type/>
1553
  </argument>
1554
  </method>
1555
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="761" package="Media Library Assistant">
1556
  <name>column_featured</name>
1557
  <full_name>column_featured</full_name>
1558
- <docblock line="753">
1559
  <description><![CDATA[Supply the content for a custom column]]></description>
1560
  <long-description><![CDATA[]]></long-description>
1561
- <tag line="753" name="since" description="0.1"/>
1562
- <tag line="753" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1563
  <type by_reference="false">array</type>
1564
  </tag>
1565
- <tag line="753" name="return" description="HTML markup to be placed inside the column" type="string">
1566
  <type by_reference="false">string</type>
1567
  </tag>
1568
  </docblock>
1569
- <argument line="761">
1570
  <name>$item</name>
1571
  <default><![CDATA[]]></default>
1572
  <type/>
1573
  </argument>
1574
  </method>
1575
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="792" package="Media Library Assistant">
1576
  <name>column_inserted</name>
1577
  <full_name>column_inserted</full_name>
1578
- <docblock line="784">
1579
  <description><![CDATA[Supply the content for a custom column]]></description>
1580
  <long-description><![CDATA[]]></long-description>
1581
- <tag line="784" name="since" description="0.1"/>
1582
- <tag line="784" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1583
  <type by_reference="false">array</type>
1584
  </tag>
1585
- <tag line="784" name="return" description="HTML markup to be placed inside the column" type="string">
1586
  <type by_reference="false">string</type>
1587
  </tag>
1588
  </docblock>
1589
- <argument line="792">
1590
  <name>$item</name>
1591
  <default><![CDATA[]]></default>
1592
  <type/>
1593
  </argument>
1594
  </method>
1595
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="827" package="Media Library Assistant">
1596
  <name>column_galleries</name>
1597
  <full_name>column_galleries</full_name>
1598
- <docblock line="819">
1599
  <description><![CDATA[Supply the content for a custom column]]></description>
1600
  <long-description><![CDATA[]]></long-description>
1601
- <tag line="819" name="since" description="0.70"/>
1602
- <tag line="819" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1603
  <type by_reference="false">array</type>
1604
  </tag>
1605
- <tag line="819" name="return" description="HTML markup to be placed inside the column" type="string">
1606
  <type by_reference="false">string</type>
1607
  </tag>
1608
  </docblock>
1609
- <argument line="827">
1610
  <name>$item</name>
1611
  <default><![CDATA[]]></default>
1612
  <type/>
1613
  </argument>
1614
  </method>
1615
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="858" package="Media Library Assistant">
1616
  <name>column_mla_galleries</name>
1617
  <full_name>column_mla_galleries</full_name>
1618
- <docblock line="850">
1619
  <description><![CDATA[Supply the content for a custom column]]></description>
1620
  <long-description><![CDATA[]]></long-description>
1621
- <tag line="850" name="since" description="0.70"/>
1622
- <tag line="850" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1623
  <type by_reference="false">array</type>
1624
  </tag>
1625
- <tag line="850" name="return" description="HTML markup to be placed inside the column" type="string">
1626
  <type by_reference="false">string</type>
1627
  </tag>
1628
  </docblock>
1629
- <argument line="858">
1630
  <name>$item</name>
1631
  <default><![CDATA[]]></default>
1632
  <type/>
1633
  </argument>
1634
  </method>
1635
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="889" package="Media Library Assistant">
1636
  <name>column_alt_text</name>
1637
  <full_name>column_alt_text</full_name>
1638
- <docblock line="881">
1639
  <description><![CDATA[Supply the content for a custom column]]></description>
1640
  <long-description><![CDATA[]]></long-description>
1641
- <tag line="881" name="since" description="0.1"/>
1642
- <tag line="881" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1643
  <type by_reference="false">array</type>
1644
  </tag>
1645
- <tag line="881" name="return" description="HTML markup to be placed inside the column" type="string">
1646
  <type by_reference="false">string</type>
1647
  </tag>
1648
  </docblock>
1649
- <argument line="889">
1650
  <name>$item</name>
1651
  <default><![CDATA[]]></default>
1652
  <type/>
1653
  </argument>
1654
  </method>
1655
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="909" package="Media Library Assistant">
1656
  <name>column_caption</name>
1657
  <full_name>column_caption</full_name>
1658
- <docblock line="901">
1659
  <description><![CDATA[Supply the content for a custom column]]></description>
1660
  <long-description><![CDATA[]]></long-description>
1661
- <tag line="901" name="since" description="0.1"/>
1662
- <tag line="901" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1663
  <type by_reference="false">array</type>
1664
  </tag>
1665
- <tag line="901" name="return" description="HTML markup to be placed inside the column" type="string">
1666
  <type by_reference="false">string</type>
1667
  </tag>
1668
  </docblock>
1669
- <argument line="909">
1670
  <name>$item</name>
1671
  <default><![CDATA[]]></default>
1672
  <type/>
1673
  </argument>
1674
  </method>
1675
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="921" package="Media Library Assistant">
1676
  <name>column_description</name>
1677
  <full_name>column_description</full_name>
1678
- <docblock line="913">
1679
  <description><![CDATA[Supply the content for a custom column]]></description>
1680
  <long-description><![CDATA[]]></long-description>
1681
- <tag line="913" name="since" description="0.1"/>
1682
- <tag line="913" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1683
  <type by_reference="false">array</type>
1684
  </tag>
1685
- <tag line="913" name="return" description="HTML markup to be placed inside the column" type="string">
1686
  <type by_reference="false">string</type>
1687
  </tag>
1688
  </docblock>
1689
- <argument line="921">
1690
  <name>$item</name>
1691
  <default><![CDATA[]]></default>
1692
  <type/>
1693
  </argument>
1694
  </method>
1695
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="933" package="Media Library Assistant">
1696
  <name>column_post_mime_type</name>
1697
  <full_name>column_post_mime_type</full_name>
1698
- <docblock line="925">
1699
  <description><![CDATA[Supply the content for a custom column]]></description>
1700
  <long-description><![CDATA[]]></long-description>
1701
- <tag line="925" name="since" description="0.30"/>
1702
- <tag line="925" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1703
  <type by_reference="false">array</type>
1704
  </tag>
1705
- <tag line="925" name="return" description="HTML markup to be placed inside the column" type="string">
1706
  <type by_reference="false">string</type>
1707
  </tag>
1708
  </docblock>
1709
- <argument line="933">
1710
  <name>$item</name>
1711
  <default><![CDATA[]]></default>
1712
  <type/>
1713
  </argument>
1714
  </method>
1715
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="945" package="Media Library Assistant">
1716
  <name>column_base_file</name>
1717
  <full_name>column_base_file</full_name>
1718
- <docblock line="937">
1719
  <description><![CDATA[Supply the content for a custom column]]></description>
1720
  <long-description><![CDATA[]]></long-description>
1721
- <tag line="937" name="since" description="0.1"/>
1722
- <tag line="937" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1723
  <type by_reference="false">array</type>
1724
  </tag>
1725
- <tag line="937" name="return" description="HTML markup to be placed inside the column" type="string">
1726
  <type by_reference="false">string</type>
1727
  </tag>
1728
  </docblock>
1729
- <argument line="945">
1730
  <name>$item</name>
1731
  <default><![CDATA[]]></default>
1732
  <type/>
1733
  </argument>
1734
  </method>
1735
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="957" package="Media Library Assistant">
1736
  <name>column_date</name>
1737
  <full_name>column_date</full_name>
1738
- <docblock line="949">
1739
  <description><![CDATA[Supply the content for a custom column]]></description>
1740
  <long-description><![CDATA[]]></long-description>
1741
- <tag line="949" name="since" description="0.1"/>
1742
- <tag line="949" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1743
  <type by_reference="false">array</type>
1744
  </tag>
1745
- <tag line="949" name="return" description="HTML markup to be placed inside the column" type="string">
1746
  <type by_reference="false">string</type>
1747
  </tag>
1748
  </docblock>
1749
- <argument line="957">
1750
  <name>$item</name>
1751
  <default><![CDATA[]]></default>
1752
  <type/>
1753
  </argument>
1754
  </method>
1755
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="986" package="Media Library Assistant">
1756
  <name>column_modified</name>
1757
  <full_name>column_modified</full_name>
1758
- <docblock line="978">
1759
  <description><![CDATA[Supply the content for a custom column]]></description>
1760
  <long-description><![CDATA[]]></long-description>
1761
- <tag line="978" name="since" description="0.30"/>
1762
- <tag line="978" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1763
  <type by_reference="false">array</type>
1764
  </tag>
1765
- <tag line="978" name="return" description="HTML markup to be placed inside the column" type="string">
1766
  <type by_reference="false">string</type>
1767
  </tag>
1768
  </docblock>
1769
- <argument line="986">
1770
  <name>$item</name>
1771
  <default><![CDATA[]]></default>
1772
  <type/>
1773
  </argument>
1774
  </method>
1775
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1015" package="Media Library Assistant">
1776
  <name>column_author</name>
1777
  <full_name>column_author</full_name>
1778
- <docblock line="1007">
1779
  <description><![CDATA[Supply the content for a custom column]]></description>
1780
  <long-description><![CDATA[]]></long-description>
1781
- <tag line="1007" name="since" description="0.30"/>
1782
- <tag line="1007" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1783
  <type by_reference="false">array</type>
1784
  </tag>
1785
- <tag line="1007" name="return" description="HTML markup to be placed inside the column" type="string">
1786
  <type by_reference="false">string</type>
1787
  </tag>
1788
  </docblock>
1789
- <argument line="1015">
1790
  <name>$item</name>
1791
  <default><![CDATA[]]></default>
1792
  <type/>
1793
  </argument>
1794
  </method>
1795
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1036" package="Media Library Assistant">
1796
  <name>column_attached_to</name>
1797
  <full_name>column_attached_to</full_name>
1798
- <docblock line="1028">
1799
  <description><![CDATA[Supply the content for a custom column]]></description>
1800
  <long-description><![CDATA[]]></long-description>
1801
- <tag line="1028" name="since" description="0.1"/>
1802
- <tag line="1028" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1803
  <type by_reference="false">array</type>
1804
  </tag>
1805
- <tag line="1028" name="return" description="HTML markup to be placed inside the column" type="string">
1806
  <type by_reference="false">string</type>
1807
  </tag>
1808
  </docblock>
1809
- <argument line="1036">
1810
  <name>$item</name>
1811
  <default><![CDATA[]]></default>
1812
  <type/>
1813
  </argument>
1814
  </method>
1815
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1065" package="Media Library Assistant">
1816
  <name>get_columns</name>
1817
  <full_name>get_columns</full_name>
1818
- <docblock line="1058">
1819
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1820
  <long-description><![CDATA[]]></long-description>
1821
- <tag line="1058" name="since" description="0.1"/>
1822
- <tag line="1058" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1823
  <type by_reference="false">array</type>
1824
  </tag>
1825
  </docblock>
1826
  </method>
1827
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1077" package="Media Library Assistant">
1828
  <name>get_hidden_columns</name>
1829
  <full_name>get_hidden_columns</full_name>
1830
- <docblock line="1069">
1831
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1832
  from default values if the option is not set]]></description>
1833
  <long-description><![CDATA[]]></long-description>
1834
- <tag line="1069" name="since" description="0.1"/>
1835
- <tag line="1069" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1836
  <type by_reference="false">array</type>
1837
  </tag>
1838
  </docblock>
1839
  </method>
1840
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1097" package="Media Library Assistant">
1841
  <name>get_sortable_columns</name>
1842
  <full_name>get_sortable_columns</full_name>
1843
- <docblock line="1087">
1844
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1845
  and the value is db column to sort by.]]></description>
1846
  <long-description><![CDATA[<p>Also notes the current sort column,
1847
  if set.</p>]]></long-description>
1848
- <tag line="1087" name="since" description="0.1"/>
1849
- <tag line="1087" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1850
  <type by_reference="false">array</type>
1851
  </tag>
1852
  </docblock>
1853
  </method>
1854
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
1855
  <name>get_views</name>
1856
  <full_name>get_views</full_name>
1857
- <docblock line="1116">
1858
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1859
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1860
- <tag line="1116" name="since" description="0.1"/>
1861
- <tag line="1116" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1862
  <type by_reference="false">array</type>
1863
  </tag>
1864
  </docblock>
1865
  </method>
1866
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1199" package="Media Library Assistant">
1867
  <name>get_bulk_actions</name>
1868
  <full_name>get_bulk_actions</full_name>
1869
- <docblock line="1191">
1870
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1871
  of bulk actions available on this table.]]></description>
1872
  <long-description><![CDATA[]]></long-description>
1873
- <tag line="1191" name="since" description="0.1"/>
1874
- <tag line="1191" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1875
  <type by_reference="false">array</type>
1876
  </tag>
1877
  </docblock>
1878
  </method>
1879
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1230" package="Media Library Assistant">
1880
  <name>extra_tablenav</name>
1881
  <full_name>extra_tablenav</full_name>
1882
- <docblock line="1219">
1883
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1884
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1885
- <tag line="1219" name="since" description="0.1"/>
1886
- <tag line="1219" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1887
  <type by_reference="false">string</type>
1888
  </tag>
1889
- <tag line="1219" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1890
  <type by_reference="false">array</type>
1891
  </tag>
1892
  </docblock>
1893
- <argument line="1230">
1894
  <name>$which</name>
1895
  <default><![CDATA[]]></default>
1896
  <type/>
1897
  </argument>
1898
  </method>
1899
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1290" package="Media Library Assistant">
1900
  <name>prepare_items</name>
1901
  <full_name>prepare_items</full_name>
1902
- <docblock line="1278">
1903
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1904
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1905
  be used to query the database, sort and filter the data, and generally
1906
  get it ready to be displayed. At a minimum, we should set $this->items and
1907
  $this->set_pagination_args().</p>]]></long-description>
1908
- <tag line="1278" name="since" description="0.1"/>
1909
- <tag line="1278" name="return" description="" type="void">
1910
  <type by_reference="false">void</type>
1911
  </tag>
1912
  </docblock>
1913
  </method>
1914
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1336" package="Media Library Assistant">
1915
  <name>single_row</name>
1916
  <full_name>single_row</full_name>
1917
- <docblock line="1327">
1918
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1919
  <long-description><![CDATA[]]></long-description>
1920
- <tag line="1327" name="since" description=".20"/>
1921
- <tag line="1327" name="param" description="the current item" type="object" variable="$item">
1922
  <type by_reference="false">object</type>
1923
  </tag>
1924
- <tag line="1327" name="return" description="Echoes the row HTML" type="void">
1925
  <type by_reference="false">void</type>
1926
  </tag>
1927
  </docblock>
1928
- <argument line="1336">
1929
  <name>$item</name>
1930
  <default><![CDATA[]]></default>
1931
  <type/>
@@ -1933,7 +1989,7 @@ $this->set_pagination_args().</p>]]></long-description>
1933
  </method>
1934
  </class>
1935
  </file>
1936
- <file path="includes\class-mla-main.php" hash="dd93b3e8f36b4cab5558fd1f24618ec8" package="Media Library Assistant">
1937
  <docblock line="2">
1938
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1939
  <long-description><![CDATA[]]></long-description>
@@ -1970,7 +2026,7 @@ of images and files held in the WordPress Media Library.]]></description>
1970
  <constant namespace="global" line="41" package="Media Library Assistant">
1971
  <name>CURRENT_MLA_VERSION</name>
1972
  <full_name>CURRENT_MLA_VERSION</full_name>
1973
- <value><![CDATA['1.14']]></value>
1974
  <docblock line="34">
1975
  <description><![CDATA[Current version number]]></description>
1976
  <long-description><![CDATA[]]></long-description>
@@ -2543,7 +2599,234 @@ change the meta data for a single attachment.]]></description>
2543
  </method>
2544
  </class>
2545
  </file>
2546
- <file path="includes\class-mla-objects.php" hash="e2f22bd27808ab9ba022b324dff4fa6e" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2547
  <docblock line="2">
2548
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
2549
  <long-description><![CDATA[]]></long-description>
@@ -2644,7 +2927,7 @@ which returns a count of the attachments assigned a given term]]></description>
2644
  </method>
2645
  </class>
2646
  </file>
2647
- <file path="includes\class-mla-options.php" hash="b52d0ef2bdb1764ab4a36f9c37fdd4d9" package="Media Library Assistant">
2648
  <docblock line="2">
2649
  <description><![CDATA[Manages the plugin option settings]]></description>
2650
  <long-description><![CDATA[]]></long-description>
@@ -2725,58 +3008,103 @@ and provides functions to get and put them from/to WordPress option variables]]>
2725
  <long-description><![CDATA[]]></long-description>
2726
  </docblock>
2727
  </constant>
2728
- <property final="false" static="true" visibility="public" line="63" namespace="global" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2729
  <name>$process_featured_in</name>
2730
  <default><![CDATA[true]]></default>
2731
- <docblock line="54">
2732
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
2733
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
2734
- <tag line="54" name="since" description="1.00"/>
2735
- <tag line="54" name="var" description="" type="boolean">
2736
  <type by_reference="false">boolean</type>
2737
  </tag>
2738
  </docblock>
2739
  </property>
2740
- <property final="false" static="true" visibility="public" line="74" namespace="global" package="Media Library Assistant">
2741
  <name>$process_inserted_in</name>
2742
  <default><![CDATA[true]]></default>
2743
- <docblock line="65">
2744
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
2745
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
2746
- <tag line="65" name="since" description="1.00"/>
2747
- <tag line="65" name="var" description="" type="boolean">
2748
  <type by_reference="false">boolean</type>
2749
  </tag>
2750
  </docblock>
2751
  </property>
2752
- <property final="false" static="true" visibility="public" line="85" namespace="global" package="Media Library Assistant">
2753
  <name>$process_gallery_in</name>
2754
  <default><![CDATA[true]]></default>
2755
- <docblock line="76">
2756
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
2757
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
2758
- <tag line="76" name="since" description="1.00"/>
2759
- <tag line="76" name="var" description="" type="boolean">
2760
  <type by_reference="false">boolean</type>
2761
  </tag>
2762
  </docblock>
2763
  </property>
2764
- <property final="false" static="true" visibility="public" line="96" namespace="global" package="Media Library Assistant">
2765
  <name>$process_mla_gallery_in</name>
2766
  <default><![CDATA[true]]></default>
2767
- <docblock line="87">
2768
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
2769
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
2770
- <tag line="87" name="since" description="1.00"/>
2771
- <tag line="87" name="var" description="" type="boolean">
2772
  <type by_reference="false">boolean</type>
2773
  </tag>
2774
  </docblock>
2775
  </property>
2776
- <property final="false" static="true" visibility="public" line="123" namespace="global" package="Media Library Assistant">
2777
  <name>$mla_option_definitions</name>
2778
- <default><![CDATA[array(self::MLA_VERSION_OPTION => array('tab' => '', 'type' => 'hidden', 'std' => '0'), 'attachment_category' => array('tab' => '', 'name' => 'Attachment Categories', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('tab' => '', 'name' => 'Attachment Tags', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'), 'where_used_heading' => array('tab' => 'general', 'name' => 'Where-used Reporting', 'type' => 'header'), 'exclude_revisions' => array('tab' => 'general', 'name' => 'Exclude Revisions', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to exclude revisions from where-used reporting.'), 'where_used_subheading' => array('tab' => 'general', 'name' => 'Where-used database access tuning', 'type' => 'subheader'), self::MLA_FEATURED_IN_TUNING => array('tab' => 'general', 'name' => 'Featured in', 'type' => 'select', 'std' => 'enabled', 'options' => array('enabled', 'disabled'), 'texts' => array('Enabled', 'Disabled'), 'help' => 'Search database posts and pages for Featured Image attachments.'), self::MLA_INSERTED_IN_TUNING => array('tab' => 'general', 'name' => 'Inserted in', 'type' => 'select', 'std' => 'enabled', 'options' => array('enabled', 'disabled'), 'texts' => array('Enabled', 'Disabled'), 'help' => 'Search database posts and pages for attachments embedded in content.'), self::MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), self::MLA_MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'MLA Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [mla_gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), 'taxonomy_heading' => array('tab' => 'general', 'name' => 'Taxonomy Support', 'type' => 'header'), 'taxonomy_support' => array('tab' => 'general', 'help' => 'Check the "Support" box to add the taxonomy to the Assistant and the Edit Media screen.<br>Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'std' => array('tax_support' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_quick_edit' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_filter' => 'attachment_category'), 'type' => 'custom', 'render' => 'mla_taxonomy_option_handler', 'update' => 'mla_taxonomy_option_handler', 'delete' => 'mla_taxonomy_option_handler', 'reset' => 'mla_taxonomy_option_handler'), 'orderby_heading' => array('tab' => 'general', 'name' => 'Default Table Listing Sort Order', 'type' => 'header'), 'default_orderby' => array('tab' => 'general', 'name' => 'Order By', 'type' => 'select', 'std' => 'title_name', 'options' => array('none', 'title_name'), 'texts' => array('None', 'Title/Name'), 'help' => 'Select the column for the sort order of the Assistant table listing.'), 'default_order' => array('tab' => 'general', 'name' => 'Order', 'type' => 'radio', 'std' => 'ASC', 'options' => array('ASC', 'DESC'), 'texts' => array('Ascending', 'Descending'), 'help' => 'Choose the sort order.'), 'template_heading' => array('tab' => 'mla-gallery', 'name' => 'Default [mla_gallery] Templates', 'type' => 'header'), 'default_style' => array('tab' => 'mla-gallery', 'name' => 'Style Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default style template for your [mla_gallery] shortcodes.'), 'default_markup' => array('tab' => 'mla-gallery', 'name' => 'Markup Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default markup template for your [mla_gallery] shortcodes.'), 'style_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'markup_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'enable_custom_field_mapping' => array('tab' => 'custom-field', 'name' => 'Enable custom field mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change this option.<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'custom_field_mapping' => array('tab' => '', 'help' => '&nbsp;<br>Update the custom field mapping values above, then click Save Changes to make the updates permanent.<br>You can also make temporary updates and click a Map All Attachments button to apply the rule(s) to all attachments without saving any rule changes.', 'std' => array(), 'type' => 'custom', 'render' => 'mla_custom_field_option_handler', 'update' => 'mla_custom_field_option_handler', 'delete' => 'mla_custom_field_option_handler', 'reset' => 'mla_custom_field_option_handler'), 'enable_iptc_exif_mapping' => array('tab' => 'iptc-exif', 'name' => 'Enable IPTC/EXIF Mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'iptc_exif_standard_mapping' => array('tab' => '', 'help' => 'Update the standard field mapping values above, then click Save Changes to make the updates permanent.<br>You can also make temporary updates and click Map All Attachments Now to apply the updates to all attachments without saving the rule changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_taxonomy_mapping' => array('tab' => '', 'help' => 'Update the taxonomy term mapping values above, then click Save Changes or Map All Attachments Now.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_custom_mapping' => array('tab' => '', 'help' => 'Update the custom field mapping values above.<br>To define a new custom field, enter a field name in the "Field Title" text box at the end of the list and Save Changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_mapping' => array('tab' => '', 'help' => 'IPTC/EXIF Mapping help', 'std' => array('standard' => array('post_title' => array('name' => 'Title', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_name' => array('name' => 'Name/Slug', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'image_alt' => array('name' => 'Alternate Text', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_excerpt' => array('name' => 'Caption', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_content' => array('name' => 'Description', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true)), 'taxonomy' => array(), 'custom' => array()), 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'))]]></default>
2779
- <docblock line="98">
2780
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them.]]></description>
2781
  <long-description><![CDATA[<p>Each option is defined by an array with the following elements:</p>
2782
 
@@ -2802,858 +3130,858 @@ reset => reset function for 'custom' options; returns nothing. Usage:
2802
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
2803
  </docblock>
2804
  </property>
2805
- <property final="false" static="true" visibility="private" line="447" namespace="global" package="Media Library Assistant">
2806
  <name>$mla_option_templates</name>
2807
  <default><![CDATA[null]]></default>
2808
- <docblock line="440">
2809
  <description><![CDATA[Style and Markup templates]]></description>
2810
  <long-description><![CDATA[]]></long-description>
2811
- <tag line="440" name="since" description="0.80"/>
2812
- <tag line="440" name="var" description="" type="array">
2813
  <type by_reference="false">array</type>
2814
  </tag>
2815
  </docblock>
2816
  </property>
2817
- <property final="false" static="true" visibility="private" line="1367" namespace="global" package="Media Library Assistant">
2818
  <name>$custom_field_data_sources</name>
2819
  <default><![CDATA[array('path', 'file_name', 'extension', 'file_size', 'dimensions', 'pixels', 'width', 'height', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
2820
- <docblock line="1360">
2821
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
2822
  <long-description><![CDATA[]]></long-description>
2823
- <tag line="1360" name="since" description="1.10"/>
2824
- <tag line="1360" name="var" description="" type="array">
2825
  <type by_reference="false">array</type>
2826
  </tag>
2827
  </docblock>
2828
  </property>
2829
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="421" package="Media Library Assistant">
2830
  <name>initialize</name>
2831
  <full_name>initialize</full_name>
2832
- <docblock line="414">
2833
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
2834
  <long-description><![CDATA[]]></long-description>
2835
- <tag line="414" name="since" description="1.00"/>
2836
- <tag line="414" name="return" description="" type="void">
2837
  <type by_reference="false">void</type>
2838
  </tag>
2839
  </docblock>
2840
  </method>
2841
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="456" package="Media Library Assistant">
2842
  <name>_load_option_templates</name>
2843
  <full_name>_load_option_templates</full_name>
2844
- <docblock line="449">
2845
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
2846
  <long-description><![CDATA[]]></long-description>
2847
- <tag line="449" name="since" description="0.80"/>
2848
- <tag line="449" name="return" description="" type="void">
2849
  <type by_reference="false">void</type>
2850
  </tag>
2851
  </docblock>
2852
  </method>
2853
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="504" package="Media Library Assistant">
2854
  <name>mla_fetch_gallery_template</name>
2855
  <full_name>mla_fetch_gallery_template</full_name>
2856
- <docblock line="494">
2857
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
2858
  <long-description><![CDATA[]]></long-description>
2859
- <tag line="494" name="since" description="0.80"/>
2860
- <tag line="494" name="param" description="Template name" type="string" variable="$key">
2861
  <type by_reference="false">string</type>
2862
  </tag>
2863
- <tag line="494" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
2864
  <type by_reference="false">string</type>
2865
  </tag>
2866
- <tag line="494" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
2867
  <type by_reference="false">string</type>
2868
  <type by_reference="false">boolean</type>
2869
  <type by_reference="false">null</type>
2870
  </tag>
2871
  </docblock>
2872
- <argument line="504">
2873
  <name>$key</name>
2874
  <default><![CDATA[]]></default>
2875
  <type/>
2876
  </argument>
2877
- <argument line="504">
2878
  <name>$type</name>
2879
  <default><![CDATA['style']]></default>
2880
  <type/>
2881
  </argument>
2882
  </method>
2883
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="526" package="Media Library Assistant">
2884
  <name>mla_get_style_templates</name>
2885
  <full_name>mla_get_style_templates</full_name>
2886
- <docblock line="519">
2887
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
2888
  <long-description><![CDATA[]]></long-description>
2889
- <tag line="519" name="since" description="0.80"/>
2890
- <tag line="519" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
2891
  <type by_reference="false">array</type>
2892
  <type by_reference="false">null</type>
2893
  </tag>
2894
  </docblock>
2895
  </method>
2896
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="552" package="Media Library Assistant">
2897
  <name>mla_put_style_templates</name>
2898
  <full_name>mla_put_style_templates</full_name>
2899
- <docblock line="544">
2900
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
2901
  <long-description><![CDATA[]]></long-description>
2902
- <tag line="544" name="since" description="0.80"/>
2903
- <tag line="544" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
2904
  <type by_reference="false">array</type>
2905
  </tag>
2906
- <tag line="544" name="return" description="true if success, false if failure" type="boolean">
2907
  <type by_reference="false">boolean</type>
2908
  </tag>
2909
  </docblock>
2910
- <argument line="552">
2911
  <name>$templates</name>
2912
  <default><![CDATA[]]></default>
2913
  <type/>
2914
  </argument>
2915
  </method>
2916
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="568" package="Media Library Assistant">
2917
  <name>mla_get_markup_templates</name>
2918
  <full_name>mla_get_markup_templates</full_name>
2919
- <docblock line="561">
2920
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
2921
  <long-description><![CDATA[]]></long-description>
2922
- <tag line="561" name="since" description="0.80"/>
2923
- <tag line="561" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
2924
  <type by_reference="false">array</type>
2925
  <type by_reference="false">null</type>
2926
  </tag>
2927
  </docblock>
2928
  </method>
2929
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="622" package="Media Library Assistant">
2930
  <name>mla_put_markup_templates</name>
2931
  <full_name>mla_put_markup_templates</full_name>
2932
- <docblock line="614">
2933
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
2934
  <long-description><![CDATA[]]></long-description>
2935
- <tag line="614" name="since" description="0.80"/>
2936
- <tag line="614" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
2937
  <type by_reference="false">array</type>
2938
  </tag>
2939
- <tag line="614" name="return" description="true if success, false if failure" type="boolean">
2940
  <type by_reference="false">boolean</type>
2941
  </tag>
2942
  </docblock>
2943
- <argument line="622">
2944
  <name>$templates</name>
2945
  <default><![CDATA[]]></default>
2946
  <type/>
2947
  </argument>
2948
  </method>
2949
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="640" package="Media Library Assistant">
2950
  <name>mla_get_option</name>
2951
  <full_name>mla_get_option</full_name>
2952
- <docblock line="631">
2953
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
2954
  <long-description><![CDATA[]]></long-description>
2955
- <tag line="631" name="since" description="0.1"/>
2956
- <tag line="631" name="param" description="Name of the desired option" type="string" variable="$option">
2957
  <type by_reference="false">string</type>
2958
  </tag>
2959
- <tag line="631" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
2960
  <type by_reference="false">mixed</type>
2961
  </tag>
2962
  </docblock>
2963
- <argument line="640">
2964
  <name>$option</name>
2965
  <default><![CDATA[]]></default>
2966
  <type/>
2967
  </argument>
2968
  </method>
2969
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="661" package="Media Library Assistant">
2970
  <name>mla_update_option</name>
2971
  <full_name>mla_update_option</full_name>
2972
- <docblock line="651">
2973
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
2974
  <long-description><![CDATA[]]></long-description>
2975
- <tag line="651" name="since" description="0.1"/>
2976
- <tag line="651" name="param" description="Name of the desired option" type="string" variable="$option">
2977
  <type by_reference="false">string</type>
2978
  </tag>
2979
- <tag line="651" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
2980
  <type by_reference="false">mixed</type>
2981
  </tag>
2982
- <tag line="651" name="return" description="True if the value was changed or false if the update failed" type="boolean">
2983
  <type by_reference="false">boolean</type>
2984
  </tag>
2985
  </docblock>
2986
- <argument line="661">
2987
  <name>$option</name>
2988
  <default><![CDATA[]]></default>
2989
  <type/>
2990
  </argument>
2991
- <argument line="661">
2992
  <name>$newvalue</name>
2993
  <default><![CDATA[]]></default>
2994
  <type/>
2995
  </argument>
2996
  </method>
2997
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="677" package="Media Library Assistant">
2998
  <name>mla_delete_option</name>
2999
  <full_name>mla_delete_option</full_name>
3000
- <docblock line="668">
3001
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
3002
  <long-description><![CDATA[]]></long-description>
3003
- <tag line="668" name="since" description="0.1"/>
3004
- <tag line="668" name="param" description="Name of the desired option" type="string" variable="$option">
3005
  <type by_reference="false">string</type>
3006
  </tag>
3007
- <tag line="668" name="return" description="True if the option was deleted, otherwise false" type="boolean">
3008
  <type by_reference="false">boolean</type>
3009
  </tag>
3010
  </docblock>
3011
- <argument line="677">
3012
  <name>$option</name>
3013
  <default><![CDATA[]]></default>
3014
  <type/>
3015
  </argument>
3016
  </method>
3017
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="698" package="Media Library Assistant">
3018
  <name>mla_taxonomy_support</name>
3019
  <full_name>mla_taxonomy_support</full_name>
3020
- <docblock line="685">
3021
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
3022
  settings are being updated or reset.]]></description>
3023
  <long-description><![CDATA[]]></long-description>
3024
- <tag line="685" name="since" description="0.30"/>
3025
- <tag line="685" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
3026
  <type by_reference="false">string</type>
3027
  </tag>
3028
- <tag line="685" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
3029
  <type by_reference="false">string</type>
3030
  </tag>
3031
- <tag line="685" name="return" description="true if the taxonomy is supported in this way else false string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by" type="boolean|string">
3032
  <type by_reference="false">boolean</type>
3033
  <type by_reference="false">string</type>
3034
  </tag>
3035
  </docblock>
3036
- <argument line="698">
3037
  <name>$tax_name</name>
3038
  <default><![CDATA[]]></default>
3039
  <type/>
3040
  </argument>
3041
- <argument line="698">
3042
  <name>$support_type</name>
3043
  <default><![CDATA['support']]></default>
3044
  <type/>
3045
  </argument>
3046
  </method>
3047
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="774" package="Media Library Assistant">
3048
  <name>mla_taxonomy_option_handler</name>
3049
  <full_name>mla_taxonomy_option_handler</full_name>
3050
- <docblock line="761">
3051
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
3052
  <long-description><![CDATA[]]></long-description>
3053
- <tag line="761" name="since" description="0.30"/>
3054
- <tag line="761" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3055
- <tag line="761" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
3056
  <type by_reference="false">string</type>
3057
  </tag>
3058
- <tag line="761" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
3059
  <type by_reference="false">string</type>
3060
  </tag>
3061
- <tag line="761" name="param" description="option parameters" type="array" variable="$value">
3062
  <type by_reference="false">array</type>
3063
  </tag>
3064
- <tag line="761" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
3065
  <type by_reference="false">array</type>
3066
  </tag>
3067
- <tag line="761" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
3068
  <type by_reference="false">string</type>
3069
  </tag>
3070
  </docblock>
3071
- <argument line="774">
3072
  <name>$action</name>
3073
  <default><![CDATA[]]></default>
3074
  <type/>
3075
  </argument>
3076
- <argument line="774">
3077
  <name>$key</name>
3078
  <default><![CDATA[]]></default>
3079
  <type/>
3080
  </argument>
3081
- <argument line="774">
3082
  <name>$value</name>
3083
  <default><![CDATA[]]></default>
3084
  <type/>
3085
  </argument>
3086
- <argument line="774">
3087
  <name>$args</name>
3088
  <default><![CDATA[null]]></default>
3089
  <type/>
3090
  </argument>
3091
  </method>
3092
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="882" package="Media Library Assistant">
3093
  <name>mla_add_attachment_action</name>
3094
  <full_name>mla_add_attachment_action</full_name>
3095
- <docblock line="873">
3096
  <description><![CDATA[Perform ITC/EXIF mapping on just-inserted attachment]]></description>
3097
  <long-description><![CDATA[]]></long-description>
3098
- <tag line="873" name="since" description="1.00"/>
3099
- <tag line="873" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
3100
  <type by_reference="false">integer</type>
3101
  </tag>
3102
- <tag line="873" name="return" description="" type="void">
3103
  <type by_reference="false">void</type>
3104
  </tag>
3105
  </docblock>
3106
- <argument line="882">
3107
  <name>$post_id</name>
3108
  <default><![CDATA[]]></default>
3109
  <type/>
3110
  </argument>
3111
  </method>
3112
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="902" package="Media Library Assistant">
3113
  <name>mla_update_attachment_metadata_filter</name>
3114
  <full_name>mla_update_attachment_metadata_filter</full_name>
3115
- <docblock line="892">
3116
  <description><![CDATA[Perform Custom Field mapping on just-inserted or updated attachment]]></description>
3117
  <long-description><![CDATA[]]></long-description>
3118
- <tag line="892" name="since" description="1.10"/>
3119
- <tag line="892" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
3120
  <type by_reference="false">array</type>
3121
  </tag>
3122
- <tag line="892" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
3123
  <type by_reference="false">integer</type>
3124
  </tag>
3125
- <tag line="892" name="return" description="" type="void">
3126
  <type by_reference="false">void</type>
3127
  </tag>
3128
  </docblock>
3129
- <argument line="902">
3130
  <name>$data</name>
3131
  <default><![CDATA[]]></default>
3132
  <type/>
3133
  </argument>
3134
- <argument line="902">
3135
  <name>$post_id</name>
3136
  <default><![CDATA[]]></default>
3137
  <type/>
3138
  </argument>
3139
  </method>
3140
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="922" package="Media Library Assistant">
3141
  <name>mla_custom_field_option_value</name>
3142
  <full_name>mla_custom_field_option_value</full_name>
3143
- <docblock line="913">
3144
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
3145
  <long-description><![CDATA[]]></long-description>
3146
- <tag line="913" name="since" description="1.10"/>
3147
- <tag line="913" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
3148
  <type by_reference="false">string</type>
3149
  </tag>
3150
- <tag line="913" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
3151
  <type by_reference="false">array</type>
3152
  </tag>
3153
  </docblock>
3154
- <argument line="922">
3155
  <name>$slug</name>
3156
  <default><![CDATA[]]></default>
3157
  <type/>
3158
  </argument>
3159
  </method>
3160
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="942" package="Media Library Assistant">
3161
  <name>mla_custom_field_support</name>
3162
  <full_name>mla_custom_field_support</full_name>
3163
- <docblock line="933">
3164
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
3165
  <long-description><![CDATA[]]></long-description>
3166
- <tag line="933" name="since" description="1.10"/>
3167
- <tag line="933" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
3168
  <type by_reference="false">string</type>
3169
  </tag>
3170
- <tag line="933" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
3171
  <type by_reference="false">array</type>
3172
  </tag>
3173
  </docblock>
3174
- <argument line="942">
3175
  <name>$support_type</name>
3176
  <default><![CDATA['default_columns']]></default>
3177
  <type/>
3178
  </argument>
3179
  </method>
3180
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="988" package="Media Library Assistant">
3181
  <name>_evaluate_file_information</name>
3182
  <full_name>_evaluate_file_information</full_name>
3183
- <docblock line="976">
3184
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
3185
  <long-description><![CDATA[]]></long-description>
3186
- <tag line="976" name="since" description="1.10"/>
3187
- <tag line="976" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
3188
  <type by_reference="false">string</type>
3189
  </tag>
3190
- <tag line="976" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
3191
  <type by_reference="false">array</type>
3192
  </tag>
3193
- <tag line="976" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
3194
  <type by_reference="false">array</type>
3195
  </tag>
3196
- <tag line="976" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
3197
  <type by_reference="false">integer</type>
3198
  </tag>
3199
- <tag line="976" name="return" description="absolute_path, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
3200
  <type by_reference="false">array</type>
3201
  </tag>
3202
  </docblock>
3203
- <argument line="988">
3204
  <name>$upload_dir</name>
3205
  <default><![CDATA[]]></default>
3206
  <type/>
3207
  </argument>
3208
- <argument line="988">
3209
  <name>$wp_attached_files</name>
3210
  <default><![CDATA[]]></default>
3211
  <type/>
3212
  </argument>
3213
- <argument line="988">
3214
  <name>$wp_attachment_metadata</name>
3215
  <default><![CDATA[]]></default>
3216
  <type/>
3217
  </argument>
3218
- <argument line="988">
3219
  <name>$post_id</name>
3220
  <default><![CDATA[]]></default>
3221
  <type/>
3222
  </argument>
3223
  </method>
3224
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1061" package="Media Library Assistant">
3225
  <name>_evaluate_data_source</name>
3226
  <full_name>_evaluate_data_source</full_name>
3227
- <docblock line="1048">
3228
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
3229
  <long-description><![CDATA[]]></long-description>
3230
- <tag line="1048" name="since" description="1.10"/>
3231
- <tag line="1048" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
3232
  <type by_reference="false">integer</type>
3233
  </tag>
3234
- <tag line="1048" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
3235
  <type by_reference="false">string</type>
3236
  </tag>
3237
- <tag line="1048" name="param" description="data source name" type="string" variable="$data_source">
3238
  <type by_reference="false">string</type>
3239
  </tag>
3240
- <tag line="1048" name="param" description="desired results format, default 'native'" type="string" variable="$format">
3241
  <type by_reference="false">string</type>
3242
  </tag>
3243
- <tag line="1048" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
3244
  <type by_reference="false">array</type>
3245
  </tag>
3246
- <tag line="1048" name="return" description="data source value" type="string">
3247
  <type by_reference="false">string</type>
3248
  </tag>
3249
  </docblock>
3250
- <argument line="1061">
3251
  <name>$post_id</name>
3252
  <default><![CDATA[]]></default>
3253
  <type/>
3254
  </argument>
3255
- <argument line="1061">
3256
  <name>$category</name>
3257
  <default><![CDATA[]]></default>
3258
  <type/>
3259
  </argument>
3260
- <argument line="1061">
3261
  <name>$data_source</name>
3262
  <default><![CDATA[]]></default>
3263
  <type/>
3264
  </argument>
3265
- <argument line="1061">
3266
  <name>$format</name>
3267
  <default><![CDATA['native']]></default>
3268
  <type/>
3269
  </argument>
3270
- <argument line="1061">
3271
  <name>$attachment_metadata</name>
3272
  <default><![CDATA[NULL]]></default>
3273
  <type/>
3274
  </argument>
3275
  </method>
3276
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1301" package="Media Library Assistant">
3277
  <name>mla_evaluate_custom_field_mapping</name>
3278
  <full_name>mla_evaluate_custom_field_mapping</full_name>
3279
- <docblock line="1289">
3280
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
3281
  <long-description><![CDATA[]]></long-description>
3282
- <tag line="1289" name="since" description="1.10"/>
3283
- <tag line="1289" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
3284
  <type by_reference="false">integer</type>
3285
  </tag>
3286
- <tag line="1289" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
3287
  <type by_reference="false">string</type>
3288
  </tag>
3289
- <tag line="1289" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
3290
  <type by_reference="false">array</type>
3291
  </tag>
3292
- <tag line="1289" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
3293
  <type by_reference="false">array</type>
3294
  </tag>
3295
- <tag line="1289" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
3296
  <type by_reference="false">array</type>
3297
  </tag>
3298
  </docblock>
3299
- <argument line="1301">
3300
  <name>$post_id</name>
3301
  <default><![CDATA[]]></default>
3302
  <type/>
3303
  </argument>
3304
- <argument line="1301">
3305
  <name>$category</name>
3306
  <default><![CDATA[]]></default>
3307
  <type/>
3308
  </argument>
3309
- <argument line="1301">
3310
  <name>$settings</name>
3311
  <default><![CDATA[NULL]]></default>
3312
  <type/>
3313
  </argument>
3314
- <argument line="1301">
3315
  <name>$attachment_metadata</name>
3316
  <default><![CDATA[NULL]]></default>
3317
  <type/>
3318
  </argument>
3319
  </method>
3320
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1337" package="Media Library Assistant">
3321
  <name>_compose_custom_field_option_list</name>
3322
  <full_name>_compose_custom_field_option_list</full_name>
3323
- <docblock line="1327">
3324
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
3325
  <long-description><![CDATA[]]></long-description>
3326
- <tag line="1327" name="since" description="1.10"/>
3327
- <tag line="1327" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3328
- <tag line="1327" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
3329
  <type by_reference="false">string</type>
3330
  </tag>
3331
- <tag line="1327" name="return" description="HTML markup with select field options" type="string">
3332
  <type by_reference="false">string</type>
3333
  </tag>
3334
  </docblock>
3335
- <argument line="1337">
3336
  <name>$selection</name>
3337
  <default><![CDATA['none']]></default>
3338
  <type/>
3339
  </argument>
3340
  </method>
3341
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1412" package="Media Library Assistant">
3342
  <name>_compose_data_source_option_list</name>
3343
  <full_name>_compose_data_source_option_list</full_name>
3344
- <docblock line="1402">
3345
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
3346
  <long-description><![CDATA[]]></long-description>
3347
- <tag line="1402" name="since" description="1.10"/>
3348
- <tag line="1402" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3349
- <tag line="1402" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
3350
  <type by_reference="false">string</type>
3351
  </tag>
3352
- <tag line="1402" name="return" description="HTML markup with select field options" type="string">
3353
  <type by_reference="false">string</type>
3354
  </tag>
3355
  </docblock>
3356
- <argument line="1412">
3357
  <name>$selection</name>
3358
  <default><![CDATA['none']]></default>
3359
  <type/>
3360
  </argument>
3361
  </method>
3362
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1463" package="Media Library Assistant">
3363
  <name>_update_custom_field_mapping</name>
3364
  <full_name>_update_custom_field_mapping</full_name>
3365
- <docblock line="1453">
3366
  <description><![CDATA[Update custom field mappings]]></description>
3367
  <long-description><![CDATA[]]></long-description>
3368
- <tag line="1453" name="since" description="1.10"/>
3369
- <tag line="1453" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
3370
  <type by_reference="false">array</type>
3371
  </tag>
3372
- <tag line="1453" name="param" description="new values" type="array" variable="$new_values">
3373
  <type by_reference="false">array</type>
3374
  </tag>
3375
- <tag line="1453" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3376
  <type by_reference="false">array</type>
3377
  </tag>
3378
  </docblock>
3379
- <argument line="1463">
3380
  <name>$current_values</name>
3381
  <default><![CDATA[]]></default>
3382
  <type/>
3383
  </argument>
3384
- <argument line="1463">
3385
  <name>$new_values</name>
3386
  <default><![CDATA[]]></default>
3387
  <type/>
3388
  </argument>
3389
  </method>
3390
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1619" package="Media Library Assistant">
3391
  <name>mla_custom_field_option_handler</name>
3392
  <full_name>mla_custom_field_option_handler</full_name>
3393
- <docblock line="1606">
3394
  <description><![CDATA[Render and manage custom field mapping options]]></description>
3395
  <long-description><![CDATA[]]></long-description>
3396
- <tag line="1606" name="since" description="1.10"/>
3397
- <tag line="1606" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3398
- <tag line="1606" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
3399
  <type by_reference="false">string</type>
3400
  </tag>
3401
- <tag line="1606" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
3402
  <type by_reference="false">string</type>
3403
  </tag>
3404
- <tag line="1606" name="param" description="option parameters" type="array" variable="$value">
3405
  <type by_reference="false">array</type>
3406
  </tag>
3407
- <tag line="1606" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
3408
  <type by_reference="false">array</type>
3409
  </tag>
3410
- <tag line="1606" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
3411
  <type by_reference="false">string</type>
3412
  </tag>
3413
  </docblock>
3414
- <argument line="1619">
3415
  <name>$action</name>
3416
  <default><![CDATA[]]></default>
3417
  <type/>
3418
  </argument>
3419
- <argument line="1619">
3420
  <name>$key</name>
3421
  <default><![CDATA[]]></default>
3422
  <type/>
3423
  </argument>
3424
- <argument line="1619">
3425
  <name>$value</name>
3426
  <default><![CDATA[]]></default>
3427
  <type/>
3428
  </argument>
3429
- <argument line="1619">
3430
  <name>$args</name>
3431
  <default><![CDATA[null]]></default>
3432
  <type/>
3433
  </argument>
3434
  </method>
3435
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1763" package="Media Library Assistant">
3436
  <name>mla_evaluate_iptc_exif_mapping</name>
3437
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
3438
- <docblock line="1752">
3439
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
3440
  <long-description><![CDATA[]]></long-description>
3441
- <tag line="1752" name="since" description="1.00"/>
3442
- <tag line="1752" name="param" description="post object with current values" type="object" variable="$post">
3443
  <type by_reference="false">object</type>
3444
  </tag>
3445
- <tag line="1752" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
3446
  <type by_reference="false">string</type>
3447
  </tag>
3448
- <tag line="1752" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
3449
  <type by_reference="false">array</type>
3450
  </tag>
3451
- <tag line="1752" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
3452
  <type by_reference="false">array</type>
3453
  </tag>
3454
  </docblock>
3455
- <argument line="1763">
3456
  <name>$post</name>
3457
  <default><![CDATA[]]></default>
3458
  <type/>
3459
  </argument>
3460
- <argument line="1763">
3461
  <name>$category</name>
3462
  <default><![CDATA[]]></default>
3463
  <type/>
3464
  </argument>
3465
- <argument line="1763">
3466
  <name>$settings</name>
3467
  <default><![CDATA[NULL]]></default>
3468
  <type/>
3469
  </argument>
3470
  </method>
3471
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1924" package="Media Library Assistant">
3472
  <name>_compose_iptc_option_list</name>
3473
  <full_name>_compose_iptc_option_list</full_name>
3474
- <docblock line="1914">
3475
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
3476
  <long-description><![CDATA[]]></long-description>
3477
- <tag line="1914" name="since" description="1.00"/>
3478
- <tag line="1914" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3479
- <tag line="1914" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
3480
  <type by_reference="false">string</type>
3481
  </tag>
3482
- <tag line="1914" name="return" description="HTML markup with select field options" type="string">
3483
  <type by_reference="false">string</type>
3484
  </tag>
3485
  </docblock>
3486
- <argument line="1924">
3487
  <name>$selection</name>
3488
  <default><![CDATA['none']]></default>
3489
  <type/>
3490
  </argument>
3491
  </method>
3492
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1957" package="Media Library Assistant">
3493
  <name>_compose_parent_option_list</name>
3494
  <full_name>_compose_parent_option_list</full_name>
3495
- <docblock line="1946">
3496
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
3497
  <long-description><![CDATA[]]></long-description>
3498
- <tag line="1946" name="since" description="1.00"/>
3499
- <tag line="1946" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3500
- <tag line="1946" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
3501
  <type by_reference="false">string</type>
3502
  </tag>
3503
- <tag line="1946" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
3504
  <type by_reference="false">integer</type>
3505
  </tag>
3506
- <tag line="1946" name="return" description="HTML markup with select field options" type="string">
3507
  <type by_reference="false">string</type>
3508
  </tag>
3509
  </docblock>
3510
- <argument line="1957">
3511
  <name>$taxonomy</name>
3512
  <default><![CDATA[]]></default>
3513
  <type/>
3514
  </argument>
3515
- <argument line="1957">
3516
  <name>$selection</name>
3517
  <default><![CDATA[0]]></default>
3518
  <type/>
3519
  </argument>
3520
  </method>
3521
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1991" package="Media Library Assistant">
3522
  <name>_update_iptc_exif_standard_mapping</name>
3523
  <full_name>_update_iptc_exif_standard_mapping</full_name>
3524
- <docblock line="1981">
3525
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
3526
  <long-description><![CDATA[]]></long-description>
3527
- <tag line="1981" name="since" description="1.00"/>
3528
- <tag line="1981" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
3529
  <type by_reference="false">array</type>
3530
  </tag>
3531
- <tag line="1981" name="param" description="new values" type="array" variable="$new_values">
3532
  <type by_reference="false">array</type>
3533
  </tag>
3534
- <tag line="1981" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3535
  <type by_reference="false">array</type>
3536
  </tag>
3537
  </docblock>
3538
- <argument line="1991">
3539
  <name>$current_values</name>
3540
  <default><![CDATA[]]></default>
3541
  <type/>
3542
  </argument>
3543
- <argument line="1991">
3544
  <name>$new_values</name>
3545
  <default><![CDATA[]]></default>
3546
  <type/>
3547
  </argument>
3548
  </method>
3549
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2070" package="Media Library Assistant">
3550
  <name>_update_iptc_exif_taxonomy_mapping</name>
3551
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
3552
- <docblock line="2060">
3553
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
3554
  <long-description><![CDATA[]]></long-description>
3555
- <tag line="2060" name="since" description="1.00"/>
3556
- <tag line="2060" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
3557
  <type by_reference="false">array</type>
3558
  </tag>
3559
- <tag line="2060" name="param" description="new values" type="array" variable="$new_values">
3560
  <type by_reference="false">array</type>
3561
  </tag>
3562
- <tag line="2060" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3563
  <type by_reference="false">array</type>
3564
  </tag>
3565
  </docblock>
3566
- <argument line="2070">
3567
  <name>$current_values</name>
3568
  <default><![CDATA[]]></default>
3569
  <type/>
3570
  </argument>
3571
- <argument line="2070">
3572
  <name>$new_values</name>
3573
  <default><![CDATA[]]></default>
3574
  <type/>
3575
  </argument>
3576
  </method>
3577
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2162" package="Media Library Assistant">
3578
  <name>_update_iptc_exif_custom_mapping</name>
3579
  <full_name>_update_iptc_exif_custom_mapping</full_name>
3580
- <docblock line="2152">
3581
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
3582
  <long-description><![CDATA[]]></long-description>
3583
- <tag line="2152" name="since" description="1.00"/>
3584
- <tag line="2152" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
3585
  <type by_reference="false">array</type>
3586
  </tag>
3587
- <tag line="2152" name="param" description="new values" type="array" variable="$new_values">
3588
  <type by_reference="false">array</type>
3589
  </tag>
3590
- <tag line="2152" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3591
  <type by_reference="false">array</type>
3592
  </tag>
3593
  </docblock>
3594
- <argument line="2162">
3595
  <name>$current_values</name>
3596
  <default><![CDATA[]]></default>
3597
  <type/>
3598
  </argument>
3599
- <argument line="2162">
3600
  <name>$new_values</name>
3601
  <default><![CDATA[]]></default>
3602
  <type/>
3603
  </argument>
3604
  </method>
3605
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2258" package="Media Library Assistant">
3606
  <name>_get_custom_field_names</name>
3607
  <full_name>_get_custom_field_names</full_name>
3608
- <docblock line="2251">
3609
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
3610
  <long-description><![CDATA[]]></long-description>
3611
- <tag line="2251" name="since" description="1.00"/>
3612
- <tag line="2251" name="return" description="Custom field names from the postmeta table" type="array">
3613
  <type by_reference="false">array</type>
3614
  </tag>
3615
  </docblock>
3616
  </method>
3617
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2287" package="Media Library Assistant">
3618
  <name>mla_iptc_exif_option_handler</name>
3619
  <full_name>mla_iptc_exif_option_handler</full_name>
3620
- <docblock line="2274">
3621
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
3622
  <long-description><![CDATA[]]></long-description>
3623
- <tag line="2274" name="since" description="1.00"/>
3624
- <tag line="2274" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3625
- <tag line="2274" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
3626
  <type by_reference="false">string</type>
3627
  </tag>
3628
- <tag line="2274" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
3629
  <type by_reference="false">string</type>
3630
  </tag>
3631
- <tag line="2274" name="param" description="option parameters" type="array" variable="$value">
3632
  <type by_reference="false">array</type>
3633
  </tag>
3634
- <tag line="2274" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
3635
  <type by_reference="false">array</type>
3636
  </tag>
3637
- <tag line="2274" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
3638
  <type by_reference="false">string</type>
3639
  </tag>
3640
  </docblock>
3641
- <argument line="2287">
3642
  <name>$action</name>
3643
  <default><![CDATA[]]></default>
3644
  <type/>
3645
  </argument>
3646
- <argument line="2287">
3647
  <name>$key</name>
3648
  <default><![CDATA[]]></default>
3649
  <type/>
3650
  </argument>
3651
- <argument line="2287">
3652
  <name>$value</name>
3653
  <default><![CDATA[]]></default>
3654
  <type/>
3655
  </argument>
3656
- <argument line="2287">
3657
  <name>$args</name>
3658
  <default><![CDATA[null]]></default>
3659
  <type/>
@@ -3661,7 +3989,7 @@ settings are being updated or reset.]]></description>
3661
  </method>
3662
  </class>
3663
  </file>
3664
- <file path="includes\class-mla-settings.php" hash="20869f54ba7d48294d76908a838c07d5" package="Media Library Assistant">
3665
  <docblock line="2">
3666
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
3667
  <long-description><![CDATA[]]></long-description>
@@ -3898,229 +4226,229 @@ add settings link in the Plugins section entry for MLA.]]></description>
3898
  </tag>
3899
  </docblock>
3900
  </method>
3901
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="516" package="Media Library Assistant">
3902
  <name>_compose_mla_gallery_tab</name>
3903
  <full_name>_compose_mla_gallery_tab</full_name>
3904
- <docblock line="508">
3905
  <description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
3906
  <long-description><![CDATA[]]></long-description>
3907
- <tag line="508" name="since" description="0.80"/>
3908
- <tag line="508" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
3909
- <tag line="508" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
3910
  <type by_reference="false">array</type>
3911
  </tag>
3912
  </docblock>
3913
  </method>
3914
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="815" package="Media Library Assistant">
3915
  <name>_compose_custom_field_tab</name>
3916
  <full_name>_compose_custom_field_tab</full_name>
3917
- <docblock line="807">
3918
  <description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
3919
  <long-description><![CDATA[]]></long-description>
3920
- <tag line="807" name="since" description="1.10"/>
3921
- <tag line="807" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
3922
- <tag line="807" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
3923
  <type by_reference="false">array</type>
3924
  </tag>
3925
  </docblock>
3926
  </method>
3927
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="920" package="Media Library Assistant">
3928
  <name>_compose_iptc_exif_tab</name>
3929
  <full_name>_compose_iptc_exif_tab</full_name>
3930
- <docblock line="912">
3931
  <description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
3932
  <long-description><![CDATA[]]></long-description>
3933
- <tag line="912" name="since" description="1.00"/>
3934
- <tag line="912" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
3935
- <tag line="912" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
3936
  <type by_reference="false">array</type>
3937
  </tag>
3938
  </docblock>
3939
  </method>
3940
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="992" package="Media Library Assistant">
3941
  <name>_compose_documentation_tab</name>
3942
  <full_name>_compose_documentation_tab</full_name>
3943
- <docblock line="984">
3944
  <description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
3945
  <long-description><![CDATA[]]></long-description>
3946
- <tag line="984" name="since" description="0.80"/>
3947
- <tag line="984" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
3948
- <tag line="984" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
3949
  <type by_reference="false">array</type>
3950
  </tag>
3951
  </docblock>
3952
  </method>
3953
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1011" package="Media Library Assistant">
3954
  <name>mla_render_settings_page</name>
3955
  <full_name>mla_render_settings_page</full_name>
3956
- <docblock line="1004">
3957
  <description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
3958
  <long-description><![CDATA[]]></long-description>
3959
- <tag line="1004" name="since" description="0.1"/>
3960
- <tag line="1004" name="return" description="Echoes HTML markup for the Settings subpage" type="void">
3961
  <type by_reference="false">void</type>
3962
  </tag>
3963
  </docblock>
3964
  </method>
3965
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1061" package="Media Library Assistant">
3966
  <name>_save_gallery_settings</name>
3967
  <full_name>_save_gallery_settings</full_name>
3968
- <docblock line="1052">
3969
  <description><![CDATA[Save MLA Gallery settings to the options table]]></description>
3970
  <long-description><![CDATA[]]></long-description>
3971
- <tag line="1052" name="since" description="0.80"/>
3972
- <tag line="1052" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
3973
- <tag line="1052" name="return" description="Message(s) reflecting the results of the operation" type="array">
3974
  <type by_reference="false">array</type>
3975
  </tag>
3976
  </docblock>
3977
  </method>
3978
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1294" package="Media Library Assistant">
3979
  <name>_process_custom_field_mapping</name>
3980
  <full_name>_process_custom_field_mapping</full_name>
3981
- <docblock line="1283">
3982
  <description><![CDATA[Process custom field settings against all image attachments
3983
  without saving the settings to the mla_option]]></description>
3984
  <long-description><![CDATA[]]></long-description>
3985
- <tag line="1283" name="since" description="1.10"/>
3986
- <tag line="1283" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
3987
- <tag line="1283" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
3988
  <type by_reference="false">array</type>
3989
  </tag>
3990
- <tag line="1283" name="return" description="Message(s) reflecting the results of the operation" type="array">
3991
  <type by_reference="false">array</type>
3992
  </tag>
3993
  </docblock>
3994
- <argument line="1294">
3995
  <name>$settings</name>
3996
  <default><![CDATA[NULL]]></default>
3997
  <type/>
3998
  </argument>
3999
  </method>
4000
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1346" package="Media Library Assistant">
4001
  <name>_delete_custom_field</name>
4002
  <full_name>_delete_custom_field</full_name>
4003
- <docblock line="1337">
4004
  <description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
4005
  <long-description><![CDATA[]]></long-description>
4006
- <tag line="1337" name="since" description="1.10"/>
4007
- <tag line="1337" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
4008
  <type by_reference="false">array</type>
4009
  </tag>
4010
- <tag line="1337" name="return" description="Message(s) reflecting the results of the operation" type="array">
4011
  <type by_reference="false">array</type>
4012
  </tag>
4013
  </docblock>
4014
- <argument line="1346">
4015
  <name>$value</name>
4016
  <default><![CDATA[]]></default>
4017
  <type/>
4018
  </argument>
4019
  </method>
4020
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1370" package="Media Library Assistant">
4021
  <name>_save_custom_field_settings</name>
4022
  <full_name>_save_custom_field_settings</full_name>
4023
- <docblock line="1360">
4024
  <description><![CDATA[Save custom field settings to the options table]]></description>
4025
  <long-description><![CDATA[]]></long-description>
4026
- <tag line="1360" name="since" description="1.10"/>
4027
- <tag line="1360" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4028
- <tag line="1360" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
4029
  <type by_reference="false">array</type>
4030
  </tag>
4031
- <tag line="1360" name="return" description="Message(s) reflecting the results of the operation" type="array">
4032
  <type by_reference="false">array</type>
4033
  </tag>
4034
  </docblock>
4035
- <argument line="1370">
4036
  <name>$new_values</name>
4037
  <default><![CDATA[NULL]]></default>
4038
  <type/>
4039
  </argument>
4040
  </method>
4041
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1410" package="Media Library Assistant">
4042
  <name>_process_iptc_exif_standard</name>
4043
  <full_name>_process_iptc_exif_standard</full_name>
4044
- <docblock line="1400">
4045
  <description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
4046
  without saving the settings to the mla_option]]></description>
4047
  <long-description><![CDATA[]]></long-description>
4048
- <tag line="1400" name="since" description="1.00"/>
4049
- <tag line="1400" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4050
- <tag line="1400" name="return" description="Message(s) reflecting the results of the operation" type="array">
4051
  <type by_reference="false">array</type>
4052
  </tag>
4053
  </docblock>
4054
  </method>
4055
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1454" package="Media Library Assistant">
4056
  <name>_process_iptc_exif_taxonomy</name>
4057
  <full_name>_process_iptc_exif_taxonomy</full_name>
4058
- <docblock line="1444">
4059
  <description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
4060
  without saving the settings to the mla_option]]></description>
4061
  <long-description><![CDATA[]]></long-description>
4062
- <tag line="1444" name="since" description="1.00"/>
4063
- <tag line="1444" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4064
- <tag line="1444" name="return" description="Message(s) reflecting the results of the operation" type="array">
4065
  <type by_reference="false">array</type>
4066
  </tag>
4067
  </docblock>
4068
  </method>
4069
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1499" package="Media Library Assistant">
4070
  <name>_process_iptc_exif_custom</name>
4071
  <full_name>_process_iptc_exif_custom</full_name>
4072
- <docblock line="1489">
4073
  <description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
4074
  without saving the settings to the mla_option]]></description>
4075
  <long-description><![CDATA[]]></long-description>
4076
- <tag line="1489" name="since" description="1.00"/>
4077
- <tag line="1489" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4078
- <tag line="1489" name="return" description="Message(s) reflecting the results of the operation" type="array">
4079
  <type by_reference="false">array</type>
4080
  </tag>
4081
  </docblock>
4082
  </method>
4083
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1546" package="Media Library Assistant">
4084
  <name>_save_iptc_exif_settings</name>
4085
  <full_name>_save_iptc_exif_settings</full_name>
4086
- <docblock line="1537">
4087
  <description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
4088
  <long-description><![CDATA[]]></long-description>
4089
- <tag line="1537" name="since" description="1.00"/>
4090
- <tag line="1537" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4091
- <tag line="1537" name="return" description="Message(s) reflecting the results of the operation" type="array">
4092
  <type by_reference="false">array</type>
4093
  </tag>
4094
  </docblock>
4095
  </method>
4096
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1583" package="Media Library Assistant">
4097
  <name>_save_general_settings</name>
4098
  <full_name>_save_general_settings</full_name>
4099
- <docblock line="1574">
4100
  <description><![CDATA[Save General settings to the options table]]></description>
4101
  <long-description><![CDATA[]]></long-description>
4102
- <tag line="1574" name="since" description="0.1"/>
4103
- <tag line="1574" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4104
- <tag line="1574" name="return" description="Message(s) reflecting the results of the operation" type="array">
4105
  <type by_reference="false">array</type>
4106
  </tag>
4107
  </docblock>
4108
  </method>
4109
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1641" package="Media Library Assistant">
4110
  <name>_reset_general_settings</name>
4111
  <full_name>_reset_general_settings</full_name>
4112
- <docblock line="1634">
4113
  <description><![CDATA[Delete saved settings, restoring default values]]></description>
4114
  <long-description><![CDATA[]]></long-description>
4115
- <tag line="1634" name="since" description="0.1"/>
4116
- <tag line="1634" name="return" description="Message(s) reflecting the results of the operation" type="array">
4117
  <type by_reference="false">array</type>
4118
  </tag>
4119
  </docblock>
4120
  </method>
4121
  </class>
4122
  </file>
4123
- <file path="includes\class-mla-shortcodes.php" hash="55de944653997eb9d986ae88a122d974" package="Media Library Assistant">
4124
  <docblock line="2">
4125
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
4126
  <long-description><![CDATA[]]></long-description>
@@ -4161,83 +4489,84 @@ without saving the settings to the mla_option]]></description>
4161
  </tag>
4162
  </docblock>
4163
  </property>
4164
- <property final="false" static="true" visibility="private" line="158" namespace="global" package="Media Library Assistant">
4165
  <name>$query_parameters</name>
4166
  <default><![CDATA[array()]]></default>
4167
- <docblock line="145">
4168
  <description><![CDATA[WP_Query filter "parameters"]]></description>
4169
- <long-description><![CDATA[<p>This array defines parameters for the query's where filter, mla_shortcode_query_posts_where_filter.
 
4170
  The parameters are set up in the mla_get_shortcode_attachments function, and
4171
  any further logic required to translate those values is contained in the filter.</p>
4172
 
4173
- <p>Array index values are: post_parent</p>]]></long-description>
4174
- <tag line="145" name="since" description="1.13"/>
4175
- <tag line="145" name="var" description="" type="array">
4176
  <type by_reference="false">array</type>
4177
  </tag>
4178
  </docblock>
4179
  </property>
4180
- <property final="false" static="true" visibility="private" line="1152" namespace="global" package="Media Library Assistant">
4181
  <name>$mla_iptc_records</name>
4182
  <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>
4183
- <docblock line="1142">
4184
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
4185
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
4186
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4187
- <tag line="1142" name="since" description="0.90"/>
4188
- <tag line="1142" name="var" description="" type="array">
4189
  <type by_reference="false">array</type>
4190
  </tag>
4191
  </docblock>
4192
  </property>
4193
- <property final="false" static="true" visibility="public" line="1251" namespace="global" package="Media Library Assistant">
4194
  <name>$mla_iptc_keys</name>
4195
  <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>
4196
- <docblock line="1241">
4197
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
4198
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
4199
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4200
- <tag line="1241" name="since" description="0.90"/>
4201
- <tag line="1241" name="var" description="" type="array">
4202
  <type by_reference="false">array</type>
4203
  </tag>
4204
  </docblock>
4205
  </property>
4206
- <property final="false" static="true" visibility="private" line="1350" namespace="global" package="Media Library Assistant">
4207
  <name>$mla_iptc_descriptions</name>
4208
  <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>
4209
- <docblock line="1340">
4210
  <description><![CDATA[IPTC Dataset descriptions]]></description>
4211
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
4212
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4213
- <tag line="1340" name="since" description="0.90"/>
4214
- <tag line="1340" name="var" description="" type="array">
4215
  <type by_reference="false">array</type>
4216
  </tag>
4217
  </docblock>
4218
  </property>
4219
- <property final="false" static="true" visibility="private" line="1449" namespace="global" package="Media Library Assistant">
4220
  <name>$mla_iptc_formats</name>
4221
  <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>
4222
- <docblock line="1439">
4223
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
4224
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
4225
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
4226
- <tag line="1439" name="since" description="0.90"/>
4227
- <tag line="1439" name="var" description="" type="array">
4228
  <type by_reference="false">array</type>
4229
  </tag>
4230
  </docblock>
4231
  </property>
4232
- <property final="false" static="true" visibility="private" line="1492" namespace="global" package="Media Library Assistant">
4233
  <name>$mla_iptc_image_types</name>
4234
  <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>
4235
- <docblock line="1482">
4236
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
4237
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
4238
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
4239
- <tag line="1482" name="since" description="0.90"/>
4240
- <tag line="1482" name="var" description="" type="array">
4241
  <type by_reference="false">array</type>
4242
  </tag>
4243
  </docblock>
@@ -4266,102 +4595,145 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130,
4266
  </tag>
4267
  </docblock>
4268
  </method>
4269
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="173" package="Media Library Assistant">
4270
  <name>mla_gallery_shortcode</name>
4271
  <full_name>mla_gallery_shortcode</full_name>
4272
- <docblock line="160">
4273
  <description><![CDATA[The MLA Gallery shortcode.]]></description>
4274
  <long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
4275
  page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
4276
  Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
4277
- <tag line="160" name="since" description=".50"/>
4278
- <tag line="160" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
4279
  <type by_reference="false">array</type>
4280
  </tag>
4281
- <tag line="160" name="return" description="HTML content to display gallery." type="string">
4282
  <type by_reference="false">string</type>
4283
  </tag>
4284
  </docblock>
4285
- <argument line="173">
4286
  <name>$attr</name>
4287
  <default><![CDATA[]]></default>
4288
  <type/>
4289
  </argument>
4290
  </method>
4291
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="744" package="Media Library Assistant">
4292
  <name>_sanitize_query_specification</name>
4293
  <full_name>_sanitize_query_specification</full_name>
4294
- <docblock line="735">
4295
  <description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
4296
  <long-description><![CDATA[]]></long-description>
4297
- <tag line="735" name="since" description="1.14"/>
4298
- <tag line="735" name="param" description="query specification; PHP nested arrays" type="string" variable="$specification">
4299
  <type by_reference="false">string</type>
4300
  </tag>
4301
- <tag line="735" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
4302
  <type by_reference="false">string</type>
4303
  </tag>
4304
  </docblock>
4305
- <argument line="744">
4306
  <name>$specification</name>
4307
  <default><![CDATA[]]></default>
4308
  <type/>
4309
  </argument>
4310
  </method>
4311
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="760" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4312
  <name>mla_get_shortcode_attachments</name>
4313
  <full_name>mla_get_shortcode_attachments</full_name>
4314
- <docblock line="750">
4315
  <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
4316
  <long-description><![CDATA[]]></long-description>
4317
- <tag line="750" name="since" description=".50"/>
4318
- <tag line="750" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
4319
  <type by_reference="false">int</type>
4320
  </tag>
4321
- <tag line="750" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
4322
  <type by_reference="false">array</type>
4323
  </tag>
4324
- <tag line="750" name="return" description="List of attachments returned from WP_Query" type="array">
4325
  <type by_reference="false">array</type>
4326
  </tag>
4327
  </docblock>
4328
- <argument line="760">
4329
  <name>$post_parent</name>
4330
  <default><![CDATA[]]></default>
4331
  <type/>
4332
  </argument>
4333
- <argument line="760">
4334
  <name>$attr</name>
4335
  <default><![CDATA[]]></default>
4336
  <type/>
4337
  </argument>
4338
  </method>
4339
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1113" package="Media Library Assistant">
4340
  <name>mla_shortcode_query_posts_where_filter</name>
4341
  <full_name>mla_shortcode_query_posts_where_filter</full_name>
4342
- <docblock line="1099">
4343
  <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
4344
  <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
4345
  phrase to circumvent subsequent Role Scoper modification of the clause.
4346
  Handles post_parent "any" and "none" cases.
4347
  Defined as public because it's a filter.</p>]]></long-description>
4348
- <tag line="1099" name="since" description="0.70"/>
4349
- <tag line="1099" name="param" description="query clause before modification" type="string" variable="$where_clause">
4350
  <type by_reference="false">string</type>
4351
  </tag>
4352
- <tag line="1099" name="return" description="query clause after modification" type="string">
4353
  <type by_reference="false">string</type>
4354
  </tag>
4355
  </docblock>
4356
- <argument line="1113">
4357
  <name>$where_clause</name>
4358
  <default><![CDATA[]]></default>
4359
  <type/>
4360
  </argument>
4361
  </method>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4362
  </class>
4363
  </file>
4364
- <file path="includes\mla-plugin-loader.php" hash="67befe608935d465414025c9e8653cef" package="Media Library Assistant">
4365
  <docblock line="2">
4366
  <description><![CDATA[Media Library Assistant Plugin Loader]]></description>
4367
  <long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
@@ -4384,6 +4756,9 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
4384
  <include line="74" type="Require Once" package="Media Library Assistant">
4385
  <name/>
4386
  </include>
 
 
 
4387
  <include line="89" type="Require Once" package="Media Library Assistant">
4388
  <name/>
4389
  </include>
@@ -4415,13 +4790,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
4415
  </docblock>
4416
  </function>
4417
  </file>
4418
- <file path="index.php" hash="0e1064fa27228bf901fd75e8f65aaccf" package="Media Library Assistant">
4419
  <docblock line="2">
4420
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
4421
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
4422
  will the rest of the plugin be loaded and run.</p>]]></long-description>
4423
  <tag line="2" name="package" description="Media Library Assistant"/>
4424
- <tag line="2" name="version" description="1.14"/>
4425
  </docblock>
4426
  <include line="105" type="Require Once" package="Media Library Assistant">
4427
  <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="ac1ee7a8f3d0f5db87dce6e95c83a4e2" package="Media Library Assistant">
4
  <docblock line="2">
5
  <description><![CDATA[Database and template file access for MLA needs]]></description>
6
  <long-description><![CDATA[]]></long-description>
40
  </tag>
41
  </docblock>
42
  </property>
43
+ <property final="false" static="true" visibility="private" line="306" namespace="global" package="Media Library Assistant">
44
  <name>$query_parameters</name>
45
  <default><![CDATA[array()]]></default>
46
+ <docblock line="293">
47
  <description><![CDATA[WP_Query filter "parameters"]]></description>
48
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
49
  The parameters are set up in the _prepare_list_table_query function, and
50
  any further logic required to translate those values is contained in the filters.</p>
51
 
52
+ <p>Array index values are: use_postmeta_view, postmeta_key, detached, orderby, order, s, mla_search_connector, mla_search_fields, sentence, exact</p>]]></long-description>
53
+ <tag line="293" name="since" description="0.30"/>
54
+ <tag line="293" name="var" description="" type="array">
55
  <type by_reference="false">array</type>
56
  </tag>
57
  </docblock>
58
  </property>
59
+ <property final="false" static="true" visibility="private" line="1206" namespace="global" package="Media Library Assistant">
60
  <name>$galleries</name>
61
  <default><![CDATA[null]]></default>
62
+ <docblock line="1188">
63
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
64
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
65
  and array(s) of which attachments each [gallery] contains. The arrays are built once
71
  ['parent_type'] 'post' or 'page' or the custom post_type of the gallery parent,
72
  ['query'] contains a string with the arguments of the [gallery],
73
  ['results'] contains an array of post_ids for the objects in the gallery.</p>]]></long-description>
74
+ <tag line="1188" name="since" description="0.70"/>
75
+ <tag line="1188" name="var" description="" type="array">
76
  <type by_reference="false">array</type>
77
  </tag>
78
  </docblock>
79
  </property>
80
+ <property final="false" static="true" visibility="private" line="1219" namespace="global" package="Media Library Assistant">
81
  <name>$mla_galleries</name>
82
  <default><![CDATA[null]]></default>
83
+ <docblock line="1208">
84
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
85
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
86
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
87
  each page load and cached for subsequent calls.</p>]]></long-description>
88
+ <tag line="1208" name="since" description="0.70"/>
89
+ <tag line="1208" name="var" description="" type="array">
90
  <type by_reference="false">array</type>
91
  </tag>
92
  </docblock>
238
  <type/>
239
  </argument>
240
  </method>
241
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="288" package="Media Library Assistant">
242
+ <name>mla_query_media_modal_items</name>
243
+ <full_name>mla_query_media_modal_items</full_name>
244
+ <docblock line="275">
245
+ <description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
246
+ <long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
247
+ <tag line="275" name="since" description="1.20"/>
248
+ <tag line="275" name="param" description="query parameters from Media Manager" type="array" variable="$request">
249
+ <type by_reference="false">array</type>
250
+ </tag>
251
+ <tag line="275" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
252
+ <type by_reference="false">int</type>
253
+ </tag>
254
+ <tag line="275" name="param" description="number of rows on each page" type="int" variable="$count">
255
+ <type by_reference="false">int</type>
256
+ </tag>
257
+ <tag line="275" name="return" description="attachment objects (posts)" type="array">
258
+ <type by_reference="false">array</type>
259
+ </tag>
260
+ </docblock>
261
+ <argument line="288">
262
+ <name>$request</name>
263
+ <default><![CDATA[]]></default>
264
+ <type/>
265
+ </argument>
266
+ <argument line="288">
267
+ <name>$offset</name>
268
+ <default><![CDATA[]]></default>
269
+ <type/>
270
+ </argument>
271
+ <argument line="288">
272
+ <name>$count</name>
273
+ <default><![CDATA[]]></default>
274
+ <type/>
275
+ </argument>
276
+ </method>
277
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="322" package="Media Library Assistant">
278
  <name>_prepare_list_table_query</name>
279
  <full_name>_prepare_list_table_query</full_name>
280
+ <docblock line="308">
281
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
282
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
283
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
284
+ <tag line="308" name="since" description="0.1"/>
285
+ <tag line="308" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
286
  <type by_reference="false">array</type>
287
  </tag>
288
+ <tag line="308" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
289
  <type by_reference="false">int</type>
290
  </tag>
291
+ <tag line="308" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
292
  <type by_reference="false">int</type>
293
  </tag>
294
+ <tag line="308" name="return" description="revised arguments suitable for WP_Query" type="array">
295
  <type by_reference="false">array</type>
296
  </tag>
297
  </docblock>
298
+ <argument line="322">
299
  <name>$raw_request</name>
300
  <default><![CDATA[]]></default>
301
  <type/>
302
  </argument>
303
+ <argument line="322">
304
  <name>$offset</name>
305
  <default><![CDATA[0]]></default>
306
  <type/>
307
  </argument>
308
+ <argument line="322">
309
  <name>$count</name>
310
  <default><![CDATA[0]]></default>
311
  <type/>
312
  </argument>
313
  </method>
314
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="575" package="Media Library Assistant">
315
  <name>_execute_list_table_query</name>
316
  <full_name>_execute_list_table_query</full_name>
317
+ <docblock line="566">
318
  <description><![CDATA[Add filters, run query, remove filters]]></description>
319
  <long-description><![CDATA[]]></long-description>
320
+ <tag line="566" name="since" description="0.30"/>
321
+ <tag line="566" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
322
  <type by_reference="false">array</type>
323
  </tag>
324
+ <tag line="566" name="return" description="WP_Query object with query results" type="object">
325
  <type by_reference="false">object</type>
326
  </tag>
327
  </docblock>
328
+ <argument line="575">
329
  <name>$request</name>
330
  <default><![CDATA[]]></default>
331
  <type/>
332
  </argument>
333
  </method>
334
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="629" package="Media Library Assistant">
335
  <name>mla_query_posts_search_filter</name>
336
  <full_name>mla_query_posts_search_filter</full_name>
337
+ <docblock line="617">
338
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
339
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
340
+ <tag line="617" name="since" description="0.60"/>
341
+ <tag line="617" name="param" description="query clause before modification" type="string" variable="$search_string">
342
  <type by_reference="false">string</type>
343
  </tag>
344
+ <tag line="617" name="param" description="WP_Query object" type="object" variable="$query_object">
345
  <type by_reference="false">object</type>
346
  </tag>
347
+ <tag line="617" name="return" description="query clause after keyword search addition" type="string">
348
  <type by_reference="false">string</type>
349
  </tag>
350
  </docblock>
351
+ <argument line="629">
352
  <name>$search_string</name>
353
  <default><![CDATA[]]></default>
354
  <type/>
355
  </argument>
356
+ <argument line="629">
357
  <name>$query_object</name>
358
  <default><![CDATA[]]></default>
359
  <type/>
360
  </argument>
361
  </method>
362
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="710" package="Media Library Assistant">
363
  <name>mla_query_posts_join_filter</name>
364
  <full_name>mla_query_posts_join_filter</full_name>
365
+ <docblock line="699">
366
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on ALT Text]]></description>
367
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
368
+ <tag line="699" name="since" description="0.30"/>
369
+ <tag line="699" name="param" description="query clause before modification" type="string" variable="$join_clause">
370
  <type by_reference="false">string</type>
371
  </tag>
372
+ <tag line="699" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
373
  <type by_reference="false">string</type>
374
  </tag>
375
  </docblock>
376
+ <argument line="710">
377
  <name>$join_clause</name>
378
  <default><![CDATA[]]></default>
379
  <type/>
380
  </argument>
381
  </method>
382
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="737" package="Media Library Assistant">
383
  <name>mla_query_posts_where_filter</name>
384
  <full_name>mla_query_posts_where_filter</full_name>
385
+ <docblock line="725">
386
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
387
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
388
  Defined as public because it's a filter.</p>]]></long-description>
389
+ <tag line="725" name="since" description="0.1"/>
390
+ <tag line="725" name="param" description="query clause before modification" type="string" variable="$where_clause">
391
  <type by_reference="false">string</type>
392
  </tag>
393
+ <tag line="725" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
394
  <type by_reference="false">string</type>
395
  </tag>
396
  </docblock>
397
+ <argument line="737">
398
  <name>$where_clause</name>
399
  <default><![CDATA[]]></default>
400
  <type/>
401
  </argument>
402
  </method>
403
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="758" package="Media Library Assistant">
404
  <name>mla_query_posts_orderby_filter</name>
405
  <full_name>mla_query_posts_orderby_filter</full_name>
406
+ <docblock line="746">
407
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
408
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
409
  Defined as public because it's a filter.</p>]]></long-description>
410
+ <tag line="746" name="since" description="0.30"/>
411
+ <tag line="746" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
412
  <type by_reference="false">string</type>
413
  </tag>
414
+ <tag line="746" name="return" description="updated query clause" type="string">
415
  <type by_reference="false">string</type>
416
  </tag>
417
  </docblock>
418
+ <argument line="758">
419
  <name>$orderby_clause</name>
420
  <default><![CDATA[]]></default>
421
  <type/>
422
  </argument>
423
  </method>
424
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="816" package="Media Library Assistant">
425
  <name>mla_get_attachment_by_id</name>
426
  <full_name>mla_get_attachment_by_id</full_name>
427
+ <docblock line="804">
428
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
429
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
430
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
431
+ <tag line="804" name="since" description="0.1"/>
432
+ <tag line="804" name="uses" description="\global\$post" refers="\global\$post"/>
433
+ <tag line="804" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
434
  <type by_reference="false">int</type>
435
  </tag>
436
+ <tag line="804" name="return" description="NULL on failure else associative array" type="NULL|array">
437
  <type by_reference="false">NULL</type>
438
  <type by_reference="false">array</type>
439
  </tag>
440
  </docblock>
441
+ <argument line="816">
442
  <name>$post_id</name>
443
  <default><![CDATA[]]></default>
444
  <type/>
445
  </argument>
446
  </method>
447
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="861" package="Media Library Assistant">
448
  <name>mla_fetch_attachment_parent_data</name>
449
  <full_name>mla_fetch_attachment_parent_data</full_name>
450
+ <docblock line="852">
451
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
452
  <long-description><![CDATA[]]></long-description>
453
+ <tag line="852" name="since" description="0.1"/>
454
+ <tag line="852" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
455
  <type by_reference="false">int</type>
456
  </tag>
457
+ <tag line="852" name="return" description="Parent information; post_date, post_title and post_type" type="array">
458
  <type by_reference="false">array</type>
459
  </tag>
460
  </docblock>
461
+ <argument line="861">
462
  <name>$parent_id</name>
463
  <default><![CDATA[]]></default>
464
  <type/>
465
  </argument>
466
  </method>
467
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="889" package="Media Library Assistant">
468
  <name>mla_fetch_attachment_metadata</name>
469
  <full_name>mla_fetch_attachment_metadata</full_name>
470
+ <docblock line="876">
471
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
472
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
473
  are stripped out or converted to an 'mla</em>' equivalent. Array data is replaced with
474
  a string containing the first array element.</p>]]></long-description>
475
+ <tag line="876" name="since" description="0.1"/>
476
+ <tag line="876" name="param" description="post ID of attachment" type="int" variable="$post_id">
477
  <type by_reference="false">int</type>
478
  </tag>
479
+ <tag line="876" name="return" description="Meta data variables" type="array">
480
  <type by_reference="false">array</type>
481
  </tag>
482
  </docblock>
483
+ <argument line="889">
484
  <name>$post_id</name>
485
  <default><![CDATA[]]></default>
486
  <type/>
487
  </argument>
488
  </method>
489
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="955" package="Media Library Assistant">
490
  <name>mla_fetch_attachment_references</name>
491
  <full_name>mla_fetch_attachment_references</full_name>
492
+ <docblock line="942">
493
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
494
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
495
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
496
+ <tag line="942" name="since" description="0.1"/>
497
+ <tag line="942" name="param" description="post ID of attachment" type="int" variable="$ID">
498
  <type by_reference="false">int</type>
499
  </tag>
500
+ <tag line="942" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
501
  <type by_reference="false">int</type>
502
  </tag>
503
+ <tag line="942" name="return" description="Reference information; see $references array comments" type="array">
504
  <type by_reference="false">array</type>
505
  </tag>
506
  </docblock>
507
+ <argument line="955">
508
  <name>$ID</name>
509
  <default><![CDATA[]]></default>
510
  <type/>
511
  </argument>
512
+ <argument line="955">
513
  <name>$parent</name>
514
  <default><![CDATA[]]></default>
515
  <type/>
516
  </argument>
517
  </method>
518
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1230" package="Media Library Assistant">
519
  <name>mla_flush_mla_galleries</name>
520
  <full_name>mla_flush_mla_galleries</full_name>
521
+ <docblock line="1221">
522
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
523
  <long-description><![CDATA[]]></long-description>
524
+ <tag line="1221" name="since" description="1.00"/>
525
+ <tag line="1221" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
526
  <type by_reference="false">string</type>
527
  </tag>
528
+ <tag line="1221" name="return" description="" type="void">
529
  <type by_reference="false">void</type>
530
  </tag>
531
  </docblock>
532
+ <argument line="1230">
533
  <name>$option_name</name>
534
  <default><![CDATA[]]></default>
535
  <type/>
536
  </argument>
537
  </method>
538
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1254" package="Media Library Assistant">
539
  <name>mla_save_post_action</name>
540
  <full_name>mla_save_post_action</full_name>
541
+ <docblock line="1245">
542
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
543
  <long-description><![CDATA[]]></long-description>
544
+ <tag line="1245" name="since" description="1.00"/>
545
+ <tag line="1245" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
546
  <type by_reference="false">integer</type>
547
  </tag>
548
+ <tag line="1245" name="return" description="" type="void">
549
  <type by_reference="false">void</type>
550
  </tag>
551
  </docblock>
552
+ <argument line="1254">
553
  <name>$post_id</name>
554
  <default><![CDATA[]]></default>
555
  <type/>
556
  </argument>
557
  </method>
558
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1271" package="Media Library Assistant">
559
  <name>_build_mla_galleries</name>
560
  <full_name>_build_mla_galleries</full_name>
561
+ <docblock line="1259">
562
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
563
  <long-description><![CDATA[]]></long-description>
564
+ <tag line="1259" name="since" description="0.70"/>
565
+ <tag line="1259" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
566
  <type by_reference="false">string</type>
567
  </tag>
568
+ <tag line="1259" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
569
  <type by_reference="false">array</type>
570
  </tag>
571
+ <tag line="1259" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
572
  <type by_reference="false">string</type>
573
  </tag>
574
+ <tag line="1259" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
575
  <type by_reference="false">boolean</type>
576
  </tag>
577
+ <tag line="1259" name="return" description="true if the galleries array is not empty" type="boolean">
578
  <type by_reference="false">boolean</type>
579
  </tag>
580
  </docblock>
581
+ <argument line="1271">
582
  <name>$option_name</name>
583
  <default><![CDATA[]]></default>
584
  <type/>
585
  </argument>
586
+ <argument line="1271">
587
  <name>$galleries_array</name>
588
  <default><![CDATA[]]></default>
589
  <type/>
590
  </argument>
591
+ <argument line="1271">
592
  <name>$shortcode</name>
593
  <default><![CDATA[]]></default>
594
  <type/>
595
  </argument>
596
+ <argument line="1271">
597
  <name>$exclude_revisions</name>
598
  <default><![CDATA[]]></default>
599
  <type/>
600
  </argument>
601
  </method>
602
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1376" package="Media Library Assistant">
603
  <name>_search_mla_galleries</name>
604
  <full_name>_search_mla_galleries</full_name>
605
+ <docblock line="1365">
606
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
607
  <long-description><![CDATA[]]></long-description>
608
+ <tag line="1365" name="since" description="0.70"/>
609
+ <tag line="1365" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
610
  <type by_reference="false">array</type>
611
  </tag>
612
+ <tag line="1365" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
613
  <type by_reference="false">int</type>
614
  </tag>
615
+ <tag line="1365" 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">
616
  <type by_reference="false">array</type>
617
  </tag>
618
  </docblock>
619
+ <argument line="1376">
620
  <name>$galleries_array</name>
621
  <default><![CDATA[]]></default>
622
  <type/>
623
  </argument>
624
+ <argument line="1376">
625
  <name>$attachment_id</name>
626
  <default><![CDATA[]]></default>
627
  <type/>
628
  </argument>
629
  </method>
630
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1402" package="Media Library Assistant">
631
  <name>mla_exif_metadata_value</name>
632
  <full_name>mla_exif_metadata_value</full_name>
633
+ <docblock line="1389">
634
  <description><![CDATA[Parse one EXIF metadata field]]></description>
635
  <long-description><![CDATA[<p>Returns a string value, converting array data to a string as necessary.
636
  Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
637
+ <tag line="1389" name="since" description="1.13"/>
638
+ <tag line="1389" name="param" description="field name" type="string" variable="$key">
639
  <type by_reference="false">string</type>
640
  </tag>
641
+ <tag line="1389" name="param" description="metadata array containing 'mla_exif_metadata' and 'mla_iptc_metadata' arrays" type="string" variable="$image_metadata">
642
  <type by_reference="false">string</type>
643
  </tag>
644
+ <tag line="1389" name="return" description="string representation of metadata value or an empty string" type="string">
645
  <type by_reference="false">string</type>
646
  </tag>
647
  </docblock>
648
+ <argument line="1402">
649
  <name>$key</name>
650
  <default><![CDATA[]]></default>
651
  <type/>
652
  </argument>
653
+ <argument line="1402">
654
  <name>$image_metadata</name>
655
  <default><![CDATA[]]></default>
656
  <type/>
657
  </argument>
658
  </method>
659
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1432" package="Media Library Assistant">
660
  <name>mla_fetch_attachment_image_metadata</name>
661
  <full_name>mla_fetch_attachment_image_metadata</full_name>
662
+ <docblock line="1420">
663
  <description><![CDATA[Fetch and filter IPTC and EXIF meta data for an image attachment]]></description>
664
  <long-description><![CDATA[<p>Returns</p>]]></long-description>
665
+ <tag line="1420" name="since" description="0.90"/>
666
+ <tag line="1420" name="param" description="post ID of attachment" type="int" variable="$post_id">
667
  <type by_reference="false">int</type>
668
  </tag>
669
+ <tag line="1420" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
670
  <type by_reference="false">string</type>
671
  </tag>
672
+ <tag line="1420" name="return" description="Meta data variables" type="array">
673
  <type by_reference="false">array</type>
674
  </tag>
675
  </docblock>
676
+ <argument line="1432">
677
  <name>$post_id</name>
678
  <default><![CDATA[]]></default>
679
  <type/>
680
  </argument>
681
+ <argument line="1432">
682
  <name>$path</name>
683
  <default><![CDATA['']]></default>
684
  <type/>
685
  </argument>
686
  </method>
687
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1498" package="Media Library Assistant">
688
  <name>mla_update_single_item</name>
689
  <full_name>mla_update_single_item</full_name>
690
+ <docblock line="1485">
691
  <description><![CDATA[Update a single item; change the meta data
692
  for a single attachment.]]></description>
693
  <long-description><![CDATA[]]></long-description>
694
+ <tag line="1485" name="since" description="0.1"/>
695
+ <tag line="1485" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
696
  <type by_reference="false">int</type>
697
  </tag>
698
+ <tag line="1485" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
699
  <type by_reference="false">array</type>
700
  </tag>
701
+ <tag line="1485" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
702
  <type by_reference="false">array</type>
703
  </tag>
704
+ <tag line="1485" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
705
  <type by_reference="false">array</type>
706
  </tag>
707
+ <tag line="1485" name="return" description="success/failure message and NULL content" type="array">
708
  <type by_reference="false">array</type>
709
  </tag>
710
  </docblock>
711
+ <argument line="1498">
712
  <name>$post_id</name>
713
  <default><![CDATA[]]></default>
714
  <type/>
715
  </argument>
716
+ <argument line="1498">
717
  <name>$new_data</name>
718
  <default><![CDATA[]]></default>
719
  <type/>
720
  </argument>
721
+ <argument line="1498">
722
  <name>$tax_input</name>
723
  <default><![CDATA[NULL]]></default>
724
  <type/>
725
  </argument>
726
+ <argument line="1498">
727
  <name>$tax_actions</name>
728
  <default><![CDATA[NULL]]></default>
729
  <type/>
730
  </argument>
731
  </method>
732
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1720" package="Media Library Assistant">
733
  <name>_remove_tags</name>
734
  <full_name>_remove_tags</full_name>
735
+ <docblock line="1709">
736
  <description><![CDATA[Remove tags from a term ids list]]></description>
737
  <long-description><![CDATA[]]></long-description>
738
+ <tag line="1709" name="since" description="0.40"/>
739
+ <tag line="1709" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
740
  <type by_reference="false">array</type>
741
  </tag>
742
+ <tag line="1709" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
743
  <type by_reference="false">array</type>
744
  </tag>
745
+ <tag line="1709" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
746
  <type by_reference="false">object</type>
747
  </tag>
748
+ <tag line="1709" name="return" description="Term ids of the surviving tags" type="array">
749
  <type by_reference="false">array</type>
750
  </tag>
751
  </docblock>
752
+ <argument line="1720">
753
  <name>$terms_before</name>
754
  <default><![CDATA[]]></default>
755
  <type/>
756
  </argument>
757
+ <argument line="1720">
758
  <name>$tags</name>
759
  <default><![CDATA[]]></default>
760
  <type/>
761
  </argument>
762
+ <argument line="1720">
763
  <name>$taxonomy_obj</name>
764
  <default><![CDATA[]]></default>
765
  <type/>
766
  </argument>
767
  </method>
768
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1763" package="Media Library Assistant">
769
  <name>_hex_dump</name>
770
  <full_name>_hex_dump</full_name>
771
+ <docblock line="1752">
772
  <description><![CDATA[Format printable version of binary data]]></description>
773
  <long-description><![CDATA[]]></long-description>
774
+ <tag line="1752" name="since" description="0.90"/>
775
+ <tag line="1752" name="param" description="Binary data" type="string" variable="$data">
776
  <type by_reference="false">string</type>
777
  </tag>
778
+ <tag line="1752" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
779
  <type by_reference="false">integer</type>
780
  </tag>
781
+ <tag line="1752" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
782
  <type by_reference="false">\intger</type>
783
  </tag>
784
+ <tag line="1752" name="return" description="Printable representation of $data" type="string">
785
  <type by_reference="false">string</type>
786
  </tag>
787
  </docblock>
788
+ <argument line="1763">
789
  <name>$data</name>
790
  <default><![CDATA[]]></default>
791
  <type/>
792
  </argument>
793
+ <argument line="1763">
794
  <name>$limit</name>
795
  <default><![CDATA[0]]></default>
796
  <type/>
797
  </argument>
798
+ <argument line="1763">
799
  <name>$bytes_per_row</name>
800
  <default><![CDATA[16]]></default>
801
  <type/>
1107
  </method>
1108
  </class>
1109
  </file>
1110
+ <file path="includes\class-mla-list-table.php" hash="edd0691b11eadedcc850c0318b2d8e42" package="Media Library Assistant">
1111
  <docblock line="2">
1112
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
1113
  <long-description><![CDATA[]]></long-description>
1224
  </tag>
1225
  </docblock>
1226
  </method>
1227
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="203" package="Media Library Assistant">
1228
  <name>_avail_mime_types</name>
1229
  <full_name>_avail_mime_types</full_name>
1230
+ <docblock line="191">
1231
  <description><![CDATA[Get mime types with one or more attachments for view preparation]]></description>
1232
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
1233
  with additional entries.</p>]]></long-description>
1234
+ <tag line="191" name="since" description="0.1"/>
1235
+ <tag line="191" name="param" description="Number of posts for each mime type" type="array" variable="$num_posts">
1236
  <type by_reference="false">array</type>
1237
  </tag>
1238
+ <tag line="191" name="return" description="Mime type names" type="array">
1239
  <type by_reference="false">array</type>
1240
  </tag>
1241
  </docblock>
1242
+ <argument line="203">
1243
  <name>$num_posts</name>
1244
  <default><![CDATA[]]></default>
1245
  <type/>
1246
  </argument>
1247
  </method>
1248
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="224" package="Media Library Assistant">
1249
  <name>mla_get_attachment_mime_types</name>
1250
  <full_name>mla_get_attachment_mime_types</full_name>
1251
+ <docblock line="214">
1252
  <description><![CDATA[Get possible mime types for view preparation]]></description>
1253
  <long-description><![CDATA[<p>Modeled after get_post_mime_types in wp-includes/post.php,
1254
  with additional entries.</p>]]></long-description>
1255
+ <tag line="214" name="since" description="0.1"/>
1256
+ <tag line="214" name="return" description="Mime type names and HTML markup for views" type="array">
1257
  <type by_reference="false">array</type>
1258
  </tag>
1259
  </docblock>
1260
  </method>
1261
  <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="298" package="Media Library Assistant">
1262
+ <name>mla_get_taxonomy_filter_dropdown</name>
1263
+ <full_name>mla_get_taxonomy_filter_dropdown</full_name>
1264
+ <docblock line="289">
1265
+ <description><![CDATA[Get dropdown box of terms to filter by, if available]]></description>
1266
+ <long-description><![CDATA[]]></long-description>
1267
+ <tag line="289" name="since" description="1.20"/>
1268
+ <tag line="289" name="param" description="currently selected term_id || zero (default)" type="integer" variable="$selected">
1269
+ <type by_reference="false">integer</type>
1270
+ </tag>
1271
+ <tag line="289" name="return" description="HTML markup for dropdown box" type="string">
1272
+ <type by_reference="false">string</type>
1273
+ </tag>
1274
+ </docblock>
1275
+ <argument line="298">
1276
+ <name>$selected</name>
1277
+ <default><![CDATA[0]]></default>
1278
+ <type/>
1279
+ </argument>
1280
+ </method>
1281
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="343" package="Media Library Assistant">
1282
  <name>mla_get_sortable_columns</name>
1283
  <full_name>mla_get_sortable_columns</full_name>
1284
+ <docblock line="336">
1285
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
1286
  <long-description><![CDATA[]]></long-description>
1287
+ <tag line="336" name="since" description="0.30"/>
1288
+ <tag line="336" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
1289
  <type by_reference="false">array</type>
1290
  </tag>
1291
  </docblock>
1292
  </method>
1293
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="370" package="Media Library Assistant">
1294
  <name>mla_manage_hidden_columns_filter</name>
1295
  <full_name>mla_manage_hidden_columns_filter</full_name>
1296
+ <docblock line="355">
1297
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
1298
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
1299
  the get_user_option result. Set when the file is loaded because the object
1300
  is not created in time for the call from screen.php.</p>]]></long-description>
1301
+ <tag line="355" name="since" description="0.1"/>
1302
+ <tag line="355" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
1303
  <type by_reference="false">string</type>
1304
  </tag>
1305
+ <tag line="355" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
1306
  <type by_reference="false">string</type>
1307
  </tag>
1308
+ <tag line="355" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
1309
  <type by_reference="false">object</type>
1310
  </tag>
1311
+ <tag line="355" name="return" description="updated list of hidden columns" type="array">
1312
  <type by_reference="false">array</type>
1313
  </tag>
1314
  </docblock>
1315
+ <argument line="370">
1316
  <name>$result</name>
1317
  <default><![CDATA[]]></default>
1318
  <type/>
1319
  </argument>
1320
+ <argument line="370">
1321
  <name>$option</name>
1322
  <default><![CDATA[]]></default>
1323
  <type/>
1324
  </argument>
1325
+ <argument line="370">
1326
  <name>$user_data</name>
1327
  <default><![CDATA[]]></default>
1328
  <type/>
1329
  </argument>
1330
  </method>
1331
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="388" package="Media Library Assistant">
1332
  <name>mla_manage_columns_filter</name>
1333
  <full_name>mla_manage_columns_filter</full_name>
1334
+ <docblock line="377">
1335
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
1336
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
1337
  file is loaded because the list_table object isn't created in time
1338
  to affect the "screen options" setup.</p>]]></long-description>
1339
+ <tag line="377" name="since" description="0.1"/>
1340
+ <tag line="377" name="return" description="list of table columns" type="array">
1341
  <type by_reference="false">array</type>
1342
  </tag>
1343
  </docblock>
1344
  </method>
1345
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="403" package="Media Library Assistant">
1346
  <name>mla_admin_init_action</name>
1347
  <full_name>mla_admin_init_action</full_name>
1348
+ <docblock line="393">
1349
  <description><![CDATA[Adds support for taxonomy columns]]></description>
1350
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
1351
  created in time to affect the "screen options" setup.</p>]]></long-description>
1352
+ <tag line="393" name="since" description="0.30"/>
1353
+ <tag line="393" name="return" description="" type="void">
1354
  <type by_reference="false">void</type>
1355
  </tag>
1356
  </docblock>
1357
  </method>
1358
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="429" package="Media Library Assistant">
1359
  <name>__construct</name>
1360
  <full_name>__construct</full_name>
1361
+ <docblock line="421">
1362
  <description><![CDATA[Initializes some properties from $_REQUEST vairables, then
1363
  calls the parent constructor to set some default configs.]]></description>
1364
  <long-description><![CDATA[]]></long-description>
1365
+ <tag line="421" name="since" description="0.1"/>
1366
+ <tag line="421" name="return" description="" type="void">
1367
  <type by_reference="false">void</type>
1368
  </tag>
1369
  </docblock>
1370
  </method>
1371
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="462" package="Media Library Assistant">
1372
  <name>column_default</name>
1373
  <full_name>column_default</full_name>
1374
+ <docblock line="449">
1375
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
1376
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a
1377
  given column. The taxonomy columns are handled here. All other columns should
1378
  have a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
1379
+ <tag line="449" name="since" description="0.1"/>
1380
+ <tag line="449" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
1381
  <type by_reference="false">array</type>
1382
  </tag>
1383
+ <tag line="449" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
1384
  <type by_reference="false">array</type>
1385
  </tag>
1386
+ <tag line="449" name="return" description="Text or HTML to be placed inside the column" type="string">
1387
  <type by_reference="false">string</type>
1388
  </tag>
1389
  </docblock>
1390
+ <argument line="462">
1391
  <name>$item</name>
1392
  <default><![CDATA[]]></default>
1393
  <type/>
1394
  </argument>
1395
+ <argument line="462">
1396
  <name>$column_name</name>
1397
  <default><![CDATA[]]></default>
1398
  <type/>
1399
  </argument>
1400
  </method>
1401
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="520" package="Media Library Assistant">
1402
  <name>column_cb</name>
1403
  <full_name>column_cb</full_name>
1404
+ <docblock line="511">
1405
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
1406
  <long-description><![CDATA[<p>The 'cb' column
1407
  is given special treatment when columns are processed.</p>]]></long-description>
1408
+ <tag line="511" name="since" description="0.1"/>
1409
+ <tag line="511" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1410
  <type by_reference="false">array</type>
1411
  </tag>
1412
+ <tag line="511" name="return" description="HTML markup to be placed inside the column" type="string">
1413
  <type by_reference="false">string</type>
1414
  </tag>
1415
  </docblock>
1416
+ <argument line="520">
1417
  <name>$item</name>
1418
  <default><![CDATA[]]></default>
1419
  <type/>
1420
  </argument>
1421
  </method>
1422
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="536" package="Media Library Assistant">
1423
  <name>column_icon</name>
1424
  <full_name>column_icon</full_name>
1425
+ <docblock line="528">
1426
  <description><![CDATA[Supply the content for a custom column]]></description>
1427
  <long-description><![CDATA[]]></long-description>
1428
+ <tag line="528" name="since" description="0.1"/>
1429
+ <tag line="528" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1430
  <type by_reference="false">array</type>
1431
  </tag>
1432
+ <tag line="528" name="return" description="HTML markup to be placed inside the column" type="string">
1433
  <type by_reference="false">string</type>
1434
  </tag>
1435
  </docblock>
1436
+ <argument line="536">
1437
  <name>$item</name>
1438
  <default><![CDATA[]]></default>
1439
  <type/>
1440
  </argument>
1441
  </method>
1442
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="552" package="Media Library Assistant">
1443
  <name>_build_rollover_actions</name>
1444
  <full_name>_build_rollover_actions</full_name>
1445
+ <docblock line="541">
1446
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
1447
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
1448
  <long-description><![CDATA[]]></long-description>
1449
+ <tag line="541" name="since" description="0.1"/>
1450
+ <tag line="541" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1451
  <type by_reference="false">object</type>
1452
  </tag>
1453
+ <tag line="541" name="param" description="Current column name" type="string" variable="$column">
1454
  <type by_reference="false">string</type>
1455
  </tag>
1456
+ <tag line="541" name="return" description="Names and URLs of row-level actions" type="array">
1457
  <type by_reference="false">array</type>
1458
  </tag>
1459
  </docblock>
1460
+ <argument line="552">
1461
  <name>$item</name>
1462
  <default><![CDATA[]]></default>
1463
  <type/>
1464
  </argument>
1465
+ <argument line="552">
1466
  <name>$column</name>
1467
  <default><![CDATA[]]></default>
1468
  <type/>
1469
  </argument>
1470
  </method>
1471
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="630" package="Media Library Assistant">
1472
  <name>_build_inline_data</name>
1473
  <full_name>_build_inline_data</full_name>
1474
+ <docblock line="621">
1475
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
1476
  <long-description><![CDATA[]]></long-description>
1477
+ <tag line="621" name="since" description="0.20"/>
1478
+ <tag line="621" name="param" description="A singular attachment (post) object" type="object" variable="$item">
1479
  <type by_reference="false">object</type>
1480
  </tag>
1481
+ <tag line="621" name="return" description="HTML &lt;div&gt; with row data" type="string">
1482
  <type by_reference="false">string</type>
1483
  </tag>
1484
  </docblock>
1485
+ <argument line="630">
1486
  <name>$item</name>
1487
  <default><![CDATA[]]></default>
1488
  <type/>
1489
  </argument>
1490
  </method>
1491
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="678" package="Media Library Assistant">
1492
  <name>column_ID_parent</name>
1493
  <full_name>column_ID_parent</full_name>
1494
+ <docblock line="670">
1495
  <description><![CDATA[Supply the content for a custom column]]></description>
1496
  <long-description><![CDATA[]]></long-description>
1497
+ <tag line="670" name="since" description="0.1"/>
1498
+ <tag line="670" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1499
  <type by_reference="false">array</type>
1500
  </tag>
1501
+ <tag line="670" name="return" description="HTML markup to be placed inside the column" type="string">
1502
  <type by_reference="false">string</type>
1503
  </tag>
1504
  </docblock>
1505
+ <argument line="678">
1506
  <name>$item</name>
1507
  <default><![CDATA[]]></default>
1508
  <type/>
1509
  </argument>
1510
  </method>
1511
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="710" package="Media Library Assistant">
1512
  <name>column_title_name</name>
1513
  <full_name>column_title_name</full_name>
1514
+ <docblock line="702">
1515
  <description><![CDATA[Supply the content for a custom column]]></description>
1516
  <long-description><![CDATA[]]></long-description>
1517
+ <tag line="702" name="since" description="0.1"/>
1518
+ <tag line="702" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1519
  <type by_reference="false">array</type>
1520
  </tag>
1521
+ <tag line="702" name="return" description="HTML markup to be placed inside the column" type="string">
1522
  <type by_reference="false">string</type>
1523
  </tag>
1524
  </docblock>
1525
+ <argument line="710">
1526
  <name>$item</name>
1527
  <default><![CDATA[]]></default>
1528
  <type/>
1529
  </argument>
1530
  </method>
1531
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="733" package="Media Library Assistant">
1532
  <name>column_post_title</name>
1533
  <full_name>column_post_title</full_name>
1534
+ <docblock line="725">
1535
  <description><![CDATA[Supply the content for a custom column]]></description>
1536
  <long-description><![CDATA[]]></long-description>
1537
+ <tag line="725" name="since" description="0.1"/>
1538
+ <tag line="725" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1539
  <type by_reference="false">array</type>
1540
  </tag>
1541
+ <tag line="725" name="return" description="HTML markup to be placed inside the column" type="string">
1542
  <type by_reference="false">string</type>
1543
  </tag>
1544
  </docblock>
1545
+ <argument line="733">
1546
  <name>$item</name>
1547
  <default><![CDATA[]]></default>
1548
  <type/>
1549
  </argument>
1550
  </method>
1551
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="751" package="Media Library Assistant">
1552
  <name>column_post_name</name>
1553
  <full_name>column_post_name</full_name>
1554
+ <docblock line="743">
1555
  <description><![CDATA[Supply the content for a custom column]]></description>
1556
  <long-description><![CDATA[]]></long-description>
1557
+ <tag line="743" name="since" description="0.1"/>
1558
+ <tag line="743" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1559
  <type by_reference="false">array</type>
1560
  </tag>
1561
+ <tag line="743" name="return" description="HTML markup to be placed inside the column" type="string">
1562
  <type by_reference="false">string</type>
1563
  </tag>
1564
  </docblock>
1565
+ <argument line="751">
1566
  <name>$item</name>
1567
  <default><![CDATA[]]></default>
1568
  <type/>
1569
  </argument>
1570
  </method>
1571
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="769" package="Media Library Assistant">
1572
  <name>column_parent</name>
1573
  <full_name>column_parent</full_name>
1574
+ <docblock line="761">
1575
  <description><![CDATA[Supply the content for a custom column]]></description>
1576
  <long-description><![CDATA[]]></long-description>
1577
+ <tag line="761" name="since" description="0.1"/>
1578
+ <tag line="761" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1579
  <type by_reference="false">array</type>
1580
  </tag>
1581
+ <tag line="761" name="return" description="HTML markup to be placed inside the column" type="string">
1582
  <type by_reference="false">string</type>
1583
  </tag>
1584
  </docblock>
1585
+ <argument line="769">
1586
  <name>$item</name>
1587
  <default><![CDATA[]]></default>
1588
  <type/>
1589
  </argument>
1590
  </method>
1591
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="794" package="Media Library Assistant">
1592
  <name>column_menu_order</name>
1593
  <full_name>column_menu_order</full_name>
1594
+ <docblock line="786">
1595
  <description><![CDATA[Supply the content for a custom column]]></description>
1596
  <long-description><![CDATA[]]></long-description>
1597
+ <tag line="786" name="since" description="0.60"/>
1598
+ <tag line="786" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1599
  <type by_reference="false">array</type>
1600
  </tag>
1601
+ <tag line="786" name="return" description="HTML markup to be placed inside the column" type="string">
1602
  <type by_reference="false">string</type>
1603
  </tag>
1604
  </docblock>
1605
+ <argument line="794">
1606
  <name>$item</name>
1607
  <default><![CDATA[]]></default>
1608
  <type/>
1609
  </argument>
1610
  </method>
1611
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="806" package="Media Library Assistant">
1612
  <name>column_featured</name>
1613
  <full_name>column_featured</full_name>
1614
+ <docblock line="798">
1615
  <description><![CDATA[Supply the content for a custom column]]></description>
1616
  <long-description><![CDATA[]]></long-description>
1617
+ <tag line="798" name="since" description="0.1"/>
1618
+ <tag line="798" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1619
  <type by_reference="false">array</type>
1620
  </tag>
1621
+ <tag line="798" name="return" description="HTML markup to be placed inside the column" type="string">
1622
  <type by_reference="false">string</type>
1623
  </tag>
1624
  </docblock>
1625
+ <argument line="806">
1626
  <name>$item</name>
1627
  <default><![CDATA[]]></default>
1628
  <type/>
1629
  </argument>
1630
  </method>
1631
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="837" package="Media Library Assistant">
1632
  <name>column_inserted</name>
1633
  <full_name>column_inserted</full_name>
1634
+ <docblock line="829">
1635
  <description><![CDATA[Supply the content for a custom column]]></description>
1636
  <long-description><![CDATA[]]></long-description>
1637
+ <tag line="829" name="since" description="0.1"/>
1638
+ <tag line="829" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1639
  <type by_reference="false">array</type>
1640
  </tag>
1641
+ <tag line="829" name="return" description="HTML markup to be placed inside the column" type="string">
1642
  <type by_reference="false">string</type>
1643
  </tag>
1644
  </docblock>
1645
+ <argument line="837">
1646
  <name>$item</name>
1647
  <default><![CDATA[]]></default>
1648
  <type/>
1649
  </argument>
1650
  </method>
1651
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="872" package="Media Library Assistant">
1652
  <name>column_galleries</name>
1653
  <full_name>column_galleries</full_name>
1654
+ <docblock line="864">
1655
  <description><![CDATA[Supply the content for a custom column]]></description>
1656
  <long-description><![CDATA[]]></long-description>
1657
+ <tag line="864" name="since" description="0.70"/>
1658
+ <tag line="864" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1659
  <type by_reference="false">array</type>
1660
  </tag>
1661
+ <tag line="864" name="return" description="HTML markup to be placed inside the column" type="string">
1662
  <type by_reference="false">string</type>
1663
  </tag>
1664
  </docblock>
1665
+ <argument line="872">
1666
  <name>$item</name>
1667
  <default><![CDATA[]]></default>
1668
  <type/>
1669
  </argument>
1670
  </method>
1671
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="903" package="Media Library Assistant">
1672
  <name>column_mla_galleries</name>
1673
  <full_name>column_mla_galleries</full_name>
1674
+ <docblock line="895">
1675
  <description><![CDATA[Supply the content for a custom column]]></description>
1676
  <long-description><![CDATA[]]></long-description>
1677
+ <tag line="895" name="since" description="0.70"/>
1678
+ <tag line="895" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1679
  <type by_reference="false">array</type>
1680
  </tag>
1681
+ <tag line="895" name="return" description="HTML markup to be placed inside the column" type="string">
1682
  <type by_reference="false">string</type>
1683
  </tag>
1684
  </docblock>
1685
+ <argument line="903">
1686
  <name>$item</name>
1687
  <default><![CDATA[]]></default>
1688
  <type/>
1689
  </argument>
1690
  </method>
1691
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="934" package="Media Library Assistant">
1692
  <name>column_alt_text</name>
1693
  <full_name>column_alt_text</full_name>
1694
+ <docblock line="926">
1695
  <description><![CDATA[Supply the content for a custom column]]></description>
1696
  <long-description><![CDATA[]]></long-description>
1697
+ <tag line="926" name="since" description="0.1"/>
1698
+ <tag line="926" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1699
  <type by_reference="false">array</type>
1700
  </tag>
1701
+ <tag line="926" name="return" description="HTML markup to be placed inside the column" type="string">
1702
  <type by_reference="false">string</type>
1703
  </tag>
1704
  </docblock>
1705
+ <argument line="934">
1706
  <name>$item</name>
1707
  <default><![CDATA[]]></default>
1708
  <type/>
1709
  </argument>
1710
  </method>
1711
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="954" package="Media Library Assistant">
1712
  <name>column_caption</name>
1713
  <full_name>column_caption</full_name>
1714
+ <docblock line="946">
1715
  <description><![CDATA[Supply the content for a custom column]]></description>
1716
  <long-description><![CDATA[]]></long-description>
1717
+ <tag line="946" name="since" description="0.1"/>
1718
+ <tag line="946" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1719
  <type by_reference="false">array</type>
1720
  </tag>
1721
+ <tag line="946" name="return" description="HTML markup to be placed inside the column" type="string">
1722
  <type by_reference="false">string</type>
1723
  </tag>
1724
  </docblock>
1725
+ <argument line="954">
1726
  <name>$item</name>
1727
  <default><![CDATA[]]></default>
1728
  <type/>
1729
  </argument>
1730
  </method>
1731
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="966" package="Media Library Assistant">
1732
  <name>column_description</name>
1733
  <full_name>column_description</full_name>
1734
+ <docblock line="958">
1735
  <description><![CDATA[Supply the content for a custom column]]></description>
1736
  <long-description><![CDATA[]]></long-description>
1737
+ <tag line="958" name="since" description="0.1"/>
1738
+ <tag line="958" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1739
  <type by_reference="false">array</type>
1740
  </tag>
1741
+ <tag line="958" name="return" description="HTML markup to be placed inside the column" type="string">
1742
  <type by_reference="false">string</type>
1743
  </tag>
1744
  </docblock>
1745
+ <argument line="966">
1746
  <name>$item</name>
1747
  <default><![CDATA[]]></default>
1748
  <type/>
1749
  </argument>
1750
  </method>
1751
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="978" package="Media Library Assistant">
1752
  <name>column_post_mime_type</name>
1753
  <full_name>column_post_mime_type</full_name>
1754
+ <docblock line="970">
1755
  <description><![CDATA[Supply the content for a custom column]]></description>
1756
  <long-description><![CDATA[]]></long-description>
1757
+ <tag line="970" name="since" description="0.30"/>
1758
+ <tag line="970" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1759
  <type by_reference="false">array</type>
1760
  </tag>
1761
+ <tag line="970" name="return" description="HTML markup to be placed inside the column" type="string">
1762
  <type by_reference="false">string</type>
1763
  </tag>
1764
  </docblock>
1765
+ <argument line="978">
1766
  <name>$item</name>
1767
  <default><![CDATA[]]></default>
1768
  <type/>
1769
  </argument>
1770
  </method>
1771
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="990" package="Media Library Assistant">
1772
  <name>column_base_file</name>
1773
  <full_name>column_base_file</full_name>
1774
+ <docblock line="982">
1775
  <description><![CDATA[Supply the content for a custom column]]></description>
1776
  <long-description><![CDATA[]]></long-description>
1777
+ <tag line="982" name="since" description="0.1"/>
1778
+ <tag line="982" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1779
  <type by_reference="false">array</type>
1780
  </tag>
1781
+ <tag line="982" name="return" description="HTML markup to be placed inside the column" type="string">
1782
  <type by_reference="false">string</type>
1783
  </tag>
1784
  </docblock>
1785
+ <argument line="990">
1786
  <name>$item</name>
1787
  <default><![CDATA[]]></default>
1788
  <type/>
1789
  </argument>
1790
  </method>
1791
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1002" package="Media Library Assistant">
1792
  <name>column_date</name>
1793
  <full_name>column_date</full_name>
1794
+ <docblock line="994">
1795
  <description><![CDATA[Supply the content for a custom column]]></description>
1796
  <long-description><![CDATA[]]></long-description>
1797
+ <tag line="994" name="since" description="0.1"/>
1798
+ <tag line="994" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1799
  <type by_reference="false">array</type>
1800
  </tag>
1801
+ <tag line="994" name="return" description="HTML markup to be placed inside the column" type="string">
1802
  <type by_reference="false">string</type>
1803
  </tag>
1804
  </docblock>
1805
+ <argument line="1002">
1806
  <name>$item</name>
1807
  <default><![CDATA[]]></default>
1808
  <type/>
1809
  </argument>
1810
  </method>
1811
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1031" package="Media Library Assistant">
1812
  <name>column_modified</name>
1813
  <full_name>column_modified</full_name>
1814
+ <docblock line="1023">
1815
  <description><![CDATA[Supply the content for a custom column]]></description>
1816
  <long-description><![CDATA[]]></long-description>
1817
+ <tag line="1023" name="since" description="0.30"/>
1818
+ <tag line="1023" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1819
  <type by_reference="false">array</type>
1820
  </tag>
1821
+ <tag line="1023" name="return" description="HTML markup to be placed inside the column" type="string">
1822
  <type by_reference="false">string</type>
1823
  </tag>
1824
  </docblock>
1825
+ <argument line="1031">
1826
  <name>$item</name>
1827
  <default><![CDATA[]]></default>
1828
  <type/>
1829
  </argument>
1830
  </method>
1831
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1060" package="Media Library Assistant">
1832
  <name>column_author</name>
1833
  <full_name>column_author</full_name>
1834
+ <docblock line="1052">
1835
  <description><![CDATA[Supply the content for a custom column]]></description>
1836
  <long-description><![CDATA[]]></long-description>
1837
+ <tag line="1052" name="since" description="0.30"/>
1838
+ <tag line="1052" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1839
  <type by_reference="false">array</type>
1840
  </tag>
1841
+ <tag line="1052" name="return" description="HTML markup to be placed inside the column" type="string">
1842
  <type by_reference="false">string</type>
1843
  </tag>
1844
  </docblock>
1845
+ <argument line="1060">
1846
  <name>$item</name>
1847
  <default><![CDATA[]]></default>
1848
  <type/>
1849
  </argument>
1850
  </method>
1851
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1081" package="Media Library Assistant">
1852
  <name>column_attached_to</name>
1853
  <full_name>column_attached_to</full_name>
1854
+ <docblock line="1073">
1855
  <description><![CDATA[Supply the content for a custom column]]></description>
1856
  <long-description><![CDATA[]]></long-description>
1857
+ <tag line="1073" name="since" description="0.1"/>
1858
+ <tag line="1073" name="param" description="A singular attachment (post) object" type="array" variable="$item">
1859
  <type by_reference="false">array</type>
1860
  </tag>
1861
+ <tag line="1073" name="return" description="HTML markup to be placed inside the column" type="string">
1862
  <type by_reference="false">string</type>
1863
  </tag>
1864
  </docblock>
1865
+ <argument line="1081">
1866
  <name>$item</name>
1867
  <default><![CDATA[]]></default>
1868
  <type/>
1869
  </argument>
1870
  </method>
1871
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1110" package="Media Library Assistant">
1872
  <name>get_columns</name>
1873
  <full_name>get_columns</full_name>
1874
+ <docblock line="1103">
1875
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
1876
  <long-description><![CDATA[]]></long-description>
1877
+ <tag line="1103" name="since" description="0.1"/>
1878
+ <tag line="1103" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
1879
  <type by_reference="false">array</type>
1880
  </tag>
1881
  </docblock>
1882
  </method>
1883
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1122" package="Media Library Assistant">
1884
  <name>get_hidden_columns</name>
1885
  <full_name>get_hidden_columns</full_name>
1886
+ <docblock line="1114">
1887
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
1888
  from default values if the option is not set]]></description>
1889
  <long-description><![CDATA[]]></long-description>
1890
+ <tag line="1114" name="since" description="0.1"/>
1891
+ <tag line="1114" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
1892
  <type by_reference="false">array</type>
1893
  </tag>
1894
  </docblock>
1895
  </method>
1896
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1142" package="Media Library Assistant">
1897
  <name>get_sortable_columns</name>
1898
  <full_name>get_sortable_columns</full_name>
1899
+ <docblock line="1132">
1900
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
1901
  and the value is db column to sort by.]]></description>
1902
  <long-description><![CDATA[<p>Also notes the current sort column,
1903
  if set.</p>]]></long-description>
1904
+ <tag line="1132" name="since" description="0.1"/>
1905
+ <tag line="1132" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
1906
  <type by_reference="false">array</type>
1907
  </tag>
1908
  </docblock>
1909
  </method>
1910
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1169" package="Media Library Assistant">
1911
  <name>get_views</name>
1912
  <full_name>get_views</full_name>
1913
+ <docblock line="1161">
1914
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
1915
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
1916
+ <tag line="1161" name="since" description="0.1"/>
1917
+ <tag line="1161" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
1918
  <type by_reference="false">array</type>
1919
  </tag>
1920
  </docblock>
1921
  </method>
1922
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1244" package="Media Library Assistant">
1923
  <name>get_bulk_actions</name>
1924
  <full_name>get_bulk_actions</full_name>
1925
+ <docblock line="1236">
1926
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
1927
  of bulk actions available on this table.]]></description>
1928
  <long-description><![CDATA[]]></long-description>
1929
+ <tag line="1236" name="since" description="0.1"/>
1930
+ <tag line="1236" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1931
  <type by_reference="false">array</type>
1932
  </tag>
1933
  </docblock>
1934
  </method>
1935
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1275" package="Media Library Assistant">
1936
  <name>extra_tablenav</name>
1937
  <full_name>extra_tablenav</full_name>
1938
+ <docblock line="1264">
1939
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
1940
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
1941
+ <tag line="1264" name="since" description="0.1"/>
1942
+ <tag line="1264" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
1943
  <type by_reference="false">string</type>
1944
  </tag>
1945
+ <tag line="1264" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
1946
  <type by_reference="false">array</type>
1947
  </tag>
1948
  </docblock>
1949
+ <argument line="1275">
1950
  <name>$which</name>
1951
  <default><![CDATA[]]></default>
1952
  <type/>
1953
  </argument>
1954
  </method>
1955
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1308" package="Media Library Assistant">
1956
  <name>prepare_items</name>
1957
  <full_name>prepare_items</full_name>
1958
+ <docblock line="1296">
1959
  <description><![CDATA[Prepares the list of items for displaying]]></description>
1960
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
1961
  be used to query the database, sort and filter the data, and generally
1962
  get it ready to be displayed. At a minimum, we should set $this->items and
1963
  $this->set_pagination_args().</p>]]></long-description>
1964
+ <tag line="1296" name="since" description="0.1"/>
1965
+ <tag line="1296" name="return" description="" type="void">
1966
  <type by_reference="false">void</type>
1967
  </tag>
1968
  </docblock>
1969
  </method>
1970
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1354" package="Media Library Assistant">
1971
  <name>single_row</name>
1972
  <full_name>single_row</full_name>
1973
+ <docblock line="1345">
1974
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
1975
  <long-description><![CDATA[]]></long-description>
1976
+ <tag line="1345" name="since" description=".20"/>
1977
+ <tag line="1345" name="param" description="the current item" type="object" variable="$item">
1978
  <type by_reference="false">object</type>
1979
  </tag>
1980
+ <tag line="1345" name="return" description="Echoes the row HTML" type="void">
1981
  <type by_reference="false">void</type>
1982
  </tag>
1983
  </docblock>
1984
+ <argument line="1354">
1985
  <name>$item</name>
1986
  <default><![CDATA[]]></default>
1987
  <type/>
1989
  </method>
1990
  </class>
1991
  </file>
1992
+ <file path="includes\class-mla-main.php" hash="f93c75e33c605e9d8c808debee959e7b" package="Media Library Assistant">
1993
  <docblock line="2">
1994
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
1995
  <long-description><![CDATA[]]></long-description>
2026
  <constant namespace="global" line="41" package="Media Library Assistant">
2027
  <name>CURRENT_MLA_VERSION</name>
2028
  <full_name>CURRENT_MLA_VERSION</full_name>
2029
+ <value><![CDATA['1.20']]></value>
2030
  <docblock line="34">
2031
  <description><![CDATA[Current version number]]></description>
2032
  <long-description><![CDATA[]]></long-description>
2599
  </method>
2600
  </class>
2601
  </file>
2602
+ <file path="includes\class-mla-media-modal.php" hash="8f945cf6ddd10adc499c935e3f939518" package="Media Library Assistant">
2603
+ <docblock line="2">
2604
+ <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
2605
+ <long-description><![CDATA[]]></long-description>
2606
+ <tag line="2" name="package" description="Media Library Assistant"/>
2607
+ <tag line="2" name="since" description="1.20"/>
2608
+ </docblock>
2609
+ <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
2610
+ <extends/>
2611
+ <name>MLAModal</name>
2612
+ <full_name>\MLAModal</full_name>
2613
+ <docblock line="9">
2614
+ <description><![CDATA[Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager]]></description>
2615
+ <long-description><![CDATA[]]></long-description>
2616
+ <tag line="9" name="package" description="Media Library Assistant"/>
2617
+ <tag line="9" name="since" description="1.20"/>
2618
+ </docblock>
2619
+ <constant namespace="global" line="23" package="Media Library Assistant">
2620
+ <name>JAVASCRIPT_MEDIA_MODAL_STYLES</name>
2621
+ <full_name>JAVASCRIPT_MEDIA_MODAL_STYLES</full_name>
2622
+ <value><![CDATA['mla-media-modal-style']]></value>
2623
+ <docblock line="16">
2624
+ <description><![CDATA[Slug for localizing and enqueueing CSS - Add Media and related dialogs]]></description>
2625
+ <long-description><![CDATA[]]></long-description>
2626
+ <tag line="16" name="since" description="1.20"/>
2627
+ <tag line="16" name="var" description="" type="string">
2628
+ <type by_reference="false">string</type>
2629
+ </tag>
2630
+ </docblock>
2631
+ </constant>
2632
+ <constant namespace="global" line="32" package="Media Library Assistant">
2633
+ <name>JAVASCRIPT_MEDIA_MODAL_SLUG</name>
2634
+ <full_name>JAVASCRIPT_MEDIA_MODAL_SLUG</full_name>
2635
+ <value><![CDATA['mla-media-modal-scripts']]></value>
2636
+ <docblock line="25">
2637
+ <description><![CDATA[Slug for localizing and enqueueing JavaScript - Add Media and related dialogs]]></description>
2638
+ <long-description><![CDATA[]]></long-description>
2639
+ <tag line="25" name="since" description="1.20"/>
2640
+ <tag line="25" name="var" description="" type="string">
2641
+ <type by_reference="false">string</type>
2642
+ </tag>
2643
+ </docblock>
2644
+ </constant>
2645
+ <constant namespace="global" line="41" package="Media Library Assistant">
2646
+ <name>JAVASCRIPT_MEDIA_MODAL_OBJECT</name>
2647
+ <full_name>JAVASCRIPT_MEDIA_MODAL_OBJECT</full_name>
2648
+ <value><![CDATA['mla_media_modal_vars']]></value>
2649
+ <docblock line="34">
2650
+ <description><![CDATA[Object name for localizing JavaScript - Add Media and related dialogs]]></description>
2651
+ <long-description><![CDATA[]]></long-description>
2652
+ <tag line="34" name="since" description="1.20"/>
2653
+ <tag line="34" name="var" description="" type="string">
2654
+ <type by_reference="false">string</type>
2655
+ </tag>
2656
+ </docblock>
2657
+ </constant>
2658
+ <property final="false" static="true" visibility="private" line="152" namespace="global" package="Media Library Assistant">
2659
+ <name>$mla_media_modal_settings</name>
2660
+ <default><![CDATA[array('ajaxAction' => self::JAVASCRIPT_MEDIA_MODAL_SLUG, 'ajaxNonce' => '', 'enableMimeTypes' => false, 'enableMonthsDropdown' => false, 'enableTermsDropdown' => false, 'enableSearchBox' => false, 'mimeTypes' => '', 'months' => '', 'termsClass' => array(), 'termsValue' => array(), 'termsText' => array(), 'searchValue' => '', 'searchFields' => array('title', 'content'), 'searchConnector' => 'AND')]]></default>
2661
+ <docblock line="144">
2662
+ <description><![CDATA[Share the settings values between mla_media_view_settings_filter
2663
+ and mla_print_media_templates_action]]></description>
2664
+ <long-description><![CDATA[]]></long-description>
2665
+ <tag line="144" name="since" description="1.20"/>
2666
+ <tag line="144" name="var" description="" type="array">
2667
+ <type by_reference="false">array</type>
2668
+ </tag>
2669
+ </docblock>
2670
+ </property>
2671
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="50" package="Media Library Assistant">
2672
+ <name>initialize</name>
2673
+ <full_name>initialize</full_name>
2674
+ <docblock line="43">
2675
+ <description><![CDATA[Initialization function, similar to __construct()]]></description>
2676
+ <long-description><![CDATA[]]></long-description>
2677
+ <tag line="43" name="since" description="1.20"/>
2678
+ <tag line="43" name="return" description="" type="void">
2679
+ <type by_reference="false">void</type>
2680
+ </tag>
2681
+ </docblock>
2682
+ </method>
2683
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="87" package="Media Library Assistant">
2684
+ <name>_months_dropdown</name>
2685
+ <full_name>_months_dropdown</full_name>
2686
+ <docblock line="76">
2687
+ <description><![CDATA[Display a monthly dropdown for filtering items]]></description>
2688
+ <long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
2689
+ <tag line="76" name="since" description="1.20"/>
2690
+ <tag line="76" name="param" description="post_type, e.g., 'attachment'" type="string" variable="$post_type">
2691
+ <type by_reference="false">string</type>
2692
+ </tag>
2693
+ <tag line="76" name="return" description="( value =&gt; label ) pairs" type="array">
2694
+ <type by_reference="false">array</type>
2695
+ </tag>
2696
+ </docblock>
2697
+ <argument line="87">
2698
+ <name>$post_type</name>
2699
+ <default><![CDATA[]]></default>
2700
+ <type/>
2701
+ </argument>
2702
+ </method>
2703
+ <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="126" package="Media Library Assistant">
2704
+ <name>_terms_options</name>
2705
+ <full_name>_terms_options</full_name>
2706
+ <docblock line="117">
2707
+ <description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
2708
+ <long-description><![CDATA[]]></long-description>
2709
+ <tag line="117" name="since" description="1.20"/>
2710
+ <tag line="117" name="param" description="HTML markup for taxonomy terms dropdown &lt;select&gt; tag" type="string" variable="$markup">
2711
+ <type by_reference="false">string</type>
2712
+ </tag>
2713
+ <tag line="117" name="return" description="( value =&gt; label ) pairs" type="array">
2714
+ <type by_reference="false">array</type>
2715
+ </tag>
2716
+ </docblock>
2717
+ <argument line="126">
2718
+ <name>$markup</name>
2719
+ <default><![CDATA[]]></default>
2720
+ <type/>
2721
+ </argument>
2722
+ </method>
2723
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="180" package="Media Library Assistant">
2724
+ <name>mla_media_view_settings_filter</name>
2725
+ <full_name>mla_media_view_settings_filter</full_name>
2726
+ <docblock line="169">
2727
+ <description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
2728
+ <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
2729
+ <tag line="169" name="since" description="1.20"/>
2730
+ <tag line="169" name="param" description="associative array with setting =&gt; value pairs" type="array" variable="$settings">
2731
+ <type by_reference="false">array</type>
2732
+ </tag>
2733
+ <tag line="169" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
2734
+ <type by_reference="false">object</type>
2735
+ </tag>
2736
+ <tag line="169" name="return" description="updated $settings array" type="array">
2737
+ <type by_reference="false">array</type>
2738
+ </tag>
2739
+ </docblock>
2740
+ <argument line="180">
2741
+ <name>$settings</name>
2742
+ <default><![CDATA[]]></default>
2743
+ <type/>
2744
+ </argument>
2745
+ <argument line="180">
2746
+ <name>$post</name>
2747
+ <default><![CDATA[]]></default>
2748
+ <type/>
2749
+ </argument>
2750
+ </method>
2751
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="211" package="Media Library Assistant">
2752
+ <name>mla_media_view_strings_filter</name>
2753
+ <full_name>mla_media_view_strings_filter</full_name>
2754
+ <docblock line="200">
2755
+ <description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
2756
+ <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
2757
+ <tag line="200" name="since" description="1.20"/>
2758
+ <tag line="200" name="param" description="associative array with string =&gt; value pairs" type="array" variable="$strings">
2759
+ <type by_reference="false">array</type>
2760
+ </tag>
2761
+ <tag line="200" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
2762
+ <type by_reference="false">object</type>
2763
+ </tag>
2764
+ <tag line="200" name="return" description="updated $strings array" type="array">
2765
+ <type by_reference="false">array</type>
2766
+ </tag>
2767
+ </docblock>
2768
+ <argument line="211">
2769
+ <name>$strings</name>
2770
+ <default><![CDATA[]]></default>
2771
+ <type/>
2772
+ </argument>
2773
+ <argument line="211">
2774
+ <name>$post</name>
2775
+ <default><![CDATA[]]></default>
2776
+ <type/>
2777
+ </argument>
2778
+ </method>
2779
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="228" package="Media Library Assistant">
2780
+ <name>mla_wp_enqueue_media_action</name>
2781
+ <full_name>mla_wp_enqueue_media_action</full_name>
2782
+ <docblock line="220">
2783
+ <description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
2784
+ <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2785
+ <tag line="220" name="since" description="1.20"/>
2786
+ <tag line="220" name="return" description="" type="void">
2787
+ <type by_reference="false">void</type>
2788
+ </tag>
2789
+ </docblock>
2790
+ </method>
2791
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="246" package="Media Library Assistant">
2792
+ <name>mla_print_media_templates_action</name>
2793
+ <full_name>mla_print_media_templates_action</full_name>
2794
+ <docblock line="238">
2795
+ <description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
2796
+ <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2797
+ <tag line="238" name="since" description="1.20"/>
2798
+ <tag line="238" name="return" description="echoes HTML script tags for the templates" type="void">
2799
+ <type by_reference="false">void</type>
2800
+ </tag>
2801
+ </docblock>
2802
+ </method>
2803
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="348" package="Media Library Assistant">
2804
+ <name>mla_admin_init_ajax_action</name>
2805
+ <full_name>mla_admin_init_ajax_action</full_name>
2806
+ <docblock line="339">
2807
+ <description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
2808
+ <long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab</p>]]></long-description>
2809
+ <tag line="339" name="since" description="1.20"/>
2810
+ <tag line="339" name="return" description="" type="void">
2811
+ <type by_reference="false">void</type>
2812
+ </tag>
2813
+ </docblock>
2814
+ </method>
2815
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="366" package="Media Library Assistant">
2816
+ <name>mla_query_attachments_action</name>
2817
+ <full_name>mla_query_attachments_action</full_name>
2818
+ <docblock line="357">
2819
+ <description><![CDATA[Ajax handler for Media Manager queries]]></description>
2820
+ <long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
2821
+ <tag line="357" name="since" description="1.20"/>
2822
+ <tag line="357" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
2823
+ <type by_reference="false">void</type>
2824
+ </tag>
2825
+ </docblock>
2826
+ </method>
2827
+ </class>
2828
+ </file>
2829
+ <file path="includes\class-mla-objects.php" hash="fc03d333906820511d0d5f7b9d7b074c" package="Media Library Assistant">
2830
  <docblock line="2">
2831
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Post Type objects]]></description>
2832
  <long-description><![CDATA[]]></long-description>
2927
  </method>
2928
  </class>
2929
  </file>
2930
+ <file path="includes\class-mla-options.php" hash="7ba91b9d952194ed61098360ffd9fd84" package="Media Library Assistant">
2931
  <docblock line="2">
2932
  <description><![CDATA[Manages the plugin option settings]]></description>
2933
  <long-description><![CDATA[]]></long-description>
3008
  <long-description><![CDATA[]]></long-description>
3009
  </docblock>
3010
  </constant>
3011
+ <constant namespace="global" line="57" package="Media Library Assistant">
3012
+ <name>MLA_MEDIA_MODAL_TOOLBAR</name>
3013
+ <full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
3014
+ <value><![CDATA['media_modal_toolbar']]></value>
3015
+ <docblock line="54">
3016
+ <description><![CDATA[Provides a unique name for the Media Manager toolbar option]]></description>
3017
+ <long-description><![CDATA[]]></long-description>
3018
+ </docblock>
3019
+ </constant>
3020
+ <constant namespace="global" line="62" package="Media Library Assistant">
3021
+ <name>MLA_MEDIA_MODAL_MIMETYPES</name>
3022
+ <full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
3023
+ <value><![CDATA['media_modal_mimetypes']]></value>
3024
+ <docblock line="59">
3025
+ <description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
3026
+ <long-description><![CDATA[]]></long-description>
3027
+ </docblock>
3028
+ </constant>
3029
+ <constant namespace="global" line="67" package="Media Library Assistant">
3030
+ <name>MLA_MEDIA_MODAL_MONTHS</name>
3031
+ <full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
3032
+ <value><![CDATA['media_modal_months']]></value>
3033
+ <docblock line="64">
3034
+ <description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
3035
+ <long-description><![CDATA[]]></long-description>
3036
+ </docblock>
3037
+ </constant>
3038
+ <constant namespace="global" line="72" package="Media Library Assistant">
3039
+ <name>MLA_MEDIA_MODAL_TERMS</name>
3040
+ <full_name>MLA_MEDIA_MODAL_TERMS</full_name>
3041
+ <value><![CDATA['media_modal_terms']]></value>
3042
+ <docblock line="69">
3043
+ <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
3044
+ <long-description><![CDATA[]]></long-description>
3045
+ </docblock>
3046
+ </constant>
3047
+ <constant namespace="global" line="77" package="Media Library Assistant">
3048
+ <name>MLA_MEDIA_MODAL_SEARCHBOX</name>
3049
+ <full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
3050
+ <value><![CDATA['media_modal_searchbox']]></value>
3051
+ <docblock line="74">
3052
+ <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
3053
+ <long-description><![CDATA[]]></long-description>
3054
+ </docblock>
3055
+ </constant>
3056
+ <property final="false" static="true" visibility="public" line="88" namespace="global" package="Media Library Assistant">
3057
  <name>$process_featured_in</name>
3058
  <default><![CDATA[true]]></default>
3059
+ <docblock line="79">
3060
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
3061
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
3062
+ <tag line="79" name="since" description="1.00"/>
3063
+ <tag line="79" name="var" description="" type="boolean">
3064
  <type by_reference="false">boolean</type>
3065
  </tag>
3066
  </docblock>
3067
  </property>
3068
+ <property final="false" static="true" visibility="public" line="99" namespace="global" package="Media Library Assistant">
3069
  <name>$process_inserted_in</name>
3070
  <default><![CDATA[true]]></default>
3071
+ <docblock line="90">
3072
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
3073
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
3074
+ <tag line="90" name="since" description="1.00"/>
3075
+ <tag line="90" name="var" description="" type="boolean">
3076
  <type by_reference="false">boolean</type>
3077
  </tag>
3078
  </docblock>
3079
  </property>
3080
+ <property final="false" static="true" visibility="public" line="110" namespace="global" package="Media Library Assistant">
3081
  <name>$process_gallery_in</name>
3082
  <default><![CDATA[true]]></default>
3083
+ <docblock line="101">
3084
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
3085
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
3086
+ <tag line="101" name="since" description="1.00"/>
3087
+ <tag line="101" name="var" description="" type="boolean">
3088
  <type by_reference="false">boolean</type>
3089
  </tag>
3090
  </docblock>
3091
  </property>
3092
+ <property final="false" static="true" visibility="public" line="121" namespace="global" package="Media Library Assistant">
3093
  <name>$process_mla_gallery_in</name>
3094
  <default><![CDATA[true]]></default>
3095
+ <docblock line="112">
3096
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
3097
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
3098
+ <tag line="112" name="since" description="1.00"/>
3099
+ <tag line="112" name="var" description="" type="boolean">
3100
  <type by_reference="false">boolean</type>
3101
  </tag>
3102
  </docblock>
3103
  </property>
3104
+ <property final="false" static="true" visibility="public" line="148" namespace="global" package="Media Library Assistant">
3105
  <name>$mla_option_definitions</name>
3106
+ <default><![CDATA[array(self::MLA_VERSION_OPTION => array('tab' => '', 'type' => 'hidden', 'std' => '0'), 'attachment_category' => array('tab' => '', 'name' => 'Attachment Categories', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Categories.'), 'attachment_tag' => array('tab' => '', 'name' => 'Attachment Tags', 'type' => 'hidden', 'std' => 'checked', 'help' => 'Check this option to add support for Attachment Tags.'), 'where_used_heading' => array('tab' => 'general', 'name' => 'Where-used Reporting', 'type' => 'header'), 'exclude_revisions' => array('tab' => 'general', 'name' => 'Exclude Revisions', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to exclude revisions from where-used reporting.'), 'where_used_subheading' => array('tab' => 'general', 'name' => 'Where-used database access tuning', 'type' => 'subheader'), self::MLA_FEATURED_IN_TUNING => array('tab' => 'general', 'name' => 'Featured in', 'type' => 'select', 'std' => 'enabled', 'options' => array('enabled', 'disabled'), 'texts' => array('Enabled', 'Disabled'), 'help' => 'Search database posts and pages for Featured Image attachments.'), self::MLA_INSERTED_IN_TUNING => array('tab' => 'general', 'name' => 'Inserted in', 'type' => 'select', 'std' => 'enabled', 'options' => array('enabled', 'disabled'), 'texts' => array('Enabled', 'Disabled'), 'help' => 'Search database posts and pages for attachments embedded in content.'), self::MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), self::MLA_MLA_GALLERY_IN_TUNING => array('tab' => 'general', 'name' => 'MLA Gallery in', 'type' => 'select', 'std' => 'cached', 'options' => array('dynamic', 'refresh', 'cached', 'disabled'), 'texts' => array('Dynamic', 'Refresh', 'Cached', 'Disabled'), 'help' => 'Search database posts and pages for [mla_gallery] shortcode results.<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached.'), 'taxonomy_heading' => array('tab' => 'general', 'name' => 'Taxonomy Support', 'type' => 'header'), 'taxonomy_support' => array('tab' => 'general', 'help' => 'Check the "Support" box to add the taxonomy to the Assistant and the Edit Media screen.<br>Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'std' => array('tax_support' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_quick_edit' => array('attachment_category' => 'checked', 'attachment_tag' => 'checked'), 'tax_filter' => 'attachment_category'), 'type' => 'custom', 'render' => 'mla_taxonomy_option_handler', 'update' => 'mla_taxonomy_option_handler', 'delete' => 'mla_taxonomy_option_handler', 'reset' => 'mla_taxonomy_option_handler'), 'orderby_heading' => array('tab' => 'general', 'name' => 'Default Table Listing Sort Order', 'type' => 'header'), 'default_orderby' => array('tab' => 'general', 'name' => 'Order By', 'type' => 'select', 'std' => 'title_name', 'options' => array('none', 'title_name'), 'texts' => array('None', 'Title/Name'), 'help' => 'Select the column for the sort order of the Assistant table listing.'), 'default_order' => array('tab' => 'general', 'name' => 'Order', 'type' => 'radio', 'std' => 'ASC', 'options' => array('ASC', 'DESC'), 'texts' => array('Ascending', 'Descending'), 'help' => 'Choose the sort order.'), 'media_modal_heading' => array('tab' => 'general', 'name' => 'Media Manager Enhancements', 'type' => 'header'), self::MLA_MEDIA_MODAL_TOOLBAR => array('tab' => 'general', 'name' => 'Enable Media Manager Enhancements', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check/uncheck this option to enable/disable Media Manager Enhancements.'), self::MLA_MEDIA_MODAL_MIMETYPES => array('tab' => 'general', 'name' => 'Media Manager Enhanced MIME Type filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by more MIME Types, e.g., text, applications.'), self::MLA_MEDIA_MODAL_MONTHS => array('tab' => 'general', 'name' => 'Media Manager Month and Year filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by month and year uploaded.'), self::MLA_MEDIA_MODAL_TERMS => array('tab' => 'general', 'name' => 'Media Manager Category/Tag filter', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to filter by taxonomy terms.'), self::MLA_MEDIA_MODAL_SEARCHBOX => array('tab' => 'general', 'name' => 'Media Manager Enhanced Search Media box', 'type' => 'checkbox', 'std' => 'checked', 'help' => 'Check this option to enable search box enhancements.'), 'template_heading' => array('tab' => 'mla-gallery', 'name' => 'Default [mla_gallery] Templates', 'type' => 'header'), 'default_style' => array('tab' => 'mla-gallery', 'name' => 'Style Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default style template for your [mla_gallery] shortcodes.'), 'default_markup' => array('tab' => 'mla-gallery', 'name' => 'Markup Template', 'type' => 'select', 'std' => 'default', 'options' => array(), 'texts' => array(), 'help' => 'Select the default markup template for your [mla_gallery] shortcodes.'), 'style_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'markup_templates' => array('tab' => '', 'type' => 'hidden', 'std' => array()), 'enable_custom_field_mapping' => array('tab' => 'custom-field', 'name' => 'Enable custom field mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change this option.<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'custom_field_mapping' => array('tab' => '', 'help' => '&nbsp;<br>Update the custom field mapping values above, then click Save Changes to make the updates permanent.<br>You can also make temporary updates and click a Map All Attachments button to apply the rule(s) to all attachments without saving any rule changes.', 'std' => array(), 'type' => 'custom', 'render' => 'mla_custom_field_option_handler', 'update' => 'mla_custom_field_option_handler', 'delete' => 'mla_custom_field_option_handler', 'reset' => 'mla_custom_field_option_handler'), 'enable_iptc_exif_mapping' => array('tab' => 'iptc-exif', 'name' => 'Enable IPTC/EXIF Mapping when adding new media', 'type' => 'checkbox', 'std' => '', 'help' => 'Check this option to enable mapping when uploading new media (attachments).<br>&nbsp;&nbsp;Does NOT affect the operation of the "Map" buttons on the bulk edit, single edit and settings screens.'), 'iptc_exif_standard_mapping' => array('tab' => '', 'help' => 'Update the standard field mapping values above, then click Save Changes to make the updates permanent.<br>You can also make temporary updates and click Map All Attachments Now to apply the updates to all attachments without saving the rule changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_taxonomy_mapping' => array('tab' => '', 'help' => 'Update the taxonomy term mapping values above, then click Save Changes or Map All Attachments Now.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_custom_mapping' => array('tab' => '', 'help' => 'Update the custom field mapping values above.<br>To define a new custom field, enter a field name in the "Field Title" text box at the end of the list and Save Changes.', 'std' => NULL, 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'), 'iptc_exif_mapping' => array('tab' => '', 'help' => 'IPTC/EXIF Mapping help', 'std' => array('standard' => array('post_title' => array('name' => 'Title', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_name' => array('name' => 'Name/Slug', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'image_alt' => array('name' => 'Alternate Text', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_excerpt' => array('name' => 'Caption', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true), 'post_content' => array('name' => 'Description', 'iptc_value' => 'none', 'exif_value' => '', 'iptc_first' => true, 'keep_existing' => true)), 'taxonomy' => array(), 'custom' => array()), 'type' => 'custom', 'render' => 'mla_iptc_exif_option_handler', 'update' => 'mla_iptc_exif_option_handler', 'delete' => 'mla_iptc_exif_option_handler', 'reset' => 'mla_iptc_exif_option_handler'))]]></default>
3107
+ <docblock line="123">
3108
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them.]]></description>
3109
  <long-description><![CDATA[<p>Each option is defined by an array with the following elements:</p>
3110
 
3130
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
3131
  </docblock>
3132
  </property>
3133
+ <property final="false" static="true" visibility="private" line="512" namespace="global" package="Media Library Assistant">
3134
  <name>$mla_option_templates</name>
3135
  <default><![CDATA[null]]></default>
3136
+ <docblock line="505">
3137
  <description><![CDATA[Style and Markup templates]]></description>
3138
  <long-description><![CDATA[]]></long-description>
3139
+ <tag line="505" name="since" description="0.80"/>
3140
+ <tag line="505" name="var" description="" type="array">
3141
  <type by_reference="false">array</type>
3142
  </tag>
3143
  </docblock>
3144
  </property>
3145
+ <property final="false" static="true" visibility="private" line="1432" namespace="global" package="Media Library Assistant">
3146
  <name>$custom_field_data_sources</name>
3147
  <default><![CDATA[array('path', 'file_name', 'extension', 'file_size', 'dimensions', 'pixels', 'width', 'height', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
3148
+ <docblock line="1425">
3149
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
3150
  <long-description><![CDATA[]]></long-description>
3151
+ <tag line="1425" name="since" description="1.10"/>
3152
+ <tag line="1425" name="var" description="" type="array">
3153
  <type by_reference="false">array</type>
3154
  </tag>
3155
  </docblock>
3156
  </property>
3157
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="486" package="Media Library Assistant">
3158
  <name>initialize</name>
3159
  <full_name>initialize</full_name>
3160
+ <docblock line="479">
3161
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
3162
  <long-description><![CDATA[]]></long-description>
3163
+ <tag line="479" name="since" description="1.00"/>
3164
+ <tag line="479" name="return" description="" type="void">
3165
  <type by_reference="false">void</type>
3166
  </tag>
3167
  </docblock>
3168
  </method>
3169
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="521" package="Media Library Assistant">
3170
  <name>_load_option_templates</name>
3171
  <full_name>_load_option_templates</full_name>
3172
+ <docblock line="514">
3173
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
3174
  <long-description><![CDATA[]]></long-description>
3175
+ <tag line="514" name="since" description="0.80"/>
3176
+ <tag line="514" name="return" description="" type="void">
3177
  <type by_reference="false">void</type>
3178
  </tag>
3179
  </docblock>
3180
  </method>
3181
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="569" package="Media Library Assistant">
3182
  <name>mla_fetch_gallery_template</name>
3183
  <full_name>mla_fetch_gallery_template</full_name>
3184
+ <docblock line="559">
3185
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
3186
  <long-description><![CDATA[]]></long-description>
3187
+ <tag line="559" name="since" description="0.80"/>
3188
+ <tag line="559" name="param" description="Template name" type="string" variable="$key">
3189
  <type by_reference="false">string</type>
3190
  </tag>
3191
+ <tag line="559" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
3192
  <type by_reference="false">string</type>
3193
  </tag>
3194
+ <tag line="559" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
3195
  <type by_reference="false">string</type>
3196
  <type by_reference="false">boolean</type>
3197
  <type by_reference="false">null</type>
3198
  </tag>
3199
  </docblock>
3200
+ <argument line="569">
3201
  <name>$key</name>
3202
  <default><![CDATA[]]></default>
3203
  <type/>
3204
  </argument>
3205
+ <argument line="569">
3206
  <name>$type</name>
3207
  <default><![CDATA['style']]></default>
3208
  <type/>
3209
  </argument>
3210
  </method>
3211
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="591" package="Media Library Assistant">
3212
  <name>mla_get_style_templates</name>
3213
  <full_name>mla_get_style_templates</full_name>
3214
+ <docblock line="584">
3215
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
3216
  <long-description><![CDATA[]]></long-description>
3217
+ <tag line="584" name="since" description="0.80"/>
3218
+ <tag line="584" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
3219
  <type by_reference="false">array</type>
3220
  <type by_reference="false">null</type>
3221
  </tag>
3222
  </docblock>
3223
  </method>
3224
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="617" package="Media Library Assistant">
3225
  <name>mla_put_style_templates</name>
3226
  <full_name>mla_put_style_templates</full_name>
3227
+ <docblock line="609">
3228
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
3229
  <long-description><![CDATA[]]></long-description>
3230
+ <tag line="609" name="since" description="0.80"/>
3231
+ <tag line="609" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
3232
  <type by_reference="false">array</type>
3233
  </tag>
3234
+ <tag line="609" name="return" description="true if success, false if failure" type="boolean">
3235
  <type by_reference="false">boolean</type>
3236
  </tag>
3237
  </docblock>
3238
+ <argument line="617">
3239
  <name>$templates</name>
3240
  <default><![CDATA[]]></default>
3241
  <type/>
3242
  </argument>
3243
  </method>
3244
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="633" package="Media Library Assistant">
3245
  <name>mla_get_markup_templates</name>
3246
  <full_name>mla_get_markup_templates</full_name>
3247
+ <docblock line="626">
3248
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
3249
  <long-description><![CDATA[]]></long-description>
3250
+ <tag line="626" name="since" description="0.80"/>
3251
+ <tag line="626" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
3252
  <type by_reference="false">array</type>
3253
  <type by_reference="false">null</type>
3254
  </tag>
3255
  </docblock>
3256
  </method>
3257
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="687" package="Media Library Assistant">
3258
  <name>mla_put_markup_templates</name>
3259
  <full_name>mla_put_markup_templates</full_name>
3260
+ <docblock line="679">
3261
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
3262
  <long-description><![CDATA[]]></long-description>
3263
+ <tag line="679" name="since" description="0.80"/>
3264
+ <tag line="679" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
3265
  <type by_reference="false">array</type>
3266
  </tag>
3267
+ <tag line="679" name="return" description="true if success, false if failure" type="boolean">
3268
  <type by_reference="false">boolean</type>
3269
  </tag>
3270
  </docblock>
3271
+ <argument line="687">
3272
  <name>$templates</name>
3273
  <default><![CDATA[]]></default>
3274
  <type/>
3275
  </argument>
3276
  </method>
3277
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="705" package="Media Library Assistant">
3278
  <name>mla_get_option</name>
3279
  <full_name>mla_get_option</full_name>
3280
+ <docblock line="696">
3281
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
3282
  <long-description><![CDATA[]]></long-description>
3283
+ <tag line="696" name="since" description="0.1"/>
3284
+ <tag line="696" name="param" description="Name of the desired option" type="string" variable="$option">
3285
  <type by_reference="false">string</type>
3286
  </tag>
3287
+ <tag line="696" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
3288
  <type by_reference="false">mixed</type>
3289
  </tag>
3290
  </docblock>
3291
+ <argument line="705">
3292
  <name>$option</name>
3293
  <default><![CDATA[]]></default>
3294
  <type/>
3295
  </argument>
3296
  </method>
3297
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="726" package="Media Library Assistant">
3298
  <name>mla_update_option</name>
3299
  <full_name>mla_update_option</full_name>
3300
+ <docblock line="716">
3301
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
3302
  <long-description><![CDATA[]]></long-description>
3303
+ <tag line="716" name="since" description="0.1"/>
3304
+ <tag line="716" name="param" description="Name of the desired option" type="string" variable="$option">
3305
  <type by_reference="false">string</type>
3306
  </tag>
3307
+ <tag line="716" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
3308
  <type by_reference="false">mixed</type>
3309
  </tag>
3310
+ <tag line="716" name="return" description="True if the value was changed or false if the update failed" type="boolean">
3311
  <type by_reference="false">boolean</type>
3312
  </tag>
3313
  </docblock>
3314
+ <argument line="726">
3315
  <name>$option</name>
3316
  <default><![CDATA[]]></default>
3317
  <type/>
3318
  </argument>
3319
+ <argument line="726">
3320
  <name>$newvalue</name>
3321
  <default><![CDATA[]]></default>
3322
  <type/>
3323
  </argument>
3324
  </method>
3325
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="742" package="Media Library Assistant">
3326
  <name>mla_delete_option</name>
3327
  <full_name>mla_delete_option</full_name>
3328
+ <docblock line="733">
3329
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
3330
  <long-description><![CDATA[]]></long-description>
3331
+ <tag line="733" name="since" description="0.1"/>
3332
+ <tag line="733" name="param" description="Name of the desired option" type="string" variable="$option">
3333
  <type by_reference="false">string</type>
3334
  </tag>
3335
+ <tag line="733" name="return" description="True if the option was deleted, otherwise false" type="boolean">
3336
  <type by_reference="false">boolean</type>
3337
  </tag>
3338
  </docblock>
3339
+ <argument line="742">
3340
  <name>$option</name>
3341
  <default><![CDATA[]]></default>
3342
  <type/>
3343
  </argument>
3344
  </method>
3345
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="763" package="Media Library Assistant">
3346
  <name>mla_taxonomy_support</name>
3347
  <full_name>mla_taxonomy_support</full_name>
3348
+ <docblock line="750">
3349
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
3350
  settings are being updated or reset.]]></description>
3351
  <long-description><![CDATA[]]></long-description>
3352
+ <tag line="750" name="since" description="0.30"/>
3353
+ <tag line="750" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
3354
  <type by_reference="false">string</type>
3355
  </tag>
3356
+ <tag line="750" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
3357
  <type by_reference="false">string</type>
3358
  </tag>
3359
+ <tag line="750" name="return" description="true if the taxonomy is supported in this way else false string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by" type="boolean|string">
3360
  <type by_reference="false">boolean</type>
3361
  <type by_reference="false">string</type>
3362
  </tag>
3363
  </docblock>
3364
+ <argument line="763">
3365
  <name>$tax_name</name>
3366
  <default><![CDATA[]]></default>
3367
  <type/>
3368
  </argument>
3369
+ <argument line="763">
3370
  <name>$support_type</name>
3371
  <default><![CDATA['support']]></default>
3372
  <type/>
3373
  </argument>
3374
  </method>
3375
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="839" package="Media Library Assistant">
3376
  <name>mla_taxonomy_option_handler</name>
3377
  <full_name>mla_taxonomy_option_handler</full_name>
3378
+ <docblock line="826">
3379
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
3380
  <long-description><![CDATA[]]></long-description>
3381
+ <tag line="826" name="since" description="0.30"/>
3382
+ <tag line="826" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3383
+ <tag line="826" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
3384
  <type by_reference="false">string</type>
3385
  </tag>
3386
+ <tag line="826" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
3387
  <type by_reference="false">string</type>
3388
  </tag>
3389
+ <tag line="826" name="param" description="option parameters" type="array" variable="$value">
3390
  <type by_reference="false">array</type>
3391
  </tag>
3392
+ <tag line="826" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
3393
  <type by_reference="false">array</type>
3394
  </tag>
3395
+ <tag line="826" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
3396
  <type by_reference="false">string</type>
3397
  </tag>
3398
  </docblock>
3399
+ <argument line="839">
3400
  <name>$action</name>
3401
  <default><![CDATA[]]></default>
3402
  <type/>
3403
  </argument>
3404
+ <argument line="839">
3405
  <name>$key</name>
3406
  <default><![CDATA[]]></default>
3407
  <type/>
3408
  </argument>
3409
+ <argument line="839">
3410
  <name>$value</name>
3411
  <default><![CDATA[]]></default>
3412
  <type/>
3413
  </argument>
3414
+ <argument line="839">
3415
  <name>$args</name>
3416
  <default><![CDATA[null]]></default>
3417
  <type/>
3418
  </argument>
3419
  </method>
3420
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="947" package="Media Library Assistant">
3421
  <name>mla_add_attachment_action</name>
3422
  <full_name>mla_add_attachment_action</full_name>
3423
+ <docblock line="938">
3424
  <description><![CDATA[Perform ITC/EXIF mapping on just-inserted attachment]]></description>
3425
  <long-description><![CDATA[]]></long-description>
3426
+ <tag line="938" name="since" description="1.00"/>
3427
+ <tag line="938" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
3428
  <type by_reference="false">integer</type>
3429
  </tag>
3430
+ <tag line="938" name="return" description="" type="void">
3431
  <type by_reference="false">void</type>
3432
  </tag>
3433
  </docblock>
3434
+ <argument line="947">
3435
  <name>$post_id</name>
3436
  <default><![CDATA[]]></default>
3437
  <type/>
3438
  </argument>
3439
  </method>
3440
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="967" package="Media Library Assistant">
3441
  <name>mla_update_attachment_metadata_filter</name>
3442
  <full_name>mla_update_attachment_metadata_filter</full_name>
3443
+ <docblock line="957">
3444
  <description><![CDATA[Perform Custom Field mapping on just-inserted or updated attachment]]></description>
3445
  <long-description><![CDATA[]]></long-description>
3446
+ <tag line="957" name="since" description="1.10"/>
3447
+ <tag line="957" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
3448
  <type by_reference="false">array</type>
3449
  </tag>
3450
+ <tag line="957" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
3451
  <type by_reference="false">integer</type>
3452
  </tag>
3453
+ <tag line="957" name="return" description="" type="void">
3454
  <type by_reference="false">void</type>
3455
  </tag>
3456
  </docblock>
3457
+ <argument line="967">
3458
  <name>$data</name>
3459
  <default><![CDATA[]]></default>
3460
  <type/>
3461
  </argument>
3462
+ <argument line="967">
3463
  <name>$post_id</name>
3464
  <default><![CDATA[]]></default>
3465
  <type/>
3466
  </argument>
3467
  </method>
3468
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="987" package="Media Library Assistant">
3469
  <name>mla_custom_field_option_value</name>
3470
  <full_name>mla_custom_field_option_value</full_name>
3471
+ <docblock line="978">
3472
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
3473
  <long-description><![CDATA[]]></long-description>
3474
+ <tag line="978" name="since" description="1.10"/>
3475
+ <tag line="978" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
3476
  <type by_reference="false">string</type>
3477
  </tag>
3478
+ <tag line="978" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
3479
  <type by_reference="false">array</type>
3480
  </tag>
3481
  </docblock>
3482
+ <argument line="987">
3483
  <name>$slug</name>
3484
  <default><![CDATA[]]></default>
3485
  <type/>
3486
  </argument>
3487
  </method>
3488
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1007" package="Media Library Assistant">
3489
  <name>mla_custom_field_support</name>
3490
  <full_name>mla_custom_field_support</full_name>
3491
+ <docblock line="998">
3492
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
3493
  <long-description><![CDATA[]]></long-description>
3494
+ <tag line="998" name="since" description="1.10"/>
3495
+ <tag line="998" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
3496
  <type by_reference="false">string</type>
3497
  </tag>
3498
+ <tag line="998" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
3499
  <type by_reference="false">array</type>
3500
  </tag>
3501
  </docblock>
3502
+ <argument line="1007">
3503
  <name>$support_type</name>
3504
  <default><![CDATA['default_columns']]></default>
3505
  <type/>
3506
  </argument>
3507
  </method>
3508
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1053" package="Media Library Assistant">
3509
  <name>_evaluate_file_information</name>
3510
  <full_name>_evaluate_file_information</full_name>
3511
+ <docblock line="1041">
3512
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
3513
  <long-description><![CDATA[]]></long-description>
3514
+ <tag line="1041" name="since" description="1.10"/>
3515
+ <tag line="1041" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
3516
  <type by_reference="false">string</type>
3517
  </tag>
3518
+ <tag line="1041" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
3519
  <type by_reference="false">array</type>
3520
  </tag>
3521
+ <tag line="1041" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
3522
  <type by_reference="false">array</type>
3523
  </tag>
3524
+ <tag line="1041" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
3525
  <type by_reference="false">integer</type>
3526
  </tag>
3527
+ <tag line="1041" name="return" description="absolute_path, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
3528
  <type by_reference="false">array</type>
3529
  </tag>
3530
  </docblock>
3531
+ <argument line="1053">
3532
  <name>$upload_dir</name>
3533
  <default><![CDATA[]]></default>
3534
  <type/>
3535
  </argument>
3536
+ <argument line="1053">
3537
  <name>$wp_attached_files</name>
3538
  <default><![CDATA[]]></default>
3539
  <type/>
3540
  </argument>
3541
+ <argument line="1053">
3542
  <name>$wp_attachment_metadata</name>
3543
  <default><![CDATA[]]></default>
3544
  <type/>
3545
  </argument>
3546
+ <argument line="1053">
3547
  <name>$post_id</name>
3548
  <default><![CDATA[]]></default>
3549
  <type/>
3550
  </argument>
3551
  </method>
3552
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1126" package="Media Library Assistant">
3553
  <name>_evaluate_data_source</name>
3554
  <full_name>_evaluate_data_source</full_name>
3555
+ <docblock line="1113">
3556
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
3557
  <long-description><![CDATA[]]></long-description>
3558
+ <tag line="1113" name="since" description="1.10"/>
3559
+ <tag line="1113" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
3560
  <type by_reference="false">integer</type>
3561
  </tag>
3562
+ <tag line="1113" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
3563
  <type by_reference="false">string</type>
3564
  </tag>
3565
+ <tag line="1113" name="param" description="data source name" type="string" variable="$data_source">
3566
  <type by_reference="false">string</type>
3567
  </tag>
3568
+ <tag line="1113" name="param" description="desired results format, default 'native'" type="string" variable="$format">
3569
  <type by_reference="false">string</type>
3570
  </tag>
3571
+ <tag line="1113" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
3572
  <type by_reference="false">array</type>
3573
  </tag>
3574
+ <tag line="1113" name="return" description="data source value" type="string">
3575
  <type by_reference="false">string</type>
3576
  </tag>
3577
  </docblock>
3578
+ <argument line="1126">
3579
  <name>$post_id</name>
3580
  <default><![CDATA[]]></default>
3581
  <type/>
3582
  </argument>
3583
+ <argument line="1126">
3584
  <name>$category</name>
3585
  <default><![CDATA[]]></default>
3586
  <type/>
3587
  </argument>
3588
+ <argument line="1126">
3589
  <name>$data_source</name>
3590
  <default><![CDATA[]]></default>
3591
  <type/>
3592
  </argument>
3593
+ <argument line="1126">
3594
  <name>$format</name>
3595
  <default><![CDATA['native']]></default>
3596
  <type/>
3597
  </argument>
3598
+ <argument line="1126">
3599
  <name>$attachment_metadata</name>
3600
  <default><![CDATA[NULL]]></default>
3601
  <type/>
3602
  </argument>
3603
  </method>
3604
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1366" package="Media Library Assistant">
3605
  <name>mla_evaluate_custom_field_mapping</name>
3606
  <full_name>mla_evaluate_custom_field_mapping</full_name>
3607
+ <docblock line="1354">
3608
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
3609
  <long-description><![CDATA[]]></long-description>
3610
+ <tag line="1354" name="since" description="1.10"/>
3611
+ <tag line="1354" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
3612
  <type by_reference="false">integer</type>
3613
  </tag>
3614
+ <tag line="1354" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
3615
  <type by_reference="false">string</type>
3616
  </tag>
3617
+ <tag line="1354" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
3618
  <type by_reference="false">array</type>
3619
  </tag>
3620
+ <tag line="1354" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
3621
  <type by_reference="false">array</type>
3622
  </tag>
3623
+ <tag line="1354" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
3624
  <type by_reference="false">array</type>
3625
  </tag>
3626
  </docblock>
3627
+ <argument line="1366">
3628
  <name>$post_id</name>
3629
  <default><![CDATA[]]></default>
3630
  <type/>
3631
  </argument>
3632
+ <argument line="1366">
3633
  <name>$category</name>
3634
  <default><![CDATA[]]></default>
3635
  <type/>
3636
  </argument>
3637
+ <argument line="1366">
3638
  <name>$settings</name>
3639
  <default><![CDATA[NULL]]></default>
3640
  <type/>
3641
  </argument>
3642
+ <argument line="1366">
3643
  <name>$attachment_metadata</name>
3644
  <default><![CDATA[NULL]]></default>
3645
  <type/>
3646
  </argument>
3647
  </method>
3648
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1402" package="Media Library Assistant">
3649
  <name>_compose_custom_field_option_list</name>
3650
  <full_name>_compose_custom_field_option_list</full_name>
3651
+ <docblock line="1392">
3652
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
3653
  <long-description><![CDATA[]]></long-description>
3654
+ <tag line="1392" name="since" description="1.10"/>
3655
+ <tag line="1392" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3656
+ <tag line="1392" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
3657
  <type by_reference="false">string</type>
3658
  </tag>
3659
+ <tag line="1392" name="return" description="HTML markup with select field options" type="string">
3660
  <type by_reference="false">string</type>
3661
  </tag>
3662
  </docblock>
3663
+ <argument line="1402">
3664
  <name>$selection</name>
3665
  <default><![CDATA['none']]></default>
3666
  <type/>
3667
  </argument>
3668
  </method>
3669
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1477" package="Media Library Assistant">
3670
  <name>_compose_data_source_option_list</name>
3671
  <full_name>_compose_data_source_option_list</full_name>
3672
+ <docblock line="1467">
3673
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
3674
  <long-description><![CDATA[]]></long-description>
3675
+ <tag line="1467" name="since" description="1.10"/>
3676
+ <tag line="1467" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3677
+ <tag line="1467" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
3678
  <type by_reference="false">string</type>
3679
  </tag>
3680
+ <tag line="1467" name="return" description="HTML markup with select field options" type="string">
3681
  <type by_reference="false">string</type>
3682
  </tag>
3683
  </docblock>
3684
+ <argument line="1477">
3685
  <name>$selection</name>
3686
  <default><![CDATA['none']]></default>
3687
  <type/>
3688
  </argument>
3689
  </method>
3690
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1528" package="Media Library Assistant">
3691
  <name>_update_custom_field_mapping</name>
3692
  <full_name>_update_custom_field_mapping</full_name>
3693
+ <docblock line="1518">
3694
  <description><![CDATA[Update custom field mappings]]></description>
3695
  <long-description><![CDATA[]]></long-description>
3696
+ <tag line="1518" name="since" description="1.10"/>
3697
+ <tag line="1518" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
3698
  <type by_reference="false">array</type>
3699
  </tag>
3700
+ <tag line="1518" name="param" description="new values" type="array" variable="$new_values">
3701
  <type by_reference="false">array</type>
3702
  </tag>
3703
+ <tag line="1518" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3704
  <type by_reference="false">array</type>
3705
  </tag>
3706
  </docblock>
3707
+ <argument line="1528">
3708
  <name>$current_values</name>
3709
  <default><![CDATA[]]></default>
3710
  <type/>
3711
  </argument>
3712
+ <argument line="1528">
3713
  <name>$new_values</name>
3714
  <default><![CDATA[]]></default>
3715
  <type/>
3716
  </argument>
3717
  </method>
3718
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1684" package="Media Library Assistant">
3719
  <name>mla_custom_field_option_handler</name>
3720
  <full_name>mla_custom_field_option_handler</full_name>
3721
+ <docblock line="1671">
3722
  <description><![CDATA[Render and manage custom field mapping options]]></description>
3723
  <long-description><![CDATA[]]></long-description>
3724
+ <tag line="1671" name="since" description="1.10"/>
3725
+ <tag line="1671" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3726
+ <tag line="1671" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
3727
  <type by_reference="false">string</type>
3728
  </tag>
3729
+ <tag line="1671" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
3730
  <type by_reference="false">string</type>
3731
  </tag>
3732
+ <tag line="1671" name="param" description="option parameters" type="array" variable="$value">
3733
  <type by_reference="false">array</type>
3734
  </tag>
3735
+ <tag line="1671" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
3736
  <type by_reference="false">array</type>
3737
  </tag>
3738
+ <tag line="1671" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
3739
  <type by_reference="false">string</type>
3740
  </tag>
3741
  </docblock>
3742
+ <argument line="1684">
3743
  <name>$action</name>
3744
  <default><![CDATA[]]></default>
3745
  <type/>
3746
  </argument>
3747
+ <argument line="1684">
3748
  <name>$key</name>
3749
  <default><![CDATA[]]></default>
3750
  <type/>
3751
  </argument>
3752
+ <argument line="1684">
3753
  <name>$value</name>
3754
  <default><![CDATA[]]></default>
3755
  <type/>
3756
  </argument>
3757
+ <argument line="1684">
3758
  <name>$args</name>
3759
  <default><![CDATA[null]]></default>
3760
  <type/>
3761
  </argument>
3762
  </method>
3763
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1828" package="Media Library Assistant">
3764
  <name>mla_evaluate_iptc_exif_mapping</name>
3765
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
3766
+ <docblock line="1817">
3767
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
3768
  <long-description><![CDATA[]]></long-description>
3769
+ <tag line="1817" name="since" description="1.00"/>
3770
+ <tag line="1817" name="param" description="post object with current values" type="object" variable="$post">
3771
  <type by_reference="false">object</type>
3772
  </tag>
3773
+ <tag line="1817" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
3774
  <type by_reference="false">string</type>
3775
  </tag>
3776
+ <tag line="1817" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
3777
  <type by_reference="false">array</type>
3778
  </tag>
3779
+ <tag line="1817" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
3780
  <type by_reference="false">array</type>
3781
  </tag>
3782
  </docblock>
3783
+ <argument line="1828">
3784
  <name>$post</name>
3785
  <default><![CDATA[]]></default>
3786
  <type/>
3787
  </argument>
3788
+ <argument line="1828">
3789
  <name>$category</name>
3790
  <default><![CDATA[]]></default>
3791
  <type/>
3792
  </argument>
3793
+ <argument line="1828">
3794
  <name>$settings</name>
3795
  <default><![CDATA[NULL]]></default>
3796
  <type/>
3797
  </argument>
3798
  </method>
3799
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1989" package="Media Library Assistant">
3800
  <name>_compose_iptc_option_list</name>
3801
  <full_name>_compose_iptc_option_list</full_name>
3802
+ <docblock line="1979">
3803
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
3804
  <long-description><![CDATA[]]></long-description>
3805
+ <tag line="1979" name="since" description="1.00"/>
3806
+ <tag line="1979" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3807
+ <tag line="1979" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
3808
  <type by_reference="false">string</type>
3809
  </tag>
3810
+ <tag line="1979" name="return" description="HTML markup with select field options" type="string">
3811
  <type by_reference="false">string</type>
3812
  </tag>
3813
  </docblock>
3814
+ <argument line="1989">
3815
  <name>$selection</name>
3816
  <default><![CDATA['none']]></default>
3817
  <type/>
3818
  </argument>
3819
  </method>
3820
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2022" package="Media Library Assistant">
3821
  <name>_compose_parent_option_list</name>
3822
  <full_name>_compose_parent_option_list</full_name>
3823
+ <docblock line="2011">
3824
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
3825
  <long-description><![CDATA[]]></long-description>
3826
+ <tag line="2011" name="since" description="1.00"/>
3827
+ <tag line="2011" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3828
+ <tag line="2011" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
3829
  <type by_reference="false">string</type>
3830
  </tag>
3831
+ <tag line="2011" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
3832
  <type by_reference="false">integer</type>
3833
  </tag>
3834
+ <tag line="2011" name="return" description="HTML markup with select field options" type="string">
3835
  <type by_reference="false">string</type>
3836
  </tag>
3837
  </docblock>
3838
+ <argument line="2022">
3839
  <name>$taxonomy</name>
3840
  <default><![CDATA[]]></default>
3841
  <type/>
3842
  </argument>
3843
+ <argument line="2022">
3844
  <name>$selection</name>
3845
  <default><![CDATA[0]]></default>
3846
  <type/>
3847
  </argument>
3848
  </method>
3849
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2056" package="Media Library Assistant">
3850
  <name>_update_iptc_exif_standard_mapping</name>
3851
  <full_name>_update_iptc_exif_standard_mapping</full_name>
3852
+ <docblock line="2046">
3853
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
3854
  <long-description><![CDATA[]]></long-description>
3855
+ <tag line="2046" name="since" description="1.00"/>
3856
+ <tag line="2046" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
3857
  <type by_reference="false">array</type>
3858
  </tag>
3859
+ <tag line="2046" name="param" description="new values" type="array" variable="$new_values">
3860
  <type by_reference="false">array</type>
3861
  </tag>
3862
+ <tag line="2046" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3863
  <type by_reference="false">array</type>
3864
  </tag>
3865
  </docblock>
3866
+ <argument line="2056">
3867
  <name>$current_values</name>
3868
  <default><![CDATA[]]></default>
3869
  <type/>
3870
  </argument>
3871
+ <argument line="2056">
3872
  <name>$new_values</name>
3873
  <default><![CDATA[]]></default>
3874
  <type/>
3875
  </argument>
3876
  </method>
3877
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2135" package="Media Library Assistant">
3878
  <name>_update_iptc_exif_taxonomy_mapping</name>
3879
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
3880
+ <docblock line="2125">
3881
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
3882
  <long-description><![CDATA[]]></long-description>
3883
+ <tag line="2125" name="since" description="1.00"/>
3884
+ <tag line="2125" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
3885
  <type by_reference="false">array</type>
3886
  </tag>
3887
+ <tag line="2125" name="param" description="new values" type="array" variable="$new_values">
3888
  <type by_reference="false">array</type>
3889
  </tag>
3890
+ <tag line="2125" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3891
  <type by_reference="false">array</type>
3892
  </tag>
3893
  </docblock>
3894
+ <argument line="2135">
3895
  <name>$current_values</name>
3896
  <default><![CDATA[]]></default>
3897
  <type/>
3898
  </argument>
3899
+ <argument line="2135">
3900
  <name>$new_values</name>
3901
  <default><![CDATA[]]></default>
3902
  <type/>
3903
  </argument>
3904
  </method>
3905
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2227" package="Media Library Assistant">
3906
  <name>_update_iptc_exif_custom_mapping</name>
3907
  <full_name>_update_iptc_exif_custom_mapping</full_name>
3908
+ <docblock line="2217">
3909
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
3910
  <long-description><![CDATA[]]></long-description>
3911
+ <tag line="2217" name="since" description="1.00"/>
3912
+ <tag line="2217" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
3913
  <type by_reference="false">array</type>
3914
  </tag>
3915
+ <tag line="2217" name="param" description="new values" type="array" variable="$new_values">
3916
  <type by_reference="false">array</type>
3917
  </tag>
3918
+ <tag line="2217" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated iptc_exif_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
3919
  <type by_reference="false">array</type>
3920
  </tag>
3921
  </docblock>
3922
+ <argument line="2227">
3923
  <name>$current_values</name>
3924
  <default><![CDATA[]]></default>
3925
  <type/>
3926
  </argument>
3927
+ <argument line="2227">
3928
  <name>$new_values</name>
3929
  <default><![CDATA[]]></default>
3930
  <type/>
3931
  </argument>
3932
  </method>
3933
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2323" package="Media Library Assistant">
3934
  <name>_get_custom_field_names</name>
3935
  <full_name>_get_custom_field_names</full_name>
3936
+ <docblock line="2316">
3937
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
3938
  <long-description><![CDATA[]]></long-description>
3939
+ <tag line="2316" name="since" description="1.00"/>
3940
+ <tag line="2316" name="return" description="Custom field names from the postmeta table" type="array">
3941
  <type by_reference="false">array</type>
3942
  </tag>
3943
  </docblock>
3944
  </method>
3945
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2352" package="Media Library Assistant">
3946
  <name>mla_iptc_exif_option_handler</name>
3947
  <full_name>mla_iptc_exif_option_handler</full_name>
3948
+ <docblock line="2339">
3949
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
3950
  <long-description><![CDATA[]]></long-description>
3951
+ <tag line="2339" name="since" description="1.00"/>
3952
+ <tag line="2339" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
3953
+ <tag line="2339" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
3954
  <type by_reference="false">string</type>
3955
  </tag>
3956
+ <tag line="2339" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
3957
  <type by_reference="false">string</type>
3958
  </tag>
3959
+ <tag line="2339" name="param" description="option parameters" type="array" variable="$value">
3960
  <type by_reference="false">array</type>
3961
  </tag>
3962
+ <tag line="2339" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
3963
  <type by_reference="false">array</type>
3964
  </tag>
3965
+ <tag line="2339" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
3966
  <type by_reference="false">string</type>
3967
  </tag>
3968
  </docblock>
3969
+ <argument line="2352">
3970
  <name>$action</name>
3971
  <default><![CDATA[]]></default>
3972
  <type/>
3973
  </argument>
3974
+ <argument line="2352">
3975
  <name>$key</name>
3976
  <default><![CDATA[]]></default>
3977
  <type/>
3978
  </argument>
3979
+ <argument line="2352">
3980
  <name>$value</name>
3981
  <default><![CDATA[]]></default>
3982
  <type/>
3983
  </argument>
3984
+ <argument line="2352">
3985
  <name>$args</name>
3986
  <default><![CDATA[null]]></default>
3987
  <type/>
3989
  </method>
3990
  </class>
3991
  </file>
3992
+ <file path="includes\class-mla-settings.php" hash="dfe208cdbd5ff5e2a5fbe4bc00dcc9b7" package="Media Library Assistant">
3993
  <docblock line="2">
3994
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
3995
  <long-description><![CDATA[]]></long-description>
4226
  </tag>
4227
  </docblock>
4228
  </method>
4229
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="517" package="Media Library Assistant">
4230
  <name>_compose_mla_gallery_tab</name>
4231
  <full_name>_compose_mla_gallery_tab</full_name>
4232
+ <docblock line="509">
4233
  <description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
4234
  <long-description><![CDATA[]]></long-description>
4235
+ <tag line="509" name="since" description="0.80"/>
4236
+ <tag line="509" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
4237
+ <tag line="509" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
4238
  <type by_reference="false">array</type>
4239
  </tag>
4240
  </docblock>
4241
  </method>
4242
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="816" package="Media Library Assistant">
4243
  <name>_compose_custom_field_tab</name>
4244
  <full_name>_compose_custom_field_tab</full_name>
4245
+ <docblock line="808">
4246
  <description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
4247
  <long-description><![CDATA[]]></long-description>
4248
+ <tag line="808" name="since" description="1.10"/>
4249
+ <tag line="808" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
4250
+ <tag line="808" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
4251
  <type by_reference="false">array</type>
4252
  </tag>
4253
  </docblock>
4254
  </method>
4255
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="921" package="Media Library Assistant">
4256
  <name>_compose_iptc_exif_tab</name>
4257
  <full_name>_compose_iptc_exif_tab</full_name>
4258
+ <docblock line="913">
4259
  <description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
4260
  <long-description><![CDATA[]]></long-description>
4261
+ <tag line="913" name="since" description="1.00"/>
4262
+ <tag line="913" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
4263
+ <tag line="913" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
4264
  <type by_reference="false">array</type>
4265
  </tag>
4266
  </docblock>
4267
  </method>
4268
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="993" package="Media Library Assistant">
4269
  <name>_compose_documentation_tab</name>
4270
  <full_name>_compose_documentation_tab</full_name>
4271
+ <docblock line="985">
4272
  <description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
4273
  <long-description><![CDATA[]]></long-description>
4274
+ <tag line="985" name="since" description="0.80"/>
4275
+ <tag line="985" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
4276
+ <tag line="985" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
4277
  <type by_reference="false">array</type>
4278
  </tag>
4279
  </docblock>
4280
  </method>
4281
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1012" package="Media Library Assistant">
4282
  <name>mla_render_settings_page</name>
4283
  <full_name>mla_render_settings_page</full_name>
4284
+ <docblock line="1005">
4285
  <description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
4286
  <long-description><![CDATA[]]></long-description>
4287
+ <tag line="1005" name="since" description="0.1"/>
4288
+ <tag line="1005" name="return" description="Echoes HTML markup for the Settings subpage" type="void">
4289
  <type by_reference="false">void</type>
4290
  </tag>
4291
  </docblock>
4292
  </method>
4293
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1063" package="Media Library Assistant">
4294
  <name>_save_gallery_settings</name>
4295
  <full_name>_save_gallery_settings</full_name>
4296
+ <docblock line="1054">
4297
  <description><![CDATA[Save MLA Gallery settings to the options table]]></description>
4298
  <long-description><![CDATA[]]></long-description>
4299
+ <tag line="1054" name="since" description="0.80"/>
4300
+ <tag line="1054" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4301
+ <tag line="1054" name="return" description="Message(s) reflecting the results of the operation" type="array">
4302
  <type by_reference="false">array</type>
4303
  </tag>
4304
  </docblock>
4305
  </method>
4306
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1296" package="Media Library Assistant">
4307
  <name>_process_custom_field_mapping</name>
4308
  <full_name>_process_custom_field_mapping</full_name>
4309
+ <docblock line="1285">
4310
  <description><![CDATA[Process custom field settings against all image attachments
4311
  without saving the settings to the mla_option]]></description>
4312
  <long-description><![CDATA[]]></long-description>
4313
+ <tag line="1285" name="since" description="1.10"/>
4314
+ <tag line="1285" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4315
+ <tag line="1285" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
4316
  <type by_reference="false">array</type>
4317
  </tag>
4318
+ <tag line="1285" name="return" description="Message(s) reflecting the results of the operation" type="array">
4319
  <type by_reference="false">array</type>
4320
  </tag>
4321
  </docblock>
4322
+ <argument line="1296">
4323
  <name>$settings</name>
4324
  <default><![CDATA[NULL]]></default>
4325
  <type/>
4326
  </argument>
4327
  </method>
4328
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1348" package="Media Library Assistant">
4329
  <name>_delete_custom_field</name>
4330
  <full_name>_delete_custom_field</full_name>
4331
+ <docblock line="1339">
4332
  <description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
4333
  <long-description><![CDATA[]]></long-description>
4334
+ <tag line="1339" name="since" description="1.10"/>
4335
+ <tag line="1339" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
4336
  <type by_reference="false">array</type>
4337
  </tag>
4338
+ <tag line="1339" name="return" description="Message(s) reflecting the results of the operation" type="array">
4339
  <type by_reference="false">array</type>
4340
  </tag>
4341
  </docblock>
4342
+ <argument line="1348">
4343
  <name>$value</name>
4344
  <default><![CDATA[]]></default>
4345
  <type/>
4346
  </argument>
4347
  </method>
4348
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1372" package="Media Library Assistant">
4349
  <name>_save_custom_field_settings</name>
4350
  <full_name>_save_custom_field_settings</full_name>
4351
+ <docblock line="1362">
4352
  <description><![CDATA[Save custom field settings to the options table]]></description>
4353
  <long-description><![CDATA[]]></long-description>
4354
+ <tag line="1362" name="since" description="1.10"/>
4355
+ <tag line="1362" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4356
+ <tag line="1362" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
4357
  <type by_reference="false">array</type>
4358
  </tag>
4359
+ <tag line="1362" name="return" description="Message(s) reflecting the results of the operation" type="array">
4360
  <type by_reference="false">array</type>
4361
  </tag>
4362
  </docblock>
4363
+ <argument line="1372">
4364
  <name>$new_values</name>
4365
  <default><![CDATA[NULL]]></default>
4366
  <type/>
4367
  </argument>
4368
  </method>
4369
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1412" package="Media Library Assistant">
4370
  <name>_process_iptc_exif_standard</name>
4371
  <full_name>_process_iptc_exif_standard</full_name>
4372
+ <docblock line="1402">
4373
  <description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
4374
  without saving the settings to the mla_option]]></description>
4375
  <long-description><![CDATA[]]></long-description>
4376
+ <tag line="1402" name="since" description="1.00"/>
4377
+ <tag line="1402" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4378
+ <tag line="1402" name="return" description="Message(s) reflecting the results of the operation" type="array">
4379
  <type by_reference="false">array</type>
4380
  </tag>
4381
  </docblock>
4382
  </method>
4383
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1456" package="Media Library Assistant">
4384
  <name>_process_iptc_exif_taxonomy</name>
4385
  <full_name>_process_iptc_exif_taxonomy</full_name>
4386
+ <docblock line="1446">
4387
  <description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
4388
  without saving the settings to the mla_option]]></description>
4389
  <long-description><![CDATA[]]></long-description>
4390
+ <tag line="1446" name="since" description="1.00"/>
4391
+ <tag line="1446" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4392
+ <tag line="1446" name="return" description="Message(s) reflecting the results of the operation" type="array">
4393
  <type by_reference="false">array</type>
4394
  </tag>
4395
  </docblock>
4396
  </method>
4397
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1501" package="Media Library Assistant">
4398
  <name>_process_iptc_exif_custom</name>
4399
  <full_name>_process_iptc_exif_custom</full_name>
4400
+ <docblock line="1491">
4401
  <description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
4402
  without saving the settings to the mla_option]]></description>
4403
  <long-description><![CDATA[]]></long-description>
4404
+ <tag line="1491" name="since" description="1.00"/>
4405
+ <tag line="1491" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4406
+ <tag line="1491" name="return" description="Message(s) reflecting the results of the operation" type="array">
4407
  <type by_reference="false">array</type>
4408
  </tag>
4409
  </docblock>
4410
  </method>
4411
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1548" package="Media Library Assistant">
4412
  <name>_save_iptc_exif_settings</name>
4413
  <full_name>_save_iptc_exif_settings</full_name>
4414
+ <docblock line="1539">
4415
  <description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
4416
  <long-description><![CDATA[]]></long-description>
4417
+ <tag line="1539" name="since" description="1.00"/>
4418
+ <tag line="1539" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4419
+ <tag line="1539" name="return" description="Message(s) reflecting the results of the operation" type="array">
4420
  <type by_reference="false">array</type>
4421
  </tag>
4422
  </docblock>
4423
  </method>
4424
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1585" package="Media Library Assistant">
4425
  <name>_save_general_settings</name>
4426
  <full_name>_save_general_settings</full_name>
4427
+ <docblock line="1576">
4428
  <description><![CDATA[Save General settings to the options table]]></description>
4429
  <long-description><![CDATA[]]></long-description>
4430
+ <tag line="1576" name="since" description="0.1"/>
4431
+ <tag line="1576" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
4432
+ <tag line="1576" name="return" description="Message(s) reflecting the results of the operation" type="array">
4433
  <type by_reference="false">array</type>
4434
  </tag>
4435
  </docblock>
4436
  </method>
4437
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1643" package="Media Library Assistant">
4438
  <name>_reset_general_settings</name>
4439
  <full_name>_reset_general_settings</full_name>
4440
+ <docblock line="1636">
4441
  <description><![CDATA[Delete saved settings, restoring default values]]></description>
4442
  <long-description><![CDATA[]]></long-description>
4443
+ <tag line="1636" name="since" description="0.1"/>
4444
+ <tag line="1636" name="return" description="Message(s) reflecting the results of the operation" type="array">
4445
  <type by_reference="false">array</type>
4446
  </tag>
4447
  </docblock>
4448
  </method>
4449
  </class>
4450
  </file>
4451
+ <file path="includes\class-mla-shortcodes.php" hash="672c554493b86b4eddb607ae08bf2087" package="Media Library Assistant">
4452
  <docblock line="2">
4453
  <description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
4454
  <long-description><![CDATA[]]></long-description>
4489
  </tag>
4490
  </docblock>
4491
  </property>
4492
+ <property final="false" static="true" visibility="private" line="737" namespace="global" package="Media Library Assistant">
4493
  <name>$query_parameters</name>
4494
  <default><![CDATA[array()]]></default>
4495
+ <docblock line="723">
4496
  <description><![CDATA[WP_Query filter "parameters"]]></description>
4497
+ <long-description><![CDATA[<p>This array defines parameters for the query's where and orderby filters,
4498
+ mla_shortcode_query_posts_where_filter and mla_shortcode_query_posts_orderby_filter.
4499
  The parameters are set up in the mla_get_shortcode_attachments function, and
4500
  any further logic required to translate those values is contained in the filter.</p>
4501
 
4502
+ <p>Array index values are: orderby, post_parent</p>]]></long-description>
4503
+ <tag line="723" name="since" description="1.13"/>
4504
+ <tag line="723" name="var" description="" type="array">
4505
  <type by_reference="false">array</type>
4506
  </tag>
4507
  </docblock>
4508
  </property>
4509
+ <property final="false" static="true" visibility="private" line="1268" namespace="global" package="Media Library Assistant">
4510
  <name>$mla_iptc_records</name>
4511
  <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>
4512
+ <docblock line="1258">
4513
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
4514
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
4515
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4516
+ <tag line="1258" name="since" description="0.90"/>
4517
+ <tag line="1258" name="var" description="" type="array">
4518
  <type by_reference="false">array</type>
4519
  </tag>
4520
  </docblock>
4521
  </property>
4522
+ <property final="false" static="true" visibility="public" line="1367" namespace="global" package="Media Library Assistant">
4523
  <name>$mla_iptc_keys</name>
4524
  <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>
4525
+ <docblock line="1357">
4526
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
4527
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
4528
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4529
+ <tag line="1357" name="since" description="0.90"/>
4530
+ <tag line="1357" name="var" description="" type="array">
4531
  <type by_reference="false">array</type>
4532
  </tag>
4533
  </docblock>
4534
  </property>
4535
+ <property final="false" static="true" visibility="private" line="1466" namespace="global" package="Media Library Assistant">
4536
  <name>$mla_iptc_descriptions</name>
4537
  <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>
4538
+ <docblock line="1456">
4539
  <description><![CDATA[IPTC Dataset descriptions]]></description>
4540
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
4541
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4542
+ <tag line="1456" name="since" description="0.90"/>
4543
+ <tag line="1456" name="var" description="" type="array">
4544
  <type by_reference="false">array</type>
4545
  </tag>
4546
  </docblock>
4547
  </property>
4548
+ <property final="false" static="true" visibility="private" line="1565" namespace="global" package="Media Library Assistant">
4549
  <name>$mla_iptc_formats</name>
4550
  <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>
4551
+ <docblock line="1555">
4552
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
4553
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
4554
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
4555
+ <tag line="1555" name="since" description="0.90"/>
4556
+ <tag line="1555" name="var" description="" type="array">
4557
  <type by_reference="false">array</type>
4558
  </tag>
4559
  </docblock>
4560
  </property>
4561
+ <property final="false" static="true" visibility="private" line="1608" namespace="global" package="Media Library Assistant">
4562
  <name>$mla_iptc_image_types</name>
4563
  <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>
4564
+ <docblock line="1598">
4565
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
4566
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
4567
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
4568
+ <tag line="1598" name="since" description="0.90"/>
4569
+ <tag line="1598" name="var" description="" type="array">
4570
  <type by_reference="false">array</type>
4571
  </tag>
4572
  </docblock>
4595
  </tag>
4596
  </docblock>
4597
  </method>
4598
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="158" package="Media Library Assistant">
4599
  <name>mla_gallery_shortcode</name>
4600
  <full_name>mla_gallery_shortcode</full_name>
4601
+ <docblock line="145">
4602
  <description><![CDATA[The MLA Gallery shortcode.]]></description>
4603
  <long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
4604
  page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
4605
  Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
4606
+ <tag line="145" name="since" description=".50"/>
4607
+ <tag line="145" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
4608
  <type by_reference="false">array</type>
4609
  </tag>
4610
+ <tag line="145" name="return" description="HTML content to display gallery." type="string">
4611
  <type by_reference="false">string</type>
4612
  </tag>
4613
  </docblock>
4614
+ <argument line="158">
4615
  <name>$attr</name>
4616
  <default><![CDATA[]]></default>
4617
  <type/>
4618
  </argument>
4619
  </method>
4620
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="748" package="Media Library Assistant">
4621
  <name>_sanitize_query_specification</name>
4622
  <full_name>_sanitize_query_specification</full_name>
4623
+ <docblock line="739">
4624
  <description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
4625
  <long-description><![CDATA[]]></long-description>
4626
+ <tag line="739" name="since" description="1.14"/>
4627
+ <tag line="739" name="param" description="query specification; PHP nested arrays" type="string" variable="$specification">
4628
  <type by_reference="false">string</type>
4629
  </tag>
4630
+ <tag line="739" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
4631
  <type by_reference="false">string</type>
4632
  </tag>
4633
  </docblock>
4634
+ <argument line="748">
4635
  <name>$specification</name>
4636
  <default><![CDATA[]]></default>
4637
  <type/>
4638
  </argument>
4639
  </method>
4640
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="765" package="Media Library Assistant">
4641
+ <name>_validate_sql_orderby</name>
4642
+ <full_name>_validate_sql_orderby</full_name>
4643
+ <docblock line="754">
4644
+ <description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
4645
+ <long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
4646
+ Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
4647
+ <tag line="754" name="since" description="1.20"/>
4648
+ <tag line="754" name="param" description="Validated query parameters" type="array" variable="$query_parameters">
4649
+ <type by_reference="false">array</type>
4650
+ </tag>
4651
+ <tag line="754" name="return" description="Returns the orderby clause if present, false otherwise." type="string|bool">
4652
+ <type by_reference="false">string</type>
4653
+ <type by_reference="false">bool</type>
4654
+ </tag>
4655
+ </docblock>
4656
+ <argument line="765">
4657
+ <name>$query_parameters</name>
4658
+ <default><![CDATA[]]></default>
4659
+ <type/>
4660
+ </argument>
4661
+ </method>
4662
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="849" package="Media Library Assistant">
4663
  <name>mla_get_shortcode_attachments</name>
4664
  <full_name>mla_get_shortcode_attachments</full_name>
4665
+ <docblock line="839">
4666
  <description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
4667
  <long-description><![CDATA[]]></long-description>
4668
+ <tag line="839" name="since" description=".50"/>
4669
+ <tag line="839" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
4670
  <type by_reference="false">int</type>
4671
  </tag>
4672
+ <tag line="839" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
4673
  <type by_reference="false">array</type>
4674
  </tag>
4675
+ <tag line="839" name="return" description="List of attachments returned from WP_Query" type="array">
4676
  <type by_reference="false">array</type>
4677
  </tag>
4678
  </docblock>
4679
+ <argument line="849">
4680
  <name>$post_parent</name>
4681
  <default><![CDATA[]]></default>
4682
  <type/>
4683
  </argument>
4684
+ <argument line="849">
4685
  <name>$attr</name>
4686
  <default><![CDATA[]]></default>
4687
  <type/>
4688
  </argument>
4689
  </method>
4690
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1208" package="Media Library Assistant">
4691
  <name>mla_shortcode_query_posts_where_filter</name>
4692
  <full_name>mla_shortcode_query_posts_where_filter</full_name>
4693
+ <docblock line="1194">
4694
  <description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
4695
  <long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
4696
  phrase to circumvent subsequent Role Scoper modification of the clause.
4697
  Handles post_parent "any" and "none" cases.
4698
  Defined as public because it's a filter.</p>]]></long-description>
4699
+ <tag line="1194" name="since" description="0.70"/>
4700
+ <tag line="1194" name="param" description="query clause before modification" type="string" variable="$where_clause">
4701
  <type by_reference="false">string</type>
4702
  </tag>
4703
+ <tag line="1194" name="return" description="query clause after modification" type="string">
4704
  <type by_reference="false">string</type>
4705
  </tag>
4706
  </docblock>
4707
+ <argument line="1208">
4708
  <name>$where_clause</name>
4709
  <default><![CDATA[]]></default>
4710
  <type/>
4711
  </argument>
4712
  </method>
4713
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1249" package="Media Library Assistant">
4714
+ <name>mla_shortcode_query_posts_orderby_filter</name>
4715
+ <full_name>mla_shortcode_query_posts_orderby_filter</full_name>
4716
+ <docblock line="1237">
4717
+ <description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
4718
+ <long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
4719
+ Defined as public because it's a filter.</p>]]></long-description>
4720
+ <tag line="1237" name="since" description="1.20"/>
4721
+ <tag line="1237" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
4722
+ <type by_reference="false">string</type>
4723
+ </tag>
4724
+ <tag line="1237" name="return" description="query clause after modification" type="string">
4725
+ <type by_reference="false">string</type>
4726
+ </tag>
4727
+ </docblock>
4728
+ <argument line="1249">
4729
+ <name>$orderby_clause</name>
4730
+ <default><![CDATA[]]></default>
4731
+ <type/>
4732
+ </argument>
4733
+ </method>
4734
  </class>
4735
  </file>
4736
+ <file path="includes\mla-plugin-loader.php" hash="b638ba24f0c701bf238f9d627df23d0a" package="Media Library Assistant">
4737
  <docblock line="2">
4738
  <description><![CDATA[Media Library Assistant Plugin Loader]]></description>
4739
  <long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
4756
  <include line="74" type="Require Once" package="Media Library Assistant">
4757
  <name/>
4758
  </include>
4759
+ <include line="82" type="Require Once" package="Media Library Assistant">
4760
+ <name/>
4761
+ </include>
4762
  <include line="89" type="Require Once" package="Media Library Assistant">
4763
  <name/>
4764
  </include>
4790
  </docblock>
4791
  </function>
4792
  </file>
4793
+ <file path="index.php" hash="cfa69f4c3af98e97c20362b16a87ded6" package="Media Library Assistant">
4794
  <docblock line="2">
4795
  <description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
4796
  <long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
4797
  will the rest of the plugin be loaded and run.</p>]]></long-description>
4798
  <tag line="2" name="package" description="Media Library Assistant"/>
4799
+ <tag line="2" name="version" description="1.20"/>
4800
  </docblock>
4801
  <include line="105" type="Require Once" package="Media Library Assistant">
4802
  <name>includes/mla-plugin-loader.php</name>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
- Stable tag: 1.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -113,9 +113,22 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
113
  6. The Settings page MLA Gallery tab, where you can add custom style and markup templates for `[mla_gallery]` shortcode output.
114
  7. The Settings page IPTC &amp; EXIF Processing Options screen, where you can map image metadata to standard fields (e.g. caption), taxonomy terms and custom fields.
115
  8. The Settings page Custom Field Processing Options screen, where you can map attachment metadata to custom fields for display in [mla_gallery] shortcodes and as sortable, searchable columns in the Media/Assistant submenu.
 
116
 
117
  == Changelog ==
118
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  = 1.14 =
120
  * New: In the `[mla_gallery]` shortcode, a new `mla_target` parameter allows you to specify the HTML `target` attribute in the gallery item links, e.g., `mla_target="_blank"` will open the items in a new window or tab.
121
  * New: In the `[mla_gallery]` shortcode, a new `tax_operator` parameter allows you to specify "AND" or "NOT IN" operators in the simple `tax_name=term(s)` version of taxonomy queries. See the Settings/Media Library Assistant Documentation page for details.
@@ -264,8 +277,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
264
 
265
  == Upgrade Notice ==
266
 
267
- = 1.14 =
268
- New [mla_gallery] mla_target and tax_operator parameters, tax_query cleanup and ids/include fix. Attachments column fix. IPTC/EXIF and Custom Field mapping fixes. Three other fixes.
269
 
270
  == Other Notes ==
271
 
@@ -318,7 +331,9 @@ These parameters are only important if the gallery thumbnails are too large to f
318
 
319
  <h4>Gallery Display Content</h4>
320
 
321
- Four `[mla_gallery]` parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
 
 
322
 
323
  * `mla_link_text`: replaces the thumbnail image or attachment title text displayed for each gallery item.
324
 
@@ -328,7 +343,9 @@ Four `[mla_gallery]` parameters provide an easy way to control the contents of g
328
 
329
  * `mla_target`: adds an HTML "target" attribute to the hyperlink for each gallery item; see below.
330
 
331
- The first three parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code `mla_rollover_text='{+date+} : {+description+}'`, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
 
 
332
 
333
  The "mla_target" parameter accepts any value and adds an HTML "target" attribute to the hyperlink with that value. For example, if you code `mla_target="_blank"` the item will open in a new window or tab. You can also use "_self", "_parent", "_top" or the "<em>framename</em>" of a named frame.
334
 
@@ -348,9 +365,28 @@ When this feature is active, gallery items for which WordPress can generate a th
348
 
349
  <h4>Order, Orderby</h4>
350
 
351
- To order the gallery randomly, use "orderby=rand". To suppress gallery ordering you can use "orderby=none" or "order=rand".
352
-
353
- 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.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
354
 
355
  <h4>Size</h4>
356
 
@@ -471,7 +507,7 @@ A complete list of the <strong>13 style substitution parameters</strong> is on t
471
 
472
  <h4>Substitution parameters for markup templates</h4>
473
 
474
- A complete list of the <strong>15 markup substitution parameters</strong> is on the plugin's Settings page.
475
 
476
  <h4>Attachment-specific substitution parameters for markup templates</h4>
477
 
@@ -479,7 +515,7 @@ A complete list of the <strong>35 attachment-specific substitution parameters</s
479
 
480
  <h3>Field-level Markup Substitution Parameters</h3>
481
 
482
- 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.
483
 
484
  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.
485
 
@@ -487,8 +523,9 @@ The <strong>field name</strong> defines which field-level data element you are a
487
 
488
  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.
489
 
490
- There are four prefix values for field-level data. Prefix values must be coded as shown; all lowercase letters.
491
 
 
492
  * `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.
493
  * `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".
494
 
4
  Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums
5
  Requires at least: 3.3
6
  Tested up to: 3.5.1
7
+ Stable tag: 1.20
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
113
  6. The Settings page MLA Gallery tab, where you can add custom style and markup templates for `[mla_gallery]` shortcode output.
114
  7. The Settings page IPTC &amp; EXIF Processing Options screen, where you can map image metadata to standard fields (e.g. caption), taxonomy terms and custom fields.
115
  8. The Settings page Custom Field Processing Options screen, where you can map attachment metadata to custom fields for display in [mla_gallery] shortcodes and as sortable, searchable columns in the Media/Assistant submenu.
116
+ 9. The Media Manager popup modal window showing additional filters for date and taxonomy terms. Also shows the enhanced Search Media box.
117
 
118
  == Changelog ==
119
 
120
+ = 1.20 =
121
+ * New: The long-awaited enhancements to the WordPress (3.5+) Media Manager (Add Media, etc.). Filter your attachments by additional MIME types, month and year uploaded and/or taxonomy terms. Keyword search can be extended to the name/slug, ALT text and caption fields. The connector between search terms can be "and" or "or". Search by attachment ID or parent ID is supported. Enable/disable any or all enhancements on the Settings page.
122
+ * New: In the `[mla_gallery]` shortcode, enhanced parameters for sorting the gallery results. For example, `orderby=caption` and `orderby=description` are now available to sort gallery results by the Caption (post_excerpt) and Description (post_content) fields. You can also sort on multiple fields, e.g., `orderby="author, date DESC"`, with field-level ASC/DESC control. The "Other Notes" section here or the Documentation tab on the Settings/Media Library Assistant page of the plugin have details.
123
+ * New: For `[mla_gallery]`, field-level substitution parameters now include query arguments. You can pass any values you need to the Gallery Display Content parameters and to your custom style and markup templates.
124
+ * New: Gallery Display Content parameters now include `mla_link_href`, so you can change the destination and arguments of the URL your gallery items link to.
125
+ * New: Markup Substitution Parameters now include `site_url`.
126
+ * New: If the search box contains (only) a numeric value it is interpreted as a search by attachment ID **or parent ID (post_parent)**. You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.
127
+ * Fix: For `[mla_gallery]`, `numberposts` is now accepted as a synonym for `posts_per_page`. If both are present, `posts_per_page` wins.
128
+ * Fix: For `[mla_gallery]`, handling of `id=0` and `post_parent=0` now match the WordPress `[gallery]` implementation, restricting the query to children of post '0', i.e., unattached media items.
129
+ * Fix: Corrected handling of Photonic Gallery `pause` parameter to match Photonic 1.43 implementation. Pause will be `true` if any non-empty value other than 'false' or '0' is present.
130
+ * Fix: A Donate button has been added to the top-right corner of the Settings/Media Library Assistant screen.
131
+
132
  = 1.14 =
133
  * New: In the `[mla_gallery]` shortcode, a new `mla_target` parameter allows you to specify the HTML `target` attribute in the gallery item links, e.g., `mla_target="_blank"` will open the items in a new window or tab.
134
  * New: In the `[mla_gallery]` shortcode, a new `tax_operator` parameter allows you to specify "AND" or "NOT IN" operators in the simple `tax_name=term(s)` version of taxonomy queries. See the Settings/Media Library Assistant Documentation page for details.
277
 
278
  == Upgrade Notice ==
279
 
280
+ = 1.20 =
281
+ Media Manager (Add Media, etc.) enhancements: filter by more MIME types, date, taxonomy terms; enhanced search box for name/slug, ALT text, caption and attachment ID. New [mla_gallery] sort options. Four other enhancements, four fixes.
282
 
283
  == Other Notes ==
284
 
331
 
332
  <h4>Gallery Display Content</h4>
333
 
334
+ Five `[mla_gallery]` parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
335
+
336
+ * `mla_link_href`: replaces the HTML "href" attribute in the hyperlink for each gallery item; see below.
337
 
338
  * `mla_link_text`: replaces the thumbnail image or attachment title text displayed for each gallery item.
339
 
343
 
344
  * `mla_target`: adds an HTML "target" attribute to the hyperlink for each gallery item; see below.
345
 
346
+ The first four parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code `mla_rollover_text='{+date+} : {+description+}'`, the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
347
+
348
+ The "mla_link_href" parameter is a great way to change the destination your gallery item links to or add arguments to the link for later processing. For example, to make a gallery item link back to the page/post it is attached to, you can code: "mla_link_href='{+site_url+}/?page_id={+parent+}'". You can also add arguments to the link, e.g., "mla_link_href='{+link_url+}&amp;amp;myarg=myvalue'". Note the use of the HTML entity name "&amp;amp;" to put an ampersand in the value; the WordPress "visual" post editor will replace "&", "<" and ">" with "&amp;amp;", "&amp;lt;" and "&amp;gt;" whether you like it not. The **only** markup parameter modified by this parameter is "link". Other markup parameters such as "pagelink", "filelink" and "link_url" are not modified.
349
 
350
  The "mla_target" parameter accepts any value and adds an HTML "target" attribute to the hyperlink with that value. For example, if you code `mla_target="_blank"` the item will open in a new window or tab. You can also use "_self", "_parent", "_top" or the "<em>framename</em>" of a named frame.
351
 
365
 
366
  <h4>Order, Orderby</h4>
367
 
368
+ The Orderby parameter specifies which database field(s) are used to sort the gallery. You can sort the gallery by one or more of these values (there is additional information on some of these values in the Codex WP_Query class reference):
369
+
370
+ * `none`: No order.
371
+ * `ID`: Order by post id. Note capitalization.
372
+ * `author`: Order by author (id, not display name).
373
+ * `date`: Order by date uploaded.
374
+ * `description, content`: Order by attachment description.
375
+ * `title`: Order by attachment title.
376
+ * `caption, excerpt`: Order by attachment caption.
377
+ * `slug, name`: Order by attachment name.
378
+ * `modified`: Order by last modified date.
379
+ * `parent`: Order by `: Order by attachment parent id.
380
+ * `menu_order`: Order by page order.
381
+ * `mime_type`: Order by attachment MIME type.
382
+ * `comment_count`: Order by number of comments.
383
+ * `rand`: Random order.
384
+ * `<keyname>, meta_value, meta_value_num`: Order by custom field value. Note that a 'meta_key=keyname' must also be present in the query.
385
+ * `post__in`: Preserve order given in the `ids`, `include` or `post__in` array.
386
+
387
+ You can sort on more than one value, e.g., `orderby="author, date DESC"` and you can specify ASC/DESC on a value by value basis. **NOTE: multiple orderby values are separated by commas, not spaces.** This is a change from WP_Query.
388
+
389
+ The `order` parameter (default ASC) can give an ASC/DESC default for any value that doesn't have a specific choice. For example, `orderby="author, date DESC, mime_type" order=ASC` is the same as `orderby="author ASC, date DESC, mime_type ASC"`.
390
 
391
  <h4>Size</h4>
392
 
507
 
508
  <h4>Substitution parameters for markup templates</h4>
509
 
510
+ A complete list of the <strong>16 markup substitution parameters</strong> is on the plugin's Settings page.
511
 
512
  <h4>Attachment-specific substitution parameters for markup templates</h4>
513
 
515
 
516
  <h3>Field-level Markup Substitution Parameters</h3>
517
 
518
+ Field-level substitution parameters let you access query arguments, 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.
519
 
520
  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.
521
 
523
 
524
  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.
525
 
526
+ There are five prefix values for field-level data. Prefix values must be coded as shown; all lowercase letters.
527
 
528
+ * `query`: The parameters defined in the `[mla_gallery]` shortcode. For example, if your shortcode is `[mla gallery attachment_tag=my-tag div-class=some_class]` you can access the parameters as `[+query:attachment_tag+]` and `[+query:div-class+]` respectively. Only the parameters actually coded in the shortcode are accessible; default values for parameters not actually coded are not available. You can define your own parameters, e.g., `div-class`; they will be accessible as field-level data but will otherwise be ignored.
529
  * `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.
530
  * `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".
531
 
tpls/admin-display-settings-page.tpl CHANGED
@@ -3,6 +3,8 @@
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+]
8
  [+tablist+]
@@ -107,7 +109,7 @@
107
  <h3>Support Our Work</h3>
108
  <table width="700" border="0" cellpadding="10">
109
  <tr>
110
- <td><a href="http://fairtradejudaica.org/make-a-difference/donate/" title="Donate to FTJ" target="_blank" style="border: none;"><img border="0" src="http://fairtradejudaica.org/wp-content/uploads/newsletter/images/DonateButton.jpg" width="100" height="40" alt="Donate"></a></td>
111
  <td>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 <a href="http://fairtradejudaica.org/make-a-difference/donate/" title="Donate to FTJ" target="_blank" style="font-weight:bold">tax-deductible donation</a> to our work. Thank you!</td>
112
  </tr>
113
  </table>
3
  &nbsp;
4
  <div class="wrap">
5
  <div id="icon-options-general" class="icon32"><br/></div>
6
+ <div id="donate-button-div" style="text-align: center; width: 100px; height: 40px; float: right;">
7
+ <a href="http://fairtradejudaica.org/make-a-difference/donate/" title="Support our work" target="_blank" style="border: none;"><img border="0" src="[+donateURL+]" width="100" height="40" alt="Donate"></a></div>
8
  <h2>Media Library Assistant [+version+] Settings</h2>
9
  [+messages+]
10
  [+tablist+]
109
  <h3>Support Our Work</h3>
110
  <table width="700" border="0" cellpadding="10">
111
  <tr>
112
+ <td><a href="http://fairtradejudaica.org/make-a-difference/donate/" title="Donate to FTJ" target="_blank" style="border: none;"><img border="0" src="[+donateURL+]" width="100" height="40" alt="Donate"></a></td>
113
  <td>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 <a href="http://fairtradejudaica.org/make-a-difference/donate/" title="Donate to FTJ" target="_blank" style="font-weight:bold">tax-deductible donation</a> to our work. Thank you!</td>
114
  </tr>
115
  </table>
tpls/documentation-settings-tab.tpl CHANGED
@@ -98,10 +98,14 @@ These parameters are only important if the gallery thumbnails are too large to f
98
  </p>
99
  <h4>Gallery Display Content</h4>
100
  <p>
101
- Four [mla_gallery] parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
102
  </p>
103
  <table>
104
  <tr>
 
 
 
 
105
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_text</td>
106
  <td>replaces the thumbnail image or attachment title text displayed for each gallery item</td>
107
  </tr>
@@ -119,7 +123,10 @@ Four [mla_gallery] parameters provide an easy way to control the contents of gal
119
  </tr>
120
  </table>
121
  <p>
122
- The first three parameters support the Markup and Attachment-specific substitution arguments defined for Markup Templates. For example, if you code "mla_rollover_text='{+date+} : {+description+}'", the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
 
 
 
123
  </p>
124
  <p>
125
  The "mla_target" parameter accepts any value and adds an HTML "target" attribute to the hyperlink with that value. For example, if you code mla_target="_blank" the item will open in a new window or tab. You can also use "_self", "_parent", "_top" or the "<em>framename</em>" of a named frame.
@@ -150,13 +157,74 @@ Four [mla_gallery] parameters provide an easy way to generate thumbnail images f
150
  When this feature is active, gallery items for which WordPress can generate a thumbnail image are not altered. If WordPress generation fails, the gallery thumbnail is replaced by an "img" html tag whose "src" attribute contains a url reference to the Google File Viewer. The Google File Viewer arguments include the url of the source file, the page number and the width. Note that the source file must be Internet accessible; files behind firewalls and on local servers will not generate a thumbnail image.</p>
151
  <h4>Order, Orderby</h4>
152
  <p>
153
- The default value of the "order" parameter is "ASC" (ascending). The only other allowed value is "DESC" (descending).
154
  </p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  <p>
156
- 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.
157
- </p>
158
  <p>
159
- To order the gallery randomly, use "orderby=rand". To suppress gallery ordering, use "orderby=none".
160
  </p>
161
  <h4>Size</h4>
162
  <p>
@@ -254,7 +322,7 @@ For compatibility with the WordPress [gallery] shortcode, these parameters defau
254
  </p>
255
  <h4>Pagination Parameters</h4>
256
  <p>
257
- 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')).
258
  </p>
259
  <h4>Time Parameters</h4>
260
  <p>
@@ -428,6 +496,10 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
428
  <td>shortcode 'size' parameter, default = "thumbnail". If this parameter contains "none" or an empty string (size="") the attachment title will be displayed instead of the image/icon.</td>
429
  </tr>
430
  <tr>
 
 
 
 
431
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">base_url</td>
432
  <td>absolute URL to the upload directory, without trailing slash</td>
433
  </tr>
@@ -591,7 +663,7 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
591
  </p>
592
  <h3>Field-level Markup Substitution Parameters</h3>
593
  <p>
594
- 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.
595
  </p>
596
  <p>
597
  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.
@@ -603,9 +675,13 @@ The <strong>field name</strong> defines which field-level data element you are a
603
  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.
604
  </p>
605
  <p>
606
- There are four prefix values for field-level data. Prefix values must be coded as shown; all lowercase letters.
607
  </p>
608
  <table>
 
 
 
 
609
  <tr>
610
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">custom</td>
611
  <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><em>cannot use the plus sign ('+')</em></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.</td>
98
  </p>
99
  <h4>Gallery Display Content</h4>
100
  <p>
101
+ Five [mla_gallery] parameters provide an easy way to control the contents of gallery items without requiring the use of custom Markup templates.
102
  </p>
103
  <table>
104
  <tr>
105
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_href</td>
106
+ <td>replaces the HTML "href" attribute in the hyperlink for each gallery item; see below</td>
107
+ </tr>
108
+ <tr>
109
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_link_text</td>
110
  <td>replaces the thumbnail image or attachment title text displayed for each gallery item</td>
111
  </tr>
123
  </tr>
124
  </table>
125
  <p>
126
+ The first four parameters support the <a href="#mla_markup_parameters">Markup</a> and <a href="#mla_attachment_parameters">Attachment-specific</a> substitution arguments defined for Markup Templates. For example, if you code "mla_rollover_text='{+date+} : {+description+}'", the rollover text will contain the upload date, a colon, and the full description of each gallery item. Simply add "{+" before the substitution parameter name and add "+}" after the name. Note that the enclosing delimiters are different than those used in the templates, since the shortcode parser reserves square brackets ("[" and "]") for its own use.
127
+ </p>
128
+ <p>
129
+ The "mla_link_href" parameter is a great way to change the destination your gallery item links to or add arguments to the link for later processing. For example, to make a gallery item link back to the page/post it is attached to, you can code: "mla_link_href='{+site_url+}/?page_id={+parent+}'". You can also add arguments to the link, e.g., "mla_link_href='{+link_url+}&amp;amp;myarg=myvalue'". Note the use of the HTML entity name "&amp;amp;" to put an ampersand in the value; the WordPress "visual" post editor will replace "&", "<" and ">" with "&amp;amp;", "&amp;lt;" and "&amp;gt;" whether you like it not. The <strong>only</strong> markup parameter modified by this parameter is "link". Other markup parameters such as "pagelink", "filelink" and "link_url" are not modified.
130
  </p>
131
  <p>
132
  The "mla_target" parameter accepts any value and adds an HTML "target" attribute to the hyperlink with that value. For example, if you code mla_target="_blank" the item will open in a new window or tab. You can also use "_self", "_parent", "_top" or the "<em>framename</em>" of a named frame.
157
  When this feature is active, gallery items for which WordPress can generate a thumbnail image are not altered. If WordPress generation fails, the gallery thumbnail is replaced by an "img" html tag whose "src" attribute contains a url reference to the Google File Viewer. The Google File Viewer arguments include the url of the source file, the page number and the width. Note that the source file must be Internet accessible; files behind firewalls and on local servers will not generate a thumbnail image.</p>
158
  <h4>Order, Orderby</h4>
159
  <p>
160
+ The Orderby parameter specifies which database field(s) are used to sort the gallery. You can sort the gallery by one or more of these values (there is additional information on some of these values in the <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" title="WordPress Codex link" target="_blank">Codex WP_Query class reference</a>):
161
  </p>
162
+ <table>
163
+ <tr>
164
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">none</td>
165
+ <td>No order.</td>
166
+ </tr>
167
+ <tr>
168
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">ID</td>
169
+ <td>Order by post id. Note capitalization.</td>
170
+ </tr>
171
+ <tr>
172
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">author</td>
173
+ <td>Order by author (id, not display name).</td>
174
+ </tr>
175
+ <tr>
176
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">date</td>
177
+ <td>Order by date uploaded.</td>
178
+ </tr>
179
+ <tr>
180
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">description, content</td>
181
+ <td>Order by attachment description.</td>
182
+ </tr>
183
+ <tr>
184
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">title</td>
185
+ <td>Order by attachment title.</td>
186
+ </tr>
187
+ <tr>
188
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">caption, excerpt</td>
189
+ <td>Order by attachment caption. </td>
190
+ </tr>
191
+ <tr>
192
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">slug, name</td>
193
+ <td>Order by attachment name.</td>
194
+ </tr>
195
+ <tr>
196
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">modified</td>
197
+ <td>Order by last modified date.</td>
198
+ </tr>
199
+ <tr>
200
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">menu_order</td>
201
+ <td>Order by page order.</td>
202
+ </tr>
203
+ <tr>
204
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">mime_type</td>
205
+ <td>Order by attachment MIME type.</td>
206
+ </tr>
207
+ <tr>
208
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">comment_count</td>
209
+ <td>Order by number of comments.</td>
210
+ </tr>
211
+ <tr>
212
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">rand</td>
213
+ <td>Random order.</td>
214
+ </tr>
215
+ <tr>
216
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">&lt;keyname&gt;, meta_value,<br />meta_value_num</td>
217
+ <td style="vertical-align: top;">Order by custom field value. Note that a <em>'meta_key=keyname'</em> must also be present in the query.</td>
218
+ </tr>
219
+ <tr>
220
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">post__in</td>
221
+ <td>Preserve order given in the <em>ids, include</em> or <em>post__in</em> array.</td>
222
+ </tr>
223
+ </table>
224
  <p>
225
+ You can sort on more than one value, e.g., <em>orderby="author, date DESC"</em> and you can specify ASC/DESC on a value by value basis. <strong>NOTE: multiple orderby values are separated by commas, not spaces.</strong> This is a change from WP_Query. </p>
 
226
  <p>
227
+ The order parameter (default ASC) can give an ASC/DESC default for any value that doesn't have a specific choice. For example, <em>orderby="author, date DESC, mime_type" order=ASC</em> is the same as <em>orderby="author ASC, date DESC, mime_type ASC"</em>.
228
  </p>
229
  <h4>Size</h4>
230
  <p>
322
  </p>
323
  <h4>Pagination Parameters</h4>
324
  <p>
325
+ 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 "numberposts", "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')).
326
  </p>
327
  <h4>Time Parameters</h4>
328
  <p>
496
  <td>shortcode 'size' parameter, default = "thumbnail". If this parameter contains "none" or an empty string (size="") the attachment title will be displayed instead of the image/icon.</td>
497
  </tr>
498
  <tr>
499
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">site_url</td>
500
+ <td>absolute URL to the site directory, without trailing slash</td>
501
+ </tr>
502
+ <tr>
503
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">base_url</td>
504
  <td>absolute URL to the upload directory, without trailing slash</td>
505
  </tr>
663
  </p>
664
  <h3>Field-level Markup Substitution Parameters</h3>
665
  <p>
666
+ Field-level substitution parameters let you access query arguments, 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.
667
  </p>
668
  <p>
669
  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.
675
  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.
676
  </p>
677
  <p>
678
+ There are five prefix values for field-level data. Prefix values must be coded as shown; all lowercase letters.
679
  </p>
680
  <table>
681
+ <tr>
682
+ <td style="padding-right: 10px; vertical-align: top; font-weight:bold">query</td>
683
+ <td>The parameters defined in the [mla_gallery] shortcode. For example, if your shortcode is [mla gallery attachment_tag=my-tag div-class=some_class] you can access the parameters as [+query:attachment_tag+] and [+query:div-class+] respectively. Only the parameters actually coded in the shortcode are accessible; default values for parameters not actually coded are not available. You can define your own parameters, e.g., "div-class"; they will be accessible as field-level data but will otherwise be ignored.</td>
684
+ </tr>
685
  <tr>
686
  <td style="padding-right: 10px; vertical-align: top; font-weight:bold">custom</td>
687
  <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><em>cannot use the plus sign ('+')</em></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.</td>
tpls/help-for-media_page_mla-menu.tpl CHANGED
@@ -28,7 +28,7 @@
28
  <!-- title="Search Media" order="6" -->
29
  <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
30
  <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
31
- <p>If you enter a numeric value (only) in the search box, it is interpreted as a search by attachment ID. You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.</p>
32
  <!-- template="mla-bulk-actions" -->
33
  <!-- title="Bulk Actions" order="7" -->
34
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
28
  <!-- title="Search Media" order="6" -->
29
  <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
30
  <p>Once you&#8217;ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database.</p>
31
+ <p>If you enter a numeric value (only) in the search box, it is interpreted as a search by attachment ID or parent ID (post_parent). You can search for a numeric value in the text fields, e.g., title, by putting quotes around the value.</p>
32
  <!-- template="mla-bulk-actions" -->
33
  <!-- title="Bulk Actions" order="7" -->
34
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>